@volo/abp.ng.audit-logging 10.1.1 → 10.2.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.
@@ -2,18 +2,18 @@ import * as i1$2 from '@abp/ng.components/chart.js';
2
2
  import { ChartComponent, ChartModule } from '@abp/ng.components/chart.js';
3
3
  import { PageComponent, PageModule } from '@abp/ng.components/page';
4
4
  import { ListService, mapEnumToOptions, LocalizationPipe, ShortDateTimePipe, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LocalizationService, PermissionService, PermissionDirective, LazyModuleFactory, CoreModule } from '@abp/ng.core';
5
- import { EllipsisDirective, NgxDatatableDefaultDirective, NgxDatatableListDirective, DateAdapter, fadeIn, ModalCloseDirective, ModalComponent, ThemeSharedModule } from '@abp/ng.theme.shared';
5
+ import { EllipsisDirective, NgxDatatableDefaultDirective, NgxDatatableListDirective, DateAdapter, ModalCloseDirective, ModalComponent, ThemeSharedModule } from '@abp/ng.theme.shared';
6
6
  import * as i0 from '@angular/core';
7
- import { inject, ChangeDetectorRef, Injector, ChangeDetectionStrategy, Component, Injectable, InjectionToken, NgModule, ViewChild, Input, Output } from '@angular/core';
7
+ import { inject, ChangeDetectorRef, Injector, ChangeDetectionStrategy, Component, Injectable, InjectionToken, NgModule, input, viewChild } from '@angular/core';
8
8
  import { NgbDateAdapter, NgbNav, NgbNavItem, NgbNavItemRole, NgbNavLink, NgbNavLinkBase, NgbNavContent, NgbNavOutlet, NgbNavModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
9
9
  import { DateRangePickerComponent, DatetimePickerComponent, SHOW_ENTITY_HISTORY, CommercialUiModule } from '@volo/abp.commercial.ng.ui';
10
10
  import { handleExcelExport, EntityChangeDetailsComponent, AUDIT_LOGGING_FEATURES } from '@volo/abp.ng.audit-logging/common';
11
11
  import * as i1$1 from '@angular/router';
12
12
  import { RouterModule } from '@angular/router';
13
- import { NgClass, JsonPipe } from '@angular/common';
13
+ import { JsonPipe } from '@angular/common';
14
14
  import * as i1 from '@angular/forms';
15
15
  import { UntypedFormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
16
- import { trigger, transition, useAnimation } from '@angular/animations';
16
+ import { Tabs, TabList, Tab, TabPanel } from '@angular/aria/tabs';
17
17
  import { take, map, tap as tap$1 } from 'rxjs/operators';
18
18
  import { GridActionsComponent, EXTENSIONS_IDENTIFIER, ExtensibleTableComponent, EntityAction, EntityProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.components/extensible';
19
19
  import { AuditLogsService, EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
@@ -22,6 +22,7 @@ import { NgxValidateCoreModule } from '@ngx-validate/core';
22
22
  import * as i3 from '@swimlane/ngx-datatable';
23
23
  import { NgxDatatableModule } from '@swimlane/ngx-datatable';
24
24
  import { of, map as map$1, tap, BehaviorSubject } from 'rxjs';
25
+ import { outputFromObservable } from '@angular/core/rxjs-interop';
25
26
 
26
27
  const HTTP_METHODS = ['GET', 'POST', 'DELETE', 'PUT', 'HEAD', 'CONNECT', 'OPTIONS', 'TRACE'];
27
28
  const HTTP_STATUS_CODES = [
@@ -259,11 +260,11 @@ class AuditLogsComponent {
259
260
  useValue: "AuditLogging.AuditLogsComponent" /* eAuditLoggingComponents.AuditLogs */,
260
261
  },
261
262
  { provide: NgbDateAdapter, useClass: DateAdapter },
262
- ], 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\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\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\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.startTime\"\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-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.endTime\"\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-3\">\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-3\">\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-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (method of httpMethods; track $index) {\r\n <option [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n }\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 for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (h of httpStatusCodes; track $index) {\r\n <option [ngValue]=\"h.code\">{{ h.code }} - {{ h.message }}</option>\r\n }\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 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-3\">\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-3\">\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-3\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\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 class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"text-nowrap btn btn-outline-success\"\r\n (click)=\"exportToExcel()\"\r\n >\r\n <i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i>\r\n <span>\r\n {{ 'AbpAuditLogging::ExportToExcel' | 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 mb-0\">\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 />\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 @if (selectedTab === 'entity-changes') {\r\n <abp-entity-changes />\r\n }\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n@if (selected) {\r\n <abp-modal [(visible)]=\"modalVisible\" [options]=\"{ size: 'xl' }\">\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 @if (selected.exceptions) {\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n }\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 @if (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 }\r\n @if (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 @if (selected.impersonatorUserName) {\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n } @else {\r\n {{ selected.impersonatorUserId }}\r\n }\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n }\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::Actions' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (action of selected.actions; track action.id) {\r\n <tr>\r\n <td>\r\n <span\r\n class=\"text-truncate d-block\"\r\n [title]=\"action.serviceName + ' - ' + action.methodName\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n </span>\r\n </td>\r\n <td>{{ action.executionDuration }}</td>\r\n <td>\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </ng-template>\r\n </li>\r\n @if (selected.entityChanges.length) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Changes' | abpLocalization }} ({{\r\n selected.entityChanges.length\r\n }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (change of selected.entityChanges; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"getEntityChangeDetails(change)\" />\r\n }\r\n </ng-template>\r\n </li>\r\n }\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}\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.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: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "directive", type: NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "component", type: NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: DatetimePickerComponent, selector: "abp-datetime-picker" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight"], outputs: ["tableActivate", "selectionChange", "loadMore"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: EntityChangesComponent, selector: "abp-entity-changes" }, { kind: "component", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }], animations: [trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])] }); }
263
+ ], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div ngTabs>\r\n <ul ngTabList class=\"nav nav-tabs\" [(selectedTab)]=\"selectedTab\">\r\n <li class=\"nav-item\">\r\n <button\r\n ngTab\r\n value=\"audit-logs\"\r\n class=\"nav-link\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n >\r\n {{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}\r\n </button>\r\n </li>\r\n <li class=\"nav-item\">\r\n <button\r\n ngTab\r\n value=\"entity-changes\"\r\n class=\"nav-link\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n >\r\n {{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}\r\n </button>\r\n </li>\r\n </ul>\r\n <div\r\n ngTabPanel\r\n value=\"audit-logs\"\r\n class=\"tab-content\"\r\n [class.p-0]=\"selectedTab !== 'audit-logs'\"\r\n >\r\n <div class=\"tab-pane fade-in\" [class.active]=\"selectedTab === 'audit-logs'\">\r\n <div class=\"card mb-0\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.startTime\"\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-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.endTime\"\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-3\">\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-3\">\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-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (method of httpMethods; track $index) {\r\n <option [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n }\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 for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (h of httpStatusCodes; track $index) {\r\n <option [ngValue]=\"h.code\">{{ h.code }} - {{ h.message }}</option>\r\n }\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 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-3\">\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-3\">\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-3\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\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 class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"text-nowrap btn btn-outline-success\"\r\n (click)=\"exportToExcel()\"\r\n >\r\n <i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i>\r\n <span>\r\n {{ 'AbpAuditLogging::ExportToExcel' | 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 mb-0\">\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 />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n ngTabPanel\r\n value=\"entity-changes\"\r\n class=\"tab-content\"\r\n [class.p-0]=\"selectedTab !== 'entity-changes'\"\r\n >\r\n <div class=\"tab-pane fade-in\" [class.active]=\"selectedTab === 'entity-changes'\">\r\n @if (selectedTab === 'entity-changes') {\r\n <abp-entity-changes />\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n@if (selected) {\r\n <abp-modal [(visible)]=\"modalVisible\" [options]=\"{ size: 'xl' }\">\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\" [class]=\"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\" [class]=\"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 @if (selected.exceptions) {\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n }\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 @if (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 }\r\n @if (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 @if (selected.impersonatorUserName) {\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n } @else {\r\n {{ selected.impersonatorUserId }}\r\n }\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n }\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::Actions' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (action of selected.actions; track action.id) {\r\n <tr>\r\n <td>\r\n <span\r\n class=\"text-truncate d-block\"\r\n [title]=\"action.serviceName + ' - ' + action.methodName\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n </span>\r\n </td>\r\n <td>{{ action.executionDuration }}</td>\r\n <td>\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </ng-template>\r\n </li>\r\n @if (selected.entityChanges.length) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Changes' | abpLocalization }} ({{\r\n selected.entityChanges.length\r\n }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (change of selected.entityChanges; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"getEntityChangeDetails(change)\" />\r\n }\r\n </ng-template>\r\n </li>\r\n }\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}\r\n", styles: [".fade-in{animation:fadeIn .35s ease both}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.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: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "directive", type: NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "component", type: NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: DatetimePickerComponent, selector: "abp-datetime-picker" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: EntityChangesComponent, selector: "abp-entity-changes" }, { kind: "component", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: Tabs, selector: "[ngTabs]", exportAs: ["ngTabs"] }, { kind: "directive", type: TabList, selector: "[ngTabList]", inputs: ["orientation", "wrap", "softDisabled", "focusMode", "selectionMode", "selectedTab", "disabled"], outputs: ["selectedTabChange"], exportAs: ["ngTabList"] }, { kind: "directive", type: Tab, selector: "[ngTab]", inputs: ["id", "disabled", "value"], exportAs: ["ngTab"] }, { kind: "directive", type: TabPanel, selector: "[ngTabPanel]", inputs: ["id", "value"], exportAs: ["ngTabPanel"] }, { kind: "pipe", type: JsonPipe, name: "json" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }] }); }
263
264
  }
