monkey-front-core 0.0.65 → 0.0.66

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.
@@ -6,7 +6,7 @@ import * as i2 from '@angular/common';
6
6
  import { formatNumber, CurrencyPipe, CommonModule } from '@angular/common';
7
7
  import * as i1$1 from '@ngx-translate/core';
8
8
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
9
- import * as moment$2 from 'moment';
9
+ import * as moment_ from 'moment';
10
10
  import * as i1$2 from 'ngx-cookie-service';
11
11
  import * as i1$3 from '@angular/router';
12
12
  import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
@@ -239,13 +239,14 @@ class MonkeyEcxUtils {
239
239
  }
240
240
  }
241
241
 
242
+ const moment$3 = moment_;
242
243
  class MonkeyEcxFormatDateTimelapsePipe {
243
244
  transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
244
245
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
245
246
  return '';
246
- let stillUtc = moment$2.utc(date).toDate();
247
+ let stillUtc = moment$3.utc(date).toDate();
247
248
  if (!useUtc)
248
- stillUtc = moment$2(date).toDate();
249
+ stillUtc = moment$3(date).toDate();
249
250
  if (date.toString().indexOf(':') <= -1) {
250
251
  if (typeof date === 'string') {
251
252
  stillUtc = date;
@@ -254,7 +255,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
254
255
  }
255
256
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
256
257
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
257
- return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
258
+ return `${moment$3(stillUtc, formatFrom).format(formatTo)}`;
258
259
  }
259
260
  }
260
261
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -262,7 +263,7 @@ MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12
262
263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
263
264
  type: Pipe,
264
265
  args: [{
265
- name: 'monkeyecxFormatDateTimelapse'
266
+ name: 'monkeyecxFormatDateTimelapse',
266
267
  }]
267
268
  }] });
268
269
 
@@ -544,6 +545,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
544
545
  }]
545
546
  }] });
546
547
 
548
+ const moment$2 = moment_;
547
549
  class MonkeyEcxFormatDateGroupPipe {
548
550
  constructor(injector) {
549
551
  this.injector = injector;
@@ -857,7 +859,7 @@ function MonkeyEcxCoreCharts(render = true) {
857
859
  }
858
860
 
859
861
  /* eslint-disable max-classes-per-file */
860
- const moment$1 = moment$2;
862
+ const moment$1 = moment_;
861
863
  class DateValidator {
862
864
  static do(control) {
863
865
  if (!control.parent || !control)
@@ -1168,7 +1170,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
1168
1170
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
1169
1171
  });
1170
1172
 
1171
- const moment = moment$2;
1173
+ const moment = moment_;
1172
1174
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
1173
1175
  function isEmptyInputValue(value) {
1174
1176
  return value == null || value.length === 0;