@colijnit/catalog 12.1.30 → 12.1.32

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 (67) hide show
  1. package/bundles/colijnit-catalog.umd.js +814 -147
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +42 -33
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +43 -34
  6. package/esm2015/lib/catalog-version.js +3 -3
  7. package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +4 -2
  8. package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +4 -2
  9. package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +4 -2
  10. package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +44 -112
  11. package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +16 -8
  12. package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +42 -0
  13. package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +21 -0
  14. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +375 -0
  15. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +26 -0
  16. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +175 -0
  17. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +28 -0
  18. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +102 -0
  19. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +27 -0
  20. package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.module.js +4 -2
  21. package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.js +4 -2
  22. package/esm2015/lib/model/catalog-filter-viewmodel.js +4 -0
  23. package/esm2015/lib/pipe/pipe.module.js +19 -0
  24. package/esm2015/lib/service/catalog-connector-adapter.service.js +91 -2
  25. package/esm2015/lib/service/catalog-connector.service.js +37 -2
  26. package/esm2015/lib/service/catalog-filter.service.js +33 -3
  27. package/esm2015/lib/service/catalog-search.service.js +51 -18
  28. package/fesm2015/colijnit-catalog.js +1048 -167
  29. package/fesm2015/colijnit-catalog.js.map +1 -1
  30. package/lib/component/catalog-filter/catalog-filter.component.d.ts +8 -23
  31. package/lib/component/catalog-filter/style/_layout.scss +13 -0
  32. package/lib/component/catalog-filter/style/material.scss +4 -0
  33. package/lib/component/catalog-filter-categories/catalog-filter-categories.component.d.ts +10 -0
  34. package/lib/component/catalog-filter-categories/catalog-filter-categories.module.d.ts +2 -0
  35. package/lib/component/catalog-filter-categories/style/_layout.scss +23 -0
  36. package/lib/component/catalog-filter-categories/style/_material-definition.scss +22 -0
  37. package/lib/component/catalog-filter-categories/style/_theme.scss +12 -0
  38. package/lib/component/catalog-filter-categories/style/material.scss +4 -0
  39. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +47 -0
  40. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.d.ts +2 -0
  41. package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_layout.scss +2 -0
  42. package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_material-definition.scss +1 -0
  43. package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_theme.scss +4 -0
  44. package/lib/component/catalog-filter-content/catalog-filter-content-general/style/material.scss +4 -0
  45. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +16 -0
  46. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.d.ts +2 -0
  47. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_layout.scss +2 -0
  48. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_material-definition.scss +1 -0
  49. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_theme.scss +4 -0
  50. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/material.scss +4 -0
  51. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +24 -0
  52. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.d.ts +2 -0
  53. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_layout.scss +2 -0
  54. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_material-definition.scss +1 -0
  55. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_theme.scss +4 -0
  56. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/material.scss +4 -0
  57. package/lib/model/catalog-filter-viewmodel.d.ts +4 -0
  58. package/lib/pipe/pipe.module.d.ts +2 -0
  59. package/lib/service/catalog-connector-adapter.service.d.ts +18 -0
  60. package/lib/service/catalog-connector.service.d.ts +14 -0
  61. package/lib/service/catalog-filter.service.d.ts +15 -3
  62. package/lib/service/catalog-search.service.d.ts +6 -2
  63. package/package.json +6 -18
  64. package/esm2015/lib/model/filter-item.viewmodel.js +0 -10
  65. package/esm2015/lib/model/filter-viewmodel.js +0 -12
  66. package/lib/model/filter-item.viewmodel.d.ts +0 -9
  67. package/lib/model/filter-viewmodel.d.ts +0 -8
@@ -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/ioneconnector/build/factory/business-object-factory'), 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/ioneconnector/build/utils/object-utils'), require('@colijnit/ioneconnector/build/utils/file-utils'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@colijnit/ioneconnector/build/model/paging-parameters'), require('@colijnit/corecomponents_v12'), require('@angular/animations'), require('@colijnit/corecomponents'), require('@angular/platform-browser')) :
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/ioneconnector/build/factory/business-object-factory', '@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/ioneconnector/build/utils/object-utils', '@colijnit/ioneconnector/build/utils/file-utils', '@colijnit/articleapi/build/model/article-extended-request', '@colijnit/ioneconnector/build/model/paging-parameters', '@colijnit/corecomponents_v12', '@angular/animations', '@colijnit/corecomponents', '@angular/platform-browser'], 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.businessObjectFactory, global.articles, global.articleExtended_bo, global.articleSearchFilterSelections, global.articleSearchFilterMaxAndMinPrice, global.articlePrice, global.getArticlePriceRequest, global.objectUtils, global.fileUtils, global.articleExtendedRequest, global.pagingParameters, global.corecomponents_v12, global.ng.animations, global.corecomponents, global.ng.platformBrowser));
5
- })(this, (function (exports, i0, common, rxjs, stringUtils, articleCategory, catalogDefinition_bo, externalSource_bo, businessObjectFactory, articles, articleExtended_bo, articleSearchFilterSelections, articleSearchFilterMaxAndMinPrice, articlePrice, getArticlePriceRequest, objectUtils, fileUtils, articleExtendedRequest, pagingParameters, corecomponents_v12, animations, corecomponents, i1) { 'use strict';
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-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/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-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/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.relationRequest, global.relationKind_enum, global.coRvDomainValue_bo, global.category_bo, global.businessObjectFactory, 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, relationRequest, relationKind_enum, coRvDomainValue_bo, category_bo, businessObjectFactory, 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.30";
34
- this.publishDate = "29-4-2023 10:53:53";
33
+ this.symVer = "12.1.32";
34
+ this.publishDate = "23-6-2023 17:07:37";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -129,11 +129,11 @@
129
129
  if (_ = accept(result.set))
130
130
  descriptor.set = _;
131
131
  if (_ = accept(result.init))
132
- initializers.push(_);
132
+ initializers.unshift(_);
133
133
  }
134
134
  else if (_ = accept(result)) {
135
135
  if (kind === "field")
136
- initializers.push(_);
136
+ initializers.unshift(_);
137
137
  else
138
138
  descriptor[key] = _;
139
139
  }
@@ -419,7 +419,34 @@
419
419
  if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
420
420
  throw new TypeError("Cannot use 'in' operator on non-object");
421
421
  return typeof state === "function" ? receiver === state : state.has(receiver);
422
- }
422
+ }
423
+ var tslib_es6 = {
424
+ __extends: __extends,
425
+ __assign: __assign,
426
+ __rest: __rest,
427
+ __decorate: __decorate,
428
+ __param: __param,
429
+ __metadata: __metadata,
430
+ __awaiter: __awaiter,
431
+ __generator: __generator,
432
+ __createBinding: __createBinding,
433
+ __exportStar: __exportStar,
434
+ __values: __values,
435
+ __read: __read,
436
+ __spread: __spread,
437
+ __spreadArrays: __spreadArrays,
438
+ __spreadArray: __spreadArray,
439
+ __await: __await,
440
+ __asyncGenerator: __asyncGenerator,
441
+ __asyncDelegator: __asyncDelegator,
442
+ __asyncValues: __asyncValues,
443
+ __makeTemplateObject: __makeTemplateObject,
444
+ __importStar: __importStar,
445
+ __importDefault: __importDefault,
446
+ __classPrivateFieldGet: __classPrivateFieldGet,
447
+ __classPrivateFieldSet: __classPrivateFieldSet,
448
+ __classPrivateFieldIn: __classPrivateFieldIn,
449
+ };
423
450
 
424
451
  var SettingsOptions = /** @class */ (function () {
425
452
  function SettingsOptions() {
@@ -777,6 +804,8 @@
777
804
  this.assetPath = settings.assetPath;
778
805
  this.connector = new articles.Articles(this.connectorOptions);
779
806
  this.connectorOptions.session = this.connector.session;
807
+ this.relationConnector = new relationapi.RelationApi(this.connectorOptions);
808
+ this.mainConnector = new mainapi.MainApi(this.connectorOptions);
780
809
  this.connector.showLoader.subscribe(function (showLoader) { return _this.onShowLoaderChange(showLoader); });
781
810
  this.controllerInitialized.next(true);
782
811
  this._initialized = true;
@@ -1080,6 +1109,142 @@
1080
1109
  });
1081
1110
  });
