@colijnit/catalog 12.1.67 → 12.1.68

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 = "12.1.67";
34
- this.publishDate = "6-5-2024 16:54:23";
33
+ this.symVer = "12.1.68";
34
+ this.publishDate = "10-5-2024 12:42:34";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -2729,7 +2729,7 @@
2729
2729
  set: function (value) {
2730
2730
  this._setRequestParametersAndProps(null, value, null);
2731
2731
  // this.turnoverGroupChanged.next(this.turnoverGroup);
2732
- this.searchArticles();
2732
+ this.searchArticles(true, true);
2733
2733
  },
2734
2734
  enumerable: false,
2735
2735
  configurable: true
@@ -2741,7 +2741,7 @@
2741
2741
  set: function (value) {
2742
2742
  this._setRequestParametersAndProps(value, null, null);
2743
2743
  // this.categoryChanged.next(this.category);
2744
- this.searchArticles();
2744
+ this.searchArticles(true, true);
2745
2745
  },
2746
2746
  enumerable: false,
2747
2747
  configurable: true
@@ -2763,9 +2763,10 @@
2763
2763
  }
2764
2764
  this._subs.forEach(function (s) { return s.unsubscribe(); });
2765
2765
  };
2766
- CatalogSearchService.prototype.searchArticles = function (resetPaging) {
2766
+ CatalogSearchService.prototype.searchArticles = function (resetPaging, resetRequestParameters) {
2767
2767
  var _this = this;
2768
2768
  if (resetPaging === void 0) { resetPaging = true; }
2769
+ if (resetRequestParameters === void 0) { resetRequestParameters = false; }
2769
2770
  var lowerBound;
2770
2771
  if (!resetPaging) {
2771
2772
  lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
@@ -2779,6 +2780,9 @@
2779
2780
  _this.articles = result && result.articles ? result.articles : [];
2780
2781
  _this.resultCount = result && result.count ? result.count : 0;
2781
2782
  _this._filterService.getFilters(_this.searchRequest);
2783
+ if (resetRequestParameters) {
2784
+ _this._resetRequestParametersAndProps();
2785
+ }
2782
2786
  });
2783
2787
  };
2784
2788
  CatalogSearchService.prototype.resetFilters = function (search) {
@@ -2816,6 +2820,11 @@
2816
2820
  this.searchRequest.turnoverGroup = turnoverGroup;
2817
2821
  this.searchRequest.general = searchText ? searchText.join(' ') : null;
2818
2822
  };
2823
+ CatalogSearchService.prototype._resetRequestParametersAndProps = function () {
2824
+ this.searchRequest.category = null;
2825
+ this.searchRequest.turnoverGroup = null;
2826
+ this.searchRequest.general = null;
2827
+ };
2819
2828
  return CatalogSearchService;
2820
2829
  }());
2821
2830
  CatalogSearchService.decorators = [
@@ -3538,7 +3547,7 @@
3538
3547
  CatalogFilterContentGeneralComponent.decorators = [
3539
3548
  { type: i0.Component, args: [{
3540
3549
  selector: 'co-catalog-filter-content-general',
3541
- template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLENR'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.articleNumber\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'BARCODE'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.barcode\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LATEST_DELIVERY_DATE'\"\n [(model)]=\"catalogSearchService.searchRequest.latestDeliveryDate\"\n [mode]=\"modes.DateField\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n \n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\"> \n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\" \n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [collection]=\"doSyncCollection\"\n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\"\n >\n </co-catalog-filter-item> \n </div> --> \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-catalog-filter-item>\n </div>\n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_TYPE'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-catalog-filter-item>\n </div>-->\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-catalog-filter-item>\n </div>-->\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n "
3550
+ template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLENR'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.articleNumber\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'BARCODE'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.barcode\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n [expanded]=\"false\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LATEST_DELIVERY_DATE'\"\n [(model)]=\"catalogSearchService.searchRequest.latestDeliveryDate\"\n [mode]=\"modes.DateField\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n \n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\"> \n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\" \n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [collection]=\"doSyncCollection\"\n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\"\n >\n </co-catalog-filter-item> \n </div> --> \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-catalog-filter-item>\n </div>\n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_TYPE'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-catalog-filter-item>\n </div>-->\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <!--TODO reinitialize once screenconfig is implemented-->\n <!--<div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-catalog-filter-item>\n </div>-->\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n "
3542
3551
  },] }
3543
3552
  ];
3544
3553
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [