monkey-front-core 0.0.488 → 0.0.490

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, InjectionToken, Inject, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
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';
@@ -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$4 from '@angular/cdk/overlay';
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$5 from '@angular/service-worker';
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,30 @@ 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(injector, currencyPipe) {
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 cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
776
- const cookie = cookieStorageService.getCookie('monkey-app-locale');
777
- const i18n = JSON.parse(atob(cookie));
778
- const { currency } = i18n;
746
+ console.log('veio no core@@@@');
747
+ console.log(this.defaultCurencyCode.toString());
748
+ const currency = this.defaultCurencyCode.toString();
779
749
  return this.currencyPipe.transform(value, currency, symbol);
780
750
  }
781
751
  }
782
- MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
752
+ 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
753
  MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
784
754
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
785
755
  type: Pipe,
786
756
  args: [{
787
757
  name: 'monkeyecxFormatCurrency'
788
758
  }]
789
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
759
+ }], ctorParameters: function () { return [{ type: i2.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
760
+ type: Inject,
761
+ args: [DEFAULT_CURRENCY_CODE]
762
+ }] }]; } });
790
763
 
791
764
  const MECX_TIMEZONEOFFSET = new InjectionToken('');
792
765
  const MECX_DATE_FORMAT = new InjectionToken('');
@@ -2544,14 +2517,14 @@ class MonkeyEcxPopoverDirective {
2544
2517
  this.eventsSubs.unsubscribe();
2545
2518
  }
2546
2519
  }
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$4.Overlay }, { token: i1$4.OverlayPositionBuilder }, { token: i2$2.Router }, { token: POPOVER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
2520
+ 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
2521
  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
2522
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPopoverDirective, decorators: [{
2550
2523
  type: Directive,
2551
2524
  args: [{
2552
2525
  selector: '[monkeyecxPopover]'
2553
2526
  }]
2554
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.Overlay }, { type: i1$4.OverlayPositionBuilder }, { type: i2$2.Router }, { type: undefined, decorators: [{
2527
+ }], 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
2528
  type: Inject,
2556
2529
  args: [POPOVER_OPTIONS]
2557
2530
  }, {
@@ -3679,14 +3652,14 @@ class MonkeyEcxServiceWorkerConfigService {
3679
3652
  this.verify();
3680
3653
  }
3681
3654
  }
3682
- MonkeyEcxServiceWorkerConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, deps: [{ token: i0.ApplicationRef }, { token: i1$5.SwUpdate }, { token: i1.MonkeyStyleGuideModalService }], target: i0.ɵɵFactoryTarget.Injectable });
3655
+ 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
3656
  MonkeyEcxServiceWorkerConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, providedIn: 'root' });
3684
3657
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxServiceWorkerConfigService, decorators: [{
3685
3658
  type: Injectable,
3686
3659
  args: [{
3687
3660
  providedIn: 'root'
3688
3661
  }]
3689
- }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$5.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
3662
+ }], ctorParameters: function () { return [{ type: i0.ApplicationRef }, { type: i1$4.SwUpdate }, { type: i1.MonkeyStyleGuideModalService }]; } });
3690
3663
 
3691
3664
  /* eslint-disable no-console */
3692
3665
  class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
@@ -4238,6 +4211,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4238
4211
  }]
4239
4212
  }], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }, { type: i2$3.Store }]; } });
4240
4213
 
4214
+ class MonkeyEcxCookieStorageService {
4215
+ constructor(cookieService) {
4216
+ this.cookieService = cookieService;
4217
+ // not to do
4218
+ }
4219
+ setCookie(name, value, environment) {
4220
+ this.removeCookie(name, environment);
4221
+ const { urlDomain } = environment;
4222
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
4223
+ this.cookieService.set(name, value, undefined, '/', handledDomain, true, 'None');
4224
+ }
4225
+ getCookie(name) {
4226
+ return this.cookieService.get(name);
4227
+ }
4228
+ removeCookie(name, environment) {
4229
+ const { urlDomain } = environment;
4230
+ const handledDomain = urlDomain ? `.${urlDomain}` : '';
4231
+ this.cookieService.delete(name, '/', handledDomain, true, 'None');
4232
+ }
4233
+ }
4234
+ 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 });
4235
+ MonkeyEcxCookieStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, providedIn: 'root' });
4236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCookieStorageService, decorators: [{
4237
+ type: Injectable,
4238
+ args: [{
4239
+ providedIn: 'root'
4240
+ }]
4241
+ }], ctorParameters: function () { return [{ type: i1$5.CookieService }]; } });
4242
+
4241
4243
  class MonkeyEcxSecurityDirective {
4242
4244
  constructor(elementRef, tokenStorageService, cdr) {
4243
4245
  this.elementRef = elementRef;
@@ -6601,7 +6603,7 @@ class MonkeyFrontCoreModule {
6601
6603
  }
6602
6604
  MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6603
6605
  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$5.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
6606
+ HttpClientModule, i1$1.TranslateModule, MonkeyEcxConfigModule, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxErrorHandlingModule, MonkeyStyleGuideModule, i1$4.ServiceWorkerModule, ClosedToMaintenanceModule, i2$3.StoreFeatureModule, VersionChangedModule,
6605
6607
  AlertsModule,
6606
6608
  CurrencyConfigModule] });
6607
6609
  MonkeyFrontCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, providers: [