@volo/abp.ng.audit-logging 5.0.0 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/common/package.json +5 -5
  2. package/config/package.json +5 -5
  3. package/esm2020/common/enums/index.mjs +2 -0
  4. package/esm2020/common/enums/route-names.mjs +2 -0
  5. package/esm2020/common/public-api.mjs +3 -0
  6. package/esm2020/common/tokens/features.token.mjs +31 -0
  7. package/esm2020/common/tokens/index.mjs +2 -0
  8. package/esm2020/common/volo-abp.ng.audit-logging-common.mjs +5 -0
  9. package/esm2020/config/audit-logging-config.module.mjs +34 -0
  10. package/esm2020/config/components/entity-change-details.component.mjs +45 -0
  11. package/esm2020/config/components/entity-change-modal.component.mjs +22 -0
  12. package/esm2020/config/components/index.mjs +3 -0
  13. package/esm2020/config/enums/index.mjs +3 -0
  14. package/esm2020/config/enums/policy-names.mjs +2 -0
  15. package/esm2020/config/enums/route-names.mjs +2 -0
  16. package/esm2020/config/providers/entity-details.provider.mjs +13 -0
  17. package/esm2020/config/providers/entity-history.provider.mjs +13 -0
  18. package/esm2020/config/providers/index.mjs +4 -0
  19. package/esm2020/config/providers/route.provider.mjs +21 -0
  20. package/esm2020/config/public-api.mjs +6 -0
  21. package/esm2020/config/services/entity-change-modal.service.mjs +51 -0
  22. package/esm2020/config/services/index.mjs +2 -0
  23. package/esm2020/config/volo-abp.ng.audit-logging-config.mjs +5 -0
  24. package/esm2020/lib/audit-logging-routing.module.mjs +41 -0
  25. package/esm2020/lib/audit-logging.module.mjs +95 -0
  26. package/esm2020/lib/components/audit-logs/audit-logs.component.mjs +113 -0
  27. package/esm2020/lib/components/entity-change/entity-changes.component.mjs +70 -0
  28. package/esm2020/lib/components/index.mjs +5 -0
  29. package/esm2020/lib/components/widgets/average-execution-duration-widget.component.mjs +115 -0
  30. package/esm2020/lib/components/widgets/error-rate-widget.component.mjs +116 -0
  31. package/esm2020/lib/constants/http.mjs +64 -0
  32. package/esm2020/lib/constants/index.mjs +2 -0
  33. package/esm2020/lib/defaults/default-audit-logs-entity-actions.mjs +13 -0
  34. package/esm2020/lib/defaults/default-audit-logs-entity-props.mjs +57 -0
  35. package/esm2020/lib/defaults/default-audit-logs-toolbar-actions.mjs +3 -0
  36. package/esm2020/lib/defaults/default-entity-changes-entity-actions.mjs +22 -0
  37. package/esm2020/lib/enums/components.mjs +2 -0
  38. package/esm2020/lib/enums/entity-change.mjs +7 -0
  39. package/esm2020/lib/enums/index.mjs +3 -0
  40. package/esm2020/lib/guards/audit-logging.guard.mjs +23 -0
  41. package/esm2020/lib/guards/extensions.guard.mjs +31 -0
  42. package/esm2020/lib/guards/index.mjs +3 -0
  43. package/esm2020/lib/models/audit-logging.mjs +2 -0
  44. package/esm2020/lib/models/config-options.mjs +2 -0
  45. package/esm2020/lib/models/index.mjs +3 -0
  46. package/esm2020/lib/tokens/entity-details.token.mjs +3 -0
  47. package/esm2020/lib/tokens/extensions.token.mjs +19 -0
  48. package/esm2020/lib/tokens/index.mjs +3 -0
  49. package/esm2020/proxy/lib/index.mjs +3 -0
  50. package/esm2020/proxy/lib/proxy/audit-logging/audit-logs.service.mjs +56 -0
  51. package/esm2020/proxy/lib/proxy/audit-logging/index.mjs +3 -0
  52. package/esm2020/proxy/lib/proxy/audit-logging/models.mjs +2 -0
  53. package/esm2020/proxy/lib/proxy/auditing/entity-change-type.enum.mjs +9 -0
  54. package/esm2020/proxy/lib/proxy/auditing/index.mjs +2 -0
  55. package/esm2020/proxy/public-api.mjs +2 -0
  56. package/esm2020/proxy/volo-abp.ng.audit-logging-proxy.mjs +5 -0
  57. package/esm2020/public-api.mjs +8 -0
  58. package/esm2020/volo-abp.ng.audit-logging.mjs +5 -0
  59. package/fesm2015/{volo-abp.ng.audit-logging-common.js → volo-abp.ng.audit-logging-common.mjs} +1 -1
  60. package/fesm2015/volo-abp.ng.audit-logging-common.mjs.map +1 -0
  61. package/fesm2015/{volo-abp.ng.audit-logging-config.js → volo-abp.ng.audit-logging-config.mjs} +16 -25
  62. package/fesm2015/volo-abp.ng.audit-logging-config.mjs.map +1 -0
  63. package/fesm2015/{volo-abp.ng.audit-logging-proxy.js → volo-abp.ng.audit-logging-proxy.mjs} +6 -6
  64. package/fesm2015/volo-abp.ng.audit-logging-proxy.mjs.map +1 -0
  65. package/fesm2015/{volo-abp.ng.audit-logging.js → volo-abp.ng.audit-logging.mjs} +40 -49
  66. package/fesm2015/volo-abp.ng.audit-logging.mjs.map +1 -0
  67. package/fesm2020/volo-abp.ng.audit-logging-common.mjs +38 -0
  68. package/fesm2020/volo-abp.ng.audit-logging-common.mjs.map +1 -0
  69. package/fesm2020/volo-abp.ng.audit-logging-config.mjs +182 -0
  70. package/fesm2020/volo-abp.ng.audit-logging-config.mjs.map +1 -0
  71. package/fesm2020/volo-abp.ng.audit-logging-proxy.mjs +71 -0
  72. package/fesm2020/volo-abp.ng.audit-logging-proxy.mjs.map +1 -0
  73. package/fesm2020/volo-abp.ng.audit-logging.mjs +723 -0
  74. package/fesm2020/volo-abp.ng.audit-logging.mjs.map +1 -0
  75. package/package.json +46 -9
  76. package/proxy/package.json +5 -5
  77. package/proxy/src/lib/proxy/README.md +17 -0
  78. package/bundles/volo-abp.ng.audit-logging-common.umd.js +0 -1
  79. package/bundles/volo-abp.ng.audit-logging-config.umd.js +0 -1
  80. package/bundles/volo-abp.ng.audit-logging-proxy.umd.js +0 -1
  81. package/bundles/volo-abp.ng.audit-logging.umd.js +0 -1
  82. package/esm2015/common/enums/index.js +0 -1
  83. package/esm2015/common/enums/route-names.js +0 -1
  84. package/esm2015/common/public-api.js +0 -1
  85. package/esm2015/common/tokens/features.token.js +0 -1
  86. package/esm2015/common/tokens/index.js +0 -1
  87. package/esm2015/common/volo-abp.ng.audit-logging-common.js +0 -1
  88. package/esm2015/config/audit-logging-config.module.js +0 -1
  89. package/esm2015/config/components/entity-change-details.component.js +0 -1
  90. package/esm2015/config/components/entity-change-modal.component.js +0 -1
  91. package/esm2015/config/components/index.js +0 -1
  92. package/esm2015/config/enums/index.js +0 -1
  93. package/esm2015/config/enums/policy-names.js +0 -1
  94. package/esm2015/config/enums/route-names.js +0 -1
  95. package/esm2015/config/providers/entity-details.provider.js +0 -1
  96. package/esm2015/config/providers/entity-history.provider.js +0 -1
  97. package/esm2015/config/providers/index.js +0 -1
  98. package/esm2015/config/providers/route.provider.js +0 -1
  99. package/esm2015/config/public-api.js +0 -1
  100. package/esm2015/config/services/entity-change-modal.service.js +0 -1
  101. package/esm2015/config/services/index.js +0 -1
  102. package/esm2015/config/volo-abp.ng.audit-logging-config.js +0 -1
  103. package/esm2015/lib/audit-logging-routing.module.js +0 -1
  104. package/esm2015/lib/audit-logging.module.js +0 -1
  105. package/esm2015/lib/components/audit-logs/audit-logs.component.js +0 -1
  106. package/esm2015/lib/components/entity-change/entity-changes.component.js +0 -1
  107. package/esm2015/lib/components/index.js +0 -1
  108. package/esm2015/lib/components/widgets/average-execution-duration-widget.component.js +0 -1
  109. package/esm2015/lib/components/widgets/error-rate-widget.component.js +0 -1
  110. package/esm2015/lib/constants/http.js +0 -1
  111. package/esm2015/lib/constants/index.js +0 -1
  112. package/esm2015/lib/defaults/default-audit-logs-entity-actions.js +0 -1
  113. package/esm2015/lib/defaults/default-audit-logs-entity-props.js +0 -1
  114. package/esm2015/lib/defaults/default-audit-logs-toolbar-actions.js +0 -1
  115. package/esm2015/lib/defaults/default-entity-changes-entity-actions.js +0 -1
  116. package/esm2015/lib/enums/components.js +0 -1
  117. package/esm2015/lib/enums/entity-change.js +0 -1
  118. package/esm2015/lib/enums/index.js +0 -1
  119. package/esm2015/lib/guards/audit-logging.guard.js +0 -1
  120. package/esm2015/lib/guards/extensions.guard.js +0 -1
  121. package/esm2015/lib/guards/index.js +0 -1
  122. package/esm2015/lib/models/audit-logging.js +0 -1
  123. package/esm2015/lib/models/config-options.js +0 -1
  124. package/esm2015/lib/models/index.js +0 -1
  125. package/esm2015/lib/tokens/entity-details.token.js +0 -1
  126. package/esm2015/lib/tokens/extensions.token.js +0 -1
  127. package/esm2015/lib/tokens/index.js +0 -1
  128. package/esm2015/proxy/lib/index.js +0 -1
  129. package/esm2015/proxy/lib/proxy/audit-logging/audit-logs.service.js +0 -1
  130. package/esm2015/proxy/lib/proxy/audit-logging/index.js +0 -1
  131. package/esm2015/proxy/lib/proxy/audit-logging/models.js +0 -1
  132. package/esm2015/proxy/lib/proxy/auditing/entity-change-type.enum.js +0 -1
  133. package/esm2015/proxy/lib/proxy/auditing/index.js +0 -1
  134. package/esm2015/proxy/public-api.js +0 -1
  135. package/esm2015/proxy/volo-abp.ng.audit-logging-proxy.js +0 -1
  136. package/esm2015/public-api.js +0 -1
  137. package/esm2015/volo-abp.ng.audit-logging.js +0 -1
