@universis/ngx-tables 0.7.5 → 0.7.8

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.
@@ -156,4 +156,5 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
156
156
  handleColumns(columnsToShow: any): void;
157
157
  getConfig(): TableConfiguration;
158
158
  ngOnChanges(changes: SimpleChanges): void;
159
+ reset(load?: boolean): void;
159
160
  }
@@ -1,16 +1,20 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { AdvancedTableSearchComponent } from '../components/advanced-table/advanced-table-search.component';
4
4
  import { NgxTablesState } from '../reducers';
5
5
  export declare class AdvancedTableSearchComponentNotNull extends Error {
6
6
  constructor();
7
7
  }
8
- export declare class AdvancedSearchState implements OnInit {
9
- private search;
10
- private store;
8
+ export declare class AdvancedSearchState implements OnInit, OnDestroy {
9
+ protected search: AdvancedTableSearchComponent;
10
+ protected store: Store<NgxTablesState>;
11
11
  searchState: string;
12
+ private filterChangeSubscription;
13
+ private tableInitSubscription;
12
14
  constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>);
13
15
  ngOnInit(): void;
16
+ protected applyTableState(): void;
14
17
  onTableInit(): void;
15
18
  private onSearchFilter;
19
+ ngOnDestroy(): void;
16
20
  }
@@ -0,0 +1,16 @@
1
+ import { OnDestroy, OnInit } from "@angular/core";
2
+ import { Router } from "@angular/router";
3
+ import { Store } from "@ngrx/store";
4
+ import { AdvancedTableSearchComponent } from "../components/advanced-table/advanced-table-search.component";
5
+ import { NgxTablesState } from "../reducers";
6
+ import { AdvancedSearchState } from "./advance-search-state.directive";
7
+ export declare class AdvancedSearchRouterState extends AdvancedSearchState implements OnDestroy, OnInit {
8
+ protected search: AdvancedTableSearchComponent;
9
+ protected store: Store<NgxTablesState>;
10
+ private readonly _router;
11
+ private _routerSubscription;
12
+ private _enteringState;
13
+ private _applyState;
14
+ constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>, _router: Router);
15
+ ngOnDestroy(): void;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universis/ngx-tables",
3
- "version": "0.7.5",
3
+ "version": "0.7.8",
4
4
  "dependencies": {
5
5
  "datatables": "^1.10.18",
6
6
  "datatables.net": "1.10.24",
@@ -4,4 +4,5 @@
4
4
  export * from './public_api';
5
5
  export { AdvancedSearchState as ɵa } from './lib/directives/advance-search-state.directive';
6
6
  export { AdvancedTableState as ɵc } from './lib/directives/advance-table-state.directive';
7
+ export { AdvancedSearchRouterState as ɵd } from './lib/directives/advanced-search-router-state.directive';
7
8
  export { NgxTablesState as ɵb } from './lib/reducers';