@stemy/ngx-utils 13.2.0 → 13.2.1

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,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, TemplateRef, PLATFORM_ID, Injectable, Inject, Optional, Injector, EventEmitter, isDevMode, ErrorHandler, NgZone, Pipe, Directive, Input, Output, HostBinding, HostListener, Component, ContentChildren, ViewChild, ContentChild, APP_INITIALIZER, NgModule } from '@angular/core';
3
3
  import 'reflect-metadata';
4
- import { utc } from 'moment';
4
+ import * as moment from 'moment';
5
5
  import { first, skipWhile, mergeMap, timeout, map } from 'rxjs/operators';
6
6
  import { Subject, BehaviorSubject, Observable, Subscription, from, TimeoutError, combineLatest } from 'rxjs';
7
7
  import { Invokable } from 'invokable';
@@ -16,7 +16,7 @@ import { HttpClient, HttpHeaders, HttpParams, HttpUrlEncodingCodec, HttpEventTyp
16
16
  import * as JSON5 from 'json5';
17
17
  import * as i1$2 from '@angular/platform-browser';
18
18
  import { ɵDomEventsPlugin, EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
19
- import { addListener, removeListener } from 'resize-detector';
19
+ import * as detector from 'resize-detector';
20
20
  import * as i4 from '@angular/forms';
21
21
  import { FormsModule } from '@angular/forms';
22
22
 
@@ -479,13 +479,13 @@ AjaxRequestHandler.isOverridden = false;
479
479
 
480
480
  class DateUtils {
481
481
  static isHoliday(date) {
482
- return utc(date).isoWeekday() > 5;
482
+ return moment(date).isoWeekday() > 5;
483
483
  }
484
484
  static isBusinessDay(date) {
485
- return utc(date).isoWeekday() < 6;
485
+ return moment(date).isoWeekday() < 6;
486
486
  }
487
487
  static add(date, amount, unit) {
488
- return utc(date).add(amount, unit).toDate();
488
+ return moment(date).add(amount, unit).toDate();
489
489
  }
490
490
  static businessAdd(date, amount, unit) {
491
491
  const signal = amount < 0 ? -1 : 1;
@@ -3310,7 +3310,7 @@ class ResizeEventPlugin extends ɵDomEventsPlugin {
3310
3310
  element.addEventListener(eventName, cb);
3311
3311
  }
3312
3312
  else {
3313
- addListener(element, cb);
3313
+ detector.addListener(element, cb);
3314
3314
  }
3315
3315
  return () => {
3316
3316
  try {
@@ -3318,7 +3318,7 @@ class ResizeEventPlugin extends ɵDomEventsPlugin {
3318
3318
  element.removeEventListener(eventName, cb);
3319
3319
  }
3320
3320
  else {
3321
- removeListener(element, cb);
3321
+ detector.removeListener(element, cb);
3322
3322
  }
3323
3323
  }
3324
3324
  catch (e) {