@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.
@@ -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
- _this.dataTable.columns.adjust();
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.ɵe = AdvancedSearchState;
5174
- exports.ɵf = AdvancedTableState;
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