@@ -0,0 +1,723 @@
1
+ import * as i3$1 from '@abp/ng.components/chart.js';
2
+ import { ChartComponent, ChartModule } from '@abp/ng.components/chart.js';
3
+ import * as i3 from '@abp/ng.components/page';
4
+ import { PageModule } from '@abp/ng.components/page';
5
+ import * as i1 from '@abp/ng.core';
6
+ import { mapEnumToOptions, ListService, ConfigStateService, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
7
+ import * as i8 from '@abp/ng.theme.shared';
8
+ import { collapse, fadeIn, ThemeSharedModule } from '@abp/ng.theme.shared';
9
+ import * as i0 from '@angular/core';
10
+ import { Component, ChangeDetectionStrategy, Injectable, Inject, InjectionToken, NgModule, Output, Input, ViewChild } from '@angular/core';
11
+ import * as i7 from '@ng-bootstrap/ng-bootstrap';
12
+ import { NgbDateAdapter, NgbNavModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
13
+ import { SHOW_ENTITY_HISTORY, CommercialUiModule } from '@volo/abp.commercial.ng.ui';
14
+ import * as i1$2 from '@angular/router';
15
+ import { RouterModule } from '@angular/router';
16
+ import * as i5 from '@abp/ng.theme.shared/extensions';
17
+ import { EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.theme.shared/extensions';
18
+ import { trigger, transition, useAnimation } from '@angular/animations';
19
+ import * as i2$1 from '@volo/abp.ng.audit-logging/proxy';
20
+ import { EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
21
+ import { take, map, tap, mapTo } from 'rxjs/operators';
22
+ import * as i2 from '@angular/forms';
23
+ import * as i4 from '@swimlane/ngx-datatable';
24
+ import * as i9 from '@angular/common';
25
+ import { AUDIT_LOGGING_FEATURES } from '@volo/abp.ng.audit-logging/common';
26
+ import * as i1$1 from 'rxjs';
27
+ import { of, BehaviorSubject } from 'rxjs';
28
+
29
+ const HTTP_METHODS = ['GET', 'POST', 'DELETE', 'PUT', 'HEAD', 'CONNECT', 'OPTIONS', 'TRACE'];
30
+ const HTTP_STATUS_CODES = [
31
+ { code: 100, message: 'Continue' },
32
+ { code: 101, message: 'Switching Protocols' },
33
+ { code: 102, message: 'Processing' },
34
+ { code: 103, message: 'Early Hints' },
35
+ { code: 200, message: 'OK' },
36
+ { code: 201, message: 'Created' },
37
+ { code: 202, message: 'Accepted' },
38
+ { code: 203, message: 'Non-authoritative Information' },
39
+ { code: 204, message: 'No Content' },
40
+ { code: 205, message: 'Reset Content' },
41
+ { code: 206, message: 'Partial Content' },
42
+ { code: 207, message: 'Multi-Status' },
43
+ { code: 208, message: 'Already Registered' },
44
+ { code: 226, message: 'IM Used' },
45
+ { code: 300, message: 'Multiple Choices' },
46
+ { code: 301, message: 'Moved Permanently' },
47
+ { code: 302, message: 'Found' },
48
+ { code: 303, message: 'See Other' },
49
+ { code: 304, message: 'Not Modified' },
50
+ { code: 305, message: 'Use Proxy' },
51
+ { code: 306, message: 'Switch Proxy' },
52
+ { code: 307, message: 'Temporary Redirect' },
53
+ { code: 308, message: 'Permanent Redirect' },
54
+ { code: 400, message: 'Bad Request' },
55
+ { code: 401, message: 'Unauthorized' },
56
+ { code: 402, message: 'Payment Required' },
57
+ { code: 403, message: 'Forbidden' },
58
+ { code: 404, message: 'Not Found' },
59
+ { code: 405, message: 'Method Not Allowed' },
60
+ { code: 406, message: 'Not Acceptable' },
61
+ { code: 407, message: 'Proxy Authentication Required' },
62
+ { code: 408, message: 'Request Timeout' },
63
+ { code: 409, message: 'Conflict' },
64
+ { code: 410, message: 'Gone' },
65
+ { code: 411, message: 'Length Required' },
66
+ { code: 412, message: 'Precondition Failed' },
67
+ { code: 413, message: 'Payload Too Large' },
68
+ { code: 414, message: 'Request-URI Too Long' },
69
+ { code: 415, message: 'Unsupported Media Type' },
70
+ { code: 416, message: 'Requested Range Not Satisfiable' },
71
+ { code: 417, message: 'Expectation Failed' },
72
+ { code: 421, message: 'Misdirected Request' },
73
+ { code: 423, message: 'Locked' },
74
+ { code: 424, message: 'Failed Dependency' },
75
+ { code: 426, message: 'Upgrade Required' },
76
+ { code: 428, message: 'Precondition Required' },
77
+ { code: 429, message: 'Too Many Requests' },
78
+ { code: 431, message: 'Request Header Fields Too Large' },
79
+ { code: 451, message: 'Unavailable For Legal Reasons' },
80
+ { code: 500, message: 'Internal Server Error' },
81
+ { code: 501, message: 'Not Implemented' },
82
+ { code: 502, message: 'Bad Gateway' },
83
+ { code: 503, message: 'Service Unavailable' },
84
+ { code: 504, message: 'Gateway Timeout' },
85
+ { code: 505, message: 'HTTP Version Not Supported' },
86
+ { code: 506, message: 'Variant Also Negotiates' },
87
+ { code: 507, message: 'Insufficient Storage' },
88
+ { code: 508, message: 'Loop Detected' },
89
+ { code: 510, message: 'Not Extended' },
90
+ { code: 511, message: 'Network Authentication Required' },
91
+ ];
92
+
93
+ class EntityChangesComponent {
94
+ constructor(list, fb, auditLogsService, track) {
95
+ this.list = list;
96
+ this.fb = fb;
97
+ this.auditLogsService = auditLogsService;
98
+ this.track = track;
99
+ this.form = this.fb.group({
100
+ entityChangeType: [''],
101
+ entityTypeFullName: [''],
102
+ startDate: [''],
103
+ endDate: [''],
104
+ });
105
+ this.response = { items: [], totalCount: 0 };
106
+ this.changeType = EntityChangeType;
107
+ this.changeTypes = mapEnumToOptions(EntityChangeType);
108
+ }
109
+ get data() {
110
+ return this.response.items;
111
+ }
112
+ get count() {
113
+ return this.response.totalCount;
114
+ }
115
+ ngAfterViewInit() {
116
+ this.hookToQuery();
117
+ }
118
+ hookToQuery() {
119
+ this.list
120
+ .hookToQuery(query => this.auditLogsService.getEntityChanges({ ...this.form.value, ...query }))
121
+ .subscribe(res => (this.response = res));
122
+ }
123
+ handleSubmit() {
124
+ this.list.get();
125
+ }
126
+ }
127
+ EntityChangesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EntityChangesComponent, deps: [{ token: i1.ListService }, { token: i2.FormBuilder }, { token: i2$1.AuditLogsService }, { token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component });
128
+ EntityChangesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: EntityChangesComponent, selector: "abp-entity-changes", providers: [
129
+ ListService,
130
+ {
131
+ provide: EXTENSIONS_IDENTIFIER,
132
+ useValue: "AuditLogging.EntityChangesComponent" /* EntityChanges */,
133
+ },
134
+ { provide: NgbDateAdapter, useClass: DateAdapter },
135
+ ], ngImport: i0, template: "<div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"start-date\">{{\r\n 'AbpAuditLogging::EntityChangeStartTime' | abpLocalization\r\n }}</label\r\n ><input\r\n ngbDatepicker\r\n #pickerStart=\"ngbDatepicker\"\r\n id=\"start-date\"\r\n class=\"form-control\"\r\n formControlName=\"startDate\"\r\n readonly\r\n (click)=\"pickerStart.toggle()\"\r\n (keyup.space)=\"pickerStart.open()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"end-date\">{{\r\n 'AbpAuditLogging::EntityChangeEndTime' | abpLocalization\r\n }}</label\r\n ><input\r\n ngbDatepicker\r\n #pickerEnd=\"ngbDatepicker\"\r\n id=\"end-date\"\r\n class=\"form-control\"\r\n formControlName=\"endDate\"\r\n readonly\r\n (click)=\"pickerEnd.toggle()\"\r\n (keyup.space)=\"pickerEnd.open()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"change-type\">{{\r\n 'AbpAuditLogging::ChangeType' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"change-type\"\r\n class=\"form-select form-control\"\r\n formControlName=\"entityChangeType\"\r\n (change)=\"handleSubmit()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option\r\n *ngFor=\"let type of changeTypes; trackBy: track.by('id')\"\r\n [ngValue]=\"type.value\"\r\n >\r\n {{ 'AbpAuditLogging::' + type.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"entity-type-full-name\">{{\r\n 'AbpAuditLogging::EntityTypeFullName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"entity-type-full-name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n formControlName=\"entityTypeFullName\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12 d-grid d-md-block text-end\">\r\n <button type=\"submit\" class=\"btn btn-primary\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n<div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <ngx-datatable default [rows]=\"data\" [count]=\"count\" [list]=\"list\">\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Detail' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"rowIndex\" ngx-datatable-cell-template>\r\n <abp-grid-actions\r\n [index]=\"i\"\r\n [record]=\"row\"\r\n text=\"AbpAuditLogging::Actions\"\r\n ></abp-grid-actions>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Time' | abpLocalization\"\r\n [width]=\"230\"\r\n prop=\"changeTime\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::ChangeType' | abpLocalization\"\r\n [width]=\"140\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ 'AbpAuditLogging::' + changeType[row.changeType] | abpLocalization }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column name=\"TenantId\" [width]=\"150\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.tenantId }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::EntityTypeFullName' | abpLocalization\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n</div>\r\n", components: [{ type: i4.DatatableComponent, selector: "ngx-datatable", inputs: ["selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "loadingIndicator", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "groupExpansionDefault", "selectAllRowsOnPage", "virtualization", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity", "rows", "groupedRows", "groupRowsBy", "columns", "limit", "count", "offset", "targetMarkerTemplate", "selectionType", "rowClass", "selectCheck", "displayCheck", "trackByProp", "treeFromRelation", "treeToRelation"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { type: i5.GridActionsComponent, selector: "abp-grid-actions", inputs: ["icon", "index", "text"], exportAs: ["abpGridActions"] }], directives: [{ type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { type: i8.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { type: i4.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { type: i4.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { type: i8.EllipsisDirective, selector: "[abpEllipsis]", inputs: ["abpEllipsis", "title", "abpEllipsisEnabled"] }], pipes: { "abpLocalization": i1.LocalizationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EntityChangesComponent, decorators: [{
137
+ type: Component,
138
+ args: [{ selector: 'abp-entity-changes', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
139
+ ListService,
140
+ {
141
+ provide: EXTENSIONS_IDENTIFIER,
142
+ useValue: "AuditLogging.EntityChangesComponent" /* EntityChanges */,
143
+ },
144
+ { provide: NgbDateAdapter, useClass: DateAdapter },
145
+ ], template: "<div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"handleSubmit()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"start-date\">{{\r\n 'AbpAuditLogging::EntityChangeStartTime' | abpLocalization\r\n }}</label\r\n ><input\r\n ngbDatepicker\r\n #pickerStart=\"ngbDatepicker\"\r\n id=\"start-date\"\r\n class=\"form-control\"\r\n formControlName=\"startDate\"\r\n readonly\r\n (click)=\"pickerStart.toggle()\"\r\n (keyup.space)=\"pickerStart.open()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"end-date\">{{\r\n 'AbpAuditLogging::EntityChangeEndTime' | abpLocalization\r\n }}</label\r\n ><input\r\n ngbDatepicker\r\n #pickerEnd=\"ngbDatepicker\"\r\n id=\"end-date\"\r\n class=\"form-control\"\r\n formControlName=\"endDate\"\r\n readonly\r\n (click)=\"pickerEnd.toggle()\"\r\n (keyup.space)=\"pickerEnd.open()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"change-type\">{{\r\n 'AbpAuditLogging::ChangeType' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"change-type\"\r\n class=\"form-select form-control\"\r\n formControlName=\"entityChangeType\"\r\n (change)=\"handleSubmit()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option\r\n *ngFor=\"let type of changeTypes; trackBy: track.by('id')\"\r\n [ngValue]=\"type.value\"\r\n >\r\n {{ 'AbpAuditLogging::' + type.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-xl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"entity-type-full-name\">{{\r\n 'AbpAuditLogging::EntityTypeFullName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"entity-type-full-name\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n formControlName=\"entityTypeFullName\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12 d-grid d-md-block text-end\">\r\n <button type=\"submit\" class=\"btn btn-primary\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n</div>\r\n<div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <ngx-datatable default [rows]=\"data\" [count]=\"count\" [list]=\"list\">\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Detail' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" let-i=\"rowIndex\" ngx-datatable-cell-template>\r\n <abp-grid-actions\r\n [index]=\"i\"\r\n [record]=\"row\"\r\n text=\"AbpAuditLogging::Actions\"\r\n ></abp-grid-actions>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::Time' | abpLocalization\"\r\n [width]=\"230\"\r\n prop=\"changeTime\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::ChangeType' | abpLocalization\"\r\n [width]=\"140\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ 'AbpAuditLogging::' + changeType[row.changeType] | abpLocalization }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column name=\"TenantId\" [width]=\"150\" [sortable]=\"false\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.tenantId }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpAuditLogging::EntityTypeFullName' | abpLocalization\"\r\n [width]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div abpEllipsis>{{ row.entityTypeFullName }}</div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n</div>\r\n" }]
146
+ }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2.FormBuilder }, { type: i2$1.AuditLogsService }, { type: i1.TrackByService }]; } });
147
+
148
+ class AuditLogsComponent {
149
+ constructor(list, service) {
150
+ this.list = list;
151
+ this.service = service;
152
+ this.data = { items: [], totalCount: 0 };
153
+ this.selected = {};
154
+ this.pageQuery = {
155
+ maxResultCount: 10,
156
+ skipCount: 0,
157
+ };
158
+ this.httpMethods = HTTP_METHODS;
159
+ this.httpStatusCodes = HTTP_STATUS_CODES;
160
+ this.modalVisible = false;
161
+ this.collapseActionStates = [true];
162
+ this.collapseChangeStates = [true];
163
+ this.sortOrder = '';
164
+ this.sortKey = '';
165
+ this.selectedTab = 'audit-logs';
166
+ }
167
+ ngOnInit() {
168
+ this.hookToQuery();
169
+ }
170
+ hookToQuery() {
171
+ this.list
172
+ .hookToQuery(query => this.service.getList({
173
+ ...this.pageQuery,
174
+ ...(this.pageQuery.minExecutionDuration === null && {
175
+ minExecutionDuration: undefined,
176
+ }),
177
+ ...(this.pageQuery.maxExecutionDuration === null && {
178
+ maxExecutionDuration: undefined,
179
+ }),
180
+ ...query,
181
+ }))
182
+ .subscribe(res => (this.data = res));
183
+ }
184
+ openModal(id) {
185
+ this.service
186
+ .get(id)
187
+ .pipe(take(1))
188
+ .subscribe(log => {
189
+ this.selected = log;
190
+ this.modalVisible = true;
191
+ });
192
+ }
193
+ httpCodeClass(httpStatusCode) {
194
+ switch (httpStatusCode?.toString()[0]) {
195
+ case '2':
196
+ return 'badge-success';
197
+ case '3':
198
+ return 'badge-warning';
199
+ case '4':
200
+ case '5':
201
+ return 'badge-danger';
202
+ default:
203
+ return 'badge-light';
204
+ }
205
+ }
206
+ httpMethodClass(httpMethod) {
207
+ switch (httpMethod) {
208
+ case 'GET':
209
+ return 'badge-info';
210
+ case 'POST':
211
+ return 'badge-success';
212
+ case 'DELETE':
213
+ return 'badge-danger';
214
+ case 'PUT':
215
+ return 'badge-warning';
216
+ default:
217
+ return '';
218
+ }
219
+ }
220
+ }
221
+ AuditLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLogsComponent, deps: [{ token: i1.ListService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component });
222
+ AuditLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AuditLogsComponent, selector: "abp-audit-logs", providers: [
223
+ ListService,
224
+ {
225
+ provide: EXTENSIONS_IDENTIFIER,
226
+ useValue: "AuditLogging.AuditLogsComponent" /* AuditLogs */,
227
+ },
228
+ { provide: NgbDateAdapter, useClass: DateAdapter },
229
+ ], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n (click)=\"selectedTab = 'audit-logs'\"\r\n >{{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n (click)=\"selectedTab = 'entity-changes'\"\r\n >{{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'audit-logs'\">\r\n <div class=\"tab-pane\" [class.active]=\"selectedTab === 'audit-logs'\" [@fadeIn]=\"selectedTab\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"startTime\" class=\"form-label\">{{\r\n 'AbpAuditLogging::StartTime' | abpLocalization\r\n }}</label\r\n ><input\r\n #startTime=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"startTime\"\r\n name=\"startTime\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.startTime\"\r\n ngbDatepicker\r\n (click)=\"startTime.toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"endTime\" class=\"form-label\">{{\r\n 'AbpAuditLogging::EndTime' | abpLocalization\r\n }}</label\r\n ><input\r\n #endTime=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"endTime\"\r\n name=\"endTime\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.endTime\"\r\n ngbDatepicker\r\n (click)=\"endTime.toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"userName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::UserName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"userName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"url\">{{\r\n 'AbpAuditLogging::UrlFilter' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"url\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.url\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option *ngFor=\"let method of httpMethods\" [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option *ngFor=\"let h of httpStatusCodes\" [ngValue]=\"h.code\">\r\n {{ h.code }} - {{ h.message }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"applicationName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ApplicationName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"applicationName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.applicationName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ClientIpAddress' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"clientIpAddress\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.clientIpAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::CorrelationId' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"correlationId\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.correlationId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary mt-0\" (click)=\"list.get()\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'entity-changes'\">\r\n <div\r\n class=\"tab-pane\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n [@fadeIn]=\"selectedTab\"\r\n >\r\n <abp-entity-changes *ngIf=\"selectedTab === 'entity-changes'\"></abp-entity-changes>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n<abp-modal *ngIf=\"selected\" [(visible)]=\"modalVisible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpAuditLogging::Detail' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::Overall' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpStatusCode' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpCodeClass(selected.httpStatusCode)\">{{\r\n selected.httpStatusCode\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpMethod' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpMethodClass(selected.httpMethod)\">{{\r\n selected.httpMethod\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Url' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.url }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientIpAddress' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientIpAddress }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Exceptions' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.userName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionTime }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})</a\r\n >\r\n <ng-template ngbNavContent>\r\n <div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngFor=\"let action of selected.actions; let i = index\"\r\n >\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"collapseActionStates[i] = !collapseActionStates[i]\"\r\n >\r\n {{ action.serviceName }}\r\n </button>\r\n </div>\r\n <div [@collapse]=\"collapseActionStates[i] ? 'expanded' : 'collapsed'\">\r\n <div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ action.executionDuration ? action.executionDuration + ' ms' : '' }}\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i3.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: EntityChangesComponent, selector: "abp-entity-changes" }, { type: i8.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i7.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }], directives: [{ type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i7.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i7.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i7.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe, "json": i9.JsonPipe }, animations: [collapse, trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])] });
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLogsComponent, decorators: [{
231
+ type: Component,
232
+ args: [{ selector: 'abp-audit-logs', animations: [collapse, trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])], providers: [
233
+ ListService,
234
+ {
235
+ provide: EXTENSIONS_IDENTIFIER,
236
+ useValue: "AuditLogging.AuditLogsComponent" /* AuditLogs */,
237
+ },
238
+ { provide: NgbDateAdapter, useClass: DateAdapter },
239
+ ], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n (click)=\"selectedTab = 'audit-logs'\"\r\n >{{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}</a\r\n >\r\n </li>\r\n <li class=\"nav-item\">\r\n <a\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n (click)=\"selectedTab = 'entity-changes'\"\r\n >{{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}</a\r\n >\r\n </li>\r\n </ul>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'audit-logs'\">\r\n <div class=\"tab-pane\" [class.active]=\"selectedTab === 'audit-logs'\" [@fadeIn]=\"selectedTab\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"startTime\" class=\"form-label\">{{\r\n 'AbpAuditLogging::StartTime' | abpLocalization\r\n }}</label\r\n ><input\r\n #startTime=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"startTime\"\r\n name=\"startTime\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.startTime\"\r\n ngbDatepicker\r\n (click)=\"startTime.toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"endTime\" class=\"form-label\">{{\r\n 'AbpAuditLogging::EndTime' | abpLocalization\r\n }}</label\r\n ><input\r\n #endTime=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n id=\"endTime\"\r\n name=\"endTime\"\r\n readonly\r\n [(ngModel)]=\"pageQuery.endTime\"\r\n ngbDatepicker\r\n (click)=\"endTime.toggle()\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"userName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::UserName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"userName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"url\">{{\r\n 'AbpAuditLogging::UrlFilter' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"url\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.url\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option *ngFor=\"let method of httpMethods\" [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label\r\n ><select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option *ngFor=\"let h of httpStatusCodes\" [ngValue]=\"h.code\">\r\n {{ h.code }} - {{ h.message }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"applicationName\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ApplicationName' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"applicationName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.applicationName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::ClientIpAddress' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"clientIpAddress\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.clientIpAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"correlationId\" class=\"form-label\">{{\r\n 'AbpAuditLogging::CorrelationId' | abpLocalization\r\n }}</label\r\n ><input\r\n id=\"correlationId\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.correlationId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"\"></option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-2 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary mt-0\" (click)=\"list.get()\">\r\n <span>\r\n {{ 'AbpAuditLogging::Refresh' | abpLocalization }}\r\n </span>\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"tab-content\" [class.p-0]=\"selectedTab !== 'entity-changes'\">\r\n <div\r\n class=\"tab-pane\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n [@fadeIn]=\"selectedTab\"\r\n >\r\n <abp-entity-changes *ngIf=\"selectedTab === 'entity-changes'\"></abp-entity-changes>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n<abp-modal *ngIf=\"selected\" [(visible)]=\"modalVisible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpAuditLogging::Detail' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::Overall' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpStatusCode' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpCodeClass(selected.httpStatusCode)\">{{\r\n selected.httpStatusCode\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::HttpMethod' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <span class=\"badge\" [ngClass]=\"httpMethodClass(selected.httpMethod)\">{{\r\n selected.httpMethod\r\n }}</span>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Url' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.url }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientIpAddress' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientIpAddress }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ClientName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.clientName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Exceptions' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::UserName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.userName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionTime }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})</a\r\n >\r\n <ng-template ngbNavContent>\r\n <div\r\n class=\"mb-3 border border-dark rounded\"\r\n *ngFor=\"let action of selected.actions; let i = index\"\r\n >\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"collapseActionStates[i] = !collapseActionStates[i]\"\r\n >\r\n {{ action.serviceName }}\r\n </button>\r\n </div>\r\n <div [@collapse]=\"collapseActionStates[i] ? 'expanded' : 'collapsed'\">\r\n <div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ action.executionDuration ? action.executionDuration + ' ms' : '' }}\r\n </div>\r\n </div>\r\n <hr />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
240
+ }], ctorParameters: function () { return [{ type: i1.ListService }, { type: i2$1.AuditLogsService }]; } });
241
+
242
+ class AuditLoggingGuard {
243
+ constructor(auditLoggingFeatures) {
244
+ this.auditLoggingFeatures = auditLoggingFeatures;
245
+ }
246
+ canActivate() {
247
+ return this.auditLoggingFeatures.pipe(map(features => features.enable));
248
+ }
249
+ }
250
+ AuditLoggingGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingGuard, deps: [{ token: AUDIT_LOGGING_FEATURES }], target: i0.ɵɵFactoryTarget.Injectable });
251
+ AuditLoggingGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingGuard });
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingGuard, decorators: [{
253
+ type: Injectable
254
+ }], ctorParameters: function () { return [{ type: i1$1.Observable, decorators: [{
255
+ type: Inject,
256
+ args: [AUDIT_LOGGING_FEATURES]
257
+ }] }]; } });
258
+
259
+ const DEFAULT_AUDIT_LOGS_ENTITY_ACTIONS = EntityAction.createMany([
260
+ {
261
+ text: 'AbpAuditLogging::Detail',
262
+ action: data => {
263
+ const component = data.getInjected(AuditLogsComponent);
264
+ component.openModal(data.record.id);
265
+ },
266
+ icon: 'fa fa-search',
267
+ },
268
+ ]);
269
+
270
+ const DEFAULT_AUDIT_LOGS_ENTITY_PROPS = EntityProp.createMany([
271
+ {
272
+ type: "string" /* String */,
273
+ name: 'url',
274
+ displayName: 'AbpAuditLogging::HttpRequest',
275
+ sortable: true,
276
+ columnWidth: 600,
277
+ valueResolver: data => {
278
+ const component = data.getInjected(AuditLogsComponent);
279
+ const { httpMethod, httpStatusCode, url } = data.record;
280
+ const methodClass = component.httpMethodClass(httpMethod);
281
+ const statusClass = component.httpCodeClass(httpStatusCode);
282
+ return of(`<span class="badge ${statusClass} me-1">${httpStatusCode}</span>` +
283
+ `<span class="badge ${methodClass} me-1">${httpMethod}</span>` +
284
+ (url || ''));
285
+ },
286
+ },
287
+ {
288
+ type: "string" /* String */,
289
+ name: 'userName',
290
+ displayName: 'AbpAuditLogging::User',
291
+ sortable: true,
292
+ columnWidth: 150,
293
+ },
294
+ {
295
+ type: "string" /* String */,
296
+ name: 'clientIpAddress',
297
+ displayName: 'AbpAuditLogging::IpAddress',
298
+ sortable: true,
299
+ columnWidth: 150,
300
+ },
301
+ {
302
+ type: "dateTime" /* DateTime */,
303
+ name: 'executionTime',
304
+ displayName: 'AbpAuditLogging::Time',
305
+ sortable: true,
306
+ columnWidth: 150,
307
+ },
308
+ {
309
+ type: "number" /* Number */,
310
+ name: 'executionDuration',
311
+ displayName: 'AbpAuditLogging::Duration',
312
+ sortable: true,
313
+ columnWidth: 150,
314
+ },
315
+ {
316
+ type: "string" /* String */,
317
+ name: 'applicationName',
318
+ displayName: 'AbpAuditLogging::ApplicationName',
319
+ sortable: true,
320
+ columnWidth: 200,
321
+ },
322
+ ]);
323
+
324
+ const DEFAULT_AUDIT_LOGS_TOOLBAR_ACTIONS = ToolbarAction.createMany([]);
325
+
326
+ const SHOW_ENTITY_DETAILS = new InjectionToken('SHOW_ENTITY_DETAILS');
327
+
328
+ const DEFAULT_ENTITY_CHANGES_ENTITY_ACTIONS = EntityAction.createMany([
329
+ {
330
+ text: 'AbpAuditLogging::ChangeDetails',
331
+ action: data => {
332
+ const showDetails = data.getInjected(SHOW_ENTITY_DETAILS);
333
+ showDetails(data.record.id);
334
+ },
335
+ icon: 'fa fa-search',
336
+ },
337
+ {
338
+ text: 'AbpAuditLogging::FullChangeHistory',
339
+ action: data => {
340
+ const showHistory = data.getInjected(SHOW_ENTITY_HISTORY);
341
+ showHistory(data.record.entityId, data.record.entityTypeFullName);
342
+ },
343
+ icon: 'fa fa-history',
344
+ },
345
+ ]);
346
+
347
+ const DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS = {
348
+ ["AuditLogging.AuditLogsComponent" /* AuditLogs */]: DEFAULT_AUDIT_LOGS_ENTITY_ACTIONS,
349
+ ["AuditLogging.EntityChangesComponent" /* EntityChanges */]: DEFAULT_ENTITY_CHANGES_ENTITY_ACTIONS,
350
+ };
351
+ const DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS = {
352
+ ["AuditLogging.AuditLogsComponent" /* AuditLogs */]: DEFAULT_AUDIT_LOGS_TOOLBAR_ACTIONS,
353
+ };
354
+ const DEFAULT_AUDIT_LOGGING_ENTITY_PROPS = {
355
+ ["AuditLogging.AuditLogsComponent" /* AuditLogs */]: DEFAULT_AUDIT_LOGS_ENTITY_PROPS,
356
+ };
357
+ const AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS');
358
+ const AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS');
359
+ const AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS = new InjectionToken('AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS');
360
+
361
+ class AuditLoggingExtensionsGuard {
362
+ constructor(injector) {
363
+ this.injector = injector;
364
+ }
365
+ canActivate() {
366
+ const extensions = this.injector.get(ExtensionsService);
367
+ const actionContributors = this.injector.get(AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, null) || {};
368
+ const toolbarContributors = this.injector.get(AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, null) || {};
369
+ const propContributors = this.injector.get(AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, null) || {};
370
+ const configState = this.injector.get(ConfigStateService);
371
+ return getObjectExtensionEntitiesFromStore(configState, 'AuditLogging').pipe(map(entities => ({
372
+ ["AuditLogging.AuditLogsComponent" /* AuditLogs */]: entities.AuditLog,
373
+ })), mapEntitiesToContributors(configState, 'AuditLogging'), tap(objectExtensionContributors => {
374
+ mergeWithDefaultActions(extensions.entityActions, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, actionContributors);
375
+ mergeWithDefaultActions(extensions.toolbarActions, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, toolbarContributors);
376
+ mergeWithDefaultProps(extensions.entityProps, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, objectExtensionContributors.prop, propContributors);
377
+ }), mapTo(true));
378
+ }
379
+ }
380
+ AuditLoggingExtensionsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
381
+ AuditLoggingExtensionsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingExtensionsGuard });
382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingExtensionsGuard, decorators: [{
383
+ type: Injectable
384
+ }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
385
+
386
+ const routes = [
387
+ {
388
+ path: '',
389
+ component: RouterOutletComponent,
390
+ canActivate: [AuthGuard, PermissionGuard, AuditLoggingExtensionsGuard, AuditLoggingGuard],
391
+ children: [
392
+ {
393
+ path: '',
394
+ component: ReplaceableRouteContainerComponent,
395
+ data: {
396
+ requiredPolicy: 'AuditLogging.AuditLogs',
397
+ replaceableComponent: {
398
+ key: "AuditLogging.AuditLogsComponent" /* AuditLogs */,
399
+ defaultComponent: AuditLogsComponent,
400
+ },
401
+ },
402
+ },
403
+ ],
404
+ },
405
+ ];
406
+ class AuditLoggingRoutingModule {
407
+ }
408
+ AuditLoggingRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
409
+ AuditLoggingRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
410
+ AuditLoggingRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingRoutingModule, decorators: [{
412
+ type: NgModule,
413
+ args: [{
414
+ imports: [RouterModule.forChild(routes)],
415
+ exports: [RouterModule],
416
+ }]
417
+ }] });
418
+
419
+ class AverageExecutionDurationWidgetComponent {
420
+ constructor(localizationService, permissionService, service) {
421
+ this.localizationService = localizationService;
422
+ this.permissionService = permissionService;
423
+ this.service = service;
424
+ this.data = {};
425
+ this.initialized = new BehaviorSubject(this);
426
+ this.width = 273;
427
+ this.height = 136;
428
+ this.chartData = {};
429
+ this.draw = (filter) => {
430
+ if (!this.permissionService.getGrantedPolicy('AuditLogging.AuditLogs')) {
431
+ return;
432
+ }
433
+ this.service
434
+ .getAverageExecutionDurationPerDay({ startDate: filter.startDate, endDate: filter.endDate })
435
+ .subscribe(res => {
436
+ this.data = res.data;
437
+ this.setChartData();
438
+ });
439
+ };
440
+ }
441
+ setChartData() {
442
+ if (!this.data || JSON.stringify(this.data) === '{}') {
443
+ this.chartData = {};
444
+ return;
445
+ }
446
+ const dataKeys = Object.keys(this.data);
447
+ setTimeout(() => {
448
+ this.chartData = {
449
+ labels: dataKeys,
450
+ datasets: [
451
+ {
452
+ label: this.localizationService.instant('AbpAuditLogging::AverageExecutionDurationInMilliseconds'),
453
+ backgroundColor: '#fa6e6e',
454
+ data: dataKeys.map(key => this.data[key]),
455
+ },
456
+ ],
457
+ };
458
+ this.chart.refresh();
459
+ }, 0);
460
+ }
461
+ }
462
+ AverageExecutionDurationWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AverageExecutionDurationWidgetComponent, deps: [{ token: i1.LocalizationService }, { token: i1.PermissionService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component });
463
+ AverageExecutionDurationWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AverageExecutionDurationWidgetComponent, selector: "abp-average-execution-duration-widget", inputs: { width: "width", height: "height" }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }], ngImport: i0, template: `
464
+ <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
465
+ <div class="card">
466
+ <div class="card-header">
467
+ <h5 class="card-title">
468
+ {{ 'AbpAuditLogging::AverageExecutionDurationInLogsPerDay' | abpLocalization }}
469
+ </h5>
470
+ </div>
471
+ <div class="card-body">
472
+ <div class="row">
473
+ <abp-chart
474
+ #chart
475
+ class="w-100"
476
+ type="bar"
477
+ [data]="chartData"
478
+ [width]="width"
479
+ [height]="height"
480
+ ></abp-chart>
481
+ </div>
482
+ </div>
483
+ </div>
484
+ </div>
485
+ `, isInline: true, components: [{ type: i3$1.ChartComponent, selector: "abp-chart", inputs: ["type", "data", "options", "plugins", "width", "height", "responsive"], outputs: ["dataSelect", "initialized"], exportAs: ["abpChart"] }], directives: [{ type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AverageExecutionDurationWidgetComponent, decorators: [{
487
+ type: Component,
488
+ args: [{
489
+ selector: 'abp-average-execution-duration-widget',
490
+ template: `
491
+ <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
492
+ <div class="card">
493
+ <div class="card-header">
494
+ <h5 class="card-title">
495
+ {{ 'AbpAuditLogging::AverageExecutionDurationInLogsPerDay' | abpLocalization }}
496
+ </h5>
497
+ </div>
498
+ <div class="card-body">
499
+ <div class="row">
500
+ <abp-chart
501
+ #chart
502
+ class="w-100"
503
+ type="bar"
504
+ [data]="chartData"
505
+ [width]="width"
506
+ [height]="height"
507
+ ></abp-chart>
508
+ </div>
509
+ </div>
510
+ </div>
511
+ </div>
512
+ `,
513
+ }]
514
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i1.PermissionService }, { type: i2$1.AuditLogsService }]; }, propDecorators: { initialized: [{
515
+ type: Output
516
+ }], width: [{
517
+ type: Input
518
+ }], height: [{
519
+ type: Input
520
+ }], chart: [{
521
+ type: ViewChild,
522
+ args: [ChartComponent]
523
+ }] } });
524
+
525
+ class ErrorRateWidgetComponent {
526
+ constructor(permissionService, service) {
527
+ this.permissionService = permissionService;
528
+ this.service = service;
529
+ this.data = {};
530
+ this.initialized = new BehaviorSubject(this);
531
+ this.width = 273;
532
+ this.height = 136;
533
+ this.chartData = {};
534
+ this.draw = (filter) => {
535
+ if (!this.permissionService.getGrantedPolicy('AuditLogging.AuditLogs')) {
536
+ return;
537
+ }
538
+ this.service
539
+ .getErrorRate({
540
+ startDate: filter.startDate,
541
+ endDate: filter.endDate,
542
+ })
543
+ .subscribe(res => {
544
+ this.data = res.data;
545
+ this.setChartData();
546
+ });
547
+ };
548
+ }
549
+ setChartData() {
550
+ if (!this.data || JSON.stringify(this.data) === '{}') {
551
+ this.chartData = {};
552
+ return;
553
+ }
554
+ const dataKeys = Object.keys(this.data);
555
+ setTimeout(() => {
556
+ this.chartData = {
557
+ labels: dataKeys,
558
+ datasets: [
559
+ {
560
+ data: dataKeys.map(key => this.data[key]),
561
+ backgroundColor: ['#d76e6e', '#63ac44'],
562
+ },
563
+ ],
564
+ };
565
+ this.chart.refresh();
566
+ }, 0);
567
+ }
568
+ }
569
+ ErrorRateWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorRateWidgetComponent, deps: [{ token: i1.PermissionService }, { token: i2$1.AuditLogsService }], target: i0.ɵɵFactoryTarget.Component });
570
+ ErrorRateWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: ErrorRateWidgetComponent, selector: "abp-error-rate-widget", inputs: { width: "width", height: "height" }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true }], ngImport: i0, template: `
571
+ <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
572
+ <div class="card">
573
+ <div class="card-header">
574
+ <h5 class="card-title">
575
+ {{ 'AbpAuditLogging::ErrorRateInLogs' | abpLocalization }}
576
+ </h5>
577
+ </div>
578
+ <div class="card-body">
579
+ <div class="row">
580
+ <abp-chart
581
+ #chart
582
+ class="w-100"
583
+ type="pie"
584
+ [data]="chartData"
585
+ [width]="width"
586
+ [height]="height"
587
+ ></abp-chart>
588
+ </div>
589
+ </div>
590
+ </div>
591
+ </div>
592
+ `, isInline: true, components: [{ type: i3$1.ChartComponent, selector: "abp-chart", inputs: ["type", "data", "options", "plugins", "width", "height", "responsive"], outputs: ["dataSelect", "initialized"], exportAs: ["abpChart"] }], directives: [{ type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ErrorRateWidgetComponent, decorators: [{
594
+ type: Component,
595
+ args: [{
596
+ selector: 'abp-error-rate-widget',
597
+ template: `
598
+ <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
599
+ <div class="card">
600
+ <div class="card-header">
601
+ <h5 class="card-title">
602
+ {{ 'AbpAuditLogging::ErrorRateInLogs' | abpLocalization }}
603
+ </h5>
604
+ </div>
605
+ <div class="card-body">
606
+ <div class="row">
607
+ <abp-chart
608
+ #chart
609
+ class="w-100"
610
+ type="pie"
611
+ [data]="chartData"
612
+ [width]="width"
613
+ [height]="height"
614
+ ></abp-chart>
615
+ </div>
616
+ </div>
617
+ </div>
618
+ </div>
619
+ `,
620
+ }]
621
+ }], ctorParameters: function () { return [{ type: i1.PermissionService }, { type: i2$1.AuditLogsService }]; }, propDecorators: { initialized: [{
622
+ type: Output
623
+ }], width: [{
624
+ type: Input
625
+ }], height: [{
626
+ type: Input
627
+ }], chart: [{
628
+ type: ViewChild,
629
+ args: [ChartComponent]
630
+ }] } });
631
+
632
+ class AuditLoggingModule {
633
+ static forChild(options = {}) {
634
+ return {
635
+ ngModule: AuditLoggingModule,
636
+ providers: [
637
+ {
638
+ provide: AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS,
639
+ useValue: options.entityActionContributors,
640
+ },
641
+ {
642
+ provide: AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS,
643
+ useValue: options.toolbarActionContributors,
644
+ },
645
+ {
646
+ provide: AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS,
647
+ useValue: options.entityPropContributors,
648
+ },
649
+ AuditLoggingGuard,
650
+ AuditLoggingExtensionsGuard,
651
+ ],
652
+ };
653
+ }
654
+ static forLazy(options = {}) {
655
+ return new LazyModuleFactory(AuditLoggingModule.forChild(options));
656
+ }
657
+ }
658
+ AuditLoggingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
659
+ AuditLoggingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingModule, declarations: [AuditLogsComponent,
660
+ EntityChangesComponent,
661
+ ErrorRateWidgetComponent,
662
+ AverageExecutionDurationWidgetComponent], imports: [AuditLoggingRoutingModule,
663
+ CoreModule,
664
+ CommercialUiModule,
665
+ ThemeSharedModule,
666
+ NgbNavModule,
667
+ NgbDatepickerModule,
668
+ PageModule,
669
+ ChartModule], exports: [AuditLogsComponent,
670
+ EntityChangesComponent,
671
+ ErrorRateWidgetComponent,
672
+ AverageExecutionDurationWidgetComponent] });
673
+ AuditLoggingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingModule, imports: [[
674
+ AuditLoggingRoutingModule,
675
+ CoreModule,
676
+ CommercialUiModule,
677
+ ThemeSharedModule,
678
+ NgbNavModule,
679
+ NgbDatepickerModule,
680
+ PageModule,
681
+ ChartModule,
682
+ ]] });
683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AuditLoggingModule, decorators: [{
684
+ type: NgModule,
685
+ args: [{
686
+ declarations: [
687
+ AuditLogsComponent,
688
+ EntityChangesComponent,
689
+ ErrorRateWidgetComponent,
690
+ AverageExecutionDurationWidgetComponent,
691
+ ],
692
+ exports: [
693
+ AuditLogsComponent,
694
+ EntityChangesComponent,
695
+ ErrorRateWidgetComponent,
696
+ AverageExecutionDurationWidgetComponent,
697
+ ],
698
+ imports: [
699
+ AuditLoggingRoutingModule,
700
+ CoreModule,
701
+ CommercialUiModule,
702
+ ThemeSharedModule,
703
+ NgbNavModule,
704
+ NgbDatepickerModule,
705
+ PageModule,
706
+ ChartModule,
707
+ ],
708
+ }]
709
+ }] });
710
+
711
+ var eEntityChangeType;
712
+ (function (eEntityChangeType) {
713
+ eEntityChangeType[eEntityChangeType["Created"] = 0] = "Created";
714
+ eEntityChangeType[eEntityChangeType["Updated"] = 1] = "Updated";
715
+ eEntityChangeType[eEntityChangeType["Deleted"] = 2] = "Deleted";
716
+ })(eEntityChangeType || (eEntityChangeType = {}));
717
+
718
+ /**
719
+ * Generated bundle index. Do not edit.
720
+ */
721
+
722
+ export { AUDIT_LOGGING_ENTITY_ACTION_CONTRIBUTORS, AUDIT_LOGGING_ENTITY_PROP_CONTRIBUTORS, AUDIT_LOGGING_TOOLBAR_ACTION_CONTRIBUTORS, AuditLoggingExtensionsGuard, AuditLoggingGuard, AuditLoggingModule, AuditLogsComponent, AverageExecutionDurationWidgetComponent, DEFAULT_AUDIT_LOGGING_ENTITY_ACTIONS, DEFAULT_AUDIT_LOGGING_ENTITY_PROPS, DEFAULT_AUDIT_LOGGING_TOOLBAR_ACTIONS, EntityChangesComponent, ErrorRateWidgetComponent, HTTP_METHODS, HTTP_STATUS_CODES, SHOW_ENTITY_DETAILS, eEntityChangeType };
723
+ //# sourceMappingURL=volo-abp.ng.audit-logging.mjs.map