@smartsoft001/angular 1.1.812 → 1.1.815

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.
@@ -56,7 +56,7 @@ import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS, MatNativeDateModule } f
56
56
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateModule } from '@angular/material-moment-adapter';
57
57
  import * as i6 from '@angular/cdk/table';
58
58
  import { CdkTableModule } from '@angular/cdk/table';
59
- import * as moment from 'moment';
59
+ import moment from 'moment';
60
60
  import * as i5$2 from '@angular/cdk/overlay';
61
61
  import * as i1$5 from '@ngrx/effects';
62
62
  import { createEffect, EffectsModule } from '@ngrx/effects';
@@ -3081,6 +3081,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
3081
3081
 
3082
3082
  class CalendarService {
3083
3083
  constructor() {
3084
+ this.setState = (nextState) => {
3085
+ this.state = { ...this.state, ...nextState };
3086
+ };
3084
3087
  this.state = {
3085
3088
  date: moment().add(2, 'year'),
3086
3089
  calendar: [
@@ -3092,11 +3095,6 @@ class CalendarService {
3092
3095
  }
3093
3096
  ]
3094
3097
  };
3095
- this.setState = (nextState) => {
3096
- this.state = { ...this.state, ...nextState };
3097
- };
3098
- //this service is a singleton therefore its constructor will only
3099
- //be called once during the application life cycle
3100
3098
  this.initCalendar();
3101
3099
  }
3102
3100
  getCalendar() {