@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 { ProgressbarModule } from 'ngx-bootstrap/progressbar';
|
|
|
23
23
|
import { GroupByPipe, NgPipesModule } from 'ngx-pipes';
|
|
24
24
|
import { template, at, cloneDeep, isEmpty } from 'lodash';
|
|
25
25
|
import { __extends, __awaiter, __generator, __values, __assign, __spread } from 'tslib';
|
|
26
|
-
import { Injectable, Directive, Optional, Input, Pipe, Component, EventEmitter, Output, ElementRef, ViewChild, ViewEncapsulation,
|
|
26
|
+
import { Injectable, Directive, Optional, Input, Pipe, Component, EventEmitter, Output, ElementRef, ViewChild, ViewEncapsulation, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectorRef, InjectionToken, Inject, Injector, ViewContainerRef, ChangeDetectionStrategy } 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';
|
|
@@ -1869,6 +1869,8 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
1869
1869
|
this.order = new EventEmitter();
|
|
1870
1870
|
this.scroll = new EventEmitter();
|
|
1871
1871
|
this.selectedItems = new EventEmitter();
|
|
1872
|
+
this.beforeServerData = new EventEmitter();
|
|
1873
|
+
this.afterServerData = new EventEmitter();
|
|
1872
1874
|
this.loading = new EventEmitter();
|
|
1873
1875
|
this.scrollable = true;
|
|
1874
1876
|
this.serverSide = true;
|
|
@@ -2902,8 +2904,10 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
2902
2904
|
}
|
|
2903
2905
|
q.filter(expressions.join(' and '));
|
|
2904
2906
|
}
|
|
2907
|
+
self.beforeServerData.emit(q);
|
|
2905
2908
|
self.lastQueryParams = q.getParams();
|
|
2906
2909
|
return q.getList().then(function (items) {
|
|
2910
|
+
self.afterServerData.emit(items);
|
|
2907
2911
|
/** @type {?} */
|
|
2908
2912
|
var dataSet = {
|
|
2909
2913
|
recordsTotal: items.total,
|
|
@@ -2930,8 +2934,10 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
2930
2934
|
return fnCallback(EMPTY_DATASET);
|
|
2931
2935
|
});
|
|
2932
2936
|
}
|
|
2937
|
+
self.beforeServerData.emit(q);
|
|
2933
2938
|
self.lastQueryParams = q.getParams();
|
|
2934
2939
|
q.getList().then(function (items) {
|
|
2940
|
+
self.afterServerData.emit(items);
|
|
2935
2941
|
/** @type {?} */
|
|
2936
2942
|
var dataSet = {
|
|
2937
2943
|
recordsTotal: items.total,
|
|
@@ -3714,6 +3720,8 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
3714
3720
|
order: [{ type: Output, args: ['order',] }],
|
|
3715
3721
|
scroll: [{ type: Output, args: ['scroll',] }],
|
|
3716
3722
|
selectedItems: [{ type: Output, args: ['selectedItems',] }],
|
|
3723
|
+
beforeServerData: [{ type: Output, args: ['beforeServerData',] }],
|
|
3724
|
+
afterServerData: [{ type: Output, args: ['afterServerData',] }],
|
|
3717
3725
|
loading: [{ type: Output, args: ['loading',] }],
|
|
3718
3726
|
scrollable: [{ type: Input }],
|
|
3719
3727
|
serverSide: [{ type: Input }],
|