@colijnit/catalog 12.1.67 → 12.1.69

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.69";
34
+ this.publishDate = "13-5-2024 13:15:19";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -2551,7 +2551,8 @@
2551
2551
  ['Main article', 'rangeSuperArticleNr'],
2552
2552
  ['Material', 'rangeMaterial'],
2553
2553
  ['Tag', 'tagRange'],
2554
- ['Turnover group', 'rangeTurnoverGroup']
2554
+ ['Turnover group', 'rangeTurnoverGroup'],
2555
+ ['Brand', 'rangeBrand']
2555
2556
  ]);
2556
2557
  }
2557
2558
  CatalogFilterService.prototype.getFilters = function (filters) {
@@ -2729,7 +2730,7 @@
2729
2730
  set: function (value) {
2730
2731
  this._setRequestParametersAndProps(null, value, null);
2731
2732
  // this.turnoverGroupChanged.next(this.turnoverGroup);
2732
- this.searchArticles();
2733
+ this.searchArticles(true, true);
2733
2734
  },
2734
2735
  enumerable: false,
2735
2736
  configurable: true
@@ -2741,7 +2742,7 @@
2741
2742
  set: function (value) {
2742
2743
  this._setRequestParametersAndProps(value, null, null);
2743
2744
  // this.categoryChanged.next(this.category);
2744
- this.searchArticles();
2745
+ this.searchArticles(true, true);
2745
2746
  },
2746
2747
  enumerable: false,
2747
2748
  configurable: true
@@ -2763,9 +2764,10 @@
2763
2764
  }
2764
2765
  this._subs.forEach(function (s) { return s.unsubscribe(); });
2765
2766
  };
2766
- CatalogSearchService.prototype.searchArticles = function (resetPaging) {
2767
+ CatalogSearchService.prototype.searchArticles = function (resetPaging, resetRequestParameters) {
2767
2768
  var _this = this;
2768
2769
  if (resetPaging === void 0) { resetPaging = true; }
2770
+ if (resetRequestParameters === void 0) { resetRequestParameters = false; }
2769
2771
  var lowerBound;
2770
2772
  if (!resetPaging) {
2771
2773
  lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
@@ -2779,6 +2781,9 @@
2779
2781
  _this.articles = result && result.articles ? result.articles : [];
2780
2782
  _this.resultCount = result && result.count ? result.count : 0;
2781
2783
  _this._filterService.getFilters(_this.searchRequest);
2784
+ if (resetRequestParameters) {
2785
+ _this._resetRequestParametersAndProps();
2786
+ }
2782
2787
  });
2783
2788
  };
2784
2789
  CatalogSearchService.prototype.resetFilters = function (search) {
@@ -2816,6 +2821,11 @@
2816
2821
  this.searchRequest.turnoverGroup = turnoverGroup;
2817
2822
  this.searchRequest.general = searchText ? searchText.join(' ') : null;
2818
2823
  };
2824
+ CatalogSearchService.prototype._resetRequestParametersAndProps = function () {
2825
+ this.searchRequest.category = null;
2826
+ this.searchRequest.turnoverGroup = null;
2827
+ this.searchRequest.general = null;
2828
+ };
2819
2829
  return CatalogSearchService;
2820
2830
  }());
2821
2831
  CatalogSearchService.decorators = [
@@ -3538,7 +3548,7 @@
3538
3548
  CatalogFilterContentGeneralComponent.decorators = [
3539
3549
  { type: i0.Component, args: [{
3540
3550
  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 "
3551
+ 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
3552
  },] }
3543
3553
  ];
3544
3554
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [