@universis/ngx-tables 6.13.1 → 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 +9 -1
- 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 +14 -2
- package/esm5/lib/components/advanced-table/advanced-table.component.js +14 -2
- package/fesm2015/universis-ngx-tables.js +10 -2
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +11 -3
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-table/advanced-table.component.d.ts +6 -0
- package/package.json +2 -2
- 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,
|
|
@@ -3113,7 +3119,7 @@ AdvancedTableComponent.decorators = [
|
|
|
3113
3119
|
</div>
|
|
3114
3120
|
`,
|
|
3115
3121
|
encapsulation: ViewEncapsulation.None,
|
|
3116
|
-
styles: ["
|
|
3122
|
+
styles: ["div.dataTables_processing>div:last-child>div{background-color:var(--secondary)}table.dataTable thead .sorting{background-image:none}table.dataTable thead tr th{border-bottom:none;font-weight:500;font-size:.75rem}table.dataTable thead th{color:#73818e;font-size:.75rem;font-weight:600;padding-top:16px;padding-bottom:4px;border-bottom:none;padding-left:8px}table.dataTable tbody tr:first-child td:first-child{border-radius:6px 0}table.dataTable tbody tr:first-child td:last-child{border-radius:0 6px}table.dataTable tbody tr{border-radius:6px}table.dataTable tbody tr td:first-child{border-left:1px solid #c2cfd6}table.dataTable tbody tr td:last-child{border-right:1px solid #c2cfd6}table.dataTable tbody tr td{padding-top:8px;padding-bottom:8px;border-top:1px solid #c2cfd6}table.dataTable tbody tr:last-child td:first-child{border-radius:0 0 0 6px}table.dataTable tbody tr:last-child td:last-child{border-radius:0 0 6px}table.dataTable tbody tr:last-child td{border-bottom:1px solid #c2cfd6}table.dataTable tbody tr.dtrg-group.dtrg-start th{border:2px solid #c2cfd6;border-bottom:1px solid #c2cfd6;color:#3e515b;background-color:#f0f3f5}table.dataTable tbody tr.dtrg-group.dtrg-end th{border-top:2px solid #c2cfd6;border-right:2px solid #c2cfd6;border-left:2px solid #c2cfd6;color:#3e515b;background-color:#f0f3f5}table.dataTable tbody tr:nth-last-child(1) th{border-bottom:2px solid #c2cfd6}table.dataTable td.dataTables_empty{border:none!important}table.dataTable .error-inner-message>small{overflow-wrap:break-word}table.dataTable.no-footer{border-bottom:none}.dataTables_paginate .btn.previous{margin-right:8px}.dataTables_paginate .btn.next{margin-left:8px}.dataTables_info,.dataTables_paginate{margin-top:1rem}.dataTables_paginate span .btn{border-radius:1.5rem}.dataTables_filter{display:none}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:0;overflow:auto}.dataTables_paginate{display:none}.dataTable.processing{opacity:15%}.dataTables_wrapper .dataTables_processing{background:0 0;position:absolute;display:inline-block;top:25%;z-index:5;color:#73818e}.text-decoration-line-through{text-decoration:line-through!important}tr.removed .checkbox+label{visibility:hidden}"]
|
|
3117
3123
|
}] }
|
|
3118
3124
|
];
|
|
3119
3125
|
/** @nocollapse */
|
|
@@ -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 }],
|