@universis/ngx-tables 6.1.0 → 6.1.1
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 +165 -11
- 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/components/advanced-table/advanced-table.component.js +150 -9
- package/esm5/lib/components/advanced-table/advanced-table.component.js +172 -8
- package/fesm2015/universis-ngx-tables.js +129 -9
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +152 -9
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-table/advanced-table.component.d.ts +15 -3
- package/package.json +2 -1
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, InjectionToken, Injector, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, InjectionToken, Injector, OnDestroy, OnInit, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef, AfterViewInit } from '@angular/core';
|
|
2
2
|
import { AngularDataContext } from '@themost/angular';
|
|
3
3
|
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -9,6 +9,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
9
9
|
import { TemplatePipe, LoadingService, ConfigurationService, ModalService, ErrorService, ExportSpreadsheetService } from '@universis/common';
|
|
10
10
|
import { IAdvancedTableFormatters } from './advanced-table.formatters.interface';
|
|
11
11
|
import 'datatables.net';
|
|
12
|
+
import 'datatables.net-rowgroup';
|
|
12
13
|
import 'datatables.net-scroller';
|
|
13
14
|
import 'datatables.net-colreorder';
|
|
14
15
|
import 'datatables.net-buttons';
|
|
@@ -26,7 +27,7 @@ export declare class ExportLimitExceededError extends RangeError {
|
|
|
26
27
|
export declare class AdvancedTableConfiguration {
|
|
27
28
|
static cast(input: any, clone?: boolean): TableConfiguration;
|
|
28
29
|
}
|
|
29
|
-
export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChanges {
|
|
30
|
+
export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChanges, AfterViewInit {
|
|
30
31
|
private _context;
|
|
31
32
|
private _columnFormatters;
|
|
32
33
|
private _activatedRoute;
|
|
@@ -42,6 +43,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
42
43
|
private _exportSpreadsheet;
|
|
43
44
|
private _modalService;
|
|
44
45
|
private _errorService;
|
|
46
|
+
private _viewContainerRef;
|
|
45
47
|
private _query?;
|
|
46
48
|
private _config?;
|
|
47
49
|
private _firstLoad;
|
|
@@ -103,6 +105,15 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
103
105
|
*/
|
|
104
106
|
configSrc?: string;
|
|
105
107
|
lastError: any;
|
|
108
|
+
/**
|
|
109
|
+
* Accepts array of properties as row group factors and displays grouped table.
|
|
110
|
+
*/
|
|
111
|
+
rowGroup: string[];
|
|
112
|
+
private lastRowGroupOrder?;
|
|
113
|
+
headerTemplate?: TemplateRef<any>;
|
|
114
|
+
footerTemplate?: TemplateRef<any>;
|
|
115
|
+
header?: ElementRef;
|
|
116
|
+
footer?: ElementRef;
|
|
106
117
|
/**
|
|
107
118
|
* Gets or sets table configuration
|
|
108
119
|
*/
|
|
@@ -130,7 +141,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
130
141
|
private lastQueryParams?;
|
|
131
142
|
private _lastQueryTotalItems;
|
|
132
143
|
private reloadSubscription;
|
|
133
|
-
constructor(_context: AngularDataContext, _columnFormatters: IAdvancedTableFormatters, _activatedRoute: ActivatedRoute, _translateService: TranslateService, _injector: Injector, _advancedFilterValueProvider: AdvancedFilterValueProvider, _element: ElementRef, _template: TemplatePipe, _loading: LoadingService, _http: HttpClient, _columnSelector: ColumnSelectorService, _configuration: ConfigurationService, _exportSpreadsheet: ExportSpreadsheetService, _modalService: ModalService, _errorService: ErrorService);
|
|
144
|
+
constructor(_context: AngularDataContext, _columnFormatters: IAdvancedTableFormatters, _activatedRoute: ActivatedRoute, _translateService: TranslateService, _injector: Injector, _advancedFilterValueProvider: AdvancedFilterValueProvider, _element: ElementRef, _template: TemplatePipe, _loading: LoadingService, _http: HttpClient, _columnSelector: ColumnSelectorService, _configuration: ConfigurationService, _exportSpreadsheet: ExportSpreadsheetService, _modalService: ModalService, _errorService: ErrorService, _viewContainerRef: ViewContainerRef);
|
|
134
145
|
search(searchText: any): void;
|
|
135
146
|
fetch(clearSelected?: boolean): void;
|
|
136
147
|
destroy(): void;
|
|
@@ -154,6 +165,7 @@ export declare class AdvancedTableComponent implements OnInit, OnDestroy, OnChan
|
|
|
154
165
|
*/
|
|
155
166
|
private _renderSelect;
|
|
156
167
|
ngOnInit(): void;
|
|
168
|
+
ngAfterViewInit(): void;
|
|
157
169
|
scrollTop(value: number): void;
|
|
158
170
|
scrollLeft(value: number): void;
|
|
159
171
|
readonly lastQuery: ClientDataQueryable | undefined;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universis/ngx-tables",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"datatables": "^1.10.18",
|
|
6
6
|
"datatables.net": "1.10.24",
|
|
7
7
|
"datatables.net-buttons": "^1.5.6",
|
|
8
8
|
"datatables.net-buttons-dt": "^1.5.6",
|
|
9
9
|
"datatables.net-colreorder": "1.5.4",
|
|
10
|
+
"datatables.net-rowgroup": "^1.4.1",
|
|
10
11
|
"datatables.net-scroller": "^1.5.1",
|
|
11
12
|
"jsrsasign": "^10.0.5",
|
|
12
13
|
"ngx-pipes": "^2.7.5",
|