@colijnit/catalog 12.1.36 → 12.1.37

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 (24) hide show
  1. package/bundles/colijnit-catalog.umd.js +166 -180
  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 +60 -18
  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/service/catalog-connector-adapter.service.js +60 -3
  11. package/esm2015/lib/service/catalog-connector.service.js +26 -1
  12. package/esm2015/lib/service/catalog-filter.service.js +1 -1
  13. package/esm2015/lib/service/catalog-search.service.js +1 -68
  14. package/fesm2015/colijnit-catalog.js +255 -400
  15. package/fesm2015/colijnit-catalog.js.map +1 -1
  16. package/lib/component/catalog-filter/catalog-filter.component.d.ts +11 -1
  17. package/lib/component/catalog-filter/style/_layout.scss +29 -0
  18. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +9 -22
  19. package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +2 -2
  20. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -6
  21. package/lib/service/catalog-connector-adapter.service.d.ts +9 -2
  22. package/lib/service/catalog-connector.service.d.ts +8 -0
  23. package/lib/service/catalog-search.service.d.ts +0 -9
  24. package/package.json +1 -1
@@ -23,26 +23,29 @@ import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enu
23
23
  import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
24
24
  import { Category } from '@colijnit/mainapi/build/model/category.bo';
25
25
  import { BusinessObjectFactory } from '@colijnit/ioneconnector/build/service/business-object-factory';
26
+ import { Preset } from '@colijnit/mainapi/build/model/preset.bo';
27
+ import { UserGroup } from '@colijnit/mainapi/build/model/user-group.bo';
26
28
  import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
27
29
  import { Transaction } from '@colijnit/transactionapi/build/transaction';
28
30
  import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
29
31
  import { FileUtils } from '@colijnit/ioneconnector/build/utils/file-utils';
30
- import { FilterViewmodel, FilterItemViewmodel, FilterItemMode, FilterItemModule, InputTextModule, ButtonModule, IconModule, InputDatePickerModule, IconCollapseHandleModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
32
+ import { FilterViewmodel, FilterItemViewmodel, FilterItemModule, InputTextModule, ButtonModule, IconModule, FilterItemMode as FilterItemMode$1, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule } from '@colijnit/corecomponents_v12';
31
33
  import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
32
34
  import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
33
35
  import { trigger, state, style, transition, animate } from '@angular/animations';
34
36
  import * as i1 from '@angular/platform-browser';
35
37
  import { DomSanitizer } from '@angular/platform-browser';
36
- import { SliderComponent, InputCheckboxModule, IconModule as IconModule$1, PriceDisplayPipeModule, ButtonModule as ButtonModule$1, ImageModule as ImageModule$1 } from '@colijnit/corecomponents';
38
+ import { InputCheckboxModule, SliderComponent, IconModule as IconModule$1, CheckboxSelectModule, PriceDisplayPipeModule, ButtonModule as ButtonModule$1, ImageModule as ImageModule$1 } from '@colijnit/corecomponents';
37
39
  import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
40
+ import { FilterItemMode } from '@colijnit/corecomponents_v12/';
38
41
 
39
42
  // this file is dynamically created, do not change this
40
43
  class Version {
41
44
  constructor() {
42
45
  this.name = "@colijnit/catalog";
43
46
  this.description = "iOne Catalog module based on Angular 12";
44
- this.symVer = "12.1.36";
45
- this.publishDate = "28-7-2023 10:59:06";
47
+ this.symVer = "12.1.37";
48
+ this.publishDate = "28-7-2023 11:07:47";
46
49
  }
47
50
  }
48
51
 
@@ -583,6 +586,17 @@ class CatalogConnectorAdapterService {
583
586
  }
584
587
  });
585
588
  }
589
+ getUserGroups() {
590
+ return __awaiter(this, void 0, void 0, function* () {
591
+ const response = yield this.mainConnector.getUserGroups();
592
+ if (response && response.validationResult && response.validationResult.success) {
593
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(UserGroup, response.resultObjects);
594
+ }
595
+ else {
596
+ console.error(response.validationMessagesAsString);
597
+ }
598
+ });
599
+ }
586
600
  getSuppliers() {
587
601
  return __awaiter(this, void 0, void 0, function* () {
588
602
  let request = new RelationRequest;
@@ -596,6 +610,50 @@ class CatalogConnectorAdapterService {
596
610
  }
597
611
  });
598
612
  }
613
+ getPresets(module, user) {
614
+ return __awaiter(this, void 0, void 0, function* () {
615
+ const response = yield this.mainConnector.getPresets(module, user);
616
+ if (response && response.validationResult && response.validationResult.success) {
617
+ return this._boFactory.makeBOArrayFromRawBackendDataArray(Preset, response.resultObjects);
618
+ }
619
+ else {
620
+ console.error(response.validationMessagesAsString);
621
+ }
622
+ });
623
+ }
624
+ getPreset(presetId) {
625
+ return __awaiter(this, void 0, void 0, function* () {
626
+ const response = yield this.mainConnector.getPreset(presetId);
627
+ if (response && response.validationResult && response.validationResult.success) {
628
+ return this._boFactory.makeWithRawBackendData(Preset, response.resultObjects);
629
+ }
630
+ else {
631
+ console.error(response.validationMessagesAsString);
632
+ }
633
+ });
634
+ }
635
+ savePreset(preset) {
636
+ return __awaiter(this, void 0, void 0, function* () {
637
+ const response = yield this.mainConnector.savePreset(preset);
638
+ if (response && response.validationResult && response.validationResult.success) {
639
+ return true;
640
+ }
641
+ else {
642
+ console.error(response.validationMessagesAsString);
643
+ }
644
+ });
645
+ }
646
+ updatePreset(presetName) {
647
+ return __awaiter(this, void 0, void 0, function* () {
648
+ const response = yield this.mainConnector.updatePreset(presetName);
649
+ if (response && response.validationResult && response.validationResult.success) {
650
+ return true;
651
+ }
652
+ else {
653
+ console.error(response.validationMessagesAsString);
654
+ }
655
+ });
656
+ }
599
657
  // will be called in future
600
658
  // public getArticleGroupImages(): Promise<ArticleGroupImage[]> {
601
659
  // return this.connector.getArticleGroupImages();
@@ -1227,11 +1285,36 @@ class CatalogConnectorService {
1227
1285
  return this._adapterService.getPriceLists();
1228
1286
  });
1229
1287
  }
