@universis/ngx-tables 0.6.20 → 0.7.2
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.
- package/bundles/universis-ngx-tables.umd.js +291 -22
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/actions/table.actions.js +28 -0
- package/esm2015/lib/components/advanced-table/advanced-table-search.component.js +8 -2
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +79 -18
- package/esm2015/lib/directives/advance-search-state.directive.js +88 -0
- package/esm2015/lib/directives/advance-table-state.directive.js +59 -0
- package/esm2015/lib/reducers/index.js +31 -0
- package/esm2015/lib/tables.module.js +13 -4
- package/esm2015/public_api.js +1 -1
- package/esm2015/universis-ngx-tables.js +4 -1
- package/esm5/lib/actions/table.actions.js +34 -0
- package/esm5/lib/components/advanced-table/advanced-table-search.component.js +8 -2
- package/esm5/lib/components/advanced-table/advanced-table.component.js +77 -16
- package/esm5/lib/directives/advance-search-state.directive.js +96 -0
- package/esm5/lib/directives/advance-table-state.directive.js +62 -0
- package/esm5/lib/reducers/index.js +33 -0
- package/esm5/lib/tables.module.js +13 -4
- package/esm5/public_api.js +1 -1
- package/esm5/universis-ngx-tables.js +4 -1
- package/fesm2015/universis-ngx-tables.js +276 -26
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +285 -25
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/actions/table.actions.d.ts +24 -0
- package/lib/components/advanced-table/advanced-table-search.component.d.ts +4 -0
- package/lib/components/advanced-table/advanced-table.component.d.ts +12 -0
- package/lib/directives/advance-search-state.directive.d.ts +16 -0
- package/lib/directives/advance-table-state.directive.d.ts +11 -0
- package/lib/reducers/index.d.ts +23 -0
- package/package.json +10 -7
- package/universis-ngx-tables.d.ts +3 -0
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Action } from '@ngrx/store';
|
|
2
|
+
export declare enum TableActionTypes {
|
|
3
|
+
LoadFilter = "[Table] Load Filter",
|
|
4
|
+
AppendFilter = "[Table] Append Filter",
|
|
5
|
+
AppendState = "[Table] Append State"
|
|
6
|
+
}
|
|
7
|
+
export declare class LoadFilter implements Action {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly type: TableActionTypes;
|
|
10
|
+
constructor(id: string);
|
|
11
|
+
}
|
|
12
|
+
export declare class AppendFilter implements Action {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly filter: any;
|
|
15
|
+
readonly type: TableActionTypes;
|
|
16
|
+
constructor(id: string, filter: any);
|
|
17
|
+
}
|
|
18
|
+
export declare class AppendState implements Action {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly data: any;
|
|
21
|
+
readonly type: TableActionTypes;
|
|
22
|
+
constructor(id: string, data: any);
|
|
23
|
+
}
|
|
24
|
+
export declare type TableActions = LoadFilter | AppendFilter | AppendState;
|
|
@@ -12,6 +12,9 @@ import { TemplatePipe } from '@universis/common';
|
|
|
12
12
|
export interface AdvancedSearchViewStatus {
|
|
13
13
|
advancedView: boolean;
|
|
14
14
|
}
|
|
15
|
+
export interface AdvancedSearchList {
|
|
16
|
+
name: string;
|
|
17
|
+
}
|
|
15
18
|
export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBaseComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
16
19
|
protected _context: AngularDataContext;
|
|
17
20
|
protected _activatedRoute: ActivatedRoute;
|
|
@@ -32,6 +35,7 @@ export declare class AdvancedTableSearchComponent extends AdvancedTableSearchBas
|
|
|
32
35
|
mergeQueryParams: boolean;
|
|
33
36
|
searchText: any;
|
|
34
37
|
viewChange: EventEmitter<AdvancedSearchViewStatus>;
|
|
38
|
+
listChange: EventEmitter<AdvancedSearchList>;
|
|
35
39
|
text: string;
|
|
36
40
|
modalRef: BsModalRef;
|
|
37
41
|
storageKey: any;
|
|
@@ -50,12 +50,22 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
50
50
|
init: EventEmitter<any>;
|
|
51
51
|
reload: EventEmitter<any>;
|
|
52
52
|
select: EventEmitter<any>;
|
|
53
|
+
draw: EventEmitter<any>;
|
|
54
|
+
page: EventEmitter<any>;
|
|
55
|
+
order: EventEmitter<any[][]>;
|
|
56
|
+
scroll: EventEmitter<{
|
|
57
|
+
top: number;
|
|
58
|
+
left: number;
|
|
59
|
+
}>;
|
|
53
60
|
selectedItems: EventEmitter<any>;
|
|
54
61
|
scrollable: boolean;
|
|
55
62
|
serverSide: boolean;
|
|
56
63
|
lengthMenu: number[];
|
|
57
64
|
paging: boolean;
|
|
58
65
|
pageLength: number;
|
|
66
|
+
stateSave: boolean;
|
|
67
|
+
stateLoadCallback: (settings: any, callback: (state: any) => void) => void;
|
|
68
|
+
stateSaveCallback: (settings: any, state: any) => void;
|
|
59
69
|
scrollY: number;
|
|
60
70
|
scrollX: boolean;
|
|
61
71
|
/**
|
|
@@ -126,6 +136,8 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
126
136
|
*/
|
|
127
137
|
private _renderSelect;
|
|
128
138
|
ngOnInit(): void;
|
|
139
|
+
scrollTop(value: number): void;
|
|
140
|
+
scrollLeft(value: number): void;
|
|
129
141
|
readonly lastQuery: ClientDataQueryable;
|
|
130
142
|
/**
|
|
131
143
|
* Fetches and updates a single row
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import { AdvancedTableSearchComponent } from '../components/advanced-table/advanced-table-search.component';
|
|
4
|
+
import { NgxTablesState } from '../reducers';
|
|
5
|
+
export declare class AdvancedTableSearchComponentNotNull extends Error {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export declare class AdvancedSearchState implements OnInit {
|
|
9
|
+
private search;
|
|
10
|
+
private store;
|
|
11
|
+
searchState: string;
|
|
12
|
+
constructor(search: AdvancedTableSearchComponent, store: Store<NgxTablesState>);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
onTableInit(): void;
|
|
15
|
+
private onSearchFilter;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import { NgxTablesState } from '../reducers';
|
|
4
|
+
import { AdvancedTableComponent } from '../components/advanced-table/advanced-table.component';
|
|
5
|
+
export declare class AdvancedTableState implements OnInit {
|
|
6
|
+
private table;
|
|
7
|
+
private store;
|
|
8
|
+
tableState: string;
|
|
9
|
+
constructor(table: AdvancedTableComponent, store: Store<NgxTablesState>);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ActionReducerMap } from '@ngrx/store';
|
|
2
|
+
import { TableActions } from '../actions/table.actions';
|
|
3
|
+
export interface TableState {
|
|
4
|
+
filter?: any;
|
|
5
|
+
order?: any;
|
|
6
|
+
table?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const initialState: {};
|
|
9
|
+
export declare const tableInitialState: TableState;
|
|
10
|
+
export declare function tableReducer(state: {}, action: TableActions): {
|
|
11
|
+
[id: string]: TableState;
|
|
12
|
+
};
|
|
13
|
+
export interface NgxTablesState {
|
|
14
|
+
tables: {
|
|
15
|
+
[id: string]: TableState;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const tableReducers: ActionReducerMap<NgxTablesState>;
|
|
19
|
+
export declare const featureName = "tables";
|
|
20
|
+
export declare const getTablesState: import("@ngrx/store/src/selector").MemoizedSelector<object, {}>;
|
|
21
|
+
export declare const selectTable: import("@ngrx/store/src/selector").MemoizedSelectorWithProps<object, {
|
|
22
|
+
id: string;
|
|
23
|
+
}, TableState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universis/ngx-tables",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"datatables": "^1.10.18",
|
|
6
6
|
"datatables.net": "1.10.24",
|
|
@@ -12,12 +12,15 @@
|
|
|
12
12
|
"tslib": "^1.9.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/common": "^6
|
|
16
|
-
"@angular/core": "^6
|
|
17
|
-
"@angular/elements": "^6
|
|
18
|
-
"@angular/forms": "^6
|
|
19
|
-
"@angular/http": "^6
|
|
20
|
-
"@angular/router": "^6
|
|
15
|
+
"@angular/common": "^6",
|
|
16
|
+
"@angular/core": "^6",
|
|
17
|
+
"@angular/elements": "^6",
|
|
18
|
+
"@angular/forms": "^6",
|
|
19
|
+
"@angular/http": "^6",
|
|
20
|
+
"@angular/router": "^6",
|
|
21
|
+
"@ngrx/effects": "^6.1.2",
|
|
22
|
+
"@ngrx/entity": "^6.1.2",
|
|
23
|
+
"@ngrx/store": "^6.1.2",
|
|
21
24
|
"@universis/common": "^1.2.10",
|
|
22
25
|
"@universis/forms": "^0.5.6",
|
|
23
26
|
"@universis/theme": "^1.1.5",
|
|
@@ -2,3 +2,6 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
|
+
export { AdvancedSearchState as ɵe } from './lib/directives/advance-search-state.directive';
|
|
6
|
+
export { AdvancedTableState as ɵf } from './lib/directives/advance-table-state.directive';
|
|
7
|
+
export { NgxTablesState as ɵb, featureName as ɵd, tableReducer as ɵa, tableReducers as ɵc } from './lib/reducers';
|