@volo/abp.ng.audit-logging 8.0.2 → 8.1.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.
Files changed (24) hide show
  1. package/esm2022/config/audit-logging-config.module.mjs +4 -4
  2. package/esm2022/config/components/entity-change-details.component.mjs +5 -5
  3. package/esm2022/config/components/entity-change-modal.component.mjs +3 -3
  4. package/esm2022/config/services/entity-change-modal.service.mjs +3 -3
  5. package/esm2022/lib/audit-logging-routing.module.mjs +4 -4
  6. package/esm2022/lib/audit-logging.module.mjs +4 -4
  7. package/esm2022/lib/components/audit-log-datetime-picker/audit-log-datetime-picker.component.mjs +4 -4
  8. package/esm2022/lib/components/audit-logs/audit-logs.component.mjs +6 -6
  9. package/esm2022/lib/components/entity-change/entity-changes.component.mjs +6 -6
  10. package/esm2022/lib/components/widgets/average-execution-duration-widget.component.mjs +4 -4
  11. package/esm2022/lib/components/widgets/error-rate-widget.component.mjs +4 -4
  12. package/esm2022/lib/constants/http.mjs +49 -49
  13. package/esm2022/lib/defaults/default-audit-logs-entity-actions.mjs +2 -2
  14. package/esm2022/lib/defaults/default-audit-logs-entity-props.mjs +2 -2
  15. package/esm2022/lib/guards/audit-logging.guard.mjs +3 -3
  16. package/esm2022/lib/guards/extensions.guard.mjs +3 -3
  17. package/esm2022/proxy/lib/proxy/audit-logging/audit-logs.service.mjs +3 -3
  18. package/fesm2022/volo-abp.ng.audit-logging-common.mjs +1 -1
  19. package/fesm2022/volo-abp.ng.audit-logging-config.mjs +14 -14
  20. package/fesm2022/volo-abp.ng.audit-logging-config.mjs.map +1 -1
  21. package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs +3 -3
  22. package/fesm2022/volo-abp.ng.audit-logging.mjs +85 -85
  23. package/fesm2022/volo-abp.ng.audit-logging.mjs.map +1 -1
  24. package/package.json +4 -4
