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