1082
1111
  };
1112
+ CatalogConnectorAdapterService.prototype.getBrandFilter = function (params) {
1113
+ return __awaiter(this, void 0, void 0, function () {
1114
+ var response;
1115
+ return __generator(this, function (_a) {
1116
+ switch (_a.label) {
1117
+ case 0: return [4 /*yield*/, this.connector.getTurnoverGroupFilter(params)];
1118
+ case 1:
1119
+ response = _a.sent();
1120
+ if (response && response.validationResult && response.validationResult.success) {
1121
+ return [2 /*return*/, this._boFactory.makeWithRawBackendData(articleSearchFilterSelections.ArticleSearchFilterSelections, response.resultObject)];
1122
+ }
1123
+ else {
1124
+ console.error(response.validationMessagesAsString);
1125
+ }
1126
+ return [2 /*return*/];
1127
+ }
1128
+ });
1129
+ });
1130
+ };
1131
+ CatalogConnectorAdapterService.prototype.getStoreGroups = function (settings) {
1132
+ return __awaiter(this, void 0, void 0, function () {
1133
+ var response;
1134
+ return __generator(this, function (_a) {
1135
+ switch (_a.label) {
1136
+ case 0: return [4 /*yield*/, this.mainConnector.getStoreGroups()];
1137
+ case 1:
1138
+ response = _a.sent();
1139
+ if (response && response.validationResult && response.validationResult.success) {
1140
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(storeGroup_bo.StoreGroup, response.resultObjects)];
1141
+ }
1142
+ else {
1143
+ console.error(response.validationMessagesAsString);
1144
+ }
1145
+ return [2 /*return*/];
1146
+ }
1147
+ });
1148
+ });
1149
+ };
1150
+ CatalogConnectorAdapterService.prototype.getCategories = function (settings) {
1151
+ return __awaiter(this, void 0, void 0, function () {
1152
+ var response;
1153
+ return __generator(this, function (_a) {
1154
+ switch (_a.label) {
1155
+ case 0: return [4 /*yield*/, this.mainConnector.getCategories()];
1156
+ case 1:
1157
+ response = _a.sent();
1158
+ if (response && response.validationResult && response.validationResult.success) {
1159
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(category_bo.Category, response.resultObjects)];
1160
+ }
1161
+ else {
1162
+ console.error(response.validationMessagesAsString);
1163
+ }
1164
+ return [2 /*return*/];
1165
+ }
1166
+ });
1167
+ });
1168
+ };
1169
+ CatalogConnectorAdapterService.prototype.getDomainCollection = function (domainName) {
1170
+ return __awaiter(this, void 0, void 0, function () {
1171
+ var response;
1172
+ return __generator(this, function (_a) {
1173
+ switch (_a.label) {
1174
+ case 0: return [4 /*yield*/, this.mainConnector.getDomainCollection(this.connectorOptions.languageCode, domainName)];
1175
+ case 1:
1176
+ response = _a.sent();
1177
+ if (response && response.validationResult && response.validationResult.success) {
1178
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, response.resultObjects)];
1179
+ }
1180
+ else {
1181
+ console.error(response.validationMessagesAsString);
1182
+ }
1183
+ return [2 /*return*/];
1184
+ }
1185
+ });
1186
+ });
1187
+ };
1188
+ CatalogConnectorAdapterService.prototype.getRVDomainCollection = function (domainName) {
1189
+ return __awaiter(this, void 0, void 0, function () {
1190
+ var response;
1191
+ return __generator(this, function (_a) {
1192
+ switch (_a.label) {
1193
+ case 0: return [4 /*yield*/, this.mainConnector.getRVDomainCollection(this.connectorOptions.languageCode, domainName)];
1194
+ case 1:
1195
+ response = _a.sent();
1196
+ if (response && response.validationResult && response.validationResult.success) {
1197
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coRvDomainValue_bo.CoRVDomainValue, response.resultObjects)];
1198
+ }
1199
+ else {
1200
+ console.error(response.validationMessagesAsString);
1201
+ }
1202
+ return [2 /*return*/];
1203
+ }
1204
+ });
1205
+ });
1206
+ };
1207
+ CatalogConnectorAdapterService.prototype.getPriceLists = function () {
1208
+ return __awaiter(this, void 0, void 0, function () {
1209
+ var response;
1210
+ return __generator(this, function (_a) {
1211
+ switch (_a.label) {
1212
+ case 0: return [4 /*yield*/, this.mainConnector.getPriceLists()];
1213
+ case 1:
1214
+ response = _a.sent();
1215
+ if (response && response.validationResult && response.validationResult.success) {
1216
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, response.resultObjects)];
1217
+ }
1218
+ else {
1219
+ console.error(response.validationMessagesAsString);
1220
+ }
1221
+ return [2 /*return*/];
1222
+ }
1223
+ });
1224
+ });
1225
+ };
1226
+ CatalogConnectorAdapterService.prototype.getSuppliers = function () {
1227
+ return __awaiter(this, void 0, void 0, function () {
1228
+ var request, response;
1229
+ return __generator(this, function (_a) {
1230
+ switch (_a.label) {
1231
+ case 0:
1232
+ request = new relationRequest.RelationRequest;
1233
+ request.relationType = relationKind_enum.RelationKind.Supplier;
1234
+ return [4 /*yield*/, this.relationConnector.getRelationListObjects(request)];
1235
+ case 1:
1236
+ response = _a.sent();
1237
+ if (response && response.validationResult && response.validationResult.success) {
1238
+ return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(coDomainValue_bo.CoDomainValue, response.resultObjects)];
1239
+ }
1240
+ else {
1241
+ console.error(response.validationMessagesAsString);
1242
+ }
1243
+ return [2 /*return*/];
1244
+ }
1245
+ });
1246
+ });
1247
+ };
1083
1248
  // will be called in future
1084
1249
  // public getArticleGroupImages(): Promise<ArticleGroupImage[]> {
1085
1250
  // return this.connector.getArticleGroupImages();
@@ -1811,6 +1976,13 @@
1811
1976
  });
1812
1977
  });
1813
1978
  };
1979
+ CatalogConnectorService.prototype.getBrandFilter = function (params) {
1980
+ return __awaiter(this, void 0, void 0, function () {
1981
+ return __generator(this, function (_a) {
1982
+ return [2 /*return*/, this._adapterService.getTurnoverGroupFilter(params)];
1983
+ });
1984
+ });
1985
+ };
1814
1986
  CatalogConnectorService.prototype.getArticlePrice = function (goodId, type) {
1815
1987
  return __awaiter(this, void 0, void 0, function () {
1816
1988
  return __generator(this, function (_a) {
@@ -1818,6 +1990,48 @@
1818
1990
  });
1819
1991
  });
1820
1992
  };
