@volo/abp.ng.identity 8.3.3 → 9.0.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/esm2022/config/providers/route.provider.mjs +2 -2
- package/esm2022/lib/components/claim-modal/claim-modal.component.mjs +17 -16
- package/esm2022/lib/components/claims/claims.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-members/organization-members.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-roles/organization-roles.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-units.component.mjs +3 -3
- package/esm2022/lib/components/roles/edit-new-modal/roles-modal.component.mjs +41 -44
- package/esm2022/lib/components/roles/roles.component.mjs +14 -34
- package/esm2022/lib/components/users/set-password-modal/set-password-modal.component.mjs +3 -3
- package/esm2022/lib/components/users/user-sessions-modal/user-sessions.component.mjs +3 -3
- package/esm2022/lib/components/users/users.component.mjs +7 -5
- package/esm2022/lib/defaults/roles/default-roles-entity-actions.mjs +2 -2
- package/esm2022/lib/defaults/users/default-users-entity-actions.mjs +2 -2
- package/esm2022/lib/defaults/users/default-users-form-props.mjs +1 -1
- package/esm2022/lib/guards/extensions.guard.mjs +8 -10
- package/esm2022/lib/resolvers/extensions.resolver.mjs +3 -5
- package/fesm2022/volo-abp.ng.identity-config.mjs +1 -1
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +88 -111
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/claim-modal/claim-modal.component.d.ts +8 -7
- package/lib/components/roles/edit-new-modal/roles-modal.component.d.ts +11 -17
- package/lib/components/roles/roles.component.d.ts +5 -6
- package/lib/components/users/users.component.d.ts +2 -1
- package/lib/guards/extensions.guard.d.ts +1 -3
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Output, Input, inject, Injectable, signal, computed, ChangeDetectionStrategy, DestroyRef, ViewChild, Injector, model, input, Inject, InjectionToken, LOCALE_ID, NgModule } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Output, Input, inject, Injectable, signal, computed, ChangeDetectionStrategy, DestroyRef, ViewChild, Injector, model, input, Inject, InjectionToken, output, LOCALE_ID, NgModule } from '@angular/core';
|
|
3
3
|
import * as i3$3 from '@abp/ng.components/extensible';
|
|
4
|
-
import { FormPropData, generateFormFromProps, FormProp, ExtensibleDateTimePickerComponent, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps
|
|
4
|
+
import { FormPropData, generateFormFromProps, FormProp, ExtensibleDateTimePickerComponent, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, ExtensibleModule, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.components/extensible';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { FormBuilder, Validators, ReactiveFormsModule, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@volo/abp.ng.identity/proxy';
|
|
@@ -603,11 +603,11 @@ class SetUserPasswordComponent {
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SetUserPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
606
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
606
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: SetUserPasswordComponent, isStandalone: true, selector: "abp-set-user-password", inputs: { selected: "selected" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <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)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n style=\"border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem\"\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-success\"\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 <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button class=\"m-0\" iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] }); }
|
|
607
607
|
}
|
|
608
608
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SetUserPasswordComponent, decorators: [{
|
|
609
609
|
type: Component,
|
|
610
|
-
args: [{ standalone: true, selector: 'abp-set-user-password', imports: [ThemeSharedModule, LocalizationModule, ReactiveFormsModule], template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
610
|
+
args: [{ standalone: true, selector: 'abp-set-user-password', imports: [ThemeSharedModule, LocalizationModule, ReactiveFormsModule], template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <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)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n style=\"border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem\"\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-success\"\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 <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" }]
|
|
611
611
|
}], propDecorators: { selected: [{
|
|
612
612
|
type: Input
|
|
613
613
|
}], visibleChange: [{
|
|
@@ -677,7 +677,7 @@ class UserSessionsComponent {
|
|
|
677
677
|
.subscribe();
|
|
678
678
|
}
|
|
679
679
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
680
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", 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
|
|
680
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", 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:Revoke' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:Device' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"device\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\" let-row=\"row\">\r\n {{ value }}\r\n @if (row.isCurrent) {\r\n <i\r\n class=\"fas fa-dot-circle\"\r\n [ngbTooltip]=\"'AbpIdentity::Session:Current' | abpLocalization\"\r\n container=\"body\"\r\n placement=\"end\"\r\n ></i>\r\n }\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:DeviceInfo' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"deviceInfo\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:SignedIn' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"signedIn\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:LastAccessed' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"lastAccessed\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<!-- TODO re-configure the defer here after all migration is done -->\r\n@if (visibleSessionDetailModal()) {\r\n <abp-user-session-detail\r\n [sessionId]=\"sessionId()\"\r\n [(isModalVisible)]=\"visibleSessionDetailModal\"\r\n />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: NgbDropdownModule }, { kind: "directive", type: i1$1.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i1$1.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i1$1.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i1$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i1$1.NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "ngmodule", type: CoreModule }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i2$1.ShortDateTimePipe, name: "shortDateTime" }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "component", type: i3$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { kind: "directive", type: i3$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { kind: "directive", type: i3$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i4.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i4.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: UserSessionDetailComponent, selector: "abp-user-session-detail", inputs: ["isModalVisible", "sessionId"], outputs: ["isModalVisibleChange"] }] }); }
|
|
681
681
|
}
|
|
682
682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UserSessionsComponent, decorators: [{
|
|
683
683
|
type: Component,
|
|
@@ -687,7 +687,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
687
687
|
CoreModule,
|
|
688
688
|
ThemeSharedModule,
|
|
689
689
|
UserSessionDetailComponent,
|
|
690
|
-
], providers: [ListService], template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
690
|
+
], providers: [ListService], template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::Sessions' | abpLocalization }}\r\n @if (selected().userName) {\r\n - {{ selected().userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ngx-datatable [rows]=\"data().items\" [count]=\"data().totalCount\" [list]=\"list\" default>\r\n <ngx-datatable-column [name]=\"'AbpUi::Actions' | abpLocalization\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button\r\n ngbDropdownToggle\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n >\r\n <i class=\"fa fa-cog me-1\" aria-hidden=\"true\"></i\r\n >{{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"showDetail(row)\">\r\n {{ 'AbpIdentity::Session:Detail' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"revokeSession(row)\">\r\n {{ 'AbpIdentity::Session:Revoke' | 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" }]
|
|
691
691
|
}] });
|
|
692
692
|
|
|
693
693
|
function regexValidator(regexPattern, regexDescription, injector) {
|
|
@@ -725,6 +725,7 @@ class ClaimModalComponent {
|
|
|
725
725
|
this.fb = inject(FormBuilder);
|
|
726
726
|
this.confirmationService = inject(ConfirmationService);
|
|
727
727
|
this.toasterService = inject(ToasterService);
|
|
728
|
+
this.subject = input();
|
|
728
729
|
this.visibleChange = new EventEmitter();
|
|
729
730
|
this.modalBusy = false;
|
|
730
731
|
this.inputType = 'String';
|
|
@@ -734,8 +735,9 @@ class ClaimModalComponent {
|
|
|
734
735
|
return this._visible;
|
|
735
736
|
}
|
|
736
737
|
set visible(value) {
|
|
737
|
-
if (this._visible === value)
|
|
738
|
+
if (this._visible === value) {
|
|
738
739
|
return;
|
|
740
|
+
}
|
|
739
741
|
this._visible = value;
|
|
740
742
|
this.visibleChange.emit(value);
|
|
741
743
|
}
|
|
@@ -743,8 +745,9 @@ class ClaimModalComponent {
|
|
|
743
745
|
if (subject && subject.currentValue) {
|
|
744
746
|
this.service = subject.currentValue.type === 'roles' ? this.roleService : this.userService;
|
|
745
747
|
}
|
|
746
|
-
if (!visible)
|
|
748
|
+
if (!visible) {
|
|
747
749
|
return;
|
|
750
|
+
}
|
|
748
751
|
if (visible.currentValue) {
|
|
749
752
|
this.initModal();
|
|
750
753
|
return;
|
|
@@ -754,7 +757,7 @@ class ClaimModalComponent {
|
|
|
754
757
|
initModal() {
|
|
755
758
|
this.buildForm();
|
|
756
759
|
this.getClaimTypeNames();
|
|
757
|
-
this.getSubjectClaims(this.subject);
|
|
760
|
+
this.getSubjectClaims(this.subject());
|
|
758
761
|
}
|
|
759
762
|
get claimType() {
|
|
760
763
|
return this.form.controls.claimType;
|
|
@@ -822,9 +825,9 @@ class ClaimModalComponent {
|
|
|
822
825
|
if (this.form.invalid) {
|
|
823
826
|
return;
|
|
824
827
|
}
|
|
825
|
-
const key = this.subject.type === 'roles' ? 'roleId' : 'userId';
|
|
828
|
+
const key = this.subject().type === 'roles' ? 'roleId' : 'userId';
|
|
826
829
|
const claim = {
|
|
827
|
-
[key]: this.subject.id,
|
|
830
|
+
[key]: this.subject().id,
|
|
828
831
|
...this.form.value,
|
|
829
832
|
inputType: this.inputType,
|
|
830
833
|
};
|
|
@@ -857,7 +860,7 @@ class ClaimModalComponent {
|
|
|
857
860
|
if (this.modalBusy)
|
|
858
861
|
return;
|
|
859
862
|
this.modalBusy = true;
|
|
860
|
-
this.subscription.addOne(this.service.updateClaims(this.subject.id, this.subjectClaims).pipe(take(1), finalize(() => (this.modalBusy = false))), () => {
|
|
863
|
+
this.subscription.addOne(this.service.updateClaims(this.subject().id, this.subjectClaims).pipe(take(1), finalize(() => (this.modalBusy = false))), () => {
|
|
861
864
|
this.visible = false;
|
|
862
865
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
863
866
|
});
|
|
@@ -872,14 +875,12 @@ class ClaimModalComponent {
|
|
|
872
875
|
});
|
|
873
876
|
}
|
|
874
877
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ClaimModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
875
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: { subject: "subject",
|
|
878
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::Claims' | abpLocalization }}\r\n @if (subject().title) {\r\n - {{ subject().title }}\r\n }\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n @for (type of claimTypes; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">\r\n {{ 'AbpIdentity::ClaimValue' | abpLocalization }}\r\n </label>\r\n\r\n @if (inputType === 'Boolean') {\r\n <select\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n (keydown)=\"onKeyDown($event)\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n @if (subjectClaims && subjectClaims.length) {\r\n <div class=\"willBeHidden mt-3\">\r\n @for (claim of subjectClaims; track $index; let i = $index) {\r\n <div class=\"input-group mb-3\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n @if (subjectClaims[i].inputType === 'Boolean') {\r\n <select autofocus class=\"form-control\" [(ngModel)]=\"subjectClaims[i].claimValue\">\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n }\r\n\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2$1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
876
879
|
}
|
|
877
880
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ClaimModalComponent, decorators: [{
|
|
878
881
|
type: Component,
|
|
879
|
-
args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\"
|
|
880
|
-
}], propDecorators: {
|
|
881
|
-
type: Input
|
|
882
|
-
}], visible: [{
|
|
882
|
+
args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::Claims' | abpLocalization }}\r\n @if (subject().title) {\r\n - {{ subject().title }}\r\n }\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n @for (type of claimTypes; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">\r\n {{ 'AbpIdentity::ClaimValue' | abpLocalization }}\r\n </label>\r\n\r\n @if (inputType === 'Boolean') {\r\n <select\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n (keydown)=\"onKeyDown($event)\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n @if (subjectClaims && subjectClaims.length) {\r\n <div class=\"willBeHidden mt-3\">\r\n @for (claim of subjectClaims; track $index; let i = $index) {\r\n <div class=\"input-group mb-3\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n @if (subjectClaims[i].inputType === 'Boolean') {\r\n <select autofocus class=\"form-control\" [(ngModel)]=\"subjectClaims[i].claimValue\">\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n }\r\n\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
883
|
+
}], propDecorators: { visible: [{
|
|
883
884
|
type: Input
|
|
884
885
|
}], visibleChange: [{
|
|
885
886
|
type: Output
|
|
@@ -1040,9 +1041,11 @@ class UsersComponent {
|
|
|
1040
1041
|
}
|
|
1041
1042
|
});
|
|
1042
1043
|
}
|
|
1043
|
-
onManageClaims(
|
|
1044
|
+
onManageClaims(user) {
|
|
1045
|
+
this.selected = user;
|
|
1044
1046
|
this.claimSubject = {
|
|
1045
|
-
id,
|
|
1047
|
+
id: user.id,
|
|
1048
|
+
title: user.userName,
|
|
1046
1049
|
type: 'users',
|
|
1047
1050
|
};
|
|
1048
1051
|
this.visibleClaims = true;
|
|
@@ -1120,7 +1123,7 @@ class UsersComponent {
|
|
|
1120
1123
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1121
1124
|
},
|
|
1122
1125
|
ExcelService,
|
|
1123
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-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 ></abp-lookup-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::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 ></abp-lookup-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=\"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 </abp-date-range-picker>\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 </abp-date-range-picker>\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=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::NotActive' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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::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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @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\r\n class=\"row gap-x2\"\r\n [selectedRecord]=\"selected\"\r\n ></abp-extensible-form>\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 $index; 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 ></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 </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\"></abp-claim-modal>\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$2.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount", "emptyOption"] }, { kind: "component", type: i3$2.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "directive", type: i4.DisabledDirective, selector: "[abpDisabled]", inputs: ["abpDisabled"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i8.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: UserViewDetailsComponent, selector: "abp-user-view-detail", inputs: ["user"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: UploadExcelFileComponent, selector: "abp-excel-upload-file", inputs: ["fileType"], outputs: ["isModalVisibleChange", "isListChange"] }, { kind: "component", type: UserLockModalComponent, selector: "abp-user-lock-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: SetUserPasswordComponent, selector: "abp-set-user-password", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: UserSessionsComponent, selector: "abp-user-sessions", inputs: ["isModalVisible", "selected"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1126
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-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 ></abp-lookup-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::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 ></abp-lookup-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=\"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 </abp-date-range-picker>\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 </abp-date-range-picker>\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=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::NotActive' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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::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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\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\r\n class=\"row gap-x2\"\r\n [selectedRecord]=\"selected\"\r\n ></abp-extensible-form>\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 ></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 </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"userForm\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$2.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount", "emptyOption"] }, { kind: "component", type: i3$2.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "directive", type: i4.DisabledDirective, selector: "[abpDisabled]", inputs: ["abpDisabled"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i8.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: UserViewDetailsComponent, selector: "abp-user-view-detail", inputs: ["user"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: UploadExcelFileComponent, selector: "abp-excel-upload-file", inputs: ["fileType"], outputs: ["isModalVisibleChange", "isListChange"] }, { kind: "component", type: UserLockModalComponent, selector: "abp-user-lock-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: SetUserPasswordComponent, selector: "abp-set-user-password", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: UserSessionsComponent, selector: "abp-user-sessions", inputs: ["isModalVisible", "selected"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["visible", "subject"], outputs: ["visibleChange"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1124
1127
|
}
|
|
1125
1128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UsersComponent, decorators: [{
|
|
1126
1129
|
type: Component,
|
|
@@ -1131,7 +1134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1131
1134
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1132
1135
|
},
|
|
1133
1136
|
ExcelService,
|
|
1134
|
-
], template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-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 ></abp-lookup-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::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 ></abp-lookup-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=\"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 </abp-date-range-picker>\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 </abp-date-range-picker>\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=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::NotActive' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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::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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @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\r\n class=\"row gap-x2\"\r\n [selectedRecord]=\"selected\"\r\n ></abp-extensible-form>\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 $index; 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 ></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 </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\"></abp-claim-modal>\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" }]
|
|
1137
|
+
], template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-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 ></abp-lookup-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::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 ></abp-lookup-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=\"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 </abp-date-range-picker>\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 </abp-date-range-picker>\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=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::NotActive' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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::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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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\">{{ 'AbpIdentity::Dash' | abpLocalization }}</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-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\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\r\n class=\"row gap-x2\"\r\n [selectedRecord]=\"selected\"\r\n ></abp-extensible-form>\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 ></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 </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" }]
|
|
1135
1138
|
}], propDecorators: { modalContent: [{
|
|
1136
1139
|
type: ViewChild,
|
|
1137
1140
|
args: ['modalContent']
|
|
@@ -1270,13 +1273,13 @@ class ClaimsComponent {
|
|
|
1270
1273
|
});
|
|
1271
1274
|
}
|
|
1272
1275
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ClaimsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1273
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ClaimsComponent, selector: "abp-claims", providers: [
|
|
1274
1277
|
ListService,
|
|
1275
1278
|
{
|
|
1276
1279
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1277
1280
|
useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
1278
1281
|
},
|
|
1279
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n
|
|
1282
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected.name) {\r\n - {{ selected.name }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewClaimType' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-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: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1280
1283
|
}
|
|
1281
1284
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ClaimsComponent, decorators: [{
|
|
1282
1285
|
type: Component,
|
|
@@ -1286,7 +1289,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1286
1289
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1287
1290
|
useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
1288
1291
|
},
|
|
1289
|
-
], template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n
|
|
1292
|
+
], template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected.name) {\r\n - {{ selected.name }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewClaimType' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-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" }]
|
|
1290
1293
|
}], propDecorators: { modalContent: [{
|
|
1291
1294
|
type: ViewChild,
|
|
1292
1295
|
args: ['modalContent']
|
|
@@ -1610,7 +1613,7 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1610
1613
|
this.modalOption = { size: 'xl' };
|
|
1611
1614
|
}
|
|
1612
1615
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1613
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1616
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: OrganizationMembersComponent, selector: "abp-organization-members", providers: [
|
|
1614
1617
|
ListService,
|
|
1615
1618
|
{
|
|
1616
1619
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1626,7 +1629,7 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1626
1629
|
deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
|
|
1627
1630
|
},
|
|
1628
1631
|
},
|
|
1629
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <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::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
1632
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <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::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectUsers' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "component", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1630
1633
|
}
|
|
1631
1634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
|
|
1632
1635
|
type: Component,
|
|
@@ -1646,7 +1649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1646
1649
|
deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
|
|
1647
1650
|
},
|
|
1648
1651
|
},
|
|
1649
|
-
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\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::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
1652
|
+
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\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::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectUsers' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1650
1653
|
}] });
|
|
1651
1654
|
|
|
1652
1655
|
class OrganizationRolesModalBodyComponent {
|
|
@@ -1730,7 +1733,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1730
1733
|
|
|
1731
1734
|
class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
1732
1735
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1733
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1736
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: OrganizationRolesComponent, selector: "abp-organization-roles", providers: [
|
|
1734
1737
|
ListService,
|
|
1735
1738
|
{
|
|
1736
1739
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1746,7 +1749,7 @@ class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
|
1746
1749
|
deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
|
|
1747
1750
|
},
|
|
1748
1751
|
},
|
|
1749
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
1752
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "component", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1750
1753
|
}
|
|
1751
1754
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
|
|
1752
1755
|
type: Component,
|
|
@@ -1766,7 +1769,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1766
1769
|
deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
|
|
1767
1770
|
},
|
|
1768
1771
|
},
|
|
1769
|
-
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3
|
|
1772
|
+
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1770
1773
|
}] });
|
|
1771
1774
|
|
|
1772
1775
|
class OrganizationUnitsComponent {
|
|
@@ -1900,7 +1903,7 @@ class OrganizationUnitsComponent {
|
|
|
1900
1903
|
},
|
|
1901
1904
|
DeleteOrganizationUnitService,
|
|
1902
1905
|
MoveAllUsersOfUnitModalService,
|
|
1903
|
-
], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary px-2\" (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 abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationMembersKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n ></abp-organization-members>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationRolesKey\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n (nodeId ? 'AbpIdentity::EditOrganizationUnit' : 'AbpIdentity::NewOrganizationUnit')\r\n | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-delete-organization-unit\r\n *abpVisible=\"deleteOrganizationUnitService.visible()\"\r\n (deleted)=\"onOUDeleted()\"\r\n/>\r\n<abp-move-all-users-of-unit\r\n *abpVisible=\"moveAllUsersOfUnitModalService.visible()\"\r\n (moved)=\"onOUMoved()\"\r\n/>\r\n", styles: [".fs-15px{font-size:15px}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i4.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i1$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i7.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: DeleteOrganizationUnitComponent, selector: "abp-delete-organization-unit", outputs: ["deleted"] }, { kind: "component", type: MoveAllUsersOfUnitComponent, selector: "abp-move-all-users-of-unit", outputs: ["moved"] }, { kind: "component", type: OrganizationMembersComponent, selector: "abp-organization-members" }, { kind: "component", type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1906
|
+
], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary px-2\" (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 abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n ></abp-organization-members>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationRolesKey,\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (nodeId) {\r\n {{ 'AbpIdentity::EditOrganizationUnit' | abpLocalization }}\r\n @if (selectedUnit.displayName) {\r\n - {{ selectedUnit.displayName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewOrganizationUnit' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-delete-organization-unit\r\n *abpVisible=\"deleteOrganizationUnitService.visible()\"\r\n (deleted)=\"onOUDeleted()\"\r\n/>\r\n<abp-move-all-users-of-unit\r\n *abpVisible=\"moveAllUsersOfUnitModalService.visible()\"\r\n (moved)=\"onOUMoved()\"\r\n/>\r\n", styles: [".fs-15px{font-size:15px}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i4.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i1$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i7.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: DeleteOrganizationUnitComponent, selector: "abp-delete-organization-unit", outputs: ["deleted"] }, { kind: "component", type: MoveAllUsersOfUnitComponent, selector: "abp-move-all-users-of-unit", outputs: ["moved"] }, { kind: "component", type: OrganizationMembersComponent, selector: "abp-organization-members" }, { kind: "component", type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1904
1907
|
}
|
|
1905
1908
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
|
|
1906
1909
|
type: Component,
|
|
@@ -1911,7 +1914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
1911
1914
|
},
|
|
1912
1915
|
DeleteOrganizationUnitService,
|
|
1913
1916
|
MoveAllUsersOfUnitModalService,
|
|
1914
|
-
], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary px-2\" (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 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 }
|
|
1917
|
+
], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary px-2\" (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 abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n ></abp-organization-members>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationRolesKey,\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (nodeId) {\r\n {{ 'AbpIdentity::EditOrganizationUnit' | abpLocalization }}\r\n @if (selectedUnit.displayName) {\r\n - {{ selectedUnit.displayName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewOrganizationUnit' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</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"] }]
|
|
1915
1918
|
}] });
|
|
1916
1919
|
|
|
1917
1920
|
class MoveAllUsersComponent {
|
|
@@ -2076,58 +2079,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
2076
2079
|
|
|
2077
2080
|
class RolesModalComponent {
|
|
2078
2081
|
constructor() {
|
|
2079
|
-
this.visibleChange = new EventEmitter();
|
|
2080
2082
|
this.service = inject(IdentityRoleService);
|
|
2081
|
-
this.fb = inject(FormBuilder);
|
|
2082
2083
|
this.toasterService = inject(ToasterService);
|
|
2083
|
-
this.
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
isPublic: [false],
|
|
2087
|
-
});
|
|
2084
|
+
this.injector = inject(Injector);
|
|
2085
|
+
this.selected = input();
|
|
2086
|
+
this.visibleChange = output();
|
|
2088
2087
|
}
|
|
2089
|
-
|
|
2090
|
-
this.
|
|
2088
|
+
buildForm() {
|
|
2089
|
+
const data = new FormPropData(this.injector, this.selected());
|
|
2090
|
+
this.form = generateFormFromProps(data);
|
|
2091
2091
|
}
|
|
2092
2092
|
ngOnInit() {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
isPublic: this.selected.isPublic,
|
|
2098
|
-
});
|
|
2099
|
-
this.id = this.selected.id;
|
|
2100
|
-
this.isStatic = this.selected.isStatic;
|
|
2101
|
-
}
|
|
2093
|
+
this.buildForm();
|
|
2094
|
+
}
|
|
2095
|
+
onVisibleChange(visible, refresh = false) {
|
|
2096
|
+
this.visibleChange.emit({ visible, refresh });
|
|
2102
2097
|
}
|
|
2103
2098
|
save() {
|
|
2104
|
-
if (!this.form.valid)
|
|
2099
|
+
if (!this.form.valid) {
|
|
2105
2100
|
return;
|
|
2106
|
-
|
|
2107
|
-
|
|
2101
|
+
}
|
|
2102
|
+
let observable = this.service.create(this.form.value);
|
|
2103
|
+
if (this.selected()?.id.length > 0) {
|
|
2104
|
+
const { id } = this.selected();
|
|
2105
|
+
const input = {
|
|
2106
|
+
...this.selected(),
|
|
2108
2107
|
...this.form.value,
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2108
|
+
};
|
|
2109
|
+
observable = this.service.update(id, input);
|
|
2110
|
+
}
|
|
2111
|
+
observable.subscribe(() => {
|
|
2112
|
+
this.onVisibleChange(false, true);
|
|
2112
2113
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
2113
|
-
this.visibleChange.emit({ visible: false, refresh: true });
|
|
2114
2114
|
});
|
|
2115
2115
|
}
|
|
2116
2116
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RolesModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: RolesModalComponent, isStandalone: true, selector: "abp-roles-modal", inputs: {
|
|
2117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: RolesModalComponent, isStandalone: true, selector: "abp-roles-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"roleForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: ExtensibleModule }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] }); }
|
|
2118
2118
|
}
|
|
2119
2119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RolesModalComponent, decorators: [{
|
|
2120
2120
|
type: Component,
|
|
2121
|
-
args: [{ standalone: true, selector: 'abp-roles-modal', imports: [
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
type: Output
|
|
2130
|
-
}] } });
|
|
2121
|
+
args: [{ standalone: true, selector: 'abp-roles-modal', imports: [
|
|
2122
|
+
ExtensibleModule,
|
|
2123
|
+
ThemeSharedModule,
|
|
2124
|
+
LocalizationModule,
|
|
2125
|
+
ReactiveFormsModule,
|
|
2126
|
+
AutofocusDirective,
|
|
2127
|
+
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"roleForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2128
|
+
}] });
|
|
2131
2129
|
|
|
2132
2130
|
class RolesComponent {
|
|
2133
2131
|
constructor() {
|
|
@@ -2135,6 +2133,7 @@ class RolesComponent {
|
|
|
2135
2133
|
this.service = inject(IdentityRoleService);
|
|
2136
2134
|
this.confirmationService = inject(ConfirmationService);
|
|
2137
2135
|
this.destroyRef = inject(DestroyRef);
|
|
2136
|
+
this.injector = inject(Injector);
|
|
2138
2137
|
this.toasterService = inject(ToasterService);
|
|
2139
2138
|
this.data = { items: [], totalCount: 0 };
|
|
2140
2139
|
this.visibleRoleDelete = false;
|
|
@@ -2157,34 +2156,11 @@ class RolesComponent {
|
|
|
2157
2156
|
this.isModalVisible = true;
|
|
2158
2157
|
}
|
|
2159
2158
|
onEdit(id) {
|
|
2160
|
-
this.service
|
|
2161
|
-
.get(id)
|
|
2162
|
-
.pipe(take(1))
|
|
2163
|
-
.subscribe(selectedRole => {
|
|
2159
|
+
this.service.get(id).subscribe(selectedRole => {
|
|
2164
2160
|
this.selected = selectedRole;
|
|
2165
2161
|
this.isModalVisible = true;
|
|
2166
2162
|
});
|
|
2167
2163
|
}
|
|
2168
|
-
save() {
|
|
2169
|
-
if (!this.form.valid)
|
|
2170
|
-
return;
|
|
2171
|
-
this.modalBusy = true;
|
|
2172
|
-
const { id } = this.selected;
|
|
2173
|
-
(id
|
|
2174
|
-
? this.service.update(id, {
|
|
2175
|
-
...this.selected,
|
|
2176
|
-
...this.form.value,
|
|
2177
|
-
id: this.selected.id,
|
|
2178
|
-
concurrencyStamp: this.selected.concurrencyStamp,
|
|
2179
|
-
})
|
|
2180
|
-
: this.service.create(this.form.value))
|
|
2181
|
-
.pipe(finalize(() => (this.modalBusy = false)))
|
|
2182
|
-
.subscribe(() => {
|
|
2183
|
-
this.list.get();
|
|
2184
|
-
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
2185
|
-
this.isModalVisible = false;
|
|
2186
|
-
});
|
|
2187
|
-
}
|
|
2188
2164
|
delete(role) {
|
|
2189
2165
|
this.selected = role;
|
|
2190
2166
|
this.visibleRoleDelete = true;
|
|
@@ -2223,25 +2199,28 @@ class RolesComponent {
|
|
|
2223
2199
|
this.selected = null;
|
|
2224
2200
|
this.visibleMove = false;
|
|
2225
2201
|
}
|
|
2226
|
-
onVisibleModalChange(
|
|
2227
|
-
if (
|
|
2202
|
+
onVisibleModalChange(visibilityChange) {
|
|
2203
|
+
if (visibilityChange.visible) {
|
|
2228
2204
|
return;
|
|
2229
2205
|
}
|
|
2230
|
-
if (
|
|
2206
|
+
if (visibilityChange.refresh) {
|
|
2231
2207
|
this.list.get();
|
|
2232
2208
|
}
|
|
2233
2209
|
this.selected = null;
|
|
2234
2210
|
this.isModalVisible = false;
|
|
2235
2211
|
}
|
|
2236
|
-
onManageClaims(
|
|
2212
|
+
onManageClaims(role) {
|
|
2213
|
+
this.selected = role;
|
|
2237
2214
|
this.claimSubject = {
|
|
2238
|
-
id,
|
|
2215
|
+
id: role.id,
|
|
2216
|
+
title: role.name,
|
|
2239
2217
|
type: 'roles',
|
|
2240
2218
|
};
|
|
2241
2219
|
this.visibleClaims = true;
|
|
2242
2220
|
}
|
|
2243
2221
|
openPermissionsModal(providerKey) {
|
|
2244
2222
|
this.providerKey = providerKey;
|
|
2223
|
+
//TODO: remove timeout if not need, try to use signal
|
|
2245
2224
|
setTimeout(() => {
|
|
2246
2225
|
this.visiblePermissions = true;
|
|
2247
2226
|
}, 0);
|
|
@@ -2253,7 +2232,7 @@ class RolesComponent {
|
|
|
2253
2232
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2254
2233
|
useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
2255
2234
|
},
|
|
2256
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-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 }
|
|
2235
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n>\r\n</abp-permission-management>\r\n\r\n@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: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i8.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: RolesModalComponent, selector: "abp-roles-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: MoveAllUsersComponent, selector: "abp-move-all-users", inputs: ["visible", "selected"], outputs: ["visibleChange"] }, { kind: "component", type: RoleDeleteComponent, selector: "abp-role-delete", inputs: ["visible", "selected"], outputs: ["visibleChange"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["visible", "subject"], outputs: ["visibleChange"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2257
2236
|
}
|
|
2258
2237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RolesComponent, decorators: [{
|
|
2259
2238
|
type: Component,
|
|
@@ -2263,7 +2242,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
|
|
|
2263
2242
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2264
2243
|
useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
2265
2244
|
},
|
|
2266
|
-
], template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-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 }
|
|
2245
|
+
], template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n>\r\n</abp-permission-management>\r\n\r\n@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" }]
|
|
2267
2246
|
}], propDecorators: { modalContent: [{
|
|
2268
2247
|
type: ViewChild,
|
|
2269
2248
|
args: ['modalContent']
|
|
@@ -2526,7 +2505,7 @@ const DEFAULT_ROLES_ENTITY_ACTIONS = EntityAction.createMany([
|
|
|
2526
2505
|
text: 'AbpIdentity::Claims',
|
|
2527
2506
|
action: data => {
|
|
2528
2507
|
const component = data.getInjected(RolesComponent);
|
|
2529
|
-
component.onManageClaims(data.record
|
|
2508
|
+
component.onManageClaims(data.record);
|
|
2530
2509
|
},
|
|
2531
2510
|
permission: 'AbpIdentity.Roles.Update',
|
|
2532
2511
|
},
|
|
@@ -2780,7 +2759,7 @@ const DEFAULT_USERS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
|
2780
2759
|
text: 'AbpIdentity::Claims',
|
|
2781
2760
|
action: data => {
|
|
2782
2761
|
const component = data.getInjected(UsersComponent);
|
|
2783
|
-
component.onManageClaims(data.record
|
|
2762
|
+
component.onManageClaims(data.record);
|
|
2784
2763
|
},
|
|
2785
2764
|
permission: 'AbpIdentity.Users.Update',
|
|
2786
2765
|
},
|
|
@@ -3158,8 +3137,8 @@ const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS = new InjectionToken('IDENTITY_EDIT_F
|
|
|
3158
3137
|
* @deprecated Use `identityExtensionsResolver` *function* instead.
|
|
3159
3138
|
*/
|
|
3160
3139
|
class IdentityExtensionsGuard {
|
|
3161
|
-
constructor(
|
|
3162
|
-
this.injector =
|
|
3140
|
+
constructor() {
|
|
3141
|
+
this.injector = inject(Injector);
|
|
3163
3142
|
}
|
|
3164
3143
|
canActivate() {
|
|
3165
3144
|
const extensions = this.injector.get(ExtensionsService);
|
|
@@ -3168,13 +3147,12 @@ class IdentityExtensionsGuard {
|
|
|
3168
3147
|
const propContributors = this.injector.get(IDENTITY_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
3169
3148
|
const createFormContributors = this.injector.get(IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
3170
3149
|
const editFormContributors = this.injector.get(IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
3171
|
-
|
|
3172
|
-
return getObjectExtensionEntitiesFromStore(configState, 'Identity').pipe(map$1(entities => ({
|
|
3150
|
+
return getObjectExtensionEntitiesFromStore(this.injector, 'Identity').pipe(map$1(entities => ({
|
|
3173
3151
|
["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: entities.ClaimType,
|
|
3174
3152
|
["Identity.RolesComponent" /* eIdentityComponents.Roles */]: entities.Role,
|
|
3175
3153
|
["Identity.UsersComponent" /* eIdentityComponents.Users */]: entities.User,
|
|
3176
3154
|
["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: entities.OrganizationUnit,
|
|
3177
|
-
})), mapEntitiesToContributors(
|
|
3155
|
+
})), mapEntitiesToContributors(this.injector, 'AbpIdentity'), tap$1(objectExtensionContributors => {
|
|
3178
3156
|
mergeWithDefaultActions(extensions.entityActions, DEFAULT_IDENTITY_ENTITY_ACTIONS, actionContributors);
|
|
3179
3157
|
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, toolbarContributors);
|
|
3180
3158
|
mergeWithDefaultProps(extensions.entityProps, DEFAULT_IDENTITY_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
@@ -3182,12 +3160,12 @@ class IdentityExtensionsGuard {
|
|
|
3182
3160
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
3183
3161
|
}), map$1(() => true));
|
|
3184
3162
|
}
|
|
3185
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: IdentityExtensionsGuard, deps: [
|
|
3163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: IdentityExtensionsGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3186
3164
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: IdentityExtensionsGuard }); }
|
|
3187
3165
|
}
|
|
3188
3166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
|
|
3189
3167
|
type: Injectable
|
|
3190
|
-
}]
|
|
3168
|
+
}] });
|
|
3191
3169
|
|
|
3192
3170
|
const identityExtensionsResolver = () => {
|
|
3193
3171
|
const injector = inject(Injector);
|
|
@@ -3197,13 +3175,12 @@ const identityExtensionsResolver = () => {
|
|
|
3197
3175
|
const propContributors = injector.get(IDENTITY_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
3198
3176
|
const createFormContributors = injector.get(IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
3199
3177
|
const editFormContributors = injector.get(IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, null) || {};
|
|
3200
|
-
|
|
3201
|
-
return getObjectExtensionEntitiesFromStore(configState, 'Identity').pipe(map(entities => ({
|
|
3178
|
+
return getObjectExtensionEntitiesFromStore(injector, 'Identity').pipe(map(entities => ({
|
|
3202
3179
|
["Identity.ClaimsComponent" /* eIdentityComponents.Claims */]: entities.ClaimType,
|
|
3203
3180
|
["Identity.RolesComponent" /* eIdentityComponents.Roles */]: entities.Role,
|
|
3204
3181
|
["Identity.UsersComponent" /* eIdentityComponents.Users */]: entities.User,
|
|
3205
3182
|
["Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */]: entities.OrganizationUnit,
|
|
3206
|
-
})), mapEntitiesToContributors(
|
|
3183
|
+
})), mapEntitiesToContributors(injector, 'AbpIdentity'), tap(objectExtensionContributors => {
|
|
3207
3184
|
mergeWithDefaultActions(extensions.entityActions, DEFAULT_IDENTITY_ENTITY_ACTIONS, actionContributors);
|
|
3208
3185
|
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, toolbarContributors);
|
|
3209
3186
|
mergeWithDefaultProps(extensions.entityProps, DEFAULT_IDENTITY_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|