@volo/abp.ng.audit-logging 4.4.3 → 5.0.0-beta.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 (91) hide show
  1. package/README.md +3 -1
  2. package/bundles/volo-abp.ng.audit-logging-common.umd.js +1 -1
  3. package/bundles/volo-abp.ng.audit-logging-config.umd.js +1 -1
  4. package/bundles/volo-abp.ng.audit-logging-proxy.umd.js +1 -0
  5. package/bundles/volo-abp.ng.audit-logging.umd.js +1 -1
  6. package/common/package.json +0 -1
  7. package/common/tokens/features.token.d.ts +1 -1
  8. package/common/volo-abp.ng.audit-logging-common.d.ts +1 -0
  9. package/config/audit-logging-config.module.d.ts +8 -0
  10. package/config/components/entity-change-details.component.d.ts +4 -1
  11. package/config/components/entity-change-modal.component.d.ts +4 -1
  12. package/config/package.json +0 -1
  13. package/config/providers/route.provider.d.ts +1 -1
  14. package/config/services/entity-change-modal.service.d.ts +4 -1
  15. package/config/volo-abp.ng.audit-logging-config.d.ts +1 -4
  16. package/esm2015/common/tokens/features.token.js +1 -1
  17. package/esm2015/config/audit-logging-config.module.js +1 -1
  18. package/esm2015/config/components/entity-change-details.component.js +1 -1
  19. package/esm2015/config/components/entity-change-modal.component.js +1 -1
  20. package/esm2015/config/services/entity-change-modal.service.js +1 -1
  21. package/esm2015/config/volo-abp.ng.audit-logging-config.js +1 -1
  22. package/esm2015/lib/audit-logging-routing.module.js +1 -1
  23. package/esm2015/lib/audit-logging.module.js +1 -1
  24. package/esm2015/lib/components/audit-logs/audit-logs.component.js +1 -1
  25. package/esm2015/lib/components/entity-change/entity-changes.component.js +1 -1
  26. package/esm2015/lib/components/widgets/average-execution-duration-widget.component.js +1 -1
  27. package/esm2015/lib/components/widgets/error-rate-widget.component.js +1 -1
  28. package/esm2015/lib/defaults/default-audit-logs-entity-actions.js +1 -1
  29. package/esm2015/lib/defaults/default-audit-logs-entity-props.js +1 -1
  30. package/esm2015/lib/defaults/default-entity-changes-entity-actions.js +1 -1
  31. package/esm2015/lib/guards/audit-logging.guard.js +1 -1
  32. package/esm2015/lib/guards/extensions.guard.js +1 -1
  33. package/esm2015/proxy/lib/index.js +1 -0
  34. package/esm2015/{lib → proxy/lib}/proxy/audit-logging/audit-logs.service.js +1 -1
  35. package/esm2015/{lib → proxy/lib}/proxy/audit-logging/index.js +0 -0
  36. package/esm2015/{lib → proxy/lib}/proxy/audit-logging/models.js +0 -0
  37. package/esm2015/{lib → proxy/lib}/proxy/auditing/entity-change-type.enum.js +0 -0
  38. package/esm2015/{lib → proxy/lib}/proxy/auditing/index.js +0 -0
  39. package/esm2015/proxy/public-api.js +1 -0
  40. package/esm2015/proxy/volo-abp.ng.audit-logging-proxy.js +1 -0
  41. package/esm2015/public-api.js +1 -1
  42. package/esm2015/volo-abp.ng.audit-logging.js +1 -1
  43. package/fesm2015/volo-abp.ng.audit-logging-common.js +2 -3
  44. package/fesm2015/volo-abp.ng.audit-logging-config.js +53 -49
  45. package/fesm2015/volo-abp.ng.audit-logging-proxy.js +71 -0
  46. package/fesm2015/volo-abp.ng.audit-logging.js +346 -490
  47. package/lib/audit-logging-routing.module.d.ts +5 -0
  48. package/lib/audit-logging.module.d.ts +15 -0
  49. package/lib/components/audit-logs/audit-logs.component.d.ts +8 -10
  50. package/lib/components/entity-change/entity-changes.component.d.ts +5 -4
  51. package/lib/components/widgets/average-execution-duration-widget.component.d.ts +14 -12
  52. package/lib/components/widgets/error-rate-widget.component.d.ts +13 -11
  53. package/lib/defaults/default-audit-logs-entity-actions.d.ts +1 -1
  54. package/lib/defaults/default-audit-logs-entity-props.d.ts +1 -1
  55. package/lib/defaults/default-audit-logs-toolbar-actions.d.ts +1 -1
  56. package/lib/defaults/default-entity-changes-entity-actions.d.ts +1 -1
  57. package/lib/guards/audit-logging.guard.d.ts +3 -0
  58. package/lib/guards/extensions.guard.d.ts +3 -0
  59. package/lib/models/audit-logging.d.ts +1 -1
  60. package/lib/models/config-options.d.ts +1 -1
  61. package/lib/tokens/extensions.token.d.ts +1 -2
  62. package/package.json +4 -5
  63. package/proxy/lib/index.d.ts +2 -0
  64. package/{lib → proxy/lib}/proxy/audit-logging/audit-logs.service.d.ts +3 -0
  65. package/{lib → proxy/lib}/proxy/audit-logging/index.d.ts +0 -0
  66. package/{lib → proxy/lib}/proxy/audit-logging/models.d.ts +1 -0
  67. package/{lib → proxy/lib}/proxy/auditing/entity-change-type.enum.d.ts +1 -1
  68. package/{lib → proxy/lib}/proxy/auditing/index.d.ts +0 -0
  69. package/proxy/package.json +10 -0
  70. package/proxy/public-api.d.ts +1 -0
  71. package/proxy/volo-abp.ng.audit-logging-proxy.d.ts +5 -0
  72. package/public-api.d.ts +0 -5
  73. package/volo-abp.ng.audit-logging.d.ts +1 -13
  74. package/bundles/volo-abp.ng.audit-logging-common.umd.min.js +0 -1
  75. package/bundles/volo-abp.ng.audit-logging-config.umd.min.js +0 -1
  76. package/bundles/volo-abp.ng.audit-logging.umd.min.js +0 -1
  77. package/common/volo-abp.ng.audit-logging-common.metadata.json +0 -1
  78. package/config/volo-abp.ng.audit-logging-config.metadata.json +0 -1
  79. package/esm2015/lib/actions/audit-logging.actions.js +0 -1
  80. package/esm2015/lib/actions/index.js +0 -1
  81. package/esm2015/lib/services/audit-logging-state.service.js +0 -1
  82. package/esm2015/lib/services/index.js +0 -1
  83. package/esm2015/lib/states/audit-logging.state.js +0 -1
  84. package/esm2015/lib/states/index.js +0 -1
  85. package/lib/actions/audit-logging.actions.d.ts +0 -16
  86. package/lib/actions/index.d.ts +0 -1
  87. package/lib/services/audit-logging-state.service.d.ts +0 -13
  88. package/lib/services/index.d.ts +0 -1
  89. package/lib/states/audit-logging.state.d.ts +0 -16
  90. package/lib/states/index.d.ts +0 -1
  91. package/volo-abp.ng.audit-logging.metadata.json +0 -1
@@ -1,2 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
1
3
  export declare class AuditLoggingRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingRoutingModule>;
2
7
  }
@@ -1,6 +1,21 @@
1
1
  import { ModuleWithProviders, NgModuleFactory } from '@angular/core';
2
2
  import { AuditLoggingConfigOptions } from './models/config-options';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./components/audit-logs/audit-logs.component";
5
+ import * as i2 from "./components/entity-change/entity-changes.component";
6
+ import * as i3 from "./components/widgets/error-rate-widget.component";
7
+ import * as i4 from "./components/widgets/average-execution-duration-widget.component";
8
+ import * as i5 from "./audit-logging-routing.module";
9
+ import * as i6 from "@abp/ng.core";
10
+ import * as i7 from "@volo/abp.commercial.ng.ui";
11
+ import * as i8 from "@abp/ng.theme.shared";
12
+ import * as i9 from "@ng-bootstrap/ng-bootstrap";
13
+ import * as i10 from "@abp/ng.components/page";
14
+ import * as i11 from "@abp/ng.components/chart.js";
3
15
  export declare class AuditLoggingModule {
4
16
  static forChild(options?: AuditLoggingConfigOptions): ModuleWithProviders<AuditLoggingModule>;
5
17
  static forLazy(options?: AuditLoggingConfigOptions): NgModuleFactory<AuditLoggingModule>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingModule, never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingModule, [typeof i1.AuditLogsComponent, typeof i2.EntityChangesComponent, typeof i3.ErrorRateWidgetComponent, typeof i4.AverageExecutionDurationWidgetComponent], [typeof i5.AuditLoggingRoutingModule, typeof i6.CoreModule, typeof i7.CommercialUiModule, typeof i8.ThemeSharedModule, typeof i9.NgbNavModule, typeof i9.NgbDatepickerModule, typeof i10.PageModule, typeof i11.ChartModule], [typeof i1.AuditLogsComponent, typeof i2.EntityChangesComponent, typeof i3.ErrorRateWidgetComponent, typeof i4.AverageExecutionDurationWidgetComponent]>;
20
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingModule>;
6
21
  }
@@ -1,16 +1,12 @@
1
- import { ListService } from '@abp/ng.core';
1
+ import { ListService, PagedResultDto } from '@abp/ng.core';
2
2
  import { OnInit } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
