@sd-angular/core 1.3.95 → 1.3.97

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.
@@ -451,7 +451,7 @@
451
451
  _this.cdRef.markForCheck();
452
452
  };
453
453
  this.onApply = function () {
454
- _this.filterRegister.set({
454
+ __classPrivateFieldGet(_this, _filterRegister).set({
455
455
  inlineColumn: _this.inlineColumn,
456
456
  columnFilter: _this.columnFilter,
457
457
  inlineExternal: _this.inlineExternal,
@@ -502,13 +502,14 @@
502
502
  _this.externalFilter = JSON.parse(JSON.stringify(configuration.externalFilter));
503
503
  _this.inlineFilterDef = JSON.parse(JSON.stringify(configuration.inlineFilterDef));
504
504
  _this.filterDef = JSON.parse(JSON.stringify(configuration.filterDef));
505
+ _this.cdRef.markForCheck();
505
506
  }));
506
507
  };
507
508
  SdPopupFilter.prototype.ngOnDestroy = function () {
508
509
  __classPrivateFieldGet(this, _subscription).unsubscribe();
509
510
  };
510
511
  SdPopupFilter.prototype.onClear = function () {
511
- this.filterRegister.remove();
512
+ __classPrivateFieldGet(this, _filterRegister).remove();
512
513
  this.modal.close();
513
514
  this.cdRef.markForCheck();
514
515
  };
@@ -609,8 +610,8 @@
609
610
  _this.externalFilter = configuration.externalFilter;
610
611
  _this.inlineFilterDef = configuration.inlineFilterDef;
611
612
  _this.filterDef = configuration.filterDef;
613
+ _this.ref.markForCheck();
612
614
  }));
613
- _this.ref.markForCheck();
614
615
  }));
615
616
  };
616
617
  // #loadDefault = () => {
@@ -1686,7 +1687,7 @@
1686
1687
  function SdGridFilterService(settingService) {
1687
1688
  var _this = this;
1688
1689
  this.settingService = settingService;
1689
- _prefix$1.set(this, '61d22e8e-eee8-4aad-8e1c-044a532fea91');
1690
+ _prefix$1.set(this, 'GRID-FILTER');
1690
1691
  this.register = function (key, args) {
1691
1692
  var cacheSession = false;
1692
1693
  if (!key) {
@@ -1875,7 +1876,7 @@
1875
1876
  { type: setting.SdSettingService }
1876
1877
  ]; };
1877
1878
 
1878
- var _localItems, _paginator, _sort, _subscription$2, _reload, _loadCompleted, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _loadFilterRegister, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
1879
+ var _optionChanges, _localItems, _paginator, _sort, _subscription$2, _reload, _loadCompleted, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _loadFilterRegister, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
1879
1880
  var SdGridMaterial = /** @class */ (function () {
1880
1881
  function SdGridMaterial(ref, configuration, gridConfigurationService, exportService, notifyService, columnValuesPipe, gridFilterService, editorHandlerColumnPipe) {
1881
1882
  var _this = this;
@@ -1888,6 +1889,7 @@
1888
1889
  this.gridFilterService = gridFilterService;
1889
1890
  this.editorHandlerColumnPipe = editorHandlerColumnPipe;
1890
1891
  this.key = uuid.v4();
1892
+ _optionChanges.set(this, new rxjs.Subject());
1891
1893
  _localItems.set(this, []);
1892
1894
  this.items = [];
1893
1895
  this.selectedItems = [];
@@ -1938,7 +1940,6 @@
1938
1940
  });
1939
1941
  _initFilterDef.set(this, function () {
1940
1942
  var e_2, _3;
1941
- var _a;
1942
1943
  _this.filterDefs = [];
1943
1944
  try {
1944
1945
  for (var _4 = __values(_this.sdFilterDefs), _5 = _4.next(); !_5.done; _5 = _4.next()) {
@@ -1953,9 +1954,9 @@
1953
1954
  }
1954
1955
  finally { if (e_2) throw e_2.error; }
1955
1956
  }
1956
- if ((_a = _this.filterDefs) === null || _a === void 0 ? void 0 : _a.length) {
1957
- __classPrivateFieldGet(_this, _loadFilterRegister).call(_this);
1958
- }
1957
+ // if (this.filterDefs?.length) {
1958
+ // this.#loadFilterRegister();
1959
+ // }
1959
1960
  });
1960
1961
  _initFooterDef.set(this, function () {
1961
1962
  var e_3, _3;
@@ -3048,7 +3049,7 @@
3048
3049
  if (option) {
3049
3050
  option = __classPrivateFieldGet(this, _initConfiguration).call(this, option);
3050
3051
  this.gridOption = option;
3051
- __classPrivateFieldGet(this, _loadFilterRegister).call(this);
3052
+ // this.#loadFilterRegister();
3052
3053
  __classPrivateFieldSet(this, _loadCompleted, false);
3053
3054
  // this.#reload.next({
3054
3055
  // force: true,
@@ -3056,6 +3057,7 @@
3056
3057
  var configuration = this.gridConfigurationService.init(this.key, this.gridOption);
3057
3058
  this.gridConfigurationObserver = configuration.observer;
3058
3059
  configuration.load();
3060
+ __classPrivateFieldGet(this, _optionChanges).next(this.gridOption);
3059
3061
  }
3060
3062
  },
3061
3063
  enumerable: false,
@@ -3113,12 +3115,12 @@
3113
3115
  __classPrivateFieldGet(this, _subscription$2).add(this.sdCellDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initCellDef)));
3114
3116
  __classPrivateFieldGet(this, _subscription$2).add(this.sdFooterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFooterDef)));
