@colijnit/catalog 255.1.13 → 255.1.14

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.
@@ -30,8 +30,8 @@
30
30
  function Version() {
31
31
  this.name = "@colijnit/catalog";
32
32
  this.description = "iOne Catalog module based on Angular 12";
33
- this.symVer = "255.1.13";
34
- this.publishDate = "6-11-2024 17:29:42";
33
+ this.symVer = "255.1.14";
34
+ this.publishDate = "19-11-2024 17:56:15";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -4118,8 +4118,9 @@
4118
4118
  };
4119
4119
 
4120
4120
  var CatalogFilterItemComponent = /** @class */ (function () {
4121
- function CatalogFilterItemComponent(searchService) {
4121
+ function CatalogFilterItemComponent(searchService, _screenConfigService) {
4122
4122
  this.searchService = searchService;
4123
+ this._screenConfigService = _screenConfigService;
4123
4124
  this.collection = [];
4124
4125
  this.placeholder = '';
4125
4126
  this.customContent = false;
@@ -4136,7 +4137,23 @@
4136
4137
  this.showMoreLabel = "SHOW_MORE";
4137
4138
  this.showLessLabel = "SHOW_LESS";
4138
4139
  this.filterButtonLabel = "SEARCH_IMPERATIVE";
4140
+ this._subs = [];
4139
4141
  }
4142
+ CatalogFilterItemComponent.prototype.ngOnInit = function () {
4143
+ var _this = this;
4144
+ this._subs.push(
4145
+ // todo: remove this dirty hack when screenconfig is completed
4146
+ this._screenConfigService.configSet.subscribe(function (config) {
4147
+ if (config) {
4148
+ if (!_this._screenConfigService.getObjectConfigurationFor(_this.screenConfigurationObjectName)) {
4149
+ _this.screenConfigurationObjectName = undefined;
4150
+ }
4151
+ }
4152
+ }));
4153
+ };
4154
+ CatalogFilterItemComponent.prototype.ngOnDestroy = function () {
4155
+ this._subs.forEach(function (s) { return s.unsubscribe(); });
4156
+ };
4140
4157
  CatalogFilterItemComponent.prototype.onFilterButtonClicked = function () {
4141
4158
  this.searchService.searchArticles();
4142
4159
  this._scrollToTop();
@@ -4158,7 +4175,8 @@
4158
4175
  },] }
4159
4176
  ];
4160
4177
  CatalogFilterItemComponent.ctorParameters = function () { return [
4161
- { type: CatalogSearchService }
4178
+ { type: CatalogSearchService },
4179
+ { type: CatalogScreenConfigurationService }
4162
4180
  ]; };
4163
4181
  CatalogFilterItemComponent.propDecorators = {
4164
4182
  model: [{ type: i0.Input }],
@@ -6734,13 +6752,13 @@
6734
6752
  exports["ɵg"] = CatalogFilterItemModule;
6735
6753
  exports["ɵh"] = CatalogFilterItemComponent;
6736
6754
  exports["ɵi"] = CacheField;
6737
- exports["ɵj"] = CatalogFilterContentGeneralComponent;
6738
- exports["ɵk"] = IconCacheService;
6739
- exports["ɵl"] = CatalogFilterContentPurchaseModule;
6740
- exports["ɵm"] = CatalogFilterContentPurchaseComponent;
6741
- exports["ɵn"] = CatalogFilterContentLogisticsModule;
6742
- exports["ɵo"] = CatalogFilterContentLogisticsComponent;
6743
- exports["ɵp"] = CatalogScreenConfigurationService;
6755
+ exports["ɵj"] = CatalogScreenConfigurationService;
6756
+ exports["ɵk"] = CatalogFilterContentGeneralComponent;
6757
+ exports["ɵl"] = IconCacheService;
6758
+ exports["ɵm"] = CatalogFilterContentPurchaseModule;
6759
+ exports["ɵn"] = CatalogFilterContentPurchaseComponent;
6760
+ exports["ɵo"] = CatalogFilterContentLogisticsModule;
6761
+ exports["ɵp"] = CatalogFilterContentLogisticsComponent;
6744
6762
  exports["ɵq"] = CatalogFilterComponent;
6745
6763
  exports["ɵr"] = ResponsiveTextModule;
6746
6764
  exports["ɵs"] = ResponsiveTextComponent;