@colijnit/catalog 12.1.36 → 12.1.39

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 (31) hide show
  1. package/bundles/colijnit-catalog.umd.js +199 -258
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.metadata.json +1 -1
  4. package/esm2015/lib/catalog-version.js +3 -3
  5. package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +73 -30
  6. package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +9 -4
  7. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +63 -217
  8. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +43 -85
  9. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +13 -25
  10. package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +1 -1
  11. package/esm2015/lib/component/catalog-search/catalog-search.component.js +1 -5
  12. package/esm2015/lib/model/settings.js +5 -5
  13. package/esm2015/lib/service/catalog-connector-adapter.service.js +61 -4
  14. package/esm2015/lib/service/catalog-connector.service.js +26 -1
  15. package/esm2015/lib/service/catalog-filter.service.js +1 -1
  16. package/esm2015/lib/service/catalog-search.service.js +1 -68
  17. package/esm2015/lib/service/catalog-settings.service.js +9 -53
  18. package/fesm2015/colijnit-catalog.js +280 -473
  19. package/fesm2015/colijnit-catalog.js.map +1 -1
  20. package/lib/component/catalog-filter/catalog-filter.component.d.ts +14 -2
  21. package/lib/component/catalog-filter/style/_layout.scss +29 -0
  22. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +9 -22
  23. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +2 -2
  24. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -6
  25. package/lib/component/catalog-search/catalog-search.component.d.ts +0 -1
  26. package/lib/model/settings.d.ts +3 -13
  27. package/lib/service/catalog-connector-adapter.service.d.ts +7 -0
  28. package/lib/service/catalog-connector.service.d.ts +8 -0
  29. package/lib/service/catalog-search.service.d.ts +0 -9
  30. package/lib/service/catalog-settings.service.d.ts +3 -3
  31. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/article-price'), require('@colijnit/articleapi/build/model/get-article-price-request'), require('@colijnit/relationapi'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/store-group.bo'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/model/co-rv-domain-value.bo'), require('@colijnit/mainapi/build/model/category.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/ioneconnector/build/utils/file-utils'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/enum/domain-name.enum')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', '@angular/common', 'rxjs', '@colijnit/ioneconnector/build/utils/string-utils', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/article-price', '@colijnit/articleapi/build/model/get-article-price-request', '@colijnit/relationapi', '@colijnit/mainapi', '@colijnit/mainapi/build/model/store-group.bo', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/relationapi/build/model/relation-request', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/model/co-rv-domain-value.bo', '@colijnit/mainapi/build/model/category.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/transaction', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/ioneconnector/build/utils/file-utils', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/enum/domain-name.enum'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.ng.common, global.rxjs, global.stringUtils, global.articleCategory, global.catalogDefinition_bo, global.externalSource_bo, global.articles, global.articleExtended_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.relationapi, global.mainapi, global.storeGroup_bo, global.coDomainValue_bo, global.relationListObject_bo, global.relationRequest, global.relationKind_enum, global.coRvDomainValue_bo, global.category_bo, global.businessObjectFactory, global.priceList, global.transaction, global.objectUtils, global.fileUtils, global.corecomponents_v12, global.articleExtendedRequest, global.pagingParameters, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.domainName_enum));
5
- })(this, (function (exports, i0, common, rxjs, stringUtils, articleCategory, catalogDefinition_bo, externalSource_bo, articles, articleExtended_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, relationapi, mainapi, storeGroup_bo, coDomainValue_bo, relationListObject_bo, relationRequest, relationKind_enum, coRvDomainValue_bo, category_bo, businessObjectFactory, priceList, transaction, objectUtils, fileUtils, corecomponents_v12, articleExtendedRequest, pagingParameters, animations, i1, corecomponents, domainName_enum) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/ioneconnector/build/utils/string-utils'), require('@colijnit/articleapi/build/model/article-category'), require('@colijnit/articleapi/build/model/catalog-definition.bo'), require('@colijnit/articleapi/build/model/external-source.bo'), require('@colijnit/articleapi/build/articles'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-search-filter-selections'), require('@colijnit/articleapi/build/model/article-search-filter-max-and-min-price'), require('@colijnit/articleapi/build/model/article-price'), require('@colijnit/articleapi/build/model/get-article-price-request'), require('@colijnit/relationapi'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/store-group.bo'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/relationapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/model/co-rv-domain-value.bo'), require('@colijnit/mainapi/build/model/category.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/mainapi/build/model/preset.bo'), require('@colijnit/mainapi/build/model/user-group.bo'), require('@colijnit/transactionapi/build/model/price-list'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/ioneconnector/build/utils/object-utils'), require('@colijnit/ioneconnector/build/utils/file-utils'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@angular/animations'), require('@angular/platform-browser'), require('@colijnit/corecomponents'), require('@colijnit/mainapi/build/enum/domain-name.enum'), require('@colijnit/corecomponents_v12/')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/catalog', ['exports', '@angular/core', '@angular/common', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/ioneconnector/build/utils/string-utils', '@colijnit/articleapi/build/model/article-category', '@colijnit/articleapi/build/model/catalog-definition.bo', '@colijnit/articleapi/build/model/external-source.bo', '@colijnit/articleapi/build/articles', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-search-filter-selections', '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price', '@colijnit/articleapi/build/model/article-price', '@colijnit/articleapi/build/model/get-article-price-request', '@colijnit/relationapi', '@colijnit/mainapi', '@colijnit/mainapi/build/model/store-group.bo', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/relationapi/build/model/relation-request', '@colijnit/relationapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/model/co-rv-domain-value.bo', '@colijnit/mainapi/build/model/category.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/mainapi/build/model/preset.bo', '@colijnit/mainapi/build/model/user-group.bo', '@colijnit/transactionapi/build/model/price-list', '@colijnit/transactionapi/build/transaction', '@colijnit/ioneconnector/build/utils/object-utils', '@colijnit/ioneconnector/build/utils/file-utils', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@angular/animations', '@angular/platform-browser', '@colijnit/corecomponents', '@colijnit/mainapi/build/enum/domain-name.enum', '@colijnit/corecomponents_v12/'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.catalog = {}), global.ng.core, global.ng.common, global.rxjs, global.options, global.stringUtils, global.articleCategory, global.catalogDefinition_bo, global.externalSource_bo, global.articles, global.articleExtended_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.relationapi, global.mainapi, global.storeGroup_bo, global.coDomainValue_bo, global.relationListObject_bo, global.relationRequest, global.relationKind_enum, global.coRvDomainValue_bo, global.category_bo, global.businessObjectFactory, global.preset_bo, global.userGroup_bo, global.priceList, global.transaction, global.objectUtils, global.fileUtils, global.corecomponents_v12, global.articleExtendedRequest, global.pagingParameters, global.ng.animations, global.ng.platformBrowser, global.corecomponents, global.domainName_enum, global._));
5
+ })(this, (function (exports, i0, common, rxjs, options, stringUtils, articleCategory, catalogDefinition_bo, externalSource_bo, articles, articleExtended_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, relationapi, mainapi, storeGroup_bo, coDomainValue_bo, relationListObject_bo, relationRequest, relationKind_enum, coRvDomainValue_bo, category_bo, businessObjectFactory, preset_bo, userGroup_bo, priceList, transaction, objectUtils, fileUtils, corecomponents_v12, articleExtendedRequest, pagingParameters, animations, i1, corecomponents, domainName_enum, _) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -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.36";
34
- this.publishDate = "28-7-2023 10:59:06";
33
+ this.symVer = "12.1.39";
34
+ this.publishDate = "28-7-2023 14:33:31";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -442,16 +442,17 @@
442
442
  return SettingsOptions;
443
443
  }());
444
444
 
445
- var Settings = /** @class */ (function () {
446
- function Settings() {
447
- this.session = undefined;
448
- this.useLoginEncryption = true;
449
- this.type = "V";
450
- this.options = new SettingsOptions();
451
- this.jwtEnabled = false;
445
+ var CatalogSettings = /** @class */ (function (_super) {
446
+ __extends(CatalogSettings, _super);
447
+ function CatalogSettings() {
448
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
449
+ _this.type = "V";
450
+ _this.options = new SettingsOptions();
451
+ _this.useLoginEncryption = true;
452
+ return _this;
452
453
  }
453
- return Settings;
454
- }());
454
+ return CatalogSettings;
455
+ }(options.Options));
455
456
 
456
457
  var LanguageCode;
457
458
  (function (LanguageCode) {
@@ -604,7 +605,7 @@
604
605
  function CatalogSettingsService(_dictionaryService) {
605
606
  this._dictionaryService = _dictionaryService;
606
607
  this.settingsLoaded = new rxjs.BehaviorSubject(false);
607
- this._settings = new Settings();
608
+ this._settings = new CatalogSettings();
608
609
  }
609
610
  Object.defineProperty(CatalogSettingsService.prototype, "settings", {
610
611
  get: function () {
@@ -627,13 +628,13 @@
627
628
  case 1:
628
629
  jsonSettings = _a.sent();
629
630
  if (jsonSettings) {
630
- this.settings = Object.assign(new Settings(), jsonSettings);
631
+ this.settings = Object.assign(new CatalogSettings(), jsonSettings);
631
632
  this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
632
633
  this.settingsFinished();
633
634
  }
634
635
  return [3 /*break*/, 3];
635
636
  case 2:
636
- this.settings = Object.assign(new Settings(), settings);
637
+ this.settings = Object.assign(new CatalogSettings(), settings);
637
638
  this.settings.options = Object.assign(new SettingsOptions(), this.settings.options);
638
639
  this.settingsFinished();
639
640
  _a.label = 3;
@@ -646,55 +647,11 @@
646
647
  return __awaiter(this, void 0, void 0, function () {
647
648
  return __generator(this, function (_a) {
648
649
  if (!this.settings) {
649
- this.settings = new Settings();
650
- }
651
- if (obj.hasOwnProperty('url')) {
652
- this.settings.url = obj['url'];
653
- }
654
- if (obj.hasOwnProperty('schema')) {
655
- this.settings.schema = obj['schema'];
656
- }
657
- if (obj.hasOwnProperty('version')) {
658
- this.settings.version = obj['version'];
659
- }
660
- if (obj.hasOwnProperty('branch')) {
661
- this.settings.branch = obj['branch'];
662
- }
663
- if (obj.hasOwnProperty('currency')) {
664
- this.settings.currency = obj['currency'];
665
- }
666
- if (obj.hasOwnProperty('languageCode')) {
667
- this.settings.languageCode = obj['languageCode'];
668
- }
669
- if (obj.hasOwnProperty('username')) {
670
- this.settings.username = obj['username'];
671
- }
672
- if (obj.hasOwnProperty('password')) {
673
- this.settings.password = obj['password'];
674
- }
675
- if (obj.hasOwnProperty('timeoutInMs')) {
676
- this.settings.timeoutInMs = obj['timeoutInMs'];
677
- }
678
- if (obj.hasOwnProperty('session')) {
679
- this.settings.session = obj['session'];
650
+ this.settings = new CatalogSettings();
680
651
  }
681
- if (obj.hasOwnProperty('useEncryption')) {
682
- this.settings.useLoginEncryption = obj['useEncryption'];
683
- }
684
- if (obj.hasOwnProperty('useLoginEncryption')) {
685
- this.settings.useLoginEncryption = obj['useLoginEncryption'];
686
- }
687
- if (obj.hasOwnProperty('additionalTranslationFile')) {
688
- this.settings.additionalTranslationFile = obj['additionalTranslationFile'];
689
- }
690
- if (obj.hasOwnProperty('type')) {
691
- this.settings.type = obj['type'];
692
- }
693
- if (obj.hasOwnProperty('options')) {
694
- Object.assign(this.settings.options, obj['options']);
695
- }
696
- if (obj.hasOwnProperty('catalogParameters')) {
697
- this.settings.catalogParameters = obj['catalogParameters'];
652
+ this.settings = Object.assign(this.settings, obj);
653
+ if (obj.options) {
654
+ this.settings.options = Object.assign(new SettingsOptions(), obj.options);
698
655
  }
699
656
  this.settingsFinished();
700
657
  return [2 /*return*/];
@@ -770,7 +727,7 @@
770
727
  _a.label = 1;
771
728
  case 1:
772
729
  _a.trys.push([1, 3, , 4]);
773
- this.connectorOptions = Object.assign(new Settings(), settings);
730
+ this.connectorOptions = Object.assign(new CatalogSettings(), settings);
774
731
  this.connectorOptions.options = Object.assign(new SettingsOptions(), this.connectorOptions.options);
775
732
  this.assetPath = settings.assetPath;
776
733
  this.connector = new articles.Articles(this.connectorOptions);
@@ -800,7 +757,7 @@
800
757
  return __generator(this, function (_a) {
801
758
  switch (_a.label) {
802
759
  case 0:
803
- tempSettings = new Settings();
760
+ tempSettings = new CatalogSettings();
804
761
  tempSettings.url = url;
805
762
  tempSettings.schema = upId.toString();
806
763
  tempMainConnector = new mainapi.MainApi(tempSettings);
@@ -1220,6 +1177,25 @@
1220
1177
  });
1221
1178
  });
1222
1179
  };
1180
+ CatalogConnectorAdapterService.prototype.getUserGroups = function () {
1181
+ return __awaiter(this, void 0, void 0, function () {
1182
+ var response;
1183
+ return __generator(this, function (_a) {
1184
+ switch (_a.label) {
1185
+ case 0: return [4 /*yield*/, this.mainConnector.getUserGroups()];
1186
+ case 1:
1187
+ response = _a.sent();
1188
+ if (response && response.validationResult && response.validationResult.success) {
1189
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(userGroup_bo.UserGroup, response.resultObjects)];
1190
+ }
1191
+ else {
1192
+ console.error(response.validationMessagesAsString);
1193
+ }
1194
+ return [2 /*return*/];
1195
+ }
1196
+ });
1197
+ });
1198
+ };
1223
1199
  CatalogConnectorAdapterService.prototype.getSuppliers = function () {
1224
1200
  return __awaiter(this, void 0, void 0, function () {
1225
1201
  var request, response;
@@ -1242,6 +1218,82 @@
1242
1218
  });
1243
1219
  });
1244
1220
  };
1221
+ CatalogConnectorAdapterService.prototype.getPresets = function (module, user) {
1222
+ return __awaiter(this, void 0, void 0, function () {
1223
+ var response;
1224
+ return __generator(this, function (_a) {
1225
+ switch (_a.label) {
1226
+ case 0: return [4 /*yield*/, this.mainConnector.getPresets(module, user)];
1227
+ case 1:
1228
+ response = _a.sent();
1229
+ if (response && response.validationResult && response.validationResult.success) {
1230
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(preset_bo.Preset, response.resultObjects)];
1231
+ }
1232
+ else {
1233
+ console.error(response.validationMessagesAsString);
1234
+ }
1235
+ return [2 /*return*/];
1236
+ }
1237
+ });
1238
+ });
1239
+ };
1240
+ CatalogConnectorAdapterService.prototype.getPreset = function (presetId) {
1241
+ return __awaiter(this, void 0, void 0, function () {
1242
+ var response;
1243
+ return __generator(this, function (_a) {
1244
+ switch (_a.label) {
1245
+ case 0: return [4 /*yield*/, this.mainConnector.getPreset(presetId)];
1246
+ case 1:
1247
+ response = _a.sent();
1248
+ if (response && response.validationResult && response.validationResult.success) {
1249
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(preset_bo.Preset, response.resultObjects)];
1250
+ }
1251
+ else {
1252
+ console.error(response.validationMessagesAsString);
1253
+ }
1254
+ return [2 /*return*/];
1255
+ }
1256
+ });
1257
+ });
1258
+ };
1259
+ CatalogConnectorAdapterService.prototype.savePreset = function (preset) {
1260
+ return __awaiter(this, void 0, void 0, function () {
1261
+ var response;
1262
+ return __generator(this, function (_a) {
1263
+ switch (_a.label) {
1264
+ case 0: return [4 /*yield*/, this.mainConnector.savePreset(preset)];
1265
+ case 1:
1266
+ response = _a.sent();
1267
+ if (response && response.validationResult && response.validationResult.success) {
1268
+ return [2 /*return*/, true];
1269
+ }
1270
+ else {
1271
+ console.error(response.validationMessagesAsString);
1272
+ }
1273
+ return [2 /*return*/];
1274
+ }
1275
+ });
1276
+ });
1277
+ };
1278
+ CatalogConnectorAdapterService.prototype.updatePreset = function (presetName) {
1279
+ return __awaiter(this, void 0, void 0, function () {
1280
+ var response;
1281
+ return __generator(this, function (_a) {
1282
+ switch (_a.label) {
1283
+ case 0: return [4 /*yield*/, this.mainConnector.updatePreset(presetName)];
1284
+ case 1:
1285
+ response = _a.sent();
1286
+ if (response && response.validationResult && response.validationResult.success) {
1287
+ return [2 /*return*/, true];
1288
+ }
1289
+ else {
1290
+ console.error(response.validationMessagesAsString);
1291
+ }
1292
+ return [2 /*return*/];
1293
+ }
1294
+ });
1295
+ });
1296
+ };
1245
1297
  // will be called in future
1246
1298
  // public getArticleGroupImages(): Promise<ArticleGroupImage[]> {
1247
1299
  // return this.connector.getArticleGroupImages();
@@ -2011,6 +2063,13 @@
2011
2063
  });
2012
2064
  });
2013
2065
  };
2066
+ CatalogConnectorService.prototype.getUserGroups = function () {
2067
+ return __awaiter(this, void 0, void 0, function () {
2068
+ return __generator(this, function (_a) {
2069
+ return [2 /*return*/, this._adapterService.getUserGroups()];
2070
+ });
2071
+ });
2072
+ };
2014
2073
  CatalogConnectorService.prototype.getSuppliers = function () {
2015
2074
  return __awaiter(this, void 0, void 0, function () {
2016
2075
  return __generator(this, function (_a) {
@@ -2018,6 +2077,34 @@
2018
2077
  });
2019
2078
  });
2020
2079
  };
2080
+ CatalogConnectorService.prototype.getPresets = function (module, user) {
2081
+ return __awaiter(this, void 0, void 0, function () {
2082
+ return __generator(this, function (_a) {
2083
+ return [2 /*return*/, this._adapterService.getPresets(module, user)];
2084
+ });
2085
+ });
2086
+ };
2087
+ CatalogConnectorService.prototype.getPreset = function (presetId) {
2088
+ return __awaiter(this, void 0, void 0, function () {
2089
+ return __generator(this, function (_a) {
2090
+ return [2 /*return*/, this._adapterService.getPreset(presetId)];
2091
+ });
2092
+ });
2093
+ };
2094
+ CatalogConnectorService.prototype.savePreset = function (preset) {
2095
+ return __awaiter(this, void 0, void 0, function () {
2096
+ return __generator(this, function (_a) {
2097
+ return [2 /*return*/, this._adapterService.savePreset(preset)];
2098
+ });
2099
+ });
2100
+ };
2101
+ CatalogConnectorService.prototype.updatePreset = function (presetName) {
2102
+ return __awaiter(this, void 0, void 0, function () {
2103
+ return __generator(this, function (_a) {
2104
+ return [2 /*return*/, this._adapterService.updatePreset(presetName)];
2105
+ });
2106
+ });
2107
+ };
2021
2108
  CatalogConnectorService.prototype.getDocumentContent = function (docId, thumbnail) {
2022
2109
  if (thumbnail === void 0) { thumbnail = true; }
2023
2110
  return __awaiter(this, void 0, void 0, function () {
@@ -2462,8 +2549,6 @@
2462
2549
  this._settingsService = _settingsService;
2463
2550
  this._optionService = _optionService;
2464
2551
  this.searchRequest = new articleExtendedRequest.ArticleExtendedRequest();
2465
- // public activeSearchViewMode: SearchViewMode = SearchViewMode.FullScreen;
2466
- // public activeSearchBarViewMode: SearchbarViewMode = SearchbarViewMode.Expanded;
2467
2552
  this.showFilterSidebar = false;
2468
2553
  this.articles = [];
2469
2554
  this.articlesPerPage = 20;
@@ -2481,18 +2566,6 @@
2481
2566
  }
2482
2567
  }));
