@universis/ngx-tables 6.13.2 → 6.13.3
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 +8 -0
- 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 +13 -1
- package/esm5/lib/components/advanced-table/advanced-table.component.js +13 -1
- package/fesm2015/universis-ngx-tables.js +9 -1
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +9 -1
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-table/advanced-table.component.d.ts +6 -0
- package/package.json +1 -1
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -23,7 +23,7 @@ import { BsModalRef, BsModalService, ModalModule } from 'ngx-bootstrap/modal';
|
|
|
23
23
|
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
|
|
24
24
|
import { GroupByPipe, NgPipesModule } from 'ngx-pipes';
|
|
25
25
|
import { template, at, cloneDeep, isEmpty } from 'lodash';
|
|
26
|
-
import { Injectable, Directive, Optional, Input, Output, EventEmitter, Pipe, Component, ViewChild, ViewEncapsulation, ElementRef, ChangeDetectorRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, InjectionToken, Inject, Injector, ViewContainerRef
|
|
26
|
+
import { Injectable, Directive, Optional, Input, Output, EventEmitter, Pipe, Component, ViewChild, ViewEncapsulation, ElementRef, ChangeDetectorRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectionStrategy, InjectionToken, Inject, Injector, ViewContainerRef } from '@angular/core';
|
|
27
27
|
import { ActivatedRoute, Router, NavigationStart, NavigationEnd, RouterModule } from '@angular/router';
|
|
28
28
|
import { createFeatureSelector, createSelector, select, Store } from '@ngrx/store';
|
|
29
29
|
import { skip, first, filter } from 'rxjs/operators';
|
|
@@ -1458,6 +1458,8 @@ class AdvancedTableComponent {
|
|
|
1458
1458
|
this.order = new EventEmitter();
|
|
1459
1459
|
this.scroll = new EventEmitter();
|
|
1460
1460
|
this.selectedItems = new EventEmitter();
|
|
1461
|
+
this.beforeServerData = new EventEmitter();
|
|
1462
|
+
this.afterServerData = new EventEmitter();
|
|
1461
1463
|
this.loading = new EventEmitter();
|
|
1462
1464
|
this.scrollable = true;
|
|
1463
1465
|
this.serverSide = true;
|
|
@@ -2395,8 +2397,10 @@ class AdvancedTableComponent {
|
|
|
2395
2397
|
}
|
|
2396
2398
|
q.filter(expressions.join(' and '));
|
|
2397
2399
|
}
|
|
2400
|
+
self.beforeServerData.emit(q);
|
|
2398
2401
|
self.lastQueryParams = q.getParams();
|
|
2399
2402
|
return q.getList().then((items) => {
|
|
2403
|
+
self.afterServerData.emit(items);
|
|
2400
2404
|
/** @type {?} */
|
|
2401
2405
|
const dataSet = {
|
|
2402
2406
|
recordsTotal: items.total,
|
|
@@ -2423,8 +2427,10 @@ class AdvancedTableComponent {
|
|
|
2423
2427
|
return fnCallback(EMPTY_DATASET);
|
|
2424
2428
|
});
|
|
2425
2429
|
}
|
|
2430
|
+
self.beforeServerData.emit(q);
|
|
2426
2431
|
self.lastQueryParams = q.getParams();
|
|
2427
2432
|
q.getList().then((items) => {
|
|
2433
|
+
self.afterServerData.emit(items);
|
|
2428
2434
|
/** @type {?} */
|
|
2429
2435
|
const dataSet = {
|
|
2430
2436
|
recordsTotal: items.total,
|
|
@@ -3152,6 +3158,8 @@ AdvancedTableComponent.propDecorators = {
|
|
|
3152
3158
|
order: [{ type: Output, args: ['order',] }],
|
|
3153
3159
|
scroll: [{ type: Output, args: ['scroll',] }],
|
|
3154
3160
|
selectedItems: [{ type: Output, args: ['selectedItems',] }],
|
|
3161
|
+
beforeServerData: [{ type: Output, args: ['beforeServerData',] }],
|
|
3162
|
+
afterServerData: [{ type: Output, args: ['afterServerData',] }],
|
|
3155
3163
|
loading: [{ type: Output, args: ['loading',] }],
|
|
3156
3164
|
scrollable: [{ type: Input }],
|
|
3157
3165
|
serverSide: [{ type: Input }],
|