@colijnit/catalog 12.1.45 → 12.1.47

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 (26) hide show
  1. package/bundles/colijnit-catalog.umd.js +133 -48
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +27 -25
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +28 -26
  6. package/esm2015/lib/catalog-version.js +3 -3
  7. package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +16 -8
  8. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +54 -71
  9. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +4 -2
  10. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +7 -10
  11. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +4 -2
  12. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +9 -13
  13. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +4 -2
  14. package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +79 -0
  15. package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.module.js +23 -0
  16. package/esm2015/lib/service/catalog-connector-adapter.service.js +2 -2
  17. package/fesm2015/colijnit-catalog.js +187 -105
  18. package/fesm2015/colijnit-catalog.js.map +1 -1
  19. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +0 -3
  20. package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +28 -0
  21. package/lib/component/catalog-filter-item/catalog-filter-item.module.d.ts +2 -0
  22. package/lib/component/catalog-filter-item/style/_layout.scss +2 -0
  23. package/lib/component/catalog-filter-item/style/_material-definition.scss +0 -0
  24. package/lib/component/catalog-filter-item/style/_theme.scss +4 -0
  25. package/lib/component/catalog-filter-item/style/material.scss +3 -0
  26. package/package.json +2 -2
@@ -40,14 +40,15 @@ import { DomSanitizer } from '@angular/platform-browser';
40
40
  import { InputCheckboxModule, SliderComponent, IconModule as IconModule$1, CheckboxSelectModule, PriceDisplayPipeModule, ButtonModule as ButtonModule$1, ImageModule as ImageModule$1 } from '@colijnit/corecomponents';
41
41
  import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
42
42
  import { FilterItemMode } from '@colijnit/corecomponents_v12/';
43
+ import { ExternalCatalogTypes } from '@colijnit/transactionapi/build/enum/external-catalog-types.enum';
43
44
 
44
45
  // this file is dynamically created, do not change this
45
46
  class Version {
46
47
  constructor() {
47
48
  this.name = "@colijnit/catalog";
48
49
  this.description = "iOne Catalog module based on Angular 12";
49
- this.symVer = "12.1.45";
50
- this.publishDate = "2-10-2023 19:34:19";
50
+ this.symVer = "12.1.47";
51
+ this.publishDate = "13-10-2023 15:39:17";
51
52
  }
52
53
  }
53
54
 
@@ -484,7 +485,7 @@ class CatalogConnectorAdapterService {
484
485
  }