2483
2568
  }
2484
- Object.defineProperty(CatalogSearchService.prototype, "filterText", {
2485
- get: function () {
2486
- return this._filterText;
2487
- },
2488
- set: function (value) {
2489
- this._setRequestParametersAndProps(null, null, value);
2490
- // this.searchTextChanged.next(this.filterText);
2491
- this.searchArticles();
2492
- },
2493
- enumerable: false,
2494
- configurable: true
2495
- });
2496
2569
  Object.defineProperty(CatalogSearchService.prototype, "turnoverGroup", {
2497
2570
  get: function () {
2498
2571
  return this._turnoverGroup;
@@ -2531,61 +2604,6 @@
2531
2604
  CatalogSearchService.prototype.ngOnDestroy = function () {
2532
2605
  this._subs.forEach(function (s) { return s.unsubscribe(); });
2533
2606
  };
2534
- CatalogSearchService.prototype.filterOnCollection = function (filterName, collection) {
2535
- if (!collection || collection.length === 0) {
2536
- return;
2537
- }
2538
- var searchFilterProp = this._filterService.getFilterItemMap(filterName);
2539
- if (searchFilterProp) {
2540
- this.searchRequest[searchFilterProp] = this.createFilterString(collection, searchFilterProp);
2541
- this.searchArticles();
2542
- }
2543
- };
2544
- CatalogSearchService.prototype.createFilterString = function (collection, searchFilterProp) {
2545
- var _this = this;
2546
- var cleared = false;
2547
- var filterRange = [];
2548
- collection.forEach(function (viewModel) {
2549
- if (!cleared) {
2550
- _this.searchRequest[searchFilterProp] = '';
2551
- cleared = true;
2552
- }
2553
- if (viewModel.checked) {
2554
- filterRange.push("?='" + viewModel.code + "'");
2555
- }
2556
- });
2557
- return filterRange.join(',');
2558
- };
2559
- CatalogSearchService.prototype.createFilterStringCollection = function (collection) {
2560
- var filterRange = [];
2561
- collection.forEach(function (viewModel) {
2562
- if (viewModel.checked) {
2563
- filterRange.push(viewModel.code.toString());
2564
- }
2565
- });
2566
- return filterRange;
2567
- };
2568
- CatalogSearchService.prototype.createSingleSelectString = function (collection) {
2569
- var filterString = "";
2570
- collection.forEach(function (viewModel) {
2571
- if (viewModel.checked) {
2572
- filterString = viewModel.code.toString();
2573
- }
2574
- });
2575
- return filterString;
2576
- };
2577
- CatalogSearchService.prototype.createFilterNumber = function (collection) {
2578
- var filterNumber = null;
2579
- collection.forEach(function (viewModel) {
2580
- if (viewModel.checked) {
2581
- if (filterNumber == null) {
2582
- filterNumber = 0;
2583
- }
2584
- filterNumber += Number(viewModel.code);
2585
- }
2586
- });
2587
- return filterNumber;
2588
- };
2589
2607
  CatalogSearchService.prototype.searchArticles = function (getFilters) {
2590
2608
  var _this = this;
2591
2609
  if (getFilters === void 0) { getFilters = true; }
@@ -2636,9 +2654,6 @@
2636
2654
  this.searchRequest.category = category;
2637
2655
  this.searchRequest.turnoverGroup = turnoverGroup;
2638
2656
  this.searchRequest.general = searchText ? searchText.join(' ') : null;
2639
- // this._category = category;
2640
- // this._turnoverGroup = turnoverGroup;
2641
- // this._filterText = searchText;
2642
2657
  };
2643
2658
  return CatalogSearchService;
2644
2659
  }());
@@ -3050,12 +3065,18 @@
3050
3065
  ]; };
3051
3066
 
3052
3067
  var CatalogFilterComponent = /** @class */ (function () {
3053
- function CatalogFilterComponent(iconCache, optionsService, changeDetector) {
3068
+ function CatalogFilterComponent(iconCache, optionsService, changeDetector, _catalogConnectorService, _adapterService, searchService) {
3069
+ var _this = this;
3054
3070
  this.iconCache = iconCache;
3055
3071
  this.optionsService = optionsService;
3056
3072
  this.changeDetector = changeDetector;
3073
+ this._catalogConnectorService = _catalogConnectorService;
3074
+ this._adapterService = _adapterService;
3075
+ this.searchService = searchService;
3057
3076
  this.icons = IconEnum;
3077
+ this.updatePreset = false;
3058
3078
  this.showResetFilter = true;
3079
+ this.showSavePopup = false;
3059
3080
  this.filterCategories = [
3060
3081
  'Algemeen',
3061
3082
  'Inkoop',
@@ -3063,12 +3084,11 @@
3063
3084
  ];
3064
3085
  this.collapsed = false;
3065
3086
  this._subs = [];
3066
- // this._subs = [
3067
- // this.catalog.onPrepareFilters.subscribe(() => {
3068
- // this.setupFilters();
3069
- // this.detectChanges();
3070
- // })
3071
- // ];
3087
+ this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
3088
+ if (initialized) {
3089
+ _this.getUserGroups();
3090
+ }
3091
+ }));
3072
3092
  }
