@universis/ngx-tables 0.7.8 → 0.7.9

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,6 @@
1
1
  import { getNativeName } from 'iso-639-1/build';
2
2
  import * as jQuery_ from 'jquery';
3
3
  import 'datatables.net';
4
- import { template, at } from 'lodash';
5
4
  import 'datatables.net-scroller';
6
5
  import 'rxjs/add/observable/combineLatest';
7
6
  import { HttpClient } from '@angular/common/http';
@@ -18,6 +17,7 @@ import { FormioModule } from 'angular-formio';
18
17
  import { BsModalRef, BsModalService, ModalModule } from 'ngx-bootstrap/modal';
19
18
  import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
20
19
  import { GroupByPipe, NgPipesModule } from 'ngx-pipes';
20
+ import { template, at, cloneDeep } from 'lodash';
21
21
  import { __extends, __awaiter, __generator, __values, __assign, __spread } from 'tslib';
22
22
  import { Injectable, Directive, Optional, Input, Pipe, Component, ElementRef, ViewChild, ViewEncapsulation, EventEmitter, Output, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectorRef, InjectionToken, Inject, Injector, ChangeDetectionStrategy } from '@angular/core';
23
23
  import { ActivatedRoute, Router, NavigationStart, NavigationEnd, RouterModule } from '@angular/router';
@@ -4657,7 +4657,7 @@ function tableReducer(state, action) {
4657
4657
  case TableActionTypes.LoadFilter:
4658
4658
  return state[action.id];
4659
4659
  case TableActionTypes.AppendFilter:
4660
- state[action.id] = __assign({}, state[action.id], { filter: action.filter });
4660
+ state[action.id] = __assign({}, state[action.id], { filter: cloneDeep(action.filter) });
4661
4661
  return state;
4662
4662
  case TableActionTypes.AppendState:
4663
4663
  state[action.id] = __assign({}, state[action.id], { table: action.data });