@volo/abp.ng.audit-logging 9.3.0-rc.2 → 9.3.0-rc.4
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/index.d.ts +30 -5
- package/config/index.d.ts +116 -5
- package/fesm2022/volo-abp.ng.audit-logging-common.mjs +64 -32
- package/fesm2022/volo-abp.ng.audit-logging-common.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs +22 -22
- package/fesm2022/volo-abp.ng.audit-logging-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs +43 -6
- package/fesm2022/volo-abp.ng.audit-logging-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.audit-logging.mjs +39 -32
- package/fesm2022/volo-abp.ng.audit-logging.mjs.map +1 -1
- package/index.d.ts +215 -3
- package/package.json +4 -4
- package/proxy/index.d.ts +187 -5
- package/common/components/entity-change-details/entity-change-details.component.d.ts +0 -14
- package/common/components/index.d.ts +0 -1
- package/common/enums/index.d.ts +0 -1
- package/common/enums/route-names.d.ts +0 -3
- package/common/public-api.d.ts +0 -3
- package/common/tokens/features.token.d.ts +0 -6
- package/common/tokens/index.d.ts +0 -1
- package/config/abstracts/abstract-audit-log-settings.component.d.ts +0 -27
- package/config/abstracts/index.d.ts +0 -1
- package/config/audit-logging-config.module.d.ts +0 -15
- package/config/components/entity-change-modal.component.d.ts +0 -14
- package/config/components/index.d.ts +0 -2
- package/config/components/settings/audit-log-settings.component.d.ts +0 -8
- package/config/components/settings/index.d.ts +0 -2
- package/config/components/settings/tabs/audit-log-settings-general/audit-log-settings-general.component.d.ts +0 -6
- package/config/components/settings/tabs/audit-log-settings-global/audit-log-settings-global.component.d.ts +0 -7
- package/config/components/settings/tabs/index.d.ts +0 -2
- package/config/enums/index.d.ts +0 -3
- package/config/enums/policy-names.d.ts +0 -3
- package/config/enums/route-names.d.ts +0 -2
- package/config/enums/setting-tab-names.d.ts +0 -3
- package/config/providers/audit-logging-config.provider.d.ts +0 -1
- package/config/providers/entity-details.provider.d.ts +0 -7
- package/config/providers/entity-history.provider.d.ts +0 -7
- package/config/providers/index.d.ts +0 -5
- package/config/providers/route.provider.d.ts +0 -2
- package/config/providers/setting-tab.provider.d.ts +0 -2
- package/config/public-api.d.ts +0 -6
- package/config/services/entity-change-modal.service.d.ts +0 -15
- package/config/services/index.d.ts +0 -1
- package/lib/audit-logging-routing.module.d.ts +0 -7
- package/lib/audit-logging.module.d.ts +0 -25
- package/lib/audit-logging.routes.d.ts +0 -3
- package/lib/components/audit-logs/audit-logs.component.d.ts +0 -29
- package/lib/components/audit-logs/index.d.ts +0 -1
- package/lib/components/entity-change/entity-changes.component.d.ts +0 -23
- package/lib/components/index.d.ts +0 -5
- package/lib/components/widgets/average-execution-duration-widget.component.d.ts +0 -24
- package/lib/components/widgets/error-rate-widget.component.d.ts +0 -24
- package/lib/constants/http.d.ts +0 -5
- package/lib/constants/index.d.ts +0 -1
- package/lib/defaults/default-audit-logs-entity-actions.d.ts +0 -3
- package/lib/defaults/default-audit-logs-entity-props.d.ts +0 -3
- package/lib/defaults/default-audit-logs-toolbar-actions.d.ts +0 -3
- package/lib/defaults/default-entity-changes-entity-actions.d.ts +0 -3
- package/lib/enums/components.d.ts +0 -4
- package/lib/enums/entity-change.d.ts +0 -5
- package/lib/enums/index.d.ts +0 -2
- package/lib/guards/audit-logging.guard.d.ts +0 -14
- package/lib/guards/extensions.guard.d.ts +0 -11
- package/lib/guards/index.d.ts +0 -2
- package/lib/models/audit-logging.d.ts +0 -9
- package/lib/models/config-options.d.ts +0 -18
- package/lib/models/index.d.ts +0 -2
- package/lib/resolvers/extensions.resolver.d.ts +0 -2
- package/lib/resolvers/index.d.ts +0 -1
- package/lib/tokens/entity-details.token.d.ts +0 -2
- package/lib/tokens/extensions.token.d.ts +0 -23
- package/lib/tokens/index.d.ts +0 -2
- package/proxy/lib/index.d.ts +0 -2
- package/proxy/lib/proxy/audit-logging/audit-log-settings.service.d.ts +0 -14
- package/proxy/lib/proxy/audit-logging/audit-logs.service.d.ts +0 -19
- package/proxy/lib/proxy/audit-logging/index.d.ts +0 -3
- package/proxy/lib/proxy/audit-logging/models.d.ts +0 -105
- package/proxy/lib/proxy/auditing/entity-change-type.enum.d.ts +0 -6
- package/proxy/lib/proxy/auditing/index.d.ts +0 -1
- package/proxy/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -9
package/common/index.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { LocalizationService } from '@abp/ng.core';
|
|
2
|
+
import { EntityChangeWithUsernameDto, EntityChangeDto, EntityPropertyChangeDto, ExportAuditLogsOutput, ExportEntityChangesOutput } from '@volo/abp.ng.audit-logging/proxy';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, Injector } from '@angular/core';
|
|
5
|
+
import { ModuleVisibility } from '@volo/abp.commercial.ng.ui/config';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
|
|
8
|
+
declare class EntityChangeDetailsComponent {
|
|
9
|
+
set itemWithUserName(item: EntityChangeWithUsernameDto);
|
|
10
|
+
readonly localization: LocalizationService;
|
|
11
|
+
entityChange: EntityChangeDto;
|
|
12
|
+
userName: string;
|
|
13
|
+
changeType: string;
|
|
14
|
+
getPropColor(propertyChange: EntityPropertyChangeDto): string;
|
|
15
|
+
getEntityChangeTimeParams(): string[];
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeDetailsComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeDetailsComponent, "abp-entity-change-details", never, { "itemWithUserName": { "alias": "itemWithUserName"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const enum eAuditLoggingRouteNames {
|
|
21
|
+
AuditLogging = "AbpAuditLogging::Menu:AuditLogging"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const AUDIT_LOGGING_FEATURES: InjectionToken<Observable<ModuleVisibility>>;
|
|
25
|
+
declare const SET_AUDIT_LOGGING_ROUTE_VISIBILITY: InjectionToken<void>;
|
|
26
|
+
declare const AUDIT_LOGGING_FEATURES_PROVIDERS: i0.EnvironmentProviders[];
|
|
27
|
+
|
|
28
|
+
declare function handleExcelExport(exportObservable: Observable<ExportAuditLogsOutput | ExportEntityChangesOutput>, injector: Injector): void;
|
|
29
|
+
|
|
30
|
+
export { AUDIT_LOGGING_FEATURES, AUDIT_LOGGING_FEATURES_PROVIDERS, EntityChangeDetailsComponent, SET_AUDIT_LOGGING_ROUTE_VISIBILITY, eAuditLoggingRouteNames, handleExcelExport };
|
package/config/index.d.ts
CHANGED
|
@@ -1,5 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, ChangeDetectorRef, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
4
|
+
import * as i1 from '@abp/ng.core';
|
|
5
|
+
import { ConfigStateService, SessionStateService, TrackByService, ContentProjectionService } from '@abp/ng.core';
|
|
6
|
+
import * as i2 from '@abp/ng.theme.shared';
|
|
7
|
+
import { ToasterService } from '@abp/ng.theme.shared';
|
|
8
|
+
import { AuditLogSettingsService, EntityChangeWithUsernameDto, AuditLogsService } from '@volo/abp.ng.audit-logging/proxy';
|
|
9
|
+
import * as i3 from '@volo/abp.ng.audit-logging/common';
|
|
10
|
+
export { eAuditLoggingRouteNames } from '@volo/abp.ng.audit-logging/common';
|
|
11
|
+
|
|
12
|
+
declare abstract class AbstractAuditLogSettingsComponent implements OnInit {
|
|
13
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
14
|
+
protected readonly fb: FormBuilder;
|
|
15
|
+
protected readonly toasterService: ToasterService;
|
|
16
|
+
protected readonly configState: ConfigStateService;
|
|
17
|
+
protected readonly settingsService: AuditLogSettingsService;
|
|
18
|
+
globalTab: boolean;
|
|
19
|
+
today: Date;
|
|
20
|
+
isTenant: boolean;
|
|
21
|
+
form: FormGroup;
|
|
22
|
+
private _loading;
|
|
23
|
+
set loading(value: boolean);
|
|
24
|
+
get loading(): boolean;
|
|
25
|
+
protected buildForm(): void;
|
|
26
|
+
protected adjustFormValues(): void;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
submit(): void;
|
|
29
|
+
getDateBeforeToday(day: number): Date;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAuditLogSettingsComponent, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAuditLogSettingsComponent, never, never, { "isTenant": { "alias": "isTenant"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class AuditLogSettingsComponent {
|
|
35
|
+
protected readonly sessionStateService: SessionStateService;
|
|
36
|
+
isTenant: boolean;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsComponent, "abp-audit-log-settings", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class AuditLogSettingsGeneralComponent extends AbstractAuditLogSettingsComponent {
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsGeneralComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsGeneralComponent, "abp-audit-log-settings-general", never, {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class AuditLogSettingsGlobalComponent extends AbstractAuditLogSettingsComponent {
|
|
47
|
+
globalTab: boolean;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuditLogSettingsGlobalComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuditLogSettingsGlobalComponent, "abp-audit-log-settings-global", never, {}, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class EntityChangeModalComponent {
|
|
53
|
+
readonly cdRef: ChangeDetectorRef;
|
|
54
|
+
readonly track: TrackByService<any>;
|
|
55
|
+
history: EntityChangeWithUsernameDto[];
|
|
56
|
+
entityId: string;
|
|
57
|
+
entityTypeFullName: string;
|
|
58
|
+
visible: boolean;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeModalComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityChangeModalComponent, "abp-entity-change-modal", never, {}, {}, never, never, true, never>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare const enum eAuditLoggingPolicyNames {
|
|
64
|
+
AuditLogging = "AuditLogging.AuditLogs"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare const enum eAuditLoggingSettingTabNames {
|
|
68
|
+
AuditLogging = "AbpAuditLogging::Menu:AuditLogging"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class EntityChangeModalService {
|
|
72
|
+
private auditLogsService;
|
|
73
|
+
private contentProjectionService;
|
|
74
|
+
private modalRef;
|
|
75
|
+
constructor(auditLogsService: AuditLogsService, contentProjectionService: ContentProjectionService);
|
|
76
|
+
private projectModal;
|
|
77
|
+
detectChanges(): void;
|
|
78
|
+
showDetails(entityChangeId: string): void;
|
|
79
|
+
showHistory(entityId: string, entityTypeFullName: string): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityChangeModalService, never>;
|
|
81
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EntityChangeModalService>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare const ENTITY_DETAILS_PROVIDERS: {
|
|
85
|
+
provide: i0.InjectionToken<(entityChangeId: string) => void>;
|
|
86
|
+
useFactory: typeof bindShowDetails;
|
|
87
|
+
deps: (typeof EntityChangeModalService)[];
|
|
88
|
+
}[];
|
|
89
|
+
declare function bindShowDetails(service: EntityChangeModalService): any;
|
|
90
|
+
|
|
91
|
+
declare const ENTITY_HISTORY_PROVIDERS: {
|
|
92
|
+
provide: i0.InjectionToken<(entityId: string, entityTypeFullName: string) => void>;
|
|
93
|
+
useFactory: typeof bindShowHistory;
|
|
94
|
+
deps: (typeof EntityChangeModalService)[];
|
|
95
|
+
}[];
|
|
96
|
+
declare function bindShowHistory(service: EntityChangeModalService): any;
|
|
97
|
+
|
|
98
|
+
declare const AUDIT_LOGGING_ROUTE_PROVIDERS: i0.EnvironmentProviders[];
|
|
99
|
+
declare function configureRoutes(): void;
|
|
100
|
+
|
|
101
|
+
declare const AUDIT_LOGGING_SETTING_TAB_PROVIDERS: i0.EnvironmentProviders[];
|
|
102
|
+
declare function configureSettingTabs(): void;
|
|
103
|
+
|
|
104
|
+
declare function provideAuditLoggingConfig(): i0.EnvironmentProviders;
|
|
105
|
+
|
|
106
|
+
declare class AuditLoggingConfigModule {
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated forRoot method is deprecated, use `provideAuditLoggingConfig` *function* for config settings.
|
|
109
|
+
*/
|
|
110
|
+
static forRoot(): ModuleWithProviders<AuditLoggingConfigModule>;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuditLoggingConfigModule, never>;
|
|
112
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AuditLoggingConfigModule, never, [typeof i1.CoreModule, typeof i2.ThemeSharedModule, typeof i3.EntityChangeDetailsComponent, typeof EntityChangeModalComponent], [typeof EntityChangeModalComponent]>;
|
|
113
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AuditLoggingConfigModule>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
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, eAuditLoggingPolicyNames, eAuditLoggingSettingTabNames, provideAuditLoggingConfig };
|
|
@@ -1,35 +1,13 @@
|
|
|
1
|
-
import { ConfigStateService, featuresFactory, RoutesService, LocalizationService, LocalizationPipe, ShortDateTimePipe } from '@abp/ng.core';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';
|
|
2
|
+
import { inject, Input, Component, InjectionToken, provideAppInitializer, DestroyRef } from '@angular/core';
|
|
5
3
|
import * as i1 from '@ng-bootstrap/ng-bootstrap';
|
|
6
4
|
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { LocalizationService, LocalizationPipe, ShortDateTimePipe, ConfigStateService, featuresFactory, RoutesService, AbpWindowService } from '@abp/ng.core';
|
|
7
6
|
import { EntityChangeType } from '@volo/abp.ng.audit-logging/proxy';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const configState = inject(ConfigStateService);
|
|
13
|
-
const featureKey = 'AuditLogging.Enable';
|
|
14
|
-
const mapFn = features => ({
|
|
15
|
-
enable: features[featureKey].toLowerCase() !== 'false',
|
|
16
|
-
});
|
|
17
|
-
return featuresFactory(configState, [featureKey], mapFn);
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
const SET_AUDIT_LOGGING_ROUTE_VISIBILITY = new InjectionToken('SET_AUDIT_LOGGING_ROUTE_VISIBILITY', {
|
|
21
|
-
providedIn: 'root',
|
|
22
|
-
factory: () => {
|
|
23
|
-
const routes = inject(RoutesService);
|
|
24
|
-
const stream = inject(AUDIT_LOGGING_FEATURES);
|
|
25
|
-
setModuleVisibilityFactory(stream, routes, "AbpAuditLogging::Menu:AuditLogging" /* eAuditLoggingRouteNames.AuditLogging */).subscribe();
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
const AUDIT_LOGGING_FEATURES_PROVIDERS = [
|
|
29
|
-
provideAppInitializer(() => {
|
|
30
|
-
inject(SET_AUDIT_LOGGING_ROUTE_VISIBILITY);
|
|
31
|
-
}),
|
|
32
|
-
];
|
|
7
|
+
import { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';
|
|
8
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
9
|
+
import { switchMap, of, tap } from 'rxjs';
|
|
10
|
+
import { ToasterService } from '@abp/ng.theme.shared';
|
|
33
11
|
|
|
34
12
|
class EntityChangeDetailsComponent {
|
|
35
13
|
constructor() {
|
|
@@ -70,19 +48,73 @@ class EntityChangeDetailsComponent {
|
|
|
70
48
|
const changeTypeLocalized = this.localization.instant('AbpAuditLogging::' + this.changeType);
|
|
71
49
|
return [changeTypeLocalized, timeAgo, this.userName];
|
|
72
50
|
}
|
|
73
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
74
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", 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: NgbTooltipModule }, { kind: "directive", type: i1.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }] }); }
|
|
75
53
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{
|
|
77
55
|
type: Component,
|
|
78
56
|
args: [{ selector: 'abp-entity-change-details', imports: [NgbTooltipModule, LocalizationPipe, ShortDateTimePipe], 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"] }]
|
|
79
57
|
}], propDecorators: { itemWithUserName: [{
|
|
80
58
|
type: Input
|
|
81
59
|
}] } });
|
|
82
60
|
|
|
61
|
+
const AUDIT_LOGGING_FEATURES = new InjectionToken('AUDIT_LOGGING_FEATURES', {
|
|
62
|
+
providedIn: 'root',
|
|
63
|
+
factory: () => {
|
|
64
|
+
const configState = inject(ConfigStateService);
|
|
65
|
+
const featureKey = 'AuditLogging.Enable';
|
|
66
|
+
const mapFn = features => ({
|
|
67
|
+
enable: features[featureKey].toLowerCase() !== 'false',
|
|
68
|
+
});
|
|
69
|
+
return featuresFactory(configState, [featureKey], mapFn);
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
const SET_AUDIT_LOGGING_ROUTE_VISIBILITY = new InjectionToken('SET_AUDIT_LOGGING_ROUTE_VISIBILITY', {
|
|
73
|
+
providedIn: 'root',
|
|
74
|
+
factory: () => {
|
|
75
|
+
const routes = inject(RoutesService);
|
|
76
|
+
const stream = inject(AUDIT_LOGGING_FEATURES);
|
|
77
|
+
setModuleVisibilityFactory(stream, routes, "AbpAuditLogging::Menu:AuditLogging" /* eAuditLoggingRouteNames.AuditLogging */).subscribe();
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
const AUDIT_LOGGING_FEATURES_PROVIDERS = [
|
|
81
|
+
provideAppInitializer(() => {
|
|
82
|
+
inject(SET_AUDIT_LOGGING_ROUTE_VISIBILITY);
|
|
83
|
+
}),
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
function handleExcelExport(exportObservable, injector) {
|
|
87
|
+
const abpWindowService = injector.get(AbpWindowService);
|
|
88
|
+
const toasterService = injector.get(ToasterService);
|
|
89
|
+
const destroyRef = injector.get(DestroyRef);
|
|
90
|
+
if (!abpWindowService || !toasterService) {
|
|
91
|
+
toasterService.error('AbpAuditLogging::ExportFailed');
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
exportObservable
|
|
95
|
+
.pipe(switchMap((file) => {
|
|
96
|
+
const binaryString = atob(String(file.fileData));
|
|
97
|
+
const byteArray = Uint8Array.from(binaryString, char => char.charCodeAt(0));
|
|
98
|
+
const blob = new Blob([byteArray], {
|
|
99
|
+
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
100
|
+
});
|
|
101
|
+
return of({ blob, fileName: file.fileName });
|
|
102
|
+
}), tap(({ blob, fileName }) => {
|
|
103
|
+
try {
|
|
104
|
+
abpWindowService.downloadBlob(blob, fileName);
|
|
105
|
+
toasterService.success('AbpAuditLogging::ExportCompleted');
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
toasterService.error('AbpAuditLogging::ExportFailed');
|
|
109
|
+
console.error('Download failed:', error);
|
|
110
|
+
}
|
|
111
|
+
}), takeUntilDestroyed(destroyRef))
|
|
112
|
+
.subscribe();
|
|
113
|
+
}
|
|
114
|
+
|
|
83
115
|
/**
|
|
84
116
|
* Generated bundle index. Do not edit.
|
|
85
117
|
*/
|
|
86
118
|
|
|
87
|
-
export { AUDIT_LOGGING_FEATURES, AUDIT_LOGGING_FEATURES_PROVIDERS, EntityChangeDetailsComponent, SET_AUDIT_LOGGING_ROUTE_VISIBILITY };
|
|
119
|
+
export { AUDIT_LOGGING_FEATURES, AUDIT_LOGGING_FEATURES_PROVIDERS, EntityChangeDetailsComponent, SET_AUDIT_LOGGING_ROUTE_VISIBILITY, handleExcelExport };
|
|
88
120
|
//# 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/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\nimport { LocalizationPipe, LocalizationService, ShortDateTimePipe } 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\n\r\n@Component({\r\n selector: 'abp-entity-change-details',\r\n templateUrl: './entity-change-details.component.html',\r\n imports: [NgbTooltipModule, LocalizationPipe, ShortDateTimePipe],\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":";;;;;;;;MAMa,sBAAsB,GAAG,IAAI,cAAc,CACtD,wBAAwB,EACxB;AACE,IAAA,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAK;AACZ,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;QAC9C,MAAM,UAAU,GAAG,qBAAqB;AACxC,QAAA,MAAM,KAAK,GAAG,QAAQ,KAAK;YACzB,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,KAAK,OAAO;AACvD,SAAA,CAAC;QAEF,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;KACzD;AACF,CAAA;MAGU,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,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED5BY,gBAAgB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,eAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,cAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,YAAA,EAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,OAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,gBAAgB,mDAAE,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAiBpD,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBApBxC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,2BAA2B,WAE5B,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,EAAA,QAAA,EAAA,kkDAAA,EAAA,MAAA,EAAA,CAAA,+GAAA,CAAA,EAAA;8BAkBnD,gBAAgB,EAAA,CAAA;sBAA5B;;;AE/BH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"volo-abp.ng.audit-logging-common.mjs","sources":["../tmp-esm2022/common/components/entity-change-details/entity-change-details.component.js","../tmp-esm2022/common/tokens/features.token.js","../tmp-esm2022/common/utils/export-utils.js","../tmp-esm2022/common/volo-abp.ng.audit-logging-common.js"],"sourcesContent":["import { Component, inject, Input } from '@angular/core';\nimport { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';\nimport { LocalizationPipe, LocalizationService, ShortDateTimePipe } from '@abp/ng.core';\nimport { EntityChangeType, } from '@volo/abp.ng.audit-logging/proxy';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@ng-bootstrap/ng-bootstrap\";\nexport class EntityChangeDetailsComponent {\n constructor() {\n this.localization = inject(LocalizationService);\n }\n set itemWithUserName(item) {\n this.changeType = EntityChangeType[item.entityChange.changeType];\n this.userName = item.userName;\n this.entityChange = item.entityChange;\n }\n getPropColor(propertyChange) {\n if (this.entityChange.changeType !== EntityChangeType.Updated) {\n return;\n }\n const { originalValue, newValue } = propertyChange;\n return newValue !== originalValue ? 'red' : undefined;\n }\n getEntityChangeTimeParams() {\n if (!this.entityChange.changeTime) {\n return;\n }\n const now = new Date();\n const changeDate = new Date(this.entityChange.changeTime);\n const timeDifference = now.getTime() - changeDate.getTime();\n const diffInMinutes = Math.floor(timeDifference / (1000 * 60));\n const diffInHours = Math.floor(diffInMinutes / 60);\n const diffInDays = Math.floor(diffInHours / 24);\n let timeAgo;\n if (diffInDays > 0) {\n timeAgo = this.localization.instant('AbpAuditLogging::DaysAgo', diffInDays.toString());\n }\n else if (diffInHours > 0) {\n timeAgo = this.localization.instant('AbpAuditLogging::HoursAgo', diffInHours.toString());\n }\n else {\n timeAgo = this.localization.instant('AbpAuditLogging::MinutesAgo', diffInMinutes.toString());\n }\n const changeTypeLocalized = this.localization.instant('AbpAuditLogging::' + this.changeType);\n return [changeTypeLocalized, timeAgo, this.userName];\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: EntityChangeDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.0.7\", 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: NgbTooltipModule }, { kind: \"directive\", type: i1.NgbTooltip, selector: \"[ngbTooltip]\", inputs: [\"animation\", \"autoClose\", \"placement\", \"popperOptions\", \"triggers\", \"positionTarget\", \"container\", \"disableTooltip\", \"tooltipClass\", \"tooltipContext\", \"openDelay\", \"closeDelay\", \"ngbTooltip\"], outputs: [\"shown\", \"hidden\"], exportAs: [\"ngbTooltip\"] }, { kind: \"pipe\", type: LocalizationPipe, name: \"abpLocalization\" }, { kind: \"pipe\", type: ShortDateTimePipe, name: \"shortDateTime\" }] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.7\", ngImport: i0, type: EntityChangeDetailsComponent, decorators: [{\n type: Component,\n args: [{ selector: 'abp-entity-change-details', imports: [NgbTooltipModule, LocalizationPipe, ShortDateTimePipe], 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\"] }]\n }], propDecorators: { itemWithUserName: [{\n type: Input\n }] } });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LWNoYW5nZS1kZXRhaWxzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2F1ZGl0LWxvZ2dpbmcvY29tbW9uL3NyYy9jb21wb25lbnRzL2VudGl0eS1jaGFuZ2UtZGV0YWlscy9lbnRpdHktY2hhbmdlLWRldGFpbHMuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYXVkaXQtbG9nZ2luZy9jb21tb24vc3JjL2NvbXBvbmVudHMvZW50aXR5LWNoYW5nZS1kZXRhaWxzL2VudGl0eS1jaGFuZ2UtZGV0YWlscy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLG1CQUFtQixFQUFFLGlCQUFpQixFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3hGLE9BQU8sRUFFTCxnQkFBZ0IsR0FHakIsTUFBTSxrQ0FBa0MsQ0FBQzs7O0FBc0IxQyxNQUFNLE9BQU8sNEJBQTRCO0lBcEJ6QztRQTJCa0IsaUJBQ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Zz1cImpzb25cIiBbc3R5bGUuY29sb3JdPVwiZ2V0UHJvcENvbG9yKHByb3ApXCI+e3sgcHJvcC5uZXdWYWx1ZSB9fTwvcHJlPlxyXG4gICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgPC90cj5cclxuICAgICAgICB9XHJcbiAgICAgIH0gQGVsc2Uge1xyXG4gICAgICAgIDx0cj5cclxuICAgICAgICAgIDx0ZCBjb2xzcGFuPVwiM1wiPnt7ICdBYnBVaTo6Tm9EYXRhQXZhaWxhYmxlSW5EYXRhdGFibGUnIHwgYWJwTG9jYWxpemF0aW9uIH19PC90ZD5cclxuICAgICAgICA8L3RyPlxyXG4gICAgICB9XHJcbiAgICA8L3Rib2R5PlxyXG4gIDwvdGFibGU+XHJcbn1cclxuIl19","import { ConfigStateService, featuresFactory, RoutesService } from '@abp/ng.core';\nimport { inject, InjectionToken, provideAppInitializer } from '@angular/core';\nimport { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';\nexport const AUDIT_LOGGING_FEATURES = new InjectionToken('AUDIT_LOGGING_FEATURES', {\n providedIn: 'root',\n factory: () => {\n const configState = inject(ConfigStateService);\n const featureKey = 'AuditLogging.Enable';\n const mapFn = features => ({\n enable: features[featureKey].toLowerCase() !== 'false',\n });\n return featuresFactory(configState, [featureKey], mapFn);\n },\n});\nexport const SET_AUDIT_LOGGING_ROUTE_VISIBILITY = new InjectionToken('SET_AUDIT_LOGGING_ROUTE_VISIBILITY', {\n providedIn: 'root',\n factory: () => {\n const routes = inject(RoutesService);\n const stream = inject(AUDIT_LOGGING_FEATURES);\n setModuleVisibilityFactory(stream, routes, \"AbpAuditLogging::Menu:AuditLogging\" /* eAuditLoggingRouteNames.AuditLogging */).subscribe();\n },\n});\nexport const AUDIT_LOGGING_FEATURES_PROVIDERS = [\n provideAppInitializer(() => {\n inject(SET_AUDIT_LOGGING_ROUTE_VISIBILITY);\n }),\n];\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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aW5nUm91dGVOYW1lcy5BdWRpdExvZ2dpbmcpLnN1YnNjcmliZSgpO1xyXG4gICAgfSxcclxuICB9LFxyXG4pO1xyXG5cclxuZXhwb3J0IGNvbnN0IEFVRElUX0xPR0dJTkdfRkVBVFVSRVNfUFJPVklERVJTID0gW1xyXG4gIHByb3ZpZGVBcHBJbml0aWFsaXplcigoKSA9PiB7XHJcbiAgICBpbmplY3QoU0VUX0FVRElUX0xPR0dJTkdfUk9VVEVfVklTSUJJTElUWSk7XHJcbiAgfSksXHJcbl07XHJcbiJdfQ==","import { DestroyRef } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { of, switchMap, tap } from 'rxjs';\nimport { AbpWindowService } from '@abp/ng.core';\nimport { ToasterService } from '@abp/ng.theme.shared';\nexport function handleExcelExport(exportObservable, injector) {\n const abpWindowService = injector.get(AbpWindowService);\n const toasterService = injector.get(ToasterService);\n const destroyRef = injector.get(DestroyRef);\n if (!abpWindowService || !toasterService) {\n toasterService.error('AbpAuditLogging::ExportFailed');\n return;\n }\n exportObservable\n .pipe(switchMap((file) => {\n const binaryString = atob(String(file.fileData));\n const byteArray = Uint8Array.from(binaryString, char => char.charCodeAt(0));\n const blob = new Blob([byteArray], {\n type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n });\n return of({ blob, fileName: file.fileName });\n }), tap(({ blob, fileName }) => {\n try {\n abpWindowService.downloadBlob(blob, fileName);\n toasterService.success('AbpAuditLogging::ExportCompleted');\n }\n catch (error) {\n toasterService.error('AbpAuditLogging::ExportFailed');\n console.error('Download failed:', error);\n }\n }), takeUntilDestroyed(destroyRef))\n .subscribe();\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0LXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYXVkaXQtbG9nZ2luZy9jb21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EZXN0cm95ZWQoZGVzdHJveVJlZiksXHJcbiAgICApXHJcbiAgICAuc3Vic2NyaWJlKCk7XHJcbn1cclxuIl19","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './public-api';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9sby1hYnAubmcuYXVkaXQtbG9nZ2luZy1jb21tb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hdWRpdC1sb2dnaW5nL2NvbW1vbi9zcmMvdm9sby1hYnAubmcuYXVkaXQtbG9nZ2luZy1jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ=="],"names":[],"mappings":";;;;;;;;;;;AAMO,MAAM,4BAA4B,CAAC;AAC1C,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACvD,IAAI;AACJ,IAAI,IAAI,gBAAgB,CAAC,IAAI,EAAE;AAC/B,QAAQ,IAAI,CAAC,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC;AACxE,QAAQ,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ;AACrC,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY;AAC7C,IAAI;AACJ,IAAI,YAAY,CAAC,cAAc,EAAE;AACjC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,KAAK,gBAAgB,CAAC,OAAO,EAAE;AACvE,YAAY;AACZ,QAAQ;AACR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ACV,QAAQ,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;AACpD,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK;AACpC,QAAQ,IAAI;AACZ,YAAY,gBAAgB,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC;AACzD,YAAY,cAAc,CAAC,OAAO,CAAC,kCAAkC,CAAC;AACtE,QAAQ;AACR,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,cAAc,CAAC,KAAK,CAAC,+BAA+B,CAAC;AACjE,YAAY,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC;AACpD,QAAQ;AACR,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC;AACtC,SAAS,SAAS,EAAE;AACpB;;AChCA;AACA;AACA;;;;"}
|
|
@@ -76,20 +76,20 @@ class AbstractAuditLogSettingsComponent {
|
|
|
76
76
|
date.setDate(date.getDate() - day);
|
|
77
77
|
return date;
|
|
78
78
|
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
80
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AbstractAuditLogSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
80
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: AbstractAuditLogSettingsComponent, isStandalone: true, inputs: { isTenant: "isTenant" }, ngImport: i0 }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AbstractAuditLogSettingsComponent, decorators: [{
|
|
83
83
|
type: Directive
|
|
84
84
|
}], propDecorators: { isTenant: [{
|
|
85
85
|
type: Input
|
|
86
86
|
}] } });
|
|
87
87
|
|
|
88
88
|
class AuditLogSettingsGeneralComponent extends AbstractAuditLogSettingsComponent {
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
90
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsGeneralComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
90
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsGeneralComponent, decorators: [{
|
|
93
93
|
type: Component,
|
|
94
94
|
args: [{ selector: 'abp-audit-log-settings-general', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ReactiveFormsModule, LocalizationPipe, DatePipe, ButtonComponent], 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" }]
|
|
95
95
|
}] });
|
|
@@ -99,10 +99,10 @@ class AuditLogSettingsGlobalComponent extends AbstractAuditLogSettingsComponent
|
|
|
99
99
|
super(...arguments);
|
|
100
100
|
this.globalTab = true;
|
|
101
101
|
}
|
|
102
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
103
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsGlobalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
103
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
104
104
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsGlobalComponent, decorators: [{
|
|
106
106
|
type: Component,
|
|
107
107
|
args: [{ selector: 'abp-audit-log-settings-global', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ReactiveFormsModule, LocalizationPipe, DatePipe, ButtonComponent], 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" }]
|
|
108
108
|
}] });
|
|
@@ -112,10 +112,10 @@ class AuditLogSettingsComponent {
|
|
|
112
112
|
this.sessionStateService = inject(SessionStateService);
|
|
113
113
|
this.isTenant = this.sessionStateService.getTenant()?.isAvailable;
|
|
114
114
|
}
|
|
115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
116
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
116
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: AuditLogSettingsGeneralComponent, selector: "abp-audit-log-settings-general" }, { kind: "component", type: AuditLogSettingsGlobalComponent, selector: "abp-audit-log-settings-global" }] }); }
|
|
117
117
|
}
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLogSettingsComponent, decorators: [{
|
|
119
119
|
type: Component,
|
|
120
120
|
args: [{ selector: 'abp-audit-log-settings', imports: [
|
|
121
121
|
NgbNavModule,
|
|
@@ -132,10 +132,10 @@ class EntityChangeModalComponent {
|
|
|
132
132
|
this.history = [];
|
|
133
133
|
this.visible = false;
|
|
134
134
|
}
|
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
136
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: EntityChangeModalComponent, isStandalone: true, 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 $index) {\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: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: EntityChangeDetailsComponent, selector: "abp-entity-change-details", inputs: ["itemWithUserName"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeModalComponent, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
140
|
args: [{ selector: 'abp-entity-change-modal', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ModalCloseDirective, LocalizationPipe, EntityChangeDetailsComponent, ModalComponent], 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 $index) {\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" }]
|
|
141
141
|
}] });
|
|
@@ -174,10 +174,10 @@ class EntityChangeModalService {
|
|
|
174
174
|
this.detectChanges();
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
178
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeModalService, deps: [{ token: i1$2.AuditLogsService }, { token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
178
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeModalService, providedIn: 'root' }); }
|
|
179
179
|
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EntityChangeModalService, decorators: [{
|
|
181
181
|
type: Injectable,
|
|
182
182
|
args: [{
|
|
183
183
|
providedIn: 'root',
|
|
@@ -263,17 +263,17 @@ class AuditLoggingConfigModule {
|
|
|
263
263
|
providers: [provideAuditLoggingConfig()],
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
267
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLoggingConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
267
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule,
|
|
268
268
|
ThemeSharedModule,
|
|
269
269
|
EntityChangeDetailsComponent,
|
|
270
270
|
EntityChangeModalComponent], exports: [EntityChangeModalComponent] }); }
|
|
271
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
271
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLoggingConfigModule, imports: [CoreModule,
|
|
272
272
|
ThemeSharedModule,
|
|
273
273
|
EntityChangeDetailsComponent,
|
|
274
274
|
EntityChangeModalComponent] }); }
|
|
275
275
|
}
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AuditLoggingConfigModule, decorators: [{
|
|
277
277
|
type: NgModule,
|
|
278
278
|
args: [{
|
|
279
279
|
exports: [EntityChangeModalComponent],
|