monkey-front-core 0.0.487 → 0.0.489
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/core/pipes/monkeyecx-format-currency.mjs +10 -11
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +4 -4
- package/fesm2015/monkey-front-core.mjs +51 -49
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +49 -49
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +3 -3
- package/monkey-front-core-0.0.489.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.487.tgz +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable,
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, DEFAULT_CURRENCY_CODE, Inject, InjectionToken, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
|
-
import { CommonModule, formatNumber, CurrencyPipe, registerLocaleData } from '@angular/common';
|
|
6
|
+
import { CommonModule, formatNumber, CurrencyPipe, DatePipe, registerLocaleData } from '@angular/common';
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import * as moment_ from 'moment';
|
|
@@ -12,12 +12,11 @@ import { throwError, BehaviorSubject, Subscription, interval, concat, Subject, o
|
|
|
12
12
|
import * as i1$2 from '@angular/common/http';
|
|
13
13
|
import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
14
14
|
import * as i2$1 from '@angular/platform-browser';
|
|
15
|
-
import * as i1$3 from 'ngx-cookie-service';
|
|
16
15
|
import * as i2$2 from '@angular/router';
|
|
17
16
|
import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel, Router } from '@angular/router';
|
|
18
17
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
19
18
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
20
|
-
import * as i1$
|
|
19
|
+
import * as i1$3 from '@angular/cdk/overlay';
|
|
21
20
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
22
21
|
import * as i2$3 from '@ngrx/store';
|
|
23
22
|
import { createAction, props, INIT, createReducer, on, createFeatureSelector, createSelector, Store, StoreModule } from '@ngrx/store';
|
|
@@ -27,9 +26,10 @@ import esCL from '@angular/common/locales/es-CL';
|
|
|
27
26
|
import esMX from '@angular/common/locales/es-MX';
|
|
28
27
|
import ptBr from '@angular/common/locales/pt';
|
|
29
28
|
import { datadogRum } from '@datadog/browser-rum';
|
|
30
|
-
import * as i1$
|
|
29
|
+
import * as i1$4 from '@angular/service-worker';
|
|
31
30
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
32
31
|
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
32
|
+
import * as i1$5 from 'ngx-cookie-service';
|
|
33
33
|
import { parseUrl } from 'query-string';
|
|
34
34
|
|
|
35
35
|
class AlertsComponent {
|
|
@@ -736,57 +736,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
736
736
|
}]
|
|
737
737
|
}], ctorParameters: function () { return []; } });
|
|
738
738
|
|
|
739
|
-
class MonkeyEcxCookieStorageService {
|
|
740
|
-
constructor(cookieService) {
|
|
741
|
-
this.cookieService = cookieService;
|
|
742
|
-
// not to do
|
|
743
|
-
}
|
|
744
|
-
setCookie(name, value, environment) {
|
|
745
|
-
this.removeCookie(name, environment);
|
|
746
|
-
const { urlDomain } = environment;
|
|
747
|
-
const handledDomain = urlDomain ? `.${urlDomain}` : '';
|
|
748
|
-
this.cookieService.set(name, value, undefined, '/', handledDomain, true, 'None');
|
|
749
|
-
}
|
|
750
|
-
getCookie(name) {
|
|
751
|
-
return this.cookieService.get(name);
|
|
752
|
-
}
|
|
753
|
-
removeCookie(name, environment) {
|
|
754
|
-
const { urlDomain } = environment;
|
|
755
|
-
const handledDomain = urlDomain ? `.${urlDomain}` : '';
|
|
756
|
-
this.cookieService.delete(name, '/', handledDomain, true, 'None');
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$3.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
760
|
-
MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
|
|
762
|
-
type: Injectable,
|
|
763
|
-
args: [{
|
|
764
|
-
providedIn: 'root'
|
|
765
|
-
}]
|
|
766
|
-
}], ctorParameters: function () { return [{ type: i1$3.CookieService }]; } });
|
|
767
|
-
|
|
768
739
|
class MonkeyEcxFormatCurrencyPipe {
|
|
769
|
-
constructor(
|
|
770
|
-
this.injector = injector;
|
|
740
|
+
constructor(currencyPipe, defaultCurencyCode) {
|
|
771
741
|
this.currencyPipe = currencyPipe;
|
|
742
|
+
this.defaultCurencyCode = defaultCurencyCode;
|
|
772
743
|
// not to do
|
|
773
744
|
}
|
|
774
745
|
transform(value, symbol = 'symbol') {
|
|
775
|
-
const
|
|
776
|
-
const cookie = cookieStorageService.getCookie('monkey-app-locale');
|
|
777
|
-
const i18n = JSON.parse(atob(cookie));
|
|
778
|
-
const { currency } = i18n;
|
|
746
|
+
const currency = this.defaultCurencyCode.toString();
|
|
779
747
|
return this.currencyPipe.transform(value, currency, symbol);
|
|
780
748
|
}
|
|
781
749
|
}
|
|
782
|
-
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token:
|
|
750
|
+
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i2.CurrencyPipe }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
783
751
|
MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
|
|
784
752
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
|
|
785
753
|
type: Pipe,
|
|
786
754
|
args: [{
|
|
787
755
|
name: 'monkeyecxFormatCurrency'
|
|
788
756
|
}]
|
|
789
|
-
}], ctorParameters: function () { return [{ type:
|
|
757
|
+
}], ctorParameters: function () { return [{ type: i2.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
|
|
758
|
+
type: Inject,
|
|
759
|
+
args: [DEFAULT_CURRENCY_CODE]
|
|
760
|
+
}] }]; } });
|
|
790
761
|
|
|
791
762
|
const MECX_TIMEZONEOFFSET = new InjectionToken('');
|
|
792
763
|
const MECX_DATE_FORMAT = new InjectionToken('');
|
|
@@ -1661,7 +1632,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1661
1632
|
MonkeyEcxTextTruncatePipe,
|
|
1662
1633
|
MonkeyEcxTruncateQtdPipe,
|
|
1663
1634
|
MonkeyEcxFormatDatePipe] });
|
|
1664
|
-
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
1635
|
+
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe, DatePipe] });
|
|
1665
1636
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
1666
1637
|
type: NgModule,
|
|
1667
1638
|
args: [{
|
|
@@ -1711,7 +1682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1711
1682
|
MonkeyEcxTruncateQtdPipe,
|
|
1712
1683
|
MonkeyEcxFormatDatePipe
|
|
1713
1684
|
],
|
|
1714
|
-
providers: [CurrencyPipe]
|
|
1685
|
+
providers: [CurrencyPipe, DatePipe]
|
|
1715
1686
|
}]
|
|
1716
1687
|
}] });
|
|
1717
1688
|
|
|
@@ -2544,14 +2515,14 @@ class MonkeyEcxPopoverDirective {
|
|
|
2544
2515
|
this.eventsSubs.unsubscribe();
|
|
2545
2516
|
}
|
|
2546
2517
|
}
|
|
2547
|
-
MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
2518
|
+
MonkeyEcxPopoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.Overlay }, { token: i1$3.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2548
2519
|
MonkeyEcxPopoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: MonkeyEcxPopoverDirective, selector: "[monkeyecxPopover]", inputs: { popover: ["monkeyecxPopover", "popover"], closed: ["monkeyecxPopoverClosed", "closed"], target: ["monkeyecxPopoverTarget", "target"], minwidth: ["monkeyecxPopoverMinwidth", "minwidth"], backdrop: ["monkeyecxPopoverBackdrop", "backdrop"], watch: ["monkeyecxPopoverWatch", "watch"], dir: ["monkeyecxPopoverDir", "dir"], contextmenu: ["monkeyecxPopoverContextmenu", "contextmenu"], height: ["monkeyecxPopoverHeight", "height"] }, ngImport: i0 });
|
|
2549
2520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
|
|
2550
2521
|
type: Directive,
|
|
2551
2522
|
args: [{
|
|
2552
2523
|
selector: '[monkeyecxPopover]'
|
|
2553
2524
|
}]
|
|
2554
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
2525
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.Overlay }, { type: i1$3.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
|
|
2555
2526
|
type: Inject,
|
|
2556
2527
|
args: [POPOVER_OPTIONS]
|
|
2557
2528
|
}, {
|
|
@@ -3679,14 +3650,14 @@ class MonkeyEcxServiceWorkerConfigService {
|
|
|
3679
3650
|
this.verify();
|
|
3680
3651
|
}
|
|
3681
3652
|
}
|
|
3682
|
-
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$
|
|
3653
|
+
MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$4.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3683
3654
|
MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
|
|
3684
3655
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
|
|
3685
3656
|
type: Injectable,
|
|
3686
3657
|
args: [{
|
|
3687
3658
|
providedIn: 'root'
|
|
3688
3659
|
}]
|
|
3689
|
-
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$
|
|
3660
|
+
}], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$4.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
|
|
3690
3661
|
|
|
3691
3662
|
/* eslint-disable no-console */
|
|
3692
3663
|
class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
@@ -4238,6 +4209,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4238
4209
|
}]
|
|
4239
4210
|
}], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }, { type: i2$3.Store }]; } });
|
|
4240
4211
|
|
|
4212
|
+
class MonkeyEcxCookieStorageService {
|
|
4213
|
+
constructor(cookieService) {
|
|
4214
|
+
this.cookieService = cookieService;
|
|
4215
|
+
// not to do
|
|
4216
|
+
}
|
|
4217
|
+
setCookie(name, value, environment) {
|
|
4218
|
+
this.removeCookie(name, environment);
|
|
4219
|
+
const { urlDomain } = environment;
|
|
4220
|
+
const handledDomain = urlDomain ? `.${urlDomain}` : '';
|
|
4221
|
+
this.cookieService.set(name, value, undefined, '/', handledDomain, true, 'None');
|
|
4222
|
+
}
|
|
4223
|
+
getCookie(name) {
|
|
4224
|
+
return this.cookieService.get(name);
|
|
4225
|
+
}
|
|
4226
|
+
removeCookie(name, environment) {
|
|
4227
|
+
const { urlDomain } = environment;
|
|
4228
|
+
const handledDomain = urlDomain ? `.${urlDomain}` : '';
|
|
4229
|
+
this.cookieService.delete(name, '/', handledDomain, true, 'None');
|
|
4230
|
+
}
|
|
4231
|
+
}
|
|
4232
|
+
MonkeyEcxCookieStorageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, deps: [{ token: i1$5.CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4233
|
+
MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
|
|
4234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
|
|
4235
|
+
type: Injectable,
|
|
4236
|
+
args: [{
|
|
4237
|
+
providedIn: 'root'
|
|
4238
|
+
}]
|
|
4239
|
+
}], ctorParameters: function () { return [{ type: i1$5.CookieService }]; } });
|
|
4240
|
+
|
|
4241
4241
|
class MonkeyEcxSecurityDirective {
|
|
4242
4242
|
constructor(elementRef, tokenStorageService, cdr) {
|
|
4243
4243
|
this.elementRef = elementRef;
|
|
@@ -6601,7 +6601,7 @@ class MonkeyFrontCoreModule {
|
|
|
6601
6601
|
}
|
|
6602
6602
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6603
6603
|
MonkeyFrontCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, imports: [CommonModule,
|
|
6604
|
-
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$
|
|
6604
|
+
HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$4.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
|
|
6605
6605
|
AlertsModule,
|
|
6606
6606
|
CurrencyConfigModule] });
|
|
6607
6607
|
MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [
|