1288
+ getUserGroups() {
1289
+ return __awaiter(this, void 0, void 0, function* () {
1290
+ return this._adapterService.getUserGroups();
1291
+ });
1292
+ }
1230
1293
  getSuppliers() {
1231
1294
  return __awaiter(this, void 0, void 0, function* () {
1232
1295
  return this._adapterService.getSuppliers();
1233
1296
  });
1234
1297
  }
1298
+ getPresets(module, user) {
1299
+ return __awaiter(this, void 0, void 0, function* () {
1300
+ return this._adapterService.getPresets(module, user);
1301
+ });
1302
+ }
1303
+ getPreset(presetId) {
1304
+ return __awaiter(this, void 0, void 0, function* () {
1305
+ return this._adapterService.getPreset(presetId);
1306
+ });
1307
+ }
1308
+ savePreset(preset) {
1309
+ return __awaiter(this, void 0, void 0, function* () {
1310
+ return this._adapterService.savePreset(preset);
1311
+ });
1312
+ }
1313
+ updatePreset(presetName) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ return this._adapterService.updatePreset(presetName);
1316
+ });
1317
+ }
1235
1318
  getDocumentContent(docId, thumbnail = true) {
1236
1319
  return __awaiter(this, void 0, void 0, function* () {
1237
1320
  return this._selectSingleParameterizedCacheService.requestCache(String, (docId, thumbnail) => {
@@ -1591,8 +1674,6 @@ class CatalogSearchService {
1591
1674
  this._settingsService = _settingsService;
1592
1675
  this._optionService = _optionService;
1593
1676
  this.searchRequest = new ArticleExtendedRequest();
1594
- // public activeSearchViewMode: SearchViewMode = SearchViewMode.FullScreen;
1595
- // public activeSearchBarViewMode: SearchbarViewMode = SearchbarViewMode.Expanded;
1596
1677
  this.showFilterSidebar = false;
1597
1678
  this.articles = [];
1598
1679
  this.articlesPerPage = 20;
@@ -1610,14 +1691,6 @@ class CatalogSearchService {
1610
1691
  }
1611
1692
  }));
1612
1693
  }
1613
- set filterText(value) {
1614
- this._setRequestParametersAndProps(null, null, value);
1615
- // this.searchTextChanged.next(this.filterText);
1616
- this.searchArticles();
1617
- }
1618
- get filterText() {
1619
- return this._filterText;
1620
- }
1621
1694
  set turnoverGroup(value) {
1622
1695
  this._setRequestParametersAndProps(null, value, null);
1623
1696
  // this.turnoverGroupChanged.next(this.turnoverGroup);
@@ -1644,60 +1717,6 @@ class CatalogSearchService {
1644
1717
  ngOnDestroy() {
1645
1718
  this._subs.forEach(s => s.unsubscribe());
1646
1719
  }
1647
- filterOnCollection(filterName, collection) {
1648
- if (!collection || collection.length === 0) {
1649
- return;
1650
- }
1651
- const searchFilterProp = this._filterService.getFilterItemMap(filterName);
1652
- if (searchFilterProp) {
1653
- this.searchRequest[searchFilterProp] = this.createFilterString(collection, searchFilterProp);
1654
- this.searchArticles();
1655
- }
1656
- }
1657
- createFilterString(collection, searchFilterProp) {
1658
- let cleared = false;
1659
- let filterRange = [];
1660
- collection.forEach((viewModel) => {
1661
- if (!cleared) {
1662
- this.searchRequest[searchFilterProp] = '';
1663
- cleared = true;
1664
- }
1665
- if (viewModel.checked) {
1666
- filterRange.push(`?='${viewModel.code}'`);
1667
- }
1668
- });
1669
- return filterRange.join(',');
1670
- }
1671
- createFilterStringCollection(collection) {
1672
- let filterRange = [];
1673
- collection.forEach((viewModel) => {
1674
- if (viewModel.checked) {
1675
- filterRange.push(viewModel.code.toString());
1676
- }
1677
- });
1678
- return filterRange;
1679
- }
1680
- createSingleSelectString(collection) {
1681
- let filterString = "";
1682
- collection.forEach((viewModel) => {
1683
- if (viewModel.checked) {
1684
- filterString = viewModel.code.toString();
1685
- }
1686
- });
1687
- return filterString;
1688
- }
1689
- createFilterNumber(collection) {
1690
- let filterNumber = null;
1691
- collection.forEach((viewModel) => {
1692
- if (viewModel.checked) {
1693
- if (filterNumber == null) {
1694
- filterNumber = 0;
1695
- }
1696
- filterNumber += Number(viewModel.code);
1697
- }
1698
- });
1699
- return filterNumber;
1700
- }
1701
1720
  searchArticles(getFilters = true) {
1702
1721
  const lowerBound = ((this.currentPage - 1) * this.articlesPerPage) + 1;
1703
1722
  this.searchRequest.paging = new PagingParameters(lowerBound, lowerBound + this.articlesPerPage - 1, this.articlesPerPage);
@@ -1744,9 +1763,6 @@ class CatalogSearchService {
1744
1763
  this.searchRequest.category = category;
1745
1764
  this.searchRequest.turnoverGroup = turnoverGroup;
1746
1765
  this.searchRequest.general = searchText ? searchText.join(' ') : null;
1747
- // this._category = category;
1748
- // this._turnoverGroup = turnoverGroup;
1749
- // this._filterText = searchText;
1750
1766
  }
1751
1767
  }
1752
1768
  CatalogSearchService.decorators = [
@@ -2121,12 +2137,16 @@ IconCacheService.ctorParameters = () => [
2121
2137
  ];
2122
2138
 
2123
2139
  class CatalogFilterComponent {
2124
- constructor(iconCache, optionsService, changeDetector) {
2140
+ constructor(iconCache, optionsService, changeDetector, _catalogConnectorService, searchService) {
2125
2141
  this.iconCache = iconCache;
2126
2142
  this.optionsService = optionsService;
2127
2143
  this.changeDetector = changeDetector;
2144
+ this._catalogConnectorService = _catalogConnectorService;
2145
+ this.searchService = searchService;
2128
2146
  this.icons = IconEnum;
2147
+ this.updatePreset = false;
2129
2148
  this.showResetFilter = true;
2149
+ this.showSavePopup = false;
2130
2150
  this.filterCategories = [
2131
2151
  'Algemeen',
2132
2152
  'Inkoop',
@@ -2152,6 +2172,12 @@ class CatalogFilterComponent {
2152
2172
  }
2153
2173
  //this.initializePriceFilterMinMax();
2154
2174
  this.detectChanges();
2175
+ this.getUserGroups();
2176
+ }
2177
+ getUserGroups() {
2178
+ this._catalogConnectorService.getUserGroups().then((userGroups) => {
2179
+ this.userGroupCollection = userGroups;
2180
+ });
2155
2181
  }
2156
2182
  handleCategoryClick(cat) {
2157
2183
  if (cat === 'Algemeen') {
@@ -2180,6 +2206,14 @@ CatalogFilterComponent.decorators = [
2180
2206
  { type: Component, args: [{
2181
2207
  selector: 'co-catalog-filter',
2182
2208
  template: `
2209
+ <!--<div class="preset-button">
2210
+ <co-button [iconData]="iconCache.getIcon(icons.MagicWand)"
2211
+ (onClick)="loadSelectedPreset()">
2212
+ </co-button>
2213
+ <co-button [iconData]="iconCache.getIcon(icons.Check)"
2214
+ (onClick)="showSavePresetPopup()">
2215
+ </co-button>
2216
+ </div>-->
2183
2217
  <div class="catalog-filter-categories">
2184
2218
  <co-catalog-filter-categories [categories]="filterCategories"
2185
2219
  (categoryClick)="handleCategoryClick($event)"></co-catalog-filter-categories>
@@ -2194,23 +2228,43 @@ CatalogFilterComponent.decorators = [
2194
2228
  <div #logisticsFilter class="catalog-filter-category-content">
2195
2229
  <co-catalog-filter-content-logistics></co-catalog-filter-content-logistics>
2196
2230
  </div>
2197
- </div>
2198
-
2231
+ </div>
2199
2232
 
2200
- <!--<div class="catalog-filter-wrapper">
2201
- <div *ngIf="showResetFilter" class="reset-filter-wrapper">
2202
- <div class="reset-title-wrapper">
2203
- <div class="reset-title">
2204
- <div class="reset-filter-title" [textContent]="'FILTER' | localize"></div>
2205
- <co-icon class="reset-filter-icon" [iconData]="iconCache.getIcon(icons.SyncAlt)"></co-icon>
2206
- </div>
2207
- <co-icon-collapse-handle (click)="onHandleClick($event)"></co-icon-collapse-handle>
2208
- </div>
2209
- <div class="filter-reset" [textContent]="'RESET_FILTER' | localize" (click)="resetFilters($event)"></div>
2210
- </div>
2211
- <div class="filter-items-wrapper co-small-scrollbar">
2233
+ <!--<co-dialog *ngIf="showSavePopup" [headerTemplate]="headerTemplate" [footerTemplate]="footerTemplate" (closeClick)="cancelClicked()">
2234
+ <ng-template #headerTemplate>
2235
+ <span class="header" [textContent]="'SAVE_PRESET' | localize"></span>
2236
+ </ng-template>
2237
+
2238
+ <div class="save-dialog-contents">
2239
+ <co-input-text
2240
+ [hideArrowButtons]="true"
2241
+ [excludePlusMinus]="true"
2242
+ [(model)]="searchService.currentPreset.name"
2243
+ [label]="'PRESET_NAME' | localize"
2244
+ [placeholder]="'PRESET_NAME' | localize"
2245
+ ></co-input-text>
2246
+ <co-list-of-values [collection]="userGroupCollection"
2247
+ [displayField]="'description'"
2248
+ [label]="'USERGROUPS'| localize"
2249
+ [(model)]="userGroupsChosen"
2250
+ (modelChange)="userGroupsChanged()"
2251
+ [multiselect]="true"
2252
+ ></co-list-of-values>
2253
+ &lt;!&ndash;<co-input-checkbox *ngIf="updatePreset"
2254
+ [(model)]="searchService.currentPreset.default"
2255
+ [label]="'SAVE_AS_NEW' | localize"
2256
+ ></co-input-checkbox> &ndash;&gt;
2212
2257
  </div>
2213
- </div>-->
2258
+
2259
+ <ng-template #footerTemplate>
2260
+ <div class="co-dialog-footer-button-wrapper">
2261
+ <ng-container >
2262
+ <co-button [label]="'SAVE' | localize" (click)="saveClicked()"></co-button>
2263
+ <co-button [label]="'CANCEL' | localize" (click)="cancelClicked()"></co-button>
2264
+ </ng-container>
2265
+ </div>
2266
+ </ng-template>
2267
+ </co-dialog> -->
2214
2268
  `,
2215
2269
  animations: [
2216
2270
  trigger('showFilterItem', [
@@ -2225,7 +2279,9 @@ CatalogFilterComponent.decorators = [
2225
2279
  CatalogFilterComponent.ctorParameters = () => [
2226
2280
  { type: IconCacheService },
2227
2281
  { type: CatalogOptionsService },
2228
- { type: ChangeDetectorRef }
2282
+ { type: ChangeDetectorRef },
2283
+ { type: CatalogConnectorService },
2284
+ { type: CatalogSearchService }
2229
2285
  ];
2230
2286
  CatalogFilterComponent.propDecorators = {
2231
2287
  filterItems: [{ type: ViewChild, args: ['filterItems', { read: ElementRef },] }],
@@ -2343,19 +2399,12 @@ class CatalogFilterContentGeneralComponent {
2343
2399
  this.iconCache = iconCache;
2344
2400
  this._catalogConnectorService = _catalogConnectorService;
2345
2401
  this._adapterService = _adapterService;
2346
- this.modes = FilterItemMode;
2347
2402
  this.icons = IconEnum;
2403
+ this.modes = FilterItemMode;
2348
2404
  this._min = 0;
2349
2405
  this._max = 100000;
2350
2406
  this._subs = [];
2351
2407
  this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
2352
- this.getRetail = (barcodeFilter) => __awaiter(this, void 0, void 0, function* () {
2353
- const request = new ArticleExtendedRequest();
2354
- request.barcode = barcodeFilter;
2355
- return this._catalogConnectorService.getArticlesForCatalog(request).then((articleResult) => {
2356
- return new FilterViewmodel(articleResult.articles, { text: 'barcode', value: 'barcode' }).filterItems;
2357
- });
2358
- });
2359
2408
  }
2360
2409
  showClass() {
2361
2410
  return true;
@@ -2423,66 +2472,6 @@ class CatalogFilterContentGeneralComponent {
2423
2472
  this.priceListsSalesCollection = this.filterService.createFilterSelectionsCollection(tempPriceListsSalesCollection, "code", "description");
2424
2473
  });
2425
2474
  }
2426
- filterOnPrice() {
2427
- this.filterService.priceMinFilter = !!this.filterService.priceMinFilter ? this.filterService.priceMinFilter : this._min;
2428
- this.filterService.priceMaxFilter = !!this.filterService.priceMaxFilter ? this.filterService.priceMaxFilter : this._max;
2429
- // some user error protection
2430
- let trueLowerBound = Math.min(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
2431
- let trueUpperBound = Math.max(this.filterService.priceMinFilter, this.filterService.priceMaxFilter);
2432
- this.catalogSearchService.searchRequest.rangePrice = `${trueLowerBound} - ${trueUpperBound}`;
2433
- this.catalogSearchService.searchArticles();
2434
- }
2435
- updateLengthFilter() {
2436
- this.filterService.lengthMinFilter = !!this.filterService.lengthMinFilter ? this.filterService.lengthMinFilter : this._min;
2437
- this.filterService.lengthMaxFilter = !!this.filterService.lengthMaxFilter ? this.filterService.lengthMaxFilter : this._max;
2438
- this.catalogSearchService.searchRequest.length = this.getFromToFilter(this.filterService.lengthMinFilter, this.filterService.lengthMaxFilter);
2439
- }
2440
- updateWidthFilter() {
2441
- this.filterService.widthMinFilter = !!this.filterService.widthMinFilter ? this.filterService.widthMinFilter : this._min;
2442
- this.filterService.widthMaxFilter = !!this.filterService.widthMaxFilter ? this.filterService.widthMaxFilter : this._max;
2443
- this.catalogSearchService.searchRequest.width = this.getFromToFilter(this.filterService.widthMinFilter, this.filterService.widthMaxFilter);
2444
- }
2445
- updateHeightFilter() {
2446
- this.filterService.heightMinFilter = !!this.filterService.heightMinFilter ? this.filterService.heightMinFilter : this._min;
2447
- this.filterService.heightMaxFilter = !!this.filterService.heightMaxFilter ? this.filterService.heightMaxFilter : this._max;
2448
- this.catalogSearchService.searchRequest.height = this.getFromToFilter(this.filterService.heightMinFilter, this.filterService.heightMaxFilter);
2449
- }
2450
- updateDepthFilter() {
2451
- this.filterService.depthMinFilter = !!this.filterService.depthMinFilter ? this.filterService.depthMinFilter : this._min;
2452
- this.filterService.depthMaxFilter = !!this.filterService.depthMaxFilter ? this.filterService.depthMaxFilter : this._max;
2453
- this.catalogSearchService.searchRequest.depth = this.getFromToFilter(this.filterService.depthMinFilter, this.filterService.depthMaxFilter);
2454
- }
2455
- getFromToFilter(min, max) {
2456
- // some user error protection
2457
- let trueLowerBound = Math.min(min, max);
2458
- let trueUpperBound = Math.max(min, max);
2459
- return `${trueLowerBound} - ${trueUpperBound}`;
2460
- }
2461
- handleCollectionChange(filterName, collection) {
2462
- this.catalogSearchService.filterOnCollection(filterName, collection);
2463
- }
2464
- handleSeparateCollectionChange(filterName, collection) {
2465
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
2466
- }
2467
- handleArticleTypeChange(filterName, collection) {
2468
- this.catalogSearchService.searchRequest.articleKindList = this.catalogSearchService.createFilterStringCollection(collection);
2469
- }
2470
- handleSingleSelectChange(filterName, collection) {
2471
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
2472
- }
2473
- handleNumberListChange(filterName, collection) {
2474
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterNumber(collection);
2475
- }
2476
- handleCollectionChangeForSingleSelect(collection, modelName) {
2477
- this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForSingleSelect(collection);
2478
- this.catalogSearchService.searchArticles();
2479
- }
2480
- _getFilterRequestForSingleSelect(collection) {
2481
- let filterRequest = '';
2482
- const selectedItem = collection === null || collection === void 0 ? void 0 : collection.find(item => item.checked);
2483
- filterRequest = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.code.toString();
2484
- return filterRequest;
2485
- }
2486
2475
  }
2487
2476
  CatalogFilterContentGeneralComponent.decorators = [
2488
2477
  { type: Component, args: [{
@@ -2493,148 +2482,60 @@ CatalogFilterContentGeneralComponent.decorators = [
2493
2482
  <div class="catalog-filter-wrapper">
2494
2483
  <div class="filter-items-wrapper co-small-scrollbar">
2495
2484
  <div class="filter-item-wrapper">
2496
- <label class="temp">Price</label>
2497
- <div class="price-inputs">
2498
- <co-input-text
2499
- class="price-from"
2500
- [type]="'number'"
2501
- [digitsOnly]="true"
2502
- [hideArrowButtons]="true"
2503
- [excludePlusMinus]="true"
2504
- [label]="'BASELINE_PRICE' | localize"
2505
- [(model)]="filterService.priceMinFilter"
2506
- customWidth
2507
- ></co-input-text>
2508
- <co-input-text
2509
- class="price-to"
2510
- [type]="'number'"
2511
- [digitsOnly]="true"
2512
- [hideArrowButtons]="true"
2513
- [excludePlusMinus]="true"
2514
- [label]="'PRICE_TO' | localize"
2515
- [(model)]="filterService.priceMaxFilter"
2516
- customWidth
2517
- ></co-input-text>
2518
- <co-icon [iconData]="iconCache.getIcon(icons.Check)" (click)="filterOnPrice()"></co-icon>
2519
- </div>
2485
+ <co-filter-item [placeholder]="'PRICE' | localize"
2486
+ [expanded]="true"
2487
+ [mode]="modes.Slider"
2488
+ [sliderDefaultMin]="0"
2489
+ [sliderDefaultMax]="100000"
2490
+ [(model)]="catalogSearchService.searchRequest.rangePrice"
2491
+ >
2492
+ </co-filter-item>
2520
2493
  </div>
2521
2494
  <div class="filter-item-wrapper">
2522
- <label class="temp">Length</label>
2523
- <div class="price-inputs">
2524
- <co-input-text
2525
- class="price-from"
2526
- [type]="'number'"
2527
- [digitsOnly]="true"
2528
- [hideArrowButtons]="true"
2529
- [excludePlusMinus]="true"
2530
- [label]="'FROM' | localize"
2531
- [(model)]="filterService.lengthMinFilter"
2532
- (modelChange)="updateLengthFilter()"
2533
- customWidth
2534
- ></co-input-text>
2535
- <co-input-text
2536
- class="price-to"
2537
- [type]="'number'"
2538
- [digitsOnly]="true"
2539
- [hideArrowButtons]="true"
2540
- [excludePlusMinus]="true"
2541
- [label]="'FROM' | localize"
2542
- [(model)]="filterService.lengthMaxFilter"
2543
- (modelChange)="updateLengthFilter()"
2544
- customWidth
2545
- ></co-input-text>
2546
- <co-icon [iconData]="iconCache.getIcon(icons.Check)" (click)="filterOnPrice()"></co-icon>
2547
- </div>
2495
+ <co-filter-item [placeholder]="'LENGTH' | localize"
2496
+ [expanded]="true"
2497
+ [mode]="modes.Slider"
2498
+ [sliderDefaultMin]="0"
2499
+ [sliderDefaultMax]="5000"
2500
+ [(model)]="catalogSearchService.searchRequest.length"
2501
+ >
2502
+ </co-filter-item>
2548
2503
  </div>
2549
2504
  <div class="filter-item-wrapper">
2550
- <label class="temp">Width</label>
2551
- <div class="price-inputs">
2552
- <co-input-text
2553
- class="price-from"
2554
- [type]="'number'"
2555
- [digitsOnly]="true"
2556
- [hideArrowButtons]="true"
2557
- [excludePlusMinus]="true"
2558
- [label]="'FROM' | localize"
2559
- [(model)]="filterService.widthMinFilter"
2560
- (modelChange)="updateWidthFilter()"
2561
- customWidth
2562
- ></co-input-text>
2563
- <co-input-text
2564
- class="price-to"
2565
- [type]="'number'"
2566
- [digitsOnly]="true"
2567
- [hideArrowButtons]="true"
2568
- [excludePlusMinus]="true"
2569
- [label]="'TO' | localize"
2570
- [(model)]="filterService.widthMaxFilter"
2571
- (modelChange)="updateWidthFilter()"
2572
- customWidth
2573
- ></co-input-text>
2574
- <co-icon [iconData]="iconCache.getIcon(icons.Check)" (click)="filterOnPrice()"></co-icon>
2575
- </div>
2505
+ <co-filter-item [placeholder]="'WIDTH' | localize"
2506
+ [expanded]="true"
2507
+ [mode]="modes.Slider"
2508
+ [sliderDefaultMin]="0"
2509
+ [sliderDefaultMax]="5000"
2510
+ [(model)]="catalogSearchService.searchRequest.width"
2511
+ >
2512
+ </co-filter-item>
2576
2513
  </div>
2577
2514
  <div class="filter-item-wrapper">
2578
- <label class="temp">Height</label>
2579
- <div class="price-inputs">
2580
- <co-input-text
2581
- class="price-from"
2582
- [type]="'number'"
2583
- [digitsOnly]="true"
2584
- [hideArrowButtons]="true"
2585
- [excludePlusMinus]="true"
2586
- [label]="'FROM' | localize"
2587
- [(model)]="filterService.heightMinFilter"
2588
- (modelChange)="updateHeightFilter()"
2589
- customWidth
2590
- ></co-input-text>
2591
- <co-input-text
2592
- class="price-to"
2593
- [type]="'number'"
2594
- [digitsOnly]="true"
2595
- [hideArrowButtons]="true"
2596
- [excludePlusMinus]="true"
2597
- [label]="'TO' | localize"
2598
- [(model)]="filterService.heightMaxFilter"
2599
- (modelChange)="updateHeightFilter()"
2600
- customWidth
2601
- ></co-input-text>
2602
- <co-icon [iconData]="iconCache.getIcon(icons.Check)" (click)="filterOnPrice()"></co-icon>
2603
- </div>
2515
+ <co-filter-item [placeholder]="'HEIGHT' | localize"
2516
+ [expanded]="true"
2517
+ [mode]="modes.Slider"
2518
+ [sliderDefaultMin]="0"
2519
+ [sliderDefaultMax]="5000"
2520
+ [(model)]="catalogSearchService.searchRequest.height"
2521
+ >
2522
+ </co-filter-item>
2604
2523
  </div>
2605
2524
  <div class="filter-item-wrapper">
2606
- <label class="temp">Width</label>
2607
- <div class="price-inputs">
2608
- <co-input-text
2609
- class="price-from"
2610
- [type]="'number'"
2611
- [digitsOnly]="true"
2612
- [hideArrowButtons]="true"
2613
- [excludePlusMinus]="true"
2614
- [label]="'FROM' | localize"
2615
- [(model)]="filterService.depthMinFilter"
2616
- (modelChange)="updateDepthFilter()"
2617
- customWidth
2618
- ></co-input-text>
2619
- <co-input-text
2620
- class="price-to"
2621
- [type]="'number'"
2622
- [digitsOnly]="true"
2623
- [hideArrowButtons]="true"
2624
- [excludePlusMinus]="true"
2625
- [label]="'TO' | localize"
2626
- [(model)]="filterService.depthMaxFilter"
2627
- (modelChange)="updateDepthFilter()"
2628
- customWidth
2629
- ></co-input-text>
2630
- <co-icon [iconData]="iconCache.getIcon(icons.Check)" (click)="filterOnPrice()"></co-icon>
2631
- </div>
2525
+ <co-filter-item [placeholder]="'DEPTH' | localize"
2526
+ [expanded]="true"
2527
+ [mode]="modes.Slider"
2528
+ [sliderDefaultMin]="0"
2529
+ [sliderDefaultMax]="5000"
2530
+ [(model)]="catalogSearchService.searchRequest.depth"
2531
+ >
2532
+ </co-filter-item>
2632
2533
  </div>
2633
2534
  <div class="filter-item-wrapper">
2634
2535
  <co-filter-item [placeholder]="'RETAIL_FORMULA' | localize"
2635
2536
  [expanded]="true"
2636
2537
  [collection]="storeGroupCollection"
2637
- (collectionChange)="handleSeparateCollectionChange('rangeStoreGroup', $event)"
2538
+ [(model)]="catalogSearchService.searchRequest.rangeStoreGroup"
2638
2539
  >
2639
2540
  </co-filter-item>
2640
2541
  </div>
@@ -2642,7 +2543,7 @@ CatalogFilterContentGeneralComponent.decorators = [
2642
2543
  <co-filter-item [placeholder]="'IN_OUT_COLLECTION' | localize"
2643
2544
  [expanded]="true"
2644
2545
  [collection]="inOutCollectionCollection"
2645
- (collectionChange)="handleSeparateCollectionChange('collection', $event)"
2546
+ [(model)]="catalogSearchService.searchRequest.collection"
2646
2547
  >
2647
2548
  </co-filter-item>
2648
2549
  </div>
@@ -2650,7 +2551,8 @@ CatalogFilterContentGeneralComponent.decorators = [
2650
2551
  <co-filter-item [placeholder]="'ARTICLE_TYPE' | localize"
2651
2552
  [expanded]="true"
2652
2553
  [collection]="articleTypeCollection"
2653
- (collectionChange)="handleArticleTypeChange('rangeStoreGroup', $event)"
2554
+ [mode]="modes.SelectListWithStringCollectionOutput"
2555
+ [(model)]="catalogSearchService.searchRequest.articleKindList"
2654
2556
  >
2655
2557
  </co-filter-item>
2656
2558
  </div>
@@ -2658,7 +2560,8 @@ CatalogFilterContentGeneralComponent.decorators = [
2658
2560
  <co-filter-item [placeholder]="'PUBLISH_VIA' | localize"
2659
2561
  [expanded]="true"
2660
2562
  [collection]="artPublicationCollection"
2661
- (collectionChange)="handleNumberListChange('publicationCode', $event)"
2563
+ [(model)]="catalogSearchService.searchRequest.publicationCode"
2564
+ [mode]="modes.SelectListWithNumberOutput"
2662
2565
  >
2663
2566
  </co-filter-item>
2664
2567
  </div>
@@ -2666,25 +2569,26 @@ CatalogFilterContentGeneralComponent.decorators = [
2666
2569
  <co-filter-item [placeholder]="'SELL_VIA' | localize"
2667
2570
  [expanded]="true"
2668
2571
  [collection]="artPublicationSalesCollection"
2669
- (collectionChange)="handleNumberListChange('publicationWebshopSales', $event)"
2572
+ [(model)]="catalogSearchService.searchRequest.publicationWebshopSales"
2573
+ [mode]="modes.SelectListWithNumberOutput"
2670
2574
  >
2671
2575
  </co-filter-item>
2672
2576
  </div>
2673
2577
  <div class="filter-item-wrapper">
2674
2578
  <co-filter-item [placeholder]="'PRICELIST_SALES' | localize"
2675
2579
  [expanded]="true"
2580
+ [(model)]="catalogSearchService.searchRequest.pricelistRetail"
2676
2581
  [mode]="modes.SingleSelectList"
2677
2582
  [collection]="priceListsSalesCollection"
2678
- (collectionChange)="handleSingleSelectChange('pricelistRetail', $event)"
2679
2583
  >
2680
2584
  </co-filter-item>
2681
2585
  </div>
2682
2586
  <div class="filter-item-wrapper">
2683
2587
  <co-filter-item [placeholder]="'CATEGORY' | localize"
2684
2588
  [expanded]="true"
2589
+ [(model)]="catalogSearchService.searchRequest.category"
2685
2590
  [mode]="modes.SingleSelectList"
2686
2591
  [collection]="categoryCollection"
2687
- (collectionChange)="handleSingleSelectChange('category', $event)"
2688
2592
  >
2689
2593
  </co-filter-item>
2690
2594
  </div>
@@ -2692,13 +2596,13 @@ CatalogFilterContentGeneralComponent.decorators = [
2692
2596
  <co-filter-item
2693
2597
  [placeholder]="filter.filterName"
2694
2598
  [collection]="filter.filterItems"
2599
+ [(model)]="catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]"
2695
2600
  [showLessLabel]="'Bekijk minder...'"
2696
2601
  [showMoreLabel]="'Bekijk meer...'"
2697
2602
  [searchPlaceholder]="'Zoeken...'"
2698
2603
  [expanded]=true
2699
- [initialLimit]=5
2700
- (collectionChange)="handleCollectionChange(filter.filterName, $event)"
2701
- ></co-filter-item>
2604
+ [initialLimit]=5
2605
+ ></co-filter-item> <!--(collectionChange)="handleCollectionChange(filter.filterName, $event)"-->
2702
2606
  </div>
2703
2607
  </div>
2704
2608
  </div>
@@ -2745,8 +2649,8 @@ class CatalogFilterContentPurchaseComponent {
2745
2649
  this.filterService = filterService;
2746
2650
  this._catalogConnectorService = _catalogConnectorService;
2747
2651
  this._adapterService = _adapterService;
2748
- this.modes = FilterItemMode;
2749
2652
  this.icons = IconEnum;
2653
+ this.modes = FilterItemMode$1;
2750
2654
  this._subs = [];
2751
2655
  }
2752
2656
  showClass() {
@@ -2784,12 +2688,6 @@ class CatalogFilterContentPurchaseComponent {
2784
2688
  this.priceListsPurchCollection = this.filterService.createFilterSelectionsCollection(tempPriceListsPurchCollection, "code", "description");
2785
2689
  });
2786
2690
  }
2787
- handleSeparateCollectionChange(filterName, collection) {
2788
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createFilterString(collection, filterName);
2789
- }
2790
- handleSingleSelectChange(filterName, collection) {
2791
- this.catalogSearchService.searchRequest[filterName] = this.catalogSearchService.createSingleSelectString(collection);
2792
- }
2793
2691
  }
2794
2692
  CatalogFilterContentPurchaseComponent.decorators = [
2795
2693
  { type: Component, args: [{
@@ -2803,30 +2701,26 @@ CatalogFilterContentPurchaseComponent.decorators = [
2803
2701
  <co-filter-item [placeholder]="'SUPPLIER' | localize"
2804
2702
  [expanded]="true"
2805
2703
  [collection]="suppliers"
2806
- (collectionChange)="handleSeparateCollectionChange('rangeSupplierNr', $event)"
2704
+ [(model)]="catalogSearchService.searchRequest.rangeSupplierNr"
2807
2705
  >
2808
2706
  </co-filter-item>
2809
- </div>
2707
+ </div>
2810
2708
  <co-filter-item [placeholder]="'ARTICLE_NR_SUPPLIER' | localize"
2811
2709
  [expanded]="true"
2812
- [customContent]="true"
2813
- >
2814
- <co-input-text [placeholder]="'ARTICLE_NR_SUPPLIER' | localize" [(model)]="catalogSearchService.searchRequest.artNrSupplier"
2815
- noValidation></co-input-text>
2710
+ [mode]="modes.TextField"
2711
+ [(model)]="catalogSearchService.searchRequest.artNrSupplier">
2816
2712
  </co-filter-item>
2817
2713
  <co-filter-item [placeholder]="'REFERENCE' | localize"
2818
2714
  [expanded]="true"
2819
- [customContent]="true"
2820
- >
2821
- <co-input-text [placeholder]="'REFERENCE' | localize" [(model)]="catalogSearchService.searchRequest.simpleReference"
2822
- noValidation></co-input-text>
2823
- </co-filter-item>
2715
+ [mode]="modes.TextField"
2716
+ [(model)]="catalogSearchService.searchRequest.simpleReference">
2717
+ </co-filter-item>
2824
2718
  <div class="filter-item-wrapper">
2825
2719
  <co-filter-item [placeholder]="'PRICELIST_PURCHASE' | localize"
2826
2720
  [expanded]="true"
2827
2721
  [collection]="priceListsPurchCollection"
2828
2722
  [mode]="modes.SingleSelectList"
2829
- (collectionChange)="handleSingleSelectChange('pricelistPurchase', $event)"
2723
+ [(model)]="catalogSearchService.searchRequest.pricelistPurchase"
2830
2724
  >
2831
2725
  </co-filter-item>
2832
2726
  </div>
@@ -2845,8 +2739,7 @@ CatalogFilterContentPurchaseComponent.ctorParameters = () => [
2845
2739
  { type: CatalogConnectorAdapterService }
2846
2740
  ];
2847
2741
  CatalogFilterContentPurchaseComponent.propDecorators = {
2848
- showClass: [{ type: HostBinding, args: ['class.co-catalog-filter',] }],
2849
- priceSlider: [{ type: ViewChild, args: [SliderComponent, { static: true },] }]
2742
+ showClass: [{ type: HostBinding, args: ['class.co-catalog-filter',] }]
2850
2743
  };
2851
2744
 
2852
2745
  class CatalogFilterContentPurchaseModule {
@@ -2874,6 +2767,7 @@ class CatalogFilterContentLogisticsComponent {
2874
2767
  constructor(catalogSearchService, iconCache) {
2875
2768
  this.catalogSearchService = catalogSearchService;
2876
2769
  this.iconCache = iconCache;
2770
+ this.modes = FilterItemMode$1;
2877
2771
  this.icons = IconEnum;
2878
2772
  }
2879
2773
  showClass() {
@@ -2882,7 +2776,7 @@ class CatalogFilterContentLogisticsComponent {
2882
2776
  ngOnInit() {
2883
2777
  }
2884
2778
  handleAllChanged(value) {
2885
- this.catalogSearchService.searchRequest["doSync"] = value ? 'J' : 'N';
2779
+ this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
2886
2780
  this.catalogSearchService.searchRequest["showRegularArticles"] = value;
2887
2781
  this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
2888
2782
  this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
@@ -2890,19 +2784,6 @@ class CatalogFilterContentLogisticsComponent {
2890
2784
  this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
2891
2785
  this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
2892
2786
  }
2893
- handleCheckboxValueChangeForString(value, modelName) {
2894
- this.catalogSearchService.searchRequest[modelName] = this._getFilterRequestForBooleanToString(value);
2895
- }
2896
- _getFilterRequestForBooleanToString(value) {
2897
- let filterRequest = '';
2898
- if (value) {
2899
- filterRequest = "?='J'";
2900
- }
2901
- else {
2902
- filterRequest = "?='N'";
2903
- }
2904
- return filterRequest;
2905
- }
2906
2787
  }
2907
2788
  CatalogFilterContentLogisticsComponent.decorators = [
2908
2789
  { type: Component, args: [{
@@ -2916,30 +2797,22 @@ CatalogFilterContentLogisticsComponent.decorators = [
2916
2797
  <div class="filter-item-wrapper">
2917
2798
  <co-filter-item [placeholder]="'SERIALNUMBER' | localize"
2918
2799
  [expanded]="true"
2919
- [customContent]="true"
2920
- >
2921
- <co-input-text [placeholder]="'SERIALNUMBER' | localize" [(model)]="catalogSearchService.searchRequest.serialNumber"
2922
- noValidation></co-input-text>
2923
- </co-filter-item>
2800
+ [mode]="modes.TextField"
2801
+ [(model)]="catalogSearchService.searchRequest.serialNumber">
2802
+ </co-filter-item>
2924
2803
  </div>
2925
2804
  <div class="filter-item-wrapper">
2926
2805
  <co-filter-item [placeholder]="'BATCH_NUMBER' | localize"
2927
2806
  [expanded]="true"
2928
- [customContent]="true"
2929
- >
2930
- <co-input-text [placeholder]="'BATCH_NUMBER' | localize" [(model)]="catalogSearchService.searchRequest.batchNumber"
2931
- noValidation></co-input-text>
2807
+ [mode]="modes.TextField"
2808
+ [(model)]="catalogSearchService.searchRequest.batchNumber">
2932
2809
  </co-filter-item>
2933
- </div>
2934
- <div class="filter-item-wrapper">
2810
+ </div>
2811
+ <div class="filter-item-wrapper">
2935
2812
  <co-filter-item [placeholder]="'MUTATION_DATE' | localize"
2936
2813
  [expanded]="true"
2937
- [customContent]="true"
2938
- >
2939
- <co-input-date
2940
- [(model)]="catalogSearchService.searchRequest.dateModified"
2941
- (modelChange)="catalogSearchService.searchArticles()"
2942
- ></co-input-date>
2814
+ [mode]="modes.DateField"
2815
+ [(model)]="catalogSearchService.searchRequest.dateModified">
2943
2816
  </co-filter-item>
2944
2817
  </div>
2945
2818
 
@@ -2952,81 +2825,58 @@ CatalogFilterContentLogisticsComponent.decorators = [
2952
2825
  (modelChange)="this.handleAllChanged($event)"
2953
2826
  [label]="'ALL' | localize"></co-input-checkbox>
2954
2827
  </co-filter-item>
2955
- </div>
2828
+ </div>
2956
2829
  <div class="filter-item-wrapper">
2957
- <co-filter-item
2958
- [placeholder]="'AUTOMATICALLY_UPDATE'"
2959
- [expanded]="true"
2960
- [customContent]="true">
2961
- <co-input-checkbox
2962
- [model]="catalogSearchService.searchRequest.doSync === 'J'"
2963
- (modelChange)="this.handleCheckboxValueChangeForString($event, 'doSync')"
2964
- [label]="'AUTOMATICALLY_UPDATE' | localize"></co-input-checkbox>
2830
+ <co-filter-item [placeholder]="'AUTOMATICALLY_UPDATE'"
2831
+ [expanded]="true"
2832
+ [mode]="modes.CheckboxToText"
2833
+ [(model)]="catalogSearchService.searchRequest.doSync">
2965
2834
  </co-filter-item>
2966
2835
  </div>
2967
2836
  <div class="filter-item-wrapper">
2968
- <co-filter-item
2969
- [placeholder]="'SHOW_REGULAR_ARTICLES'"
2970
- [expanded]="true"
2971
- [customContent]="true">
2972
- <co-input-checkbox
2973
- [(model)]="catalogSearchService.searchRequest.showRegularArticles"
2974
- [label]="'SHOW_REGULAR_ARTICLES' | localize"></co-input-checkbox>
2837
+ <co-filter-item [placeholder]="'SHOW_REGULAR_ARTICLES'"
2838
+ [expanded]="true"
2839
+ [mode]="modes.Checkbox"
2840
+ [(model)]="catalogSearchService.searchRequest.showRegularArticles">
2975
2841
  </co-filter-item>
2976
2842
  </div>
2977
2843
  <div class="filter-item-wrapper">
2978
- <co-filter-item
2979
- [placeholder]="'SHOW_CONFIGURED_ARTICLES'"
2980
- [expanded]="true"
2981
- [customContent]="true">
2982
- <co-input-checkbox
2983
- [(model)]="catalogSearchService.searchRequest.showConfiguredArticles"
2984
- [label]="'SHOW_CONFIGURED_ARTICLES' | localize"></co-input-checkbox>
2844
+ <co-filter-item [placeholder]="'SHOW_CONFIGURED_ARTICLES'"
2845
+ [expanded]="true"
2846
+ [mode]="modes.Checkbox"
2847
+ [(model)]="catalogSearchService.searchRequest.showConfiguredArticles">
2985
2848
  </co-filter-item>
2986
2849
  </div>
2987
2850
  <div class="filter-item-wrapper">
2988
- <co-filter-item
2989
- [placeholder]="'BASE_ARTICLES'"
2990
- [expanded]="true"
2991
- [customContent]="true">
2992
- <co-input-checkbox
2993
- [(model)]="catalogSearchService.searchRequest.showConfigurableArticles"
2994
- [label]="'BASE_ARTICLES' | localize"></co-input-checkbox>
2851
+ <co-filter-item [placeholder]="'BASE_ARTICLES'"
2852
+ [expanded]="true"
2853
+ [mode]="modes.Checkbox"
2854
+ [(model)]="catalogSearchService.searchRequest.showConfigurableArticles">
2995
2855
  </co-filter-item>
2996
2856
  </div>
2997
2857
  <div class="filter-item-wrapper">
2998
- <co-filter-item
2999
- [placeholder]="'COMPOSITION_ARTICLES'"
3000
- [expanded]="true"
3001
- [customContent]="true">
3002
- <co-input-checkbox
3003
- [(model)]="catalogSearchService.searchRequest.showCompositionArticles"
3004
- [label]="'COMPOSITION_ARTICLES' | localize"></co-input-checkbox>
2858
+ <co-filter-item [placeholder]="'COMPOSITION_ARTICLES'"
2859
+ [expanded]="true"
2860
+ [mode]="modes.Checkbox"
2861
+ [(model)]="catalogSearchService.searchRequest.showCompositionArticles">
3005
2862
  </co-filter-item>
3006
2863
  </div>
3007
2864
  <div class="filter-item-wrapper">
3008
- <co-filter-item
3009
- [placeholder]="'SHOW_CUSTOMIZED_ARTICLES'"
3010
- [expanded]="true"
3011
- [customContent]="true">
3012
- <co-input-checkbox
3013
- [(model)]="catalogSearchService.searchRequest.showCustomizedArticles"
3014
- [label]="'SHOW_CUSTOMIZED_ARTICLES' | localize"></co-input-checkbox>
2865
+ <co-filter-item [placeholder]="'SHOW_CUSTOMIZED_ARTICLES'"
2866
+ [expanded]="true"
2867
+ [mode]="modes.Checkbox"
2868
+ [(model)]="catalogSearchService.searchRequest.showCustomizedArticles">
3015
2869
  </co-filter-item>
3016
2870
  </div>
3017
2871
  <div class="filter-item-wrapper">
3018
- <co-filter-item
3019
- [placeholder]="'SHOW_INACTIVE_ARTICLES'"
3020
- [expanded]="true"
3021
- [customContent]="true">
3022
- <co-input-checkbox
3023
- [(model)]="catalogSearchService.searchRequest.showInactiveArticles"
3024
- [label]="'SHOW_INACTIVE_ARTICLES' | localize"></co-input-checkbox>
2872
+ <co-filter-item [placeholder]="'SHOW_INACTIVE_ARTICLES'"
2873
+ [expanded]="true"
2874
+ [mode]="modes.Checkbox"
2875
+ [(model)]="catalogSearchService.searchRequest.showInactiveArticles">
3025
2876
  </co-filter-item>
3026
2877
  </div>
3027
2878
  </div>
3028
- </div>
3029
-
2879
+ </div>
3030
2880
  </div>
3031
2881
  `
3032
2882
  },] }
@@ -3078,7 +2928,12 @@ CatalogFilterModule.decorators = [
3078
2928
  CatalogFilterContentGeneralModule,
3079
2929
  CatalogFilterContentPurchaseModule,
3080
2930
  CatalogFilterContentLogisticsModule,
3081
- PipeModule
2931
+ PipeModule,
2932
+ ButtonModule,
2933
+ CoDialogModule,
2934
+ ListOfValuesModule,
2935
+ CheckboxSelectModule,
2936
+ CheckmarkOverlayModule
3082
2937
  ],
3083
2938
  declarations: [
3084
2939
  CatalogFilterComponent