@volo/abp.ng.audit-logging 7.4.2 → 8.0.0-rc.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/esm2022/config/audit-logging-config.module.mjs +5 -5
- package/esm2022/config/components/entity-change-details.component.mjs +5 -5
- package/esm2022/config/components/entity-change-modal.component.mjs +5 -5
- package/esm2022/config/services/entity-change-modal.service.mjs +5 -5
- package/esm2022/lib/audit-logging-routing.module.mjs +10 -9
- package/esm2022/lib/audit-logging.module.mjs +5 -9
- package/esm2022/lib/components/audit-log-datetime-picker/audit-log-datetime-picker.component.mjs +8 -9
- package/esm2022/lib/components/audit-logs/audit-logs.component.mjs +8 -7
- package/esm2022/lib/components/entity-change/entity-changes.component.mjs +11 -10
- package/esm2022/lib/components/widgets/average-execution-duration-widget.component.mjs +5 -5
- package/esm2022/lib/components/widgets/error-rate-widget.component.mjs +5 -5
- package/esm2022/lib/defaults/default-audit-logs-entity-actions.mjs +2 -2
- package/esm2022/lib/defaults/default-audit-logs-entity-props.mjs +2 -2
- package/esm2022/lib/defaults/default-audit-logs-toolbar-actions.mjs +2 -2
- package/esm2022/lib/defaults/default-entity-changes-entity-actions.mjs +2 -2
- package/esm2022/lib/guards/audit-logging.guard.mjs +14 -7
- package/esm2022/lib/guards/extensions.guard.mjs +11 -8
- package/esm2022/lib/models/config-options.mjs +1 -1
- package/esm2022/lib/resolvers/extensions.resolver.mjs +21 -0
- package/esm2022/lib/resolvers/index.mjs +2 -0
- package/esm2022/lib/tokens/extensions.token.mjs +1 -1
- package/esm2022/proxy/lib/proxy/audit-logging/audit-logs.service.mjs +5 -5
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/volo-abp.ng.audit-logging-common.mjs +1 -1
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs +16 -16
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs +4 -4
- package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging.mjs +101 -77
- package/fesm2022/volo-abp.ng.audit-logging.mjs.map +1 -1
- package/lib/components/audit-log-datetime-picker/audit-log-datetime-picker.component.d.ts +1 -2
- package/lib/defaults/default-audit-logs-entity-actions.d.ts +1 -1
- package/lib/defaults/default-audit-logs-entity-props.d.ts +1 -1
- package/lib/defaults/default-audit-logs-toolbar-actions.d.ts +1 -1
- package/lib/defaults/default-entity-changes-entity-actions.d.ts +1 -1
- package/lib/guards/audit-logging.guard.d.ts +4 -0
- package/lib/guards/extensions.guard.d.ts +3 -0
- package/lib/models/config-options.d.ts +1 -1
- package/lib/resolvers/extensions.resolver.d.ts +2 -0
- package/lib/resolvers/index.d.ts +1 -0
- package/lib/tokens/extensions.token.d.ts +5 -5
- package/package.json +4 -4
- package/public-api.d.ts +1 -0
|
@@ -3,32 +3,32 @@ import { ChartComponent, ChartModule } from '@abp/ng.components/chart.js';
|
|
|
3
3
|
import * as i8$1 from '@abp/ng.components/page';
|
|
4
4
|
import { PageModule } from '@abp/ng.components/page';
|
|
5
5
|
import * as i1 from '@abp/ng.core';
|
|
6
|
-
import { AbstractNgModelComponent, mapEnumToOptions, ListService, ConfigStateService, RouterOutletComponent,
|
|
7
|
-
import * as
|
|
8
|
-
import { collapse, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
6
|
+
import { AbstractNgModelComponent, mapEnumToOptions, ListService, ConfigStateService, RouterOutletComponent, authGuard, permissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
|
|
7
|
+
import * as i9 from '@abp/ng.theme.shared';
|
|
8
|
+
import { DateTimeAdapter, TimeAdapter, DateAdapter, collapse, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
|
-
import { inject,
|
|
10
|
+
import { inject, forwardRef, Component, ChangeDetectionStrategy, Injectable, Inject, InjectionToken, Injector, NgModule, Output, Input, ViewChild } from '@angular/core';
|
|
11
11
|
import * as i7 from '@ng-bootstrap/ng-bootstrap';
|
|
12
12
|
import { NgbDateParserFormatter, NgbDateAdapter, NgbDateStructAdapter, NgbDatepickerModule, NgbTimepicker, NgbPopoverModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
|
|
13
13
|
import * as i5 from '@volo/abp.commercial.ng.ui';
|
|
14
14
|
import { SHOW_ENTITY_HISTORY, CommercialUiModule } from '@volo/abp.commercial.ng.ui';
|
|
15
15
|
import * as i1$2 from '@angular/router';
|
|
16
16
|
import { RouterModule } from '@angular/router';
|
|
17
|
-
import * as i6 from '@abp/ng.
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
17
|
+
import * as i6 from '@abp/ng.components/extensible';
|
|
18
|
+
import { EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, ExtensionsService, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, getObjectExtensionEntitiesFromStore } from '@abp/ng.components/extensible';
|
|
19
|
+
import { useAnimation, transition, trigger } from '@angular/animations';
|
|
20
20
|
import * as i2$1 from '@volo/abp.ng.audit-logging/proxy';
|
|
21
21
|
import { EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
|
|
22
|
-
import { take, map, tap
|
|
22
|
+
import { take, map, tap as tap$1 } from 'rxjs/operators';
|
|
23
23
|
import * as i3 from '@angular/common';
|
|
24
24
|
import { CommonModule } from '@angular/common';
|
|
25
25
|
import * as i2 from '@angular/forms';
|
|
26
26
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
27
27
|
import * as i7$1 from '@swimlane/ngx-datatable';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i8 from '@ngx-validate/core';
|
|
29
29
|
import { AUDIT_LOGGING_FEATURES } from '@volo/abp.ng.audit-logging/common';
|
|
30
30
|
import * as i1$1 from 'rxjs';
|
|
31
|
-
import { of, BehaviorSubject } from 'rxjs';
|
|
31
|
+
import { of, map as map$1, tap, BehaviorSubject } from 'rxjs';
|
|
32
32
|
|
|
33
33
|
const HTTP_METHODS = ['GET', 'POST', 'DELETE', 'PUT', 'HEAD', 'CONNECT', 'OPTIONS', 'TRACE'];
|
|
34
34
|
const HTTP_STATUS_CODES = [
|
|
@@ -96,8 +96,7 @@ const HTTP_STATUS_CODES = [
|
|
|
96
96
|
|
|
97
97
|
class AuditLogDatetimePickerComponent extends AbstractNgModelComponent {
|
|
98
98
|
constructor() {
|
|
99
|
-
|
|
100
|
-
super(injector);
|
|
99
|
+
super(...arguments);
|
|
101
100
|
this.dateTimeAdapter = inject(DateTimeAdapter);
|
|
102
101
|
this.timeAdapter = inject(TimeAdapter);
|
|
103
102
|
this.formatter = inject(NgbDateParserFormatter);
|
|
@@ -121,8 +120,8 @@ class AuditLogDatetimePickerComponent extends AbstractNgModelComponent {
|
|
|
121
120
|
const time = this.timeAdapter.toModel(this.time);
|
|
122
121
|
this.formattedValue = [date, time].filter(x => !!x).join(this.separator);
|
|
123
122
|
}
|
|
124
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLogDatetimePickerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: AuditLogDatetimePickerComponent, isStandalone: true, selector: "abp-audit-log-datetime-picker", providers: [
|
|
126
125
|
{
|
|
127
126
|
provide: NG_VALUE_ACCESSOR,
|
|
128
127
|
useExisting: forwardRef(() => AuditLogDatetimePickerComponent),
|
|
@@ -133,7 +132,7 @@ class AuditLogDatetimePickerComponent extends AbstractNgModelComponent {
|
|
|
133
132
|
{ provide: NgbDateAdapter, useClass: NgbDateStructAdapter },
|
|
134
133
|
], usesInheritance: true, ngImport: i0, template: "<input\r\n [value]=\"formattedValue\"\r\n (dateSelect)=\"setDate($event)\"\r\n (click)=\"datepicker.open()\"\r\n (keyup.space)=\"datepicker.open()\"\r\n ngbDatepicker\r\n [autoClose]=\"'outside'\"\r\n #datepicker=\"ngbDatepicker\"\r\n [footerTemplate]=\"footer\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n/>\r\n<ng-template #footer>\r\n <div class=\"d-flex justify-content-center\">\r\n <ngb-timepicker\r\n [ngModel]=\"time\"\r\n (ngModelChange)=\"setTime($event)\"\r\n ></ngb-timepicker>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: NgbDatepickerModule }, { kind: "directive", type: i7.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "contentTemplate", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "popperOptions", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: NgbTimepicker, selector: "ngb-timepicker", inputs: ["meridian", "spinners", "seconds", "hourStep", "minuteStep", "secondStep", "readonlyInputs", "size"], exportAs: ["ngbTimepicker"] }, { kind: "ngmodule", type: NgbPopoverModule }] }); }
|
|
135
134
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLogDatetimePickerComponent, decorators: [{
|
|
137
136
|
type: Component,
|
|
138
137
|
args: [{ selector: 'abp-audit-log-datetime-picker', standalone: true, imports: [CommonModule, NgbDatepickerModule, FormsModule, NgbTimepicker, NgbPopoverModule], providers: [
|
|
139
138
|
{
|
|
@@ -145,7 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
145
144
|
{ provide: TimeAdapter, useClass: TimeAdapter },
|
|
146
145
|
{ provide: NgbDateAdapter, useClass: NgbDateStructAdapter },
|
|
147
146
|
], template: "<input\r\n [value]=\"formattedValue\"\r\n (dateSelect)=\"setDate($event)\"\r\n (click)=\"datepicker.open()\"\r\n (keyup.space)=\"datepicker.open()\"\r\n ngbDatepicker\r\n [autoClose]=\"'outside'\"\r\n #datepicker=\"ngbDatepicker\"\r\n [footerTemplate]=\"footer\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n/>\r\n<ng-template #footer>\r\n <div class=\"d-flex justify-content-center\">\r\n <ngb-timepicker\r\n [ngModel]=\"time\"\r\n (ngModelChange)=\"setTime($event)\"\r\n ></ngb-timepicker>\r\n </div>\r\n</ng-template>\r\n" }]
|
|
148
|
-
}]
|
|
147
|
+
}] });
|
|
149
148
|
|
|
150
149
|
class EntityChangesComponent {
|
|
151
150
|
get data() {
|
|
@@ -190,17 +189,17 @@ class EntityChangesComponent {
|
|
|
190
189
|
handleSubmit() {
|
|
191
190
|
this.list.get();
|
|
192
191
|
}
|
|
193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
194
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EntityChangesComponent, deps: [{ token: i1.ListService }, { token: i2.UntypedFormBuilder }, { token: i2$1.AuditLogsService }, { token: i1.TrackByService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
193
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EntityChangesComponent, selector: "abp-entity-changes", providers: [
|
|
195
194
|
ListService,
|
|
196
195
|
{
|
|
197
196
|
provide: EXTENSIONS_IDENTIFIER,
|
|
198
197
|
useValue: "AuditLogging.EntityChangesComponent" /* eAuditLoggingComponents.EntityChanges */,
|
|
199
198
|
},
|
|
200
199
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
201
|
-
], ngImport: i0, template: "<div class=\"card\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 col-lg-4 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpAuditLogging::ChangeTime' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n formControlName=\"times\"\r\n startDateProp=\"startDate\"\r\n endDateProp=\"endDate\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"change-type\">{{\r\n 'AbpAuditLogging::ChangeType' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"change-type\"\r\n class=\"form-select form-control\"\r\n formControlName=\"entityChangeType\"\r\n (change)=\"handleSubmit()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option\r\n *ngFor=\"let type of changeTypes; trackBy: track.by('id')\"\r\n [ngValue]=\"type.value\"\r\n >\r\n {{ 'AbpAuditLogging::' + type.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"entity-type-full-name\">{{\r\n 'AbpAuditLogging::EntityTypeFullName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"entity-type-full-name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n formControlName=\"entityTypeFullName\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 col-lg-2\">\r\n <div class=\"mt-3\">\r\n <div class=\"col-6 d-grid text-end\">\r\n <button type=\"submit\" class=\"btn btn-primary\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n<div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <ngx-datatable default [rows]=\"data\" [count]=\"count\" [list]=\"list\">\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Detail' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"rowIndex\" ngx-datatable-cell-template>\r\n <abp-grid-actions\r\n [index]=\"i\"\r\n [record]=\"row\"\r\n text=\"AbpAuditLogging::Actions\"\r\n ></abp-grid-actions>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Time' | abpLocalization\"\r\n [width]=\"230\"\r\n prop=\"changeTime\"\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]=\"'AbpAuditLogging::ChangeType' | abpLocalization\"\r\n [width]=\"140\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ 'AbpAuditLogging::' + changeType[row.changeType] | abpLocalization }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column name=\"TenantId\" [width]=\"150\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.tenantId }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::EntityTypeFullName' | abpLocalization\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "component", type: i6.GridActionsComponent, selector: "abp-grid-actions", inputs: ["icon", "index", "text"], exportAs: ["abpGridActions"] }, { kind: "component", type: i7$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: i7$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: i7$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i8.
|
|
200
|
+
], ngImport: i0, template: "<div class=\"card\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 col-lg-4 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpAuditLogging::ChangeTime' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n formControlName=\"times\"\r\n startDateProp=\"startDate\"\r\n endDateProp=\"endDate\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"change-type\">{{\r\n 'AbpAuditLogging::ChangeType' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"change-type\"\r\n class=\"form-select form-control\"\r\n formControlName=\"entityChangeType\"\r\n (change)=\"handleSubmit()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option\r\n *ngFor=\"let type of changeTypes; trackBy: track.by('id')\"\r\n [ngValue]=\"type.value\"\r\n >\r\n {{ 'AbpAuditLogging::' + type.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"entity-type-full-name\">{{\r\n 'AbpAuditLogging::EntityTypeFullName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"entity-type-full-name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n formControlName=\"entityTypeFullName\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 col-lg-2\">\r\n <div class=\"mt-3\">\r\n <div class=\"col-6 d-grid text-end\">\r\n <button type=\"submit\" class=\"btn btn-primary\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n<div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <ngx-datatable default [rows]=\"data\" [count]=\"count\" [list]=\"list\">\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Detail' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"rowIndex\" ngx-datatable-cell-template>\r\n <abp-grid-actions\r\n [index]=\"i\"\r\n [record]=\"row\"\r\n text=\"AbpAuditLogging::Actions\"\r\n ></abp-grid-actions>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Time' | abpLocalization\"\r\n [width]=\"230\"\r\n prop=\"changeTime\"\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]=\"'AbpAuditLogging::ChangeType' | abpLocalization\"\r\n [width]=\"140\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ 'AbpAuditLogging::' + changeType[row.changeType] | abpLocalization }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column name=\"TenantId\" [width]=\"150\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.tenantId }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::EntityTypeFullName' | abpLocalization\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "component", type: i6.GridActionsComponent, selector: "abp-grid-actions", inputs: ["icon", "index", "text"], exportAs: ["abpGridActions"] }, { kind: "component", type: i7$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: i7$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: i7$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i8.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i8.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: i9.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i9.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.ShortDateTimePipe, name: "shortDateTime" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
202
201
|
}
|
|
203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EntityChangesComponent, decorators: [{
|
|
204
203
|
type: Component,
|
|
205
204
|
args: [{ selector: 'abp-entity-changes', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
206
205
|
ListService,
|
|
@@ -210,7 +209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
210
209
|
},
|
|
211
210
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
212
211
|
], template: "<div class=\"card\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12 col-lg-4 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpAuditLogging::ChangeTime' | abpLocalization }}</label>\r\n <abp-date-range-picker\r\n formControlName=\"times\"\r\n startDateProp=\"startDate\"\r\n endDateProp=\"endDate\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"change-type\">{{\r\n 'AbpAuditLogging::ChangeType' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"change-type\"\r\n class=\"form-select form-control\"\r\n formControlName=\"entityChangeType\"\r\n (change)=\"handleSubmit()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option\r\n *ngFor=\"let type of changeTypes; trackBy: track.by('id')\"\r\n [ngValue]=\"type.value\"\r\n >\r\n {{ 'AbpAuditLogging::' + type.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"entity-type-full-name\">{{\r\n 'AbpAuditLogging::EntityTypeFullName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"entity-type-full-name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n formControlName=\"entityTypeFullName\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 col-lg-2\">\r\n <div class=\"mt-3\">\r\n <div class=\"col-6 d-grid text-end\">\r\n <button type=\"submit\" class=\"btn btn-primary\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n<div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <ngx-datatable default [rows]=\"data\" [count]=\"count\" [list]=\"list\">\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Detail' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"rowIndex\" ngx-datatable-cell-template>\r\n <abp-grid-actions\r\n [index]=\"i\"\r\n [record]=\"row\"\r\n text=\"AbpAuditLogging::Actions\"\r\n ></abp-grid-actions>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Time' | abpLocalization\"\r\n [width]=\"230\"\r\n prop=\"changeTime\"\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]=\"'AbpAuditLogging::ChangeType' | abpLocalization\"\r\n [width]=\"140\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ 'AbpAuditLogging::' + changeType[row.changeType] | abpLocalization }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column name=\"TenantId\" [width]=\"150\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.tenantId }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::EntityTypeFullName' | abpLocalization\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n</div>\r\n" }]
|
|
213
|
-
}], ctorParameters:
|
|
212
|
+
}], ctorParameters: () => [{ type: i1.ListService }, { type: i2.UntypedFormBuilder }, { type: i2$1.AuditLogsService }, { type: i1.TrackByService }, { type: i0.ChangeDetectorRef }] });
|
|
214
213
|
|
|
215
214
|
class AuditLogsComponent {
|
|
216
215
|
constructor(list, service) {
|
|
@@ -287,17 +286,17 @@ class AuditLogsComponent {
|
|
|
287
286
|
return '';
|
|
288
287
|
}
|
|
289
288
|
}
|
|
290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLogsComponent, deps: [{ token: i1.ListService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
290
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: AuditLogsComponent, selector: "abp-audit-logs", providers: [
|
|
292
291
|
ListService,
|
|
293
292
|
{
|
|
294
293
|
provide: EXTENSIONS_IDENTIFIER,
|
|
295
294
|
useValue: "AuditLogging.AuditLogsComponent" /* eAuditLoggingComponents.AuditLogs */,
|
|
296
295
|
},
|
|
297
296
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
298
|
-
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n (click)=\"selectedTab = 'audit-logs'\"\r\n >{{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n (click)=\"selectedTab = 'entity-changes'\"\r\n >{{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'audit-logs'\">\r\n <div class=\"tab-pane\" [class.active]=\"selectedTab === 'audit-logs'\" [@fadeIn]=\"selectedTab\">\r\n <div class=\"card mb-0\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"userName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::UserName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"userName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"url\">{{\r\n 'AbpAuditLogging::Url' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"url\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.url\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinMaxDuration' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group\">\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <span class=\"input-group-text px-1\">-</span>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let method of httpMethods\" [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let h of httpStatusCodes\" [ngValue]=\"h.code\">\r\n {{ h.code }} - {{ h.message }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"applicationName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ApplicationName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"applicationName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.applicationName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ClientIpAddress' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"clientIpAddress\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.clientIpAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::CorrelationId' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"correlationId\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.correlationId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\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 </div>\r\n </div>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'entity-changes'\">\r\n <div\r\n class=\"tab-pane\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n [@fadeIn]=\"selectedTab\"\r\n >\r\n <abp-entity-changes *ngIf=\"selectedTab === 'entity-changes'\"></abp-entity-changes>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n<abp-modal *ngIf=\"selected\" [(visible)]=\"modalVisible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpAuditLogging::Detail' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::Overall' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpStatusCode' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpCodeClass(selected.httpStatusCode)\">{{\r\n selected.httpStatusCode\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpMethod' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpMethodClass(selected.httpMethod)\">{{\r\n selected.httpMethod\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Url' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.url }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientIpAddress' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientIpAddress }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Exceptions' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"c-sharp\" *ngIf=\"selected.exceptions\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.userName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <ng-container *ngIf=\"selected.impersonatorTenantId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::TenantImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.impersonatorTenantName || selected.impersonatorTenantId }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <ng-container *ngIf=\"selected.impersonatorUserId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <ng-container *ngIf=\"selected.impersonatorUserName; else onlyImpersonatorUserId\">\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n </ng-container>\r\n <ng-template #onlyImpersonatorUserId>\r\n {{ selected.impersonatorUserId }}\r\n </ng-template>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})</a\r\n >\r\n <ng-template ngbNavContent>\r\n <div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngFor=\"let action of selected.actions; let i = index\"\r\n >\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-primary d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"collapseActionStates[i] = !collapseActionStates[i]\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"collapseActionStates[i] ? 'fa-chevron-up' : 'fa-chevron-down'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [@collapse]=\"collapseActionStates[i] ? 'expanded' : 'collapsed'\">\r\n <div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ action.executionDuration ? action.executionDuration + ' ms' : '' }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i8.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i8.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i7.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i7.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i7.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i7.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i7.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i7.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i7.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: i8$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: AuditLogDatetimePickerComponent, selector: "abp-audit-log-datetime-picker" }, { kind: "component", type: EntityChangesComponent, selector: "abp-entity-changes" }, { kind: "pipe", type: i3.JsonPipe, name: "json" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.ShortDateTimePipe, name: "shortDateTime" }], animations: [collapse, trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])] }); }
|
|
297
|
+
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n (click)=\"selectedTab = 'audit-logs'\"\r\n >{{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n (click)=\"selectedTab = 'entity-changes'\"\r\n >{{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'audit-logs'\">\r\n <div class=\"tab-pane\" [class.active]=\"selectedTab === 'audit-logs'\" [@fadeIn]=\"selectedTab\">\r\n <div class=\"card mb-0\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"userName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::UserName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"userName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"url\">{{\r\n 'AbpAuditLogging::Url' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"url\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.url\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinMaxDuration' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group\">\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <span class=\"input-group-text px-1\">-</span>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let method of httpMethods\" [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let h of httpStatusCodes\" [ngValue]=\"h.code\">\r\n {{ h.code }} - {{ h.message }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"applicationName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ApplicationName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"applicationName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.applicationName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ClientIpAddress' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"clientIpAddress\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.clientIpAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::CorrelationId' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"correlationId\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.correlationId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\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 </div>\r\n </div>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'entity-changes'\">\r\n <div\r\n class=\"tab-pane\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n [@fadeIn]=\"selectedTab\"\r\n >\r\n <abp-entity-changes *ngIf=\"selectedTab === 'entity-changes'\"></abp-entity-changes>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n<abp-modal *ngIf=\"selected\" [(visible)]=\"modalVisible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpAuditLogging::Detail' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::Overall' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpStatusCode' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpCodeClass(selected.httpStatusCode)\">{{\r\n selected.httpStatusCode\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpMethod' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpMethodClass(selected.httpMethod)\">{{\r\n selected.httpMethod\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Url' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.url }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientIpAddress' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientIpAddress }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Exceptions' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"c-sharp\" *ngIf=\"selected.exceptions\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.userName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <ng-container *ngIf=\"selected.impersonatorTenantId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::TenantImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.impersonatorTenantName || selected.impersonatorTenantId }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <ng-container *ngIf=\"selected.impersonatorUserId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <ng-container *ngIf=\"selected.impersonatorUserName; else onlyImpersonatorUserId\">\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n </ng-container>\r\n <ng-template #onlyImpersonatorUserId>\r\n {{ selected.impersonatorUserId }}\r\n </ng-template>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})</a\r\n >\r\n <ng-template ngbNavContent>\r\n <div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngFor=\"let action of selected.actions; let i = index\"\r\n >\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-primary d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"collapseActionStates[i] = !collapseActionStates[i]\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"collapseActionStates[i] ? 'fa-chevron-up' : 'fa-chevron-down'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [@collapse]=\"collapseActionStates[i] ? 'expanded' : 'collapsed'\">\r\n <div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ action.executionDuration ? action.executionDuration + ' ms' : '' }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.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: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i6.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i9.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i9.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i7.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i7.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i7.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i7.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i7.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i7.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i7.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: i8$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: AuditLogDatetimePickerComponent, selector: "abp-audit-log-datetime-picker" }, { kind: "component", type: EntityChangesComponent, selector: "abp-entity-changes" }, { kind: "pipe", type: i3.JsonPipe, name: "json" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.ShortDateTimePipe, name: "shortDateTime" }], animations: [collapse, trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])] }); }
|
|
299
298
|
}
|
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLogsComponent, decorators: [{
|
|
301
300
|
type: Component,
|
|
302
301
|
args: [{ selector: 'abp-audit-logs', animations: [collapse, trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])], providers: [
|
|
303
302
|
ListService,
|
|
@@ -307,8 +306,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
307
306
|
},
|
|
308
307
|
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
309
308
|
], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n (click)=\"selectedTab = 'audit-logs'\"\r\n >{{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n (click)=\"selectedTab = 'entity-changes'\"\r\n >{{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'audit-logs'\">\r\n <div class=\"tab-pane\" [class.active]=\"selectedTab === 'audit-logs'\" [@fadeIn]=\"selectedTab\">\r\n <div class=\"card mb-0\">\r\n <div class=\"card-body pb-lg-3 px-0\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-audit-log-datetime-picker\r\n [(ngModel)]=\"this.pageQuery.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-audit-log-datetime-picker>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"userName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::UserName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"userName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"url\">{{\r\n 'AbpAuditLogging::Url' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"url\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.url\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinMaxDuration' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group\">\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <span class=\"input-group-text px-1\">-</span>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let method of httpMethods\" [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option *ngFor=\"let h of httpStatusCodes\" [ngValue]=\"h.code\">\r\n {{ h.code }} - {{ h.message }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"applicationName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ApplicationName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"applicationName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.applicationName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ClientIpAddress' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"clientIpAddress\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.clientIpAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::CorrelationId' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"correlationId\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.correlationId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-2\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\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 </div>\r\n </div>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'entity-changes'\">\r\n <div\r\n class=\"tab-pane\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n [@fadeIn]=\"selectedTab\"\r\n >\r\n <abp-entity-changes *ngIf=\"selectedTab === 'entity-changes'\"></abp-entity-changes>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n<abp-modal *ngIf=\"selected\" [(visible)]=\"modalVisible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpAuditLogging::Detail' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::Overall' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpStatusCode' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpCodeClass(selected.httpStatusCode)\">{{\r\n selected.httpStatusCode\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpMethod' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpMethodClass(selected.httpMethod)\">{{\r\n selected.httpMethod\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Url' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.url }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientIpAddress' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientIpAddress }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Exceptions' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"c-sharp\" *ngIf=\"selected.exceptions\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.userName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <ng-container *ngIf=\"selected.impersonatorTenantId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::TenantImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.impersonatorTenantName || selected.impersonatorTenantId }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <ng-container *ngIf=\"selected.impersonatorUserId\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserImpersonator' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <ng-container *ngIf=\"selected.impersonatorUserName; else onlyImpersonatorUserId\">\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n </ng-container>\r\n <ng-template #onlyImpersonatorUserId>\r\n {{ selected.impersonatorUserId }}\r\n </ng-template>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n </ng-container>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})</a\r\n >\r\n <ng-template ngbNavContent>\r\n <div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngFor=\"let action of selected.actions; let i = index\"\r\n >\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-primary d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"collapseActionStates[i] = !collapseActionStates[i]\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"collapseActionStates[i] ? 'fa-chevron-up' : 'fa-chevron-down'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [@collapse]=\"collapseActionStates[i] ? 'expanded' : 'collapsed'\">\r\n <div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ action.executionDuration ? action.executionDuration + ' ms' : '' }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
310
|
-
}], ctorParameters:
|
|
309
|
+
}], ctorParameters: () => [{ type: i1.ListService }, { type: i2$1.AuditLogsService }] });
|
|
311
310
|
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated Use `auditLoggingGuard` *function* instead.
|
|
313
|
+
*/
|
|
312
314
|
class AuditLoggingGuard {
|
|
313
315
|
constructor(auditLoggingFeatures) {
|
|
314
316
|
this.auditLoggingFeatures = auditLoggingFeatures;
|
|
@@ -316,15 +318,21 @@ class AuditLoggingGuard {
|
|
|
316
318
|
canActivate() {
|
|
317
319
|
return this.auditLoggingFeatures.pipe(map(features => features.enable));
|
|
318
320
|
}
|
|
319
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
320
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingGuard, deps: [{ token: AUDIT_LOGGING_FEATURES }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
322
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingGuard }); }
|
|
321
323
|
}
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingGuard, decorators: [{
|
|
323
325
|
type: Injectable
|
|
324
|
-
}], ctorParameters:
|
|
326
|
+
}], ctorParameters: () => [{ type: i1$1.Observable, decorators: [{
|
|
325
327
|
type: Inject,
|
|
326
328
|
args: [AUDIT_LOGGING_FEATURES]
|
|
327
|
-
}] }]
|
|
329
|
+
}] }] });
|
|
330
|
+
const auditLoggingGuard = () => {
|
|
331
|
+
const auditLoggingFeatures = inject(AUDIT_LOGGING_FEATURES);
|
|
332
|
+
return auditLoggingFeatures.pipe(map(features => features.enable));
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const SHOW_ENTITY_DETAILS = new InjectionToken('SHOW_ENTITY_DETAILS');
|
|
328
336
|
|
|
329
337
|
const DEFAULT_AUDIT_LOGS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
330
338
|
{
|
|
@@ -393,8 +401,6 @@ const DEFAULT_AUDIT_LOGS_ENTITY_PROPS = EntityProp.createMany([
|
|
|
393
401
|
|
|
394
402
|
const DEFAULT_AUDIT_LOGS_TOOLBAR_ACTIONS = ToolbarAction.createMany([]);
|
|
395
403
|
|
|
396
|
-
const SHOW_ENTITY_DETAILS = new InjectionToken('SHOW_ENTITY_DETAILS');
|
|
397
|
-
|
|
398
404
|
const DEFAULT_ENTITY_CHANGES_ENTITY_ACTIONS = EntityAction.createMany([
|
|
399
405
|
{
|
|
400
406
|
text: 'AbpAuditLogging::ChangeDetails',
|
|
@@ -428,36 +434,28 @@ const AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGI
|
|
|
428
434
|
const AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS');
|
|
429
435
|
const AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS');
|
|
430
436
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
mergeWithDefaultProps(extensions.entityProps, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
447
|
-
}), mapTo(true));
|
|
448
|
-
}
|
|
449
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuditLoggingExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
450
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuditLoggingExtensionsGuard }); }
|
|
451
|
-
}
|
|
452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuditLoggingExtensionsGuard, decorators: [{
|
|
453
|
-
type: Injectable
|
|
454
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
437
|
+
const auditLoggingExtensionsResolver = () => {
|
|
438
|
+
const injector = inject(Injector);
|
|
439
|
+
const extensions = injector.get(ExtensionsService);
|
|
440
|
+
const actionContributors = injector.get(AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
441
|
+
const toolbarContributors = injector.get(AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
442
|
+
const propContributors = injector.get(AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
443
|
+
const configState = injector.get(ConfigStateService);
|
|
444
|
+
return getObjectExtensionEntitiesFromStore(configState, 'AuditLogging').pipe(map$1(entities => ({
|
|
445
|
+
["AuditLogging.AuditLogsComponent" /* eAuditLoggingComponents.AuditLogs */]: entities.AuditLog,
|
|
446
|
+
})), mapEntitiesToContributors(configState, 'AuditLogging'), tap(objectExtensionContributors => {
|
|
447
|
+
mergeWithDefaultActions(extensions.entityActions, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, actionContributors);
|
|
448
|
+
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, toolbarContributors);
|
|
449
|
+
mergeWithDefaultProps(extensions.entityProps, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
450
|
+
}));
|
|
451
|
+
};
|
|
455
452
|
|
|
456
453
|
const routes = [
|
|
457
454
|
{
|
|
458
455
|
path: '',
|
|
459
456
|
component: RouterOutletComponent,
|
|
460
|
-
canActivate: [
|
|
457
|
+
canActivate: [authGuard, permissionGuard, auditLoggingGuard],
|
|
458
|
+
resolve: [auditLoggingExtensionsResolver],
|
|
461
459
|
children: [
|
|
462
460
|
{
|
|
463
461
|
path: '',
|
|
@@ -474,11 +472,11 @@ const routes = [
|
|
|
474
472
|
},
|
|
475
473
|
];
|
|
476
474
|
class AuditLoggingRoutingModule {
|
|
477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
478
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
479
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
475
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
476
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
477
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
480
478
|
}
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingRoutingModule, decorators: [{
|
|
482
480
|
type: NgModule,
|
|
483
481
|
args: [{
|
|
484
482
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -528,8 +526,8 @@ class AverageExecutionDurationWidgetComponent {
|
|
|
528
526
|
this.chart.refresh();
|
|
529
527
|
}, 0);
|
|
530
528
|
}
|
|
531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
532
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
529
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AverageExecutionDurationWidgetComponent, deps: [{ token: i1.LocalizationService }, { token: i1.PermissionService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
530
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: AverageExecutionDurationWidgetComponent, selector: "abp-average-execution-duration-widget", inputs: { width: "width", height: "height" }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }], ngImport: i0, template: `
|
|
533
531
|
<div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
|
|
534
532
|
<div class="card">
|
|
535
533
|
<div class="card-header">
|
|
@@ -553,7 +551,7 @@ class AverageExecutionDurationWidgetComponent {
|
|
|
553
551
|
</div>
|
|
554
552
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "component", type: i3$1.ChartComponent, selector: "abp-chart", inputs: ["type", "data", "options", "plugins", "width", "height", "responsive"], outputs: ["dataSelect", "initialized"], exportAs: ["abpChart"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
555
553
|
}
|
|
556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AverageExecutionDurationWidgetComponent, decorators: [{
|
|
557
555
|
type: Component,
|
|
558
556
|
args: [{
|
|
559
557
|
selector: 'abp-average-execution-duration-widget',
|
|
@@ -581,7 +579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
581
579
|
</div>
|
|
582
580
|
`,
|
|
583
581
|
}]
|
|
584
|
-
}], ctorParameters:
|
|
582
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i1.PermissionService }, { type: i2$1.AuditLogsService }], propDecorators: { initialized: [{
|
|
585
583
|
type: Output
|
|
586
584
|
}], width: [{
|
|
587
585
|
type: Input
|
|
@@ -635,8 +633,8 @@ class ErrorRateWidgetComponent {
|
|
|
635
633
|
this.chart.refresh();
|
|
636
634
|
}, 0);
|
|
637
635
|
}
|
|
638
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
639
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ErrorRateWidgetComponent, deps: [{ token: i1.PermissionService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
637
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: ErrorRateWidgetComponent, selector: "abp-error-rate-widget", inputs: { width: "width", height: "height" }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }], ngImport: i0, template: `
|
|
640
638
|
<div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
|
|
641
639
|
<div class="card">
|
|
642
640
|
<div class="card-header">
|
|
@@ -660,7 +658,7 @@ class ErrorRateWidgetComponent {
|
|
|
660
658
|
</div>
|
|
661
659
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "component", type: i3$1.ChartComponent, selector: "abp-chart", inputs: ["type", "data", "options", "plugins", "width", "height", "responsive"], outputs: ["dataSelect", "initialized"], exportAs: ["abpChart"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
662
660
|
}
|
|
663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ErrorRateWidgetComponent, decorators: [{
|
|
664
662
|
type: Component,
|
|
665
663
|
args: [{
|
|
666
664
|
selector: 'abp-error-rate-widget',
|
|
@@ -688,7 +686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
688
686
|
</div>
|
|
689
687
|
`,
|
|
690
688
|
}]
|
|
691
|
-
}], ctorParameters:
|
|
689
|
+
}], ctorParameters: () => [{ type: i1.PermissionService }, { type: i2$1.AuditLogsService }], propDecorators: { initialized: [{
|
|
692
690
|
type: Output
|
|
693
691
|
}], width: [{
|
|
694
692
|
type: Input
|
|
@@ -716,16 +714,14 @@ class AuditLoggingModule {
|
|
|
716
714
|
provide: AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS,
|
|
717
715
|
useValue: options.entityPropContributors,
|
|
718
716
|
},
|
|
719
|
-
AuditLoggingGuard,
|
|
720
|
-
AuditLoggingExtensionsGuard,
|
|
721
717
|
],
|
|
722
718
|
};
|
|
723
719
|
}
|
|
724
720
|
static forLazy(options = {}) {
|
|
725
721
|
return new LazyModuleFactory(AuditLoggingModule.forChild(options));
|
|
726
722
|
}
|
|
727
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
728
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
724
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingModule, declarations: [AuditLogsComponent,
|
|
729
725
|
EntityChangesComponent,
|
|
730
726
|
ErrorRateWidgetComponent,
|
|
731
727
|
AverageExecutionDurationWidgetComponent], imports: [AuditLoggingRoutingModule,
|
|
@@ -740,7 +736,7 @@ class AuditLoggingModule {
|
|
|
740
736
|
EntityChangesComponent,
|
|
741
737
|
ErrorRateWidgetComponent,
|
|
742
738
|
AverageExecutionDurationWidgetComponent] }); }
|
|
743
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
739
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingModule, imports: [AuditLoggingRoutingModule,
|
|
744
740
|
CoreModule,
|
|
745
741
|
CommercialUiModule,
|
|
746
742
|
ThemeSharedModule,
|
|
@@ -750,7 +746,7 @@ class AuditLoggingModule {
|
|
|
750
746
|
ChartModule,
|
|
751
747
|
AuditLogDatetimePickerComponent] }); }
|
|
752
748
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingModule, decorators: [{
|
|
754
750
|
type: NgModule,
|
|
755
751
|
args: [{
|
|
756
752
|
declarations: [
|
|
@@ -786,9 +782,37 @@ var eEntityChangeType;
|
|
|
786
782
|
eEntityChangeType[eEntityChangeType["Deleted"] = 2] = "Deleted";
|
|
787
783
|
})(eEntityChangeType || (eEntityChangeType = {}));
|
|
788
784
|
|
|
785
|
+
/**
|
|
786
|
+
* @deprecated Use `auditLoggingExtensionsResolver` *function* instead.
|
|
787
|
+
*/
|
|
788
|
+
class AuditLoggingExtensionsGuard {
|
|
789
|
+
constructor(injector) {
|
|
790
|
+
this.injector = injector;
|
|
791
|
+
}
|
|
792
|
+
canActivate() {
|
|
793
|
+
const extensions = this.injector.get(ExtensionsService);
|
|
794
|
+
const actionContributors = this.injector.get(AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, null) || {};
|
|
795
|
+
const toolbarContributors = this.injector.get(AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
|
|
796
|
+
const propContributors = this.injector.get(AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, null) || {};
|
|
797
|
+
const configState = this.injector.get(ConfigStateService);
|
|
798
|
+
return getObjectExtensionEntitiesFromStore(configState, 'AuditLogging').pipe(map(entities => ({
|
|
799
|
+
["AuditLogging.AuditLogsComponent" /* eAuditLoggingComponents.AuditLogs */]: entities.AuditLog,
|
|
800
|
+
})), mapEntitiesToContributors(configState, 'AuditLogging'), tap$1(objectExtensionContributors => {
|
|
801
|
+
mergeWithDefaultActions(extensions.entityActions, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, actionContributors);
|
|
802
|
+
mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, toolbarContributors);
|
|
803
|
+
mergeWithDefaultProps(extensions.entityProps, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
|
|
804
|
+
}), map(() => true));
|
|
805
|
+
}
|
|
806
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
807
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingExtensionsGuard }); }
|
|
808
|
+
}
|
|
809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuditLoggingExtensionsGuard, decorators: [{
|
|
810
|
+
type: Injectable
|
|
811
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
812
|
+
|
|
789
813
|
/**
|
|
790
814
|
* Generated bundle index. Do not edit.
|
|
791
815
|
*/
|
|
792
816
|
|
|
793
|
-
export { AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, AuditLoggingExtensionsGuard, AuditLoggingGuard, AuditLoggingModule, AuditLogsComponent, AverageExecutionDurationWidgetComponent, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, EntityChangesComponent, ErrorRateWidgetComponent, HTTP_METHODS, HTTP_STATUS_CODES, SHOW_ENTITY_DETAILS, eEntityChangeType };
|
|
817
|
+
export { AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, AuditLoggingExtensionsGuard, AuditLoggingGuard, AuditLoggingModule, AuditLogsComponent, AverageExecutionDurationWidgetComponent, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, EntityChangesComponent, ErrorRateWidgetComponent, HTTP_METHODS, HTTP_STATUS_CODES, SHOW_ENTITY_DETAILS, auditLoggingExtensionsResolver, auditLoggingGuard, eEntityChangeType };
|
|
794
818
|
//# sourceMappingURL=volo-abp.ng.audit-logging.mjs.map
|