@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.
- package/bundles/universis-ngx-tables.umd.js +19 -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 +6 -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 +6 -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 +12 -5
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +13 -6
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/package.json +1 -3
- package/public_api.d.ts +1 -0
- package/universis-ngx-tables.d.ts +3 -3
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -19,9 +19,9 @@ import { ActivatedRoute, Router, NavigationStart, RouterModule } from '@angular/
|
|
|
19
19
|
import { BsModalRef, BsModalService, ModalModule } from 'ngx-bootstrap/modal';
|
|
20
20
|
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
|
|
21
21
|
import { GroupByPipe, NgPipesModule } from 'ngx-pipes';
|
|
22
|
-
import { __extends,
|
|
22
|
+
import { __extends, __awaiter, __generator, __values, __assign, __spread } from 'tslib';
|
|
23
23
|
import { Injectable, Directive, Optional, Input, Pipe, Component, ElementRef, ViewChild, ViewEncapsulation, EventEmitter, Output, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectorRef, InjectionToken, Inject, Injector, ChangeDetectionStrategy } from '@angular/core';
|
|
24
|
-
import { createFeatureSelector, createSelector, select, Store
|
|
24
|
+
import { createFeatureSelector, createSelector, select, Store } from '@ngrx/store';
|
|
25
25
|
import { first } from 'rxjs/operators';
|
|
26
26
|
|
|
27
27
|
var AdvancedColumnFormatter = /** @class */ (function () {
|
|
@@ -1131,6 +1131,7 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
1131
1131
|
}, 0);
|
|
1132
1132
|
}
|
|
1133
1133
|
});
|
|
1134
|
+
var drawIndex_1 = 1;
|
|
1134
1135
|
tableElement_1.on('order.dt', function (event) {
|
|
1135
1136
|
if (_this.dataTable) {
|
|
1136
1137
|
var order = _this.dataTable.order();
|
|
@@ -1143,8 +1144,11 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
1143
1144
|
if (_this.dataTable) {
|
|
1144
1145
|
var info = _this.dataTable.page.info();
|
|
1145
1146
|
_this.page.emit(info);
|
|
1147
|
+
if (drawIndex_1 > 1)
|
|
1148
|
+
return;
|
|
1146
1149
|
try {
|
|
1147
|
-
|
|
1150
|
+
drawIndex_1++;
|
|
1151
|
+
setTimeout(function () { _this.dataTable.columns.adjust(); }, 1);
|
|
1148
1152
|
}
|
|
1149
1153
|
catch (err) {
|
|
1150
1154
|
console.error('ERROR', 'An error occurred while adjusting table columns');
|
|
@@ -4629,6 +4633,10 @@ var AppendState = /** @class */ (function () {
|
|
|
4629
4633
|
}());
|
|
4630
4634
|
|
|
4631
4635
|
var initialState = {};
|
|
4636
|
+
var tableInitialState = {
|
|
4637
|
+
filter: {},
|
|
4638
|
+
order: []
|
|
4639
|
+
};
|
|
4632
4640
|
function tableReducer(state, action) {
|
|
4633
4641
|
if (state === void 0) { state = initialState; }
|
|
4634
4642
|
switch (action.type) {
|
|
@@ -4825,8 +4833,7 @@ var TablesModule = /** @class */ (function () {
|
|
|
4825
4833
|
SharedModule,
|
|
4826
4834
|
ModalModule,
|
|
4827
4835
|
ProgressbarModule,
|
|
4828
|
-
NgPipesModule
|
|
4829
|
-
StoreModule.forFeature(featureName, tableReducers)
|
|
4836
|
+
NgPipesModule
|
|
4830
4837
|
],
|
|
4831
4838
|
providers: [DatePipe, TemplatePipe,
|
|
4832
4839
|
{
|
|
@@ -4903,6 +4910,6 @@ var TablesModule = /** @class */ (function () {
|
|
|
4903
4910
|
* Generated bundle index. Do not edit.
|
|
4904
4911
|
*/
|
|
4905
4912
|
|
|
4906
|
-
export { AdvancedSearchState as
|
|
4913
|
+
export { AdvancedSearchState as ɵa, AdvancedTableState as ɵc, AdvancedListComponent, AdvancedRowActionComponent, AdvancedSearchFormComponent, AdvancedSelectComponent, AdvancedSelectService, AdvancedTableConfigurationResolver, AdvancedSearchConfigurationResolver, AdvancedColumnFormatter, NestedPropertyFormatter, ButtonFormatter, LinkFormatter, ActionLinkFormatter, ActionButtonFormatter, ActionSplitButtonFormatter, SelectRowFormatter, TemplateFormatter, TrueFalseFormatter, TranslationFormatter, DateTimeFormatter, NgClassFormatter, LanguageFormatter, COLUMN_FORMATTERS, AdvancedTableConfiguration, AdvancedTableComponent, AdvancedTableSettingsComponent, AdvancedTableSearchBaseComponent, AdvancedTableSearchComponent, FORMATTERS, AdvancedFilterValueProvider, AdvancedTableModalBaseTemplate, AdvancedTableModalBaseComponent, SimpleHeaderToolsComponent, TableSimpleHeaderComponent, AdvancedTableNotNullError, AdvancedTableEditorDirective, BtnExpDirective, AdvancedAggregatorComponent, AdvancedAggregatorListComponent, AddItemsComponent, AdvancedAggregatorPipe, ParseTitlePipe, AdvancedAggregatorService, TablesModule, ɵ0, ActivatedTableService, initialState, tableInitialState, tableReducer, tableReducers, featureName, getTablesState, selectTable };
|
|
4907
4914
|
|
|
4908
4915
|
//# sourceMappingURL=universis-ngx-tables.js.map
|