@@ -37,12 +37,12 @@ class EntityChangeDetailsComponent {
37
37
  getInterpolationParams(changeTime) {
38
38
  return [this.changeType, changeTime, this.userName];
39
39
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeDetailsComponent, deps: [{ token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: { itemWithUserName: "itemWithUserName", isCollapsed: "isCollapsed" }, ngImport: i0, template: "<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-{{ color }}\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], animations: [collapse] }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeDetailsComponent, deps: [{ token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: { itemWithUserName: "itemWithUserName", isCollapsed: "isCollapsed" }, ngImport: i0, template: "<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-{{ color }} d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"isCollapsed ? 'fa-chevron-down' : 'fa-chevron-up'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], animations: [collapse] }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{
44
44
  type: Component,
45
- args: [{ selector: 'abp-entity-change-details', animations: [collapse], template: "<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-{{ color }}\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
45
+ args: [{ selector: 'abp-entity-change-details', animations: [collapse], template: "<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-{{ color }} d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"isCollapsed ? 'fa-chevron-down' : 'fa-chevron-up'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
46
46
  }], ctorParameters: () => [{ type: i1.TrackByService }], propDecorators: { itemWithUserName: [{
47
47
  type: Input
48
48
  }], isCollapsed: [{
@@ -56,10 +56,10 @@ class EntityChangeModalComponent {
56
56
  this.history = [];
57
57
  this.visible = false;
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeModalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.9", type: EntityChangeModalComponent, selector: "abp-entity-change-modal", ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ng-container *ngIf=\"history.length; else noChanges\">\r\n <abp-entity-change-details\r\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\r\n [itemWithUserName]=\"change\"\r\n [isCollapsed]=\"!f\"\r\n ></abp-entity-change-details>\r\n </ng-container>\r\n\r\n <ng-template #noChanges\r\n ><div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div></ng-template\r\n >\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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName", "isCollapsed"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeModalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: EntityChangeModalComponent, selector: "abp-entity-change-modal", ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ng-container *ngIf=\"history.length; else noChanges\">\r\n <abp-entity-change-details\r\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\r\n [itemWithUserName]=\"change\"\r\n [isCollapsed]=\"!f\"\r\n ></abp-entity-change-details>\r\n </ng-container>\r\n\r\n <ng-template #noChanges\r\n ><div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div></ng-template\r\n >\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: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName", "isCollapsed"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeModalComponent, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeModalComponent, decorators: [{
63
63
  type: Component,
64
64
  args: [{ selector: 'abp-entity-change-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ng-container *ngIf=\"history.length; else noChanges\">\r\n <abp-entity-change-details\r\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\r\n [itemWithUserName]=\"change\"\r\n [isCollapsed]=\"!f\"\r\n ></abp-entity-change-details>\r\n </ng-container>\r\n\r\n <ng-template #noChanges\r\n ><div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div></ng-template\r\n >\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" }]
65
65
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.TrackByService }] });
@@ -98,10 +98,10 @@ class EntityChangeModalService {
98
98
  this.detectChanges();
99
99
  });
100
100
  }
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeModalService, deps: [{ token: i1$1.AuditLogsService }, { token: i1.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
102
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeModalService, providedIn: 'root' }); }
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeModalService, deps: [{ token: i1$1.AuditLogsService }, { token: i1.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
102
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeModalService, providedIn: 'root' }); }
103
103
  }
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: EntityChangeModalService, decorators: [{
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: EntityChangeModalService, decorators: [{
105
105
  type: Injectable,
106
106
  args: [{
107
107
  providedIn: 'root',
@@ -161,11 +161,11 @@ class AuditLoggingConfigModule {
161
161
  ],
162
162
  };
163
163
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLoggingConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
165
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.9", ngImport: i0, type: AuditLoggingConfigModule, declarations: [EntityChangeDetailsComponent, EntityChangeModalComponent], imports: [CoreModule, ThemeSharedModule], exports: [EntityChangeDetailsComponent, EntityChangeModalComponent] }); }
166
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule, ThemeSharedModule] }); }
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLoggingConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
165
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: AuditLoggingConfigModule, declarations: [EntityChangeDetailsComponent, EntityChangeModalComponent], imports: [CoreModule, ThemeSharedModule], exports: [EntityChangeDetailsComponent, EntityChangeModalComponent] }); }
166
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule, ThemeSharedModule] }); }
167
167
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLoggingConfigModule, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLoggingConfigModule, decorators: [{
169
169
  type: NgModule,
170
170
  args: [{
171
171
  declarations: [EntityChangeDetailsComponent, EntityChangeModalComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"volo-abp.ng.audit-logging-config.mjs","sources":["../../../../packages/audit-logging/config/src/components/entity-change-details.component.ts","../../../../packages/audit-logging/config/src/components/entity-change-details.component.html","../../../../packages/audit-logging/config/src/components/entity-change-modal.component.ts","../../../../packages/audit-logging/config/src/components/entity-change-modal.component.html","../../../../packages/audit-logging/config/src/services/entity-change-modal.service.ts","../../../../packages/audit-logging/config/src/providers/entity-details.provider.ts","../../../../packages/audit-logging/config/src/providers/entity-history.provider.ts","../../../../packages/audit-logging/config/src/providers/route.provider.ts","../../../../packages/audit-logging/config/src/audit-logging-config.module.ts","../../../../packages/audit-logging/config/src/volo-abp.ng.audit-logging-config.ts"],"sourcesContent":["import { TrackByService, uuid } from '@abp/ng.core';\r\nimport { collapse } from '@abp/ng.theme.shared';\r\nimport { Component, Input } from '@angular/core';\r\nimport {\r\n EntityChangeDto,\r\n EntityChangeType,\r\n EntityChangeWithUsernameDto,\r\n EntityPropertyChangeDto,\r\n} from '@volo/abp.ng.audit-logging/proxy';\r\n\r\n@Component({\r\n selector: 'abp-entity-change-details',\r\n templateUrl: './entity-change-details.component.html',\r\n animations: [collapse],\r\n})\r\nexport class EntityChangeDetailsComponent {\r\n @Input() set itemWithUserName(item: EntityChangeWithUsernameDto) {\r\n this.changeType = EntityChangeType[item.entityChange.changeType];\r\n this.color = this.colors[item.entityChange.changeType];\r\n this.userName = item.userName;\r\n this.entityChange = item.entityChange;\r\n }\r\n\r\n @Input() isCollapsed = false;\r\n\r\n entityChange: EntityChangeDto;\r\n\r\n userName: string;\r\n\r\n changeType: string;\r\n\r\n color: 'success' | 'info' | 'danger';\r\n\r\n private colors = {\r\n [EntityChangeType.Created]: 'success',\r\n [EntityChangeType.Updated]: 'info',\r\n [EntityChangeType.Deleted]: 'danger',\r\n } as const;\r\n\r\n uuid = uuid();\r\n\r\n constructor(public readonly track: TrackByService<EntityPropertyChangeDto>) {}\r\n\r\n getPropColor(propertyChange: EntityPropertyChangeDto): 'red' | undefined {\r\n return this.entityChange.changeType === EntityChangeType.Updated &&\r\n propertyChange.newValue !== propertyChange.originalValue\r\n ? 'red'\r\n : undefined;\r\n }\r\n\r\n getInterpolationParams(changeTime: string): string[] {\r\n return [this.changeType, changeTime, this.userName];\r\n }\r\n}\r\n","<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-{{ color }}\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n","import { TrackByService } from '@abp/ng.core';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';\r\nimport { EntityChangeWithUsernameDto } from '@volo/abp.ng.audit-logging/proxy';\r\n\r\n@Component({\r\n selector: 'abp-entity-change-modal',\r\n templateUrl: './entity-change-modal.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class EntityChangeModalComponent {\r\n history: EntityChangeWithUsernameDto[] = [];\r\n\r\n entityId: string;\r\n\r\n entityTypeFullName: string;\r\n\r\n visible = false;\r\n\r\n constructor(public readonly cdRef: ChangeDetectorRef, public readonly track: TrackByService) {}\r\n}\r\n","<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ng-container *ngIf=\"history.length; else noChanges\">\r\n <abp-entity-change-details\r\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\r\n [itemWithUserName]=\"change\"\r\n [isCollapsed]=\"!f\"\r\n ></abp-entity-change-details>\r\n </ng-container>\r\n\r\n <ng-template #noChanges\r\n ><div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div></ng-template\r\n >\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","import { ContentProjectionService, PROJECTION_STRATEGY } from '@abp/ng.core';\r\nimport { ComponentRef, Injectable } from '@angular/core';\r\nimport { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';\r\nimport { EntityChangeModalComponent } from '../components/entity-change-modal.component';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class EntityChangeModalService {\r\n private modalRef: ComponentRef<EntityChangeModalComponent>;\r\n\r\n constructor(\r\n private auditLogsService: AuditLogsService,\r\n private contentProjectionService: ContentProjectionService,\r\n ) {\r\n this.projectModal();\r\n }\r\n\r\n private projectModal() {\r\n this.modalRef = this.contentProjectionService.projectContent(\r\n PROJECTION_STRATEGY.AppendComponentToBody(EntityChangeModalComponent),\r\n );\r\n\r\n this.modalRef.changeDetectorRef.detectChanges();\r\n }\r\n\r\n detectChanges() {\r\n this.modalRef.changeDetectorRef.detectChanges();\r\n this.modalRef.instance.cdRef.detectChanges();\r\n }\r\n\r\n showDetails(entityChangeId: string) {\r\n this.auditLogsService.getEntityChangeWithUsername(entityChangeId).subscribe(change => {\r\n this.modalRef.instance.entityId = change.entityChange.entityId;\r\n this.modalRef.instance.entityTypeFullName = change.entityChange.entityTypeFullName;\r\n this.modalRef.instance.history = [change].filter(Boolean);\r\n this.modalRef.instance.visible = true;\r\n this.detectChanges();\r\n });\r\n }\r\n\r\n showHistory(entityId: string, entityTypeFullName: string) {\r\n this.auditLogsService\r\n .getEntityChangesWithUsername({ entityId, entityTypeFullName })\r\n .subscribe(changes => {\r\n this.modalRef.instance.entityId = entityId;\r\n this.modalRef.instance.entityTypeFullName = entityTypeFullName;\r\n this.modalRef.instance.history = changes;\r\n this.modalRef.instance.visible = true;\r\n this.detectChanges();\r\n });\r\n }\r\n}\r\n","import { SHOW_ENTITY_DETAILS } from '@volo/abp.ng.audit-logging';\r\nimport { EntityChangeModalService } from '../services/entity-change-modal.service';\r\n\r\nexport const ENTITY_DETAILS_PROVIDERS = [\r\n {\r\n provide: SHOW_ENTITY_DETAILS,\r\n useFactory: bindShowDetails,\r\n deps: [EntityChangeModalService],\r\n },\r\n];\r\n\r\nexport function bindShowDetails(service: EntityChangeModalService) {\r\n return service.showDetails.bind(service);\r\n}\r\n","import { SHOW_ENTITY_HISTORY } from '@volo/abp.commercial.ng.ui';\r\nimport { EntityChangeModalService } from '../services/entity-change-modal.service';\r\n\r\nexport const ENTITY_HISTORY_PROVIDERS = [\r\n {\r\n provide: SHOW_ENTITY_HISTORY,\r\n useFactory: bindShowHistory,\r\n deps: [EntityChangeModalService],\r\n },\r\n];\r\n\r\nexport function bindShowHistory(service: EntityChangeModalService) {\r\n return service.showHistory.bind(service);\r\n}\r\n","import { eLayoutType, RoutesService } from '@abp/ng.core';\r\nimport { eThemeSharedRouteNames } from '@abp/ng.theme.shared';\r\nimport { APP_INITIALIZER } from '@angular/core';\r\nimport { eAuditLoggingPolicyNames } from '../enums/policy-names';\r\nimport { eAuditLoggingRouteNames } from '../enums/route-names';\r\n\r\nexport const AUDIT_LOGGING_ROUTE_PROVIDERS = [\r\n { provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },\r\n];\r\n\r\nexport function configureRoutes(routes: RoutesService) {\r\n return () => {\r\n routes.add([\r\n {\r\n name: eAuditLoggingRouteNames.AuditLogging,\r\n path: '/audit-logs',\r\n parentName: eThemeSharedRouteNames.Administration,\r\n layout: eLayoutType.application,\r\n iconClass: 'fa fa-file-text',\r\n order: 6,\r\n requiredPolicy: eAuditLoggingPolicyNames.AuditLogging,\r\n },\r\n ]);\r\n };\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { EntityChangeDetailsComponent } from './components/entity-change-details.component';\r\nimport { EntityChangeModalComponent } from './components/entity-change-modal.component';\r\nimport { ENTITY_DETAILS_PROVIDERS, ENTITY_HISTORY_PROVIDERS } from './providers';\r\nimport { AUDIT_LOGGING_ROUTE_PROVIDERS } from './providers/route.provider';\r\nimport { AUDIT_LOGGING_FEATURES_PROVIDERS } from '@volo/abp.ng.audit-logging/common';\r\n\r\n@NgModule({\r\n declarations: [EntityChangeDetailsComponent, EntityChangeModalComponent],\r\n exports: [EntityChangeDetailsComponent, EntityChangeModalComponent],\r\n imports: [CoreModule, ThemeSharedModule],\r\n})\r\nexport class AuditLoggingConfigModule {\r\n static forRoot(): ModuleWithProviders<AuditLoggingConfigModule> {\r\n return {\r\n ngModule: AuditLoggingConfigModule,\r\n providers: [\r\n AUDIT_LOGGING_ROUTE_PROVIDERS,\r\n ENTITY_DETAILS_PROVIDERS,\r\n ENTITY_HISTORY_PROVIDERS,\r\n AUDIT_LOGGING_FEATURES_PROVIDERS,\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i4.EntityChangeDetailsComponent","i1","i2"],"mappings":";;;;;;;;;;;;;MAea,4BAA4B,CAAA;IACvC,IAAa,gBAAgB,CAAC,IAAiC,EAAA;QAC7D,IAAI,CAAC,UAAU,GA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AACL,KAAC,CAAC;AACJ;;MCVa,wBAAwB,CAAA;AACnC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,wBAAwB;AAClC,YAAA,SAAS,EAAE;gBACT,6BAA6B;gBAC7B,wBAAwB;gBACxB,wBAAwB;gBACxB,gCAAgC;AACjC,aAAA;SACF,CAAC;KACH;8GAXU,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAxB,wBAAwB,EAAA,YAAA,EAAA,CAJpB,4BAA4B,EAAE,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAE7D,UAAU,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAD7B,4BAA4B,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA,EAAA;+GAGvD,wBAAwB,EAAA,OAAA,EAAA,CAFzB,UAAU,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE5B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;AACxE,oBAAA,OAAO,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;AACnE,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;AACzC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"volo-abp.ng.audit-logging-config.mjs","sources":["../../../../packages/audit-logging/config/src/components/entity-change-details.component.ts","../../../../packages/audit-logging/config/src/components/entity-change-details.component.html","../../../../packages/audit-logging/config/src/components/entity-change-modal.component.ts","../../../../packages/audit-logging/config/src/components/entity-change-modal.component.html","../../../../packages/audit-logging/config/src/services/entity-change-modal.service.ts","../../../../packages/audit-logging/config/src/providers/entity-details.provider.ts","../../../../packages/audit-logging/config/src/providers/entity-history.provider.ts","../../../../packages/audit-logging/config/src/providers/route.provider.ts","../../../../packages/audit-logging/config/src/audit-logging-config.module.ts","../../../../packages/audit-logging/config/src/volo-abp.ng.audit-logging-config.ts"],"sourcesContent":["import { TrackByService, uuid } from '@abp/ng.core';\r\nimport { collapse } from '@abp/ng.theme.shared';\r\nimport { Component, Input } from '@angular/core';\r\nimport {\r\n EntityChangeDto,\r\n EntityChangeType,\r\n EntityChangeWithUsernameDto,\r\n EntityPropertyChangeDto,\r\n} from '@volo/abp.ng.audit-logging/proxy';\r\n\r\n@Component({\r\n selector: 'abp-entity-change-details',\r\n templateUrl: './entity-change-details.component.html',\r\n animations: [collapse],\r\n})\r\nexport class EntityChangeDetailsComponent {\r\n @Input() set itemWithUserName(item: EntityChangeWithUsernameDto) {\r\n this.changeType = EntityChangeType[item.entityChange.changeType];\r\n this.color = this.colors[item.entityChange.changeType];\r\n this.userName = item.userName;\r\n this.entityChange = item.entityChange;\r\n }\r\n\r\n @Input() isCollapsed = false;\r\n\r\n entityChange: EntityChangeDto;\r\n\r\n userName: string;\r\n\r\n changeType: string;\r\n\r\n color: 'success' | 'info' | 'danger';\r\n\r\n private colors = {\r\n [EntityChangeType.Created]: 'success',\r\n [EntityChangeType.Updated]: 'info',\r\n [EntityChangeType.Deleted]: 'danger',\r\n } as const;\r\n\r\n uuid = uuid();\r\n\r\n constructor(public readonly track: TrackByService<EntityPropertyChangeDto>) {}\r\n\r\n getPropColor(propertyChange: EntityPropertyChangeDto): 'red' | undefined {\r\n return this.entityChange.changeType === EntityChangeType.Updated &&\r\n propertyChange.newValue !== propertyChange.originalValue\r\n ? 'red'\r\n : undefined;\r\n }\r\n\r\n getInterpolationParams(changeTime: string): string[] {\r\n return [this.changeType, changeTime, this.userName];\r\n }\r\n}\r\n","<div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\r\n>\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-{{ color }} d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"isCollapsed ? 'fa-chevron-down' : 'fa-chevron-up'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n</div>\r\n","import { TrackByService } from '@abp/ng.core';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';\r\nimport { EntityChangeWithUsernameDto } from '@volo/abp.ng.audit-logging/proxy';\r\n\r\n@Component({\r\n selector: 'abp-entity-change-modal',\r\n templateUrl: './entity-change-modal.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class EntityChangeModalComponent {\r\n history: EntityChangeWithUsernameDto[] = [];\r\n\r\n entityId: string;\r\n\r\n entityTypeFullName: string;\r\n\r\n visible = false;\r\n\r\n constructor(public readonly cdRef: ChangeDetectorRef, public readonly track: TrackByService) {}\r\n}\r\n","<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ng-container *ngIf=\"history.length; else noChanges\">\r\n <abp-entity-change-details\r\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\r\n [itemWithUserName]=\"change\"\r\n [isCollapsed]=\"!f\"\r\n ></abp-entity-change-details>\r\n </ng-container>\r\n\r\n <ng-template #noChanges\r\n ><div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div></ng-template\r\n >\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","import { ContentProjectionService, PROJECTION_STRATEGY } from '@abp/ng.core';\r\nimport { ComponentRef, Injectable } from '@angular/core';\r\nimport { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';\r\nimport { EntityChangeModalComponent } from '../components/entity-change-modal.component';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class EntityChangeModalService {\r\n private modalRef: ComponentRef<EntityChangeModalComponent>;\r\n\r\n constructor(\r\n private auditLogsService: AuditLogsService,\r\n private contentProjectionService: ContentProjectionService,\r\n ) {\r\n this.projectModal();\r\n }\r\n\r\n private projectModal() {\r\n this.modalRef = this.contentProjectionService.projectContent(\r\n PROJECTION_STRATEGY.AppendComponentToBody(EntityChangeModalComponent),\r\n );\r\n\r\n this.modalRef.changeDetectorRef.detectChanges();\r\n }\r\n\r\n detectChanges() {\r\n this.modalRef.changeDetectorRef.detectChanges();\r\n this.modalRef.instance.cdRef.detectChanges();\r\n }\r\n\r\n showDetails(entityChangeId: string) {\r\n this.auditLogsService.getEntityChangeWithUsername(entityChangeId).subscribe(change => {\r\n this.modalRef.instance.entityId = change.entityChange.entityId;\r\n this.modalRef.instance.entityTypeFullName = change.entityChange.entityTypeFullName;\r\n this.modalRef.instance.history = [change].filter(Boolean);\r\n this.modalRef.instance.visible = true;\r\n this.detectChanges();\r\n });\r\n }\r\n\r\n showHistory(entityId: string, entityTypeFullName: string) {\r\n this.auditLogsService\r\n .getEntityChangesWithUsername({ entityId, entityTypeFullName })\r\n .subscribe(changes => {\r\n this.modalRef.instance.entityId = entityId;\r\n this.modalRef.instance.entityTypeFullName = entityTypeFullName;\r\n this.modalRef.instance.history = changes;\r\n this.modalRef.instance.visible = true;\r\n this.detectChanges();\r\n });\r\n }\r\n}\r\n","import { SHOW_ENTITY_DETAILS } from '@volo/abp.ng.audit-logging';\r\nimport { EntityChangeModalService } from '../services/entity-change-modal.service';\r\n\r\nexport const ENTITY_DETAILS_PROVIDERS = [\r\n {\r\n provide: SHOW_ENTITY_DETAILS,\r\n useFactory: bindShowDetails,\r\n deps: [EntityChangeModalService],\r\n },\r\n];\r\n\r\nexport function bindShowDetails(service: EntityChangeModalService) {\r\n return service.showDetails.bind(service);\r\n}\r\n","import { SHOW_ENTITY_HISTORY } from '@volo/abp.commercial.ng.ui';\r\nimport { EntityChangeModalService } from '../services/entity-change-modal.service';\r\n\r\nexport const ENTITY_HISTORY_PROVIDERS = [\r\n {\r\n provide: SHOW_ENTITY_HISTORY,\r\n useFactory: bindShowHistory,\r\n deps: [EntityChangeModalService],\r\n },\r\n];\r\n\r\nexport function bindShowHistory(service: EntityChangeModalService) {\r\n return service.showHistory.bind(service);\r\n}\r\n","import { eLayoutType, RoutesService } from '@abp/ng.core';\r\nimport { eThemeSharedRouteNames } from '@abp/ng.theme.shared';\r\nimport { APP_INITIALIZER } from '@angular/core';\r\nimport { eAuditLoggingPolicyNames } from '../enums/policy-names';\r\nimport { eAuditLoggingRouteNames } from '../enums/route-names';\r\n\r\nexport const AUDIT_LOGGING_ROUTE_PROVIDERS = [\r\n { provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },\r\n];\r\n\r\nexport function configureRoutes(routes: RoutesService) {\r\n return () => {\r\n routes.add([\r\n {\r\n name: eAuditLoggingRouteNames.AuditLogging,\r\n path: '/audit-logs',\r\n parentName: eThemeSharedRouteNames.Administration,\r\n layout: eLayoutType.application,\r\n iconClass: 'fa fa-file-text',\r\n order: 6,\r\n requiredPolicy: eAuditLoggingPolicyNames.AuditLogging,\r\n },\r\n ]);\r\n };\r\n}\r\n","import { CoreModule } from '@abp/ng.core';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { EntityChangeDetailsComponent } from './components/entity-change-details.component';\r\nimport { EntityChangeModalComponent } from './components/entity-change-modal.component';\r\nimport { ENTITY_DETAILS_PROVIDERS, ENTITY_HISTORY_PROVIDERS } from './providers';\r\nimport { AUDIT_LOGGING_ROUTE_PROVIDERS } from './providers/route.provider';\r\nimport { AUDIT_LOGGING_FEATURES_PROVIDERS } from '@volo/abp.ng.audit-logging/common';\r\n\r\n@NgModule({\r\n declarations: [EntityChangeDetailsComponent, EntityChangeModalComponent],\r\n exports: [EntityChangeDetailsComponent, EntityChangeModalComponent],\r\n imports: [CoreModule, ThemeSharedModule],\r\n})\r\nexport class AuditLoggingConfigModule {\r\n static forRoot(): ModuleWithProviders<AuditLoggingConfigModule> {\r\n return {\r\n ngModule: AuditLoggingConfigModule,\r\n providers: [\r\n AUDIT_LOGGING_ROUTE_PROVIDERS,\r\n ENTITY_DETAILS_PROVIDERS,\r\n ENTITY_HISTORY_PROVIDERS,\r\n AUDIT_LOGGING_FEATURES_PROVIDERS,\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i4.EntityChangeDetailsComponent","i1","i2"],"mappings":";;;;;;;;;;;;;MAea,4BAA4B,CAAA;IACvC,IAAa,gBAA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,gBAAA,UAAU,EAAuC,sCAAA;AACjD,gBAAA,MAAM,EAAyB,aAAA;AAC/B,gBAAA,SAAS,EAAE,iBAAiB;AAC5B,gBAAA,KAAK,EAAE,CAAC;AACR,gBAAA,cAAc,EAAuC,wBAAA;AACtD,aAAA;AACF,SAAA,CAAC,CAAC;AACL,KAAC,CAAC;AACJ;;MCVa,wBAAwB,CAAA;AACnC,IAAA,OAAO,OAAO,GAAA;QACZ,OAAO;AACL,YAAA,QAAQ,EAAE,wBAAwB;AAClC,YAAA,SAAS,EAAE;gBACT,6BAA6B;gBAC7B,wBAAwB;gBACxB,wBAAwB;gBACxB,gCAAgC;AACjC,aAAA;SACF,CAAC;KACH;8GAXU,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAxB,wBAAwB,EAAA,YAAA,EAAA,CAJpB,4BAA4B,EAAE,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAE7D,UAAU,EAAE,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAD7B,4BAA4B,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA,EAAA;+GAGvD,wBAAwB,EAAA,OAAA,EAAA,CAFzB,UAAU,EAAE,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE5B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;AACxE,oBAAA,OAAO,EAAE,CAAC,4BAA4B,EAAE,0BAA0B,CAAC;AACnE,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,CAAC;AACzC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -45,10 +45,10 @@ class AuditLogsService {
45
45
  params: { startTime: input.startTime, endTime: input.endTime, url: input.url, userName: input.userName, applicationName: input.applicationName, clientIpAddress: input.clientIpAddress, correlationId: input.correlationId, httpMethod: input.httpMethod, httpStatusCode: input.httpStatusCode, maxExecutionDuration: input.maxExecutionDuration, minExecutionDuration: input.minExecutionDuration, hasException: input.hasException, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
46
46
  }, { apiName: this.apiName });
47
47
  }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLogsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
49
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLogsService, providedIn: 'root' }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLogsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
49
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLogsService, providedIn: 'root' }); }
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.9", ngImport: i0, type: AuditLogsService, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: AuditLogsService, decorators: [{
52
52
  type: Injectable,
53
53
  args: [{
54
54
  providedIn: 'root',