@universis/ngx-tables 0.7.3 → 0.7.6
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 +26 -8
- 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 -2
- package/esm2015/lib/tables.module.js +2 -5
- package/esm2015/public_api.js +2 -1
- package/esm2015/universis-ngx-tables.js +3 -4
- package/esm5/lib/components/advanced-table/advanced-table.component.js +13 -2
- package/esm5/lib/tables.module.js +2 -5
- package/esm5/public_api.js +2 -1
- package/esm5/universis-ngx-tables.js +3 -4
- package/fesm2015/universis-ngx-tables.js +19 -5
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +20 -6
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/universis-ngx-tables.d.ts +3 -3
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -1293,6 +1293,13 @@
|
|
|
1293
1293
|
});
|
|
1294
1294
|
// get table element
|
|
1295
1295
|
var tableElement_1 = jQuery(this.table.nativeElement);
|
|
1296
|
+
jQuery(window).on('resize', function () {
|
|
1297
|
+
setTimeout(function () {
|
|
1298
|
+
if (_this.dataTable) {
|
|
1299
|
+
_this.dataTable.columns.adjust();
|
|
1300
|
+
}
|
|
1301
|
+
}, 1);
|
|
1302
|
+
});
|
|
1296
1303
|
// tslint:disable-next-line: no-shadowed-variable
|
|
1297
1304
|
tableElement_1.on('processing.dt', function (event, settings, processing) {
|
|
1298
1305
|
if (processing) {
|
|
@@ -1308,6 +1315,7 @@
|
|
|
1308
1315
|
}, 0);
|
|
1309
1316
|
}
|
|
1310
1317
|
});
|
|
1318
|
+
var drawIndex_1 = 1;
|
|
1311
1319
|
tableElement_1.on('order.dt', function (event) {
|
|
1312
1320
|
if (_this.dataTable) {
|
|
1313
1321
|
var order = _this.dataTable.order();
|
|
@@ -1320,8 +1328,11 @@
|
|
|
1320
1328
|
if (_this.dataTable) {
|
|
1321
1329
|
var info = _this.dataTable.page.info();
|
|
1322
1330
|
_this.page.emit(info);
|
|
1331
|
+
if (drawIndex_1 > 1)
|
|
1332
|
+
return;
|
|
1323
1333
|
try {
|
|
1324
|
-
|
|
1334
|
+
drawIndex_1++;
|
|
1335
|
+
setTimeout(function () { _this.dataTable.columns.adjust(); }, 1);
|
|
1325
1336
|
}
|
|
1326
1337
|
catch (err) {
|
|
1327
1338
|
console.error('ERROR', 'An error occurred while adjusting table columns');
|
|
@@ -4888,6 +4899,10 @@
|
|
|
4888
4899
|
}());
|
|
4889
4900
|
|
|
4890
4901
|
var initialState = {};
|
|
4902
|
+
var tableInitialState = {
|
|
4903
|
+
filter: {},
|
|
4904
|
+
order: []
|
|
4905
|
+
};
|
|
4891
4906
|
function tableReducer(state, action) {
|
|
4892
4907
|
if (state === void 0) {
|
|
4893
4908
|
state = initialState;
|
|
@@ -5090,8 +5105,7 @@
|
|
|
5090
5105
|
i2.SharedModule,
|
|
5091
5106
|
modal.ModalModule,
|
|
5092
5107
|
progressbar.ProgressbarModule,
|
|
5093
|
-
ngxPipes.NgPipesModule
|
|
5094
|
-
store.StoreModule.forFeature(featureName, tableReducers)
|
|
5108
|
+
ngxPipes.NgPipesModule
|
|
5095
5109
|
],
|
|
5096
5110
|
providers: [common.DatePipe, i2.TemplatePipe,
|
|
5097
5111
|
{
|
|
@@ -5170,11 +5184,8 @@
|
|
|
5170
5184
|
* Generated bundle index. Do not edit.
|
|
5171
5185
|
*/
|
|
5172
5186
|
|
|
5173
|
-
exports.ɵ
|
|
5174
|
-
exports.ɵ
|
|
5175
|
-
exports.ɵd = featureName;
|
|
5176
|
-
exports.ɵa = tableReducer;
|
|
5177
|
-
exports.ɵc = tableReducers;
|
|
5187
|
+
exports.ɵa = AdvancedSearchState;
|
|
5188
|
+
exports.ɵc = AdvancedTableState;
|
|
5178
5189
|
exports.AdvancedListComponent = AdvancedListComponent;
|
|
5179
5190
|
exports.AdvancedRowActionComponent = AdvancedRowActionComponent;
|
|
5180
5191
|
exports.AdvancedSearchFormComponent = AdvancedSearchFormComponent;
|
|
@@ -5220,6 +5231,13 @@
|
|
|
5220
5231
|
exports.TablesModule = TablesModule;
|
|
5221
5232
|
exports.ɵ0 = ɵ0;
|
|
5222
5233
|
exports.ActivatedTableService = ActivatedTableService;
|
|
5234
|
+
exports.initialState = initialState;
|
|
5235
|
+
exports.tableInitialState = tableInitialState;
|
|
5236
|
+
exports.tableReducer = tableReducer;
|
|
5237
|
+
exports.tableReducers = tableReducers;
|
|
5238
|
+
exports.featureName = featureName;
|
|
5239
|
+
exports.getTablesState = getTablesState;
|
|
5240
|
+
exports.selectTable = selectTable;
|
|
5223
5241
|
|
|
5224
5242
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5225
5243
|
|