@universis/ngx-tables 0.7.2 → 0.7.5

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.
@@ -1308,6 +1308,7 @@
1308
1308
  }, 0);
1309
1309
  }
1310
1310
  });
1311
+ var drawIndex_1 = 1;
1311
1312
  tableElement_1.on('order.dt', function (event) {
1312
1313
  if (_this.dataTable) {
1313
1314
  var order = _this.dataTable.order();
@@ -1320,8 +1321,11 @@
1320
1321
  if (_this.dataTable) {
1321
1322
  var info = _this.dataTable.page.info();
1322
1323
  _this.page.emit(info);
1324
+ if (drawIndex_1 > 1)
1325
+ return;
1323
1326
  try {
1324
- _this.dataTable.columns.adjust();
1327
+ drawIndex_1++;
1328
+ setTimeout(function () { _this.dataTable.columns.adjust(); }, 1);
1325
1329
  }
1326
1330
  catch (err) {
1327
1331
  console.error('ERROR', 'An error occurred while adjusting table columns');
@@ -4888,6 +4892,10 @@
4888
4892
  }());
4889
4893
 
4890
4894
  var initialState = {};
4895
+ var tableInitialState = {
4896
+ filter: {},
4897
+ order: []
4898
+ };
4891
4899
  function tableReducer(state, action) {
4892
4900
  if (state === void 0) {
4893
4901
  state = initialState;
@@ -5090,8 +5098,7 @@
5090
5098
  i2.SharedModule,
5091
5099
  modal.ModalModule,
5092
5100
  progressbar.ProgressbarModule,
5093
- ngxPipes.NgPipesModule,
5094
- store.StoreModule.forFeature(featureName, tableReducers)
5101
+ ngxPipes.NgPipesModule
5095
5102
  ],
5096
5103
  providers: [common.DatePipe, i2.TemplatePipe,
5097
5104
  {
@@ -5170,11 +5177,8 @@
5170
5177
  * Generated bundle index. Do not edit.
5171
5178
  */
5172
5179
 
5173
- exports.ɵe = AdvancedSearchState;
5174
- exports.ɵf = AdvancedTableState;
5175
- exports.ɵd = featureName;
5176
- exports.ɵa = tableReducer;
5177
- exports.ɵc = tableReducers;
5180
+ exports.ɵa = AdvancedSearchState;
5181
+ exports.ɵc = AdvancedTableState;
5178
5182
  exports.AdvancedListComponent = AdvancedListComponent;
5179
5183
  exports.AdvancedRowActionComponent = AdvancedRowActionComponent;
5180
5184
  exports.AdvancedSearchFormComponent = AdvancedSearchFormComponent;
@@ -5220,6 +5224,13 @@
5220
5224
  exports.TablesModule = TablesModule;
5221
5225
  exports.ɵ0 = ɵ0;
5222
5226
  exports.ActivatedTableService = ActivatedTableService;
5227
+ exports.initialState = initialState;
5228
+ exports.tableInitialState = tableInitialState;
5229
+ exports.tableReducer = tableReducer;
5230
+ exports.tableReducers = tableReducers;
5231
+ exports.featureName = featureName;
5232
+ exports.getTablesState = getTablesState;
5233
+ exports.selectTable = selectTable;
5223
5234
 
5224
5235
  Object.defineProperty(exports, '__esModule', { value: true });
5225
5236