3115
3117
  __classPrivateFieldGet(this, _subscription$2).add(this.sdFilterDefs.changes.pipe(operators.startWith([])).subscribe(__classPrivateFieldGet(this, _initFilterDef)));
3116
- // this.#subscription.add(this.#optionChanges.pipe(
3117
- // debounceTime(200),
3118
- // startWith({}),
3119
- // map(this.#getFilter),
3120
- // switchMap(filterInfo => this.#load(filterInfo, true))
3121
- // ).subscribe(this.#render));
3118
+ __classPrivateFieldGet(this, _subscription$2).add(rxjs.combineLatest([
3119
+ __classPrivateFieldGet(this, _optionChanges).pipe(operators.startWith(this.gridOption)),
3120
+ this.sdFilterDefs.changes.pipe(operators.startWith(this.filterDefs))
3121
+ ]).subscribe(function (a) {
3122
+ __classPrivateFieldGet(_this, _loadFilterRegister).call(_this);
3123
+ }));
3122
3124
  this.ref.detectChanges();
3123
3125
  };
3124
3126
  SdGridMaterial.prototype.ngOnDestroy = function () {
@@ -3181,7 +3183,7 @@
3181
3183
  });
3182
3184
  return SdGridMaterial;
3183
3185
  }());
3184
- _localItems = new WeakMap(), _paginator = new WeakMap(), _sort = new WeakMap(), _subscription$2 = new WeakMap(), _reload = new WeakMap(), _loadCompleted = new WeakMap(), _initCellDef = new WeakMap(), _initFilterDef = new WeakMap(), _initFooterDef = new WeakMap(), _filterExportInfo = new WeakMap(), _initConfiguration = new WeakMap(), _loadFilterRegister = new WeakMap(), _filterLocal = new WeakMap(), _getFilter = new WeakMap(), _load$1 = new WeakMap(), _render = new WeakMap(), _exportedItems = new WeakMap(), _allColumns = new WeakMap(), _allExportedColumns = new WeakMap(), _onExport = new WeakMap(), _updateSelectedItems = new WeakMap();
3186
+ _optionChanges = new WeakMap(), _localItems = new WeakMap(), _paginator = new WeakMap(), _sort = new WeakMap(), _subscription$2 = new WeakMap(), _reload = new WeakMap(), _loadCompleted = new WeakMap(), _initCellDef = new WeakMap(), _initFilterDef = new WeakMap(), _initFooterDef = new WeakMap(), _filterExportInfo = new WeakMap(), _initConfiguration = new WeakMap(), _loadFilterRegister = new WeakMap(), _filterLocal = new WeakMap(), _getFilter = new WeakMap(), _load$1 = new WeakMap(), _render = new WeakMap(), _exportedItems = new WeakMap(), _allColumns = new WeakMap(), _allExportedColumns = new WeakMap(), _onExport = new WeakMap(), _updateSelectedItems = new WeakMap();
3185
3187
  SdGridMaterial.decorators = [
3186
3188
  { type: core.Component, args: [{
3187
3189
  selector: 'sd-grid-material',