monkey-front-core 0.0.228 → 0.0.232
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/esm2020/lib/components/alerts/alerts.component.mjs +35 -0
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -0
- package/esm2020/lib/components/alerts/index.mjs +3 -0
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/pipes/index.mjs +2 -1
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +21 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +3 -3
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +32 -27
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +40 -0
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +8 -5
- package/esm2020/lib/monkey-front-core.module.mjs +8 -6
- package/fesm2015/monkey-front-core.mjs +386 -279
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +385 -279
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +16 -0
- package/lib/components/alerts/alerts.module.d.ts +10 -0
- package/lib/components/alerts/index.d.ts +2 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/core/interfaces/monkeyecx-config.d.ts +7 -0
- package/lib/core/pipes/index.d.ts +1 -0
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -0
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +1 -1
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +18 -17
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +11 -0
- package/lib/core/services/config/monkeyecx-config.service.d.ts +3 -1
- package/lib/monkey-front-core.module.d.ts +2 -1
- package/monkey-front-core-0.0.232.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.228.tgz +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MonkeyModalConfig, MonkeyStyleGuideModalService } from 'monkey-style-guide';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlertsComponent implements OnInit {
|
|
5
|
+
private modalService;
|
|
6
|
+
config: MonkeyModalConfig | null;
|
|
7
|
+
modalRef: any;
|
|
8
|
+
_img: string;
|
|
9
|
+
_title: string;
|
|
10
|
+
_message: string;
|
|
11
|
+
constructor(modalService: MonkeyStyleGuideModalService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onClose(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertsComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertsComponent, "monkeyecx-alerts", never, { "config": "config"; "modalRef": "modalRef"; }, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./alerts.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "monkey-style-guide";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
export declare class AlertsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlertsModule, [typeof i1.AlertsComponent], [typeof i2.CommonModule, typeof i3.MonkeyButtonModule, typeof i3.MonkeyModalModule, typeof i4.TranslateModule], [typeof i1.AlertsComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlertsModule>;
|
|
10
|
+
}
|
|
@@ -103,6 +103,12 @@ export interface MonkeyEcxConfigGA {
|
|
|
103
103
|
enabled: boolean;
|
|
104
104
|
key: string;
|
|
105
105
|
}
|
|
106
|
+
export interface MonkeyEcxConfigAlert {
|
|
107
|
+
img: string;
|
|
108
|
+
title: string;
|
|
109
|
+
message: string;
|
|
110
|
+
endDate: string;
|
|
111
|
+
}
|
|
106
112
|
export interface MonkeyEcxConfig {
|
|
107
113
|
program?: MonkeyEcxConfigProgram;
|
|
108
114
|
market?: MonkeyEcxConfigMarket;
|
|
@@ -114,5 +120,6 @@ export interface MonkeyEcxConfig {
|
|
|
114
120
|
messages?: MonkeyEcxConfigMessages;
|
|
115
121
|
externalSettings?: MonkeyEcxConfigExternalSettings;
|
|
116
122
|
ga?: MonkeyEcxConfigGA;
|
|
123
|
+
alert?: MonkeyEcxConfigAlert;
|
|
117
124
|
}
|
|
118
125
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MonkeyEcxDisplayInitialsPipe implements PipeTransform {
|
|
4
|
+
transform(name: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxDisplayInitialsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxDisplayInitialsPipe, "monkeyecxDisplayInitials">;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class MonkeyEcxFormatDocumentTypePipe implements PipeTransform {
|
|
4
|
-
transform(document: string): string;
|
|
4
|
+
transform(document: string, country?: string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatDocumentTypePipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatDocumentTypePipe, "monkeyecxFormatDocumentType">;
|
|
7
7
|
}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./monkeyecx-display-first-name";
|
|
3
|
-
import * as i2 from "./monkeyecx-
|
|
4
|
-
import * as i3 from "./monkeyecx-format-
|
|
5
|
-
import * as i4 from "./monkeyecx-format-
|
|
6
|
-
import * as i5 from "./monkeyecx-format-
|
|
7
|
-
import * as i6 from "./monkeyecx-format-
|
|
8
|
-
import * as i7 from "./monkeyecx-format-
|
|
9
|
-
import * as i8 from "./monkeyecx-format-
|
|
10
|
-
import * as i9 from "./monkeyecx-format-
|
|
11
|
-
import * as i10 from "./monkeyecx-format-
|
|
12
|
-
import * as i11 from "./monkeyecx-format-
|
|
13
|
-
import * as i12 from "./monkeyecx-format-
|
|
14
|
-
import * as i13 from "./monkeyecx-format-
|
|
15
|
-
import * as i14 from "./monkeyecx-
|
|
16
|
-
import * as i15 from "./monkeyecx-
|
|
17
|
-
import * as i16 from "./monkeyecx-format-
|
|
18
|
-
import * as i17 from "./monkeyecx-
|
|
3
|
+
import * as i2 from "./monkeyecx-display-initials";
|
|
4
|
+
import * as i3 from "./monkeyecx-format-address";
|
|
5
|
+
import * as i4 from "./monkeyecx-format-beautify-json";
|
|
6
|
+
import * as i5 from "./monkeyecx-format-currency";
|
|
7
|
+
import * as i6 from "./monkeyecx-format-date-group";
|
|
8
|
+
import * as i7 from "./monkeyecx-format-date-timelapse";
|
|
9
|
+
import * as i8 from "./monkeyecx-format-date-unix-timelapse";
|
|
10
|
+
import * as i9 from "./monkeyecx-format-document";
|
|
11
|
+
import * as i10 from "./monkeyecx-format-type-document";
|
|
12
|
+
import * as i11 from "./monkeyecx-format-number";
|
|
13
|
+
import * as i12 from "./monkeyecx-format-phone";
|
|
14
|
+
import * as i13 from "./monkeyecx-format-size";
|
|
15
|
+
import * as i14 from "./monkeyecx-format-tax";
|
|
16
|
+
import * as i15 from "./monkeyecx-format-value";
|
|
17
|
+
import * as i16 from "./monkeyecx-format-zipcode";
|
|
18
|
+
import * as i17 from "./monkeyecx-text-truncate";
|
|
19
|
+
import * as i18 from "./monkeyecx-truncate-qtd";
|
|
19
20
|
export declare class MonkeyEcxPipesModule {
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxPipesModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxPipesModule, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxPipesModule, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.MonkeyEcxDisplayInitialsPipe, typeof i3.MonkeyEcxFormatAddressPipe, typeof i4.MonkeyEcxFormatBeaufityJSONPipe, typeof i5.MonkeyEcxFormatCurrencyPipe, typeof i6.MonkeyEcxFormatDateGroupPipe, typeof i7.MonkeyEcxFormatDateTimelapsePipe, typeof i8.MonkeyEcxFormatDateUnixTimelapsePipe, typeof i9.MonkeyEcxFormatDocumentPipe, typeof i10.MonkeyEcxFormatDocumentTypePipe, typeof i11.MonkeyEcxFormatNumberPipe, typeof i12.MonkeyEcxFormatPhonePipe, typeof i13.MonkeyEcxFormatSizePipe, typeof i14.MonkeyEcxFormatTaxPipe, typeof i15.MonkeyEcxFormatValue, typeof i16.MonkeyEcxFormatZipCodePipe, typeof i17.MonkeyEcxTextTruncatePipe, typeof i18.MonkeyEcxTruncateQtdPipe], never, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.MonkeyEcxDisplayInitialsPipe, typeof i3.MonkeyEcxFormatAddressPipe, typeof i4.MonkeyEcxFormatBeaufityJSONPipe, typeof i5.MonkeyEcxFormatCurrencyPipe, typeof i6.MonkeyEcxFormatDateGroupPipe, typeof i7.MonkeyEcxFormatDateTimelapsePipe, typeof i8.MonkeyEcxFormatDateUnixTimelapsePipe, typeof i9.MonkeyEcxFormatDocumentPipe, typeof i10.MonkeyEcxFormatDocumentTypePipe, typeof i11.MonkeyEcxFormatNumberPipe, typeof i12.MonkeyEcxFormatPhonePipe, typeof i13.MonkeyEcxFormatSizePipe, typeof i14.MonkeyEcxFormatTaxPipe, typeof i15.MonkeyEcxFormatValue, typeof i16.MonkeyEcxFormatZipCodePipe, typeof i17.MonkeyEcxTextTruncatePipe, typeof i18.MonkeyEcxTruncateQtdPipe]>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyEcxPipesModule>;
|
|
23
24
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MonkeyStyleGuideModalService } from 'monkey-style-guide';
|
|
2
|
+
import { MonkeyEcxConfig } from '../../interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MonkeyEcxAlertsConfigService {
|
|
5
|
+
private modalService;
|
|
6
|
+
constructor(modalService: MonkeyStyleGuideModalService);
|
|
7
|
+
private handleValidation;
|
|
8
|
+
apply(config: MonkeyEcxConfig): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAlertsConfigService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAlertsConfigService>;
|
|
11
|
+
}
|
|
@@ -10,6 +10,7 @@ import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
|
10
10
|
import { MonkeyEcxErrorConfigService } from './monkeyecx-error-config.service';
|
|
11
11
|
import { MonkeyEcxFeatureToggleService } from './monkeyecx-feature-toggle.service';
|
|
12
12
|
import { MonkeyEcxGAConfigService } from './monkeyecx-ga-config.service';
|
|
13
|
+
import { MonkeyEcxAlertsConfigService } from './monkeyecx-alerts-config.service';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
15
16
|
private monkeyecxi18nConfigService;
|
|
@@ -21,9 +22,10 @@ export declare class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
21
22
|
private monkeyecxErrorConfigService;
|
|
22
23
|
private monkeyEcxFeatureToggleService;
|
|
23
24
|
private monkeyGAConfigService;
|
|
25
|
+
private monkeyEcxAlertsConfigService;
|
|
24
26
|
private readonly configSubject$;
|
|
25
27
|
private readonly configBoostrapSubject$;
|
|
26
|
-
constructor(monkeyecxService: MonkeyEcxService, monkeyecxi18nConfigService: MonkeyEcxi18nConfigService, monkeyecxLogsConfigService: MonkeyEcxLogsConfigService, monkeyStyleGuideSettingsService: MonkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService: MonkeyEcxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService: MonkeyEcxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService: MonkeyEcxMaintenanceConfigService, monkeyecxErrorConfigService: MonkeyEcxErrorConfigService, monkeyEcxFeatureToggleService: MonkeyEcxFeatureToggleService, monkeyGAConfigService: MonkeyEcxGAConfigService);
|
|
28
|
+
constructor(monkeyecxService: MonkeyEcxService, monkeyecxi18nConfigService: MonkeyEcxi18nConfigService, monkeyecxLogsConfigService: MonkeyEcxLogsConfigService, monkeyStyleGuideSettingsService: MonkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService: MonkeyEcxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService: MonkeyEcxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService: MonkeyEcxMaintenanceConfigService, monkeyecxErrorConfigService: MonkeyEcxErrorConfigService, monkeyEcxFeatureToggleService: MonkeyEcxFeatureToggleService, monkeyGAConfigService: MonkeyEcxGAConfigService, monkeyEcxAlertsConfigService: MonkeyEcxAlertsConfigService);
|
|
27
29
|
private internalValidations;
|
|
28
30
|
private getWhiteLabelSettings;
|
|
29
31
|
init(callback: Function, environment: any, identifyCode: string, monkeyecxCode?: string): void;
|
|
@@ -9,8 +9,9 @@ import * as i7 from "monkey-style-guide";
|
|
|
9
9
|
import * as i8 from "@angular/service-worker";
|
|
10
10
|
import * as i9 from "./components/closed-to-maintenance/closed-to-maintenance.module";
|
|
11
11
|
import * as i10 from "./components/version-changed/version-changed.module";
|
|
12
|
+
import * as i11 from "./components/alerts/alerts.module";
|
|
12
13
|
export declare class MonkeyFrontCoreModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFrontCoreModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFrontCoreModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.TranslateModule, typeof i4.MonkeyEcxConfigModule, typeof i5.MonkeyEcxHttpConfigInterceptorModule, typeof i6.MonkeyEcxErrorHandlingModule, typeof i7.MonkeyStyleGuideModule, typeof i8.ServiceWorkerModule, typeof i9.ClosedToMaintenanceModule, typeof i10.VersionChangedModule], never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFrontCoreModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.TranslateModule, typeof i4.MonkeyEcxConfigModule, typeof i5.MonkeyEcxHttpConfigInterceptorModule, typeof i6.MonkeyEcxErrorHandlingModule, typeof i7.MonkeyStyleGuideModule, typeof i8.ServiceWorkerModule, typeof i9.ClosedToMaintenanceModule, typeof i10.VersionChangedModule, typeof i11.AlertsModule], never>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyFrontCoreModule>;
|
|
16
17
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|