1993
+ CatalogConnectorService.prototype.getStoreGroups = function () {
1994
+ return __awaiter(this, void 0, void 0, function () {
1995
+ return __generator(this, function (_a) {
1996
+ return [2 /*return*/, this._adapterService.getStoreGroups()];
1997
+ });
1998
+ });
1999
+ };
2000
+ CatalogConnectorService.prototype.getCategories = function () {
2001
+ return __awaiter(this, void 0, void 0, function () {
2002
+ return __generator(this, function (_a) {
2003
+ return [2 /*return*/, this._adapterService.getCategories()];
2004
+ });
2005
+ });
2006
+ };
2007
+ CatalogConnectorService.prototype.getDomainCollection = function (domainName) {
2008
+ return __awaiter(this, void 0, void 0, function () {
2009
+ return __generator(this, function (_a) {
2010
+ return [2 /*return*/, this._adapterService.getDomainCollection(domainName)];
2011
+ });
2012
+ });
2013
+ };
2014
+ CatalogConnectorService.prototype.getRVDomainCollection = function (domainName) {
2015
+ return __awaiter(this, void 0, void 0, function () {
2016
+ return __generator(this, function (_a) {
2017
+ return [2 /*return*/, this._adapterService.getRVDomainCollection(domainName)];
2018
+ });
2019
+ });
2020
+ };
2021
+ CatalogConnectorService.prototype.getPriceLists = function () {
2022
+ return __awaiter(this, void 0, void 0, function () {
2023
+ return __generator(this, function (_a) {
2024
+ return [2 /*return*/, this._adapterService.getPriceLists()];
2025
+ });
2026
+ });
2027
+ };
2028
+ CatalogConnectorService.prototype.getSuppliers = function () {
2029
+ return __awaiter(this, void 0, void 0, function () {
2030
+ return __generator(this, function (_a) {
2031
+ return [2 /*return*/, this._adapterService.getSuppliers()];
2032
+ });
2033
+ });
2034
+ };
1821
2035
  CatalogConnectorService.prototype.getDocumentContent = function (docId, thumbnail) {
1822
2036
  if (thumbnail === void 0) { thumbnail = true; }
1823
2037
  return __awaiter(this, void 0, void 0, function () {
@@ -2110,35 +2324,27 @@
2110
2324
  { type: CatalogConnectorService }
2111
2325
  ]; };
2112
2326
 
2113
- var FilterItemViewmodel = /** @class */ (function () {
2114
- function FilterItemViewmodel(code, description, count, filter) {
2115
- this.checked = false;
2116
- this.code = code;
2117
- this.description = description;
2118
- this.count = count;
2119
- this.filter = filter;
2120
- }
2121
- return FilterItemViewmodel;
2122
- }());
2123
-
2124
- var FilterViewmodel = /** @class */ (function () {
2125
- function FilterViewmodel(filter) {
2126
- var _this = this;
2127
- this.expanded = false;
2128
- this.filterItems = [];
2129
- this.filterName = filter.filterName;
2130
- filter.selectionDTOS.forEach(function (s) {
2131
- _this.filterItems.push(new FilterItemViewmodel(s.code, s.description, s.count, filter));
2132
- });
2327
+ var CatalogFilterViewmodel = /** @class */ (function (_super) {
2328
+ __extends(CatalogFilterViewmodel, _super);
2329
+ function CatalogFilterViewmodel() {
2330
+ return _super !== null && _super.apply(this, arguments) || this;
2133
2331
  }
2134
- return FilterViewmodel;
2135
- }());
2332
+ return CatalogFilterViewmodel;
2333
+ }(corecomponents_v12.FilterViewmodel));
2136
2334
 
2137
2335
  var CatalogFilterService = /** @class */ (function () {
2138
2336
  function CatalogFilterService(_iOneController) {
2139
2337
  this._iOneController = _iOneController;
2140
2338
  this.priceMinFilter = 0;
2141
2339
  this.priceMaxFilter = 100000;
2340
+ this.lengthMinFilter = 0;
2341
+ this.lengthMaxFilter = 100000;
2342
+ this.widthMinFilter = 0;
2343
+ this.widthMaxFilter = 100000;
2344
+ this.heightMinFilter = 0;
2345
+ this.heightMaxFilter = 100000;
2346
+ this.depthMinFilter = 0;
2347
+ this.depthMaxFilter = 100000;
2142
2348
  this.filters = [];
2143
2349
  this.filterItemMap = new Map([
2144
2350
  ['Catalog', 'rangeCatalog'],
@@ -2201,6 +2407,10 @@
2201
2407
  if (filter.selectionDTOS && filter.selectionDTOS.length > 0) {
2202
2408
  newFilters.push(_this.createNewFiltersAndCopySelections(filter, 'Turnover group'));
2203
2409
  }
2410
+ }), this._iOneController.getBrandFilter(filters).then(function (filter) {
2411
+ if (filter.selectionDTOS && filter.selectionDTOS.length > 0) {
2412
+ newFilters.push(_this.createNewFiltersAndCopySelections(filter, 'Brands'));
2413
+ }
2204
2414
  }));
2205
2415
  Promise.all(filterProms).then(function () {
2206
2416
  _this.filters.length = 0;
@@ -2209,7 +2419,8 @@
2209
2419
  };
2210
2420
  CatalogFilterService.prototype.createNewFiltersAndCopySelections = function (filter, key) {
2211
2421
  var e_1, _a;
2212
- var newModel = new FilterViewmodel(filter);
2422
+ var newModel = new CatalogFilterViewmodel(filter.selectionDTOS, { text: 'description', value: 'code' });
2423
+ newModel.filterName = filter.filterName;
2213
2424
  var oldModel = this.filters.find(function (element) { return element.filterName === key; });
2214
2425
  if (oldModel) {
2215
2426
  var _loop_1 = function (oldFilter) {
@@ -2237,6 +2448,22 @@
2237
2448
  CatalogFilterService.prototype.getFilterItemMap = function (key) {
2238
2449
  return this.filterItemMap.get(key);
2239
2450
  };
2451
+ CatalogFilterService.prototype.createFilterSelectionsCollection = function (collection, id, description) {
2452
+ var returnCollection = [];
2453
+ collection.forEach(function (collectionObject) {
2454
+ var model = new corecomponents_v12.FilterItemViewmodel(collectionObject[id], collectionObject[description], false);
2455
+ returnCollection.push(model);
2456
+ });
2457
+ return returnCollection;
2458
+ };
2459
+ CatalogFilterService.prototype.createFilterSelectionsSupplierCollection = function (collection) {
2460
+ var returnCollection = [];
2461
+ collection.forEach(function (collectionObject) {
2462
+ var model = new corecomponents_v12.FilterItemViewmodel(collectionObject.relationNr, collectionObject.displayName, false);
2463
+ returnCollection.push(model);
2464
+ });
2465
+ return returnCollection;
2466
+ };
2240
2467
  return CatalogFilterService;
2241
2468
  }());
2242
2469
  CatalogFilterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CatalogFilterService_Factory() { return new CatalogFilterService(i0__namespace.ɵɵinject(CatalogConnectorService)); }, token: CatalogFilterService, providedIn: "root" });
@@ -2326,28 +2553,61 @@
2326
2553
  CatalogSearchService.prototype.ngOnDestroy = function () {
2327
2554
  this._subs.forEach(function (s) { return s.unsubscribe(); });
2328
2555
  };
2329
- CatalogSearchService.prototype.filterOnCollection = function (collection) {
2330
- var _this = this;
2556
+ CatalogSearchService.prototype.filterOnCollection = function (filterName, collection) {
2331
2557
  if (!collection || collection.length === 0) {
2332
2558
  return;
2333
2559
  }
2334
- var cleared = false;
2335
- var filterRange = [];
2336
- var searchFilterProp = this._filterService.getFilterItemMap(collection[0].filter.filterName);
2560
+ var searchFilterProp = this._filterService.getFilterItemMap(filterName);
2337
2561
  if (searchFilterProp) {
2338
- collection.forEach(function (viewModel) {
2339
- if (!cleared) {
2340
- _this.searchRequest[searchFilterProp] = '';
2341
- cleared = true;
2342
- }
2343
- if (viewModel.checked) {
2344
- filterRange.push("?='" + viewModel.code + "'");
2345
- }
2346
- });
2347
- this.searchRequest[searchFilterProp] = filterRange.join(',');
2562
+ this.searchRequest[searchFilterProp] = this.createFilterString(collection, searchFilterProp);
2348
2563
  this.searchArticles();
2349
2564
  }
2350
2565
  };
2566
+ CatalogSearchService.prototype.createFilterString = function (collection, searchFilterProp) {
2567
+ var _this = this;
2568
+ var cleared = false;
2569
+ var filterRange = [];
2570
+ collection.forEach(function (viewModel) {
2571
+ if (!cleared) {
2572
+ _this.searchRequest[searchFilterProp] = '';
2573
+ cleared = true;
2574
+ }
2575
+ if (viewModel.checked) {
2576
+ filterRange.push("?='" + viewModel.code + "'");
2577
+ }
2578
+ });
2579
+ return filterRange.join(',');
2580
+ };
2581
+ CatalogSearchService.prototype.createFilterStringCollection = function (collection) {
2582
+ var filterRange = [];
2583
+ collection.forEach(function (viewModel) {
2584
+ if (viewModel.checked) {
2585
+ filterRange.push(viewModel.code.toString());
2586
+ }
2587
+ });
2588
+ return filterRange;
2589
+ };
2590
+ CatalogSearchService.prototype.createSingleSelectString = function (collection) {
2591
+ var filterString = "";
2592
+ collection.forEach(function (viewModel) {
2593
+ if (viewModel.checked) {
2594
+ filterString = viewModel.code.toString();
2595
+ }
2596
+ });
2597
+ return filterString;
2598
+ };
2599
+ CatalogSearchService.prototype.createFilterNumber = function (collection) {
2600
+ var filterNumber = null;
2601
+ collection.forEach(function (viewModel) {
2602
+ if (viewModel.checked) {
2603
+ if (filterNumber == null) {
2604
+ filterNumber = 0;
2605
+ }
2606
+ filterNumber += Number(viewModel.code);
2607
+ }
2608
+ });
2609
+ return filterNumber;
2610
+ };
2351
2611
  CatalogSearchService.prototype.searchArticles = function (getFilters) {
2352
2612
  var _this = this;
2353
2613
  if (getFilters === void 0) { getFilters = true; }
@@ -2357,9 +2617,9 @@
2357
2617
  var _a, _b;
2358
2618
  _this.articles = (_a = result.articles) !== null && _a !== void 0 ? _a : [];
2359
2619
  _this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
2360
- if (_this._settingsService.settings.options.showFilter && getFilters) {
2361
- _this._filterService.getFilters(_this.searchRequest);
2362
- }
2620
+ //if (this._settingsService.settings.options.showFilter && getFilters) {
2621
+ _this._filterService.getFilters(_this.searchRequest);
2622
+ //}
2363
2623
  });
2364
2624
  };
2365
2625
  CatalogSearchService.prototype.resetFilters = function (search) {
@@ -2781,18 +3041,19 @@
2781
3041
  ]; };
2782
3042
 
2783
3043
  var CatalogFilterComponent = /** @class */ (function () {
2784
- function CatalogFilterComponent(catalogSearchService, filterService, iconCache, optionsService, changeDetector) {
2785
- this.catalogSearchService = catalogSearchService;
2786
- this.filterService = filterService;
3044
+ function CatalogFilterComponent(iconCache, optionsService, changeDetector) {
2787
3045
  this.iconCache = iconCache;
2788
3046
  this.optionsService = optionsService;
2789
3047
  this.changeDetector = changeDetector;
2790
3048
  this.icons = IconEnum;
2791
3049
  this.showResetFilter = true;
3050
+ this.filterCategories = [
3051
+ 'Algemeen',
3052
+ 'Inkoop',
3053
+ 'Logistiek'
3054
+ ];
2792
3055
  this.collapsed = false;
2793
3056
  this._subs = [];
2794
- this._min = 0;
2795
- this._max = 100000;
2796
3057
  // this._subs = [
2797
3058
  // this.catalog.onPrepareFilters.subscribe(() => {
2798
3059
  // this.setupFilters();
@@ -2809,59 +3070,26 @@
2809
3070
  if (window.innerWidth <= 950) {
2810
3071
  this.collapsed = true;
2811
3072
  }
2812
- this.initializePriceFilterMinMax();
3073
+ //this.initializePriceFilterMinMax();
2813
3074
  this.detectChanges();
2814
3075
  };
3076
+ CatalogFilterComponent.prototype.handleCategoryClick = function (cat) {
3077
+ if (cat === 'Algemeen') {
3078
+ this.filterItems.nativeElement.scrollLeft = this.generalFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
3079
+ }
3080
+ else if (cat === 'Inkoop') {
3081
+ this.filterItems.nativeElement.scrollLeft = this.purchaseFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
3082
+ }
3083
+ else {
3084
+ this.filterItems.nativeElement.scrollLeft = this.logisticsFilter.nativeElement.offsetLeft - this.filterItems.nativeElement.offsetLeft;
3085
+ }
3086
+ };
2815
3087
  CatalogFilterComponent.prototype.ngOnDestroy = function () {
2816
3088
  this._destroyed = true;
2817
3089
  this._subs.forEach(function (x) {
2818
3090
  x.unsubscribe();
2819
3091
  });
2820
3092
  };
2821
- CatalogFilterComponent.prototype.initializePriceFilterMinMax = function () {
2822
- this._min = this.filterService.priceMinFilter;
2823
- this._max = this.filterService.priceMaxFilter;
2824
- };
2825
- CatalogFilterComponent.prototype.resetFilters = function (event) {
2826
- this.catalogSearchService.resetFilters();
2827
- };
2828
- CatalogFilterComponent.prototype.onHandleClick = function (event) {
2829
- this.collapsed = !this.collapsed;
2830
- };
2831
- CatalogFilterComponent.prototype.updatePriceInputs = function (range) {
2832
- this.filterService.priceMinFilter = range.lowerBound;
2833
- this.filterService.priceMaxFilter = range.upperBound;
2834
- };
2835
- CatalogFilterComponent.prototype.updateSliderRange = function () {
2836
- if (this.priceSlider) {
2837
- this.priceSlider.setLowerBound(this.filterService.priceMinFilter, false);
2838
- this.priceSlider.setUpperBound(this.filterService.priceMaxFilter, false);
2839
- }
2840
- };
2841
- CatalogFilterComponent.prototype.updatePriceFrom = function () {
2842
- this.updateSliderRange();
2843
- };
2844
- CatalogFilterComponent.prototype.updatePriceTo = function () {
2845
- this.updateSliderRange();
2846
- };
2847
- CatalogFilterComponent.prototype.setPriceMinToDefault = function () {
2848
- this.filterService.priceMinFilter = this._min;
2849
- };
2850
- CatalogFilterComponent.prototype.setPriceMaxToDefault = function () {
2851
- this.filterService.priceMaxFilter = this._max;
2852
- };
2853
- CatalogFilterComponent.prototype.filterOnPrice = function () {
2854
- this.filterService.priceMinFilter = !!this.filterService.priceMinFilter ? this.filterService.priceMinFilter : this._min;
2855
- this.filterService.priceMaxFilter = !!this.filterService.priceMaxFilter ? this.filterService.priceMaxFilter : this._max;
2856
- // some user error protection
2857
- var trueLowerBound = Math.min(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
2858
- var trueUpperBound = Math.max(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
2859
- this.catalogSearchService.searchRequest.rangePrice = trueLowerBound + " - " + trueUpperBound;
2860
- this.catalogSearchService.searchArticles();
2861
- };
2862
- CatalogFilterComponent.prototype.handleCollectionChange = function (collection) {
2863
- this.catalogSearchService.filterOnCollection(collection);
2864
- };
2865
3093
  CatalogFilterComponent.prototype.detectChanges = function () {
2866
3094
  if (!this._destroyed) {
2867
3095
  this.changeDetector.detectChanges();
@@ -2872,7 +3100,7 @@
2872
3100
  CatalogFilterComponent.decorators = [
2873
3101
  { type: i0.Component, args: [{
2874
3102
  selector: 'co-catalog-filter',
2875
- template: "\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 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 (modelChange)=\"updatePriceFrom()\"\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 (modelChange)=\"updatePriceTo()\"\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]=\"'MODIFIED_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 <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($event)\"\n ></co-filter-item>\n </div>\n </div>\n </div>\n ",
3103
+ 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 ",
2876
3104
  animations: [
2877
3105
  animations.trigger('showFilterItem', [
2878
3106
  animations.state('closed', animations.style({ height: '80px' })),
@@ -2884,19 +3112,59 @@
2884
3112
  },] }
2885
3113
  ];
2886
3114
  CatalogFilterComponent.ctorParameters = function () { return [
2887
- { type: CatalogSearchService },
2888
- { type: CatalogFilterService },
2889
3115
  { type: IconCacheService },
2890
3116
  { type: CatalogOptionsService },
2891
3117
  { type: i0.ChangeDetectorRef }
2892
3118
  ]; };
2893
3119
  CatalogFilterComponent.propDecorators = {
2894
- priceSlider: [{ type: i0.ViewChild, args: [corecomponents.SliderComponent, { static: true },] }],
3120
+ filterItems: [{ type: i0.ViewChild, args: ['filterItems', { read: i0.ElementRef },] }],
3121
+ generalFilter: [{ type: i0.ViewChild, args: ['generalFilter', { read: i0.ElementRef },] }],
3122
+ purchaseFilter: [{ type: i0.ViewChild, args: ['purchaseFilter', { read: i0.ElementRef },] }],
3123
+ logisticsFilter: [{ type: i0.ViewChild, args: ['logisticsFilter', { read: i0.ElementRef },] }],
2895
3124
  showResetFilter: [{ type: i0.Input }],
2896
3125
  showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
2897
3126
  collapsed: [{ type: i0.HostBinding, args: ['class.collapsed',] }]
2898
3127
  };
2899
3128
 
3129
+ var CatalogFilterCategoriesComponent = /** @class */ (function () {
3130
+ function CatalogFilterCategoriesComponent() {
3131
+ this.categoryClick = new i0.EventEmitter();
3132
+ this._categories = [];
3133
+ }
3134
+ Object.defineProperty(CatalogFilterCategoriesComponent.prototype, "categories", {
3135
+ get: function () {
3136
+ return this._categories;
3137
+ },
3138
+ set: function (value) {
3139
+ if (value && value.length > 0) {
3140
+ this._categories = value;
3141
+ this.activeCategory = this._categories[0];
3142
+ }
3143
+ },
3144
+ enumerable: false,
3145
+ configurable: true
3146
+ });
3147
+ CatalogFilterCategoriesComponent.prototype.showClass = function () {
3148
+ return true;
3149
+ };
3150
+ CatalogFilterCategoriesComponent.prototype.handleCategoryClick = function (category) {
3151
+ this.activeCategory = category;
3152
+ this.categoryClick.emit(category);
3153
+ };
3154
+ return CatalogFilterCategoriesComponent;
3155
+ }());
3156
+ CatalogFilterCategoriesComponent.decorators = [
3157
+ { type: i0.Component, args: [{
3158
+ selector: 'co-catalog-filter-categories',
3159
+ template: "\n <div class=\"catalog-filter-categories-wrapper\">\n <div class=\"catalog-filter-category\" *ngFor=\"let category of categories\" [class.active]=\"category === activeCategory\"\n [textContent]=\"category\"\n (click)=\"handleCategoryClick(category)\"\n ></div>\n </div>\n "
3160
+ },] }
3161
+ ];
3162
+ CatalogFilterCategoriesComponent.propDecorators = {
3163
+ categories: [{ type: i0.Input }],
3164
+ categoryClick: [{ type: i0.Output }],
3165
+ showClass: [{ type: i0.HostBinding, args: ["class.co-catalog-filter-categories",] }]
3166
+ };
3167
+
2900
3168
  // A pipe for localizing string values in view templates.
2901
3169
  var LocalizePipe = /** @class */ (function () {
2902
3170
  function LocalizePipe(_dictionaryService) {
@@ -2926,6 +3194,387 @@
2926
3194
  { type: DictionaryService }
2927
3195
  ]; };
2928
3196
 
3197
+ var PipeModule = /** @class */ (function () {
3198
+ function PipeModule() {
3199
+ }
3200
+ return PipeModule;
3201
+ }());
3202
+ PipeModule.decorators = [
3203
+ { type: i0.NgModule, args: [{
3204
+ imports: [
3205
+ common.CommonModule
3206
+ ],
3207
+ declarations: [
3208
+ LocalizePipe
3209
+ ],
3210
+ exports: [
3211
+ LocalizePipe
3212
+ ]
3213
+ },] }
3214
+ ];
3215
+
3216
+ var CatalogFilterCategoriesModule = /** @class */ (function () {
3217
+ function CatalogFilterCategoriesModule() {
3218
+ }
3219
+ return CatalogFilterCategoriesModule;
3220
+ }());
3221
+ CatalogFilterCategoriesModule.decorators = [
3222
+ { type: i0.NgModule, args: [{
3223
+ imports: [
3224
+ common.CommonModule,
3225
+ PipeModule
3226
+ ],
3227
+ declarations: [
3228
+ CatalogFilterCategoriesComponent
3229
+ ],
3230
+ exports: [
3231
+ CatalogFilterCategoriesComponent
3232
+ ]
3233
+ },] }
3234
+ ];
3235
+
3236
+ var CatalogFilterContentGeneralComponent = /** @class */ (function () {
3237
+ function CatalogFilterContentGeneralComponent(catalogSearchService, filterService, iconCache, _catalogConnectorService) {
3238
+ var _this = this;
3239
+ this.catalogSearchService = catalogSearchService;
3240
+ this.filterService = filterService;
3241
+ this.iconCache = iconCache;
3242
+ this._catalogConnectorService = _catalogConnectorService;
3243
+ this.icons = IconEnum;
3244
+ this._min = 0;
3245
+ this._max = 100000;
3246
+ this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
3247
+ this.getRetail = function (barcodeFilter) { return __awaiter(_this, void 0, void 0, function () {
3248
+ var request;
3249
+ return __generator(this, function (_a) {
3250
+ request = new articleExtendedRequest.ArticleExtendedRequest();
3251
+ request.barcode = barcodeFilter;
3252
+ return [2 /*return*/, this._catalogConnectorService.getArticlesForCatalog(request).then(function (articleResult) {
3253
+ return new corecomponents_v12.FilterViewmodel(articleResult.articles, { text: 'barcode', value: 'barcode' }).filterItems;
3254
+ })];
3255
+ });
3256
+ }); };
3257
+ }
3258
+ CatalogFilterContentGeneralComponent.prototype.showClass = function () {
3259
+ return true;
3260
+ };
3261
+ CatalogFilterContentGeneralComponent.prototype.ngOnInit = function () {
3262
+ this._setStoreGroups();
3263
+ this._setInOutCollection();
3264
+ this._setArticleTypes();
3265
+ this._setPublicationCodes();
3266
+ this._setPublicationCodesSales();
3267
+ this._setPriceList();
3268
+ this._setCategories();
3269
+ };
3270
+ CatalogFilterContentGeneralComponent.prototype._setStoreGroups = function () {
3271
+ var _this = this;
3272
+ this._catalogConnectorService.getStoreGroups().then(function (storeGroups) {
3273
+ _this.storeGroupCollection = _this.filterService.createFilterSelectionsCollection(storeGroups, "storeGroupId", "description");
3274
+ });
3275
+ };
3276
+ CatalogFilterContentGeneralComponent.prototype._setInOutCollection = function () {
3277
+ var _this = this;
3278
+ this._catalogConnectorService.getDomainCollection(domainName_enum.DomainName.InOutCollection).then(function (inOutCollections) {
3279
+ _this.inOutCollectionCollection = _this.filterService.createFilterSelectionsCollection(inOutCollections, "code", "description");
3280
+ });
3281
+ };
3282
+ CatalogFilterContentGeneralComponent.prototype._setArticleTypes = function () {
3283
+ var _this = this;
3284
+ this._catalogConnectorService.getDomainCollection(domainName_enum.DomainName.ArticleType).then(function (articleTypes) {
3285
+ _this.articleTypeCollection = _this.filterService.createFilterSelectionsCollection(articleTypes, "code", "description");
3286
+ });
3287
+ };
3288
+ CatalogFilterContentGeneralComponent.prototype._setCategories = function () {
3289
+ var _this = this;
3290
+ this._catalogConnectorService.getCategories().then(function (categories) {
3291
+ _this.categoryCollection = _this.filterService.createFilterSelectionsCollection(categories, "categoryCode", "description");
3292
+ });
3293
+ };
3294
+ CatalogFilterContentGeneralComponent.prototype._setPublicationCodes = function () {
3295
+ var _this = this;
3296
+ this._catalogConnectorService.getRVDomainCollection(domainName_enum.DomainName.ArtPublication).then(function (publicationCodes) {
3297
+ _this.artPublicationCollection = _this.filterService.createFilterSelectionsCollection(publicationCodes, "code", "description");
3298
+ });
3299
+ };
3300
+ CatalogFilterContentGeneralComponent.prototype._setPublicationCodesSales = function () {
3301
+ var _this = this;
3302
+ this._catalogConnectorService.getRVDomainCollection(domainName_enum.DomainName.ArtPublicationSales).then(function (publicationCodes) {
3303
+ _this.artPublicationSalesCollection = _this.filterService.createFilterSelectionsCollection(publicationCodes, "code", "description");
3304
+ ;
3305
+ });
3306
+ };
3307
+ CatalogFilterContentGeneralComponent.prototype._setPriceList = function () {
3308
+ var _this = this;
3309
+ var tempPriceListsSalesCollection = [];
3310
+ this._catalogConnectorService.getPriceLists().then(function (priceLists) {
3311
+ priceLists.forEach(function (list) {
3312
+ if (list.type.indexOf("I") != -1) {
3313
+ tempPriceListsSalesCollection.push(list);
3314
+ }
3315
+ });
3316
+ _this.priceListsSalesCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
3317
+ });
3318
+ };
3319
+ CatalogFilterContentGeneralComponent.prototype.filterOnPrice = function () {
3320
+ this.filterService.priceMinFilter = !!this.filterService.priceMinFilter ? this.filterService.priceMinFilter : this._min;
3321
+ this.filterService.priceMaxFilter = !!this.filterService.priceMaxFilter ? this.filterService.priceMaxFilter : this._max;
3322
+ // some user error protection
3323
+ var trueLowerBound = Math.min(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
3324
+ var trueUpperBound = Math.max(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
3325
+ this.catalogSearchService.searchRequest.rangePrice = trueLowerBound + " - " + trueUpperBound;
3326
+ this.catalogSearchService.searchArticles();
3327
+ };
3328
+ CatalogFilterContentGeneralComponent.prototype.updateLengthFilter = function () {
3329
+ this.filterService.lengthMinFilter = !!this.filterService.lengthMinFilter ? this.filterService.lengthMinFilter : this._min;
3330
+ this.filterService.lengthMaxFilter = !!this.filterService.lengthMaxFilter ? this.filterService.lengthMaxFilter : this._max;
3331
+ this.catalogSearchService.searchRequest.length = this.getFromToFilter(this.filterService.lengthMinFilter, this.filterService.lengthMaxFilter);
3332
+ };
3333
+ CatalogFilterContentGeneralComponent.prototype.updateWidthFilter = function () {
3334
+ this.filterService.widthMinFilter = !!this.filterService.widthMinFilter ? this.filterService.widthMinFilter : this._min;
3335
+ this.filterService.widthMaxFilter = !!this.filterService.widthMaxFilter ? this.filterService.widthMaxFilter : this._max;
3336
+ this.catalogSearchService.searchRequest.width = this.getFromToFilter(this.filterService.widthMinFilter, this.filterService.widthMaxFilter);
3337
+ };
3338
+ CatalogFilterContentGeneralComponent.prototype.updateHeightFilter = function () {
3339
+ this.filterService.heightMinFilter = !!this.filterService.heightMinFilter ? this.filterService.heightMinFilter : this._min;
3340
+ this.filterService.heightMaxFilter = !!this.filterService.heightMaxFilter ? this.filterService.heightMaxFilter : this._max;
3341
+ this.catalogSearchService.searchRequest.height = this.getFromToFilter(this.filterService.heightMinFilter, this.filterService.heightMaxFilter);
3342
+ };
3343
+ CatalogFilterContentGeneralComponent.prototype.updateDepthFilter = function () {
3344
+ this.filterService.depthMinFilter = !!this.filterService.depthMinFilter ? this.filterService.depthMinFilter : this._min;
3345
+ this.filterService.depthMaxFilter = !!this.filterService.depthMaxFilter ? this.filterService.depthMaxFilter : this._max;
3346
+ this.catalogSearchService.searchRequest.depth = this.getFromToFilter(this.filterService.depthMinFilter, this.filterService.depthMaxFilter);
3347
+ };
3348
+ CatalogFilterContentGeneralComponent.prototype.getFromToFilter = function (min, max) {
3349
+ // some user error protection
3350
+ var trueLowerBound = Math.min(min, max);
3351
+ var trueUpperBound = Math.max(min, max);
3352
+ return trueLowerBound + " - " + trueUpperBound;
3353
+ };
3354
+ CatalogFilterContentGeneralComponent.prototype.handleCollectionChange = function (filterName, collection) {
3355
+ this.catalogSearchService.filterOnCollection(filterName, collection);
3356
+ };
3357
+ CatalogFilterContentGeneralComponent.prototype.handleSeparateCollectionChange = function (filterName, collection) {
3358
+ this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
3359
+ };
3360
+ CatalogFilterContentGeneralComponent.prototype.handleArticleTypeChange = function (filterName, collection) {
3361
+ this.catalogSearchService.searchRequest.articleKindList = this.catalogSearchService.createFilterStringCollection(collection);
3362
+ };
3363
+ CatalogFilterContentGeneralComponent.prototype.handleSingleSelectChange = function (filterName, collection) {
3364
+ this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
3365
+ };
3366
+ CatalogFilterContentGeneralComponent.prototype.handleNumberListChange = function (filterName, collection) {
3367
+ this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterNumber(collection);
3368
+ };
3369
+ CatalogFilterContentGeneralComponent.prototype.handleCollectionChangeForSingleSelect = function (collection, modelName) {
3370
+ this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForSingleSelect(collection);
3371
+ this.catalogSearchService.searchArticles();
3372
+ };
3373
+ CatalogFilterContentGeneralComponent.prototype._getFilterRequestForSingleSelect = function (collection) {
3374
+ var filterRequest = '';
3375
+ var selectedItem = collection === null || collection === void 0 ? void 0 : collection.find(function (item) { return item.checked; });
3376
+ filterRequest = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.code.toString();
3377
+ return filterRequest;
3378
+ };
3379
+ return CatalogFilterContentGeneralComponent;
3380
+ }());
3381
+ CatalogFilterContentGeneralComponent.decorators = [
3382
+ { type: i0.Component, args: [{
3383
+ selector: 'co-catalog-filter-content-general',
3384
+ 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 [singleSelect]=\"true\"\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 [singleSelect]=\"true\"\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 "
3385
+ },] }
3386
+ ];
3387
+ CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
3388
+ { type: CatalogSearchService },
3389
+ { type: CatalogFilterService },
3390
+ { type: IconCacheService },
3391
+ { type: CatalogConnectorService }
3392
+ ]; };
3393
+ CatalogFilterContentGeneralComponent.propDecorators = {
3394
+ showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
3395
+ };
3396
+
3397
+ var CatalogFilterContentGeneralModule = /** @class */ (function () {
3398
+ function CatalogFilterContentGeneralModule() {
3399
+ }
3400
+ return CatalogFilterContentGeneralModule;
3401
+ }());
3402
+ CatalogFilterContentGeneralModule.decorators = [
3403
+ { type: i0.NgModule, args: [{
3404
+ imports: [
3405
+ common.CommonModule,
3406
+ corecomponents_v12.FilterItemModule,
3407
+ corecomponents_v12.InputTextModule,
3408
+ corecomponents_v12.ButtonModule,
3409
+ corecomponents_v12.IconModule,
3410
+ PipeModule
3411
+ ],
3412
+ declarations: [
3413
+ CatalogFilterContentGeneralComponent
3414
+ ],
3415
+ exports: [
3416
+ CatalogFilterContentGeneralComponent
3417
+ ]
3418
+ },] }
3419
+ ];
3420
+
3421
+ var CatalogFilterContentPurchaseComponent = /** @class */ (function () {
3422
+ function CatalogFilterContentPurchaseComponent(catalogSearchService, iconCache, _catalogConnectorService, filterService) {
3423
+ this.catalogSearchService = catalogSearchService;
3424
+ this.iconCache = iconCache;
3425
+ this._catalogConnectorService = _catalogConnectorService;
3426
+ this.filterService = filterService;
3427
+ this.icons = IconEnum;
3428
+ }
3429
+ CatalogFilterContentPurchaseComponent.prototype.showClass = function () {
3430
+ return true;
3431
+ };
3432
+ CatalogFilterContentPurchaseComponent.prototype.ngOnInit = function () {
3433
+ this._setSuppliers();
3434
+ this._setPriceList();
3435
+ };
3436
+ CatalogFilterContentPurchaseComponent.prototype._setSuppliers = function () {
3437
+ var _this = this;
3438
+ this._catalogConnectorService.getSuppliers().then(function (suppliers) {
3439
+ _this.suppliers = _this.filterService.createFilterSelectionsCollection(suppliers, 'relationNr', 'familyName');
3440
+ });
3441
+ };
3442
+ CatalogFilterContentPurchaseComponent.prototype._setPriceList = function () {
3443
+ var _this = this;
3444
+ var tempPriceListsPurchCollection = [];
3445
+ this._catalogConnectorService.getPriceLists().then(function (priceLists) {
3446
+ priceLists.forEach(function (list) {
3447
+ if (list.type.indexOf("I") > -1) {
3448
+ tempPriceListsPurchCollection.push(list);
3449
+ }
3450
+ });
3451
+ _this.priceListsPurchCollection = _this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
3452
+ });
3453
+ };
3454
+ CatalogFilterContentPurchaseComponent.prototype.handleSeparateCollectionChange = function (filterName, collection) {
3455
+ this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
3456
+ };
3457
+ CatalogFilterContentPurchaseComponent.prototype.handleSingleSelectChange = function (filterName, collection) {
3458
+ this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
3459
+ };
3460
+ return CatalogFilterContentPurchaseComponent;
3461
+ }());
3462
+ CatalogFilterContentPurchaseComponent.decorators = [
3463
+ { type: i0.Component, args: [{
3464
+ selector: 'co-catalog-filter-content-purchase',
3465
+ 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 [singleSelect]=\"true\"\n (collectionChange)=\"handleSingleSelectChange('pricelistPurchase', $event)\"\n >\n </co-filter-item>\n </div>\n </div>\n </div>\n </div> \n </div>\n "
3466
+ },] }
3467
+ ];
3468
+ CatalogFilterContentPurchaseComponent.ctorParameters = function () { return [
3469
+ { type: CatalogSearchService },
3470
+ { type: IconCacheService },
3471
+ { type: CatalogConnectorService },
3472
+ { type: CatalogFilterService }
3473
+ ]; };
3474
+ CatalogFilterContentPurchaseComponent.propDecorators = {
3475
+ showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
3476
+ priceSlider: [{ type: i0.ViewChild, args: [corecomponents.SliderComponent, { static: true },] }]
3477
+ };
3478
+
3479
+ var CatalogFilterContentPurchaseModule = /** @class */ (function () {
3480
+ function CatalogFilterContentPurchaseModule() {
3481
+ }
3482
+ return CatalogFilterContentPurchaseModule;
3483
+ }());
3484
+ CatalogFilterContentPurchaseModule.decorators = [
3485
+ { type: i0.NgModule, args: [{
3486
+ imports: [
3487
+ common.CommonModule,
3488
+ corecomponents_v12.FilterItemModule,
3489
+ corecomponents_v12.InputTextModule,
3490
+ corecomponents_v12.ButtonModule,
3491
+ corecomponents.InputCheckboxModule,
3492
+ PipeModule
3493
+ ],
3494
+ declarations: [
3495
+ CatalogFilterContentPurchaseComponent
3496
+ ],
3497
+ exports: [
3498
+ CatalogFilterContentPurchaseComponent
3499
+ ]
3500
+ },] }
3501
+ ];
3502
+
3503
+ var CatalogFilterContentLogisticsComponent = /** @class */ (function () {
3504
+ function CatalogFilterContentLogisticsComponent(catalogSearchService, iconCache) {
3505
+ this.catalogSearchService = catalogSearchService;
3506
+ this.iconCache = iconCache;
3507
+ this.icons = IconEnum;
3508
+ }
3509
+ CatalogFilterContentLogisticsComponent.prototype.showClass = function () {
3510
+ return true;
3511
+ };
3512
+ CatalogFilterContentLogisticsComponent.prototype.ngOnInit = function () {
3513
+ };
3514
+ CatalogFilterContentLogisticsComponent.prototype.handleAllChanged = function (value) {
3515
+ this.catalogSearchService.searchRequest["doSync"] = value ? 'J' : 'N';
3516
+ this.catalogSearchService.searchRequest["showRegularArticles"] = value;
3517
+ this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
3518
+ this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
3519
+ this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
3520
+ this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
3521
+ this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
3522
+ };
3523
+ CatalogFilterContentLogisticsComponent.prototype.handleCheckboxValueChangeForString = function (value, modelName) {
3524
+ this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
3525
+ };
3526
+ CatalogFilterContentLogisticsComponent.prototype._getFilterRequestForBooleanToString = function (value) {
3527
+ var filterRequest = '';
3528
+ if (value) {
3529
+ filterRequest = "?='J'";
3530
+ }
3531
+ else {
3532
+ filterRequest = "?='N'";
3533
+ }
3534
+ return filterRequest;
3535
+ };
3536
+ return CatalogFilterContentLogisticsComponent;
3537
+ }());
3538
+ CatalogFilterContentLogisticsComponent.decorators = [
3539
+ { type: i0.Component, args: [{
3540
+ selector: 'co-catalog-filter-content-logistics',
3541
+ 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 "
3542
+ },] }
3543
+ ];
3544
+ CatalogFilterContentLogisticsComponent.ctorParameters = function () { return [
3545
+ { type: CatalogSearchService },
3546
+ { type: IconCacheService }
3547
+ ]; };
3548
+ CatalogFilterContentLogisticsComponent.propDecorators = {
3549
+ showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }],
3550
+ priceSlider: [{ type: i0.ViewChild, args: [corecomponents.SliderComponent, { static: true },] }]
3551
+ };
3552
+
3553
+ var CatalogFilterContentLogisticsModule = /** @class */ (function () {
3554
+ function CatalogFilterContentLogisticsModule() {
3555
+ }
3556
+ return CatalogFilterContentLogisticsModule;
3557
+ }());
3558
+ CatalogFilterContentLogisticsModule.decorators = [
3559
+ { type: i0.NgModule, args: [{
3560
+ imports: [
3561
+ common.CommonModule,
3562
+ corecomponents_v12.FilterItemModule,
3563
+ corecomponents_v12.InputTextModule,
3564
+ corecomponents_v12.ButtonModule,
3565
+ corecomponents.InputCheckboxModule,
3566
+ corecomponents_v12.InputDatePickerModule,
3567
+ PipeModule
3568
+ ],
3569
+ declarations: [
3570
+ CatalogFilterContentLogisticsComponent
3571
+ ],
3572
+ exports: [
3573
+ CatalogFilterContentLogisticsComponent
3574
+ ]
3575
+ },] }
3576
+ ];
3577
+
2929
3578
  var CatalogFilterModule = /** @class */ (function () {
2930
3579
  function CatalogFilterModule() {
2931
3580
  }
@@ -2939,15 +3588,19 @@
2939
3588
  corecomponents_v12.InputTextModule,
2940
3589
  corecomponents_v12.FilterItemModule,
2941
3590
  corecomponents_v12.InputDatePickerModule,
2942
- corecomponents_v12.IconCollapseHandleModule
3591
+ corecomponents_v12.IconCollapseHandleModule,
3592
+ corecomponents.InputCheckboxModule,
3593
+ CatalogFilterCategoriesModule,
3594
+ CatalogFilterContentGeneralModule,
3595
+ CatalogFilterContentPurchaseModule,
3596
+ CatalogFilterContentLogisticsModule,
3597
+ PipeModule
2943
3598
  ],
2944
3599
  declarations: [
2945
- CatalogFilterComponent,
2946
- LocalizePipe
3600
+ CatalogFilterComponent
2947
3601
  ],
2948
3602
  exports: [
2949
- CatalogFilterComponent,
2950
- LocalizePipe
3603
+ CatalogFilterComponent
2951
3604
  ]
2952
3605
  },] }
2953
3606
  ];
@@ -3003,7 +3656,8 @@
3003
3656
  corecomponents_v12.ImageModule,
3004
3657
  corecomponents_v12.IconModule,
3005
3658
  CatalogFilterModule,
3006
- ResponsiveTextModule
3659
+ ResponsiveTextModule,
3660
+ PipeModule
3007
3661
  ],
3008
3662
  declarations: [
3009
3663
  CatalogCategoriesComponent
@@ -3703,7 +4357,8 @@
3703
4357
  CatalogFilterModule,
3704
4358
  corecomponents.PriceDisplayPipeModule,
3705
4359
  corecomponents.ButtonModule,
3706
- corecomponents_v12.ImageModule
4360
+ corecomponents_v12.ImageModule,
4361
+ PipeModule
3707
4362
  ],
3708
4363
  declarations: [
3709
4364
  CatalogArticleTileComponent
@@ -3860,7 +4515,8 @@
3860
4515
  CatalogArticleTileModule,
3861
4516
  VisibilityObserverModule,
3862
4517
  corecomponents_v12.PaginationBarModule,
3863
- CatalogFilterModule
4518
+ CatalogFilterModule,
4519
+ PipeModule
3864
4520
  ],
3865
4521
  declarations: [
3866
4522
  CatalogSearchResultTileComponent
@@ -3926,7 +4582,8 @@
3926
4582
  corecomponents.IconModule,
3927
4583
  CatalogFilterModule,
3928
4584
  corecomponents.PriceDisplayPipeModule,
3929
- corecomponents.ButtonModule
4585
+ corecomponents.ButtonModule,
4586
+ PipeModule
3930
4587
  ],
3931
4588
  declarations: [
3932
4589
  CatalogArticleListComponent
@@ -3949,7 +4606,8 @@
3949
4606
  VisibilityObserverModule,
3950
4607
  CatalogArticleListModule,
3951
4608
  corecomponents_v12.PaginationBarModule,
3952
- CatalogFilterModule
4609
+ CatalogFilterModule,
4610
+ PipeModule
3953
4611
  ],
3954
4612
  declarations: [
3955
4613
  CatalogSearchResultListComponent
@@ -4077,39 +4735,48 @@
4077
4735
  exports.CatalogSearchService = CatalogSearchService;
4078
4736
  exports.CatalogService = CatalogService;
4079
4737
  exports.Version = Version;
4080
- exports["ɵa"] = CatalogFilterComponent;
4081
- exports["ɵb"] = CatalogFilterService;
4082
- exports["ɵba"] = VisibilityObserverDirective;
4083
- exports["ɵbb"] = CatalogSearchResultTileComponent;
4084
- exports["ɵbc"] = CatalogSearchBaseComponent;
4085
- exports["ɵbd"] = CatalogArticleListComponent;
4086
- exports["ɵbe"] = CatalogSearchResultListComponent;
4087
- exports["ɵbf"] = CatalogSearchComponent;
4088
- exports["ɵbg"] = CatalogExternalSourceComponent;
4089
- exports["ɵc"] = CatalogConnectorService;
4090
- exports["ɵd"] = CatalogConnectorAdapterService;
4091
- exports["ɵe"] = SelectSingleCacheService;
4092
- exports["ɵf"] = BusinessObjectCacheManagerService;
4093
- exports["ɵg"] = SelectMultipleCacheService;
4094
- exports["ɵh"] = CacheField;
4095
- exports["ɵi"] = SelectMultipleParameterizedCacheService;
4096
- exports["ɵj"] = SelectSingleParameterizedCacheService;
4097
- exports["ɵk"] = CatalogSettingsService;
4098
- exports["ɵl"] = DictionaryService;
4099
- exports["ɵm"] = CatalogOptionsService;
4100
- exports["ɵn"] = IconCacheService;
4101
- exports["ɵo"] = LocalizePipe;
4102
- exports["ɵp"] = ResponsiveTextModule;
4103
- exports["ɵq"] = ResponsiveTextComponent;
4104
- exports["ɵr"] = CatalogCategoriesComponent;
4105
- exports["ɵs"] = CatalogImageService;
4106
- exports["ɵt"] = CatalogExternalSourcesComponent;
4107
- exports["ɵu"] = CatalogNavigationComponent;
4108
- exports["ɵv"] = CatalogSearchHeaderComponent;
4109
- exports["ɵw"] = CatalogArticleTileComponent;
4110
- exports["ɵx"] = ArticleBaseComponent;
4111
- exports["ɵy"] = VisibilityObserverModule;
4112
- exports["ɵz"] = VisibilityObserverMasterDirective;
4738
+ exports["ɵa"] = CatalogFilterCategoriesModule;
4739
+ exports["ɵb"] = PipeModule;
4740
+ exports["ɵba"] = CatalogCategoriesComponent;
4741
+ exports["ɵbb"] = CatalogImageService;
4742
+ exports["ɵbc"] = CatalogExternalSourcesComponent;
4743
+ exports["ɵbd"] = CatalogNavigationComponent;
4744
+ exports["ɵbe"] = CatalogSearchHeaderComponent;
4745
+ exports["ɵbf"] = CatalogArticleTileComponent;
4746
+ exports["ɵbg"] = ArticleBaseComponent;
4747
+ exports["ɵbh"] = VisibilityObserverModule;
4748
+ exports["ɵbi"] = VisibilityObserverMasterDirective;
4749
+ exports["ɵbj"] = VisibilityObserverDirective;
4750
+ exports["ɵbk"] = CatalogSearchResultTileComponent;
4751
+ exports["ɵbl"] = CatalogSearchBaseComponent;
4752
+ exports["ɵbm"] = CatalogArticleListComponent;
4753
+ exports["ɵbn"] = CatalogSearchResultListComponent;
4754
+ exports["ɵbo"] = CatalogSearchComponent;
4755
+ exports["ɵbp"] = CatalogExternalSourceComponent;
4756
+ exports["ɵc"] = LocalizePipe;
4757
+ exports["ɵd"] = DictionaryService;
4758
+ exports["ɵe"] = CatalogFilterCategoriesComponent;
4759
+ exports["ɵf"] = CatalogFilterContentGeneralModule;
4760
+ exports["ɵg"] = CatalogFilterContentGeneralComponent;
4761
+ exports["ɵh"] = CatalogFilterService;
4762
+ exports["ɵi"] = CatalogConnectorService;
4763
+ exports["ɵj"] = CatalogConnectorAdapterService;
4764
+ exports["ɵk"] = SelectSingleCacheService;
4765
+ exports["ɵl"] = BusinessObjectCacheManagerService;
4766
+ exports["ɵm"] = SelectMultipleCacheService;
4767
+ exports["ɵn"] = CacheField;
4768
+ exports["ɵo"] = SelectMultipleParameterizedCacheService;
4769
+ exports["ɵp"] = SelectSingleParameterizedCacheService;
4770
+ exports["ɵq"] = CatalogSettingsService;
4771
+ exports["ɵr"] = CatalogOptionsService;
4772
+ exports["ɵs"] = IconCacheService;
4773
+ exports["ɵt"] = CatalogFilterContentPurchaseModule;
4774
+ exports["ɵu"] = CatalogFilterContentPurchaseComponent;
4775
+ exports["ɵv"] = CatalogFilterContentLogisticsModule;
4776
+ exports["ɵw"] = CatalogFilterContentLogisticsComponent;
4777
+ exports["ɵx"] = CatalogFilterComponent;
4778
+ exports["ɵy"] = ResponsiveTextModule;
4779
+ exports["ɵz"] = ResponsiveTextComponent;
4113
4780
 
4114
4781
  Object.defineProperty(exports, '__esModule', { value: true });
4115
4782