@sd-angular/core 1.3.183 → 1.3.184

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.
Files changed (24) hide show
  1. package/bundles/sd-angular-core-table.umd.js +48 -28
  2. package/bundles/sd-angular-core-table.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-table.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
  5. package/esm2015/table/sd-angular-core-table.js +2 -2
  6. package/esm2015/table/src/lib/components/popup-configuration/popup-configuration.component.js +5 -5
  7. package/esm2015/table/src/lib/components/popup-filter/popup-filter.component.js +1 -1
  8. package/esm2015/table/src/lib/components/table-filter/table-filter.component.js +1 -1
  9. package/esm2015/table/src/lib/directives/sd-table-filter-def.directive.js +5 -5
  10. package/esm2015/table/src/lib/services/table-filter/table-filter.service.js +1 -1
  11. package/esm2015/table/src/lib/table.component.js +31 -10
  12. package/esm2015/table/src/lib/table.module.js +4 -4
  13. package/fesm2015/sd-angular-core-table.js +40 -19
  14. package/fesm2015/sd-angular-core-table.js.map +1 -1
  15. package/package.json +1 -1
  16. package/{sd-angular-core-1.3.183.tgz → sd-angular-core-1.3.184.tgz} +0 -0
  17. package/table/sd-angular-core-table.d.ts +1 -1
  18. package/table/sd-angular-core-table.metadata.json +1 -1
  19. package/table/src/lib/components/popup-configuration/popup-configuration.component.d.ts +2 -2
  20. package/table/src/lib/components/popup-filter/popup-filter.component.d.ts +2 -2
  21. package/table/src/lib/components/table-filter/table-filter.component.d.ts +2 -2
  22. package/table/src/lib/directives/sd-table-filter-def.directive.d.ts +2 -2
  23. package/table/src/lib/services/table-filter/table-filter.service.d.ts +2 -2
  24. package/table/src/lib/table.component.d.ts +6 -4
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/common'), require('@angular/material/icon'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('rxjs/operators'), require('@sd-angular/core/modal'), require('ngx-device-detector'), require('@sd-angular/core/export'), require('@sd-angular/core/setting'), require('@sd-angular/core/quick-action'), require('object-hash'), require('@angular/cdk/drag-drop'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/material/menu'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/slide-toggle'), require('@sd-angular/core/form'), require('@angular/material/checkbox'), require('@angular/material/list'), require('@sd-angular/core/group')) :
3
- typeof define === 'function' && define.amd ? define('@sd-angular/core/table', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/common', '@angular/material/icon', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', 'rxjs/operators', '@sd-angular/core/modal', 'ngx-device-detector', '@sd-angular/core/export', '@sd-angular/core/setting', '@sd-angular/core/quick-action', 'object-hash', '@angular/cdk/drag-drop', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/material/menu', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/slide-toggle', '@sd-angular/core/form', '@angular/material/checkbox', '@angular/material/list', '@sd-angular/core/group'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.table = {}), global['sd-angular'].core.common, global.ng.core, global.ng.common, global.ng.material.icon, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.rxjs.operators, global['sd-angular'].core.modal, global['ngx-device-detector'], global['sd-angular'].core.export, global['sd-angular'].core.setting, global['sd-angular'].core['quick-action'], global['object-hash'], global.ng.cdk.dragDrop, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.material.menu, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.slideToggle, global['sd-angular'].core.form, global.ng.material.checkbox, global.ng.material.list, global['sd-angular'].core.group));
5
- }(this, (function (exports, common, core, common$1, icon, paginator, sort, animations, uuid, rxjs, notify, operators, modal, ngxDeviceDetector, _export, setting, quickAction, hash, dragDrop, table, progressSpinner, table$1, menu, button, service, tooltip, slideToggle, form, checkbox, list, group) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/common'), require('@angular/material/icon'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('rxjs/operators'), require('@sd-angular/core/modal'), require('ngx-device-detector'), require('@sd-angular/core/export'), require('@sd-angular/core/setting'), require('@sd-angular/core/quick-action'), require('object-hash'), require('@angular/cdk/drag-drop'), require('@sd-angular/core/loading'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/material/menu'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/slide-toggle'), require('@sd-angular/core/form'), require('@angular/material/checkbox'), require('@angular/material/list'), require('@sd-angular/core/group')) :
3
+ typeof define === 'function' && define.amd ? define('@sd-angular/core/table', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/common', '@angular/material/icon', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', 'rxjs/operators', '@sd-angular/core/modal', 'ngx-device-detector', '@sd-angular/core/export', '@sd-angular/core/setting', '@sd-angular/core/quick-action', 'object-hash', '@angular/cdk/drag-drop', '@sd-angular/core/loading', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/material/menu', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/slide-toggle', '@sd-angular/core/form', '@angular/material/checkbox', '@angular/material/list', '@sd-angular/core/group'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.table = {}), global['sd-angular'].core.common, global.ng.core, global.ng.common, global.ng.material.icon, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.rxjs.operators, global['sd-angular'].core.modal, global['ngx-device-detector'], global['sd-angular'].core.export, global['sd-angular'].core.setting, global['sd-angular'].core['quick-action'], global['object-hash'], global.ng.cdk.dragDrop, global['sd-angular'].core.loading, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.material.menu, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.slideToggle, global['sd-angular'].core.form, global.ng.material.checkbox, global.ng.material.list, global['sd-angular'].core.group));
5
+ }(this, (function (exports, common, core, common$1, icon, paginator, sort, animations, uuid, rxjs, notify, operators, modal, ngxDeviceDetector, _export, setting, quickAction, hash, dragDrop, loading, table, progressSpinner, table$1, menu, button, service, tooltip, slideToggle, form, checkbox, list, group) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -564,28 +564,28 @@
564
564
  _filterRegister: [{ type: core.Input, args: ['filterRegister',] }]
565
565
  };
566
566
 
567
- var SdMaterialFilterDefDirective = /** @class */ (function () {
568
- function SdMaterialFilterDefDirective(templateRef) {
567
+ var SdTableFilterDefDirective = /** @class */ (function () {
568
+ function SdTableFilterDefDirective(templateRef) {
569
569
  this.templateRef = templateRef;
570
570
  }
571
- Object.defineProperty(SdMaterialFilterDefDirective.prototype, "showing", {
571
+ Object.defineProperty(SdTableFilterDefDirective.prototype, "showing", {
572
572
  set: function (val) {
573
573
  this.defaultShowing = (val === '') || val;
574
574
  },
575
575
  enumerable: false,
576
576
  configurable: true
577
577
  });
578
- return SdMaterialFilterDefDirective;
578
+ return SdTableFilterDefDirective;
579
579
  }());
580
- SdMaterialFilterDefDirective.decorators = [
580
+ SdTableFilterDefDirective.decorators = [
581
581
  { type: core.Directive, args: [{
582
582
  selector: '[sdTableFilterDef]'
583
583
  },] }
584
584
  ];
585
- SdMaterialFilterDefDirective.ctorParameters = function () { return [
585
+ SdTableFilterDefDirective.ctorParameters = function () { return [
586
586
  { type: core.TemplateRef }
587
587
  ]; };
588
- SdMaterialFilterDefDirective.propDecorators = {
588
+ SdTableFilterDefDirective.propDecorators = {
589
589
  sdTableFilterDef: [{ type: core.Input }],
590
590
  showing: [{ type: core.Input, args: ['defaultShowing',] }]
591
591
  };
@@ -1109,11 +1109,11 @@
1109
1109
 
1110
1110
  var _setting;
1111
1111
  var SdPopupConfiguration = /** @class */ (function () {
1112
- function SdPopupConfiguration(ref, notifyService, gridConfigurationService) {
1112
+ function SdPopupConfiguration(ref, notifyService, tableConfigurationService) {
1113
1113
  var _this = this;
1114
1114
  this.ref = ref;
1115
1115
  this.notifyService = notifyService;
1116
- this.gridConfigurationService = gridConfigurationService;
1116
+ this.tableConfigurationService = tableConfigurationService;
1117
1117
  this.changes = new core.EventEmitter();
1118
1118
  _setting.set(this, void 0);
1119
1119
  this.isCreatingColumn = false;
@@ -1121,7 +1121,7 @@
1121
1121
  this.disabledDrag = true;
1122
1122
  this.open = function () { return __awaiter(_this, void 0, void 0, function () {
1123
1123
  return __generator(this, function (_a) {
1124
- __classPrivateFieldSet(this, _setting, this.gridConfigurationService.init(this.tableOption));
1124
+ __classPrivateFieldSet(this, _setting, this.tableConfigurationService.init(this.tableOption));
1125
1125
  this.configuration = __classPrivateFieldGet(this, _setting).get();
1126
1126
  this.modal.open();
1127
1127
  return [2 /*return*/];
@@ -1164,7 +1164,7 @@
1164
1164
  SdPopupConfiguration.decorators = [
1165
1165
  { type: core.Component, args: [{
1166
1166
  selector: 'sd-popup-configuration',
1167
- template: "<sd-modal width=\"sm\" [title]=\"'Configuration' | sdTranslate\" #modal>\r\n <sd-modal-body *ngIf=\"configuration\">\r\n <div class=\"c-container\">\r\n <div class=\"c-table\" style=\"max-height: 70vh\">\r\n <table\r\n #table\r\n mat-table\r\n [dataSource]=\"configuration.columns\"\r\n cdkDropList\r\n [cdkDropListData]=\"configuration.columns\"\r\n (cdkDropListDropped)=\"dropTable($event)\">\r\n >\r\n <ng-container matColumnDef=\"stt\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 50px\">#</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item; let idx = index\">\r\n <div class=\"c-handle\" (mousedown)=\"handleMouseDown()\" (mouseup)=\"handleMouseUp()\">\r\n <svg width=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\r\n <path\r\n d=\"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z\"></path>\r\n <path d=\"M0 0h24v24H0z\" fill=\"none\"></path>\r\n </svg>\r\n </div>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"title\">\r\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef>{{ 'Title' | sdTranslate }}</th>\r\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\r\n <sd-input [placeholder]=\"item?.origin?.title\" [(model)]=\"item.title\" disableErrorMessage></sd-input>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"width\">\r\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Width' | sdTranslate }}</th>\r\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\r\n <sd-input [placeholder]=\"item?.origin?.width\" [(model)]=\"item.width\" disableErrorMessage></sd-input>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"invisible\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Hidden' | sdTranslate }}</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item\">\r\n <mat-slide-toggle [(ngModel)]=\"item.invisible\" color=\"primary\"> </mat-slide-toggle>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"fixed\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Freeze' | sdTranslate }}</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item\">\r\n <mat-slide-toggle [(ngModel)]=\"item.fixed\" color=\"primary\"></mat-slide-toggle>\r\n </td>\r\n </ng-container>\r\n <tr mat-header-row *matHeaderRowDef=\"['stt', 'title', 'width', 'invisible', 'fixed']; sticky: true\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: ['stt', 'title', 'width', 'invisible', 'fixed']\"\r\n cdkDrag\r\n [cdkDragData]=\"row\"\r\n cdkDragLockAxis=\"y\"\r\n [cdkDragDisabled]=\"disabledDrag\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n </sd-modal-body>\r\n <sd-modal-footer>\r\n <sd-button class=\"mr-8s\" (action)=\"onReset()\" title=\"M\u1EB7c \u0111\u1ECBnh\" color=\"info\" size=\"sm\"> </sd-button>\r\n <sd-button (action)=\"onSave()\" title=\"L\u01B0u\" type=\"fill\" color=\"info\" size=\"sm\"> </sd-button>\r\n </sd-modal-footer>\r\n</sd-modal>\r\n",
1167
+ template: "<sd-modal width=\"sm\" [title]=\"'Configuration' | sdTranslate\" #modal>\r\n <sd-modal-body *ngIf=\"configuration\">\r\n <div class=\"c-container\">\r\n <div class=\"c-table\" style=\"max-height: 70vh\">\r\n <table\r\n #table\r\n mat-table\r\n [dataSource]=\"configuration.columns\"\r\n cdkDropList\r\n [cdkDropListData]=\"configuration.columns\"\r\n (cdkDropListDropped)=\"dropTable($event)\">\r\n >\r\n <ng-container matColumnDef=\"stt\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 50px\">#</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item; let idx = index\">\r\n <div class=\"c-handle\" (mousedown)=\"handleMouseDown()\" (mouseup)=\"handleMouseUp()\">\r\n <svg width=\"24px\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\r\n <path\r\n d=\"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z\"></path>\r\n <path d=\"M0 0h24v24H0z\" fill=\"none\"></path>\r\n </svg>\r\n </div>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"title\">\r\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef>{{ 'Title' | sdTranslate }}</th>\r\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\r\n <sd-input [placeholder]=\"item?.origin?.title\" [(model)]=\"item.title\" disableErrorMessage></sd-input>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"width\">\r\n <th mat-header-cell class=\"c-th px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Width' | sdTranslate }}</th>\r\n <td class=\"px-5\" mat-cell *matCellDef=\"let item\">\r\n <sd-input [placeholder]=\"item?.origin?.width\" [(model)]=\"item.width\" disableErrorMessage></sd-input>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"invisible\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Hidden' | sdTranslate }}</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item\">\r\n <mat-slide-toggle [(ngModel)]=\"item.invisible\" color=\"primary\"> </mat-slide-toggle>\r\n </td>\r\n </ng-container>\r\n <ng-container matColumnDef=\"fixed\">\r\n <th mat-header-cell class=\"c-th text-center px-5\" *matHeaderCellDef style=\"width: 80px\">{{ 'Freeze' | sdTranslate }}</th>\r\n <td class=\"text-center px-5\" mat-cell *matCellDef=\"let item\">\r\n <mat-slide-toggle [(ngModel)]=\"item.fixed\" color=\"primary\"></mat-slide-toggle>\r\n </td>\r\n </ng-container>\r\n <tr mat-header-row *matHeaderRowDef=\"['stt', 'title', 'width', 'invisible', 'fixed']; sticky: true\"></tr>\r\n <tr\r\n mat-row\r\n *matRowDef=\"let row; columns: ['stt', 'title', 'width', 'invisible', 'fixed']\"\r\n cdkDrag\r\n [cdkDragData]=\"row\"\r\n cdkDragLockAxis=\"y\"\r\n [cdkDragDisabled]=\"disabledDrag\"></tr>\r\n </table>\r\n </div>\r\n </div>\r\n </sd-modal-body>\r\n <sd-modal-footer>\r\n <sd-button class=\"mr-8\" (action)=\"onReset()\" title=\"M\u1EB7c \u0111\u1ECBnh\" color=\"info\" size=\"sm\"> </sd-button>\r\n <sd-button (action)=\"onSave()\" title=\"L\u01B0u\" type=\"fill\" color=\"info\" size=\"sm\"> </sd-button>\r\n </sd-modal-footer>\r\n</sd-modal>\r\n",
1168
1168
  styles: [".c-table{overflow:auto;position:relative}.c-table table{width:100%}.c-table .c-th{color:#000;font-size:14px;font-weight:500;line-height:20px}.c-container{min-height:200px;position:relative}.c-handle{color:#ccc;cursor:move}"]
1169
1169
  },] }
1170
1170
  ];
@@ -1182,9 +1182,10 @@
1182
1182
 
1183
1183
  var _gridId, _optionChanges, _localItems, _paginator, _sort, _subscription$1, _reload, _loadCompleted, _cacheObjValues, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration$1, _loadFilterRegister, _filterLocal, _getFilter, _load, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _getExportColumns, _updateSelectedItems, _loadValues, _format;
1184
1184
  var SdTable = /** @class */ (function () {
1185
- function SdTable(ref, tableConfiguration, tableConfigurationService, exportService, notifyService, gridFilterService) {
1185
+ function SdTable(ref, loadingService, tableConfiguration, tableConfigurationService, exportService, notifyService, gridFilterService) {
1186
1186
  var _this = this;
1187
1187
  this.ref = ref;
1188
+ this.loadingService = loadingService;
1188
1189
  this.tableConfiguration = tableConfiguration;
1189
1190
  this.tableConfigurationService = tableConfigurationService;
1190
1191
  this.exportService = exportService;
@@ -1516,6 +1517,7 @@
1516
1517
  switch (_13.label) {
1517
1518
  case 0:
1518
1519
  this.isLoading = true;
1520
+ this.ref.detectChanges();
1519
1521
  if (!(this.tableOption.type === 'server')) return [3 /*break*/, 3];
1520
1522
  items = this.tableOption.items;
1521
1523
  return [4 /*yield*/, items(filterReq).catch(function (err) {
@@ -1528,9 +1530,11 @@
1528
1530
  })];
1529
1531
  case 1:
1530
1532
  data = _13.sent();
1531
- this.isLoading = false;
1532
1533
  _10 = {};
1533
- return [4 /*yield*/, __classPrivateFieldGet(this, _format).call(this, data === null || data === void 0 ? void 0 : data.items, this.tableOption.columns)];
1534
+ return [4 /*yield*/, __classPrivateFieldGet(this, _format).call(this, data === null || data === void 0 ? void 0 : data.items, this.tableOption.columns).finally(function () {
1535
+ _this.isLoading = false;
1536
+ _this.ref.detectChanges();
1537
+ })];
1534
1538
  case 2: return [2 /*return*/, (_10.items = _13.sent(),
1535
1539
  _10.total = (data === null || data === void 0 ? void 0 : data.total) || 0,
1536
1540
  _10)];
@@ -1564,6 +1568,7 @@
1564
1568
  _13.label = 8;
1565
1569
  case 8:
1566
1570
  this.isLoading = false;
1571
+ this.ref.detectChanges();
1567
1572
  return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, __classPrivateFieldGet(this, _localItems), filterReq)];
1568
1573
  }
1569
1574
  });
@@ -2413,14 +2418,21 @@
2413
2418
  option = __classPrivateFieldGet(this, _initConfiguration$1).call(this, option);
2414
2419
  this.tableOption = option;
2415
2420
  __classPrivateFieldSet(this, _loadCompleted, false);
2416
- var setting = this.tableConfigurationService.init(this.tableOption);
2417
- if (setting) {
2418
- __classPrivateFieldGet(this, _subscription$1).add(setting.observer.pipe(operators.startWith(setting.subject.getValue())).subscribe(function (configuration) {
2419
- var configurationResult = _this.tableConfigurationService.loadConfigurationResult(_this.tableOption, configuration);
2421
+ var setting_1 = this.tableConfigurationService.init(this.tableOption);
2422
+ if (setting_1) {
2423
+ __classPrivateFieldGet(this, _subscription$1).add(setting_1.observer.pipe(operators.startWith(setting_1.subject.getValue())).subscribe(function () {
2424
+ var configurationResult = _this.tableConfigurationService.loadConfigurationResult(_this.tableOption, setting_1.get());
2420
2425
  var displayColumns = configurationResult.displayedColumns || [];
2421
- __classPrivateFieldGet(_this, _loadValues).call(_this, _this.tableOption.columns.filter(function (column) { return displayColumns.includes(column.field); })).then(function () {
2426
+ _this.loadingService.start();
2427
+ _this.ref.detectChanges();
2428
+ __classPrivateFieldGet(_this, _loadValues).call(_this, _this.tableOption.columns.filter(function (column) { return displayColumns.includes(column.field); }))
2429
+ .then(function () {
2422
2430
  _this.configuration = configurationResult;
2423
2431
  __classPrivateFieldGet(_this, _optionChanges).next(_this.tableOption);
2432
+ })
2433
+ .finally(function () {
2434
+ _this.loadingService.stop();
2435
+ _this.ref.detectChanges();
2424
2436
  });
2425
2437
  }));
2426
2438
  }
@@ -2428,9 +2440,16 @@
2428
2440
  var configuration = this.tableConfigurationService.loadConfiguration(this.tableOption);
2429
2441
  var configurationResult_1 = this.tableConfigurationService.loadConfigurationResult(this.tableOption, configuration);
2430
2442
  var displayColumns_1 = configurationResult_1.displayedColumns || [];
2431
- __classPrivateFieldGet(this, _loadValues).call(this, this.tableOption.columns.filter(function (column) { return displayColumns_1.includes(column.field); })).then(function () {
2443
+ this.loadingService.start();
2444
+ this.ref.detectChanges();
2445
+ __classPrivateFieldGet(this, _loadValues).call(this, this.tableOption.columns.filter(function (column) { return displayColumns_1.includes(column.field); }))
2446
+ .then(function () {
2432
2447
  _this.configuration = configurationResult_1;
2433
2448
  __classPrivateFieldGet(_this, _optionChanges).next(_this.tableOption);
2449
+ })
2450
+ .finally(function () {
2451
+ _this.loadingService.stop();
2452
+ _this.ref.detectChanges();
2434
2453
  });
2435
2454
  }
2436
2455
  }
@@ -2547,6 +2566,7 @@
2547
2566
  ];
2548
2567
  SdTable.ctorParameters = function () { return [
2549
2568
  { type: core.ChangeDetectorRef },
2569
+ { type: loading.SdLoadingService },
2550
2570
  { type: undefined, decorators: [{ type: core.Inject, args: [TABLE_CONFIG,] }, { type: core.Optional }] },
2551
2571
  { type: SdTableConfigurationService },
2552
2572
  { type: _export.SdExportService },
@@ -2564,7 +2584,7 @@
2564
2584
  sdSubInformation: [{ type: core.ContentChild, args: [SdMaterialSubInformationDefDirective,] }],
2565
2585
  sdCellDefs: [{ type: core.ContentChildren, args: [SdTabelCellDefDirective,] }],
2566
2586
  sdFooterDefs: [{ type: core.ContentChildren, args: [SdMaterialFooterDefDirective,] }],
2567
- sdFilterDefs: [{ type: core.ContentChildren, args: [SdMaterialFilterDefDirective,] }]
2587
+ sdFilterDefs: [{ type: core.ContentChildren, args: [SdTableFilterDefDirective,] }]
2568
2588
  };
2569
2589
 
2570
2590
  var SdCommandFilterPipe = /** @class */ (function () {
@@ -3631,7 +3651,7 @@
3631
3651
  SdTable,
3632
3652
  SdMaterialFooterDefDirective,
3633
3653
  SdTabelCellDefDirective,
3634
- SdMaterialFilterDefDirective,
3654
+ SdTableFilterDefDirective,
3635
3655
  SdMaterialSubInformationDefDirective,
3636
3656
  SdPopupConfiguration,
3637
3657
  SdTableFilter,
@@ -3654,7 +3674,7 @@
3654
3674
  SdTable,
3655
3675
  SdMaterialFooterDefDirective,
3656
3676
  SdTabelCellDefDirective,
3657
- SdMaterialFilterDefDirective,
3677
+ SdTableFilterDefDirective,
3658
3678
  SdMaterialSubInformationDefDirective,
3659
3679
  ],
3660
3680
  providers: [
@@ -3696,7 +3716,7 @@
3696
3716
  exports.ɵl = SdMaterialSubInformationDefDirective;
3697
3717
  exports.ɵm = SdTabelCellDefDirective;
3698
3718
  exports.ɵn = SdMaterialFooterDefDirective;
3699
- exports.ɵo = SdMaterialFilterDefDirective;
3719
+ exports.ɵo = SdTableFilterDefDirective;
3700
3720
  exports.ɵp = SdTableFilterService;
3701
3721
  exports.ɵq = SdCommandFilterPipe;
3702
3722
  exports.ɵr = SdCommandDisablePipe;