- import { Store } from '@ngxs/store';
5
- import { Observable } from 'rxjs';
6
- import { AuditLogsService } from '../../proxy/audit-logging/audit-logs.service';
7
- import { AuditLogDto, GetAuditLogListDto } from '../../proxy/audit-logging/models';
4
+ import { AuditLogDto, AuditLogsService, GetAuditLogListDto } from '@volo/abp.ng.audit-logging/proxy';
5
+ import * as i0 from "@angular/core";
8
6
  export declare class AuditLogsComponent implements OnInit {
9
7
  readonly list: ListService<GetAuditLogListDto>;
10
- private service;
11
- private store;
12
- datas$: Observable<AuditLogDto[]>;
13
- totalCount$: Observable<number>;
8
+ protected service: AuditLogsService;
9
+ data: PagedResultDto<AuditLogDto>;
14
10
  selected: AuditLogDto;
15
11
  pageQuery: GetAuditLogListDto;
16
12
  filterForm: FormGroup;
@@ -25,10 +21,12 @@ export declare class AuditLogsComponent implements OnInit {
25
21
  sortOrder: string;
26
22
  sortKey: string;
27
23
  selectedTab: string;
28
- constructor(list: ListService<GetAuditLogListDto>, service: AuditLogsService, store: Store);
24
+ constructor(list: ListService<GetAuditLogListDto>, service: AuditLogsService);
29
25
  ngOnInit(): void;
30
26
  private hookToQuery;
31
27
  openModal(id: string): void;
32
28
  httpCodeClass(httpStatusCode: number): string;
33
29
  httpMethodClass(httpMethod: string): string;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogsComponent, "abp-audit-logs", never, {}, {}, never, never>;
34
32
  }
@@ -1,9 +1,8 @@
1
1
  import { ListService, TrackByService } from '@abp/ng.core';
2
2
  import { AfterViewInit } from '@angular/core';
3
3
  import { FormBuilder } from '@angular/forms';
4
- import { AuditLogsService } from '../../proxy/audit-logging/audit-logs.service';
5
- import { EntityChangeDto } from '../../proxy/audit-logging/models';
6
- import { EntityChangeType } from '../../proxy/auditing/entity-change-type.enum';
4
+ import { AuditLogsService, EntityChangeDto, EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
5
+ import * as i0 from "@angular/core";
7
6
  export declare class EntityChangesComponent implements AfterViewInit {
8
7
  readonly list: ListService;
9
8
  private fb;
@@ -14,9 +13,11 @@ export declare class EntityChangesComponent implements AfterViewInit {
14
13
  get data(): EntityChangeDto[];
15
14
  get count(): number;
16
15
  changeType: typeof EntityChangeType;
17
- changeTypes: import("@abp/ng.core").ɵj.Option<typeof EntityChangeType>[];
16
+ changeTypes: import("@abp/ng.core").ABP.Option<typeof EntityChangeType>[];
18
17
  constructor(list: ListService, fb: FormBuilder, auditLogsService: AuditLogsService, track: TrackByService);
19
18
  ngAfterViewInit(): void;
20
19
  private hookToQuery;
21
20
  handleSubmit(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangesComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangesComponent, "abp-entity-changes", never, {}, {}, never, never>;
22
23
  }
@@ -1,13 +1,14 @@
1
- import { LocalizationService, PermissionService, SubscriptionService } from '@abp/ng.core';
2
- import { ChartComponent, Statistics } from '@abp/ng.theme.shared';
3
- import { Store } from '@ngxs/store';
4
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import { ChartComponent } from '@abp/ng.components/chart.js';
2
+ import { LocalizationService, PermissionService } from '@abp/ng.core';
3
+ import { Statistics } from '@abp/ng.theme.shared';
4
+ import { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
5
7
  export declare class AverageExecutionDurationWidgetComponent {
6
- private store;
7
- private localizationService;
8
- private subscription;
9
- private permissionService;
10
- data$: Observable<Statistics.Data>;
8
+ protected localizationService: LocalizationService;
9
+ protected permissionService: PermissionService;
10
+ protected service: AuditLogsService;
11
+ data: Statistics.Data;
11
12
  initialized: BehaviorSubject<this>;
12
13
  width: number;
13
14
  height: number;
@@ -17,7 +18,8 @@ export declare class AverageExecutionDurationWidgetComponent {
17
18
  startDate: string;
18
19
  endDate: string;
19
20
  }) => void;
20
- constructor(store: Store, localizationService: LocalizationService, subscription: SubscriptionService, permissionService: PermissionService);
21
- initialize(chartComponent: ChartComponent): void;
22
- listenToData(): void;
21
+ constructor(localizationService: LocalizationService, permissionService: PermissionService, service: AuditLogsService);
22
+ private setChartData;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AverageExecutionDurationWidgetComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<AverageExecutionDurationWidgetComponent, "abp-average-execution-duration-widget", never, { "width": "width"; "height": "height"; }, { "initialized": "initialized"; }, never, never>;
23
25
  }
@@ -1,12 +1,13 @@
1
- import { PermissionService, SubscriptionService } from '@abp/ng.core';
2
- import { ChartComponent, Statistics } from '@abp/ng.theme.shared';
3
- import { Store } from '@ngxs/store';
4
- import { BehaviorSubject, Observable } from 'rxjs';
1
+ import { ChartComponent } from '@abp/ng.components/chart.js';
2
+ import { PermissionService } from '@abp/ng.core';
3
+ import { Statistics } from '@abp/ng.theme.shared';
4
+ import { AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
5
7
  export declare class ErrorRateWidgetComponent {
6
- private store;
7
- private subscription;
8
- private permissionService;
9
- data$: Observable<Statistics.Data>;
8
+ protected permissionService: PermissionService;
9
+ protected service: AuditLogsService;
10
+ data: Statistics.Data;
10
11
  initialized: BehaviorSubject<this>;
11
12
  width: number;
12
13
  height: number;
@@ -16,7 +17,8 @@ export declare class ErrorRateWidgetComponent {
16
17
  startDate: string;
17
18
  endDate: string;
18
19
  }) => void;
19
- initialize(chartComponent: ChartComponent): void;
20
- constructor(store: Store, subscription: SubscriptionService, permissionService: PermissionService);
21
- listenToData(): void;
20
+ constructor(permissionService: PermissionService, service: AuditLogsService);
21
+ private setChartData;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorRateWidgetComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorRateWidgetComponent, "abp-error-rate-widget", never, { "width": "width"; "height": "height"; }, { "initialized": "initialized"; }, never, never>;
22
24
  }
@@ -1,3 +1,3 @@
1
1
  import { EntityAction } from '@abp/ng.theme.shared/extensions';
2
- import { AuditLogDto } from '../proxy/audit-logging/models';
2
+ import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
3
  export declare const DEFAULT_AUDIT_LOGS_ENTITY_ACTIONS: EntityAction<AuditLogDto>[];
@@ -1,3 +1,3 @@
1
1
  import { EntityProp } from '@abp/ng.theme.shared/extensions';
2
- import { AuditLogDto } from '../proxy/audit-logging/models';
2
+ import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
3
  export declare const DEFAULT_AUDIT_LOGS_ENTITY_PROPS: EntityProp<AuditLogDto>[];
@@ -1,3 +1,3 @@
1
1
  import { ToolbarAction } from '@abp/ng.theme.shared/extensions';
2
- import { AuditLogDto } from '../proxy/audit-logging/models';
2
+ import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
3
  export declare const DEFAULT_AUDIT_LOGS_TOOLBAR_ACTIONS: ToolbarAction<AuditLogDto[]>[];
@@ -1,3 +1,3 @@
1
1
  import { EntityAction } from '@abp/ng.theme.shared/extensions';
2
- import { EntityChangeDto } from '../proxy/audit-logging/models';
2
+ import { EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
3
3
  export declare const DEFAULT_ENTITY_CHANGES_ENTITY_ACTIONS: EntityAction<EntityChangeDto>[];
@@ -1,8 +1,11 @@
1
1
  import { CanActivate } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class AuditLoggingGuard implements CanActivate {
5
6
  private auditLoggingFeatures;
6
7
  constructor(auditLoggingFeatures: Observable<ModuleVisibility>);
7
8
  canActivate(): Observable<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingGuard, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingGuard>;
8
11
  }
@@ -1,8 +1,11 @@
1
1
  import { Injector } from '@angular/core';
2
2
  import { CanActivate } from '@angular/router';
3
3
  import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class AuditLoggingExtensionsGuard implements CanActivate {
5
6
  private injector;
6
7
  constructor(injector: Injector);
7
8
  canActivate(): Observable<boolean>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingExtensionsGuard, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLoggingExtensionsGuard>;
8
11
  }
@@ -1,5 +1,5 @@
1
1
  import { PagedResultDto } from '@abp/ng.core';
2
- import { AuditLogDto } from '../proxy/audit-logging/models';
2
+ import { AuditLogDto } from '@volo/abp.ng.audit-logging/proxy';
3
3
  export declare namespace AuditLogging {
4
4
  interface State {
5
5
  result: PagedResultDto<AuditLogDto>;
@@ -1,6 +1,6 @@
1
1
  import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
2
+ import { AuditLogDto, EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
2
3
  import { eAuditLoggingComponents } from '../enums/components';
3
- import { AuditLogDto, EntityChangeDto } from '../proxy/audit-logging/models';
4
4
  export declare type AuditLoggingEntityActionContributors = Partial<{
5
5
  [eAuditLoggingComponents.AuditLogs]: EntityActionContributorCallback<AuditLogDto>[];
6
6
  [eAuditLoggingComponents.EntityChanges]: EntityActionContributorCallback<EntityChangeDto>[];
@@ -1,7 +1,6 @@
1
1
  import { EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions';
2
2
  import { InjectionToken } from '@angular/core';
3
- import { eAuditLoggingComponents } from '../enums/components';
4
- import { AuditLogDto, EntityChangeDto } from '../proxy/audit-logging/models';
3
+ import { AuditLogDto, EntityChangeDto } from '@volo/abp.ng.audit-logging/proxy';
5
4
  export declare const DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS: {
6
5
  "AuditLogging.AuditLogsComponent": import("@abp/ng.theme.shared/extensions").EntityAction<AuditLogDto>[];
7
6
  "AuditLogging.EntityChangesComponent": import("@abp/ng.theme.shared/extensions").EntityAction<EntityChangeDto>[];
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@volo/abp.ng.audit-logging",
3
- "version": "4.4.3",
3
+ "version": "5.0.0-beta.1",
4
4
  "homepage": "https://abp.io",
5
5
  "dependencies": {
6
- "@abp/ng.components": "~4.4.3",
7
- "@abp/ng.theme.shared": "~4.4.3",
8
- "@volo/abp.commercial.ng.ui": "~4.4.3",
6
+ "@abp/ng.components": "~5.0.0-beta.1-1",
7
+ "@abp/ng.theme.shared": "~5.0.0-beta.1-1",
8
+ "@volo/abp.commercial.ng.ui": "~5.0.0-beta.1",
9
9
  "tslib": "^2.0.0"
10
10
  },
11
11
  "publishConfig": {
@@ -17,6 +17,5 @@
17
17
  "esm2015": "esm2015/volo-abp.ng.audit-logging.js",
18
18
  "fesm2015": "fesm2015/volo-abp.ng.audit-logging.js",
19
19
  "typings": "volo-abp.ng.audit-logging.d.ts",
20
- "metadata": "volo-abp.ng.audit-logging.metadata.json",
21
20
  "sideEffects": false
22
21
  }
@@ -0,0 +1,2 @@
1
+ export * from './proxy/audit-logging';
2
+ export * from './proxy/auditing';
@@ -1,6 +1,7 @@
1
1
  import type { AuditLogDto, EntityChangeDto, EntityChangeFilter, EntityChangeWithUsernameDto, GetAuditLogListDto, GetAverageExecutionDurationPerDayInput, GetAverageExecutionDurationPerDayOutput, GetEntityChangesDto, GetErrorRateFilter, GetErrorRateOutput } from './models';
2
2
  import { RestService } from '@abp/ng.core';
3
3
  import type { PagedResultDto } from '@abp/ng.core';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class AuditLogsService {
5
6
  private restService;
6
7
  apiName: string;
@@ -13,4 +14,6 @@ export declare class AuditLogsService {
13
14
  getErrorRate: (filter: GetErrorRateFilter) => import("rxjs").Observable<GetErrorRateOutput>;
14
15
  getList: (input: GetAuditLogListDto) => import("rxjs").Observable<PagedResultDto<AuditLogDto>>;
15
16
  constructor(restService: RestService);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogsService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuditLogsService>;
16
19
  }
@@ -61,6 +61,7 @@ export interface GetAuditLogListDto extends PagedAndSortedResultRequestDto {
61
61
  url?: string;
62
62
  userName?: string;
63
63
  applicationName?: string;
64
+ clientIpAddress?: string;
64
65
  correlationId?: string;
65
66
  httpMethod?: string;
66
67
  httpStatusCode?: number;
@@ -3,4 +3,4 @@ export declare enum EntityChangeType {
3
3
  Updated = 1,
4
4
  Deleted = 2
5
5
  }
6
- export declare const entityChangeTypeOptions: import("@abp/ng.core").ɵj.Option<typeof EntityChangeType>[];
6
+ export declare const entityChangeTypeOptions: import("@abp/ng.core").ABP.Option<typeof EntityChangeType>[];
File without changes
@@ -0,0 +1,10 @@
1
+ {
2
+ "main": "../bundles/volo-abp.ng.audit-logging-proxy.umd.js",
3
+ "module": "../fesm2015/volo-abp.ng.audit-logging-proxy.js",
4
+ "es2015": "../fesm2015/volo-abp.ng.audit-logging-proxy.js",
5
+ "esm2015": "../esm2015/proxy/volo-abp.ng.audit-logging-proxy.js",
6
+ "fesm2015": "../fesm2015/volo-abp.ng.audit-logging-proxy.js",
7
+ "typings": "volo-abp.ng.audit-logging-proxy.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@volo/abp.ng.audit-logging/proxy"
10
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/index';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@volo/abp.ng.audit-logging/proxy" />
5
+ export * from './public-api';
package/public-api.d.ts CHANGED
@@ -1,12 +1,7 @@
1
- export * from './lib/actions';
2
1
  export * from './lib/audit-logging.module';
3
2
  export * from './lib/components';
4
3
  export * from './lib/constants';
5
4
  export * from './lib/enums';
6
5
  export * from './lib/guards';
7
6
  export * from './lib/models';
8
- export * from './lib/services';
9
- export * from './lib/states';
10
7
  export * from './lib/tokens';
11
- export * from './lib/proxy/audit-logging';
12
- export * from './lib/proxy/auditing';
@@ -1,17 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@volo/abp.ng.audit-logging" />
4
5
  export * from './public-api';
5
- export { GetAuditLogs as ɵe, GetAverageExecutionDurationPerDay as ɵf, GetErrorRate as ɵg } from './lib/actions/audit-logging.actions';
6
- export { AuditLoggingRoutingModule as ɵn } from './lib/audit-logging-routing.module';
7
- export { AuditLogsComponent as ɵa } from './lib/components/audit-logs/audit-logs.component';
8
- export { EntityChangesComponent as ɵk } from './lib/components/entity-change/entity-changes.component';
9
- export { AverageExecutionDurationWidgetComponent as ɵm } from './lib/components/widgets/average-execution-duration-widget.component';
10
- export { ErrorRateWidgetComponent as ɵl } from './lib/components/widgets/error-rate-widget.component';
11
- export { eAuditLoggingComponents as ɵb } from './lib/enums/components';
12
- export { AuditLoggingGuard as ɵp } from './lib/guards/audit-logging.guard';
13
- export { AuditLoggingExtensionsGuard as ɵo } from './lib/guards/extensions.guard';
14
- export { AuditLogsService as ɵd } from './lib/proxy/audit-logging/audit-logs.service';
15
- export { GetAuditLogListDto as ɵh, GetAverageExecutionDurationPerDayInput as ɵi, GetErrorRateFilter as ɵj } from './lib/proxy/audit-logging/models';
16
- export { AuditLoggingState as ɵc } from './lib/states/audit-logging.state';
17
- export { AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS as ɵq, AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS as ɵs, AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS as ɵr } from './lib/tokens/extensions.token';
@@ -1 +0,0 @@
1
- !function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@abp/ng.core"),require("@angular/core"),require("@volo/abp.commercial.ng.ui/config")):"function"==typeof define&&define.amd?define("@volo/abp.ng.audit-logging/common",["exports","@abp/ng.core","@angular/core","@volo/abp.commercial.ng.ui/config"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).volo=o.volo||{},o.volo.abp=o.volo.abp||{},o.volo.abp.ng=o.volo.abp.ng||{},o.volo.abp.ng["audit-logging"]=o.volo.abp.ng["audit-logging"]||{},o.volo.abp.ng["audit-logging"].common={}),o.ng_core,o.ng.core,o.config)}(this,(function(o,e,n,i){"use strict";var t=new n.InjectionToken("AUDIT_LOGGING_FEATURES",{providedIn:"root",factory:function(){var o=n.inject(e.ConfigStateService),i="AuditLogging.Enable";return e.featuresFactory(o,[i],(function(o){return{enable:"false"!==o[i].toLowerCase()}}))}}),r=new n.InjectionToken("SET_AUDIT_LOGGING_ROUTE_VISIBILITY",{providedIn:"root",factory:function(){var o=n.inject(e.RoutesService),r=n.inject(t);i.setModuleVisibilityFactory(r,o,"AbpAuditLogging::Menu:AuditLogging").subscribe()}}),g=e.noop,a=[{provide:n.APP_INITIALIZER,useFactory:g,deps:[r],multi:!0}];o.AUDIT_LOGGING_FEATURES=t,o.AUDIT_LOGGING_FEATURES_PROVIDERS=a,o.SET_AUDIT_LOGGING_ROUTE_VISIBILITY=r,o.ɵ0=g,Object.defineProperty(o,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@abp/ng.core"),require("@abp/ng.theme.shared"),require("@angular/core"),require("@volo/abp.ng.audit-logging"),require("@volo/abp.commercial.ng.ui"),require("@volo/abp.ng.audit-logging/common")):"function"==typeof define&&define.amd?define("@volo/abp.ng.audit-logging/config",["exports","@abp/ng.core","@abp/ng.theme.shared","@angular/core","@volo/abp.ng.audit-logging","@volo/abp.commercial.ng.ui","@volo/abp.ng.audit-logging/common"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng["audit-logging"]=e.volo.abp.ng["audit-logging"]||{},e.volo.abp.ng["audit-logging"].config={}),e.i2,e.ng_theme_shared,e.ng.core,e.volo.abp.ng["audit-logging"],e.abp_commercial_ng_ui,e.volo.abp.ng["audit-logging"].common)}(this,(function(e,t,n,o,i,a,r){"use strict";function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var l=s(t),c=s(o),g=s(i),p=function(){function e(e){var n;this.track=e,this.isCollapsed=!1,this.colors=((n={})[i.EntityChangeType.Created]="success",n[i.EntityChangeType.Updated]="info",n[i.EntityChangeType.Deleted]="danger",n),this.uuid=t.uuid()}return Object.defineProperty(e.prototype,"itemWithUserName",{set:function(e){this.changeType=i.EntityChangeType[e.entityChange.changeType],this.color=this.colors[e.entityChange.changeType],this.userName=e.userName,this.entityChange=e.entityChange},enumerable:!1,configurable:!0}),e.prototype.getPropColor=function(e){return this.entityChange.changeType===i.EntityChangeType.Updated&&e.newValue!==e.originalValue?"red":void 0},e.prototype.getInterpolationParams=function(e){return[this.changeType,e,this.userName]},e}();p.decorators=[{type:o.Component,args:[{selector:"abp-entity-change-details",template:'<div\n class="mb-3 border border-dark rounded"\n *ngIf="getInterpolationParams(entityChange.changeTime | date: \'medium\') as params"\n>\n <button\n type="button"\n class="btn btn-{{ color }} btn-block"\n (click)="isCollapsed = !isCollapsed"\n [attr.aria-expanded]="!isCollapsed"\n [attr.aria-controls]="uuid"\n >\n {{ \'AbpAuditLogging::DaysAgoWithUserTitle\' | abpLocalization: params }}\n </button>\n <div [id]="uuid" [@collapse]="isCollapsed ? \'collapsed\' : \'expanded\'">\n <div class="m-3">\n <table class="table table-striped">\n <thead>\n <tr>\n <th>{{ \'AbpAuditLogging::PropertyName\' | abpLocalization }}</th>\n <th>{{ \'AbpAuditLogging::OriginalValue\' | abpLocalization }}</th>\n <th>{{ \'AbpAuditLogging::NewValue\' | abpLocalization }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let prop of entityChange.propertyChanges; trackBy: track.by(\'id\')">\n <td>{{ prop.propertyName }}</td>\n <td>{{ prop.originalValue }}</td>\n <td [style.color]="getPropColor(prop)">{{ prop.newValue }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</div>\n',animations:[n.collapse]}]}],p.ctorParameters=function(){return[{type:t.TrackByService}]},p.propDecorators={itemWithUserName:[{type:o.Input}],isCollapsed:[{type:o.Input}]};var d=function(e,t){this.cdRef=e,this.track=t,this.history=[],this.visible=!1};d.decorators=[{type:o.Component,args:[{selector:"abp-entity-change-modal",template:'<abp-modal [(visible)]="visible">\n <ng-template #abpHeader>\n <h5 class="modal-title">\n {{ entityTypeFullName }}\n <br />\n <span style="font-size: small">({{ entityId }})</span>\n </h5>\n </ng-template>\n <ng-template #abpBody>\n <ng-container *ngIf="history.length; else noChanges">\n <abp-entity-change-details\n *ngFor="let change of history; first as f; trackBy: track.byDeep(\'entityChange\', \'id\')"\n [itemWithUserName]="change"\n [isCollapsed]="!f"\n ></abp-entity-change-details>\n </ng-container>\n\n <ng-template #noChanges\n ><div class="text-center">\n {{ \'AbpAuditLogging::NoChanges\' | abpLocalization }}\n </div></ng-template\n >\n </ng-template>\n <ng-template #abpFooter>\n <button class="btn btn-secondary" abpClose>\n {{ \'AbpAuditLogging::Close\' | abpLocalization }}\n </button>\n </ng-template>\n</abp-modal>\n',changeDetection:o.ChangeDetectionStrategy.OnPush}]}],d.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:t.TrackByService}]};var u=function(){function e(e,t){this.auditLogsService=e,this.contentProjectionService=t,this.projectModal()}return e.prototype.projectModal=function(){this.modalRef=this.contentProjectionService.projectContent(t.PROJECTION_STRATEGY.AppendComponentToBody(d)),this.modalRef.changeDetectorRef.detectChanges()},e.prototype.detectChanges=function(){this.modalRef.changeDetectorRef.detectChanges(),this.modalRef.instance.cdRef.detectChanges()},e.prototype.showDetails=function(e){var t=this;this.auditLogsService.getEntityChangeWithUsername(e).subscribe((function(e){t.modalRef.instance.entityId=e.entityChange.entityId,t.modalRef.instance.entityTypeFullName=e.entityChange.entityTypeFullName,t.modalRef.instance.history=[e].filter(Boolean),t.modalRef.instance.visible=!0,t.detectChanges()}))},e.prototype.showHistory=function(e,t){var n=this;this.auditLogsService.getEntityChangesWithUsername({entityId:e,entityTypeFullName:t}).subscribe((function(o){n.modalRef.instance.entityId=e,n.modalRef.instance.entityTypeFullName=t,n.modalRef.instance.history=o,n.modalRef.instance.visible=!0,n.detectChanges()}))},e}();u.ɵprov=c.ɵɵdefineInjectable({factory:function(){return new u(c.ɵɵinject(g.AuditLogsService),c.ɵɵinject(l.ContentProjectionService))},token:u,providedIn:"root"}),u.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],u.ctorParameters=function(){return[{type:i.AuditLogsService},{type:t.ContentProjectionService}]};var h=[{provide:i.SHOW_ENTITY_DETAILS,useFactory:y,deps:[u]}];function y(e){return e.showDetails.bind(e)}var b=[{provide:a.SHOW_ENTITY_HISTORY,useFactory:f,deps:[u]}];function f(e){return e.showHistory.bind(e)}var m=[{provide:o.APP_INITIALIZER,useFactory:v,deps:[t.RoutesService],multi:!0}];function v(e){return function(){e.add([{name:"AbpAuditLogging::Menu:AuditLogging",path:"/audit-logs",parentName:"AbpUiNavigation::Menu:Administration",layout:"application",iconClass:"fa fa-file-text",order:6,requiredPolicy:"AuditLogging.AuditLogs"}])}}var C=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[m,h,b,r.AUDIT_LOGGING_FEATURES_PROVIDERS]}},e}();C.decorators=[{type:o.NgModule,args:[{entryComponents:[d],declarations:[p,d],exports:[p,d],imports:[t.CoreModule,n.ThemeSharedModule]}]}],e.AUDIT_LOGGING_ROUTE_PROVIDERS=m,e.AuditLoggingConfigModule=C,e.ENTITY_DETAILS_PROVIDERS=h,e.ENTITY_HISTORY_PROVIDERS=b,e.EntityChangeDetailsComponent=p,e.EntityChangeModalComponent=d,e.EntityChangeModalService=u,e.bindShowDetails=y,e.bindShowHistory=f,e.configureRoutes=v,e.ɵa=d,e.ɵb=p,e.ɵc=m,e.ɵd=v,e.ɵe=h,e.ɵf=b,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@abp/ng.core"),require("@abp/ng.theme.shared"),require("@angular/core"),require("@ng-bootstrap/ng-bootstrap"),require("@ngxs/store"),require("@volo/abp.commercial.ng.ui"),require("@abp/ng.components/page"),require("@angular/router"),require("@abp/ng.theme.shared/extensions"),require("@angular/animations"),require("rxjs/operators"),require("@volo/abp.ng.audit-logging/common"),require("rxjs"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@volo/abp.ng.audit-logging",["exports","@abp/ng.core","@abp/ng.theme.shared","@angular/core","@ng-bootstrap/ng-bootstrap","@ngxs/store","@volo/abp.commercial.ng.ui","@abp/ng.components/page","@angular/router","@abp/ng.theme.shared/extensions","@angular/animations","rxjs/operators","@volo/abp.ng.audit-logging/common","rxjs","@angular/forms"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).volo=e.volo||{},e.volo.abp=e.volo.abp||{},e.volo.abp.ng=e.volo.abp.ng||{},e.volo.abp.ng["audit-logging"]={}),e.i1,e.ng_theme_shared,e.ng.core,e.ngBootstrap,e.i1$1,e.abp_commercial_ng_ui,e.page,e.ng.router,e.extensions,e.ng.animations,e.rxjs.operators,e.volo.abp.ng["audit-logging"].common,e.rxjs,e.ng.forms)}(this,(function(e,t,n,o,a,i,r,s,l,c,d,g,p,u,m){"use strict";function b(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var v=b(t),h=b(o),y=b(i),f=function(e){this.payload=e};f.type="[AuditLogging] Get";var A=function(e){this.payload=e};A.type="[AuditLogging] Get Average Execution Duration Per Day";var L=function(e){this.payload=e};function T(e,t,n,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,n,r):a(t,n))||r);return i>3&&r&&Object.defineProperty(t,n,r),r}function S(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,a,i=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)r.push(o.value)}catch(e){a={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return r}function C(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(S(arguments[t]));return e}L.type="[AuditLogging] Get Error Rate",Object.create,Object.create;var E=["GET","POST","DELETE","PUT","HEAD","CONNECT","OPTIONS","TRACE"],N=[{code:100,message:"Continue"},{code:101,message:"Switching Protocols"},{code:102,message:"Processing"},{code:103,message:"Early Hints"},{code:200,message:"OK"},{code:201,message:"Created"},{code:202,message:"Accepted"},{code:203,message:"Non-authoritative Information"},{code:204,message:"No Content"},{code:205,message:"Reset Content"},{code:206,message:"Partial Content"},{code:207,message:"Multi-Status"},{code:208,message:"Already Registered"},{code:226,message:"IM Used"},{code:300,message:"Multiple Choices"},{code:301,message:"Moved Permanently"},{code:302,message:"Found"},{code:303,message:"See Other"},{code:304,message:"Not Modified"},{code:305,message:"Use Proxy"},{code:306,message:"Switch Proxy"},{code:307,message:"Temporary Redirect"},{code:308,message:"Permanent Redirect"},{code:400,message:"Bad Request"},{code:401,message:"Unauthorized"},{code:402,message:"Payment Required"},{code:403,message:"Forbidden"},{code:404,message:"Not Found"},{code:405,message:"Method Not Allowed"},{code:406,message:"Not Acceptable"},{code:407,message:"Proxy Authentication Required"},{code:408,message:"Request Timeout"},{code:409,message:"Conflict"},{code:410,message:"Gone"},{code:411,message:"Length Required"},{code:412,message:"Precondition Failed"},{code:413,message:"Payload Too Large"},{code:414,message:"Request-URI Too Long"},{code:415,message:"Unsupported Media Type"},{code:416,message:"Requested Range Not Satisfiable"},{code:417,message:"Expectation Failed"},{code:421,message:"Misdirected Request"},{code:423,message:"Locked"},{code:424,message:"Failed Dependency"},{code:426,message:"Upgrade Required"},{code:428,message:"Precondition Required"},{code:429,message:"Too Many Requests"},{code:431,message:"Request Header Fields Too Large"},{code:451,message:"Unavailable For Legal Reasons"},{code:500,message:"Internal Server Error"},{code:501,message:"Not Implemented"},{code:502,message:"Bad Gateway"},{code:503,message:"Service Unavailable"},{code:504,message:"Gateway Timeout"},{code:505,message:"HTTP Version Not Supported"},{code:506,message:"Variant Also Negotiates"},{code:507,message:"Insufficient Storage"},{code:508,message:"Loop Detected"},{code:510,message:"Not Extended"},{code:511,message:"Network Authentication Required"}],D=function(e){var t=this;this.restService=e,this.apiName="AbpAuditLogging",this.get=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/"+e},{apiName:t.apiName})},this.getAverageExecutionDurationPerDay=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/statistics/average-execution-duration-per-day",params:{startDate:e.startDate,endDate:e.endDate}},{apiName:t.apiName})},this.getEntityChange=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/entity-changes/"+e},{apiName:t.apiName})},this.getEntityChangeWithUsername=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/entity-change-with-username/"+e},{apiName:t.apiName})},this.getEntityChanges=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/entity-changes",params:{auditLogId:e.auditLogId,entityChangeType:e.entityChangeType,entityId:e.entityId,entityTypeFullName:e.entityTypeFullName,startDate:e.startDate,endDate:e.endDate,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:t.apiName})},this.getEntityChangesWithUsername=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/entity-changes-with-username",params:{entityId:e.entityId,entityTypeFullName:e.entityTypeFullName}},{apiName:t.apiName})},this.getErrorRate=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs/statistics/error-rate",params:{startDate:e.startDate,endDate:e.endDate}},{apiName:t.apiName})},this.getList=function(e){return t.restService.request({method:"GET",url:"/api/audit-logging/audit-logs",params:{startTime:e.startTime,endTime:e.endTime,url:e.url,userName:e.userName,applicationName:e.applicationName,correlationId:e.correlationId,httpMethod:e.httpMethod,httpStatusCode:e.httpStatusCode,maxExecutionDuration:e.maxExecutionDuration,minExecutionDuration:e.minExecutionDuration,hasException:e.hasException,sorting:e.sorting,skipCount:e.skipCount,maxResultCount:e.maxResultCount}},{apiName:t.apiName})}};D.ɵprov=h.ɵɵdefineInjectable({factory:function(){return new D(h.ɵɵinject(v.RestService))},token:D,providedIn:"root"}),D.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],D.ctorParameters=function(){return[{type:t.RestService}]},e.ɵc=function(){function e(e){this.service=e}return e.get=function(e){return e.result.items||[]},e.getTotalCount=function(e){return e.result.totalCount||0},e.getAverageExecutionStatistics=function(e){return e.averageExecutionStatistics},e.getErrorRateStatistics=function(e){return e.errorRateStatistics},e.prototype.get=function(e,t){var n=e.patchState,o=t.payload;return this.service.getList(o).pipe(g.tap((function(e){return n({result:e})})))},e.prototype.getAverageExecutionData=function(e,t){var n=e.patchState,o=t.payload;return this.service.getAverageExecutionDurationPerDay(o).pipe(g.tap((function(e){n({averageExecutionStatistics:e.data})})))},e.prototype.getErrorRate=function(e,t){var n=e.patchState,o=t.payload;return this.service.getErrorRate(o).pipe(g.tap((function(e){n({errorRateStatistics:e.data})})))},e}(),e.ɵc.decorators=[{type:o.Injectable}],e.ɵc.ctorParameters=function(){return[{type:D}]},T([i.Action(f)],e.ɵc.prototype,"get",null),T([i.Action(A)],e.ɵc.prototype,"getAverageExecutionData",null),T([i.Action(L)],e.ɵc.prototype,"getErrorRate",null),T([i.Selector()],e.ɵc,"get",null),T([i.Selector()],e.ɵc,"getTotalCount",null),T([i.Selector()],e.ɵc,"getAverageExecutionStatistics",null),T([i.Selector()],e.ɵc,"getErrorRateStatistics",null),e.ɵc=T([i.State({name:"AuditLoggingState",defaults:{result:{},averageExecutionStatistics:{},errorRateStatistics:{}}})],e.ɵc);var x=function(){function e(e,t,n){this.list=e,this.service=t,this.store=n,this.selected={},this.pageQuery={maxResultCount:10,skipCount:0},this.httpMethods=E,this.httpStatusCodes=N,this.modalVisible=!1,this.collapseActionStates=[!0],this.collapseChangeStates=[!0],this.sortOrder="",this.sortKey="",this.selectedTab="audit-logs"}return e.prototype.ngOnInit=function(){this.hookToQuery()},e.prototype.hookToQuery=function(){var e=this;this.list.hookToQuery((function(t){return e.store.dispatch(new f(Object.assign(Object.assign(Object.assign(Object.assign({},e.pageQuery),null===e.pageQuery.minExecutionDuration&&{minExecutionDuration:void 0}),null===e.pageQuery.maxExecutionDuration&&{maxExecutionDuration:void 0}),t)))})).subscribe()},e.prototype.openModal=function(e){var t=this;this.service.get(e).pipe(g.take(1)).subscribe((function(e){t.selected=e,t.modalVisible=!0}))},e.prototype.httpCodeClass=function(e){switch(null==e?void 0:e.toString()[0]){case"2":return"badge-success";case"3":return"badge-warning";case"4":case"5":return"badge-danger";default:return"badge-light"}},e.prototype.httpMethodClass=function(e){switch(e){case"GET":return"badge-info";case"POST":return"badge-success";case"DELETE":return"badge-danger";case"PUT":return"badge-warning";default:return""}},e}();x.decorators=[{type:o.Component,args:[{selector:"abp-audit-logs",template:'<ng-container *ngIf="datas$ | async as data">\n <div id="wrapper">\n <abp-page [title]="\'AbpAuditLogging::AuditLogs\' | abpLocalization" [toolbar]="data">\n <ul class="nav nav-tabs">\n <li class="nav-item">\n <a\n class="nav-link pointer"\n [class.active]="selectedTab === \'audit-logs\'"\n (click)="selectedTab = \'audit-logs\'"\n >{{ \'AbpAuditLogging::AuditLogs\' | abpLocalization }}</a\n >\n </li>\n <li class="nav-item">\n <a\n class="nav-link pointer"\n [class.active]="selectedTab === \'entity-changes\'"\n (click)="selectedTab = \'entity-changes\'"\n >{{ \'AbpAuditLogging::EntityChanges\' | abpLocalization }}</a\n >\n </li>\n </ul>\n <div class="tab-content" [class.p-0]="selectedTab !== \'audit-logs\'">\n <div class="tab-pane" [class.active]="selectedTab === \'audit-logs\'" [@fadeIn]="selectedTab">\n <div class="card">\n <div class="card-body pb-lg-3">\n <form (keyup.enter)="list.get()">\n <div class="row">\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="startTime">{{\n \'AbpAuditLogging::StartTime\' | abpLocalization\n }}</label\n ><input\n #startTime="ngbDatepicker"\n class="form-control"\n id="startTime"\n name="startTime"\n readonly\n [(ngModel)]="pageQuery.startTime"\n ngbDatepicker\n (click)="startTime.toggle()"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="endTime">{{ \'AbpAuditLogging::EndTime\' | abpLocalization }}</label\n ><input\n #endTime="ngbDatepicker"\n class="form-control"\n id="endTime"\n name="endTime"\n readonly\n [(ngModel)]="pageQuery.endTime"\n ngbDatepicker\n (click)="endTime.toggle()"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="userName">{{\n \'AbpAuditLogging::UserName\' | abpLocalization\n }}</label\n ><input\n id="userName"\n type="text"\n class="form-control"\n [(ngModel)]="pageQuery.userName"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="url">{{ \'AbpAuditLogging::UrlFilter\' | abpLocalization }}</label\n ><input\n id="url"\n type="text"\n class="form-control"\n [(ngModel)]="pageQuery.url"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="minDuration">{{\n \'AbpAuditLogging::MinDuration\' | abpLocalization\n }}</label\n ><input\n id="minDuration"\n type="number"\n class="form-control"\n [(ngModel)]="pageQuery.minExecutionDuration"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="maxDuration">{{\n \'AbpAuditLogging::MaxDuration\' | abpLocalization\n }}</label\n ><input\n id="maxDuration"\n type="number"\n class="form-control"\n [(ngModel)]="pageQuery.maxExecutionDuration"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="httpMethod">{{\n \'AbpAuditLogging::HttpMethod\' | abpLocalization\n }}</label\n ><select\n id="httpMethod"\n class="custom-select form-control"\n [(ngModel)]="pageQuery.httpMethod"\n [ngModelOptions]="{ standalone: true }"\n (change)="list.get()"\n >\n <option [ngValue]=""></option>\n <option *ngFor="let method of httpMethods" [ngValue]="method">\n {{ method }}\n </option>\n </select>\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group">\n <label for="httpStatusCode">{{\n \'AbpAuditLogging::HttpStatusCode\' | abpLocalization\n }}</label\n ><select\n id="httpStatusCode"\n class="custom-select form-control"\n [(ngModel)]="pageQuery.httpStatusCode"\n [ngModelOptions]="{ standalone: true }"\n (change)="list.get()"\n >\n <option [ngValue]=""></option>\n <option *ngFor="let h of httpStatusCodes" [ngValue]="h.code">\n {{ h.code }} - {{ h.message }}\n </option>\n </select>\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group mb-lg-0">\n <label for="applicationName">{{\n \'AbpAuditLogging::ApplicationName\' | abpLocalization\n }}</label\n ><input\n id="applicationName"\n type="text"\n class="form-control"\n [(ngModel)]="pageQuery.applicationName"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group mb-lg-0">\n <label for="correlationId">{{\n \'AbpAuditLogging::CorrelationId\' | abpLocalization\n }}</label\n ><input\n id="correlationId"\n type="text"\n class="form-control"\n [(ngModel)]="pageQuery.correlationId"\n [ngModelOptions]="{ standalone: true }"\n />\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <div class="form-group mb-lg-0">\n <label for="hasException">{{\n \'AbpAuditLogging::HasException\' | abpLocalization\n }}</label>\n <select\n name="hasException"\n id="hasException"\n class="custom-select form-control"\n [(ngModel)]="pageQuery.hasException"\n [ngModelOptions]="{ standalone: true }"\n (change)="list.get()"\n >\n <option [ngValue]=""></option>\n <option [ngValue]="true">\n {{ \'AbpAuditLogging::Yes\' | abpLocalization }}\n </option>\n <option [ngValue]="false">\n {{ \'AbpAuditLogging::No\' | abpLocalization }}\n </option>\n </select>\n </div>\n </div>\n <div class="col-md-6 col-lg-2">\n <button\n type="button"\n class="btn btn-primary btn-block mt-0 mt-md-4"\n (click)="list.get()"\n >\n <span>\n {{ \'AbpAuditLogging::Refresh\' | abpLocalization }}\n </span>\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n <div class="card">\n <div class="card-body p-0">\n <abp-extensible-table\n [data]="data"\n [recordsTotal]="totalCount$ | async"\n [list]="list"\n ></abp-extensible-table>\n </div>\n </div>\n </div>\n </div>\n <div class="tab-content" [class.p-0]="selectedTab !== \'entity-changes\'">\n <div\n class="tab-pane"\n [class.active]="selectedTab === \'entity-changes\'"\n [@fadeIn]="selectedTab"\n >\n <abp-entity-changes *ngIf="selectedTab === \'entity-changes\'"></abp-entity-changes>\n </div>\n </div>\n </abp-page>\n </div>\n</ng-container>\n\n<abp-modal *ngIf="selected" [(visible)]="modalVisible">\n <ng-template #abpHeader>\n <h5 class="modal-title">\n {{ \'AbpAuditLogging::Detail\' | abpLocalization }}\n </h5>\n </ng-template>\n <ng-template #abpBody>\n <ul ngbNav #nav="ngbNav" class="nav-tabs">\n <li ngbNavItem>\n <a ngbNavLink>{{ \'AbpAuditLogging::Overall\' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::HttpStatusCode\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n <span class="badge" [ngClass]="httpCodeClass(selected.httpStatusCode)">{{\n selected.httpStatusCode\n }}</span>\n </div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::HttpMethod\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n <span class="badge" [ngClass]="httpMethodClass(selected.httpMethod)">{{\n selected.httpMethod\n }}</span>\n </div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Url\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.url }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::ClientIpAddress\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.clientIpAddress }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::ClientName\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.clientName }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Exceptions\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n <pre lang="c-sharp">\n {{ selected.exceptions }}\n </pre>\n </div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::UserName\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.userName }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Time\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.executionTime }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Duration\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.executionDuration }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::BrowserInfo\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.browserInfo }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::ApplicationName\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.applicationName }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::CorrelationId\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.correlationId }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Comments\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">{{ selected.comments }}</div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::ExtraProperties\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n <pre lang="json" class="p-2">\n {{ selected.extraProperties | json }}\n </pre>\n </div>\n </div>\n </ng-template>\n </li>\n <li ngbNavItem>\n <a ngbNavLink\n >{{ \'AbpAuditLogging::Actions\' | abpLocalization }} ({{ selected.actions.length }})</a\n >\n <ng-template ngbNavContent>\n <div\n class="mb-3 border border-dark rounded"\n *ngFor="let action of selected.actions; let i = index"\n >\n <button\n class="btn btn-primary btn-block"\n type="button"\n (click)="collapseActionStates[i] = !collapseActionStates[i]"\n >\n {{ action.serviceName }}\n </button>\n <div [@collapse]="collapseActionStates[i] ? \'expanded\' : \'collapsed\'">\n <div class="m-3">\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Duration\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n {{ action.executionDuration ? action.executionDuration + \' ms\' : \'\' }}\n </div>\n </div>\n <hr />\n <div class="row">\n <div class="col-form-label col col-lg-3">\n <strong>{{ \'AbpAuditLogging::Parameters\' | abpLocalization }}</strong>\n </div>\n <div class="col-form-label col col-lg-9">\n <pre lang="json" class="p-2">{{ action.parameters }}</pre>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </li>\n </ul>\n <div [ngbNavOutlet]="nav"></div>\n </ng-template>\n <ng-template #abpFooter>\n <button class="btn btn-secondary" abpClose>\n {{ \'AbpAuditLogging::Close\' | abpLocalization }}\n </button>\n </ng-template>\n</abp-modal>\n',animations:[n.collapse,d.trigger("fadeIn",[d.transition("* <=> *",d.useAnimation(n.fadeIn))])],providers:[t.ListService,{provide:c.EXTENSIONS_IDENTIFIER,useValue:"AuditLogging.AuditLogsComponent"},{provide:a.NgbDateAdapter,useClass:c.DateAdapter}]}]}],x.ctorParameters=function(){return[{type:t.ListService},{type:D},{type:i.Store}]},T([i.Select(e.ɵc.get)],x.prototype,"datas$",void 0),T([i.Select(e.ɵc.getTotalCount)],x.prototype,"totalCount$",void 0);var I=function(){function e(e){this.auditLoggingFeatures=e}return e.prototype.canActivate=function(){return this.auditLoggingFeatures.pipe(g.map((function(e){return e.enable})))},e}();I.decorators=[{type:o.Injectable}],I.ctorParameters=function(){return[{type:u.Observable,decorators:[{type:o.Inject,args:[p.AUDIT_LOGGING_FEATURES]}]}]};var O,w,R,M=c.EntityAction.createMany([{text:"AbpAuditLogging::Detail",action:function(e){e.getInjected(x).openModal(e.record.id)},icon:"fa fa-search"}]),z=c.EntityProp.createMany([{type:"string",name:"url",displayName:"AbpAuditLogging::HttpRequest",sortable:!0,columnWidth:600,valueResolver:function(e){var t=e.getInjected(x),n=e.record,o=n.httpMethod,a=n.httpStatusCode,i=n.url,r=t.httpMethodClass(o),s=t.httpCodeClass(a);return u.of('<span class="badge '+s+' mr-1">'+a+'</span><span class="badge '+r+' mr-1">'+o+"</span>"+(i||""))}},{type:"string",name:"userName",displayName:"AbpAuditLogging::User",sortable:!0,columnWidth:150},{type:"string",name:"clientIpAddress",displayName:"AbpAuditLogging::IpAddress",sortable:!0,columnWidth:150},{type:"dateTime",name:"executionTime",displayName:"AbpAuditLogging::Time",sortable:!0,columnWidth:150},{type:"number",name:"executionDuration",displayName:"AbpAuditLogging::Duration",sortable:!0,columnWidth:150},{type:"string",name:"applicationName",displayName:"AbpAuditLogging::ApplicationName",sortable:!0,columnWidth:200}]),k=c.ToolbarAction.createMany([]),P=new o.InjectionToken("SHOW_ENTITY_DETAILS"),j=c.EntityAction.createMany([{text:"AbpAuditLogging::ChangeDetails",action:function(e){e.getInjected(P)(e.record.id)},icon:"fa fa-search"},{text:"AbpAuditLogging::FullChangeHistory",action:function(e){e.getInjected(r.SHOW_ENTITY_HISTORY)(e.record.entityId,e.record.entityTypeFullName)},icon:"fa fa-history"}]),G=((O={})["AuditLogging.AuditLogsComponent"]=M,O["AuditLogging.EntityChangesComponent"]=j,O),_=((w={})["AuditLogging.AuditLogsComponent"]=k,w),U=((R={})["AuditLogging.AuditLogsComponent"]=z,R),q=new o.InjectionToken("AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS"),F=new o.InjectionToken("AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS"),Q=new o.InjectionToken("AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS"),V=function(){function e(e){this.injector=e}return e.prototype.canActivate=function(){var e=this.injector.get(c.ExtensionsService),n=this.injector.get(q,null)||{},o=this.injector.get(F,null)||{},a=this.injector.get(Q,null)||{},i=this.injector.get(t.ConfigStateService);return c.getObjectExtensionEntitiesFromStore(i,"AuditLogging").pipe(g.map((function(e){var t;return(t={})["AuditLogging.AuditLogsComponent"]=e.AuditLog,t})),c.mapEntitiesToContributors(i,"AuditLogging"),g.tap((function(t){c.mergeWithDefaultActions(e.entityActions,G,n),c.mergeWithDefaultActions(e.toolbarActions,_,o),c.mergeWithDefaultProps(e.entityProps,U,t.prop,a)})),g.mapTo(!0))},e}();V.decorators=[{type:o.Injectable}],V.ctorParameters=function(){return[{type:o.Injector}]};var B,H={requiredPolicy:"AuditLogging.AuditLogs",replaceableComponent:{key:"AuditLogging.AuditLogsComponent",defaultComponent:x}},W=[{path:"",component:t.DynamicLayoutComponent,canActivate:[t.AuthGuard,t.PermissionGuard,V,I],children:[{path:"",component:t.ReplaceableRouteContainerComponent,data:H}]}],Y=function(){};Y.decorators=[{type:o.NgModule,args:[{imports:[l.RouterModule.forChild(W)],exports:[l.RouterModule]}]}],e.EntityChangeType=void 0,(B=e.EntityChangeType||(e.EntityChangeType={}))[B.Created=0]="Created",B[B.Updated=1]="Updated",B[B.Deleted=2]="Deleted";var $=t.mapEnumToOptions(e.EntityChangeType),J=function(){function n(n,o,a,i){this.list=n,this.fb=o,this.auditLogsService=a,this.track=i,this.form=this.fb.group({entityChangeType:[""],entityTypeFullName:[""],startDate:[""],endDate:[""]}),this.response={items:[],totalCount:0},this.changeType=e.EntityChangeType,this.changeTypes=t.mapEnumToOptions(e.EntityChangeType)}return Object.defineProperty(n.prototype,"data",{get:function(){return this.response.items},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this.response.totalCount},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){this.hookToQuery()},n.prototype.hookToQuery=function(){var e=this;this.list.hookToQuery((function(t){return e.auditLogsService.getEntityChanges(Object.assign(Object.assign({},e.form.value),t))})).subscribe((function(t){return e.response=t}))},n.prototype.handleSubmit=function(){this.list.get()},n}();J.decorators=[{type:o.Component,args:[{selector:"abp-entity-changes",template:'<div class="card">\n <div class="card-body pb-lg-3">\n <form [formGroup]="form" (ngSubmit)="handleSubmit()">\n <div class="row">\n <div class="col-md-6 col-xl-3">\n <div class="form-group">\n <label for="start-date">{{\n \'AbpAuditLogging::EntityChangeStartTime\' | abpLocalization\n }}</label\n ><input\n ngbDatepicker\n #pickerStart="ngbDatepicker"\n id="start-date"\n class="form-control"\n formControlName="startDate"\n readonly\n (click)="pickerStart.toggle()"\n (keyup.space)="pickerStart.open()"\n />\n </div>\n </div>\n <div class="col-md-6 col-xl-3">\n <div class="form-group">\n <label for="end-date">{{\n \'AbpAuditLogging::EntityChangeEndTime\' | abpLocalization\n }}</label\n ><input\n ngbDatepicker\n #pickerEnd="ngbDatepicker"\n id="end-date"\n class="form-control"\n formControlName="endDate"\n readonly\n (click)="pickerEnd.toggle()"\n (keyup.space)="pickerEnd.open()"\n />\n </div>\n </div>\n <div class="col-md-6 col-xl-3">\n <div class="form-group">\n <label for="change-type">{{ \'AbpAuditLogging::ChangeType\' | abpLocalization }}</label\n ><select\n id="change-type"\n class="custom-select form-control"\n formControlName="entityChangeType"\n (change)="handleSubmit()"\n >\n <option [ngValue]=""></option>\n <option\n *ngFor="let type of changeTypes; trackBy: track.by(\'id\')"\n [ngValue]="type.value"\n >{{ \'AbpAuditLogging::\' + type.key | abpLocalization }}</option\n >\n </select>\n </div>\n </div>\n <div class="col-md-6 col-xl-3">\n <div class="form-group">\n <label for="entity-type-full-name">{{\n \'AbpAuditLogging::EntityTypeFullName\' | abpLocalization\n }}</label\n ><input\n id="entity-type-full-name"\n type="text"\n class="form-control"\n formControlName="entityTypeFullName"\n />\n </div>\n </div>\n </div>\n <div class="row">\n <div class="col-12">\n <button type="submit" class="btn btn-primary btn-block mt-0 mt-md-4">\n <span>\n {{ \'AbpAuditLogging::Refresh\' | abpLocalization }}\n </span>\n </button>\n </div>\n </div>\n </form>\n </div>\n</div>\n<div class="card">\n <div class="card-body p-0">\n <ngx-datatable default [rows]="data" [count]="count" [list]="list">\n <ngx-datatable-column\n [name]="\'AbpAuditLogging::Detail\' | abpLocalization"\n [maxWidth]="150"\n [width]="150"\n [sortable]="false"\n >\n <ng-template let-row="row" let-i="rowIndex" ngx-datatable-cell-template>\n <abp-grid-actions\n [index]="i"\n [record]="row"\n text="AbpAuditLogging::Actions"\n ></abp-grid-actions>\n </ng-template>\n </ngx-datatable-column>\n <ngx-datatable-column\n [name]="\'AbpAuditLogging::Time\' | abpLocalization"\n [width]="230"\n prop="changeTime"\n >\n </ngx-datatable-column>\n <ngx-datatable-column\n [name]="\'AbpAuditLogging::ChangeType\' | abpLocalization"\n [width]="140"\n [sortable]="false"\n >\n <ng-template let-row="row" ngx-datatable-cell-template>\n {{ \'AbpAuditLogging::\' + changeType[row.changeType] | abpLocalization }}\n </ng-template>\n </ngx-datatable-column>\n <ngx-datatable-column name="TenantId" [width]="150" [sortable]="false">\n <ng-template let-row="row" ngx-datatable-cell-template>\n <div abpEllipsis>{{ row.tenantId }}</div>\n </ng-template>\n </ngx-datatable-column>\n <ngx-datatable-column\n [name]="\'AbpAuditLogging::EntityTypeFullName\' | abpLocalization"\n [width]="150"\n [sortable]="false"\n >\n <ng-template let-row="row" ngx-datatable-cell-template>\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\n </ng-template>\n </ngx-datatable-column>\n </ngx-datatable>\n </div>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,providers:[t.ListService,{provide:c.EXTENSIONS_IDENTIFIER,useValue:"AuditLogging.EntityChangesComponent"},{provide:a.NgbDateAdapter,useClass:c.DateAdapter}]}]}],J.ctorParameters=function(){return[{type:t.ListService},{type:m.FormBuilder},{type:D},{type:t.TrackByService}]};var K=function(){function e(e,t,n,o){var a=this;this.store=e,this.localizationService=t,this.subscription=n,this.permissionService=o,this.initialized=new u.BehaviorSubject(this),this.width=273,this.height=136,this.chartData={},this.draw=function(e){a.permissionService.getGrantedPolicy("AuditLogging.AuditLogs")&&a.store.dispatch(new A({startDate:e.startDate,endDate:e.endDate}))},this.listenToData()}return e.prototype.initialize=function(e){this.chart=e},e.prototype.listenToData=function(){var e=this;this.subscription.addOne(this.data$,(function(t){if(t&&"{}"!==JSON.stringify(t)){var n=Object.keys(t);setTimeout((function(){e.chartData={labels:n,datasets:[{label:e.localizationService.instant("AbpAuditLogging::AverageExecutionDurationInMilliseconds"),backgroundColor:"#fa6e6e",data:n.map((function(e){return t[e]}))}]},e.chart.refresh()}),0)}else e.chartData={}}))},e}();K.decorators=[{type:o.Component,args:[{selector:"abp-average-execution-duration-widget",template:'\n <div [abpPermission]="\'AuditLogging.AuditLogs\'" class="abp-widget-wrapper">\n <div class="card">\n <div class="card-header">\n <h5 class="card-title">\n {{ \'AbpAuditLogging::AverageExecutionDurationInLogsPerDay\' | abpLocalization }}\n </h5>\n </div>\n <div class="card-body">\n <div class="row">\n <abp-chart\n #chart\n (initialized)="initialize($event)"\n class="w-100"\n type="bar"\n [data]="chartData"\n [width]="width"\n [height]="height"\n ></abp-chart>\n </div>\n </div>\n </div>\n </div>\n ',providers:[t.SubscriptionService]}]}],K.ctorParameters=function(){return[{type:i.Store},{type:t.LocalizationService},{type:t.SubscriptionService},{type:t.PermissionService}]},K.propDecorators={initialized:[{type:o.Output}],width:[{type:o.Input}],height:[{type:o.Input}]},T([i.Select(e.ɵc.getAverageExecutionStatistics)],K.prototype,"data$",void 0);var X=function(){function e(e,t,n){var o=this;this.store=e,this.subscription=t,this.permissionService=n,this.initialized=new u.BehaviorSubject(this),this.width=273,this.height=136,this.chartData={},this.draw=function(e){o.permissionService.getGrantedPolicy("AuditLogging.AuditLogs")&&o.store.dispatch(new L({startDate:e.startDate,endDate:e.endDate}))},this.listenToData()}return e.prototype.initialize=function(e){this.chart=e},e.prototype.listenToData=function(){var e=this;this.subscription.addOne(this.data$,(function(t){if(t&&"{}"!==JSON.stringify(t)){var n=Object.keys(t);setTimeout((function(){e.chartData={labels:n,datasets:[{data:n.map((function(e){return t[e]})),backgroundColor:["#d76e6e","#63ac44"]}]},e.chart.refresh()}),0)}else e.chartData={}}))},e}();X.decorators=[{type:o.Component,args:[{selector:"abp-error-rate-widget",template:'\n <div [abpPermission]="\'AuditLogging.AuditLogs\'" class="abp-widget-wrapper">\n <div class="card">\n <div class="card-header">\n <h5 class="card-title">{{ \'AbpAuditLogging::ErrorRateInLogs\' | abpLocalization }}</h5>\n </div>\n <div class="card-body">\n <div class="row">\n <abp-chart\n #chart\n (initialized)="initialize($event)"\n class="w-100"\n type="pie"\n [data]="chartData"\n [width]="width"\n [height]="height"\n ></abp-chart>\n </div>\n </div>\n </div>\n </div>\n ',providers:[t.SubscriptionService]}]}],X.ctorParameters=function(){return[{type:i.Store},{type:t.SubscriptionService},{type:t.PermissionService}]},X.propDecorators={initialized:[{type:o.Output}],width:[{type:o.Input}],height:[{type:o.Input}]},T([i.Select(e.ɵc.getErrorRateStatistics)],X.prototype,"data$",void 0);var Z,ee=function(){function e(){}return e.forChild=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:q,useValue:t.entityActionContributors},{provide:F,useValue:t.toolbarActionContributors},{provide:Q,useValue:t.entityPropContributors},I,V]}},e.forLazy=function(n){return void 0===n&&(n={}),new t.LazyModuleFactory(e.forChild(n))},e}();ee.decorators=[{type:o.NgModule,args:[{declarations:[x,J,X,K],exports:[x,J,X,K],imports:[Y,i.NgxsModule.forFeature([e.ɵc]),t.CoreModule,r.CommercialUiModule,n.ThemeSharedModule,a.NgbNavModule,a.NgbDatepickerModule,s.PageModule],entryComponents:[J]}]}],e.eEntityChangeType=void 0,(Z=e.eEntityChangeType||(e.eEntityChangeType={}))[Z.Created=0]="Created",Z[Z.Updated=1]="Updated",Z[Z.Deleted=2]="Deleted";var te=function(){function t(e){this.store=e}return t.prototype.get=function(){return this.store.selectSnapshot(e.ɵc.get)},t.prototype.getTotalCount=function(){return this.store.selectSnapshot(e.ɵc.getTotalCount)},t.prototype.getAverageExecutionStatistics=function(){return this.store.selectSnapshot(e.ɵc.getAverageExecutionStatistics)},t.prototype.getErrorRateStatistics=function(){return this.store.selectSnapshot(e.ɵc.getErrorRateStatistics)},t.prototype.dispatchGetAuditLogs=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.store.dispatch(new(f.bind.apply(f,C([void 0],e))))},t.prototype.dispatchGetAverageExecutionDurationPerDay=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.store.dispatch(new(A.bind.apply(A,C([void 0],e))))},t.prototype.dispatchGetErrorRate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.store.dispatch(new(L.bind.apply(L,C([void 0],e))))},t}();te.ɵprov=h.ɵɵdefineInjectable({factory:function(){return new te(h.ɵɵinject(y.Store))},token:te,providedIn:"root"}),te.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],te.ctorParameters=function(){return[{type:i.Store}]},e.AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS=q,e.AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS=Q,e.AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS=F,e.AuditLoggingExtensionsGuard=V,e.AuditLoggingGuard=I,e.AuditLoggingModule=ee,e.AuditLoggingState=e.ɵc,e.AuditLoggingStateService=te,e.AuditLogsComponent=x,e.AuditLogsService=D,e.AverageExecutionDurationWidgetComponent=K,e.DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS=G,e.DEFAULT_AUDIT_LOGGING_ENTITY_PROPS=U,e.DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS=_,e.EntityChangesComponent=J,e.ErrorRateWidgetComponent=X,e.GetAuditLogs=f,e.GetAverageExecutionDurationPerDay=A,e.GetErrorRate=L,e.HTTP_METHODS=E,e.HTTP_STATUS_CODES=N,e.SHOW_ENTITY_DETAILS=P,e.entityChangeTypeOptions=$,e.ɵa=x,e.ɵd=D,e.ɵe=f,e.ɵf=A,e.ɵg=L,e.ɵk=J,e.ɵl=X,e.ɵm=K,e.ɵn=Y,e.ɵo=V,e.ɵp=I,e.ɵq=q,e.ɵr=F,e.ɵs=Q,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"./features.token"}],"metadata":{},"origins":{},"importAs":"@volo/abp.ng.audit-logging/common"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"./entity-change-modal.service"},{"from":"./entity-history.provider"},{"from":"./route.provider"}],"metadata":{"AuditLoggingConfigModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"entryComponents":[{"__symbolic":"reference","name":"ɵa"}],"declarations":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"}],"exports":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@abp/ng.core","name":"CoreModule","line":13,"character":12},{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"ThemeSharedModule","line":13,"character":24}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AuditLoggingConfigModule"},"providers":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","module":"@volo/abp.ng.audit-logging/common","name":"AUDIT_LOGGING_FEATURES_PROVIDERS","line":23,"character":8}]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"abp-entity-change-modal","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<abp-modal [(visible)]=\"visible\">\n <ng-template #abpHeader>\n <h5 class=\"modal-title\">\n {{ entityTypeFullName }}\n <br />\n <span style=\"font-size: small\">({{ entityId }})</span>\n </h5>\n </ng-template>\n <ng-template #abpBody>\n <ng-container *ngIf=\"history.length; else noChanges\">\n <abp-entity-change-details\n *ngFor=\"let change of history; first as f; trackBy: track.byDeep('entityChange', 'id')\"\n [itemWithUserName]=\"change\"\n [isCollapsed]=\"!f\"\n ></abp-entity-change-details>\n </ng-container>\n\n <ng-template #noChanges\n ><div class=\"text-center\">\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\n </div></ng-template\n >\n </ng-template>\n <ng-template #abpFooter>\n <button class=\"btn btn-secondary\" abpClose>\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\n </button>\n </ng-template>\n</abp-modal>\n"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":18,"character":37},{"__symbolic":"reference","module":"@abp/ng.core","name":"TrackByService","line":18,"character":79}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"abp-entity-change-details","animations":[{"__symbolic":"reference","module":"@abp/ng.theme.shared","name":"collapse","line":13,"character":15}],"template":"<div\n class=\"mb-3 border border-dark rounded\"\n *ngIf=\"getInterpolationParams(entityChange.changeTime | date: 'medium') as params\"\n>\n <button\n type=\"button\"\n class=\"btn btn-{{ color }} btn-block\"\n (click)=\"isCollapsed = !isCollapsed\"\n [attr.aria-expanded]=\"!isCollapsed\"\n [attr.aria-controls]=\"uuid\"\n >\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\n </button>\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\n <div class=\"m-3\">\n <table class=\"table table-striped\">\n <thead>\n <tr>\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let prop of entityChange.propertyChanges; trackBy: track.by('id')\">\n <td>{{ prop.propertyName }}</td>\n <td>{{ prop.originalValue }}</td>\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n</div>\n"}]}],"members":{"itemWithUserName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"isCollapsed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TrackByService","module":"@abp/ng.core","arguments":[{"__symbolic":"reference","module":"@volo/abp.ng.audit-logging","name":"EntityPropertyChangeDto","line":41,"character":52}]}]}],"getPropColor":[{"__symbolic":"method"}],"getInterpolationParams":[{"__symbolic":"method"}]}},"ɵc":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":7,"character":13},"useFactory":{"__symbolic":"reference","name":"ɵd"},"deps":[{"__symbolic":"reference","module":"@abp/ng.core","name":"RoutesService","line":7,"character":66}],"multi":true}],"ɵd":{"__symbolic":"function","parameters":["routes"],"value":{"__symbolic":"error","message":"Lambda not supported","line":11,"character":9,"module":"./providers/route.provider"}}},"origins":{"AuditLoggingConfigModule":"./audit-logging-config.module","ɵa":"./components/entity-change-modal.component","ɵb":"./components/entity-change-details.component","ɵc":"./providers/route.provider","ɵd":"./providers/route.provider","ɵe":"./providers","ɵf":"./providers"},"importAs":"@volo/abp.ng.audit-logging/config"}
@@ -1 +0,0 @@
1
- export class GetAuditLogs{constructor(t){this.payload=t}}GetAuditLogs.type="[AuditLogging] Get";export class GetAverageExecutionDurationPerDay{constructor(t){this.payload=t}}GetAverageExecutionDurationPerDay.type="[AuditLogging] Get Average Execution Duration Per Day";export class GetErrorRate{constructor(t){this.payload=t}}GetErrorRate.type="[AuditLogging] Get Error Rate";
@@ -1 +0,0 @@
1
- export*from"./audit-logging.actions";
@@ -1 +0,0 @@
1
- import{Injectable}from"@angular/core";import{Store}from"@ngxs/store";import{AuditLoggingState}from"../states";import{GetAuditLogs,GetAverageExecutionDurationPerDay,GetErrorRate}from"../actions";import*as i0 from"@angular/core";import*as i1 from"@ngxs/store";export class AuditLoggingStateService{constructor(t){this.store=t}get(){return this.store.selectSnapshot(AuditLoggingState.get)}getTotalCount(){return this.store.selectSnapshot(AuditLoggingState.getTotalCount)}getAverageExecutionStatistics(){return this.store.selectSnapshot(AuditLoggingState.getAverageExecutionStatistics)}getErrorRateStatistics(){return this.store.selectSnapshot(AuditLoggingState.getErrorRateStatistics)}dispatchGetAuditLogs(...t){return this.store.dispatch(new GetAuditLogs(...t))}dispatchGetAverageExecutionDurationPerDay(...t){return this.store.dispatch(new GetAverageExecutionDurationPerDay(...t))}dispatchGetErrorRate(...t){return this.store.dispatch(new GetErrorRate(...t))}}AuditLoggingStateService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new AuditLoggingStateService(i0.ɵɵinject(i1.Store))},token:AuditLoggingStateService,providedIn:"root"}),AuditLoggingStateService.decorators=[{type:Injectable,args:[{providedIn:"root"}]}],AuditLoggingStateService.ctorParameters=()=>[{type:Store}];
@@ -1 +0,0 @@
1
- export*from"./audit-logging-state.service";
@@ -1 +0,0 @@
1
- import{__decorate}from"tslib";import{Injectable}from"@angular/core";import{Action,Selector,State}from"@ngxs/store";import{tap}from"rxjs/operators";import{GetAuditLogs,GetAverageExecutionDurationPerDay,GetErrorRate}from"../actions/audit-logging.actions";import{AuditLogsService}from"../proxy/audit-logging/audit-logs.service";let AuditLoggingState=class{constructor(t){this.service=t}static get({result:t}){return t.items||[]}static getTotalCount({result:t}){return t.totalCount||0}static getAverageExecutionStatistics({averageExecutionStatistics:t}){return t}static getErrorRateStatistics({errorRateStatistics:t}){return t}get({patchState:t},{payload:e}){return this.service.getList(e).pipe(tap(e=>t({result:e})))}getAverageExecutionData({patchState:t},{payload:e}){return this.service.getAverageExecutionDurationPerDay(e).pipe(tap(e=>{t({averageExecutionStatistics:e.data})}))}getErrorRate({patchState:t},{payload:e}){return this.service.getErrorRate(e).pipe(tap(e=>{t({errorRateStatistics:e.data})}))}};AuditLoggingState.decorators=[{type:Injectable}],AuditLoggingState.ctorParameters=()=>[{type:AuditLogsService}],__decorate([Action(GetAuditLogs)],AuditLoggingState.prototype,"get",null),__decorate([Action(GetAverageExecutionDurationPerDay)],AuditLoggingState.prototype,"getAverageExecutionData",null),__decorate([Action(GetErrorRate)],AuditLoggingState.prototype,"getErrorRate",null),__decorate([Selector()],AuditLoggingState,"get",null),__decorate([Selector()],AuditLoggingState,"getTotalCount",null),__decorate([Selector()],AuditLoggingState,"getAverageExecutionStatistics",null),__decorate([Selector()],AuditLoggingState,"getErrorRateStatistics",null),AuditLoggingState=__decorate([State({name:"AuditLoggingState",defaults:{result:{},averageExecutionStatistics:{},errorRateStatistics:{}}})],AuditLoggingState);export{AuditLoggingState};
@@ -1 +0,0 @@
1
- export*from"./audit-logging.state";
@@ -1,16 +0,0 @@
1
- import { GetAuditLogListDto, GetAverageExecutionDurationPerDayInput, GetErrorRateFilter } from '../proxy/audit-logging/models';
2
- export declare class GetAuditLogs {
3
- payload?: GetAuditLogListDto;
4
- static readonly type = "[AuditLogging] Get";
5
- constructor(payload?: GetAuditLogListDto);
6
- }
7
- export declare class GetAverageExecutionDurationPerDay {
8
- payload: GetAverageExecutionDurationPerDayInput;
9
- static readonly type = "[AuditLogging] Get Average Execution Duration Per Day";
10
- constructor(payload: GetAverageExecutionDurationPerDayInput);
11
- }
12
- export declare class GetErrorRate {
13
- payload: GetErrorRateFilter;
14
- static readonly type = "[AuditLogging] Get Error Rate";
15
- constructor(payload: GetErrorRateFilter);
16
- }