264
265
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AuditLogsComponent, decorators: [{
265
266
  type: Component,
266
- args: [{ selector: 'abp-audit-logs', animations: [trigger('fadeIn', [transition('* <=> *', useAnimation(fadeIn))])], providers: [
267
+ args: [{ selector: 'abp-audit-logs', providers: [
267
268
  ListService,
268
269
  {
269
270
  provide: EXTENSIONS_IDENTIFIER,
@@ -279,7 +280,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
279
280
  NgbNavLinkBase,
280
281
  NgbNavContent,
281
282
  NgbNavOutlet,
282
- NgClass,
283
283
  ModalCloseDirective,
284
284
  JsonPipe,
285
285
  LocalizationPipe,
@@ -290,7 +290,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
290
290
  EntityChangeDetailsComponent,
291
291
  PageComponent,
292
292
  ModalComponent,
293
- ], 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\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\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\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.startTime\"\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-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.endTime\"\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-3\">\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-3\">\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-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (method of httpMethods; track $index) {\r\n <option [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n }\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 for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (h of httpStatusCodes; track $index) {\r\n <option [ngValue]=\"h.code\">{{ h.code }} - {{ h.message }}</option>\r\n }\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 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-3\">\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-3\">\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-3\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\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 class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"text-nowrap btn btn-outline-success\"\r\n (click)=\"exportToExcel()\"\r\n >\r\n <i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i>\r\n <span>\r\n {{ 'AbpAuditLogging::ExportToExcel' | 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 mb-0\">\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 />\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 @if (selectedTab === 'entity-changes') {\r\n <abp-entity-changes />\r\n }\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n@if (selected) {\r\n <abp-modal [(visible)]=\"modalVisible\" [options]=\"{ size: 'xl' }\">\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 @if (selected.exceptions) {\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n }\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 @if (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 }\r\n @if (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 @if (selected.impersonatorUserName) {\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n } @else {\r\n {{ selected.impersonatorUserId }}\r\n }\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n }\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::Actions' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (action of selected.actions; track action.id) {\r\n <tr>\r\n <td>\r\n <span\r\n class=\"text-truncate d-block\"\r\n [title]=\"action.serviceName + ' - ' + action.methodName\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n </span>\r\n </td>\r\n <td>{{ action.executionDuration }}</td>\r\n <td>\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </ng-template>\r\n </li>\r\n @if (selected.entityChanges.length) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Changes' | abpLocalization }} ({{\r\n selected.entityChanges.length\r\n }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (change of selected.entityChanges; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"getEntityChangeDetails(change)\" />\r\n }\r\n </ng-template>\r\n </li>\r\n }\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}\r\n" }]
293
+ Tabs,
294
+ TabList,
295
+ Tab,
296
+ TabPanel,
297
+ ], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpAuditLogging::AuditLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div ngTabs>\r\n <ul ngTabList class=\"nav nav-tabs\" [(selectedTab)]=\"selectedTab\">\r\n <li class=\"nav-item\">\r\n <button\r\n ngTab\r\n value=\"audit-logs\"\r\n class=\"nav-link\"\r\n [class.active]=\"selectedTab === 'audit-logs'\"\r\n >\r\n {{ 'AbpAuditLogging::AuditLogs' | abpLocalization }}\r\n </button>\r\n </li>\r\n <li class=\"nav-item\">\r\n <button\r\n ngTab\r\n value=\"entity-changes\"\r\n class=\"nav-link\"\r\n [class.active]=\"selectedTab === 'entity-changes'\"\r\n >\r\n {{ 'AbpAuditLogging::EntityChanges' | abpLocalization }}\r\n </button>\r\n </li>\r\n </ul>\r\n <div\r\n ngTabPanel\r\n value=\"audit-logs\"\r\n class=\"tab-content\"\r\n [class.p-0]=\"selectedTab !== 'audit-logs'\"\r\n >\r\n <div class=\"tab-pane fade-in\" [class.active]=\"selectedTab === 'audit-logs'\">\r\n <div class=\"card mb-0\">\r\n <div class=\"card-body pb-lg-3\">\r\n <form (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::StartDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.startTime\"\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-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpAuditLogging::EndDate' | abpLocalization\r\n }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"pageQuery.endTime\"\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-3\">\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-3\">\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-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"minDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MinDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"minDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.minExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"maxDuration\" class=\"form-label\">{{\r\n 'AbpAuditLogging::MaxDuration' | abpLocalization\r\n }}</label>\r\n <input\r\n id=\"maxDuration\"\r\n type=\"number\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"pageQuery.maxExecutionDuration\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"httpMethod\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpMethod' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpMethod\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpMethod\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (method of httpMethods; track $index) {\r\n <option [ngValue]=\"method\">\r\n {{ method }}\r\n </option>\r\n }\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 for=\"httpStatusCode\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HttpStatusCode' | abpLocalization\r\n }}</label>\r\n <select\r\n id=\"httpStatusCode\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.httpStatusCode\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n @for (h of httpStatusCodes; track $index) {\r\n <option [ngValue]=\"h.code\">{{ h.code }} - {{ h.message }}</option>\r\n }\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 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-3\">\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-3\">\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-3\">\r\n <div class=\"mb-3 mb-lg-0\">\r\n <label for=\"hasException\" class=\"form-label\">{{\r\n 'AbpAuditLogging::HasException' | abpLocalization\r\n }}</label>\r\n <select\r\n name=\"hasException\"\r\n id=\"hasException\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"pageQuery.hasException\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (change)=\"list.get()\"\r\n >\r\n <option [ngValue]=\"null\">-</option>\r\n <option [ngValue]=\"true\">\r\n {{ 'AbpAuditLogging::Yes' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">\r\n {{ 'AbpAuditLogging::No' | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row justify-content-end\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\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 class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mt-3 mb-lg-0 d-grid\">\r\n <button\r\n type=\"button\"\r\n class=\"text-nowrap btn btn-outline-success\"\r\n (click)=\"exportToExcel()\"\r\n >\r\n <i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i>\r\n <span>\r\n {{ 'AbpAuditLogging::ExportToExcel' | 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 mb-0\">\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 />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n ngTabPanel\r\n value=\"entity-changes\"\r\n class=\"tab-content\"\r\n [class.p-0]=\"selectedTab !== 'entity-changes'\"\r\n >\r\n <div class=\"tab-pane fade-in\" [class.active]=\"selectedTab === 'entity-changes'\">\r\n @if (selectedTab === 'entity-changes') {\r\n <abp-entity-changes />\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n\r\n@if (selected) {\r\n <abp-modal [(visible)]=\"modalVisible\" [options]=\"{ size: 'xl' }\">\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\" [class]=\"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\" [class]=\"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 @if (selected.exceptions) {\r\n <pre lang=\"c-sharp\">\r\n {{ selected.exceptions }}\r\n </pre>\r\n }\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 @if (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 }\r\n @if (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 @if (selected.impersonatorUserName) {\r\n {{ selected.impersonatorUserName }} ({{ selected.impersonatorUserId }})\r\n } @else {\r\n {{ selected.impersonatorUserId }}\r\n }\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n }\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Time' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n {{ selected.executionTime | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.executionDuration }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::BrowserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.browserInfo }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ApplicationName' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.applicationName }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::CorrelationId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.correlationId }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::Comments' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">{{ selected.comments }}</div>\r\n </div>\r\n <hr class=\"m-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col col-lg-3\">\r\n <strong>{{ 'AbpAuditLogging::ExtraProperties' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col col-lg-9\">\r\n <pre lang=\"json\" class=\"p-2\">\r\n {{ selected.extraProperties | json }}\r\n </pre>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Actions' | abpLocalization }} ({{ selected.actions.length }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::Actions' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Duration' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::Parameters' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (action of selected.actions; track action.id) {\r\n <tr>\r\n <td>\r\n <span\r\n class=\"text-truncate d-block\"\r\n [title]=\"action.serviceName + ' - ' + action.methodName\"\r\n >\r\n {{ action.serviceName }} - {{ action.methodName }}\r\n </span>\r\n </td>\r\n <td>{{ action.executionDuration }}</td>\r\n <td>\r\n <pre lang=\"json\" class=\"p-2\">{{ action.parameters }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </ng-template>\r\n </li>\r\n @if (selected.entityChanges.length) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{ 'AbpAuditLogging::Changes' | abpLocalization }} ({{\r\n selected.entityChanges.length\r\n }})\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (change of selected.entityChanges; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"getEntityChangeDetails(change)\" />\r\n }\r\n </ng-template>\r\n </li>\r\n }\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}\r\n", styles: [".fade-in{animation:fadeIn .35s ease both}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\n"] }]
294
298
  }] });
295
299
 
296
300
  /**
@@ -472,9 +476,10 @@ class AverageExecutionDurationWidgetComponent {
472
476
  this.permissionService = inject(PermissionService);
473
477
  this.service = inject(AuditLogsService);
474
478
  this.data = {};
475
- this.initialized = new BehaviorSubject(this);
476
- this.width = 273;
477
- this.height = 136;
479
+ this.initialized = outputFromObservable(new BehaviorSubject(this));
480
+ this.width = input(273, ...(ngDevMode ? [{ debugName: "width" }] : []));
481
+ this.height = input(136, ...(ngDevMode ? [{ debugName: "height" }] : []));
482
+ this.chart = viewChild(ChartComponent, ...(ngDevMode ? [{ debugName: "chart" }] : []));
478
483
  this.chartData = {};
479
484
  this.draw = (filter) => {
480
485
  if (!this.permissionService.getGrantedPolicy('AuditLogging.AuditLogs')) {
@@ -505,11 +510,11 @@ class AverageExecutionDurationWidgetComponent {
505
510
  },
506
511
  ],
507
512
  };
508
- this.chart.refresh();
513
+ this.chart().refresh();
509
514
  }, 0);
510
515
  }
511
516
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: AverageExecutionDurationWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
512
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: AverageExecutionDurationWidgetComponent, isStandalone: true, 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: `
517
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.9", type: AverageExecutionDurationWidgetComponent, isStandalone: true, selector: "abp-average-execution-duration-widget", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
513
518
  <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
514
519
  <div class="card">
515
520
  <div class="card-header">
@@ -524,8 +529,8 @@ class AverageExecutionDurationWidgetComponent {
524
529
  class="w-100"
525
530
  type="bar"
526
531
  [data]="chartData"
527
- [width]="width"
528
- [height]="height"
532
+ [width]="width()"
533
+ [height]="height()"
529
534
  />
530
535
  </div>
531
536
  </div>
@@ -552,8 +557,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
552
557
  class="w-100"
553
558
  type="bar"
554
559
  [data]="chartData"
555
- [width]="width"
556
- [height]="height"
560
+ [width]="width()"
561
+ [height]="height()"
557
562
  />
558
563
  </div>
559
564
  </div>
@@ -562,25 +567,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
562
567
  `,
563
568
  imports: [ChartComponent, PermissionDirective, LocalizationPipe],
564
569
  }]
565
- }], propDecorators: { initialized: [{
566
- type: Output
567
- }], width: [{
568
- type: Input
569
- }], height: [{
570
- type: Input
571
- }], chart: [{
572
- type: ViewChild,
573
- args: [ChartComponent]
574
- }] } });
570
+ }], propDecorators: { initialized: [{ type: i0.Output, args: ["initialized"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], chart: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ChartComponent), { isSignal: true }] }] } });
575
571
 
576
572
  class ErrorRateWidgetComponent {
577
573
  constructor() {
578
574
  this.permissionService = inject(PermissionService);
579
575
  this.service = inject(AuditLogsService);
580
576
  this.data = {};
581
- this.initialized = new BehaviorSubject(this);
582
- this.width = 273;
583
- this.height = 136;
577
+ this.initialized = outputFromObservable(new BehaviorSubject(this));
578
+ this.width = input(273, ...(ngDevMode ? [{ debugName: "width" }] : []));
579
+ this.height = input(136, ...(ngDevMode ? [{ debugName: "height" }] : []));
580
+ this.chart = viewChild(ChartComponent, ...(ngDevMode ? [{ debugName: "chart" }] : []));
584
581
  this.chartData = {};
585
582
  this.draw = (filter) => {
586
583
  if (!this.permissionService.getGrantedPolicy('AuditLogging.AuditLogs')) {
@@ -613,11 +610,11 @@ class ErrorRateWidgetComponent {
613
610
  },
614
611
  ],
615
612
  };
616
- this.chart.refresh();
613
+ this.chart().refresh();
617
614
  }, 0);
618
615
  }
619
616
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ErrorRateWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
620
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: ErrorRateWidgetComponent, isStandalone: true, 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: `
617
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.9", type: ErrorRateWidgetComponent, isStandalone: true, selector: "abp-error-rate-widget", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { initialized: "initialized" }, viewQueries: [{ propertyName: "chart", first: true, predicate: ChartComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
621
618
  <div *abpPermission="'AuditLogging.AuditLogs'" class="abp-widget-wrapper">
622
619
  <div class="card">
623
620
  <div class="card-header">
@@ -632,8 +629,8 @@ class ErrorRateWidgetComponent {
632
629
  class="w-100"
633
630
  type="pie"
634
631
  [data]="chartData"
635
- [width]="width"
636
- [height]="height"
632
+ [width]="width()"
633
+ [height]="height()"
637
634
  />
638
635
  </div>
639
636
  </div>
@@ -660,8 +657,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
660
657
  class="w-100"
661
658
  type="pie"
662
659
  [data]="chartData"
663
- [width]="width"
664
- [height]="height"
660
+ [width]="width()"
661
+ [height]="height()"
665
662
  />
666
663
  </div>
667
664
  </div>
@@ -670,16 +667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
670
667
  `,
671
668
  imports: [ChartModule, PermissionDirective, LocalizationPipe],
672
669
  }]
673
- }], propDecorators: { initialized: [{
674
- type: Output
675
- }], width: [{
676
- type: Input
677
- }], height: [{
678
- type: Input
679
- }], chart: [{
680
- type: ViewChild,
681
- args: [ChartComponent]
682
- }] } });
670
+ }], propDecorators: { initialized: [{ type: i0.Output, args: ["initialized"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], chart: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ChartComponent), { isSignal: true }] }] } });
683
671
 
684
672
  const declarations = [
685
673
  AuditLogsComponent,