@volo/abp.ng.identity 10.5.0 → 10.6.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 +203 -209
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity-proxy.mjs +27 -27
- package/fesm2022/volo-abp.ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +411 -356
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/package.json +7 -7
- package/types/volo-abp.ng.identity-config.d.ts +38 -44
- package/types/volo-abp.ng.identity.d.ts +29 -42
|
@@ -2,24 +2,26 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { inject, Injector, output, model, effect, Component, Injectable, DestroyRef, input, ChangeDetectionStrategy, viewChild, signal, computed, InjectionToken, LOCALE_ID, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormBuilder, FormsModule, FormBuilder, Validators, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
|
|
5
|
-
import { finalize, take, switchMap as switchMap$1,
|
|
6
|
-
import { AutofocusDirective, LocalizationPipe, mapEnumToOptions, AbpWindowService, LocalizationService, SubscriptionService, InternalStore, ShortDateTimePipe, ListService, AuthService, ConfigStateService, generatePassword, EnvironmentService, PermissionDirective, ReplaceableTemplateDirective, TrackByService, escapeHtmlChars, getShortDateShortTimeFormat, TenantUserSharingStrategy, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
|
|
5
|
+
import { finalize, take, switchMap as switchMap$1, startWith, map as map$1, distinctUntilChanged, tap as tap$1, defaultIfEmpty, filter as filter$1 } from 'rxjs/operators';
|
|
6
|
+
import { AutofocusDirective, LocalizationPipe, mapEnumToOptions, AbpWindowService, LocalizationService, SubscriptionService, InternalStore, ShortDateTimePipe, ListService, AuthService, ConfigStateService, generatePassword, ShowPasswordDirective, EnvironmentService, PermissionDirective, ReplaceableTemplateDirective, TrackByService, escapeHtmlChars, getShortDateShortTimeFormat, TenantUserSharingStrategy, 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, NgbDropdown, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNav, NgbNavItem, NgbNavLink, NgbNavContent, NgbNavOutlet, NgbNavItemRole, NgbNavLinkBase, NgbDropdownButtonItem, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
12
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
11
|
+
import { NgbNavModule, NgbDropdownModule, NgbTooltip, NgbDropdown, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNav, NgbNavItem, NgbNavLink, NgbNavContent, NgbNavOutlet, NgbNavItemRole, NgbNavLinkBase, NgbDropdownButtonItem, NgbTooltipModule as NgbTooltipModule$1, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
12
|
+
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
13
|
+
import { map, switchMap, take as take$1, filter, of, finalize as finalize$1, tap, combineLatest, forkJoin, firstValueFrom } from 'rxjs';
|
|
13
14
|
import * as i2 from '@ngx-validate/core';
|
|
14
15
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
15
16
|
import { TreeAdapter, TreeComponent, ExpandedIconTemplateDirective, TreeNodeTemplateDirective, TreeModule } from '@abp/ng.components/tree';
|
|
16
17
|
import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
17
18
|
import { PermissionManagementComponent, PermissionManagementModule } from '@abp/ng.permission-management';
|
|
18
19
|
import { AdvancedEntityFiltersComponent, AdvancedEntityFiltersFormComponent, LookupSelectComponent, DateRangePickerComponent, DatetimePickerComponent, SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
19
|
-
import { map, switchMap, take as take$1, filter, of, finalize as finalize$1, tap, combineLatest, firstValueFrom } from 'rxjs';
|
|
20
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
|
+
import * as i3 from '@ng-bootstrap/ng-bootstrap/tooltip';
|
|
24
|
+
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap/tooltip';
|
|
23
25
|
import * as i1$2 from '@angular/router';
|
|
24
26
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
25
27
|
import { ImpersonationService } from '@volo/abp.commercial.ng.ui/config';
|
|
@@ -36,7 +38,8 @@ class ExternalLoginComponent {
|
|
|
36
38
|
hideCancelBtn: true,
|
|
37
39
|
yesText: 'Ok',
|
|
38
40
|
};
|
|
39
|
-
this.visible = model(false,
|
|
41
|
+
this.visible = model(false, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
40
43
|
effect(() => {
|
|
41
44
|
if (this.visible()) {
|
|
42
45
|
this.buildForm();
|
|
@@ -74,10 +77,10 @@ class ExternalLoginComponent {
|
|
|
74
77
|
this.visible.set(false);
|
|
75
78
|
});
|
|
76
79
|
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExternalLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
81
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[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
82
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExternalLoginComponent, decorators: [{
|
|
81
84
|
type: Component,
|
|
82
85
|
args: [{ selector: 'abp-external-login', imports: [
|
|
83
86
|
FormsModule,
|
|
@@ -159,10 +162,10 @@ class ExcelService {
|
|
|
159
162
|
this.abpWindowService.downloadBlob(blob, 'InvalidUsers' + this.getFileType(fileType));
|
|
160
163
|
});
|
|
161
164
|
}
|
|
162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
166
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExcelService }); }
|
|
164
167
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExcelService, decorators: [{
|
|
166
169
|
type: Injectable
|
|
167
170
|
}] });
|
|
168
171
|
|
|
@@ -202,8 +205,10 @@ class ClaimModalComponent {
|
|
|
202
205
|
this.fb = inject(FormBuilder);
|
|
203
206
|
this.confirmationService = inject(ConfirmationService);
|
|
204
207
|
this.toasterService = inject(ToasterService);
|
|
205
|
-
this.visible = model(false,
|
|
206
|
-
|
|
208
|
+
this.visible = model(false, /* @ts-ignore */
|
|
209
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
210
|
+
this.subject = input(/* @ts-ignore */
|
|
211
|
+
...(ngDevMode ? [undefined, { debugName: "subject" }] : /* istanbul ignore next */ []));
|
|
207
212
|
this.modalBusy = false;
|
|
208
213
|
this.inputType = 'String';
|
|
209
214
|
effect(() => {
|
|
@@ -344,10 +349,10 @@ class ClaimModalComponent {
|
|
|
344
349
|
],
|
|
345
350
|
});
|
|
346
351
|
}
|
|
347
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
348
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ClaimModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
353
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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 - {{ subject()?.title }}\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]=\"true\"\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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[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
354
|
}
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ClaimModalComponent, decorators: [{
|
|
351
356
|
type: Component,
|
|
352
357
|
args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
353
358
|
FormsModule,
|
|
@@ -358,7 +363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
358
363
|
LocalizationPipe,
|
|
359
364
|
ModalComponent,
|
|
360
365
|
ButtonComponent,
|
|
361
|
-
], 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
|
|
366
|
+
], 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 - {{ subject()?.title }}\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]=\"true\"\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" }]
|
|
362
367
|
}], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], subject: [{ type: i0.Input, args: [{ isSignal: true, alias: "subject", required: false }] }] } });
|
|
363
368
|
|
|
364
369
|
class UploadExcelFileComponent {
|
|
@@ -367,10 +372,12 @@ class UploadExcelFileComponent {
|
|
|
367
372
|
this.destroyRef = inject(DestroyRef);
|
|
368
373
|
this.confirmationService = inject(ConfirmationService);
|
|
369
374
|
this.excelService = inject(ExcelService);
|
|
370
|
-
this.fileType = input(undefined,
|
|
375
|
+
this.fileType = input(undefined, /* @ts-ignore */
|
|
376
|
+
...(ngDevMode ? [{ debugName: "fileType" }] : /* istanbul ignore next */ []));
|
|
371
377
|
this.isModalVisibleChange = output();
|
|
372
378
|
this.isListChange = output();
|
|
373
|
-
this.fileInput = viewChild('fileInput',
|
|
379
|
+
this.fileInput = viewChild('fileInput', /* @ts-ignore */
|
|
380
|
+
...(ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []));
|
|
374
381
|
this.isModalVisible = true;
|
|
375
382
|
this.form = this.fb.group({
|
|
376
383
|
file: [null],
|
|
@@ -455,10 +462,10 @@ class UploadExcelFileComponent {
|
|
|
455
462
|
}))
|
|
456
463
|
.subscribe();
|
|
457
464
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
459
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
465
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UploadExcelFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
466
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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
467
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UploadExcelFileComponent, decorators: [{
|
|
462
469
|
type: Component,
|
|
463
470
|
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
471
|
}], 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 +490,10 @@ class OrganizationUnitsStateService {
|
|
|
483
490
|
removeSelectedNode() {
|
|
484
491
|
this.setSelectedUnit(undefined);
|
|
485
492
|
}
|
|
486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
487
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
493
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationUnitsStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
494
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationUnitsStateService, providedIn: 'root' }); }
|
|
488
495
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationUnitsStateService, decorators: [{
|
|
490
497
|
type: Injectable,
|
|
491
498
|
args: [{
|
|
492
499
|
providedIn: 'root',
|
|
@@ -496,26 +503,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
496
503
|
class DeleteOrganizationUnitService {
|
|
497
504
|
constructor() {
|
|
498
505
|
this.serviceProxy = inject(OrganizationUnitService);
|
|
499
|
-
this.#organizationUnits = signal([],
|
|
500
|
-
|
|
501
|
-
this.
|
|
502
|
-
|
|
503
|
-
this.
|
|
506
|
+
this.#organizationUnits = signal([], /* @ts-ignore */
|
|
507
|
+
...(ngDevMode ? [{ debugName: "#organizationUnits" }] : /* istanbul ignore next */ []));
|
|
508
|
+
this.visible = signal(false, /* @ts-ignore */
|
|
509
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
510
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
511
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
512
|
+
this.selected = signal(undefined, /* @ts-ignore */
|
|
513
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
514
|
+
this.name = computed(() => this.selected()?.displayName || '', /* @ts-ignore */
|
|
515
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
504
516
|
this.otherOrganizationUnits = computed(() => {
|
|
505
517
|
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
506
518
|
return [];
|
|
507
519
|
}
|
|
508
520
|
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
509
|
-
},
|
|
521
|
+
}, /* @ts-ignore */
|
|
522
|
+
...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : /* istanbul ignore next */ []));
|
|
510
523
|
this.count = computed(() => {
|
|
511
524
|
if (!this.selected()) {
|
|
512
525
|
return 0;
|
|
513
526
|
}
|
|
514
527
|
return this.selected().userCount || 0;
|
|
515
|
-
},
|
|
516
|
-
|
|
517
|
-
this.
|
|
518
|
-
|
|
528
|
+
}, /* @ts-ignore */
|
|
529
|
+
...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
530
|
+
this.hasMemberOrRole = computed(() => this.count() > 0, /* @ts-ignore */
|
|
531
|
+
...(ngDevMode ? [{ debugName: "hasMemberOrRole" }] : /* istanbul ignore next */ []));
|
|
532
|
+
this.countText = computed(() => this.count().toString(), /* @ts-ignore */
|
|
533
|
+
...(ngDevMode ? [{ debugName: "countText" }] : /* istanbul ignore next */ []));
|
|
534
|
+
this.hasOtherUnits = computed(() => !!this.otherOrganizationUnits().length, /* @ts-ignore */
|
|
535
|
+
...(ngDevMode ? [{ debugName: "hasOtherUnits" }] : /* istanbul ignore next */ []));
|
|
519
536
|
}
|
|
520
537
|
#organizationUnits;
|
|
521
538
|
openDeleteModal(v) {
|
|
@@ -542,10 +559,10 @@ class DeleteOrganizationUnitService {
|
|
|
542
559
|
const delete$ = this.serviceProxy.delete(id);
|
|
543
560
|
return move$.pipe(switchMap$1(() => delete$));
|
|
544
561
|
}
|
|
545
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
546
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
562
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteOrganizationUnitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
563
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteOrganizationUnitService }); }
|
|
547
564
|
}
|
|
548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteOrganizationUnitService, decorators: [{
|
|
549
566
|
type: Injectable
|
|
550
567
|
}] });
|
|
551
568
|
|
|
@@ -553,17 +570,23 @@ class MoveAllUsersOfUnitModalService {
|
|
|
553
570
|
constructor() {
|
|
554
571
|
this.organizationUnitService = inject(OrganizationUnitService);
|
|
555
572
|
this.confirmationService = inject(ConfirmationService);
|
|
556
|
-
this.#organizationUnits = signal([],
|
|
557
|
-
|
|
558
|
-
this.
|
|
559
|
-
|
|
560
|
-
this.
|
|
573
|
+
this.#organizationUnits = signal([], /* @ts-ignore */
|
|
574
|
+
...(ngDevMode ? [{ debugName: "#organizationUnits" }] : /* istanbul ignore next */ []));
|
|
575
|
+
this.visible = signal(false, /* @ts-ignore */
|
|
576
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
577
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
578
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
579
|
+
this.selected = signal(undefined, /* @ts-ignore */
|
|
580
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
581
|
+
this.name = computed(() => this.selected()?.displayName || '', /* @ts-ignore */
|
|
582
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
561
583
|
this.otherOrganizationUnits = computed(() => {
|
|
562
584
|
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
563
585
|
return [];
|
|
564
586
|
}
|
|
565
587
|
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
566
|
-
},
|
|
588
|
+
}, /* @ts-ignore */
|
|
589
|
+
...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : /* istanbul ignore next */ []));
|
|
567
590
|
}
|
|
568
591
|
#organizationUnits;
|
|
569
592
|
showWarning() {
|
|
@@ -604,10 +627,10 @@ class MoveAllUsersOfUnitModalService {
|
|
|
604
627
|
.moveAllUsers(id, newParentId)
|
|
605
628
|
.pipe(finalize(() => this.loading.set(false)));
|
|
606
629
|
}
|
|
607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
608
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
630
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersOfUnitModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
631
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersOfUnitModalService }); }
|
|
609
632
|
}
|
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersOfUnitModalService, decorators: [{
|
|
611
634
|
type: Injectable
|
|
612
635
|
}] });
|
|
613
636
|
|
|
@@ -643,17 +666,18 @@ class UserViewDetailService {
|
|
|
643
666
|
}
|
|
644
667
|
}
|
|
645
668
|
}
|
|
646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
647
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
669
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserViewDetailService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
670
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserViewDetailService }); }
|
|
648
671
|
}
|
|
649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserViewDetailService, decorators: [{
|
|
650
673
|
type: Injectable
|
|
651
674
|
}] });
|
|
652
675
|
|
|
653
676
|
class UserViewDetailsComponent {
|
|
654
677
|
constructor() {
|
|
655
678
|
this.service = inject(UserViewDetailService);
|
|
656
|
-
this.user = input(undefined,
|
|
679
|
+
this.user = input(undefined, /* @ts-ignore */
|
|
680
|
+
...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
|
|
657
681
|
this.isModalVisibleChange = output();
|
|
658
682
|
this.isModalVisible = true;
|
|
659
683
|
}
|
|
@@ -662,10 +686,10 @@ class UserViewDetailsComponent {
|
|
|
662
686
|
this.createdBy$ = this.service.getUserById(this.user().creatorId);
|
|
663
687
|
this.organization$ = this.service.getOrganizationUnits(this.user().id);
|
|
664
688
|
}
|
|
665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
666
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", 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 }); }
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserViewDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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
691
|
}
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserViewDetailsComponent, decorators: [{
|
|
669
693
|
type: Component,
|
|
670
694
|
args: [{ selector: 'abp-user-view-detail', imports: [
|
|
671
695
|
NgbNavModule,
|
|
@@ -693,10 +717,10 @@ class UserLockService {
|
|
|
693
717
|
this.busy = true;
|
|
694
718
|
return this.proxyService.lock(userId, lockoutEnd).pipe(finalize(() => (this.busy = false)));
|
|
695
719
|
}
|
|
696
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
697
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserLockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserLockService }); }
|
|
698
722
|
}
|
|
699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserLockService, decorators: [{
|
|
700
724
|
type: Injectable
|
|
701
725
|
}] });
|
|
702
726
|
|
|
@@ -705,7 +729,8 @@ class UserLockModalComponent {
|
|
|
705
729
|
this.service = inject(UserLockService);
|
|
706
730
|
this.toasterService = inject(ToasterService);
|
|
707
731
|
this.form = this.service.buildLockForm();
|
|
708
|
-
this.selected = input.required(
|
|
732
|
+
this.selected = input.required(/* @ts-ignore */
|
|
733
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
709
734
|
this.visibleChange = output();
|
|
710
735
|
this.dateTimePickerProps = FormProp.create({
|
|
711
736
|
displayName: 'AbpIdentity::DisplayName:LockoutEnd',
|
|
@@ -727,10 +752,10 @@ class UserLockModalComponent {
|
|
|
727
752
|
this.visibleChange.emit(false);
|
|
728
753
|
});
|
|
729
754
|
}
|
|
730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
731
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
755
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserLockModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
756
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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]=\"true\">\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
757
|
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserLockModalComponent, decorators: [{
|
|
734
759
|
type: Component,
|
|
735
760
|
args: [{ selector: 'abp-user-lock-modal', imports: [
|
|
736
761
|
ReactiveFormsModule,
|
|
@@ -740,24 +765,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
740
765
|
ModalComponent,
|
|
741
766
|
ButtonComponent,
|
|
742
767
|
ExtensibleDateTimePickerComponent,
|
|
743
|
-
], providers: [UserLockService], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange.emit($event)\" [busy]=\"busy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected().userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"lockForm\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <abp-extensible-date-time-picker [prop]=\"dateTimePickerProps\" />\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button 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" }]
|
|
768
|
+
], providers: [UserLockService], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange.emit($event)\" [busy]=\"busy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected().userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"lockForm\" (ngSubmit)=\"submit()\" [validateOnSubmit]=\"true\">\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" }]
|
|
744
769
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: true }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
745
770
|
|
|
746
771
|
class UserSessionDetailComponent {
|
|
747
772
|
constructor() {
|
|
748
773
|
this.service = inject(IdentitySessionService);
|
|
749
774
|
this.modalOptions = { size: 'lg' };
|
|
750
|
-
this.isModalVisible = model(false,
|
|
751
|
-
|
|
752
|
-
this.
|
|
775
|
+
this.isModalVisible = model(false, /* @ts-ignore */
|
|
776
|
+
...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
777
|
+
this.sessionId = input.required(/* @ts-ignore */
|
|
778
|
+
...(ngDevMode ? [{ debugName: "sessionId" }] : /* istanbul ignore next */ []));
|
|
779
|
+
this.sessionInfo = signal({}, /* @ts-ignore */
|
|
780
|
+
...(ngDevMode ? [{ debugName: "sessionInfo" }] : /* istanbul ignore next */ []));
|
|
753
781
|
}
|
|
754
782
|
ngOnInit() {
|
|
755
783
|
this.service.get(this.sessionId()).subscribe(this.sessionInfo.set);
|
|
756
784
|
}
|
|
757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
758
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserSessionDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
786
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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
787
|
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserSessionDetailComponent, decorators: [{
|
|
761
789
|
type: Component,
|
|
762
790
|
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
791
|
}], 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,22 +798,20 @@ class UserSessionsComponent {
|
|
|
770
798
|
this.authService = inject(AuthService);
|
|
771
799
|
this.configStateService = inject(ConfigStateService);
|
|
772
800
|
this.modalOptions = { size: 'xl' };
|
|
773
|
-
this.isModalVisible = model(false,
|
|
774
|
-
|
|
775
|
-
this.
|
|
776
|
-
|
|
777
|
-
this.
|
|
778
|
-
}
|
|
779
|
-
hookToQuery() {
|
|
780
|
-
this.list
|
|
781
|
-
.hookToQuery(query => this.service.getList({
|
|
801
|
+
this.isModalVisible = model(false, /* @ts-ignore */
|
|
802
|
+
...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
803
|
+
this.selected = input.required(/* @ts-ignore */
|
|
804
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
805
|
+
this.data = toSignal(this.list.hookToQuery(query => this.service.getList({
|
|
782
806
|
userId: this.selected().id,
|
|
783
807
|
...query,
|
|
784
|
-
}))
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
808
|
+
})), {
|
|
809
|
+
initialValue: { items: [], totalCount: 0 },
|
|
810
|
+
});
|
|
811
|
+
this.sessionId = signal('', /* @ts-ignore */
|
|
812
|
+
...(ngDevMode ? [{ debugName: "sessionId" }] : /* istanbul ignore next */ []));
|
|
813
|
+
this.visibleSessionDetailModal = signal(false, /* @ts-ignore */
|
|
814
|
+
...(ngDevMode ? [{ debugName: "visibleSessionDetailModal" }] : /* istanbul ignore next */ []));
|
|
789
815
|
}
|
|
790
816
|
showDetail(row) {
|
|
791
817
|
this.visibleSessionDetailModal.set(true);
|
|
@@ -801,14 +827,14 @@ class UserSessionsComponent {
|
|
|
801
827
|
.pipe(switchMap(() => this.configStateService.refreshAppState()))
|
|
802
828
|
.subscribe();
|
|
803
829
|
}
|
|
804
|
-
this.
|
|
830
|
+
this.list.get();
|
|
805
831
|
}))))
|
|
806
832
|
.subscribe();
|
|
807
833
|
}
|
|
808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
809
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
834
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
835
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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
836
|
}
|
|
811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserSessionsComponent, decorators: [{
|
|
812
838
|
type: Component,
|
|
813
839
|
args: [{ selector: 'abp-user-sessions', imports: [
|
|
814
840
|
NgbDropdownModule,
|
|
@@ -830,9 +856,12 @@ class SetUserPasswordComponent {
|
|
|
830
856
|
this.injector = inject(Injector);
|
|
831
857
|
this.service = inject(IdentityUserService);
|
|
832
858
|
this.toasterService = inject(ToasterService);
|
|
833
|
-
this.selected = model({},
|
|
859
|
+
this.selected = model({}, /* @ts-ignore */
|
|
860
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
834
861
|
this.visibleChange = output();
|
|
835
862
|
this.isModalVisible = true;
|
|
863
|
+
this.showPassword = signal(false, /* @ts-ignore */
|
|
864
|
+
...(ngDevMode ? [{ debugName: "showPassword" }] : /* istanbul ignore next */ []));
|
|
836
865
|
}
|
|
837
866
|
ngOnInit() {
|
|
838
867
|
this.form = this.fb.group({
|
|
@@ -860,20 +889,22 @@ class SetUserPasswordComponent {
|
|
|
860
889
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
861
890
|
});
|
|
862
891
|
}
|
|
863
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
864
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
892
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SetUserPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
893
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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]=\"true\">\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 <input\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 [abpShowPassword]=\"showPassword()\"\r\n />\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn btn-secondary\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"showPassword.update(value => !value)\"\r\n >\r\n <i\r\n class=\"fa\"\r\n aria-hidden=\"true\"\r\n [class.fa-eye-slash]=\"!showPassword()\"\r\n [class.fa-eye]=\"showPassword()\"\r\n ></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary\"\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 </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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[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: "ngmodule", type: NgbTooltipModule }, { kind: "directive", type: i3.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "directive", type: ShowPasswordDirective, selector: "[abpShowPassword]", inputs: ["abpShowPassword"] }, { 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
894
|
}
|
|
866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SetUserPasswordComponent, decorators: [{
|
|
867
896
|
type: Component,
|
|
868
897
|
args: [{ selector: 'abp-set-user-password', imports: [
|
|
869
898
|
ReactiveFormsModule,
|
|
870
899
|
NgxValidateCoreModule,
|
|
900
|
+
NgbTooltipModule,
|
|
901
|
+
ShowPasswordDirective,
|
|
871
902
|
ModalCloseDirective,
|
|
872
903
|
AutofocusDirective,
|
|
873
904
|
LocalizationPipe,
|
|
874
905
|
ModalComponent,
|
|
875
906
|
ButtonComponent,
|
|
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 <
|
|
907
|
+
], 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]=\"true\">\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 <input\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 [abpShowPassword]=\"showPassword()\"\r\n />\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn btn-secondary\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"showPassword.update(value => !value)\"\r\n >\r\n <i\r\n class=\"fa\"\r\n aria-hidden=\"true\"\r\n [class.fa-eye-slash]=\"!showPassword()\"\r\n [class.fa-eye]=\"showPassword()\"\r\n ></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary\"\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 </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
908
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
878
909
|
|
|
879
910
|
class InviteUsersModalComponent {
|
|
@@ -885,10 +916,12 @@ class InviteUsersModalComponent {
|
|
|
885
916
|
this.list = inject((ListService));
|
|
886
917
|
this.destroyRef = inject(DestroyRef);
|
|
887
918
|
this.appName = computed(() => {
|
|
888
|
-
const { oAuthConfig: { responseType } } = this.environmentService.getEnvironment() || {};
|
|
919
|
+
const { oAuthConfig: { responseType }, } = this.environmentService.getEnvironment() || {};
|
|
889
920
|
return responseType === 'code' ? 'MVC' : 'Angular';
|
|
890
|
-
},
|
|
891
|
-
|
|
921
|
+
}, /* @ts-ignore */
|
|
922
|
+
...(ngDevMode ? [{ debugName: "appName" }] : /* istanbul ignore next */ []));
|
|
923
|
+
this.visible = model(false, /* @ts-ignore */
|
|
924
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
892
925
|
this.saved = output();
|
|
893
926
|
this.activeTab = 'invite';
|
|
894
927
|
this.busy = false;
|
|
@@ -897,8 +930,12 @@ class InviteUsersModalComponent {
|
|
|
897
930
|
this.roles = [];
|
|
898
931
|
this.selectedRoleName = null;
|
|
899
932
|
// Pending invitations tab
|
|
900
|
-
this.
|
|
901
|
-
this.
|
|
933
|
+
this.pendingQueryReady = false;
|
|
934
|
+
this.invitationData = toSignal(this.list.hookToQuery(query => this.pendingQueryReady
|
|
935
|
+
? this.userService.getPendingInvitations({ ...query })
|
|
936
|
+
: of({ items: [], totalCount: 0 })), {
|
|
937
|
+
initialValue: { items: [], totalCount: 0 },
|
|
938
|
+
});
|
|
902
939
|
this.modalOptions = { size: 'lg' };
|
|
903
940
|
}
|
|
904
941
|
ngOnInit() {
|
|
@@ -906,8 +943,9 @@ class InviteUsersModalComponent {
|
|
|
906
943
|
}
|
|
907
944
|
onTabChange(tabId) {
|
|
908
945
|
this.activeTab = tabId;
|
|
909
|
-
if (tabId === 'pending' && !this.
|
|
910
|
-
this.
|
|
946
|
+
if (tabId === 'pending' && !this.pendingQueryReady) {
|
|
947
|
+
this.pendingQueryReady = true;
|
|
948
|
+
this.list.get();
|
|
911
949
|
}
|
|
912
950
|
}
|
|
913
951
|
// ─── Invite Tab ───
|
|
@@ -942,7 +980,7 @@ class InviteUsersModalComponent {
|
|
|
942
980
|
}
|
|
943
981
|
this.emailText = '';
|
|
944
982
|
this.saved.emit();
|
|
945
|
-
if (this.
|
|
983
|
+
if (this.pendingQueryReady)
|
|
946
984
|
this.list.get();
|
|
947
985
|
});
|
|
948
986
|
}
|
|
@@ -953,13 +991,6 @@ class InviteUsersModalComponent {
|
|
|
953
991
|
.filter(email => email.length > 0);
|
|
954
992
|
}
|
|
955
993
|
// ─── 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
994
|
resend(row) {
|
|
964
995
|
this.busy = true;
|
|
965
996
|
this.userService
|
|
@@ -1003,10 +1034,10 @@ class InviteUsersModalComponent {
|
|
|
1003
1034
|
this.saved.emit();
|
|
1004
1035
|
});
|
|
1005
1036
|
}
|
|
1006
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1007
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", 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" }] }); }
|
|
1037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: InviteUsersModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1038
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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\r\n ngbNav\r\n #nav=\"ngbNav\"\r\n class=\"nav-tabs\"\r\n [(activeId)]=\"activeTab\"\r\n (activeIdChange)=\"onTabChange($event)\"\r\n >\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 type=\"button\" ngbDropdownItem (click)=\"selectedRoleName = role.name\">\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 class=\"btn btn-primary btn-sm dropdown-toggle\" ngbDropdownToggle>\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\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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[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
1039
|
}
|
|
1009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: InviteUsersModalComponent, decorators: [{
|
|
1010
1041
|
type: Component,
|
|
1011
1042
|
args: [{ selector: 'abp-invite-users-modal', providers: [ListService], imports: [
|
|
1012
1043
|
DatePipe,
|
|
@@ -1027,7 +1058,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1027
1058
|
ModalCloseDirective,
|
|
1028
1059
|
ButtonComponent,
|
|
1029
1060
|
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
|
|
1061
|
+
], 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\r\n ngbNav\r\n #nav=\"ngbNav\"\r\n class=\"nav-tabs\"\r\n [(activeId)]=\"activeTab\"\r\n (activeIdChange)=\"onTabChange($event)\"\r\n >\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 type=\"button\" ngbDropdownItem (click)=\"selectedRoleName = role.name\">\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 class=\"btn btn-primary btn-sm dropdown-toggle\" ngbDropdownToggle>\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\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
1062
|
}], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
|
|
1032
1063
|
|
|
1033
1064
|
const MODULES$1 = [FormsModule, ReactiveFormsModule, NgxValidateCoreModule];
|
|
@@ -1081,18 +1112,28 @@ class UsersComponent {
|
|
|
1081
1112
|
this.destroyRef = inject(DestroyRef);
|
|
1082
1113
|
this.list = inject((ListService));
|
|
1083
1114
|
this.service = inject(IdentityUserService);
|
|
1084
|
-
this.#roleCount = signal(0,
|
|
1085
|
-
|
|
1086
|
-
this.
|
|
1087
|
-
|
|
1088
|
-
this.
|
|
1115
|
+
this.#roleCount = signal(0, /* @ts-ignore */
|
|
1116
|
+
...(ngDevMode ? [{ debugName: "#roleCount" }] : /* istanbul ignore next */ []));
|
|
1117
|
+
this.roleCount = computed(() => this.#roleCount(), /* @ts-ignore */
|
|
1118
|
+
...(ngDevMode ? [{ debugName: "roleCount" }] : /* istanbul ignore next */ []));
|
|
1119
|
+
this.modalContent = viewChild('modalContent', /* @ts-ignore */
|
|
1120
|
+
...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
1121
|
+
this.visiblePermissions = signal(false, /* @ts-ignore */
|
|
1122
|
+
...(ngDevMode ? [{ debugName: "visiblePermissions" }] : /* istanbul ignore next */ []));
|
|
1089
1123
|
this.modalBusy = false;
|
|
1090
1124
|
this.visibleViewDetails = false;
|
|
1091
1125
|
this.visibleUploadFile = false;
|
|
1092
|
-
this.visibleSessionsModal = signal(false,
|
|
1126
|
+
this.visibleSessionsModal = signal(false, /* @ts-ignore */
|
|
1127
|
+
...(ngDevMode ? [{ debugName: "visibleSessionsModal" }] : /* istanbul ignore next */ []));
|
|
1093
1128
|
this.visibleClaims = false;
|
|
1094
1129
|
this.claimSubject = {};
|
|
1095
1130
|
this.filters = { notActive: false };
|
|
1131
|
+
this.data = toSignal(this.list.hookToQuery(query => this.service.getList({
|
|
1132
|
+
...query,
|
|
1133
|
+
...this.filters,
|
|
1134
|
+
})), {
|
|
1135
|
+
initialValue: { items: [], totalCount: 0 },
|
|
1136
|
+
});
|
|
1096
1137
|
this.organization = {
|
|
1097
1138
|
response: {},
|
|
1098
1139
|
nodes: [],
|
|
@@ -1112,7 +1153,7 @@ class UsersComponent {
|
|
|
1112
1153
|
this.trackByFn = (index, item) => Object.keys(item)[0] || index;
|
|
1113
1154
|
this.isFromOrgUnit = (roleId) => this.selectedOrganizationUnits.some(org => org.roles.some(f => f.roleId === roleId));
|
|
1114
1155
|
this.onVisiblePermissionChange = (value) => {
|
|
1115
|
-
this.visiblePermissions
|
|
1156
|
+
this.visiblePermissions.set(value);
|
|
1116
1157
|
};
|
|
1117
1158
|
}
|
|
1118
1159
|
#roleCount;
|
|
@@ -1120,6 +1161,26 @@ class UsersComponent {
|
|
|
1120
1161
|
const count = this.rawRoleNames.filter(obj => Object.values(obj).includes(true)).length;
|
|
1121
1162
|
this.#roleCount.set(count);
|
|
1122
1163
|
}
|
|
1164
|
+
syncPhoneNumberConfirmedControl() {
|
|
1165
|
+
this.phoneNumberConfirmedEffect?.destroy();
|
|
1166
|
+
const phoneNumberControl = this.form.controls['phoneNumber'];
|
|
1167
|
+
const phoneNumberConfirmedControl = this.form.controls['phoneNumberConfirmed'];
|
|
1168
|
+
if (!phoneNumberControl || !phoneNumberConfirmedControl) {
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
const hasPhoneNumber = toSignal(phoneNumberControl.valueChanges.pipe(startWith(phoneNumberControl.value), map$1(value => !!value?.trim()), distinctUntilChanged()), {
|
|
1172
|
+
initialValue: !!phoneNumberControl.value?.trim(),
|
|
1173
|
+
injector: this.injector,
|
|
1174
|
+
});
|
|
1175
|
+
this.phoneNumberConfirmedEffect = effect(() => {
|
|
1176
|
+
if (!hasPhoneNumber()) {
|
|
1177
|
+
phoneNumberConfirmedControl.patchValue(false, { emitEvent: false });
|
|
1178
|
+
phoneNumberConfirmedControl.disable({ emitEvent: false });
|
|
1179
|
+
return;
|
|
1180
|
+
}
|
|
1181
|
+
phoneNumberConfirmedControl.enable({ emitEvent: false });
|
|
1182
|
+
}, { ...(ngDevMode ? { debugName: "phoneNumberConfirmedEffect" } : /* istanbul ignore next */ {}), injector: this.injector });
|
|
1183
|
+
}
|
|
1123
1184
|
get rawRoleNames() {
|
|
1124
1185
|
return this.form.controls.roleNames?.getRawValue();
|
|
1125
1186
|
}
|
|
@@ -1131,24 +1192,14 @@ class UsersComponent {
|
|
|
1131
1192
|
this.twoFactor.isOptional =
|
|
1132
1193
|
this.configState.getFeature('Identity.TwoFactor') === key &&
|
|
1133
1194
|
this.configState.getSetting('Abp.Identity.TwoFactor.Behaviour') === key;
|
|
1134
|
-
this.hookToQuery();
|
|
1135
1195
|
}
|
|
1136
1196
|
clearFilters() {
|
|
1137
1197
|
this.filters = { notActive: false };
|
|
1138
1198
|
}
|
|
1139
|
-
hookToQuery() {
|
|
1140
|
-
this.list
|
|
1141
|
-
.hookToQuery(query => {
|
|
1142
|
-
return this.service.getList({
|
|
1143
|
-
...query,
|
|
1144
|
-
...this.filters,
|
|
1145
|
-
});
|
|
1146
|
-
})
|
|
1147
|
-
.subscribe(res => (this.data = res));
|
|
1148
|
-
}
|
|
1149
1199
|
buildForm() {
|
|
1150
1200
|
const data = new FormPropData(this.injector, this.selected);
|
|
1151
1201
|
this.form = generateFormFromProps(data);
|
|
1202
|
+
this.syncPhoneNumberConfirmedControl();
|
|
1152
1203
|
this.service.getAssignableRoles().subscribe(({ items }) => {
|
|
1153
1204
|
this.roles = items;
|
|
1154
1205
|
this.form.addControl('roleNames', this.fb.array(this.roles.map(role => this.fb.group({
|
|
@@ -1184,7 +1235,13 @@ class UsersComponent {
|
|
|
1184
1235
|
onEdit(id) {
|
|
1185
1236
|
this.service
|
|
1186
1237
|
.get(id)
|
|
1187
|
-
.pipe(tap$1(selectedUser => (this.selected = selectedUser)), switchMap$1(() =>
|
|
1238
|
+
.pipe(tap$1(selectedUser => (this.selected = selectedUser)), switchMap$1(() => forkJoin({
|
|
1239
|
+
roles: this.service.getRoles(id),
|
|
1240
|
+
organizationUnits: this.service.getOrganizationUnits(id),
|
|
1241
|
+
})), tap$1(({ roles, organizationUnits }) => {
|
|
1242
|
+
this.userRoles = roles.items || [];
|
|
1243
|
+
this.selectedOrganizationUnits = organizationUnits;
|
|
1244
|
+
}), take(1), takeUntilDestroyed(this.destroyRef))
|
|
1188
1245
|
.subscribe(() => this.openModal());
|
|
1189
1246
|
}
|
|
1190
1247
|
save() {
|
|
@@ -1249,9 +1306,7 @@ class UsersComponent {
|
|
|
1249
1306
|
openPermissionsModal(providerKey, userName) {
|
|
1250
1307
|
this.providerKey = providerKey;
|
|
1251
1308
|
this.entityDisplayName = userName;
|
|
1252
|
-
|
|
1253
|
-
this.visiblePermissions = true;
|
|
1254
|
-
}, 0);
|
|
1309
|
+
this.visiblePermissions.set(true);
|
|
1255
1310
|
}
|
|
1256
1311
|
setTwoFactor() {
|
|
1257
1312
|
this.modalBusy = true;
|
|
@@ -1305,17 +1360,17 @@ class UsersComponent {
|
|
|
1305
1360
|
setPasswordModalChange($event) {
|
|
1306
1361
|
this.isSetPasswordModalVisible = $event;
|
|
1307
1362
|
}
|
|
1308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1309
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1364
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: UsersComponent, isStandalone: true, selector: "abp-users", providers: [
|
|
1310
1365
|
ListService,
|
|
1311
1366
|
{
|
|
1312
1367
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1313
1368
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1314
1369
|
},
|
|
1315
1370
|
ExcelService,
|
|
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" }] }); }
|
|
1371
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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]=\"true\">\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\" [formGroup]=\"roleGroup\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControlName]=\"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 [(visible)]=\"isInviteModalVisible\" (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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[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.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: 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" }] }); }
|
|
1317
1372
|
}
|
|
1318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UsersComponent, decorators: [{
|
|
1319
1374
|
type: Component,
|
|
1320
1375
|
args: [{ selector: 'abp-users', providers: [
|
|
1321
1376
|
ListService,
|
|
@@ -1324,7 +1379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1324
1379
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1325
1380
|
},
|
|
1326
1381
|
ExcelService,
|
|
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" }]
|
|
1382
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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]=\"true\">\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\" [formGroup]=\"roleGroup\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControlName]=\"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 [(visible)]=\"isInviteModalVisible\" (saved)=\"list.get()\">\r\n </abp-invite-users-modal>\r\n}\r\n" }]
|
|
1328
1383
|
}], propDecorators: { modalContent: [{ type: i0.ViewChild, args: ['modalContent', { isSignal: true }] }] } });
|
|
1329
1384
|
|
|
1330
1385
|
class UserDropdownMenuComponent {
|
|
@@ -1345,10 +1400,10 @@ class UserDropdownMenuComponent {
|
|
|
1345
1400
|
uploadCsvFile() {
|
|
1346
1401
|
this.component.openUploadFileModal(ImportUsersFromFileType.Csv);
|
|
1347
1402
|
}
|
|
1348
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1349
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1403
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1404
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", 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" }] }); }
|
|
1350
1405
|
}
|
|
1351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: UserDropdownMenuComponent, decorators: [{
|
|
1352
1407
|
type: Component,
|
|
1353
1408
|
args: [{ selector: 'abp-user-dropdown-menu', imports: [
|
|
1354
1409
|
NgbDropdown,
|
|
@@ -1372,10 +1427,10 @@ class ExportDataDropdownComponent {
|
|
|
1372
1427
|
exportCSV() {
|
|
1373
1428
|
this.component.exportCSV();
|
|
1374
1429
|
}
|
|
1375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExportDataDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1431
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", 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" }] }); }
|
|
1377
1432
|
}
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ExportDataDropdownComponent, decorators: [{
|
|
1379
1434
|
type: Component,
|
|
1380
1435
|
args: [{ selector: 'abp-export-data-dropdown', imports: [
|
|
1381
1436
|
NgbDropdown,
|
|
@@ -1394,17 +1449,14 @@ class ClaimsComponent {
|
|
|
1394
1449
|
this.confirmationService = inject(ConfirmationService);
|
|
1395
1450
|
this.injector = inject(Injector);
|
|
1396
1451
|
this.toasterService = inject(ToasterService);
|
|
1397
|
-
this.data =
|
|
1398
|
-
|
|
1452
|
+
this.data = toSignal(this.list.hookToQuery(query => this.service.getList(query)), {
|
|
1453
|
+
initialValue: { items: [], totalCount: 0 },
|
|
1454
|
+
});
|
|
1455
|
+
this.modalContent = viewChild('modalContent', /* @ts-ignore */
|
|
1456
|
+
...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
1399
1457
|
this.modalBusy = false;
|
|
1400
1458
|
this.trackByFn = (index, item) => Object.keys(item)[0] || index;
|
|
1401
1459
|
}
|
|
1402
|
-
ngOnInit() {
|
|
1403
|
-
this.hookToQuery();
|
|
1404
|
-
}
|
|
1405
|
-
hookToQuery() {
|
|
1406
|
-
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
|
|
1407
|
-
}
|
|
1408
1460
|
buildForm() {
|
|
1409
1461
|
const data = new FormPropData(this.injector, this.selected);
|
|
1410
1462
|
this.form = generateFormFromProps(data);
|
|
@@ -1469,16 +1521,16 @@ class ClaimsComponent {
|
|
|
1469
1521
|
}
|
|
1470
1522
|
});
|
|
1471
1523
|
}
|
|
1472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1524
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ClaimsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1525
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: ClaimsComponent, isStandalone: true, selector: "abp-claims", providers: [
|
|
1474
1526
|
ListService,
|
|
1475
1527
|
{
|
|
1476
1528
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1477
1529
|
useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
1478
1530
|
},
|
|
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
|
|
1531
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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]=\"true\">\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" }] }); }
|
|
1480
1532
|
}
|
|
1481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ClaimsComponent, decorators: [{
|
|
1482
1534
|
type: Component,
|
|
1483
1535
|
args: [{ selector: 'abp-claims', providers: [
|
|
1484
1536
|
ListService,
|
|
@@ -1498,7 +1550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1498
1550
|
PageComponent,
|
|
1499
1551
|
ModalComponent,
|
|
1500
1552
|
ButtonComponent,
|
|
1501
|
-
], 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
|
|
1553
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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]=\"true\">\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" }]
|
|
1502
1554
|
}], propDecorators: { modalContent: [{ type: i0.ViewChild, args: ['modalContent', { isSignal: true }] }] } });
|
|
1503
1555
|
|
|
1504
1556
|
/* eslint-disable @angular-eslint/no-output-on-prefix */
|
|
@@ -1512,14 +1564,31 @@ class AbstractOrganizationUnitComponent {
|
|
|
1512
1564
|
this.list = inject(ListService);
|
|
1513
1565
|
this.toasterService = inject(ToasterService);
|
|
1514
1566
|
this.#destroyRef = inject(DestroyRef);
|
|
1515
|
-
this.selectedOrganizationUnit = input(undefined,
|
|
1516
|
-
|
|
1517
|
-
this.currentOrganizationUnits =
|
|
1567
|
+
this.selectedOrganizationUnit = input(undefined, /* @ts-ignore */
|
|
1568
|
+
...(ngDevMode ? [{ debugName: "selectedOrganizationUnit" }] : /* istanbul ignore next */ []));
|
|
1569
|
+
this.currentOrganizationUnits = toSignal(this.list.hookToQuery(query => {
|
|
1570
|
+
const selectedOrganizationUnit = this.selectedOrganizationUnit();
|
|
1571
|
+
if (!selectedOrganizationUnit) {
|
|
1572
|
+
return of({ items: [], totalCount: 0 });
|
|
1573
|
+
}
|
|
1574
|
+
return this.organizationUnitService[this.config.getCurrentUnitsMethodName](selectedOrganizationUnit.id, query).pipe(tap$1((response) => {
|
|
1575
|
+
this.checkedUnits = {};
|
|
1576
|
+
response.items.forEach((item) => {
|
|
1577
|
+
this.checkedUnits[item.id] = true;
|
|
1578
|
+
});
|
|
1579
|
+
}));
|
|
1580
|
+
}), {
|
|
1581
|
+
initialValue: { items: [], totalCount: 0 },
|
|
1582
|
+
});
|
|
1518
1583
|
this.checkedUnits = {};
|
|
1584
|
+
this.isModalVisible = signal(false, /* @ts-ignore */
|
|
1585
|
+
...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
1586
|
+
this.isModalBusy = signal(false, /* @ts-ignore */
|
|
1587
|
+
...(ngDevMode ? [{ debugName: "isModalBusy" }] : /* istanbul ignore next */ []));
|
|
1519
1588
|
this.onAdded = output();
|
|
1520
1589
|
this.onDeleted = output();
|
|
1521
1590
|
this.isCheckboxDisabled = (id) => {
|
|
1522
|
-
return this.currentOrganizationUnits.items.findIndex((item) => item.id === id) > -1;
|
|
1591
|
+
return (this.currentOrganizationUnits().items.findIndex((item) => item.id === id) > -1);
|
|
1523
1592
|
};
|
|
1524
1593
|
this.list.maxResultCount = 1000;
|
|
1525
1594
|
effect(() => {
|
|
@@ -1527,33 +1596,17 @@ class AbstractOrganizationUnitComponent {
|
|
|
1527
1596
|
if (!selectedOrganizationUnit) {
|
|
1528
1597
|
return;
|
|
1529
1598
|
}
|
|
1530
|
-
if (!this.hasHookedQuery) {
|
|
1531
|
-
this.hookToQuery();
|
|
1532
|
-
this.hasHookedQuery = true;
|
|
1533
|
-
return;
|
|
1534
|
-
}
|
|
1535
1599
|
this.list.get();
|
|
1536
1600
|
});
|
|
1537
1601
|
}
|
|
1538
|
-
hookToQuery() {
|
|
1539
|
-
this.list
|
|
1540
|
-
.hookToQuery(query => this.organizationUnitService[this.config.getCurrentUnitsMethodName](this.selectedOrganizationUnit().id, query))
|
|
1541
|
-
.subscribe((response) => {
|
|
1542
|
-
this.currentOrganizationUnits = response;
|
|
1543
|
-
this.checkedUnits = {};
|
|
1544
|
-
response.items.forEach((item) => {
|
|
1545
|
-
this.checkedUnits[item.id] = true;
|
|
1546
|
-
});
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
1602
|
addUnits() {
|
|
1550
|
-
this.isModalBusy
|
|
1603
|
+
this.isModalBusy.set(true);
|
|
1551
1604
|
this.organizationUnitService[this.config.addUnitsMethodName](this.selectedOrganizationUnit().id, {
|
|
1552
1605
|
[this.config.addUnitsBodyPropName]: Object.keys(this.checkedUnits).filter(i => this.checkedUnits[i] === true),
|
|
1553
1606
|
})
|
|
1554
|
-
.pipe(finalize(() =>
|
|
1607
|
+
.pipe(defaultIfEmpty(null), finalize(() => this.isModalBusy.set(false)))
|
|
1555
1608
|
.subscribe(() => {
|
|
1556
|
-
this.isModalVisible
|
|
1609
|
+
this.isModalVisible.set(false);
|
|
1557
1610
|
this.list.get();
|
|
1558
1611
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
1559
1612
|
this.onAdded.emit(undefined);
|
|
@@ -1564,7 +1617,7 @@ class AbstractOrganizationUnitComponent {
|
|
|
1564
1617
|
.warn(this.config.deletionLocalizationKey, 'AbpUi::AreYouSure', {
|
|
1565
1618
|
messageLocalizationParams: [unitName, this.selectedOrganizationUnit().displayName],
|
|
1566
1619
|
})
|
|
1567
|
-
.pipe(filter$1(status => status === Confirmation.Status.confirm), switchMap$1(() => this.organizationUnitService[this.config.deleteMethodName](this.selectedOrganizationUnit().id, unitId)), tap$1(() => this.list.get()), takeUntilDestroyed(this.#destroyRef))
|
|
1620
|
+
.pipe(filter$1(status => status === Confirmation.Status.confirm), switchMap$1(() => this.organizationUnitService[this.config.deleteMethodName](this.selectedOrganizationUnit().id, unitId)), defaultIfEmpty(null), tap$1(() => this.list.get()), takeUntilDestroyed(this.#destroyRef))
|
|
1568
1621
|
.subscribe(() => {
|
|
1569
1622
|
this.toasterService.success('AbpUi::DeletedSuccessfully');
|
|
1570
1623
|
this.onDeleted.emit(undefined);
|
|
@@ -1572,12 +1625,12 @@ class AbstractOrganizationUnitComponent {
|
|
|
1572
1625
|
}
|
|
1573
1626
|
openModal() {
|
|
1574
1627
|
this.list.get();
|
|
1575
|
-
this.isModalVisible
|
|
1628
|
+
this.isModalVisible.set(true);
|
|
1576
1629
|
}
|
|
1577
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1578
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1630
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1631
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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 }); }
|
|
1579
1632
|
}
|
|
1580
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
|
|
1581
1634
|
type: Component,
|
|
1582
1635
|
args: [{ template: '' }]
|
|
1583
1636
|
}], 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"] }] } });
|
|
@@ -1609,8 +1662,10 @@ class DeleteOrganizationUnitComponent {
|
|
|
1609
1662
|
organizationUnitId: [null],
|
|
1610
1663
|
}, { validators: [OrganizationUnitDeleteValidator()] });
|
|
1611
1664
|
this.deleted = output();
|
|
1612
|
-
this.#isSubmitted = signal(false,
|
|
1613
|
-
|
|
1665
|
+
this.#isSubmitted = signal(false, /* @ts-ignore */
|
|
1666
|
+
...(ngDevMode ? [{ debugName: "#isSubmitted" }] : /* istanbul ignore next */ []));
|
|
1667
|
+
this.deleteLoading = signal(false, /* @ts-ignore */
|
|
1668
|
+
...(ngDevMode ? [{ debugName: "deleteLoading" }] : /* istanbul ignore next */ []));
|
|
1614
1669
|
}
|
|
1615
1670
|
#fb;
|
|
1616
1671
|
#trackByService;
|
|
@@ -1647,16 +1702,21 @@ class DeleteOrganizationUnitComponent {
|
|
|
1647
1702
|
return;
|
|
1648
1703
|
}
|
|
1649
1704
|
this.deleteLoading.set(true);
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1705
|
+
try {
|
|
1706
|
+
const newParentId = this.form.value.organizationUnitId;
|
|
1707
|
+
const del$ = this.service.deleteTheUnit(newParentId);
|
|
1708
|
+
await firstValueFrom(del$, { defaultValue: null });
|
|
1709
|
+
this.deleted.emit(undefined);
|
|
1710
|
+
this.service.closeDeleteModal();
|
|
1711
|
+
}
|
|
1712
|
+
finally {
|
|
1713
|
+
this.deleteLoading.set(false);
|
|
1714
|
+
}
|
|
1655
1715
|
}
|
|
1656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1657
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1717
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio]:not([ngNoCva])[formControlName],input[type=radio]:not([ngNoCva])[formControl],input[type=radio]:not([ngNoCva])[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 }); }
|
|
1658
1718
|
}
|
|
1659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DeleteOrganizationUnitComponent, decorators: [{
|
|
1660
1720
|
type: Component,
|
|
1661
1721
|
args: [{ selector: 'abp-delete-organization-unit', imports: [
|
|
1662
1722
|
FormsModule,
|
|
@@ -1694,15 +1754,15 @@ class MoveAllUsersOfUnitComponent {
|
|
|
1694
1754
|
}
|
|
1695
1755
|
const { selectedOrganizationUnit } = this.form.value;
|
|
1696
1756
|
const moved$ = this.service.moveTheUnit(selectedOrganizationUnit);
|
|
1697
|
-
await firstValueFrom(moved
|
|
1757
|
+
await firstValueFrom(moved$, { defaultValue: null });
|
|
1698
1758
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
1699
1759
|
this.moved.emit();
|
|
1700
1760
|
this.service.closeMoveModal();
|
|
1701
1761
|
}
|
|
1702
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1703
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1762
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersOfUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1763
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[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" }] }); }
|
|
1704
1764
|
}
|
|
1705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersOfUnitComponent, decorators: [{
|
|
1706
1766
|
type: Component,
|
|
1707
1767
|
args: [{ selector: 'abp-move-all-users-of-unit', imports: [
|
|
1708
1768
|
ReactiveFormsModule,
|
|
@@ -1717,18 +1777,12 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1717
1777
|
constructor() {
|
|
1718
1778
|
this.list = inject((ListService));
|
|
1719
1779
|
this.userService = inject(IdentityUserService);
|
|
1720
|
-
this.checkedUnits = model({},
|
|
1721
|
-
|
|
1722
|
-
this.
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
}
|
|
1727
|
-
hookToQuery() {
|
|
1728
|
-
this.list
|
|
1729
|
-
.hookToQuery(query => this.userService.getList(query))
|
|
1730
|
-
.subscribe(response => {
|
|
1731
|
-
this.allUnits = response;
|
|
1780
|
+
this.checkedUnits = model({}, /* @ts-ignore */
|
|
1781
|
+
...(ngDevMode ? [{ debugName: "checkedUnits" }] : /* istanbul ignore next */ []));
|
|
1782
|
+
this.isCheckboxDisabled = input(undefined, /* @ts-ignore */
|
|
1783
|
+
...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : /* istanbul ignore next */ []));
|
|
1784
|
+
this.allUnits = toSignal(this.list.hookToQuery(query => this.userService.getList(query)), {
|
|
1785
|
+
initialValue: { items: [], totalCount: 0 },
|
|
1732
1786
|
});
|
|
1733
1787
|
}
|
|
1734
1788
|
onTableSelect(event) {
|
|
@@ -1741,8 +1795,8 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1741
1795
|
onUnitCheckChange(id, value) {
|
|
1742
1796
|
this.checkedUnits.set({ ...this.checkedUnits(), [id]: value });
|
|
1743
1797
|
}
|
|
1744
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1745
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1799
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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: `
|
|
1746
1800
|
<div id="data-tables-table-filter" class="data-tables-filter mb-3">
|
|
1747
1801
|
<div class="input-group">
|
|
1748
1802
|
<input
|
|
@@ -1757,8 +1811,8 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1757
1811
|
<div class="card">
|
|
1758
1812
|
<abp-extensible-table
|
|
1759
1813
|
actionsText=""
|
|
1760
|
-
[data]="allUnits.items"
|
|
1761
|
-
[recordsTotal]="allUnits.totalCount"
|
|
1814
|
+
[data]="allUnits().items"
|
|
1815
|
+
[recordsTotal]="allUnits().totalCount"
|
|
1762
1816
|
[actionsColumnWidth]="38"
|
|
1763
1817
|
[actionsTemplate]="customAction"
|
|
1764
1818
|
[list]="list"
|
|
@@ -1775,9 +1829,9 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1775
1829
|
[disabled]="isCheckboxDisabled()(row.id)"
|
|
1776
1830
|
/>
|
|
1777
1831
|
</ng-template>
|
|
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" }] }); }
|
|
1832
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[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" }] }); }
|
|
1779
1833
|
}
|
|
1780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
|
|
1781
1835
|
type: Component,
|
|
1782
1836
|
args: [{
|
|
1783
1837
|
selector: 'abp-organization-members-modal-body',
|
|
@@ -1796,8 +1850,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1796
1850
|
<div class="card">
|
|
1797
1851
|
<abp-extensible-table
|
|
1798
1852
|
actionsText=""
|
|
1799
|
-
[data]="allUnits.items"
|
|
1800
|
-
[recordsTotal]="allUnits.totalCount"
|
|
1853
|
+
[data]="allUnits().items"
|
|
1854
|
+
[recordsTotal]="allUnits().totalCount"
|
|
1801
1855
|
[actionsColumnWidth]="38"
|
|
1802
1856
|
[actionsTemplate]="customAction"
|
|
1803
1857
|
[list]="list"
|
|
@@ -1824,17 +1878,17 @@ class SelectedOrganizationUnitComponent {
|
|
|
1824
1878
|
constructor() {
|
|
1825
1879
|
this.organizationUnitsStateService = inject(OrganizationUnitsStateService);
|
|
1826
1880
|
}
|
|
1827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1828
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SelectedOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1882
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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" }] }); }
|
|
1829
1883
|
}
|
|
1830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SelectedOrganizationUnitComponent, decorators: [{
|
|
1831
1885
|
type: Component,
|
|
1832
1886
|
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" }]
|
|
1833
1887
|
}] });
|
|
1834
1888
|
|
|
1835
1889
|
class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
1836
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1837
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1890
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1891
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: OrganizationMembersComponent, isStandalone: true, selector: "abp-organization-members", providers: [
|
|
1838
1892
|
ListService,
|
|
1839
1893
|
{
|
|
1840
1894
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1850,9 +1904,9 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1850
1904
|
deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
|
|
1851
1905
|
},
|
|
1852
1906
|
},
|
|
1853
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <abp-selected-organization-unit
|
|
1907
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <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\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits().items\"\r\n [recordsTotal]=\"currentOrganizationUnits().totalCount\"\r\n [list]=\"list\"\r\n/>\r\n\r\n<abp-modal\r\n [visible]=\"isModalVisible()\"\r\n (visibleChange)=\"isModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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 />\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" }] }); }
|
|
1854
1908
|
}
|
|
1855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
|
|
1856
1910
|
type: Component,
|
|
1857
1911
|
args: [{ selector: 'abp-organization-members', providers: [
|
|
1858
1912
|
ListService,
|
|
@@ -1878,25 +1932,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1878
1932
|
OrganizationMembersModalBodyComponent,
|
|
1879
1933
|
ModalComponent,
|
|
1880
1934
|
ButtonComponent,
|
|
1881
|
-
], template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <abp-selected-organization-unit
|
|
1935
|
+
], template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <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\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits().items\"\r\n [recordsTotal]=\"currentOrganizationUnits().totalCount\"\r\n [list]=\"list\"\r\n/>\r\n\r\n<abp-modal\r\n [visible]=\"isModalVisible()\"\r\n (visibleChange)=\"isModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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 />\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" }]
|
|
1882
1936
|
}] });
|
|
1883
1937
|
|
|
1884
1938
|
class OrganizationRolesModalBodyComponent {
|
|
1885
1939
|
constructor() {
|
|
1886
1940
|
this.list = inject((ListService));
|
|
1887
1941
|
this.roleService = inject(IdentityRoleService);
|
|
1888
|
-
this.checkedUnits = model({},
|
|
1889
|
-
|
|
1890
|
-
this.
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
hookToQuery() {
|
|
1896
|
-
this.list
|
|
1897
|
-
.hookToQuery(query => this.roleService.getList(query))
|
|
1898
|
-
.subscribe(response => {
|
|
1899
|
-
this.allUnits = response;
|
|
1942
|
+
this.checkedUnits = model({}, /* @ts-ignore */
|
|
1943
|
+
...(ngDevMode ? [{ debugName: "checkedUnits" }] : /* istanbul ignore next */ []));
|
|
1944
|
+
this.isCheckboxDisabled = input(undefined, /* @ts-ignore */
|
|
1945
|
+
...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : /* istanbul ignore next */ []));
|
|
1946
|
+
this.allUnits = toSignal(this.list.hookToQuery(query => this.roleService.getList(query)), {
|
|
1947
|
+
initialValue: { items: [], totalCount: 0 },
|
|
1900
1948
|
});
|
|
1901
1949
|
}
|
|
1902
1950
|
onTableSelect(event) {
|
|
@@ -1909,13 +1957,13 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1909
1957
|
onUnitCheckChange(id, value) {
|
|
1910
1958
|
this.checkedUnits.set({ ...this.checkedUnits(), [id]: value });
|
|
1911
1959
|
}
|
|
1912
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1913
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1960
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1961
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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: `
|
|
1914
1962
|
<div class="card">
|
|
1915
1963
|
<abp-extensible-table
|
|
1916
1964
|
actionsText=""
|
|
1917
|
-
[data]="allUnits.items"
|
|
1918
|
-
[recordsTotal]="allUnits.totalCount"
|
|
1965
|
+
[data]="allUnits().items"
|
|
1966
|
+
[recordsTotal]="allUnits().totalCount"
|
|
1919
1967
|
[actionsColumnWidth]="38"
|
|
1920
1968
|
[actionsTemplate]="customAction"
|
|
1921
1969
|
[list]="list"
|
|
@@ -1932,9 +1980,9 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1932
1980
|
[disabled]="isCheckboxDisabled()(row.id)"
|
|
1933
1981
|
/>
|
|
1934
1982
|
</ng-template>
|
|
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"] }] }); }
|
|
1983
|
+
`, 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]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[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"] }] }); }
|
|
1936
1984
|
}
|
|
1937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
|
|
1938
1986
|
type: Component,
|
|
1939
1987
|
args: [{
|
|
1940
1988
|
selector: 'abp-organization-roles-modal-body',
|
|
@@ -1942,8 +1990,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1942
1990
|
<div class="card">
|
|
1943
1991
|
<abp-extensible-table
|
|
1944
1992
|
actionsText=""
|
|
1945
|
-
[data]="allUnits.items"
|
|
1946
|
-
[recordsTotal]="allUnits.totalCount"
|
|
1993
|
+
[data]="allUnits().items"
|
|
1994
|
+
[recordsTotal]="allUnits().totalCount"
|
|
1947
1995
|
[actionsColumnWidth]="38"
|
|
1948
1996
|
[actionsTemplate]="customAction"
|
|
1949
1997
|
[list]="list"
|
|
@@ -1967,8 +2015,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1967
2015
|
}], 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 }] }] } });
|
|
1968
2016
|
|
|
1969
2017
|
class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
1970
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1971
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2019
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: OrganizationRolesComponent, isStandalone: true, selector: "abp-organization-roles", providers: [
|
|
1972
2020
|
ListService,
|
|
1973
2021
|
{
|
|
1974
2022
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1984,9 +2032,9 @@ class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
|
1984
2032
|
deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
|
|
1985
2033
|
},
|
|
1986
2034
|
},
|
|
1987
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit
|
|
2035
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <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/>\r\n\r\n<abp-modal\r\n [visible]=\"isModalVisible()\"\r\n (visibleChange)=\"isModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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 />\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" }] }); }
|
|
1988
2036
|
}
|
|
1989
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
|
|
1990
2038
|
type: Component,
|
|
1991
2039
|
args: [{ selector: 'abp-organization-roles', providers: [
|
|
1992
2040
|
ListService,
|
|
@@ -2012,7 +2060,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2012
2060
|
OrganizationRolesModalBodyComponent,
|
|
2013
2061
|
ModalComponent,
|
|
2014
2062
|
ButtonComponent,
|
|
2015
|
-
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit
|
|
2063
|
+
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <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/>\r\n\r\n<abp-modal\r\n [visible]=\"isModalVisible()\"\r\n (visibleChange)=\"isModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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 />\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" }]
|
|
2016
2064
|
}] });
|
|
2017
2065
|
|
|
2018
2066
|
const MODULES = [FormsModule, ReactiveFormsModule, NgxValidateCoreModule];
|
|
@@ -2060,13 +2108,19 @@ class OrganizationUnitsComponent {
|
|
|
2060
2108
|
this.organizationUnits = [];
|
|
2061
2109
|
this.nodes = [];
|
|
2062
2110
|
this.expandedKeys = [];
|
|
2111
|
+
this.isNodeModalVisible = signal(false, /* @ts-ignore */
|
|
2112
|
+
...(ngDevMode ? [{ debugName: "isNodeModalVisible" }] : /* istanbul ignore next */ []));
|
|
2113
|
+
this.isModalBusy = signal(false, /* @ts-ignore */
|
|
2114
|
+
...(ngDevMode ? [{ debugName: "isModalBusy" }] : /* istanbul ignore next */ []));
|
|
2063
2115
|
this.organizationMembersKey = "Identity.OrganizationMembersComponent" /* eIdentityComponents.OrganizationMembers */;
|
|
2064
2116
|
this.organizationRolesKey = "Identity.OrganizationRolesComponent" /* eIdentityComponents.OrganizationRoles */;
|
|
2117
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
2118
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2065
2119
|
this.get = () => {
|
|
2066
|
-
this.loading
|
|
2120
|
+
this.loading.set(true);
|
|
2067
2121
|
this.service
|
|
2068
2122
|
.getListAll()
|
|
2069
|
-
.pipe(finalize(() =>
|
|
2123
|
+
.pipe(finalize(() => this.loading.set(false)))
|
|
2070
2124
|
.subscribe((res) => {
|
|
2071
2125
|
this.organizationUnits = res.items;
|
|
2072
2126
|
this.refreshSelectedUnit();
|
|
@@ -2102,7 +2156,8 @@ class OrganizationUnitsComponent {
|
|
|
2102
2156
|
}
|
|
2103
2157
|
add() {
|
|
2104
2158
|
this.buildForm();
|
|
2105
|
-
this.
|
|
2159
|
+
this.isModalBusy.set(false);
|
|
2160
|
+
this.isNodeModalVisible.set(true);
|
|
2106
2161
|
}
|
|
2107
2162
|
edit(selected) {
|
|
2108
2163
|
this.buildForm(selected);
|
|
@@ -2111,26 +2166,30 @@ class OrganizationUnitsComponent {
|
|
|
2111
2166
|
displayName: selected.displayName,
|
|
2112
2167
|
id: selected.id,
|
|
2113
2168
|
});
|
|
2114
|
-
this.
|
|
2169
|
+
this.isModalBusy.set(false);
|
|
2170
|
+
this.isNodeModalVisible.set(true);
|
|
2115
2171
|
}
|
|
2116
2172
|
addSubUnit({ id }) {
|
|
2117
2173
|
this.buildForm();
|
|
2118
2174
|
this.nodeForm.patchValue({ parentId: id, displayName: '', id: undefined });
|
|
2119
|
-
this.
|
|
2175
|
+
this.isModalBusy.set(false);
|
|
2176
|
+
this.isNodeModalVisible.set(true);
|
|
2120
2177
|
this.expandedKeys = this.expandedKeys.concat(id);
|
|
2121
2178
|
}
|
|
2122
2179
|
save() {
|
|
2123
|
-
if (this.nodeForm.invalid)
|
|
2180
|
+
if (this.isModalBusy() || this.nodeForm.invalid)
|
|
2124
2181
|
return;
|
|
2125
2182
|
const { id, ...form } = this.nodeForm.value;
|
|
2126
2183
|
const request = id
|
|
2127
2184
|
? this.service.update(id, form)
|
|
2128
2185
|
: this.service.create(form);
|
|
2129
2186
|
const message = 'AbpUi::SavedSuccessfully';
|
|
2130
|
-
this.isModalBusy
|
|
2131
|
-
request
|
|
2187
|
+
this.isModalBusy.set(true);
|
|
2188
|
+
request
|
|
2189
|
+
.pipe(defaultIfEmpty(null), finalize(() => this.isModalBusy.set(false)))
|
|
2190
|
+
.subscribe(() => {
|
|
2132
2191
|
this.get();
|
|
2133
|
-
this.isNodeModalVisible
|
|
2192
|
+
this.isNodeModalVisible.set(false);
|
|
2134
2193
|
this.toasterService.success(message);
|
|
2135
2194
|
});
|
|
2136
2195
|
}
|
|
@@ -2153,7 +2212,10 @@ class OrganizationUnitsComponent {
|
|
|
2153
2212
|
this.move(event.dragNode.key, parentId);
|
|
2154
2213
|
}
|
|
2155
2214
|
move(id, newParentId) {
|
|
2156
|
-
this.service
|
|
2215
|
+
this.service
|
|
2216
|
+
.move(id, { newParentId })
|
|
2217
|
+
.pipe(defaultIfEmpty(null))
|
|
2218
|
+
.subscribe(() => this.get());
|
|
2157
2219
|
}
|
|
2158
2220
|
setSelectedUnit(value) {
|
|
2159
2221
|
this.organizationUnitsStateService.setSelectedUnit(value);
|
|
@@ -2170,17 +2232,17 @@ class OrganizationUnitsComponent {
|
|
|
2170
2232
|
moveAllUsers(selected) {
|
|
2171
2233
|
this.moveAllUsersOfUnitModalService.openMoveModal(selected);
|
|
2172
2234
|
}
|
|
2173
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2174
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationUnitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2236
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: OrganizationUnitsComponent, isStandalone: true, selector: "abp-organization-units", providers: [
|
|
2175
2237
|
{
|
|
2176
2238
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2177
2239
|
useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
|
|
2178
2240
|
},
|
|
2179
2241
|
DeleteOrganizationUnitService,
|
|
2180
2242
|
MoveAllUsersOfUnitModalService,
|
|
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" }] }); }
|
|
2243
|
+
], 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=\"'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\"\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\r\n [visible]=\"isNodeModalVisible()\"\r\n (visibleChange)=\"isNodeModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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]=\"true\">\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" }] }); }
|
|
2182
2244
|
}
|
|
2183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
|
|
2184
2246
|
type: Component,
|
|
2185
2247
|
args: [{ selector: 'abp-organization-units', providers: [
|
|
2186
2248
|
{
|
|
@@ -2189,20 +2251,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2189
2251
|
},
|
|
2190
2252
|
DeleteOrganizationUnitService,
|
|
2191
2253
|
MoveAllUsersOfUnitModalService,
|
|
2192
|
-
], imports: [...MODULES, ...DIRECTIVES, ...PIPES, ...COMPONENTS, ...BOOTSTRAP], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"
|
|
2254
|
+
], imports: [...MODULES, ...DIRECTIVES, ...PIPES, ...COMPONENTS, ...BOOTSTRAP], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading()\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading() && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\"\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\r\n [visible]=\"isNodeModalVisible()\"\r\n (visibleChange)=\"isNodeModalVisible.set($event)\"\r\n [busy]=\"isModalBusy()\"\r\n>\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]=\"true\">\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"] }]
|
|
2193
2255
|
}] });
|
|
2194
2256
|
|
|
2195
2257
|
class MoveAllUsersComponent {
|
|
2196
2258
|
constructor() {
|
|
2197
|
-
this.visible = input.required(
|
|
2198
|
-
|
|
2259
|
+
this.visible = input.required(/* @ts-ignore */
|
|
2260
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2261
|
+
this.selected = input.required(/* @ts-ignore */
|
|
2262
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2199
2263
|
this.visibleChange = output();
|
|
2200
|
-
this.loading = signal(false,
|
|
2201
|
-
|
|
2264
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
2265
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2266
|
+
this.#roles = signal([], /* @ts-ignore */
|
|
2267
|
+
...(ngDevMode ? [{ debugName: "#roles" }] : /* istanbul ignore next */ []));
|
|
2202
2268
|
this.roles = computed(() => this.#roles().filter(e => {
|
|
2203
2269
|
const selected = this.selected();
|
|
2204
2270
|
return !selected || e.id !== selected?.id;
|
|
2205
|
-
}),
|
|
2271
|
+
}), /* @ts-ignore */
|
|
2272
|
+
...(ngDevMode ? [{ debugName: "roles" }] : /* istanbul ignore next */ []));
|
|
2206
2273
|
this.trackByService = inject(TrackByService);
|
|
2207
2274
|
this.trackByFn = this.trackByService.by('id');
|
|
2208
2275
|
this.service = inject(IdentityRoleService);
|
|
@@ -2245,10 +2312,10 @@ class MoveAllUsersComponent {
|
|
|
2245
2312
|
this.loading.set(false);
|
|
2246
2313
|
}
|
|
2247
2314
|
}
|
|
2248
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2249
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2316
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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\r\n [visible]=\"visible()\"\r\n [busy]=\"loading()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <p [innerHTML]=\"'AbpIdentity::MoveAllUsersWithRoleTo' | abpLocalization: name\"></p>\r\n <form [formGroup]=\"form\" id=\"role-move-users-form\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"role\">\r\n <option value=\"\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::UnassignRole')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">{{ item.name }}</option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"btn btn-primary\"\r\n [disabled]=\"loading() || (form.invalid && form.touched)\"\r\n form=\"role-move-users-form\"\r\n >\r\n <i class=\"fa fa-check me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[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" }] }); }
|
|
2250
2317
|
}
|
|
2251
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: MoveAllUsersComponent, decorators: [{
|
|
2252
2319
|
type: Component,
|
|
2253
2320
|
args: [{ selector: 'abp-move-all-users', imports: [
|
|
2254
2321
|
FormsModule,
|
|
@@ -2257,7 +2324,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2257
2324
|
ModalCloseDirective,
|
|
2258
2325
|
LocalizationPipe,
|
|
2259
2326
|
ModalComponent,
|
|
2260
|
-
], 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\"\
|
|
2327
|
+
], template: "<abp-modal\r\n [visible]=\"visible()\"\r\n [busy]=\"loading()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <p [innerHTML]=\"'AbpIdentity::MoveAllUsersWithRoleTo' | abpLocalization: name\"></p>\r\n <form [formGroup]=\"form\" id=\"role-move-users-form\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"role\">\r\n <option value=\"\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::UnassignRole')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">{{ item.name }}</option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"btn btn-primary\"\r\n [disabled]=\"loading() || (form.invalid && form.touched)\"\r\n form=\"role-move-users-form\"\r\n >\r\n <i class=\"fa fa-check me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2261
2328
|
}], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: true }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: true }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
2262
2329
|
|
|
2263
2330
|
function RoleDeleteValidator() {
|
|
@@ -2276,16 +2343,22 @@ function RoleDeleteValidator() {
|
|
|
2276
2343
|
|
|
2277
2344
|
class RoleDeleteComponent {
|
|
2278
2345
|
constructor() {
|
|
2279
|
-
this.visible = input.required(
|
|
2280
|
-
|
|
2346
|
+
this.visible = input.required(/* @ts-ignore */
|
|
2347
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2348
|
+
this.selected = input.required(/* @ts-ignore */
|
|
2349
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2281
2350
|
this.visibleChange = output();
|
|
2282
|
-
this.#isSubmitted = signal(false,
|
|
2283
|
-
|
|
2284
|
-
this
|
|
2351
|
+
this.#isSubmitted = signal(false, /* @ts-ignore */
|
|
2352
|
+
...(ngDevMode ? [{ debugName: "#isSubmitted" }] : /* istanbul ignore next */ []));
|
|
2353
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
2354
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2355
|
+
this.#roles = signal([], /* @ts-ignore */
|
|
2356
|
+
...(ngDevMode ? [{ debugName: "#roles" }] : /* istanbul ignore next */ []));
|
|
2285
2357
|
this.roles = computed(() => this.#roles().filter(e => {
|
|
2286
2358
|
const selected = this.selected();
|
|
2287
2359
|
return !selected || e.id !== selected?.id;
|
|
2288
|
-
}),
|
|
2360
|
+
}), /* @ts-ignore */
|
|
2361
|
+
...(ngDevMode ? [{ debugName: "roles" }] : /* istanbul ignore next */ []));
|
|
2289
2362
|
this.trackByService = inject(TrackByService);
|
|
2290
2363
|
this.trackByFn = this.trackByService.by('id');
|
|
2291
2364
|
this.service = inject(IdentityRoleService);
|
|
@@ -2359,10 +2432,10 @@ class RoleDeleteComponent {
|
|
|
2359
2432
|
this.loading.set(false);
|
|
2360
2433
|
}
|
|
2361
2434
|
}
|
|
2362
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2363
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RoleDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2436
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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\r\n [visible]=\"visible()\"\r\n [busy]=\"loading()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{ 'AbpIdentity::RoleDeletionConfirmationMessage' | abpLocalization: name }}\r\n </p>\r\n <form [formGroup]=\"form\" id=\"role-delete-form\" (ngSubmit)=\"save()\">\r\n @if (userCount > 0) {\r\n <p class=\"mt-2\">\r\n {{ 'AbpIdentity::ChooseAnActionForRole' | abpLocalization: userCount + '' }}\r\n </p>\r\n\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">{{\r\n 'AbpIdentity::UnassignTheRoleFromTheUsers' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (roles().length > 0) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">{{\r\n 'AbpIdentity::AssignUsersToOtherRole' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (assignType$ | async) {\r\n <select\r\n class=\"form-select mt-2\"\r\n [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 <abp-button\r\n [loading]=\"loading()\"\r\n [disabled]=\"loading()\"\r\n formName=\"role-delete-form\"\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-danger\"\r\n iconClass=\"fa fa-trash\"\r\n >\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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio]:not([ngNoCva])[formControlName],input[type=radio]:not([ngNoCva])[formControl],input[type=radio]:not([ngNoCva])[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: "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: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2364
2437
|
}
|
|
2365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RoleDeleteComponent, decorators: [{
|
|
2366
2439
|
type: Component,
|
|
2367
2440
|
args: [{ selector: 'abp-role-delete', imports: [
|
|
2368
2441
|
FormsModule,
|
|
@@ -2372,7 +2445,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2372
2445
|
AsyncPipe,
|
|
2373
2446
|
LocalizationPipe,
|
|
2374
2447
|
ModalComponent,
|
|
2375
|
-
|
|
2448
|
+
ButtonComponent,
|
|
2449
|
+
], template: "<abp-modal\r\n [visible]=\"visible()\"\r\n [busy]=\"loading()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{ 'AbpIdentity::RoleDeletionConfirmationMessage' | abpLocalization: name }}\r\n </p>\r\n <form [formGroup]=\"form\" id=\"role-delete-form\" (ngSubmit)=\"save()\">\r\n @if (userCount > 0) {\r\n <p class=\"mt-2\">\r\n {{ 'AbpIdentity::ChooseAnActionForRole' | abpLocalization: userCount + '' }}\r\n </p>\r\n\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">{{\r\n 'AbpIdentity::UnassignTheRoleFromTheUsers' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (roles().length > 0) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">{{\r\n 'AbpIdentity::AssignUsersToOtherRole' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (assignType$ | async) {\r\n <select\r\n class=\"form-select mt-2\"\r\n [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 <abp-button\r\n [loading]=\"loading()\"\r\n [disabled]=\"loading()\"\r\n formName=\"role-delete-form\"\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-danger\"\r\n iconClass=\"fa fa-trash\"\r\n >\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2376
2450
|
}], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: true }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: true }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
2377
2451
|
|
|
2378
2452
|
class RolesModalComponent {
|
|
@@ -2381,7 +2455,8 @@ class RolesModalComponent {
|
|
|
2381
2455
|
this.toasterService = inject(ToasterService);
|
|
2382
2456
|
this.injector = inject(Injector);
|
|
2383
2457
|
this.modalBusy = false;
|
|
2384
|
-
this.selected = input(
|
|
2458
|
+
this.selected = input(/* @ts-ignore */
|
|
2459
|
+
...(ngDevMode ? [undefined, { debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2385
2460
|
this.visibleChange = output();
|
|
2386
2461
|
}
|
|
2387
2462
|
buildForm() {
|
|
@@ -2415,10 +2490,10 @@ class RolesModalComponent {
|
|
|
2415
2490
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
2416
2491
|
});
|
|
2417
2492
|
}
|
|
2418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2493
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RolesModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2494
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\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\r\n iconClass=\"fa fa-check\"\r\n buttonType=\"submit\"\r\n formName=\"roleForm\"\r\n [disabled]=\"modalBusy\"\r\n >\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: 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" }] }); }
|
|
2420
2495
|
}
|
|
2421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RolesModalComponent, decorators: [{
|
|
2422
2497
|
type: Component,
|
|
2423
2498
|
args: [{ selector: 'abp-roles-modal', imports: [
|
|
2424
2499
|
ReactiveFormsModule,
|
|
@@ -2428,7 +2503,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2428
2503
|
ExtensibleFormComponent,
|
|
2429
2504
|
ModalComponent,
|
|
2430
2505
|
ButtonComponent,
|
|
2431
|
-
], 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" }]
|
|
2506
|
+
], template: "<abp-modal [visible]=\"true\" [busy]=\"modalBusy\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\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\r\n iconClass=\"fa fa-check\"\r\n buttonType=\"submit\"\r\n formName=\"roleForm\"\r\n [disabled]=\"modalBusy\"\r\n >\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2432
2507
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
2433
2508
|
|
|
2434
2509
|
class RolesComponent {
|
|
@@ -2439,24 +2514,22 @@ class RolesComponent {
|
|
|
2439
2514
|
this.destroyRef = inject(DestroyRef);
|
|
2440
2515
|
this.injector = inject(Injector);
|
|
2441
2516
|
this.toasterService = inject(ToasterService);
|
|
2442
|
-
this.data =
|
|
2517
|
+
this.data = toSignal(this.list.hookToQuery(query => this.service.getList(query)), {
|
|
2518
|
+
initialValue: { items: [], totalCount: 0 },
|
|
2519
|
+
});
|
|
2443
2520
|
this.visibleRoleDelete = false;
|
|
2444
2521
|
this.visibleMove = false;
|
|
2445
|
-
this.visiblePermissions = false
|
|
2522
|
+
this.visiblePermissions = signal(false, /* @ts-ignore */
|
|
2523
|
+
...(ngDevMode ? [{ debugName: "visiblePermissions" }] : /* istanbul ignore next */ []));
|
|
2446
2524
|
this.modalBusy = false;
|
|
2447
2525
|
this.visibleClaims = false;
|
|
2448
2526
|
this.claimSubject = {};
|
|
2449
|
-
this.modalContent = viewChild('modalContent',
|
|
2527
|
+
this.modalContent = viewChild('modalContent', /* @ts-ignore */
|
|
2528
|
+
...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
2450
2529
|
this.onVisiblePermissionChange = (value) => {
|
|
2451
|
-
this.visiblePermissions
|
|
2530
|
+
this.visiblePermissions.set(value);
|
|
2452
2531
|
};
|
|
2453
2532
|
}
|
|
2454
|
-
hookToQuery() {
|
|
2455
|
-
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
|
|
2456
|
-
}
|
|
2457
|
-
ngOnInit() {
|
|
2458
|
-
this.hookToQuery();
|
|
2459
|
-
}
|
|
2460
2533
|
onAdd() {
|
|
2461
2534
|
this.isModalVisible = true;
|
|
2462
2535
|
}
|
|
@@ -2525,21 +2598,18 @@ class RolesComponent {
|
|
|
2525
2598
|
}
|
|
2526
2599
|
openPermissionsModal(providerKey) {
|
|
2527
2600
|
this.providerKey = providerKey;
|
|
2528
|
-
|
|
2529
|
-
setTimeout(() => {
|
|
2530
|
-
this.visiblePermissions = true;
|
|
2531
|
-
}, 0);
|
|
2601
|
+
this.visiblePermissions.set(true);
|
|
2532
2602
|
}
|
|
2533
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2534
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RolesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2604
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: RolesComponent, isStandalone: true, selector: "abp-roles", providers: [
|
|
2535
2605
|
ListService,
|
|
2536
2606
|
{
|
|
2537
2607
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2538
2608
|
useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
2539
2609
|
},
|
|
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
|
|
2610
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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" }] }); }
|
|
2541
2611
|
}
|
|
2542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: RolesComponent, decorators: [{
|
|
2543
2613
|
type: Component,
|
|
2544
2614
|
args: [{ selector: 'abp-roles', providers: [
|
|
2545
2615
|
ListService,
|
|
@@ -2558,7 +2628,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2558
2628
|
AdvancedEntityFiltersComponent,
|
|
2559
2629
|
PageComponent,
|
|
2560
2630
|
PermissionManagementComponent,
|
|
2561
|
-
], 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
|
|
2631
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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" }]
|
|
2562
2632
|
}], propDecorators: { modalContent: [{ type: i0.ViewChild, args: ['modalContent', { isSignal: true }] }] } });
|
|
2563
2633
|
|
|
2564
2634
|
class SecurityLogsComponent {
|
|
@@ -2567,18 +2637,8 @@ class SecurityLogsComponent {
|
|
|
2567
2637
|
this.list = inject(ListService);
|
|
2568
2638
|
this.route = inject(ActivatedRoute);
|
|
2569
2639
|
this.router = inject(Router);
|
|
2570
|
-
this.data = { items: [], totalCount: 0 };
|
|
2571
2640
|
this.filter = {};
|
|
2572
|
-
|
|
2573
|
-
ngOnInit() {
|
|
2574
|
-
this.hookToQuery();
|
|
2575
|
-
}
|
|
2576
|
-
hookToQuery() {
|
|
2577
|
-
const { userName } = this.route.snapshot.queryParams;
|
|
2578
|
-
if (userName) {
|
|
2579
|
-
this.filter.userName = userName;
|
|
2580
|
-
}
|
|
2581
|
-
this.list
|
|
2641
|
+
this.data = toSignal(this.list
|
|
2582
2642
|
.hookToQuery(query => this.service.getList({
|
|
2583
2643
|
...query,
|
|
2584
2644
|
...this.filter,
|
|
@@ -2589,25 +2649,28 @@ class SecurityLogsComponent {
|
|
|
2589
2649
|
relativeTo: this.route,
|
|
2590
2650
|
queryParams: userNameFilter ? { userName: userNameFilter } : null,
|
|
2591
2651
|
});
|
|
2592
|
-
}))
|
|
2593
|
-
|
|
2594
|
-
this.data = res;
|
|
2652
|
+
})), {
|
|
2653
|
+
initialValue: { items: [], totalCount: 0 },
|
|
2595
2654
|
});
|
|
2655
|
+
const { userName } = this.route.snapshot.queryParams;
|
|
2656
|
+
if (userName) {
|
|
2657
|
+
this.filter.userName = userName;
|
|
2658
|
+
}
|
|
2596
2659
|
}
|
|
2597
2660
|
clearFilters() {
|
|
2598
2661
|
this.filter = {};
|
|
2599
2662
|
this.list.get();
|
|
2600
2663
|
}
|
|
2601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2602
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SecurityLogsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: SecurityLogsComponent, isStandalone: true, selector: "abp-security-logs", providers: [
|
|
2603
2666
|
ListService,
|
|
2604
2667
|
{
|
|
2605
2668
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2606
2669
|
useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
2607
2670
|
},
|
|
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
|
|
2671
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\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]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[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" }] }); }
|
|
2609
2672
|
}
|
|
2610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: SecurityLogsComponent, decorators: [{
|
|
2611
2674
|
type: Component,
|
|
2612
2675
|
args: [{ selector: 'abp-security-logs', providers: [
|
|
2613
2676
|
ListService,
|
|
@@ -2621,8 +2684,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
2621
2684
|
DatetimePickerComponent,
|
|
2622
2685
|
ExtensibleTableComponent,
|
|
2623
2686
|
PageComponent,
|
|
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
|
|
2625
|
-
}] });
|
|
2687
|
+
], 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\r\n [data]=\"data().items\"\r\n [recordsTotal]=\"data().totalCount\"\r\n [list]=\"list\"\r\n />\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n" }]
|
|
2688
|
+
}], ctorParameters: () => [] });
|
|
2626
2689
|
|
|
2627
2690
|
class CreateUserDropdownComponent {
|
|
2628
2691
|
constructor() {
|
|
@@ -2635,8 +2698,8 @@ class CreateUserDropdownComponent {
|
|
|
2635
2698
|
openInviteModal() {
|
|
2636
2699
|
this.component.openInviteModal();
|
|
2637
2700
|
}
|
|
2638
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2639
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2701
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateUserDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2702
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: CreateUserDropdownComponent, isStandalone: true, selector: "abp-create-user-dropdown", ngImport: i0, template: `
|
|
2640
2703
|
<ng-container *abpPermission="'AbpIdentity.Users.Create'">
|
|
2641
2704
|
<div ngbDropdown class="btn-group d-inline-block">
|
|
2642
2705
|
<button type="button" class="btn btn-primary btn-sm" (click)="onAdd()">
|
|
@@ -2658,7 +2721,7 @@ class CreateUserDropdownComponent {
|
|
|
2658
2721
|
</ng-container>
|
|
2659
2722
|
`, 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
2723
|
}
|
|
2661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: CreateUserDropdownComponent, decorators: [{
|
|
2662
2725
|
type: Component,
|
|
2663
2726
|
args: [{
|
|
2664
2727
|
selector: 'abp-create-user-dropdown',
|
|
@@ -3545,15 +3608,7 @@ const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
|
3545
3608
|
id: 'phoneNumberConfirmed',
|
|
3546
3609
|
group: { name: 'phoneNumberConfirmed', className: 'col col-md-6' },
|
|
3547
3610
|
defaultValue: false,
|
|
3548
|
-
disabled: (data) =>
|
|
3549
|
-
const form = data.getInjected(UsersComponent).form;
|
|
3550
|
-
const phoneNumber = form.value.phoneNumber;
|
|
3551
|
-
if (!phoneNumber) {
|
|
3552
|
-
form.patchValue({ phoneNumberConfirmed: false });
|
|
3553
|
-
return true;
|
|
3554
|
-
}
|
|
3555
|
-
return false;
|
|
3556
|
-
},
|
|
3611
|
+
disabled: (data) => !data.getInjected(UsersComponent).form.value.phoneNumber?.trim(),
|
|
3557
3612
|
},
|
|
3558
3613
|
{
|
|
3559
3614
|
type: "boolean" /* ePropType.Boolean */,
|
|
@@ -3639,10 +3694,10 @@ class IdentityExtensionsGuard {
|
|
|
3639
3694
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
3640
3695
|
}), map$1(() => true));
|
|
3641
3696
|
}
|
|
3642
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3643
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityExtensionsGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3698
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityExtensionsGuard }); }
|
|
3644
3699
|
}
|
|
3645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
|
|
3646
3701
|
type: Injectable
|
|
3647
3702
|
}] });
|
|
3648
3703
|
|
|
@@ -3740,11 +3795,11 @@ const routes = [
|
|
|
3740
3795
|
},
|
|
3741
3796
|
];
|
|
3742
3797
|
class IdentityRoutingModule {
|
|
3743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3744
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3745
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3799
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: IdentityRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
3800
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
3746
3801
|
}
|
|
3747
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityRoutingModule, decorators: [{
|
|
3748
3803
|
type: NgModule,
|
|
3749
3804
|
args: [{
|
|
3750
3805
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -3806,14 +3861,14 @@ class IdentityModule {
|
|
|
3806
3861
|
static forLazy(options = {}) {
|
|
3807
3862
|
return new LazyModuleFactory(IdentityModule.forChild(options));
|
|
3808
3863
|
}
|
|
3809
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3810
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3864
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3865
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: IdentityModule, imports: [CoreModule,
|
|
3811
3866
|
CommercialUiModule,
|
|
3812
3867
|
IdentityRoutingModule,
|
|
3813
3868
|
NgbNavModule,
|
|
3814
3869
|
ThemeSharedModule,
|
|
3815
3870
|
NgbDropdownModule,
|
|
3816
|
-
NgbTooltipModule,
|
|
3871
|
+
NgbTooltipModule$1,
|
|
3817
3872
|
NgbDatepickerModule,
|
|
3818
3873
|
PermissionManagementModule,
|
|
3819
3874
|
NgxValidateCoreModule,
|
|
@@ -3862,13 +3917,13 @@ class IdentityModule {
|
|
|
3862
3917
|
ExportDataDropdownComponent,
|
|
3863
3918
|
ClaimsComponent,
|
|
3864
3919
|
ClaimModalComponent] }); }
|
|
3865
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3920
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityModule, imports: [CoreModule,
|
|
3866
3921
|
CommercialUiModule,
|
|
3867
3922
|
IdentityRoutingModule,
|
|
3868
3923
|
NgbNavModule,
|
|
3869
3924
|
ThemeSharedModule,
|
|
3870
3925
|
NgbDropdownModule,
|
|
3871
|
-
NgbTooltipModule,
|
|
3926
|
+
NgbTooltipModule$1,
|
|
3872
3927
|
NgbDatepickerModule,
|
|
3873
3928
|
PermissionManagementModule,
|
|
3874
3929
|
NgxValidateCoreModule,
|
|
@@ -3899,7 +3954,7 @@ class IdentityModule {
|
|
|
3899
3954
|
ClaimsComponent,
|
|
3900
3955
|
ClaimModalComponent] }); }
|
|
3901
3956
|
}
|
|
3902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: IdentityModule, decorators: [{
|
|
3903
3958
|
type: NgModule,
|
|
3904
3959
|
args: [{
|
|
3905
3960
|
exports: [...exportAndImports],
|
|
@@ -3910,7 +3965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
3910
3965
|
NgbNavModule,
|
|
3911
3966
|
ThemeSharedModule,
|
|
3912
3967
|
NgbDropdownModule,
|
|
3913
|
-
NgbTooltipModule,
|
|
3968
|
+
NgbTooltipModule$1,
|
|
3914
3969
|
NgbDatepickerModule,
|
|
3915
3970
|
PermissionManagementModule,
|
|
3916
3971
|
NgxValidateCoreModule,
|