3073
3093
  CatalogFilterComponent.prototype.showClass = function () {
3074
3094
  return true;
@@ -3082,6 +3102,18 @@
3082
3102
  //this.initializePriceFilterMinMax();
3083
3103
  this.detectChanges();
3084
3104
  };
3105
+ CatalogFilterComponent.prototype.ngOnDestroy = function () {
3106
+ this._destroyed = true;
3107
+ this._subs.forEach(function (x) {
3108
+ x.unsubscribe();
3109
+ });
3110
+ };
3111
+ CatalogFilterComponent.prototype.getUserGroups = function () {
3112
+ var _this = this;
3113
+ this._catalogConnectorService.getUserGroups().then(function (userGroups) {
3114
+ _this.userGroupCollection = userGroups;
3115
+ });
3116
+ };
3085
3117
  CatalogFilterComponent.prototype.handleCategoryClick = function (cat) {
3086
3118
  if (cat === 'Algemeen') {
3087
3119
  this.filterItems.nativeElement.scrollLeft = this.generalFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
@@ -3093,12 +3125,6 @@
3093
3125
  this.filterItems.nativeElement.scrollLeft = this.logisticsFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
3094
3126
  }
3095
3127
  };
3096
- CatalogFilterComponent.prototype.ngOnDestroy = function () {
3097
- this._destroyed = true;
3098
- this._subs.forEach(function (x) {
3099
- x.unsubscribe();
3100
- });
3101
- };
3102
3128
  CatalogFilterComponent.prototype.detectChanges = function () {
3103
3129
  if (!this._destroyed) {
3104
3130
  this.changeDetector.detectChanges();
@@ -3109,7 +3135,7 @@
3109
3135
  CatalogFilterComponent.decorators = [
3110
3136
  { type: i0.Component, args: [{
3111
3137
  selector: 'co-catalog-filter',
3112
- template: "\n <div class=\"catalog-filter-categories\">\n <co-catalog-filter-categories [categories]=\"filterCategories\"\n (categoryClick)=\"handleCategoryClick($event)\"></co-catalog-filter-categories>\n </div>\n <div #filterItems class=\"catalog-category-filter-wrapper\" data-ride=\"carousel\">\n <div #generalFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-general></co-catalog-filter-content-general>\n </div>\n <div #purchaseFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-purchase></co-catalog-filter-content-purchase>\n </div>\n <div #logisticsFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-logistics></co-catalog-filter-content-logistics>\n </div>\n </div>\n \n \n <!--<div class=\"catalog-filter-wrapper\">\n <div *ngIf=\"showResetFilter\" class=\"reset-filter-wrapper\">\n <div class=\"reset-title-wrapper\">\n <div class=\"reset-title\">\n <div class=\"reset-filter-title\" [textContent]=\"'FILTER' | localize\"></div>\n <co-icon class=\"reset-filter-icon\" [iconData]=\"iconCache.getIcon(icons.SyncAlt)\"></co-icon>\n </div>\n <co-icon-collapse-handle (click)=\"onHandleClick($event)\"></co-icon-collapse-handle>\n </div>\n <div class=\"filter-reset\" [textContent]=\"'RESET_FILTER' | localize\" (click)=\"resetFilters($event)\"></div>\n </div>\n <div class=\"filter-items-wrapper co-small-scrollbar\"> \n </div>\n </div>-->\n ",
3138
+ template: "\n <!--<div class=\"preset-button\">\n <co-button [iconData]=\"iconCache.getIcon(icons.MagicWand)\"\n (onClick)=\"loadSelectedPreset()\">\n </co-button>\n <co-button [iconData]=\"iconCache.getIcon(icons.Check)\"\n (onClick)=\"showSavePresetPopup()\">\n </co-button>\n </div>-->\n <div class=\"catalog-filter-categories\">\n <co-catalog-filter-categories [categories]=\"filterCategories\"\n (categoryClick)=\"handleCategoryClick($event)\"></co-catalog-filter-categories>\n </div>\n <div #filterItems class=\"catalog-category-filter-wrapper\" data-ride=\"carousel\">\n <div #generalFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-general></co-catalog-filter-content-general>\n </div>\n <div #purchaseFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-purchase></co-catalog-filter-content-purchase>\n </div>\n <div #logisticsFilter class=\"catalog-filter-category-content\">\n <co-catalog-filter-content-logistics></co-catalog-filter-content-logistics>\n </div>\n </div> \n \n <!--<co-dialog *ngIf=\"showSavePopup\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\" (closeClick)=\"cancelClicked()\">\n <ng-template #headerTemplate>\n <span class=\"header\" [textContent]=\"'SAVE_PRESET' | localize\"></span>\n </ng-template>\n \n <div class=\"save-dialog-contents\">\n <co-input-text \n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [(model)]=\"searchService.currentPreset.name\"\n [label]=\"'PRESET_NAME' | localize\"\n [placeholder]=\"'PRESET_NAME' | localize\"\n ></co-input-text>\n <co-list-of-values [collection]=\"userGroupCollection\" \n [displayField]=\"'description'\"\n [label]=\"'USERGROUPS'| localize\"\n [(model)]=\"userGroupsChosen\"\n (modelChange)=\"userGroupsChanged()\"\n [multiselect]=\"true\"\n ></co-list-of-values>\n &lt;!&ndash;<co-input-checkbox *ngIf=\"updatePreset\"\n [(model)]=\"searchService.currentPreset.default\"\n [label]=\"'SAVE_AS_NEW' | localize\"\n ></co-input-checkbox> &ndash;&gt;\n </div>\n \n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <ng-container >\n <co-button [label]=\"'SAVE' | localize\" (click)=\"saveClicked()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"cancelClicked()\"></co-button>\n </ng-container>\n </div>\n </ng-template>\n </co-dialog> --> \n ",
3113
3139
  animations: [
3114
3140
  animations.trigger('showFilterItem', [
3115
3141
  animations.state('closed', animations.style({ height: '80px' })),
@@ -3123,7 +3149,10 @@
3123
3149
  CatalogFilterComponent.ctorParameters = function () { return [
3124
3150
  { type: IconCacheService },
3125
3151
  { type: CatalogOptionsService },
3126
- { type: i0.ChangeDetectorRef }
3152
+ { type: i0.ChangeDetectorRef },
3153
+ { type: CatalogConnectorService },
3154
+ { type: CatalogConnectorAdapterService },
3155
+ { type: CatalogSearchService }
3127
3156
  ]; };
3128
3157
  CatalogFilterComponent.propDecorators = {
3129
3158
  filterItems: [{ type: i0.ViewChild, args: ['filterItems', { read: i0.ElementRef },] }],
@@ -3244,28 +3273,17 @@
3244
3273
 
3245
3274
  var CatalogFilterContentGeneralComponent = /** @class */ (function () {
3246
3275
  function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
3247
- var _this = this;
3248
3276
  this.catalogSearchService = catalogSearchService;
3249
3277
  this.filterService = filterService;
3250
3278
  this.iconCache = iconCache;
3251
3279
  this._catalogConnectorService = _catalogConnectorService;
3252
3280
  this._adapterService = _adapterService;
3253
- this.modes = corecomponents_v12.FilterItemMode;
3254
3281
  this.icons = IconEnum;
3282
+ this.modes = _.FilterItemMode;
3255
3283
  this._min = 0;
3256
3284
  this._max = 100000;
3257
3285
  this._subs = [];
3258
3286
  this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
3259
- this.getRetail = function (barcodeFilter) { return __awaiter(_this, void 0, void 0, function () {
3260
- var request;
3261
- return __generator(this, function (_a) {
3262
- request = new articleExtendedRequest.ArticleExtendedRequest();
3263
- request.barcode = barcodeFilter;
3264
- return [2 /*return*/, this._catalogConnectorService.getArticlesForCatalog(request).then(function (articleResult) {
3265
- return new corecomponents_v12.FilterViewmodel(articleResult.articles, { text: 'barcode', value: 'barcode' }).filterItems;
3266
- })];
3267
- });
3268
- }); };
3269
3287
  }
3270
3288
  CatalogFilterContentGeneralComponent.prototype.showClass = function () {
3271
3289
  return true;
@@ -3341,72 +3359,12 @@
3341
3359
  _this.priceListsSalesCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
3342
3360
  });
3343
3361
  };
3344
- CatalogFilterContentGeneralComponent.prototype.filterOnPrice = function () {
3345
- this.filterService.priceMinFilter = !!this.filterService.priceMinFilter ? this.filterService.priceMinFilter : this._min;
3346
- this.filterService.priceMaxFilter = !!this.filterService.priceMaxFilter ? this.filterService.priceMaxFilter : this._max;
3347
- // some user error protection
3348
- var trueLowerBound = Math.min(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
3349
- var trueUpperBound = Math.max(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
3350
- this.catalogSearchService.searchRequest.rangePrice = trueLowerBound + " - " + trueUpperBound;
3351
- this.catalogSearchService.searchArticles();
3352
- };
3353
- CatalogFilterContentGeneralComponent.prototype.updateLengthFilter = function () {
3354
- this.filterService.lengthMinFilter = !!this.filterService.lengthMinFilter ? this.filterService.lengthMinFilter : this._min;
3355
- this.filterService.lengthMaxFilter = !!this.filterService.lengthMaxFilter ? this.filterService.lengthMaxFilter : this._max;
3356
- this.catalogSearchService.searchRequest.length = this.getFromToFilter(this.filterService.lengthMinFilter, this.filterService.lengthMaxFilter);
3357
- };
3358
- CatalogFilterContentGeneralComponent.prototype.updateWidthFilter = function () {
3359
- this.filterService.widthMinFilter = !!this.filterService.widthMinFilter ? this.filterService.widthMinFilter : this._min;
3360
- this.filterService.widthMaxFilter = !!this.filterService.widthMaxFilter ? this.filterService.widthMaxFilter : this._max;
3361
- this.catalogSearchService.searchRequest.width = this.getFromToFilter(this.filterService.widthMinFilter, this.filterService.widthMaxFilter);
3362
- };
3363
- CatalogFilterContentGeneralComponent.prototype.updateHeightFilter = function () {
3364
- this.filterService.heightMinFilter = !!this.filterService.heightMinFilter ? this.filterService.heightMinFilter : this._min;
3365
- this.filterService.heightMaxFilter = !!this.filterService.heightMaxFilter ? this.filterService.heightMaxFilter : this._max;
3366
- this.catalogSearchService.searchRequest.height = this.getFromToFilter(this.filterService.heightMinFilter, this.filterService.heightMaxFilter);
3367
- };
3368
- CatalogFilterContentGeneralComponent.prototype.updateDepthFilter = function () {
3369
- this.filterService.depthMinFilter = !!this.filterService.depthMinFilter ? this.filterService.depthMinFilter : this._min;
3370
- this.filterService.depthMaxFilter = !!this.filterService.depthMaxFilter ? this.filterService.depthMaxFilter : this._max;
3371
- this.catalogSearchService.searchRequest.depth = this.getFromToFilter(this.filterService.depthMinFilter, this.filterService.depthMaxFilter);
3372
- };
3373
- CatalogFilterContentGeneralComponent.prototype.getFromToFilter = function (min, max) {
3374
- // some user error protection
3375
- var trueLowerBound = Math.min(min, max);
3376
- var trueUpperBound = Math.max(min, max);
3377
- return trueLowerBound + " - " + trueUpperBound;
3378
- };
3379
- CatalogFilterContentGeneralComponent.prototype.handleCollectionChange = function (filterName, collection) {
3380
- this.catalogSearchService.filterOnCollection(filterName, collection);
3381
- };
3382
- CatalogFilterContentGeneralComponent.prototype.handleSeparateCollectionChange = function (filterName, collection) {
3383
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
3384
- };
3385
- CatalogFilterContentGeneralComponent.prototype.handleArticleTypeChange = function (filterName, collection) {
3386
- this.catalogSearchService.searchRequest.articleKindList = this.catalogSearchService.createFilterStringCollection(collection);
3387
- };
3388
- CatalogFilterContentGeneralComponent.prototype.handleSingleSelectChange = function (filterName, collection) {
3389
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
3390
- };
3391
- CatalogFilterContentGeneralComponent.prototype.handleNumberListChange = function (filterName, collection) {
3392
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterNumber(collection);
3393
- };
3394
- CatalogFilterContentGeneralComponent.prototype.handleCollectionChangeForSingleSelect = function (collection, modelName) {
3395
- this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForSingleSelect(collection);
3396
- this.catalogSearchService.searchArticles();
3397
- };
3398
- CatalogFilterContentGeneralComponent.prototype._getFilterRequestForSingleSelect = function (collection) {
3399
- var filterRequest = '';
3400
- var selectedItem = collection === null || collection === void 0 ? void 0 : collection.find(function (item) { return item.checked; });
3401
- filterRequest = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.code.toString();
3402
- return filterRequest;
3403
- };
3404
3362
  return CatalogFilterContentGeneralComponent;
3405
3363
  }());
3406
3364
  CatalogFilterContentGeneralComponent.decorators = [
3407
3365
  { type: i0.Component, args: [{
3408
3366
  selector: 'co-catalog-filter-content-general',
3409
- 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 <label class=\"temp\">Price</label>\n <div class=\"price-inputs\"> \n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'BASELINE_PRICE' | localize\"\n [(model)]=\"filterService.priceMinFilter\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'PRICE_TO' | localize\"\n [(model)]=\"filterService.priceMaxFilter\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div> \n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Length</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMinFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.lengthMaxFilter\"\n (modelChange)=\"updateLengthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.widthMinFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.widthMaxFilter\"\n (modelChange)=\"updateWidthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Height</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.heightMinFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.heightMaxFilter\"\n (modelChange)=\"updateHeightFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <label class=\"temp\">Width</label>\n <div class=\"price-inputs\">\n <co-input-text\n class=\"price-from\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'FROM' | localize\"\n [(model)]=\"filterService.depthMinFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-input-text\n class=\"price-to\"\n [type]=\"'number'\"\n [digitsOnly]=\"true\"\n [hideArrowButtons]=\"true\"\n [excludePlusMinus]=\"true\"\n [label]=\"'TO' | localize\"\n [(model)]=\"filterService.depthMaxFilter\"\n (modelChange)=\"updateDepthFilter()\"\n customWidth\n ></co-input-text>\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\n </div>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeStoreGroup', $event)\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n (collectionChange)=\"handleSeparateCollectionChange('collection', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n (collectionChange)=\"handleArticleTypeChange('rangeStoreGroup', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n (collectionChange)=\"handleNumberListChange('publicationCode', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n (collectionChange)=\"handleNumberListChange('publicationWebshopSales', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n (collectionChange)=\"handleSingleSelectChange('pricelistRetail', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n (collectionChange)=\"handleSingleSelectChange('category', $event)\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5\n (collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"\n ></co-filter-item>\n </div>\n </div>\n </div> \n </div>\n "
3367
+ 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-filter-item [placeholder]=\"'PRICE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"100000\"\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'LENGTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'WIDTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'HEIGHT' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'DEPTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\" \n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\" \n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5 \n ></co-filter-item> <!--(collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"-->\n </div>\n </div>\n </div> \n </div>\n "
3410
3368
  },] }
3411
3369
  ];
3412
3370
  CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
@@ -3451,8 +3409,8 @@
3451
3409
  this.filterService = filterService;
3452
3410
  this._catalogConnectorService = _catalogConnectorService;
3453
3411
  this._adapterService = _adapterService;
3454
- this.modes = corecomponents_v12.FilterItemMode;
3455
3412
  this.icons = IconEnum;
3413
+ this.modes = corecomponents_v12.FilterItemMode;
3456
3414
  this._subs = [];
3457
3415
  }
3458
3416
  CatalogFilterContentPurchaseComponent.prototype.showClass = function () {
@@ -3493,18 +3451,12 @@
3493
3451
  _this.priceListsPurchCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
3494
3452
  });
3495
3453
  };
3496
- CatalogFilterContentPurchaseComponent.prototype.handleSeparateCollectionChange = function (filterName, collection) {
3497
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
3498
- };
3499
- CatalogFilterContentPurchaseComponent.prototype.handleSingleSelectChange = function (filterName, collection) {
3500
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
3501
- };
3502
3454
  return CatalogFilterContentPurchaseComponent;
3503
3455
  }());
3504
3456
  CatalogFilterContentPurchaseComponent.decorators = [
3505
3457
  { type: i0.Component, args: [{
3506
3458
  selector: 'co-catalog-filter-content-purchase',
3507
- template: "\n <div class=\"catalog-filter-content-purchase-wrapper catalog-filter-content-wrapper\">\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n (collectionChange)=\"handleSeparateCollectionChange('rangeSupplierNr', $event)\"\n >\n </co-filter-item>\n </div> \n <co-filter-item [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [(model)]=\"catalogSearchService.searchRequest.artNrSupplier\"\n noValidation></co-input-text>\n </co-filter-item>\n <co-filter-item [placeholder]=\"'REFERENCE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'REFERENCE' | localize\" [(model)]=\"catalogSearchService.searchRequest.simpleReference\"\n noValidation></co-input-text>\n </co-filter-item>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_PURCHASE' | localize\"\n [expanded]=\"true\"\n [collection]=\"priceListsPurchCollection\"\n [mode]=\"modes.SingleSelectList\"\n (collectionChange)=\"handleSingleSelectChange('pricelistPurchase', $event)\"\n >\n </co-filter-item>\n </div>\n </div>\n </div>\n </div> \n </div>\n "
3459
+ template: "\n <div class=\"catalog-filter-content-purchase-wrapper catalog-filter-content-wrapper\">\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SUPPLIER' | localize\"\n [expanded]=\"true\"\n [collection]=\"suppliers\"\n [(model)]=\"catalogSearchService.searchRequest.rangeSupplierNr\"\n >\n </co-filter-item>\n </div> \n <co-filter-item [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.artNrSupplier\"> \n </co-filter-item>\n <co-filter-item [placeholder]=\"'REFERENCE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.simpleReference\">\n </co-filter-item> \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_PURCHASE' | localize\"\n [expanded]=\"true\"\n [collection]=\"priceListsPurchCollection\"\n [mode]=\"modes.SingleSelectList\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistPurchase\"\n >\n </co-filter-item>\n </div>\n </div>\n </div>\n </div> \n </div>\n "
3508
3460
  },] }
3509
3461
  ];
3510
3462
  CatalogFilterContentPurchaseComponent.ctorParameters = function () { return [
@@ -3515,8 +3467,7 @@
3515
3467
  { type: CatalogConnectorAdapterService }
3516
3468
  ]; };
3517
3469
  CatalogFilterContentPurchaseComponent.propDecorators = {
3518
- showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
3519
- priceSlider: [{ type: i0.ViewChild, args: [corecomponents.SliderComponent, { static: true },] }]
3470
+ showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
3520
3471
  };
3521
3472
 
3522
3473
  var CatalogFilterContentPurchaseModule = /** @class */ (function () {
@@ -3547,6 +3498,7 @@
3547
3498
  function CatalogFilterContentLogisticsComponent(catalogSearchService, iconCache) {
3548
3499
  this.catalogSearchService = catalogSearchService;
3549
3500
  this.iconCache = iconCache;
3501
+ this.modes = corecomponents_v12.FilterItemMode;
3550
3502
  this.icons = IconEnum;
3551
3503
  }
3552
3504
  CatalogFilterContentLogisticsComponent.prototype.showClass = function () {
@@ -3555,7 +3507,7 @@
3555
3507
  CatalogFilterContentLogisticsComponent.prototype.ngOnInit = function () {
3556
3508
  };
3557
3509
  CatalogFilterContentLogisticsComponent.prototype.handleAllChanged = function (value) {
3558
- this.catalogSearchService.searchRequest["doSync"] = value ? 'J' : 'N';
3510
+ this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
3559
3511
  this.catalogSearchService.searchRequest["showRegularArticles"] = value;
3560
3512
  this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
3561
3513
  this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
@@ -3563,25 +3515,12 @@
3563
3515
  this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
3564
3516
  this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
3565
3517
  };
3566
- CatalogFilterContentLogisticsComponent.prototype.handleCheckboxValueChangeForString = function (value, modelName) {
3567
- this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
3568
- };
3569
- CatalogFilterContentLogisticsComponent.prototype._getFilterRequestForBooleanToString = function (value) {
3570
- var filterRequest = '';
3571
- if (value) {
3572
- filterRequest = "?='J'";
3573
- }
3574
- else {
3575
- filterRequest = "?='N'";
3576
- }
3577
- return filterRequest;
3578
- };
3579
3518
  return CatalogFilterContentLogisticsComponent;
3580
3519
  }());
3581
3520
  CatalogFilterContentLogisticsComponent.decorators = [
3582
3521
  { type: i0.Component, args: [{
3583
3522
  selector: 'co-catalog-filter-content-logistics',
3584
- template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'SERIALNUMBER' | localize\" [(model)]=\"catalogSearchService.searchRequest.serialNumber\"\n noValidation></co-input-text>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-text [placeholder]=\"'BATCH_NUMBER' | localize\" [(model)]=\"catalogSearchService.searchRequest.batchNumber\"\n noValidation></co-input-text>\n </co-filter-item>\n </div> \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [customContent]=\"true\"\n >\n <co-input-date\n [(model)]=\"catalogSearchService.searchRequest.dateModified\"\n (modelChange)=\"catalogSearchService.searchArticles()\"\n ></co-input-date>\n </co-filter-item>\n </div>\n\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'ALL'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div> \n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [model]=\"catalogSearchService.searchRequest.doSync === 'J'\"\n (modelChange)=\"this.handleCheckboxValueChangeForString($event, 'doSync')\"\n [label]=\"'AUTOMATICALLY_UPDATE' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'SHOW_REGULAR_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'SHOW_CONFIGURED_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'BASE_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"\n [label]=\"'BASE_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'COMPOSITION_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"\n [label]=\"'COMPOSITION_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'SHOW_CUSTOMIZED_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'SHOW_INACTIVE_ARTICLES'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n </div>\n </div>\n \n </div>\n "
3523
+ template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-filter-item> \n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-filter-item>\n </div>\n\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'ALL'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL' | localize\"></co-input-checkbox>\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE'\"\n [expanded]=\"true\"\n [mode]=\"modes.CheckboxToText\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_REGULAR_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_CONFIGURED_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BASE_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'COMPOSITION_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_CUSTOMIZED_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SHOW_INACTIVE_ARTICLES'\"\n [expanded]=\"true\"\n [mode]=\"modes.Checkbox\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\">\n </co-filter-item>\n </div>\n </div>\n </div> \n </div>\n "
3585
3524
  },] }
3586
3525
  ];
3587
3526
  CatalogFilterContentLogisticsComponent.ctorParameters = function () { return [
@@ -3637,7 +3576,12 @@
3637
3576
  CatalogFilterContentGeneralModule,
3638
3577
  CatalogFilterContentPurchaseModule,
3639
3578
  CatalogFilterContentLogisticsModule,
3640
- PipeModule
3579
+ PipeModule,
3580
+ corecomponents_v12.ButtonModule,
3581
+ corecomponents_v12.CoDialogModule,
3582
+ corecomponents_v12.ListOfValuesModule,
3583
+ corecomponents.CheckboxSelectModule,
3584
+ corecomponents_v12.CheckmarkOverlayModule
3641
3585
  ],
3642
3586
  declarations: [
3643
3587
  CatalogFilterComponent
@@ -4178,15 +4122,12 @@
4178
4122
  CatalogSearchComponent.prototype.handleResetButtonClick = function (event) {
4179
4123
  this._catalogSearchService.resetFilters();
4180
4124
  };
4181
- CatalogSearchComponent.prototype.handleGetTransactionClick = function () {
4182
- this._catalogService.getWebTransaction();
4183
- };
4184
4125
  return CatalogSearchComponent;
4185
4126
  }());
4186
4127
  CatalogSearchComponent.decorators = [
4187
4128
  { type: i0.Component, args: [{
4188
4129
  selector: 'co-catalog-search',
4189
- template: "\n <button (click)=\"handleGetTransactionClick()\">get transaction</button>\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\"\n [view]=\"contentView\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
4130
+ template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"showFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"showFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"showFilter = !showFilter\"></co-catalog-search-header>\n </div>\n <ng-container *ngIf=\"showViewModes\">\n <button (click)=\"mode = 'tile'\">tile</button>\n <button (click)=\"mode = 'list'\">list</button>\n <button (click)=\"mode = 'grid'\">grid</button>\n </ng-container>\n <co-catalog-navigation *ngIf=\"showNavigation\"\n [view]=\"contentView\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
4190
4131
  providers: [
4191
4132
  SelectSingleCacheService,
4192
4133
  SelectMultipleCacheService,