@volo/abp.ng.audit-logging 9.1.2 → 9.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.
- package/common/components/entity-change-details/entity-change-details.component.d.ts +14 -0
- package/common/components/index.d.ts +1 -0
- package/common/public-api.d.ts +1 -0
- package/config/audit-logging-config.module.d.ts +5 -5
- package/config/components/index.d.ts +0 -1
- package/fesm2022/volo-abp.ng.audit-logging-common.mjs +58 -3
- package/fesm2022/volo-abp.ng.audit-logging-common.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs +23 -61
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging.mjs +51 -41
- package/fesm2022/volo-abp.ng.audit-logging.mjs.map +1 -1
- package/lib/audit-logging.module.d.ts +2 -1
- package/lib/components/audit-logs/audit-logs.component.d.ts +4 -4
- package/lib/components/entity-change/entity-changes.component.d.ts +9 -10
- package/package.json +4 -4
- package/config/components/entity-change-details.component.d.ts +0 -19
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LocalizationService } from '@abp/ng.core';
|
|
2
|
+
import { EntityChangeDto, EntityChangeWithUsernameDto, EntityPropertyChangeDto } from '@volo/abp.ng.audit-logging/proxy';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EntityChangeDetailsComponent {
|
|
5
|
+
set itemWithUserName(item: EntityChangeWithUsernameDto);
|
|
6
|
+
readonly localization: LocalizationService;
|
|
7
|
+
entityChange: EntityChangeDto;
|
|
8
|
+
userName: string;
|
|
9
|
+
changeType: string;
|
|
10
|
+
getPropColor(propertyChange: EntityPropertyChangeDto): string;
|
|
11
|
+
getEntityChangeTimeParams(): string[];
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeDetailsComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeDetailsComponent, "abp-entity-change-details", never, { "itemWithUserName": { "alias": "itemWithUserName"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './entity-change-details/entity-change-details.component';
|
package/common/public-api.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./components/entity-change-
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "@abp/ng.
|
|
6
|
-
import * as i4 from "@abp
|
|
3
|
+
import * as i1 from "./components/entity-change-modal.component";
|
|
4
|
+
import * as i2 from "@abp/ng.core";
|
|
5
|
+
import * as i3 from "@abp/ng.theme.shared";
|
|
6
|
+
import * as i4 from "@volo/abp.ng.audit-logging/common";
|
|
7
7
|
export declare class AuditLoggingConfigModule {
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated forRoot method is deprecated, use `provideAuditLoggingConfig` *function* for config settings.
|
|
10
10
|
*/
|
|
11
11
|
static forRoot(): ModuleWithProviders<AuditLoggingConfigModule>;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingConfigModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingConfigModule, [typeof i1.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingConfigModule, [typeof i1.EntityChangeModalComponent], [typeof i2.CoreModule, typeof i3.ThemeSharedModule, typeof i4.EntityChangeDetailsComponent], [typeof i1.EntityChangeModalComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingConfigModule>;
|
|
15
15
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i1 from '@abp/ng.core';
|
|
2
|
+
import { ConfigStateService, featuresFactory, RoutesService, LocalizationService, CoreModule } from '@abp/ng.core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, provideAppInitializer, Input, Component } from '@angular/core';
|
|
3
5
|
import { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';
|
|
6
|
+
import * as i2 from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
+
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
|
|
9
|
+
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
4
10
|
|
|
5
11
|
const AUDIT_LOGGING_FEATURES = new InjectionToken('AUDIT_LOGGING_FEATURES', {
|
|
6
12
|
providedIn: 'root',
|
|
@@ -27,9 +33,58 @@ const AUDIT_LOGGING_FEATURES_PROVIDERS = [
|
|
|
27
33
|
}),
|
|
28
34
|
];
|
|
29
35
|
|
|
36
|
+
class EntityChangeDetailsComponent {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.localization = inject(LocalizationService);
|
|
39
|
+
}
|
|
40
|
+
set itemWithUserName(item) {
|
|
41
|
+
this.changeType = EntityChangeType[item.entityChange.changeType];
|
|
42
|
+
this.userName = item.userName;
|
|
43
|
+
this.entityChange = item.entityChange;
|
|
44
|
+
}
|
|
45
|
+
getPropColor(propertyChange) {
|
|
46
|
+
if (this.entityChange.changeType !== EntityChangeType.Updated) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const { originalValue, newValue } = propertyChange;
|
|
50
|
+
return newValue !== originalValue ? 'red' : undefined;
|
|
51
|
+
}
|
|
52
|
+
getEntityChangeTimeParams() {
|
|
53
|
+
if (!this.entityChange.changeTime) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const now = new Date();
|
|
57
|
+
const changeDate = new Date(this.entityChange.changeTime);
|
|
58
|
+
const timeDifference = now.getTime() - changeDate.getTime();
|
|
59
|
+
const diffInMinutes = Math.floor(timeDifference / (1000 * 60));
|
|
60
|
+
const diffInHours = Math.floor(diffInMinutes / 60);
|
|
61
|
+
const diffInDays = Math.floor(diffInHours / 24);
|
|
62
|
+
let timeAgo;
|
|
63
|
+
if (diffInDays > 0) {
|
|
64
|
+
timeAgo = this.localization.instant('AbpAuditLogging::DaysAgo', diffInDays.toString());
|
|
65
|
+
}
|
|
66
|
+
else if (diffInHours > 0) {
|
|
67
|
+
timeAgo = this.localization.instant('AbpAuditLogging::HoursAgo', diffInHours.toString());
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
timeAgo = this.localization.instant('AbpAuditLogging::MinutesAgo', diffInMinutes.toString());
|
|
71
|
+
}
|
|
72
|
+
const changeTypeLocalized = this.localization.instant('AbpAuditLogging::' + this.changeType);
|
|
73
|
+
return [changeTypeLocalized, timeAgo, this.userName];
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: EntityChangeDetailsComponent, isStandalone: true, selector: "abp-entity-change-details", inputs: { itemWithUserName: "itemWithUserName" }, ngImport: i0, template: "@if (getEntityChangeTimeParams(); as timeParameters) {\r\n <table class=\"table\" style=\"width: 100%; table-layout: fixed\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @if (entityChange.propertyChanges.length) {\r\n <tr class=\"table-active\">\r\n <td colspan=\"3\">\r\n <span class=\"text-muted\" [ngbTooltip]=\"entityChange.changeTime | shortDateTime\">\r\n @if (this.userName) {\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: timeParameters }}\r\n } @else {\r\n {{ 'AbpAuditLogging::DaysAgoTitle' | abpLocalization: timeParameters }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n @for (prop of entityChange.propertyChanges; track prop.id) {\r\n <tr>\r\n <td>{{ prop.propertyName }}</td>\r\n <td>\r\n <pre lang=\"json\">{{ prop.originalValue }}</pre>\r\n </td>\r\n <td>\r\n <pre lang=\"json\" [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n } @else {\r\n <tr>\r\n <td colspan=\"3\">{{ 'AbpUi::NoDataAvailableInDatatable' | abpLocalization }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n}\r\n", styles: ["th,td{text-align:left;padding:10px;word-wrap:break-word}td pre{white-space:break-spaces;background:inherit}\n"], dependencies: [{ kind: "ngmodule", type: ThemeSharedModule }, { kind: "ngmodule", type: CoreModule }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i1.ShortDateTimePipe, name: "shortDateTime" }, { kind: "ngmodule", type: NgbTooltipModule }, { kind: "directive", type: i2.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }] }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'abp-entity-change-details', imports: [ThemeSharedModule, CoreModule, NgbTooltipModule], template: "@if (getEntityChangeTimeParams(); as timeParameters) {\r\n <table class=\"table\" style=\"width: 100%; table-layout: fixed\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @if (entityChange.propertyChanges.length) {\r\n <tr class=\"table-active\">\r\n <td colspan=\"3\">\r\n <span class=\"text-muted\" [ngbTooltip]=\"entityChange.changeTime | shortDateTime\">\r\n @if (this.userName) {\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: timeParameters }}\r\n } @else {\r\n {{ 'AbpAuditLogging::DaysAgoTitle' | abpLocalization: timeParameters }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n @for (prop of entityChange.propertyChanges; track prop.id) {\r\n <tr>\r\n <td>{{ prop.propertyName }}</td>\r\n <td>\r\n <pre lang=\"json\">{{ prop.originalValue }}</pre>\r\n </td>\r\n <td>\r\n <pre lang=\"json\" [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n } @else {\r\n <tr>\r\n <td colspan=\"3\">{{ 'AbpUi::NoDataAvailableInDatatable' | abpLocalization }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n}\r\n", styles: ["th,td{text-align:left;padding:10px;word-wrap:break-word}td pre{white-space:break-spaces;background:inherit}\n"] }]
|
|
81
|
+
}], propDecorators: { itemWithUserName: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}] } });
|
|
84
|
+
|
|
30
85
|
/**
|
|
31
86
|
* Generated bundle index. Do not edit.
|
|
32
87
|
*/
|
|
33
88
|
|
|
34
|
-
export { AUDIT_LOGGING_FEATURES, AUDIT_LOGGING_FEATURES_PROVIDERS, SET_AUDIT_LOGGING_ROUTE_VISIBILITY };
|
|
89
|
+
export { AUDIT_LOGGING_FEATURES, AUDIT_LOGGING_FEATURES_PROVIDERS, EntityChangeDetailsComponent, SET_AUDIT_LOGGING_ROUTE_VISIBILITY };
|
|
35
90
|
//# sourceMappingURL=volo-abp.ng.audit-logging-common.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volo-abp.ng.audit-logging-common.mjs","sources":["../../../../packages/audit-logging/common/src/tokens/features.token.ts","../../../../packages/audit-logging/common/src/volo-abp.ng.audit-logging-common.ts"],"sourcesContent":["import { ConfigStateService, featuresFactory, RoutesService } from '@abp/ng.core';\r\nimport { inject, InjectionToken, provideAppInitializer } from '@angular/core';\r\nimport { ModuleVisibility, setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';\r\nimport { Observable } from 'rxjs';\r\nimport { eAuditLoggingRouteNames } from '../enums/route-names';\r\n\r\nexport const AUDIT_LOGGING_FEATURES = new InjectionToken<Observable<ModuleVisibility>>(\r\n 'AUDIT_LOGGING_FEATURES',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const configState = inject(ConfigStateService);\r\n const featureKey = 'AuditLogging.Enable';\r\n const mapFn = features => ({\r\n enable: features[featureKey].toLowerCase() !== 'false',\r\n });\r\n\r\n return featuresFactory(configState, [featureKey], mapFn);\r\n },\r\n },\r\n);\r\n\r\nexport const SET_AUDIT_LOGGING_ROUTE_VISIBILITY = new InjectionToken(\r\n 'SET_AUDIT_LOGGING_ROUTE_VISIBILITY',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const routes = inject(RoutesService);\r\n const stream = inject(AUDIT_LOGGING_FEATURES);\r\n\r\n setModuleVisibilityFactory(stream, routes, eAuditLoggingRouteNames.AuditLogging).subscribe();\r\n },\r\n },\r\n);\r\n\r\nexport const AUDIT_LOGGING_FEATURES_PROVIDERS = [\r\n provideAppInitializer(() => {\r\n inject(SET_AUDIT_LOGGING_ROUTE_VISIBILITY);\r\n }),\r\n];\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"volo-abp.ng.audit-logging-common.mjs","sources":["../../../../packages/audit-logging/common/src/tokens/features.token.ts","../../../../packages/audit-logging/common/src/components/entity-change-details/entity-change-details.component.ts","../../../../packages/audit-logging/common/src/components/entity-change-details/entity-change-details.component.html","../../../../packages/audit-logging/common/src/volo-abp.ng.audit-logging-common.ts"],"sourcesContent":["import { ConfigStateService, featuresFactory, RoutesService } from '@abp/ng.core';\r\nimport { inject, InjectionToken, provideAppInitializer } from '@angular/core';\r\nimport { ModuleVisibility, setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';\r\nimport { Observable } from 'rxjs';\r\nimport { eAuditLoggingRouteNames } from '../enums/route-names';\r\n\r\nexport const AUDIT_LOGGING_FEATURES = new InjectionToken<Observable<ModuleVisibility>>(\r\n 'AUDIT_LOGGING_FEATURES',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const configState = inject(ConfigStateService);\r\n const featureKey = 'AuditLogging.Enable';\r\n const mapFn = features => ({\r\n enable: features[featureKey].toLowerCase() !== 'false',\r\n });\r\n\r\n return featuresFactory(configState, [featureKey], mapFn);\r\n },\r\n },\r\n);\r\n\r\nexport const SET_AUDIT_LOGGING_ROUTE_VISIBILITY = new InjectionToken(\r\n 'SET_AUDIT_LOGGING_ROUTE_VISIBILITY',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const routes = inject(RoutesService);\r\n const stream = inject(AUDIT_LOGGING_FEATURES);\r\n\r\n setModuleVisibilityFactory(stream, routes, eAuditLoggingRouteNames.AuditLogging).subscribe();\r\n },\r\n },\r\n);\r\n\r\nexport const AUDIT_LOGGING_FEATURES_PROVIDERS = [\r\n provideAppInitializer(() => {\r\n inject(SET_AUDIT_LOGGING_ROUTE_VISIBILITY);\r\n }),\r\n];\r\n","import { Component, inject, Input } from '@angular/core';\r\nimport { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';\r\n\r\nimport { CoreModule, LocalizationService } from '@abp/ng.core';\r\nimport {\r\n EntityChangeDto,\r\n EntityChangeType,\r\n EntityChangeWithUsernameDto,\r\n EntityPropertyChangeDto,\r\n} from '@volo/abp.ng.audit-logging/proxy';\r\nimport { ThemeSharedModule } from '@abp/ng.theme.shared';\r\n\r\n@Component({\r\n selector: 'abp-entity-change-details',\r\n templateUrl: './entity-change-details.component.html',\r\n imports: [ThemeSharedModule, CoreModule, NgbTooltipModule],\r\n styles: [\r\n `\r\n th,\r\n td {\r\n text-align: left;\r\n padding: 10px;\r\n word-wrap: break-word;\r\n }\r\n\r\n td pre {\r\n white-space: break-spaces;\r\n background: inherit;\r\n }\r\n `,\r\n ],\r\n})\r\nexport class EntityChangeDetailsComponent {\r\n @Input() set itemWithUserName(item: EntityChangeWithUsernameDto) {\r\n this.changeType = EntityChangeType[item.entityChange.changeType];\r\n this.userName = item.userName;\r\n this.entityChange = item.entityChange;\r\n }\r\n\r\n public readonly localization = inject(LocalizationService);\r\n\r\n entityChange: EntityChangeDto;\r\n\r\n userName: string;\r\n\r\n changeType: string;\r\n\r\n getPropColor(propertyChange: EntityPropertyChangeDto) {\r\n if (this.entityChange.changeType !== EntityChangeType.Updated) {\r\n return;\r\n }\r\n const { originalValue, newValue } = propertyChange;\r\n return newValue !== originalValue ? 'red' : undefined;\r\n }\r\n\r\n getEntityChangeTimeParams() {\r\n if (!this.entityChange.changeTime) {\r\n return;\r\n }\r\n\r\n const now = new Date();\r\n const changeDate = new Date(this.entityChange.changeTime);\r\n const timeDifference = now.getTime() - changeDate.getTime();\r\n\r\n const diffInMinutes = Math.floor(timeDifference / (1000 * 60));\r\n const diffInHours = Math.floor(diffInMinutes / 60);\r\n const diffInDays = Math.floor(diffInHours / 24);\r\n\r\n let timeAgo: string;\r\n if (diffInDays > 0) {\r\n timeAgo = this.localization.instant('AbpAuditLogging::DaysAgo', diffInDays.toString());\r\n } else if (diffInHours > 0) {\r\n timeAgo = this.localization.instant('AbpAuditLogging::HoursAgo', diffInHours.toString());\r\n } else {\r\n timeAgo = this.localization.instant('AbpAuditLogging::MinutesAgo', diffInMinutes.toString());\r\n }\r\n\r\n const changeTypeLocalized = this.localization.instant('AbpAuditLogging::' + this.changeType);\r\n\r\n return [changeTypeLocalized, timeAgo, this.userName];\r\n }\r\n}\r\n","@if (getEntityChangeTimeParams(); as timeParameters) {\r\n <table class=\"table\" style=\"width: 100%; table-layout: fixed\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @if (entityChange.propertyChanges.length) {\r\n <tr class=\"table-active\">\r\n <td colspan=\"3\">\r\n <span class=\"text-muted\" [ngbTooltip]=\"entityChange.changeTime | shortDateTime\">\r\n @if (this.userName) {\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: timeParameters }}\r\n } @else {\r\n {{ 'AbpAuditLogging::DaysAgoTitle' | abpLocalization: timeParameters }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n @for (prop of entityChange.propertyChanges; track prop.id) {\r\n <tr>\r\n <td>{{ prop.propertyName }}</td>\r\n <td>\r\n <pre lang=\"json\">{{ prop.originalValue }}</pre>\r\n </td>\r\n <td>\r\n <pre lang=\"json\" [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</pre>\r\n </td>\r\n </tr>\r\n }\r\n } @else {\r\n <tr>\r\n <td colspan=\"3\">{{ 'AbpUi::NoDataAvailableInDatatable' | abpLocalization }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|
|
@@ -3,21 +3,21 @@ import { inject, ChangeDetectorRef, Input, Directive, ChangeDetectionStrategy, C
|
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import { switchMap, finalize } from 'rxjs/operators';
|
|
6
|
-
import * as
|
|
7
|
-
import { ConfigStateService, LocalizationModule, SessionStateService,
|
|
6
|
+
import * as i2 from '@abp/ng.core';
|
|
7
|
+
import { ConfigStateService, LocalizationModule, SessionStateService, PROJECTION_STRATEGY, RoutesService, CoreModule } from '@abp/ng.core';
|
|
8
8
|
import * as i4 from '@abp/ng.theme.shared';
|
|
9
|
-
import { ToasterService, ThemeSharedModule
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { AuditLogSettingsService
|
|
12
|
-
import * as i1$
|
|
9
|
+
import { ToasterService, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
10
|
+
import * as i1$2 from '@volo/abp.ng.audit-logging/proxy';
|
|
11
|
+
import { AuditLogSettingsService } from '@volo/abp.ng.audit-logging/proxy';
|
|
12
|
+
import * as i1$1 from '@ng-bootstrap/ng-bootstrap';
|
|
13
13
|
import { NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
|
|
14
|
-
import * as i2 from '@angular/common';
|
|
15
14
|
import { DatePipe } from '@angular/common';
|
|
16
15
|
import * as i3 from '@ngx-validate/core';
|
|
16
|
+
import * as i3$1 from '@volo/abp.ng.audit-logging/common';
|
|
17
|
+
import { AUDIT_LOGGING_FEATURES_PROVIDERS, EntityChangeDetailsComponent } from '@volo/abp.ng.audit-logging/common';
|
|
17
18
|
import { SHOW_ENTITY_DETAILS } from '@volo/abp.ng.audit-logging';
|
|
18
19
|
import { SHOW_ENTITY_HISTORY } from '@volo/abp.commercial.ng.ui';
|
|
19
20
|
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
20
|
-
import { AUDIT_LOGGING_FEATURES_PROVIDERS } from '@volo/abp.ng.audit-logging/common';
|
|
21
21
|
|
|
22
22
|
class AbstractAuditLogSettingsComponent {
|
|
23
23
|
constructor() {
|
|
@@ -91,7 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
91
91
|
|
|
92
92
|
class AuditLogSettingsGeneralComponent extends AbstractAuditLogSettingsComponent {
|
|
93
93
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
94
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsGeneralComponent, isStandalone: true, selector: "abp-audit-log-settings-general", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" (keyup.enter)=\"submit()\">\r\n <div class=\"form-check mb-3\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsExpiredDeleterEnabled\"\r\n name=\"IsExpiredDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isExpiredDeleterEnabled\"\r\n />\r\n <label class=\"form-label\" for=\"IsExpiredDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:IsExpiredDeleterEnabled' | abpLocalization }}\r\n </label>\r\n <div>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpAuditLogging::Description:IsExpiredDeleterEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isExpiredDeleterEnabled) {\r\n <div class=\"mb-3 period-group\">\r\n <div class=\"input-group w-75\">\r\n <label class=\"input-group-text\" for=\"expiredDeleterPeriod\">\r\n {{ 'AbpAuditLogging::DisplayName:ExpiredDeleterPeriod' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"expiredDeleterPeriod\"\r\n name=\"expiredDeleterPeriod\"\r\n class=\"form-control text-center valid\"\r\n formControlName=\"expiredDeleterPeriod\"\r\n />\r\n <span class=\"input-group-text\">\r\n {{ 'AbpAuditLogging::ExpiredDeleterPeriodUnit' | abpLocalization }}\r\n </span>\r\n </div>\r\n <p class=\"text-muted mt-1 ms-1 fst-italic\">\r\n {{\r\n 'AbpAuditLogging::AuditLogsBeforeXWillBeDeleted'\r\n | abpLocalization\r\n : (getDateBeforeToday(form.controls.expiredDeleterPeriod.value) | date: 'MM/dd/yyyy')\r\n }}\r\n </p>\r\n </div>\r\n }\r\n</div>\r\n\r\n<hr class=\"my-3\" />\r\n\r\n<div>\r\n <abp-button (click)=\"submit()\" iconClass=\"fa fa-save\" [loading]=\"loading\">\r\n {{ 'AbpAccount::Save' | abpLocalization }}\r\n </abp-button>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type:
|
|
94
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsGeneralComponent, isStandalone: true, selector: "abp-audit-log-settings-general", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" (keyup.enter)=\"submit()\">\r\n <div class=\"form-check mb-3\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsExpiredDeleterEnabled\"\r\n name=\"IsExpiredDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isExpiredDeleterEnabled\"\r\n />\r\n <label class=\"form-label\" for=\"IsExpiredDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:IsExpiredDeleterEnabled' | abpLocalization }}\r\n </label>\r\n <div>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpAuditLogging::Description:IsExpiredDeleterEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isExpiredDeleterEnabled) {\r\n <div class=\"mb-3 period-group\">\r\n <div class=\"input-group w-75\">\r\n <label class=\"input-group-text\" for=\"expiredDeleterPeriod\">\r\n {{ 'AbpAuditLogging::DisplayName:ExpiredDeleterPeriod' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"expiredDeleterPeriod\"\r\n name=\"expiredDeleterPeriod\"\r\n class=\"form-control text-center valid\"\r\n formControlName=\"expiredDeleterPeriod\"\r\n />\r\n <span class=\"input-group-text\">\r\n {{ 'AbpAuditLogging::ExpiredDeleterPeriodUnit' | abpLocalization }}\r\n </span>\r\n </div>\r\n <p class=\"text-muted mt-1 ms-1 fst-italic\">\r\n {{\r\n 'AbpAuditLogging::AuditLogsBeforeXWillBeDeleted'\r\n | abpLocalization\r\n : (getDateBeforeToday(form.controls.expiredDeleterPeriod.value) | date: 'MM/dd/yyyy')\r\n }}\r\n </p>\r\n </div>\r\n }\r\n</div>\r\n\r\n<hr class=\"my-3\" />\r\n\r\n<div>\r\n <abp-button (click)=\"submit()\" iconClass=\"fa fa-save\" [loading]=\"loading\">\r\n {{ 'AbpAccount::Save' | abpLocalization }}\r\n </abp-button>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
95
|
}
|
|
96
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsGeneralComponent, decorators: [{
|
|
97
97
|
type: Component,
|
|
@@ -104,7 +104,7 @@ class AuditLogSettingsGlobalComponent extends AbstractAuditLogSettingsComponent
|
|
|
104
104
|
this.globalTab = true;
|
|
105
105
|
}
|
|
106
106
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsGlobalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
107
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsGlobalComponent, isStandalone: true, selector: "abp-audit-log-settings-global", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" (keyup.enter)=\"submit()\">\r\n <div class=\"mb-2 custom-checkbox custom-control form-check\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsPeriodicDeleterEnabled\"\r\n name=\"IsPeriodicDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isPeriodicDeleterEnabled\"\r\n />\r\n <label class=\"form-check-label\" for=\"IsPeriodicDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:IsPeriodicDeleterEnabled' | abpLocalization }}\r\n </label>\r\n\r\n <div>\r\n <span class=\"form-text text-muted mb-3\">\r\n {{ 'AbpAuditLogging::Description:IsPeriodicDeleterEnabled' | abpLocalization }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isPeriodicDeleterEnabled) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsExpiredDeleterEnabled\"\r\n name=\"IsExpiredDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isExpiredDeleterEnabled\"\r\n />\r\n <label class=\"form-label\" for=\"IsExpiredDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:GlobalIsExpiredDeleterEnabled' | abpLocalization }}\r\n </label>\r\n <div>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpAuditLogging::Description:GlobalIsExpiredDeleterEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isExpiredDeleterEnabled) {\r\n <div class=\"mb-3 period-group\">\r\n <div class=\"input-group w-75\">\r\n <label class=\"input-group-text\" for=\"ExpiredDeleterPeriod\">\r\n {{ 'AbpAuditLogging::DisplayName:ExpiredDeleterPeriod' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"ExpiredDeleterPeriod\"\r\n name=\"ExpiredDeleterPeriod\"\r\n class=\"form-control text-center valid\"\r\n formControlName=\"expiredDeleterPeriod\"\r\n />\r\n <span class=\"input-group-text\">\r\n {{ 'AbpAuditLogging::ExpiredDeleterPeriodUnit' | abpLocalization }}\r\n </span>\r\n </div>\r\n <p class=\"text-muted mt-1 ms-1 fst-italic\">\r\n {{\r\n 'AbpAuditLogging::AuditLogsBeforeXWillBeDeleted'\r\n | abpLocalization\r\n : (getDateBeforeToday(form.controls.expiredDeleterPeriod.value)\r\n | date: 'MM/dd/yyyy')\r\n }}\r\n </p>\r\n </div>\r\n }\r\n }\r\n</div>\r\n\r\n<hr class=\"my-3\" />\r\n\r\n<div>\r\n <abp-button (click)=\"submit()\" iconClass=\"fa fa-save\" [loading]=\"loading\">\r\n {{ 'AbpAccount::Save' | abpLocalization }}\r\n </abp-button>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type:
|
|
107
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsGlobalComponent, isStandalone: true, selector: "abp-audit-log-settings-global", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" (keyup.enter)=\"submit()\">\r\n <div class=\"mb-2 custom-checkbox custom-control form-check\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsPeriodicDeleterEnabled\"\r\n name=\"IsPeriodicDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isPeriodicDeleterEnabled\"\r\n />\r\n <label class=\"form-check-label\" for=\"IsPeriodicDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:IsPeriodicDeleterEnabled' | abpLocalization }}\r\n </label>\r\n\r\n <div>\r\n <span class=\"form-text text-muted mb-3\">\r\n {{ 'AbpAuditLogging::Description:IsPeriodicDeleterEnabled' | abpLocalization }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isPeriodicDeleterEnabled) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"IsExpiredDeleterEnabled\"\r\n name=\"IsExpiredDeleterEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isExpiredDeleterEnabled\"\r\n />\r\n <label class=\"form-label\" for=\"IsExpiredDeleterEnabled\">\r\n {{ 'AbpAuditLogging::DisplayName:GlobalIsExpiredDeleterEnabled' | abpLocalization }}\r\n </label>\r\n <div>\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpAuditLogging::Description:GlobalIsExpiredDeleterEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n\r\n @if (form.value.isExpiredDeleterEnabled) {\r\n <div class=\"mb-3 period-group\">\r\n <div class=\"input-group w-75\">\r\n <label class=\"input-group-text\" for=\"ExpiredDeleterPeriod\">\r\n {{ 'AbpAuditLogging::DisplayName:ExpiredDeleterPeriod' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"ExpiredDeleterPeriod\"\r\n name=\"ExpiredDeleterPeriod\"\r\n class=\"form-control text-center valid\"\r\n formControlName=\"expiredDeleterPeriod\"\r\n />\r\n <span class=\"input-group-text\">\r\n {{ 'AbpAuditLogging::ExpiredDeleterPeriodUnit' | abpLocalization }}\r\n </span>\r\n </div>\r\n <p class=\"text-muted mt-1 ms-1 fst-italic\">\r\n {{\r\n 'AbpAuditLogging::AuditLogsBeforeXWillBeDeleted'\r\n | abpLocalization\r\n : (getDateBeforeToday(form.controls.expiredDeleterPeriod.value)\r\n | date: 'MM/dd/yyyy')\r\n }}\r\n </p>\r\n </div>\r\n }\r\n }\r\n</div>\r\n\r\n<hr class=\"my-3\" />\r\n\r\n<div>\r\n <abp-button (click)=\"submit()\" iconClass=\"fa fa-save\" [loading]=\"loading\">\r\n {{ 'AbpAccount::Save' | abpLocalization }}\r\n </abp-button>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
108
108
|
}
|
|
109
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsGlobalComponent, decorators: [{
|
|
110
110
|
type: Component,
|
|
@@ -117,7 +117,7 @@ class AuditLogSettingsComponent {
|
|
|
117
117
|
this.isTenant = this.sessionStateService.getTenant()?.isAvailable;
|
|
118
118
|
}
|
|
119
119
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
120
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsComponent, isStandalone: true, selector: "abp-audit-log-settings", ngImport: i0, template: "<div id=\"AuditLogSettingsForm\" class=\"row abp-md-form\">\r\n <div class=\"col-md-12\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n @if (!isTenant) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGlobal' | abpLocalization }}</a>\r\n\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-global [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n }\r\n\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGeneral' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-general [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: NgbNavModule }, { kind: "directive", type: i1$
|
|
120
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AuditLogSettingsComponent, isStandalone: true, selector: "abp-audit-log-settings", ngImport: i0, template: "<div id=\"AuditLogSettingsForm\" class=\"row abp-md-form\">\r\n <div class=\"col-md-12\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n @if (!isTenant) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGlobal' | abpLocalization }}</a>\r\n\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-global [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n }\r\n\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGeneral' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-general [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: NgbNavModule }, { kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: AuditLogSettingsGeneralComponent, selector: "abp-audit-log-settings-general" }, { kind: "component", type: AuditLogSettingsGlobalComponent, selector: "abp-audit-log-settings-global" }] }); }
|
|
121
121
|
}
|
|
122
122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLogSettingsComponent, decorators: [{
|
|
123
123
|
type: Component,
|
|
@@ -129,44 +129,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
129
129
|
], template: "<div id=\"AuditLogSettingsForm\" class=\"row abp-md-form\">\r\n <div class=\"col-md-12\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n @if (!isTenant) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGlobal' | abpLocalization }}</a>\r\n\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-global [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n }\r\n\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpAuditLogging::AuditLogSettingsGeneral' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-audit-log-settings-general [isTenant]=\"isTenant\" />\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n</div>\r\n" }]
|
|
130
130
|
}] });
|
|
131
131
|
|
|
132
|
-
class EntityChangeDetailsComponent {
|
|
133
|
-
set itemWithUserName(item) {
|
|
134
|
-
this.changeType = EntityChangeType[item.entityChange.changeType];
|
|
135
|
-
this.color = this.colors[item.entityChange.changeType];
|
|
136
|
-
this.userName = item.userName;
|
|
137
|
-
this.entityChange = item.entityChange;
|
|
138
|
-
}
|
|
139
|
-
constructor(track) {
|
|
140
|
-
this.track = track;
|
|
141
|
-
this.isCollapsed = false;
|
|
142
|
-
this.colors = {
|
|
143
|
-
[EntityChangeType.Created]: 'success',
|
|
144
|
-
[EntityChangeType.Updated]: 'info',
|
|
145
|
-
[EntityChangeType.Deleted]: 'danger',
|
|
146
|
-
};
|
|
147
|
-
this.uuid = uuid();
|
|
148
|
-
}
|
|
149
|
-
getPropColor(propertyChange) {
|
|
150
|
-
return this.entityChange.changeType === EntityChangeType.Updated &&
|
|
151
|
-
propertyChange.newValue !== propertyChange.originalValue
|
|
152
|
-
? 'red'
|
|
153
|
-
: undefined;
|
|
154
|
-
}
|
|
155
|
-
getInterpolationParams(changeTime) {
|
|
156
|
-
return [this.changeType, changeTime, this.userName];
|
|
157
|
-
}
|
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeDetailsComponent, deps: [{ token: i1$1.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: EntityChangeDetailsComponent, isStandalone: false, selector: "abp-entity-change-details", inputs: { itemWithUserName: "itemWithUserName", isCollapsed: "isCollapsed" }, ngImport: i0, template: "@if (getInterpolationParams(entityChange.changeTime | date: 'medium'); as params) {\r\n <div class=\"mb-3 border border-dark rounded\">\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-{{ color }} d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"isCollapsed ? 'fa-chevron-down' : 'fa-chevron-up'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (prop of entityChange.propertyChanges; track prop.id) {\r\n <tr>\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i1$1.LocalizationPipe, name: "abpLocalization" }], animations: [collapse] }); }
|
|
160
|
-
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{
|
|
162
|
-
type: Component,
|
|
163
|
-
args: [{ standalone: false, selector: 'abp-entity-change-details', animations: [collapse], template: "@if (getInterpolationParams(entityChange.changeTime | date: 'medium'); as params) {\r\n <div class=\"mb-3 border border-dark rounded\">\r\n <div class=\"d-grid\">\r\n <button\r\n class=\"btn btn-{{ color }} d-flex justify-content-between text-break\"\r\n type=\"button\"\r\n (click)=\"isCollapsed = !isCollapsed\"\r\n [attr.aria-expanded]=\"!isCollapsed\"\r\n [attr.aria-controls]=\"uuid\"\r\n >\r\n {{ 'AbpAuditLogging::DaysAgoWithUserTitle' | abpLocalization: params }}\r\n <i\r\n class=\"fa align-self-center\"\r\n [ngClass]=\"isCollapsed ? 'fa-chevron-down' : 'fa-chevron-up'\"\r\n ></i>\r\n </button>\r\n </div>\r\n <div [id]=\"uuid\" [@collapse]=\"isCollapsed ? 'collapsed' : 'expanded'\">\r\n <div class=\"m-3\">\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th>{{ 'AbpAuditLogging::PropertyName' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::OriginalValue' | abpLocalization }}</th>\r\n <th>{{ 'AbpAuditLogging::NewValue' | abpLocalization }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n @for (prop of entityChange.propertyChanges; track prop.id) {\r\n <tr>\r\n <td>{{ prop.propertyName }}</td>\r\n <td>{{ prop.originalValue }}</td>\r\n <td [style.color]=\"getPropColor(prop)\">{{ prop.newValue }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n" }]
|
|
164
|
-
}], ctorParameters: () => [{ type: i1$1.TrackByService }], propDecorators: { itemWithUserName: [{
|
|
165
|
-
type: Input
|
|
166
|
-
}], isCollapsed: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}] } });
|
|
169
|
-
|
|
170
132
|
class EntityChangeModalComponent {
|
|
171
133
|
constructor(cdRef, track) {
|
|
172
134
|
this.cdRef = cdRef;
|
|
@@ -174,13 +136,13 @@ class EntityChangeModalComponent {
|
|
|
174
136
|
this.history = [];
|
|
175
137
|
this.visible = false;
|
|
176
138
|
}
|
|
177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token:
|
|
178
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: EntityChangeModalComponent, isStandalone: false, selector: "abp-entity-change-modal", ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n @if (history.length) {\r\n @for (change of history; track change.id
|
|
139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.TrackByService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
140
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: EntityChangeModalComponent, isStandalone: false, selector: "abp-entity-change-modal", ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n @if (history.length) {\r\n @for (change of history; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"change\" />\r\n }\r\n } @else {\r\n <div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i3$1.EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
179
141
|
}
|
|
180
142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalComponent, decorators: [{
|
|
181
143
|
type: Component,
|
|
182
|
-
args: [{ standalone: false, selector: 'abp-entity-change-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n @if (history.length) {\r\n @for (change of history; track change.id
|
|
183
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type:
|
|
144
|
+
args: [{ standalone: false, selector: 'abp-entity-change-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [(visible)]=\"visible\" [options]=\"{ size: 'lg' }\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ entityTypeFullName }}\r\n <br />\r\n <span style=\"font-size: small\">({{ entityId }})</span>\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n @if (history.length) {\r\n @for (change of history; track change.id) {\r\n <abp-entity-change-details [itemWithUserName]=\"change\" />\r\n }\r\n } @else {\r\n <div class=\"text-center\">\r\n {{ 'AbpAuditLogging::NoChanges' | abpLocalization }}\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpAuditLogging::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
145
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i2.TrackByService }] });
|
|
184
146
|
|
|
185
147
|
class EntityChangeModalService {
|
|
186
148
|
constructor(auditLogsService, contentProjectionService) {
|
|
@@ -216,7 +178,7 @@ class EntityChangeModalService {
|
|
|
216
178
|
this.detectChanges();
|
|
217
179
|
});
|
|
218
180
|
}
|
|
219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalService, deps: [{ token: i1$
|
|
181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalService, deps: [{ token: i1$2.AuditLogsService }, { token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
220
182
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalService, providedIn: 'root' }); }
|
|
221
183
|
}
|
|
222
184
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: EntityChangeModalService, decorators: [{
|
|
@@ -224,7 +186,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
224
186
|
args: [{
|
|
225
187
|
providedIn: 'root',
|
|
226
188
|
}]
|
|
227
|
-
}], ctorParameters: () => [{ type: i1$
|
|
189
|
+
}], ctorParameters: () => [{ type: i1$2.AuditLogsService }, { type: i2.ContentProjectionService }] });
|
|
228
190
|
|
|
229
191
|
const ENTITY_DETAILS_PROVIDERS = [
|
|
230
192
|
{
|
|
@@ -306,15 +268,15 @@ class AuditLoggingConfigModule {
|
|
|
306
268
|
};
|
|
307
269
|
}
|
|
308
270
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
309
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, declarations: [
|
|
310
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule, ThemeSharedModule] }); }
|
|
271
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, declarations: [EntityChangeModalComponent], imports: [CoreModule, ThemeSharedModule, EntityChangeDetailsComponent], exports: [EntityChangeModalComponent] }); }
|
|
272
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule, ThemeSharedModule, EntityChangeDetailsComponent] }); }
|
|
311
273
|
}
|
|
312
274
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AuditLoggingConfigModule, decorators: [{
|
|
313
275
|
type: NgModule,
|
|
314
276
|
args: [{
|
|
315
|
-
declarations: [
|
|
316
|
-
exports: [
|
|
317
|
-
imports: [CoreModule, ThemeSharedModule],
|
|
277
|
+
declarations: [EntityChangeModalComponent],
|
|
278
|
+
exports: [EntityChangeModalComponent],
|
|
279
|
+
imports: [CoreModule, ThemeSharedModule, EntityChangeDetailsComponent],
|
|
318
280
|
}]
|
|
319
281
|
}] });
|
|
320
282
|
|
|
@@ -322,5 +284,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
322
284
|
* Generated bundle index. Do not edit.
|
|
323
285
|
*/
|
|
324
286
|
|
|
325
|
-
export { AUDIT_LOGGING_ROUTE_PROVIDERS, AUDIT_LOGGING_SETTING_TAB_PROVIDERS, AbstractAuditLogSettingsComponent, AuditLogSettingsComponent, AuditLogSettingsGeneralComponent, AuditLogSettingsGlobalComponent, AuditLoggingConfigModule, ENTITY_DETAILS_PROVIDERS, ENTITY_HISTORY_PROVIDERS,
|
|
287
|
+
export { AUDIT_LOGGING_ROUTE_PROVIDERS, AUDIT_LOGGING_SETTING_TAB_PROVIDERS, AbstractAuditLogSettingsComponent, AuditLogSettingsComponent, AuditLogSettingsGeneralComponent, AuditLogSettingsGlobalComponent, AuditLoggingConfigModule, ENTITY_DETAILS_PROVIDERS, ENTITY_HISTORY_PROVIDERS, EntityChangeModalComponent, EntityChangeModalService, bindShowDetails, bindShowHistory, configureRoutes, configureSettingTabs, provideAuditLoggingConfig };
|
|
326
288
|
//# sourceMappingURL=volo-abp.ng.audit-logging-config.mjs.map
|