@volo/abp.ng.identity 7.0.0 → 7.0.1
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/esm2020/lib/components/security-logs/security-logs.component.mjs +3 -3
- package/esm2020/lib/components/users/users.component.mjs +14 -7
- package/esm2020/lib/defaults/default-security-logs-entity-props.mjs +2 -2
- package/fesm2015/volo-abp.ng.identity.mjs +12 -10
- package/fesm2015/volo-abp.ng.identity.mjs.map +1 -1
- package/fesm2020/volo-abp.ng.identity.mjs +16 -9
- package/fesm2020/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/users/users.component.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Component, Output, Input, ViewChild, Inject, InjectionToken, Injectable, LOCALE_ID, NgModule } from '@angular/core';
|
|
3
3
|
import * as i5$1 from '@abp/ng.theme.shared/extensions';
|
|
4
|
-
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, DateAdapter, EntityAction, EntityProp,
|
|
4
|
+
import { FormPropData, generateFormFromProps, FormProp, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, DateAdapter, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
|
|
5
5
|
import * as i3 from '@angular/forms';
|
|
6
6
|
import { Validators, UntypedFormControl } from '@angular/forms';
|
|
7
7
|
import * as i3$1 from '@volo/abp.ng.identity/proxy';
|
|
@@ -266,16 +266,15 @@ class UsersComponent {
|
|
|
266
266
|
isOptional: false,
|
|
267
267
|
};
|
|
268
268
|
this.lockForm = this.fb.group({
|
|
269
|
-
lockoutEnd: [new Date(), [Validators.required]],
|
|
269
|
+
lockoutEnd: [new Date().toISOString(), [Validators.required]],
|
|
270
270
|
});
|
|
271
|
-
this.dateTimePickerProps = {
|
|
272
|
-
defaultValue: new Date(),
|
|
271
|
+
this.dateTimePickerProps = FormProp.create({
|
|
273
272
|
displayName: 'AbpIdentity::DisplayName:LockoutEnd',
|
|
274
273
|
validators: () => [Validators.required],
|
|
275
274
|
name: 'lockoutEnd',
|
|
276
275
|
id: 'lockout-end',
|
|
277
276
|
type: "datetime" /* ePropType.DateTime */,
|
|
278
|
-
};
|
|
277
|
+
});
|
|
279
278
|
this.trackByFn = (index, item) => Object.keys(item)[0] || index;
|
|
280
279
|
this.onVisiblePermissionChange = (value) => {
|
|
281
280
|
this.visiblePermissions = value;
|
|
@@ -304,7 +303,15 @@ class UsersComponent {
|
|
|
304
303
|
}
|
|
305
304
|
hookToQuery() {
|
|
306
305
|
this.list
|
|
307
|
-
.hookToQuery(query =>
|
|
306
|
+
.hookToQuery(query => {
|
|
307
|
+
const { isLockedOut, notActive, ...params } = this.filters;
|
|
308
|
+
return this.service.getList({
|
|
309
|
+
...query,
|
|
310
|
+
...params,
|
|
311
|
+
...(isLockedOut && { isLockedOut }),
|
|
312
|
+
...(notActive && { notActive }),
|
|
313
|
+
});
|
|
314
|
+
})
|
|
308
315
|
.subscribe(res => (this.data = res));
|
|
309
316
|
}
|
|
310
317
|
buildForm() {
|
|
@@ -1245,7 +1252,7 @@ SecurityLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
1245
1252
|
useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
1246
1253
|
},
|
|
1247
1254
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
1248
|
-
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-
|
|
1255
|
+
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::Date' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n [(ngModel)]=\"filter\"\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-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mt-3 d-grid\">\r\n <button (click)=\"list.get()\" class=\"btn btn-primary\">\r\n <i class=\"fas fa-search\"></i> \r\n <span>{{ 'SecurityLogs::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp"] }, { kind: "component", type: i5$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i12.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
|
|
1249
1256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SecurityLogsComponent, decorators: [{
|
|
1250
1257
|
type: Component,
|
|
1251
1258
|
args: [{ selector: 'abp-security-logs', providers: [
|
|
@@ -1255,7 +1262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImpor
|
|
|
1255
1262
|
useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
1256
1263
|
},
|
|
1257
1264
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
1258
|
-
], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-
|
|
1265
|
+
], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::Date' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n [(ngModel)]=\"filter\"\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-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mt-3 d-grid\">\r\n <button (click)=\"list.get()\" class=\"btn btn-primary\">\r\n <i class=\"fas fa-search\"></i> \r\n <span>{{ 'SecurityLogs::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n" }]
|
|
1259
1266
|
}], ctorParameters: function () { return [{ type: i1.ListService }, { type: i3$1.IdentitySecurityLogService }]; } });
|
|
1260
1267
|
|
|
1261
1268
|
const DEFAULT_CLAIMS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
@@ -1562,7 +1569,7 @@ const DEFAULT_SECURITY_LOGS_ENTITY_PROPS = EntityProp.createMany([
|
|
|
1562
1569
|
{
|
|
1563
1570
|
type: "string" /* ePropType.String */,
|
|
1564
1571
|
name: 'creationTime',
|
|
1565
|
-
displayName: '
|
|
1572
|
+
displayName: '::Date',
|
|
1566
1573
|
sortable: true,
|
|
1567
1574
|
columnWidth: 180,
|
|
1568
1575
|
valueResolver: data => {
|