485
486
  getBrandFilter(params) {
486
487
  return __awaiter(this, void 0, void 0, function* () {
487
- const response = yield this.connector.getTurnoverGroupFilter(params);
488
+ const response = yield this.connector.getBrandsFilter(params);
488
489
  if (response && response.validationResult && response.validationResult.success) {
489
490
  return this._boFactory.makeWithRawBackendData(ArticleSearchFilterSelections, response.resultObject);
490
491
  }
@@ -2378,10 +2379,7 @@ class CatalogFilterContentGeneralComponent {
2378
2379
  this._adapterService = _adapterService;
2379
2380
  this.icons = IconEnum;
2380
2381
  this.modes = FilterItemMode;
2381
- this._min = 0;
2382
- this._max = 100000;
2383
2382
  this._subs = [];
2384
- this.supplierDropdownFields = { text: "description", value: "storeGroupId" };
2385
2383
  }
2386
2384
  showClass() {
2387
2385
  return true;
@@ -2468,63 +2466,57 @@ CatalogFilterContentGeneralComponent.decorators = [
2468
2466
  <div class="catalog-filter-wrapper">
2469
2467
  <div class="filter-items-wrapper co-small-scrollbar">
2470
2468
  <div class="filter-item-wrapper">
2471
- <co-filter-item [placeholder]="'PRICE' | localize"
2472
- [expanded]="true"
2469
+ <co-catalog-filter-item [placeholder]="'PRICE'"
2473
2470
  [mode]="modes.Slider"
2474
- [sliderDefaultMin]="0"
2475
- [sliderDefaultMax]="100000"
2471
+ [sliderDefaultMin]=0
2472
+ [sliderDefaultMax]=100000
2476
2473
  [(model)]="catalogSearchService.searchRequest.rangePrice"
2477
2474
  >
2478
- </co-filter-item>
2475
+ </co-catalog-filter-item>
2479
2476
  </div>
2480
2477
  <div class="filter-item-wrapper">
2481
- <co-filter-item [placeholder]="'LENGTH' | localize"
2482
- [expanded]="true"
2478
+ <co-catalog-filter-item [placeholder]="'LENGTH'"
2483
2479
  [mode]="modes.Slider"
2484
- [sliderDefaultMin]="0"
2485
- [sliderDefaultMax]="5000"
2480
+ [sliderDefaultMin]=0
2481
+ [sliderDefaultMax]=5000
2486
2482
  [(model)]="catalogSearchService.searchRequest.length"
2487
2483
  >
2488
- </co-filter-item>
2484
+ </co-catalog-filter-item>
2489
2485
  </div>
2490
2486
  <div class="filter-item-wrapper">
2491
- <co-filter-item [placeholder]="'WIDTH' | localize"
2492
- [expanded]="true"
2487
+ <co-catalog-filter-item [placeholder]="'WIDTH'"
2493
2488
  [mode]="modes.Slider"
2494
- [sliderDefaultMin]="0"
2495
- [sliderDefaultMax]="5000"
2489
+ [sliderDefaultMin]=0
2490
+ [sliderDefaultMax]=5000
2496
2491
  [(model)]="catalogSearchService.searchRequest.width"
2497
2492
  >
2498
- </co-filter-item>
2493
+ </co-catalog-filter-item>
2499
2494
  </div>
2500
2495
  <div class="filter-item-wrapper">
2501
- <co-filter-item [placeholder]="'HEIGHT' | localize"
2502
- [expanded]="true"
2496
+ <co-catalog-filter-item [placeholder]="'HEIGHT'"
2503
2497
  [mode]="modes.Slider"
2504
- [sliderDefaultMin]="0"
2505
- [sliderDefaultMax]="5000"
2498
+ [sliderDefaultMin]=0
2499
+ [sliderDefaultMax]=5000
2506
2500
  [(model)]="catalogSearchService.searchRequest.height"
2507
2501
  >
2508
- </co-filter-item>
2502
+ </co-catalog-filter-item>
2509
2503
  </div>
2510
2504
  <div class="filter-item-wrapper">
2511
- <co-filter-item [placeholder]="'DEPTH' | localize"
2512
- [expanded]="true"
2505
+ <co-catalog-filter-item [placeholder]="'DEPTH'"
2513
2506
  [mode]="modes.Slider"
2514
- [sliderDefaultMin]="0"
2515
- [sliderDefaultMax]="5000"
2507
+ [sliderDefaultMin]=0
2508
+ [sliderDefaultMax]=5000
2516
2509
  [(model)]="catalogSearchService.searchRequest.depth"
2517
2510
  >
2518
- </co-filter-item>
2511
+ </co-catalog-filter-item>
2519
2512
  </div>
2520
- <div class="filter-item-wrapper">
2521
- <co-filter-item
2513
+ <div class="filter-item-wrapper">
2514
+ <co-catalog-filter-item
2522
2515
  [placeholder]="'ARTICLE_TYPE'"
2523
- [expanded]="true"
2524
2516
  [customContent]="true">
2525
2517
  <co-input-checkbox
2526
2518
  (modelChange)="this.handleAllChanged($event)"
2527
- [label]="'ALL' | localize"></co-input-checkbox>
2519
+ [label]="'ALL'"></co-input-checkbox>
2528
2520
  <co-input-checkbox
2529
2521
  [label]="'SHOW_REGULAR_ARTICLES' | localize"
2530
2522
  [(model)]="catalogSearchService.searchRequest.showRegularArticles"></co-input-checkbox>
@@ -2543,88 +2535,80 @@ CatalogFilterContentGeneralComponent.decorators = [
2543
2535
  <co-input-checkbox
2544
2536
  [label]="'SHOW_INACTIVE_ARTICLES' | localize"
2545
2537
  [(model)]="catalogSearchService.searchRequest.showInactiveArticles"></co-input-checkbox>
2546
- </co-filter-item>
2538
+ </co-catalog-filter-item>
2547
2539
  </div>
2548
2540
  <div class="filter-item-wrapper">
2549
- <co-filter-item [placeholder]="'AUTOMATICALLY_UPDATE' | localize"
2550
- [expanded]="true"
2541
+ <co-catalog-filter-item [placeholder]="'AUTOMATICALLY_UPDATE'"
2551
2542
  [mode]="modes.CheckboxToText"
2552
- [(model)]="catalogSearchService.searchRequest.doSync">
2553
- </co-filter-item>
2543
+ [(model)]="catalogSearchService.searchRequest.doSync"
2544
+ >
2545
+ </co-catalog-filter-item>
2554
2546
  </div>
2555
2547
  <div class="filter-item-wrapper">
2556
- <co-filter-item [placeholder]="'RETAIL_FORMULA' | localize"
2557
- [expanded]="true"
2558
- [collection]="storeGroupCollection"
2548
+ <co-catalog-filter-item [placeholder]="'RETAIL_FORMULA'"
2549
+ [collection]="storeGroupCollection"
2550
+ [mode]="modes.Filterlist"
2559
2551
  [(model)]="catalogSearchService.searchRequest.rangeStoreGroup"
2560
2552
  >
2561
- </co-filter-item>
2553
+ </co-catalog-filter-item>
2562
2554
  </div>
2563
2555
  <div class="filter-item-wrapper">
2564
- <co-filter-item [placeholder]="'IN_OUT_COLLECTION' | localize"
2565
- [expanded]="true"
2566
- [collection]="inOutCollectionCollection"
2556
+ <co-catalog-filter-item [placeholder]="'IN_OUT_COLLECTION'"
2557
+ [collection]="inOutCollectionCollection"
2558
+ [mode]="modes.Filterlist"
2567
2559
  [(model)]="catalogSearchService.searchRequest.collection"
2568
2560
  >
2569
- </co-filter-item>
2561
+ </co-catalog-filter-item>
2570
2562
  </div>
2571
2563
  <div class="filter-item-wrapper">
2572
- <co-filter-item [placeholder]="'ARTICLE_TYPE' | localize"
2573
- [expanded]="true"
2564
+ <co-catalog-filter-item [placeholder]="'ARTICLE_TYPE'"
2574
2565
  [collection]="articleTypeCollection"
2575
2566
  [mode]="modes.SelectListWithStringCollectionOutput"
2576
2567
  [(model)]="catalogSearchService.searchRequest.articleKindList"
2577
2568
  >
2578
- </co-filter-item>
2569
+ </co-catalog-filter-item>
2579
2570
  </div>
2580
2571
  <div class="filter-item-wrapper">
2581
- <co-filter-item [placeholder]="'PUBLISH_VIA' | localize"
2582
- [expanded]="true"
2572
+ <co-catalog-filter-item [placeholder]="'PUBLISH_VIA'"
2583
2573
  [collection]="artPublicationCollection"
2584
2574
  [(model)]="catalogSearchService.searchRequest.publicationCode"
2585
2575
  [mode]="modes.SelectListWithNumberOutput"
2586
2576
  >
2587
- </co-filter-item>
2577
+ </co-catalog-filter-item>
2588
2578
  </div>
2589
2579
  <div class="filter-item-wrapper">
2590
- <co-filter-item [placeholder]="'SELL_VIA' | localize"
2591
- [expanded]="true"
2580
+ <co-catalog-filter-item [placeholder]="'SELL_VIA'"
2592
2581
  [collection]="artPublicationSalesCollection"
2593
2582
  [(model)]="catalogSearchService.searchRequest.publicationWebshopSales"
2594
- [mode]="modes.SelectListWithNumberOutput"
2583
+ [mode]="modes.SelectListWithNumberOutput"
2595
2584
  >
2596
- </co-filter-item>
2585
+ </co-catalog-filter-item>
2597
2586
  </div>
2598
2587
  <div class="filter-item-wrapper">
2599
- <co-filter-item [placeholder]="'PRICELIST_SALES' | localize"
2600
- [expanded]="true"
2588
+ <co-catalog-filter-item [placeholder]="'PRICELIST_SALES'"
2601
2589
  [(model)]="catalogSearchService.searchRequest.pricelistRetail"
2602
2590
  [mode]="modes.SingleSelectList"
2603
2591
  [collection]="priceListsSalesCollection"
2604
2592
  >
2605
- </co-filter-item>
2593
+ </co-catalog-filter-item>
2606
2594
  </div>
2607
2595
  <div class="filter-item-wrapper">
2608
- <co-filter-item [placeholder]="'CATEGORY' | localize"
2609
- [expanded]="true"
2596
+ <co-catalog-filter-item [placeholder]="'CATEGORY'"
2610
2597
  [(model)]="catalogSearchService.searchRequest.category"
2611
2598
  [mode]="modes.SingleSelectList"
2612
2599
  [collection]="categoryCollection"
2613
2600
  >
2614
- </co-filter-item>
2601
+ </co-catalog-filter-item>
2615
2602
  </div>
2616
2603
  <div class="filter-item-wrapper" *ngFor="let filter of filterService.filters">
2617
- <co-filter-item
2604
+ <co-catalog-filter-item
2618
2605
  [placeholder]="filter.filterName"
2619
2606
  [collection]="filter.filterItems"
2620
- [(model)]="catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]"
2621
- [showLessLabel]="'Bekijk minder...'"
2622
- [showMoreLabel]="'Bekijk meer...'"
2623
- [searchPlaceholder]="'Zoeken...'"
2624
- [expanded]=true
2625
- [initialLimit]=5
2626
- ></co-filter-item> <!--(collectionChange)="handleCollectionChange(filter.filterName, $event)"-->
2627
- </div>
2607
+ [(model)]="catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]"
2608
+ [mode]="modes.Filterlist"
2609
+ [initialLimit]=5
2610
+ ></co-catalog-filter-item>
2611
+ </div>
2628
2612
  </div>
2629
2613
  </div>
2630
2614
  </div>
@@ -2642,6 +2626,101 @@ CatalogFilterContentGeneralComponent.propDecorators = {
2642
2626
  showClass: [{ type: HostBinding, args: ['class.co-catalog-filter',] }]
2643
2627
  };
2644
2628
 
2629
+ class CatalogFilterItemComponent {
2630
+ constructor(searchService) {
2631
+ this.searchService = searchService;
2632
+ this.collection = [];
2633
+ this.placeholder = '';
2634
+ this.customContent = false;
2635
+ this.singleSelect = false;
2636
+ this.initialLimit = 10;
2637
+ this.sliderDefaultMin = 0;
2638
+ this.sliderDefaultMax = 10000;
2639
+ this.searchCollectionPlaceholder = "SEARCH_IN_COLLECTION";
2640
+ this.modelChange = new EventEmitter();
2641
+ this.collectionChange = new EventEmitter();
2642
+ this.searchPlaceholder = "SEARCH";
2643
+ this.noResultsLabel = "NO_RESULTS";
2644
+ this.showMoreLabel = "SHOW_MORE";
2645
+ this.showLessLabel = "SHOW_LESS";
2646
+ this.filterButtonLabel = "SEARCH_IMPERATIVE";
2647
+ }
2648
+ onFilterButtonClicked() {
2649
+ this.searchService.searchArticles();
2650
+ this._scrollToTop();
2651
+ }
2652
+ _scrollToTop() {
2653
+ window.scrollTo({ top: 0, behavior: 'smooth' });
2654
+ }
2655
+ }
2656
+ CatalogFilterItemComponent.decorators = [
2657
+ { type: Component, args: [{
2658
+ selector: "co-catalog-filter-item",
2659
+ template: `
2660
+ <co-filter-item [placeholder]="placeholder | localize"
2661
+ [expanded]="true"
2662
+ [customContent]="customContent"
2663
+ [collection]="collection"
2664
+ [minSearchCharsToLoadCollection]="minSearchCharsToLoadCollection"
2665
+ [collectionLoadFn]="collectionLoadFn"
2666
+ [sliderDefaultMin]="sliderDefaultMin"
2667
+ [sliderDefaultMax]="sliderDefaultMax"
2668
+ [searchPlaceholder]="searchCollectionPlaceholder | localize"
2669
+ [noResultsLabel]="noResultsLabel | localize"
2670
+ [showMoreLabel]="showMoreLabel | localize"
2671
+ [showLessLabel]="showLessLabel | localize"
2672
+ [filterButtonLabel]="filterButtonLabel | localize"
2673
+ [model]="model"
2674
+ [mode]="mode"
2675
+ [initialLimit]="initialLimit"
2676
+ (collectionChange)="collectionChange.emit($event)"
2677
+ (modelChange)="modelChange.emit($event)"
2678
+ (filterButtonClicked)="onFilterButtonClicked()"
2679
+ >
2680
+ <ng-content></ng-content>
2681
+ </co-filter-item>
2682
+ `,
2683
+ encapsulation: ViewEncapsulation.None
2684
+ },] }
2685
+ ];
2686
+ CatalogFilterItemComponent.ctorParameters = () => [
2687
+ { type: CatalogSearchService }
2688
+ ];
2689
+ CatalogFilterItemComponent.propDecorators = {
2690
+ model: [{ type: Input }],
2691
+ mode: [{ type: Input }],
2692
+ collection: [{ type: Input }],
2693
+ placeholder: [{ type: Input }],
2694
+ customContent: [{ type: Input }],
2695
+ singleSelect: [{ type: Input }],
2696
+ minSearchCharsToLoadCollection: [{ type: Input }],
2697
+ initialLimit: [{ type: Input }],
2698
+ sliderDefaultMin: [{ type: Input }],
2699
+ sliderDefaultMax: [{ type: Input }],
2700
+ searchCollectionPlaceholder: [{ type: Input }],
2701
+ collectionLoadFn: [{ type: Input }],
2702
+ modelChange: [{ type: Output }],
2703
+ collectionChange: [{ type: Output }]
2704
+ };
2705
+
2706
+ class CatalogFilterItemModule {
2707
+ }
2708
+ CatalogFilterItemModule.decorators = [
2709
+ { type: NgModule, args: [{
2710
+ imports: [
2711
+ CommonModule,
2712
+ FilterItemModule,
2713
+ PipeModule,
2714
+ ],
2715
+ declarations: [
2716
+ CatalogFilterItemComponent
2717
+ ],
2718
+ exports: [
2719
+ CatalogFilterItemComponent
2720
+ ]
2721
+ },] }
2722
+ ];
2723
+
2645
2724
  class CatalogFilterContentGeneralModule {
2646
2725
  }
2647
2726
  CatalogFilterContentGeneralModule.decorators = [
@@ -2653,7 +2732,8 @@ CatalogFilterContentGeneralModule.decorators = [
2653
2732
  ButtonModule,
2654
2733
  IconModule,
2655
2734
  PipeModule,
2656
- InputCheckboxModule
2735
+ InputCheckboxModule,
2736
+ CatalogFilterItemModule
2657
2737
  ],
2658
2738
  declarations: [
2659
2739
  CatalogFilterContentGeneralComponent
@@ -2720,31 +2800,27 @@ CatalogFilterContentPurchaseComponent.decorators = [
2720
2800
  <div class="filter-items-wrapper co-small-scrollbar">
2721
2801
  <div class="filter-item-wrapper">
2722
2802
  <div class="filter-item-wrapper">
2723
- <co-filter-item [placeholder]="'SUPPLIER' | localize"
2724
- [expanded]="true"
2803
+ <co-catalog-filter-item [placeholder]="'SUPPLIER'"
2725
2804
  [collection]="suppliers"
2726
2805
  [(model)]="catalogSearchService.searchRequest.rangeSupplierNr"
2727
2806
  >
2728
- </co-filter-item>
2807
+ </co-catalog-filter-item>
2729
2808
  </div>
2730
- <co-filter-item [placeholder]="'ARTICLE_NR_SUPPLIER' | localize"
2731
- [expanded]="true"
2809
+ <co-catalog-filter-item [placeholder]="'ARTICLE_NR_SUPPLIER'"
2732
2810
  [mode]="modes.TextField"
2733
2811
  [(model)]="catalogSearchService.searchRequest.artNrSupplier">
2734
- </co-filter-item>
2735
- <co-filter-item [placeholder]="'REFERENCE' | localize"
2736
- [expanded]="true"
2812
+ </co-catalog-filter-item>
2813
+ <co-catalog-filter-item [placeholder]="'REFERENCE'"
2737
2814
  [mode]="modes.TextField"
2738
2815
  [(model)]="catalogSearchService.searchRequest.simpleReference">
2739
- </co-filter-item>
2816
+ </co-catalog-filter-item>
2740
2817
  <div class="filter-item-wrapper">
2741
- <co-filter-item [placeholder]="'PRICELIST_PURCHASE' | localize"
2742
- [expanded]="true"
2818
+ <co-catalog-filter-item [placeholder]="'PRICELIST_PURCHASE'"
2743
2819
  [collection]="priceListsPurchCollection"
2744
2820
  [mode]="modes.SingleSelectList"
2745
2821
  [(model)]="catalogSearchService.searchRequest.pricelistPurchase"
2746
2822
  >
2747
- </co-filter-item>
2823
+ </co-catalog-filter-item>
2748
2824
  </div>
2749
2825
  </div>
2750
2826
  </div>
@@ -2774,7 +2850,8 @@ CatalogFilterContentPurchaseModule.decorators = [
2774
2850
  InputTextModule,
2775
2851
  ButtonModule,
2776
2852
  InputCheckboxModule,
2777
- PipeModule
2853
+ PipeModule,
2854
+ CatalogFilterItemModule
2778
2855
  ],
2779
2856
  declarations: [
2780
2857
  CatalogFilterContentPurchaseComponent
@@ -2808,25 +2885,22 @@ CatalogFilterContentLogisticsComponent.decorators = [
2808
2885
  <div class="filter-items-wrapper co-small-scrollbar">
2809
2886
 
2810
2887
  <div class="filter-item-wrapper">
2811
- <co-filter-item [placeholder]="'SERIALNUMBER' | localize"
2812
- [expanded]="true"
2888
+ <co-catalog-filter-item [placeholder]="'SERIALNUMBER'"
2813
2889
  [mode]="modes.TextField"
2814
2890
  [(model)]="catalogSearchService.searchRequest.serialNumber">
2815
- </co-filter-item>
2891
+ </co-catalog-filter-item>
2816
2892
  </div>
2817
2893
  <div class="filter-item-wrapper">
2818
- <co-filter-item [placeholder]="'BATCH_NUMBER' | localize"
2819
- [expanded]="true"
2894
+ <co-catalog-filter-item [placeholder]="'BATCH_NUMBER'"
2820
2895
  [mode]="modes.TextField"
2821
2896
  [(model)]="catalogSearchService.searchRequest.batchNumber">
2822
- </co-filter-item>
2897
+ </co-catalog-filter-item>
2823
2898
  </div>
2824
2899
  <div class="filter-item-wrapper">
2825
- <co-filter-item [placeholder]="'MUTATION_DATE' | localize"
2826
- [expanded]="true"
2900
+ <co-catalog-filter-item [placeholder]="'MUTATION_DATE'"
2827
2901
  [mode]="modes.DateField"
2828
2902
  [(model)]="catalogSearchService.searchRequest.dateModified">
2829
- </co-filter-item>
2903
+ </co-catalog-filter-item>
2830
2904
  </div>
2831
2905
  </div>
2832
2906
  </div>
@@ -2854,7 +2928,8 @@ CatalogFilterContentLogisticsModule.decorators = [
2854
2928
  ButtonModule,
2855
2929
  InputCheckboxModule,
2856
2930
  InputDatePickerModule,
2857
- PipeModule
2931
+ PipeModule,
2932
+ CatalogFilterItemModule
2858
2933
  ],
2859
2934
  declarations: [
2860
2935
  CatalogFilterContentLogisticsComponent
@@ -4361,10 +4436,12 @@ class CatalogExternalSourceComponent {
4361
4436
  //}
4362
4437
  }
4363
4438
  iframeLoaded(event) {
4364
- event.target.contentWindow.postMessage({
4365
- 'USERNAME': this.username,
4366
- 'PASSWORD': this.password
4367
- }, '*');
4439
+ if (this.username && this.password) {
4440
+ event.target.contentWindow.postMessage({
4441
+ 'USERNAME': this.username,
4442
+ 'PASSWORD': this.password
4443
+ }, '*');
4444
+ }
4368
4445
  }
4369
4446
  _prepareExternalSource() {
4370
4447
  return __awaiter(this, void 0, void 0, function* () {
@@ -4388,10 +4465,15 @@ class CatalogExternalSourceComponent {
4388
4465
  this.showCatalog = true;
4389
4466
  }
4390
4467
  else {
4391
- if (this._externalSource.type !== 'WEBS') {
4468
+ if (this._externalSource.type !== ExternalCatalogTypes.Webshop) {
4392
4469
  this.externalUrl = this._externalCatalogStartupInfo.apiUrl;
4393
- this.username = this._externalCatalogStartupInfo.username;
4394
- this.password = this._externalCatalogStartupInfo.password;
4470
+ if (this._externalSource.type === ExternalCatalogTypes.Vadain) {
4471
+ this.username = this._externalCatalogStartupInfo.username;
4472
+ this.password = this._externalCatalogStartupInfo.password;
4473
+ }
4474
+ else if (this._externalSource.type == ExternalCatalogTypes.Woontotaal) {
4475
+ this.externalUrl += "?token=" + this._externalCatalogStartupInfo.token + "&isEmbedded=true";
4476
+ }
4395
4477
  }
4396
4478
  else {
4397
4479
  this.externalUrl = this._externalSource.url;
@@ -4472,5 +4554,5 @@ CatalogExternalSourceModule.decorators = [
4472
4554
  * Generated bundle index. Do not edit.
4473
4555
  */
4474
4556
 
4475
- export { BusinessObjectCacheManagerService, CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogService, CatalogSettingsService, SelectMultipleCacheService, SelectMultipleParameterizedCacheService, SelectSingleCacheService, SelectSingleParameterizedCacheService, Version, CatalogFilterCategoriesModule as ɵa, PipeModule as ɵb, CatalogSearchBaseComponent as ɵba, CatalogArticleListComponent as ɵbb, CatalogSearchResultListComponent as ɵbc, CatalogSearchComponent as ɵbd, CatalogExternalSourceComponent as ɵbe, LocalizePipe as ɵc, DictionaryService as ɵd, CatalogFilterCategoriesComponent as ɵe, CatalogFilterContentGeneralModule as ɵf, CatalogFilterContentGeneralComponent as ɵg, CacheField as ɵh, IconCacheService as ɵi, CatalogFilterContentPurchaseModule as ɵj, CatalogFilterContentPurchaseComponent as ɵk, CatalogFilterContentLogisticsModule as ɵl, CatalogFilterContentLogisticsComponent as ɵm, CatalogFilterComponent as ɵn, ResponsiveTextModule as ɵo, ResponsiveTextComponent as ɵp, CatalogCategoriesComponent as ɵq, CatalogExternalSourcesComponent as ɵr, CatalogNavigationComponent as ɵs, CatalogSearchHeaderComponent as ɵt, CatalogArticleTileComponent as ɵu, ArticleBaseComponent as ɵv, VisibilityObserverModule as ɵw, VisibilityObserverMasterDirective as ɵx, VisibilityObserverDirective as ɵy, CatalogSearchResultTileComponent as ɵz };
4557
+ export { BusinessObjectCacheManagerService, CatalogArticleListModule, CatalogArticleTileModule, CatalogCategoriesModule, CatalogConnectorAdapterService, CatalogConnectorService, CatalogEventService, CatalogExternalSourceModule, CatalogExternalSourcesModule, CatalogFilterModule, CatalogFilterService, CatalogImageService, CatalogNavigationModule, CatalogNavigationService, CatalogOptionsService, CatalogSearchHeaderModule, CatalogSearchModule, CatalogSearchResultListModule, CatalogSearchResultTileModule, CatalogSearchService, CatalogService, CatalogSettingsService, SelectMultipleCacheService, SelectMultipleParameterizedCacheService, SelectSingleCacheService, SelectSingleParameterizedCacheService, Version, CatalogFilterCategoriesModule as ɵa, PipeModule as ɵb, VisibilityObserverDirective as ɵba, CatalogSearchResultTileComponent as ɵbb, CatalogSearchBaseComponent as ɵbc, CatalogArticleListComponent as ɵbd, CatalogSearchResultListComponent as ɵbe, CatalogSearchComponent as ɵbf, CatalogExternalSourceComponent as ɵbg, LocalizePipe as ɵc, DictionaryService as ɵd, CatalogFilterCategoriesComponent as ɵe, CatalogFilterContentGeneralModule as ɵf, CatalogFilterItemModule as ɵg, CatalogFilterItemComponent as ɵh, CacheField as ɵi, CatalogFilterContentGeneralComponent as ɵj, IconCacheService as ɵk, CatalogFilterContentPurchaseModule as ɵl, CatalogFilterContentPurchaseComponent as ɵm, CatalogFilterContentLogisticsModule as ɵn, CatalogFilterContentLogisticsComponent as ɵo, CatalogFilterComponent as ɵp, ResponsiveTextModule as ɵq, ResponsiveTextComponent as ɵr, CatalogCategoriesComponent as ɵs, CatalogExternalSourcesComponent as ɵt, CatalogNavigationComponent as ɵu, CatalogSearchHeaderComponent as ɵv, CatalogArticleTileComponent as ɵw, ArticleBaseComponent as ɵx, VisibilityObserverModule as ɵy, VisibilityObserverMasterDirective as ɵz };
4476
4558
  //# sourceMappingURL=colijnit-catalog.js.map