@smartsoft001/angular 2.90.0 → 2.92.0

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,8 +6,7 @@ import * as i1 from '@ngx-translate/core';
6
6
  import { TranslateService, TranslateModule, TranslatePipe } from '@ngx-translate/core';
7
7
  import { BehaviorSubject, firstValueFrom, Subscription, Subject, isObservable } from 'rxjs';
8
8
  import { ArrayService, SPECIFICATION_ROOT_KEY, SpecificationService, PeselService, ZipCodeService, ObjectService, NipService } from '@smartsoft001/utils';
9
- import * as moment from 'moment';
10
- import moment__default from 'moment';
9
+ import moment from 'moment';
11
10
  import { jwtDecode } from 'jwt-decode';
12
11
  import { HttpClient, HttpEventType, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
13
12
  import { map, filter, takeUntil, tap, delay, debounceTime, distinctUntilChanged, first, catchError } from 'rxjs/operators';
@@ -29,9 +28,7 @@ import { CdkTable, CdkHeaderCell, CdkCell, CdkHeaderRow, CdkRow, CdkTableModule
29
28
  import * as i1$2 from 'ng-lazyload-image';
30
29
  import { LazyLoadImageModule } from 'ng-lazyload-image';
31
30
  import { DragDropModule } from '@angular/cdk/drag-drop';
32
- import * as i1$3 from '@ngrx/effects';
33
- import { createEffect, EffectsModule } from '@ngrx/effects';
34
- import * as i1$4 from '@ngrx/store';
31
+ import * as i1$3 from '@ngrx/store';
35
32
  import { Guid } from 'guid-typescript';
36
33
 
37
34
  var PaginationMode;
@@ -2273,7 +2270,7 @@ class DateEditComponent {
2273
2270
  if (!this.ngModel() || newValue > 9 || newValue < 0)
2274
2271
  this.ngModel.set(this.DEFAULT_DATE);
2275
2272
  this.ngModel.set(this.setCharAt(this.ngModel(), index, newValue));
2276
- this.validDate = moment__default(this.ngModel()).isValid();
2273
+ this.validDate = moment(this.ngModel()).isValid();
2277
2274
  if (this.validDate) {
2278
2275
  this.writeValue(this.ngModel());
2279
2276
  this.propagateChange(this.ngModel());
@@ -3117,9 +3114,9 @@ class DateRangeComponent {
3117
3114
  async onClick() {
3118
3115
  const ngModel = this.ngModel();
3119
3116
  if (ngModel?.start)
3120
- this.calendarData.dateFrom = moment__default(ngModel.start);
3117
+ this.calendarData.dateFrom = moment(ngModel.start);
3121
3118
  if (ngModel?.end)
3122
- this.calendarData.dateTo = moment__default(ngModel.end);
3119
+ this.calendarData.dateTo = moment(ngModel.end);
3123
3120
  this.propagateTouched();
3124
3121
  // const modal = await this.modalCtrl.create({
3125
3122
  // backdropDismiss: true,
@@ -3197,7 +3194,7 @@ class DateRangeModalComponent {
3197
3194
  showFilterBtns = input(false, ...(ngDevMode ? [{ debugName: "showFilterBtns" }] : []));
3198
3195
  restrictSelectionTo = input.required(...(ngDevMode ? [{ debugName: "restrictSelectionTo" }] : []));
3199
3196
  // @ViewChild('scrollMe', { static: true }) scrollMe!: IonContent; //TODO: to be rewritten
3200
- currentDate = moment__default().clone();
3197
+ currentDate = moment().clone();
3201
3198
  dateForm;
3202
3199
  calendar = [];
3203
3200
  selectedButtonName = "" /* FilterBtnConstants.empthyString */;
@@ -3341,8 +3338,8 @@ class DateRangeModalComponent {
3341
3338
  this.selectedButtonName = "ThisMonth" /* FilterBtnConstants.thisMonth */;
3342
3339
  this.scrollPositionValue = this.valueTop;
3343
3340
  this.scrollToBottom();
3344
- const firstDay = moment__default().clone().startOf('month');
3345
- const lastDay = moment__default().clone();
3341
+ const firstDay = moment().clone().startOf('month');
3342
+ const lastDay = moment().clone();
3346
3343
  this.setStartDate(firstDay, this.formatDate(firstDay));
3347
3344
  this.setEndDate(lastDay, this.formatDate(lastDay));
3348
3345
  }
@@ -3350,7 +3347,7 @@ class DateRangeModalComponent {
3350
3347
  this.scrollToBottom();
3351
3348
  this.selectedButtonName = "LastMonth" /* FilterBtnConstants.lastMonth */;
3352
3349
  this.scrollPositionValue = this.valueTop;
3353
- const lastMonth = moment__default().clone().subtract(1, 'month');
3350
+ const lastMonth = moment().clone().subtract(1, 'month');
3354
3351
  const firstDay = lastMonth.clone().startOf('month');
3355
3352
  const lastDay = lastMonth.clone().endOf('month');
3356
3353
  this.setStartDate(firstDay, this.formatDate(firstDay));
@@ -3369,7 +3366,7 @@ class DateRangeModalComponent {
3369
3366
  this.filterSelectionByDaysAgo(6);
3370
3367
  }
3371
3368
  filterSelectionByDaysAgo(daysAgo) {
3372
- const endDate = moment__default().clone();
3369
+ const endDate = moment().clone();
3373
3370
  const startDate = endDate.clone().subtract(daysAgo, 'days');
3374
3371
  this.setStartDate(startDate, this.formatDate(startDate));
3375
3372
  this.setEndDate(endDate, this.formatDate(endDate));
@@ -3378,7 +3375,7 @@ class DateRangeModalComponent {
3378
3375
  this.selectedButtonName = "Yesterday" /* FilterBtnConstants.yesterday */;
3379
3376
  this.scrollPositionValue = this.valueTop;
3380
3377
  this.scrollToBottom();
3381
- const yesterday = moment__default().clone().subtract(1, 'days');
3378
+ const yesterday = moment().clone().subtract(1, 'days');
3382
3379
  this.setStartDate(yesterday, this.formatDate(yesterday));
3383
3380
  this.setEndDate(yesterday, this.formatDate(yesterday));
3384
3381
  }
@@ -3386,7 +3383,7 @@ class DateRangeModalComponent {
3386
3383
  this.selectedButtonName = "Today" /* FilterBtnConstants.today */;
3387
3384
  this.scrollPositionValue = this.valueTop;
3388
3385
  this.scrollToBottom();
3389
- const today = moment__default().clone();
3386
+ const today = moment().clone();
3390
3387
  this.setStartDate(today, this.formatDate(today));
3391
3388
  this.setEndDate(today, this.formatDate(today));
3392
3389
  }
@@ -7199,40 +7196,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
7199
7196
  }]
7200
7197
  }], ctorParameters: () => [{ type: i1.TranslateService }] });
7201
7198
 
7202
- class ErrorEffects {
7203
- actions$;
7204
- service;
7205
- error$ = createEffect(() => this.actions$.pipe(filter((action) => {
7206
- return action.type.indexOf(' Failure') > -1;
7207
- }), tap((action) => {
7208
- this.service.log(action.error).then();
7209
- })), { dispatch: false });
7210
- constructor(actions$, service) {
7211
- this.actions$ = actions$;
7212
- this.service = service;
7213
- }
7214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ErrorEffects, deps: [{ token: i1$3.Actions }, { token: ErrorService }], target: i0.ɵɵFactoryTarget.Injectable });
7215
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ErrorEffects });
7216
- }
7217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ErrorEffects, decorators: [{
7218
- type: Injectable
7219
- }], ctorParameters: () => [{ type: i1$3.Actions }, { type: ErrorService }] });
7220
-
7221
7199
  class NgrxSharedModule {
7222
7200
  constructor(store, storeService) {
7223
7201
  storeService.connect(store);
7224
7202
  }
7225
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, deps: [{ token: i1$4.Store }, { token: NgrxStoreService }], target: i0.ɵɵFactoryTarget.NgModule });
7226
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, imports: [SharedModule, i1$3.EffectsFeatureModule] });
7227
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, providers: [NgrxStoreService], imports: [SharedModule, EffectsModule.forFeature([ErrorEffects])] });
7203
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, deps: [{ token: i1$3.Store }, { token: NgrxStoreService }], target: i0.ɵɵFactoryTarget.NgModule });
7204
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, imports: [SharedModule] });
7205
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, providers: [NgrxStoreService], imports: [SharedModule] });
7228
7206
  }
7229
7207
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgrxSharedModule, decorators: [{
7230
7208
  type: NgModule,
7231
7209
  args: [{
7232
7210
  providers: [NgrxStoreService],
7233
- imports: [SharedModule, EffectsModule.forFeature([ErrorEffects])],
7211
+ imports: [
7212
+ SharedModule,
7213
+ //EffectsModule.forFeature([ErrorEffects])
7214
+ ],
7234
7215
  }]
7235
- }], ctorParameters: () => [{ type: i1$4.Store }, { type: NgrxStoreService }] });
7216
+ }], ctorParameters: () => [{ type: i1$3.Store }, { type: NgrxStoreService }] });
7236
7217
 
7237
7218
  const ReduxAction = ReduxActionDecorator;
7238
7219
  function ReduxActionDecorator(options = {}) {