@colijnit/catalog 256.1.0 → 256.1.2
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.
- package/bundles/colijnit-catalog.umd.js +128 -22
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog-256.1.1.tgz +0 -0
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +3 -2
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +8 -5
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +4 -1
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +32 -44
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +4 -3
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +27 -1
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +8 -2
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +10 -3
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.module.js +3 -2
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +43 -6
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +4 -2
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +5 -3
- package/esm2015/lib/enum/config-name.enum.js +32 -0
- package/esm2015/lib/service/catalog-filter.service.js +21 -4
- package/fesm2015/colijnit-catalog.js +180 -60
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-article-list/catalog-article-list.component.d.ts +1 -0
- package/lib/component/catalog-article-list/style/_layout.scss +10 -1
- package/lib/component/catalog-article-tile/catalog-article-tile.component.d.ts +1 -0
- package/lib/component/catalog-article-tile/style/_layout.scss +7 -0
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +2 -0
- package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +1 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +4 -1
- package/lib/component/catalog-search/style/_layout.scss +4 -0
- package/lib/component/catalog-search/style/_material-definition.scss +5 -0
- package/lib/component/catalog-search-result-list/catalog-search-result-list.component.d.ts +1 -0
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +1 -0
- package/lib/enum/config-name.enum.d.ts +30 -0
- package/lib/service/catalog-filter.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, Host, Directive, HostListener, ViewChildren } from '@angular/core';
|
|
2
|
+
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, ChangeDetectorRef, ViewChild, ElementRef, Pipe, NgModule, forwardRef, Host, Directive, HostListener, ViewChildren } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { __awaiter, __decorate } from 'tslib';
|
|
5
5
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -35,7 +35,7 @@ import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/tr
|
|
|
35
35
|
import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date-field.decorator';
|
|
36
36
|
import { ObjectUtils } from '@colijnit/ioneconnector/build/utils/object-utils';
|
|
37
37
|
import { FileUtils } from '@colijnit/ioneconnector/build/utils/file-utils';
|
|
38
|
-
import { FilterViewmodel, FilterItemViewmodel, FilterItemModule, InputTextModule, ButtonModule, IconModule, FilterItemMode as FilterItemMode$1, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, InputSearchModule, PaginationBarModule, SimpleGridModule } from '@colijnit/corecomponents_v12';
|
|
38
|
+
import { FilterViewmodel, FilterItemViewmodel, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, FilterItemModule, ScreenConfigurationModule, InputTextModule, ButtonModule, IconModule, FilterItemMode as FilterItemMode$1, InputDatePickerModule, IconCollapseHandleModule, CoDialogModule, ListOfValuesModule, CheckmarkOverlayModule, ImageModule, OverlayModule, OverlayService, BaseModuleScreenConfigService, InputSearchModule, PaginationBarModule, SimpleGridModule } from '@colijnit/corecomponents_v12';
|
|
39
39
|
import { PagingParameters } from '@colijnit/ioneconnector/build/model/paging-parameters';
|
|
40
40
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
41
41
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -53,8 +53,8 @@ class Version {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
this.name = "@colijnit/catalog";
|
|
55
55
|
this.description = "iOne Catalog module based on Angular 12";
|
|
56
|
-
this.symVer = "256.1.
|
|
57
|
-
this.publishDate = "10
|
|
56
|
+
this.symVer = "256.1.2";
|
|
57
|
+
this.publishDate = "23-10-2024 14:53:26";
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1819,8 +1819,6 @@ class CatalogFilterViewmodel extends FilterViewmodel {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
class CatalogFilterService {
|
|
1822
|
-
//TODO reinitialize once screenconfig is implemented
|
|
1823
|
-
//['Catalog', 'rangeCatalog'],
|
|
1824
1822
|
constructor(_iOneController) {
|
|
1825
1823
|
this._iOneController = _iOneController;
|
|
1826
1824
|
this.priceMinFilter = 0;
|
|
@@ -1844,7 +1842,23 @@ class CatalogFilterService {
|
|
|
1844
1842
|
['Material', 'rangeMaterial'],
|
|
1845
1843
|
['Tag', 'tagRange'],
|
|
1846
1844
|
['Turnover group', 'rangeTurnoverGroup'],
|
|
1847
|
-
['Brand', 'rangeBrand']
|
|
1845
|
+
['Brand', 'rangeBrand'],
|
|
1846
|
+
['Catalog', 'rangeCatalog']
|
|
1847
|
+
]);
|
|
1848
|
+
//TODO reinitialize once screenconfig is implemented
|
|
1849
|
+
//['Catalog', 'rangeCatalog'],
|
|
1850
|
+
this.filterItemConfigMap = new Map([
|
|
1851
|
+
['Product group', 'articleGroupFilter'],
|
|
1852
|
+
['Atmosphere', 'sphereCodeFilter'],
|
|
1853
|
+
['Colour', 'colorCodesFilter'],
|
|
1854
|
+
['Concept', 'conceptFilter'],
|
|
1855
|
+
['Design', 'designCodeFilter'],
|
|
1856
|
+
['Main article', 'superArticleFilter'],
|
|
1857
|
+
['Material', 'materialFilter'],
|
|
1858
|
+
['Tag', 'tagFilter'],
|
|
1859
|
+
['Turnover group', 'turnoverGroupFilter'],
|
|
1860
|
+
['Brand', 'brandFilter'],
|
|
1861
|
+
['Catalog', 'catalogFilter']
|
|
1848
1862
|
]);
|
|
1849
1863
|
}
|
|
1850
1864
|
getFilters(filters) {
|
|
@@ -1926,6 +1940,9 @@ class CatalogFilterService {
|
|
|
1926
1940
|
getFilterItemMap(key) {
|
|
1927
1941
|
return this.filterItemMap.get(key);
|
|
1928
1942
|
}
|
|
1943
|
+
getFilterItemConfigMap(key) {
|
|
1944
|
+
return this.filterItemConfigMap.get(key);
|
|
1945
|
+
}
|
|
1929
1946
|
createFilterSelectionsCollection(collection, id, description) {
|
|
1930
1947
|
let returnCollection = [];
|
|
1931
1948
|
if (collection && Array.isArray(collection)) {
|
|
@@ -2734,6 +2751,38 @@ CatalogFilterCategoriesModule.decorators = [
|
|
|
2734
2751
|
},] }
|
|
2735
2752
|
];
|
|
2736
2753
|
|
|
2754
|
+
var ConfigNameEnum;
|
|
2755
|
+
(function (ConfigNameEnum) {
|
|
2756
|
+
ConfigNameEnum["ArticleNumberFilter"] = "articleNumberFilter";
|
|
2757
|
+
ConfigNameEnum["BarcodeFilter"] = "barcodeFilter";
|
|
2758
|
+
ConfigNameEnum["PriceFilter"] = "priceFilter";
|
|
2759
|
+
ConfigNameEnum["LengthFilter"] = "lengthFilter";
|
|
2760
|
+
ConfigNameEnum["WidthFilter"] = "widthFilter";
|
|
2761
|
+
ConfigNameEnum["HeightFilter"] = "heightFilter";
|
|
2762
|
+
ConfigNameEnum["DepthFilter"] = "depthFilter";
|
|
2763
|
+
ConfigNameEnum["ArticleTypeFilter"] = "articleTypeFilter";
|
|
2764
|
+
ConfigNameEnum["ColorFilter"] = "colorFilter";
|
|
2765
|
+
ConfigNameEnum["DeliveryDateFilter"] = "deliveryDateFilter";
|
|
2766
|
+
ConfigNameEnum["RetailFormulaFilter"] = "retailFormulaFilter";
|
|
2767
|
+
ConfigNameEnum["InOutFilter"] = "inOutFilter";
|
|
2768
|
+
ConfigNameEnum["PublishFilter"] = "publishFilter";
|
|
2769
|
+
ConfigNameEnum["SellViaFilter"] = "sellViaFilter";
|
|
2770
|
+
ConfigNameEnum["CategoryFilter"] = "categoryFilter";
|
|
2771
|
+
ConfigNameEnum["SupplierFilter"] = "supplierFilter";
|
|
2772
|
+
ConfigNameEnum["ArtNrSupplierFilter"] = "artNrSupplierFilter";
|
|
2773
|
+
ConfigNameEnum["ReferenceFilter"] = "referenceFilter";
|
|
2774
|
+
ConfigNameEnum["PricelistPurchaseFilter"] = "pricelistPurchaseFilter";
|
|
2775
|
+
ConfigNameEnum["SerialNumberFilter"] = "serialNumberFilter";
|
|
2776
|
+
ConfigNameEnum["BatchNumberFilter"] = "batchNumberFilter";
|
|
2777
|
+
ConfigNameEnum["DateModifiedFilter"] = "dateModifiedFilter";
|
|
2778
|
+
ConfigNameEnum["UpdateDateFilter"] = "updateDateFilter";
|
|
2779
|
+
ConfigNameEnum["StockMutationFilter"] = "stockMutationFilter";
|
|
2780
|
+
ConfigNameEnum["WarehouseFilter"] = "warehouseFilter";
|
|
2781
|
+
ConfigNameEnum["StockStateFilter"] = "stockStateFilter";
|
|
2782
|
+
ConfigNameEnum["SourceWarehouseFilter"] = "sourceWarehouseFilter";
|
|
2783
|
+
ConfigNameEnum["TargetWarehouseFilter"] = "targetWarehouseFilter";
|
|
2784
|
+
})(ConfigNameEnum || (ConfigNameEnum = {}));
|
|
2785
|
+
|
|
2737
2786
|
class CatalogFilterContentGeneralComponent {
|
|
2738
2787
|
constructor(catalogSearchService, filterService, iconCache, _catalogConnectorService, _adapterService) {
|
|
2739
2788
|
this.catalogSearchService = catalogSearchService;
|
|
@@ -2742,6 +2791,7 @@ class CatalogFilterContentGeneralComponent {
|
|
|
2742
2791
|
this._catalogConnectorService = _catalogConnectorService;
|
|
2743
2792
|
this._adapterService = _adapterService;
|
|
2744
2793
|
this.icons = IconEnum;
|
|
2794
|
+
this.cfgName = ConfigNameEnum;
|
|
2745
2795
|
this.modes = FilterItemMode;
|
|
2746
2796
|
this._subs = [];
|
|
2747
2797
|
}
|
|
@@ -2846,6 +2896,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2846
2896
|
[mode]="modes.TextField"
|
|
2847
2897
|
[(model)]="catalogSearchService.searchRequest.articleNumber"
|
|
2848
2898
|
[expanded]="false"
|
|
2899
|
+
[screenConfigurationObjectName]="cfgName.ArticleNumberFilter"
|
|
2849
2900
|
>
|
|
2850
2901
|
</co-catalog-filter-item>
|
|
2851
2902
|
</div>
|
|
@@ -2854,6 +2905,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2854
2905
|
[mode]="modes.TextField"
|
|
2855
2906
|
[(model)]="catalogSearchService.searchRequest.barcode"
|
|
2856
2907
|
[expanded]="false"
|
|
2908
|
+
[screenConfigurationObjectName]="cfgName.BarcodeFilter"
|
|
2857
2909
|
>
|
|
2858
2910
|
</co-catalog-filter-item>
|
|
2859
2911
|
</div>
|
|
@@ -2864,6 +2916,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2864
2916
|
[sliderDefaultMax]=100000
|
|
2865
2917
|
[(model)]="catalogSearchService.searchRequest.rangePrice"
|
|
2866
2918
|
[expanded]="false"
|
|
2919
|
+
[screenConfigurationObjectName]="cfgName.PriceFilter"
|
|
2867
2920
|
>
|
|
2868
2921
|
</co-catalog-filter-item>
|
|
2869
2922
|
</div>
|
|
@@ -2874,6 +2927,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2874
2927
|
[sliderDefaultMax]=5000
|
|
2875
2928
|
[(model)]="catalogSearchService.searchRequest.length"
|
|
2876
2929
|
[expanded]="false"
|
|
2930
|
+
[screenConfigurationObjectName]="cfgName.LengthFilter"
|
|
2877
2931
|
>
|
|
2878
2932
|
</co-catalog-filter-item>
|
|
2879
2933
|
</div>
|
|
@@ -2883,7 +2937,8 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2883
2937
|
[sliderDefaultMin]=0
|
|
2884
2938
|
[sliderDefaultMax]=5000
|
|
2885
2939
|
[(model)]="catalogSearchService.searchRequest.width"
|
|
2886
|
-
[expanded]="false"
|
|
2940
|
+
[expanded]="false"
|
|
2941
|
+
[screenConfigurationObjectName]="cfgName.WidthFilter"
|
|
2887
2942
|
>
|
|
2888
2943
|
</co-catalog-filter-item>
|
|
2889
2944
|
</div>
|
|
@@ -2893,7 +2948,8 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2893
2948
|
[sliderDefaultMin]=0
|
|
2894
2949
|
[sliderDefaultMax]=5000
|
|
2895
2950
|
[(model)]="catalogSearchService.searchRequest.height"
|
|
2896
|
-
[expanded]="false"
|
|
2951
|
+
[expanded]="false"
|
|
2952
|
+
[screenConfigurationObjectName]="cfgName.HeightFilter"
|
|
2897
2953
|
>
|
|
2898
2954
|
</co-catalog-filter-item>
|
|
2899
2955
|
</div>
|
|
@@ -2903,14 +2959,16 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2903
2959
|
[sliderDefaultMin]=0
|
|
2904
2960
|
[sliderDefaultMax]=5000
|
|
2905
2961
|
[(model)]="catalogSearchService.searchRequest.depth"
|
|
2906
|
-
[expanded]="false"
|
|
2962
|
+
[expanded]="false"
|
|
2963
|
+
[screenConfigurationObjectName]="cfgName.DepthFilter"
|
|
2907
2964
|
>
|
|
2908
2965
|
</co-catalog-filter-item>
|
|
2909
2966
|
</div>
|
|
2910
2967
|
<div class="filter-item-wrapper">
|
|
2911
2968
|
<co-catalog-filter-item
|
|
2912
2969
|
[placeholder]="'ARTICLE_TYPE'"
|
|
2913
|
-
[customContent]="true"
|
|
2970
|
+
[customContent]="true"
|
|
2971
|
+
[screenConfigurationObjectName]="cfgName.ArticleTypeFilter">
|
|
2914
2972
|
<co-input-checkbox
|
|
2915
2973
|
(modelChange)="this.handleAllChanged($event)"
|
|
2916
2974
|
[label]="'ALL'"></co-input-checkbox>
|
|
@@ -2941,6 +2999,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2941
2999
|
[mode]="modes.SelectListWithStringCollectionOutput"
|
|
2942
3000
|
[collection]="colorCollection"
|
|
2943
3001
|
[expanded]="false"
|
|
3002
|
+
[screenConfigurationObjectName]="cfgName.ColorFilter"
|
|
2944
3003
|
>
|
|
2945
3004
|
</co-catalog-filter-item>
|
|
2946
3005
|
</div>
|
|
@@ -2949,51 +3008,17 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
2949
3008
|
[(model)]="catalogSearchService.searchRequest.latestDeliveryDate"
|
|
2950
3009
|
[mode]="modes.DateField"
|
|
2951
3010
|
[expanded]="false"
|
|
3011
|
+
[screenConfigurationObjectName]="cfgName.DeliveryDateFilter"
|
|
2952
3012
|
>
|
|
2953
3013
|
</co-catalog-filter-item>
|
|
2954
3014
|
</div>
|
|
2955
3015
|
|
|
2956
|
-
<!--TODO reinitialize once screenconfig is implemented-->
|
|
2957
|
-
<!--<div class="filter-item-wrapper">
|
|
2958
|
-
<co-catalog-filter-item
|
|
2959
|
-
[placeholder]="'ARTICLE_TYPE'"
|
|
2960
|
-
[customContent]="true">
|
|
2961
|
-
<co-input-checkbox
|
|
2962
|
-
(modelChange)="this.handleAllChanged($event)"
|
|
2963
|
-
[label]="'ALL'"></co-input-checkbox>
|
|
2964
|
-
<co-input-checkbox
|
|
2965
|
-
[label]="'SHOW_REGULAR_ARTICLES' | localize"
|
|
2966
|
-
[(model)]="catalogSearchService.searchRequest.showRegularArticles"></co-input-checkbox>
|
|
2967
|
-
<co-input-checkbox
|
|
2968
|
-
[label]="'SHOW_CONFIGURED_ARTICLES' | localize"
|
|
2969
|
-
[(model)]="catalogSearchService.searchRequest.showConfiguredArticles"></co-input-checkbox>
|
|
2970
|
-
<co-input-checkbox
|
|
2971
|
-
[label]="'BASE_ARTICLES' | localize"
|
|
2972
|
-
[(model)]="catalogSearchService.searchRequest.showConfigurableArticles"></co-input-checkbox>
|
|
2973
|
-
<co-input-checkbox
|
|
2974
|
-
[label]="'COMPOSITION_ARTICLES' | localize"
|
|
2975
|
-
[(model)]="catalogSearchService.searchRequest.showCompositionArticles"></co-input-checkbox>
|
|
2976
|
-
<co-input-checkbox
|
|
2977
|
-
[label]="'SHOW_CUSTOMIZED_ARTICLES' | localize"
|
|
2978
|
-
[(model)]="catalogSearchService.searchRequest.showCustomizedArticles"></co-input-checkbox>
|
|
2979
|
-
<co-input-checkbox
|
|
2980
|
-
[label]="'SHOW_INACTIVE_ARTICLES' | localize"
|
|
2981
|
-
[(model)]="catalogSearchService.searchRequest.showInactiveArticles"></co-input-checkbox>
|
|
2982
|
-
</co-catalog-filter-item>
|
|
2983
|
-
</div>
|
|
2984
|
-
<div class="filter-item-wrapper">
|
|
2985
|
-
<co-catalog-filter-item [placeholder]="'AUTOMATICALLY_UPDATE'"
|
|
2986
|
-
[collection]="doSyncCollection"
|
|
2987
|
-
[mode]="modes.Filterlist"
|
|
2988
|
-
[(model)]="catalogSearchService.searchRequest.doSync"
|
|
2989
|
-
>
|
|
2990
|
-
</co-catalog-filter-item>
|
|
2991
|
-
</div> -->
|
|
2992
3016
|
<div class="filter-item-wrapper">
|
|
2993
3017
|
<co-catalog-filter-item [placeholder]="'RETAIL_FORMULA'"
|
|
2994
3018
|
[collection]="storeGroupCollection"
|
|
2995
3019
|
[mode]="modes.Filterlist"
|
|
2996
3020
|
[(model)]="catalogSearchService.searchRequest.rangeStoreGroup"
|
|
3021
|
+
[screenConfigurationObjectName]="cfgName.RetailFormulaFilter"
|
|
2997
3022
|
>
|
|
2998
3023
|
</co-catalog-filter-item>
|
|
2999
3024
|
</div>
|
|
@@ -3002,6 +3027,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3002
3027
|
[collection]="inOutCollectionCollection"
|
|
3003
3028
|
[mode]="modes.Filterlist"
|
|
3004
3029
|
[(model)]="catalogSearchService.searchRequest.collection"
|
|
3030
|
+
[screenConfigurationObjectName]="cfgName.InOutFilter"
|
|
3005
3031
|
>
|
|
3006
3032
|
</co-catalog-filter-item>
|
|
3007
3033
|
</div>
|
|
@@ -3011,6 +3037,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3011
3037
|
[collection]="articleTypeCollection"
|
|
3012
3038
|
[mode]="modes.SelectListWithStringCollectionOutput"
|
|
3013
3039
|
[(model)]="catalogSearchService.searchRequest.articleKindList"
|
|
3040
|
+
[screenConfigurationObjectName]="Filter"
|
|
3014
3041
|
>
|
|
3015
3042
|
</co-catalog-filter-item>
|
|
3016
3043
|
</div>-->
|
|
@@ -3019,6 +3046,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3019
3046
|
[collection]="artPublicationCollection"
|
|
3020
3047
|
[(model)]="catalogSearchService.searchRequest.publicationCode"
|
|
3021
3048
|
[mode]="modes.SelectListWithNumberOutput"
|
|
3049
|
+
[screenConfigurationObjectName]="cfgName.PublishFilter"
|
|
3022
3050
|
[expanded]="false"
|
|
3023
3051
|
>
|
|
3024
3052
|
</co-catalog-filter-item>
|
|
@@ -3029,15 +3057,16 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3029
3057
|
[(model)]="catalogSearchService.searchRequest.publicationWebshopSales"
|
|
3030
3058
|
[mode]="modes.SelectListWithNumberOutput"
|
|
3031
3059
|
[expanded]="false"
|
|
3060
|
+
[screenConfigurationObjectName]="cfgName.SellViaFilter"
|
|
3032
3061
|
>
|
|
3033
3062
|
</co-catalog-filter-item>
|
|
3034
3063
|
</div>
|
|
3035
|
-
<!--TODO reinitialize once screenconfig is implemented-->
|
|
3036
3064
|
<!--<div class="filter-item-wrapper">
|
|
3037
3065
|
<co-catalog-filter-item [placeholder]="'PRICELIST_SALES'"
|
|
3038
3066
|
[(model)]="catalogSearchService.searchRequest.pricelistRetail"
|
|
3039
3067
|
[mode]="modes.SingleSelectList"
|
|
3040
3068
|
[collection]="priceListsSalesCollection"
|
|
3069
|
+
[screenConfigurationObjectName]="cfgName.pricelistSalesFilter"
|
|
3041
3070
|
>
|
|
3042
3071
|
</co-catalog-filter-item>
|
|
3043
3072
|
</div>-->
|
|
@@ -3046,6 +3075,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3046
3075
|
[(model)]="catalogSearchService.searchRequest.category"
|
|
3047
3076
|
[mode]="modes.Filterlist"
|
|
3048
3077
|
[collection]="categoryCollection"
|
|
3078
|
+
[screenConfigurationObjectName]="cfgName.CategoryFilter"
|
|
3049
3079
|
>
|
|
3050
3080
|
</co-catalog-filter-item>
|
|
3051
3081
|
</div>
|
|
@@ -3053,6 +3083,7 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3053
3083
|
<co-catalog-filter-item
|
|
3054
3084
|
[placeholder]="filter.filterName"
|
|
3055
3085
|
[collection]="filter.filterItems"
|
|
3086
|
+
[screenConfigurationObjectName]="filterService.getFilterItemConfigMap(filter.filterName)"
|
|
3056
3087
|
[(model)]="catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]"
|
|
3057
3088
|
[mode]="modes.Filterlist"
|
|
3058
3089
|
[initialLimit]=5
|
|
@@ -3061,7 +3092,11 @@ CatalogFilterContentGeneralComponent.decorators = [
|
|
|
3061
3092
|
</div>
|
|
3062
3093
|
</div>
|
|
3063
3094
|
</div>
|
|
3064
|
-
|
|
3095
|
+
`,
|
|
3096
|
+
providers: [{
|
|
3097
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
3098
|
+
useExisting: forwardRef(() => CatalogFilterContentGeneralComponent)
|
|
3099
|
+
}]
|
|
3065
3100
|
},] }
|
|
3066
3101
|
];
|
|
3067
3102
|
CatalogFilterContentGeneralComponent.ctorParameters = () => [
|
|
@@ -3126,10 +3161,15 @@ CatalogFilterItemComponent.decorators = [
|
|
|
3126
3161
|
(collectionChange)="collectionChange.emit($event)"
|
|
3127
3162
|
(modelChange)="modelChange.emit($event)"
|
|
3128
3163
|
(filterButtonClicked)="onFilterButtonClicked()"
|
|
3164
|
+
[screenConfigurationObject]="screenConfigurationObjectName"
|
|
3129
3165
|
>
|
|
3130
3166
|
<ng-content></ng-content>
|
|
3131
3167
|
</co-filter-item>
|
|
3132
3168
|
`,
|
|
3169
|
+
providers: [{
|
|
3170
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
3171
|
+
useExisting: forwardRef(() => CatalogFilterItemComponent)
|
|
3172
|
+
}],
|
|
3133
3173
|
encapsulation: ViewEncapsulation.None
|
|
3134
3174
|
},] }
|
|
3135
3175
|
];
|
|
@@ -3151,7 +3191,8 @@ CatalogFilterItemComponent.propDecorators = {
|
|
|
3151
3191
|
searchCollectionPlaceholder: [{ type: Input }],
|
|
3152
3192
|
collectionLoadFn: [{ type: Input }],
|
|
3153
3193
|
modelChange: [{ type: Output }],
|
|
3154
|
-
collectionChange: [{ type: Output }]
|
|
3194
|
+
collectionChange: [{ type: Output }],
|
|
3195
|
+
screenConfigurationObjectName: [{ type: Input }]
|
|
3155
3196
|
};
|
|
3156
3197
|
|
|
3157
3198
|
class CatalogFilterItemModule {
|
|
@@ -3162,6 +3203,7 @@ CatalogFilterItemModule.decorators = [
|
|
|
3162
3203
|
CommonModule,
|
|
3163
3204
|
FilterItemModule,
|
|
3164
3205
|
PipeModule,
|
|
3206
|
+
ScreenConfigurationModule,
|
|
3165
3207
|
],
|
|
3166
3208
|
declarations: [
|
|
3167
3209
|
CatalogFilterItemComponent
|
|
@@ -3184,7 +3226,8 @@ CatalogFilterContentGeneralModule.decorators = [
|
|
|
3184
3226
|
IconModule,
|
|
3185
3227
|
PipeModule,
|
|
3186
3228
|
InputCheckboxModule,
|
|
3187
|
-
CatalogFilterItemModule
|
|
3229
|
+
CatalogFilterItemModule,
|
|
3230
|
+
ScreenConfigurationModule
|
|
3188
3231
|
],
|
|
3189
3232
|
declarations: [
|
|
3190
3233
|
CatalogFilterContentGeneralComponent
|
|
@@ -3203,6 +3246,7 @@ class CatalogFilterContentPurchaseComponent {
|
|
|
3203
3246
|
this._catalogConnectorService = _catalogConnectorService;
|
|
3204
3247
|
this._adapterService = _adapterService;
|
|
3205
3248
|
this.icons = IconEnum;
|
|
3249
|
+
this.cfgName = ConfigNameEnum;
|
|
3206
3250
|
this.modes = FilterItemMode$1;
|
|
3207
3251
|
this._subs = [];
|
|
3208
3252
|
}
|
|
@@ -3253,22 +3297,26 @@ CatalogFilterContentPurchaseComponent.decorators = [
|
|
|
3253
3297
|
<div class="filter-item-wrapper">
|
|
3254
3298
|
<co-catalog-filter-item [placeholder]="'SUPPLIER'"
|
|
3255
3299
|
[collection]="suppliers"
|
|
3300
|
+
[screenConfigurationObjectName]="cfgName.SupplierFilter"
|
|
3256
3301
|
[(model)]="catalogSearchService.searchRequest.rangeSupplierNr"
|
|
3257
3302
|
>
|
|
3258
3303
|
</co-catalog-filter-item>
|
|
3259
3304
|
</div>
|
|
3260
3305
|
<co-catalog-filter-item [placeholder]="'ARTICLE_NR_SUPPLIER'"
|
|
3261
3306
|
[mode]="modes.TextField"
|
|
3307
|
+
[screenConfigurationObjectName]="cfgName.ArtNrSupplierFilter"
|
|
3262
3308
|
[(model)]="catalogSearchService.searchRequest.artNrSupplier">
|
|
3263
3309
|
</co-catalog-filter-item>
|
|
3264
3310
|
<co-catalog-filter-item [placeholder]="'REFERENCE'"
|
|
3265
|
-
[mode]="modes.TextField"
|
|
3311
|
+
[mode]="modes.TextField"
|
|
3312
|
+
[screenConfigurationObjectName]="cfgName.ReferenceFilter"
|
|
3266
3313
|
[(model)]="catalogSearchService.searchRequest.simpleReference">
|
|
3267
3314
|
</co-catalog-filter-item>
|
|
3268
3315
|
<div class="filter-item-wrapper">
|
|
3269
3316
|
<co-catalog-filter-item [placeholder]="'PRICELIST_PURCHASE'"
|
|
3270
3317
|
[collection]="priceListsPurchCollection"
|
|
3271
3318
|
[mode]="modes.Filterlist"
|
|
3319
|
+
[screenConfigurationObjectName]="cfgName.PricelistPurchaseFilter"
|
|
3272
3320
|
[(model)]="catalogSearchService.searchRequest.pricelistPurchase"
|
|
3273
3321
|
>
|
|
3274
3322
|
</co-catalog-filter-item>
|
|
@@ -3318,6 +3366,7 @@ class CatalogFilterContentLogisticsComponent {
|
|
|
3318
3366
|
this.catalogSearchService = catalogSearchService;
|
|
3319
3367
|
this.iconCache = iconCache;
|
|
3320
3368
|
this.catalogService = catalogService;
|
|
3369
|
+
this.cfgName = ConfigNameEnum;
|
|
3321
3370
|
this.modes = FilterItemMode$1;
|
|
3322
3371
|
this.icons = IconEnum;
|
|
3323
3372
|
this.StockView = StockView;
|
|
@@ -3350,6 +3399,7 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3350
3399
|
<co-catalog-filter-item
|
|
3351
3400
|
[placeholder]="'SERIALNUMBER'"
|
|
3352
3401
|
[mode]="modes.TextField"
|
|
3402
|
+
[screenConfigurationObjectName]="cfgName.SerialNumberFilter"
|
|
3353
3403
|
[(model)]="catalogSearchService.searchRequest.serialNumber">
|
|
3354
3404
|
</co-catalog-filter-item>
|
|
3355
3405
|
</div>
|
|
@@ -3357,6 +3407,7 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3357
3407
|
<co-catalog-filter-item
|
|
3358
3408
|
[placeholder]="'BATCH_NUMBER'"
|
|
3359
3409
|
[mode]="modes.TextField"
|
|
3410
|
+
[screenConfigurationObjectName]="cfgName.BatchNumberFilter"
|
|
3360
3411
|
[(model)]="catalogSearchService.searchRequest.batchNumber">
|
|
3361
3412
|
</co-catalog-filter-item>
|
|
3362
3413
|
</div>
|
|
@@ -3364,6 +3415,7 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3364
3415
|
<co-catalog-filter-item
|
|
3365
3416
|
[placeholder]="'MUTATION_DATE'"
|
|
3366
3417
|
[mode]="modes.DateField"
|
|
3418
|
+
[screenConfigurationObjectName]="cfgName.DateModifiedFilter"
|
|
3367
3419
|
[(model)]="catalogSearchService.searchRequest.dateModified">
|
|
3368
3420
|
</co-catalog-filter-item>
|
|
3369
3421
|
</div>
|
|
@@ -3372,12 +3424,14 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3372
3424
|
<div class="filter-item-wrapper">
|
|
3373
3425
|
<co-catalog-filter-item
|
|
3374
3426
|
[placeholder]="'UPDATE_DATE'"
|
|
3427
|
+
[screenConfigurationObjectName]="cfgName.UpdateDateFilter"
|
|
3375
3428
|
[mode]="modes.DateRangeField">
|
|
3376
3429
|
</co-catalog-filter-item>
|
|
3377
3430
|
</div>
|
|
3378
3431
|
<div class="filter-item-wrapper">
|
|
3379
3432
|
<co-catalog-filter-item
|
|
3380
3433
|
[placeholder]="'STOCK_MUTATION_DATE'"
|
|
3434
|
+
[screenConfigurationObjectName]="cfgName.StockMutationFilter"
|
|
3381
3435
|
[mode]="modes.DateRangeField">
|
|
3382
3436
|
</co-catalog-filter-item>
|
|
3383
3437
|
</div>
|
|
@@ -3386,36 +3440,42 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3386
3440
|
<div class="filter-item-wrapper">
|
|
3387
3441
|
<co-catalog-filter-item
|
|
3388
3442
|
[placeholder]="'UPDATE_DATE'"
|
|
3443
|
+
[screenConfigurationObjectName]="cfgName.UpdateDateFilter"
|
|
3389
3444
|
[mode]="modes.DateRangeField">
|
|
3390
3445
|
</co-catalog-filter-item>
|
|
3391
3446
|
</div>
|
|
3392
3447
|
<div class="filter-item-wrapper">
|
|
3393
3448
|
<co-catalog-filter-item
|
|
3394
3449
|
[placeholder]="'STOCK_MUTATION_DATE'"
|
|
3450
|
+
[screenConfigurationObjectName]="cfgName.StockMutationFilter"
|
|
3395
3451
|
[mode]="modes.DateRangeField">
|
|
3396
3452
|
</co-catalog-filter-item>
|
|
3397
3453
|
</div>
|
|
3398
3454
|
<div class="filter-item-wrapper">
|
|
3399
3455
|
<co-catalog-filter-item
|
|
3400
3456
|
[placeholder]="'WAREHOUSE'"
|
|
3457
|
+
[screenConfigurationObjectName]="cfgName.WarehouseFilter"
|
|
3401
3458
|
[mode]="modes.Filterlist">
|
|
3402
3459
|
</co-catalog-filter-item>
|
|
3403
3460
|
</div>
|
|
3404
3461
|
<div class="filter-item-wrapper">
|
|
3405
3462
|
<co-catalog-filter-item
|
|
3406
3463
|
[placeholder]="'STOCK_STATUS'"
|
|
3464
|
+
[screenConfigurationObjectName]="cfgName.StockStateFilter"
|
|
3407
3465
|
[mode]="modes.Filterlist">
|
|
3408
3466
|
</co-catalog-filter-item>
|
|
3409
3467
|
</div>
|
|
3410
3468
|
<div class="filter-item-wrapper">
|
|
3411
3469
|
<co-catalog-filter-item
|
|
3412
3470
|
[placeholder]="'SERIAL_NUMBER'"
|
|
3471
|
+
[screenConfigurationObjectName]="cfgName.SerialNumberFilter"
|
|
3413
3472
|
[mode]="modes.TextField">
|
|
3414
3473
|
</co-catalog-filter-item>
|
|
3415
3474
|
</div>
|
|
3416
3475
|
<div class="filter-item-wrapper">
|
|
3417
3476
|
<co-catalog-filter-item
|
|
3418
3477
|
[placeholder]="'BATCH_NO'"
|
|
3478
|
+
[screenConfigurationObjectName]="cfgName.BatchNumberFilter"
|
|
3419
3479
|
[mode]="modes.TextField">
|
|
3420
3480
|
</co-catalog-filter-item>
|
|
3421
3481
|
</div>
|
|
@@ -3424,42 +3484,49 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3424
3484
|
<div class="filter-item-wrapper">
|
|
3425
3485
|
<co-catalog-filter-item
|
|
3426
3486
|
[placeholder]="'UPDATE_DATE'"
|
|
3487
|
+
[screenConfigurationObjectName]="cfgName.WarehouseFilter"
|
|
3427
3488
|
[mode]="modes.DateRangeField">
|
|
3428
3489
|
</co-catalog-filter-item>
|
|
3429
3490
|
</div>
|
|
3430
3491
|
<div class="filter-item-wrapper">
|
|
3431
3492
|
<co-catalog-filter-item
|
|
3432
3493
|
[placeholder]="'STOCK_MUTATION_DATE'"
|
|
3494
|
+
[screenConfigurationObjectName]="cfgName.StockMutationFilter"
|
|
3433
3495
|
[mode]="modes.DateRangeField">
|
|
3434
3496
|
</co-catalog-filter-item>
|
|
3435
3497
|
</div>
|
|
3436
3498
|
<div class="filter-item-wrapper">
|
|
3437
3499
|
<co-catalog-filter-item
|
|
3438
3500
|
[placeholder]="'STOCK_STATUS'"
|
|
3501
|
+
[screenConfigurationObjectName]="cfgName.StockStateFilter"
|
|
3439
3502
|
[mode]="modes.Filterlist">
|
|
3440
3503
|
</co-catalog-filter-item>
|
|
3441
3504
|
</div>
|
|
3442
3505
|
<div class="filter-item-wrapper">
|
|
3443
3506
|
<co-catalog-filter-item
|
|
3444
3507
|
[placeholder]="'SERIAL_NUMBER'"
|
|
3508
|
+
[screenConfigurationObjectName]="cfgName.SerialNumberFilter"
|
|
3445
3509
|
[mode]="modes.TextField">
|
|
3446
3510
|
</co-catalog-filter-item>
|
|
3447
3511
|
</div>
|
|
3448
3512
|
<div class="filter-item-wrapper">
|
|
3449
3513
|
<co-catalog-filter-item
|
|
3450
3514
|
[placeholder]="'BATCH_NO'"
|
|
3515
|
+
[screenConfigurationObjectName]="cfgName.BatchNumberFilter"
|
|
3451
3516
|
[mode]="modes.TextField">
|
|
3452
3517
|
</co-catalog-filter-item>
|
|
3453
3518
|
</div>
|
|
3454
3519
|
<div class="filter-item-wrapper">
|
|
3455
3520
|
<co-catalog-filter-item
|
|
3456
3521
|
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
3522
|
+
[screenConfigurationObjectName]="cfgName.SourceWarehouseFilter"
|
|
3457
3523
|
[mode]="modes.Filterlist">
|
|
3458
3524
|
</co-catalog-filter-item>
|
|
3459
3525
|
</div>
|
|
3460
3526
|
<div class="filter-item-wrapper">
|
|
3461
3527
|
<co-catalog-filter-item
|
|
3462
3528
|
[placeholder]="'TARGET_WAREHOUSE'"
|
|
3529
|
+
[screenConfigurationObjectName]="cfgName.TargetWarehouseFilter"
|
|
3463
3530
|
[mode]="modes.Filterlist">
|
|
3464
3531
|
</co-catalog-filter-item>
|
|
3465
3532
|
</div>
|
|
@@ -3468,36 +3535,42 @@ CatalogFilterContentLogisticsComponent.decorators = [
|
|
|
3468
3535
|
<div class="filter-item-wrapper">
|
|
3469
3536
|
<co-catalog-filter-item
|
|
3470
3537
|
[placeholder]="'UPDATE_DATE'"
|
|
3538
|
+
[screenConfigurationObjectName]="cfgName.UpdateDateFilter"
|
|
3471
3539
|
[mode]="modes.DateRangeField">
|
|
3472
3540
|
</co-catalog-filter-item>
|
|
3473
3541
|
</div>
|
|
3474
3542
|
<div class="filter-item-wrapper">
|
|
3475
3543
|
<co-catalog-filter-item
|
|
3476
3544
|
[placeholder]="'STOCK_STATUS'"
|
|
3545
|
+
[screenConfigurationObjectName]="cfgName.StockStateFilter"
|
|
3477
3546
|
[mode]="modes.Filterlist">
|
|
3478
3547
|
</co-catalog-filter-item>
|
|
3479
3548
|
</div>
|
|
3480
3549
|
<div class="filter-item-wrapper">
|
|
3481
3550
|
<co-catalog-filter-item
|
|
3482
3551
|
[placeholder]="'SERIAL_NUMBER'"
|
|
3552
|
+
[screenConfigurationObjectName]="cfgName.SerialNumberFilter"
|
|
3483
3553
|
[mode]="modes.TextField">
|
|
3484
3554
|
</co-catalog-filter-item>
|
|
3485
3555
|
</div>
|
|
3486
3556
|
<div class="filter-item-wrapper">
|
|
3487
3557
|
<co-catalog-filter-item
|
|
3488
3558
|
[placeholder]="'BATCH_NO'"
|
|
3559
|
+
[screenConfigurationObjectName]="cfgName.BatchNumberFilter"
|
|
3489
3560
|
[mode]="modes.TextField">
|
|
3490
3561
|
</co-catalog-filter-item>
|
|
3491
3562
|
</div>
|
|
3492
3563
|
<div class="filter-item-wrapper">
|
|
3493
3564
|
<co-catalog-filter-item
|
|
3494
3565
|
[placeholder]="'SOURCE_WAREHOUSE'"
|
|
3566
|
+
[screenConfigurationObjectName]="cfgName.SourceWarehouseFilter"
|
|
3495
3567
|
[mode]="modes.Filterlist">
|
|
3496
3568
|
</co-catalog-filter-item>
|
|
3497
3569
|
</div>
|
|
3498
3570
|
<div class="filter-item-wrapper">
|
|
3499
3571
|
<co-catalog-filter-item
|
|
3500
3572
|
[placeholder]="'TARGET_WAREHOUSE'"
|
|
3573
|
+
[screenConfigurationObjectName]="cfgName.TargetWarehouseFilter"
|
|
3501
3574
|
[mode]="modes.Filterlist">
|
|
3502
3575
|
</co-catalog-filter-item>
|
|
3503
3576
|
</div>
|
|
@@ -4223,12 +4296,13 @@ CatalogStockComparisonService.ctorParameters = () => [
|
|
|
4223
4296
|
];
|
|
4224
4297
|
|
|
4225
4298
|
class CatalogSearchComponent {
|
|
4226
|
-
constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService) {
|
|
4299
|
+
constructor(_settingsService, _catalogService, _catalogSearchService, _catalogEventService, iconCacheService, _cfgService) {
|
|
4227
4300
|
this._settingsService = _settingsService;
|
|
4228
4301
|
this._catalogService = _catalogService;
|
|
4229
4302
|
this._catalogSearchService = _catalogSearchService;
|
|
4230
4303
|
this._catalogEventService = _catalogEventService;
|
|
4231
4304
|
this.iconCacheService = iconCacheService;
|
|
4305
|
+
this._cfgService = _cfgService;
|
|
4232
4306
|
this.icons = IconEnum;
|
|
4233
4307
|
this.createFrozenArticle = true;
|
|
4234
4308
|
this.showNavigation = false;
|
|
@@ -4254,6 +4328,7 @@ class CatalogSearchComponent {
|
|
|
4254
4328
|
else {
|
|
4255
4329
|
this._settings = value;
|
|
4256
4330
|
}
|
|
4331
|
+
this._catalogService.init(this._settings, true);
|
|
4257
4332
|
}
|
|
4258
4333
|
}
|
|
4259
4334
|
showClass() {
|
|
@@ -4262,7 +4337,9 @@ class CatalogSearchComponent {
|
|
|
4262
4337
|
ngOnInit() {
|
|
4263
4338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4264
4339
|
yield this._settingsService.initializeSettings();
|
|
4265
|
-
|
|
4340
|
+
if (this.settings) {
|
|
4341
|
+
yield this._catalogService.init(this._settings, true);
|
|
4342
|
+
}
|
|
4266
4343
|
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe((article) => {
|
|
4267
4344
|
this.onAddArticleButtonClick.emit(article);
|
|
4268
4345
|
}), this._catalogEventService.arButtonClick.subscribe((article) => {
|
|
@@ -4273,7 +4350,30 @@ class CatalogSearchComponent {
|
|
|
4273
4350
|
this.onLookAtArticleButtonClick.emit(article);
|
|
4274
4351
|
}), this._catalogEventService.stockDetailsClick.subscribe((article) => {
|
|
4275
4352
|
this.onStockDetailsClick.emit(article);
|
|
4353
|
+
}), this._cfgService.configSet.subscribe((config) => {
|
|
4354
|
+
if (config && config.length > 0) {
|
|
4355
|
+
let configObject = this._cfgService.getObjectConfigurationFor('resultSetting');
|
|
4356
|
+
if (configObject) {
|
|
4357
|
+
if (configObject.getDefaultBooleanValue()) {
|
|
4358
|
+
this.mode = 'tile';
|
|
4359
|
+
}
|
|
4360
|
+
else {
|
|
4361
|
+
this.mode = 'list';
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4276
4365
|
}));
|
|
4366
|
+
if (this._cfgService.configObjects && this._cfgService.configObjects.length > 0) {
|
|
4367
|
+
let config = this._cfgService.getObjectConfigurationFor('resultSetting');
|
|
4368
|
+
if (config) {
|
|
4369
|
+
if (config.getDefaultBooleanValue()) {
|
|
4370
|
+
this.mode = 'tile';
|
|
4371
|
+
}
|
|
4372
|
+
else {
|
|
4373
|
+
this.mode = 'list';
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4277
4377
|
});
|
|
4278
4378
|
}
|
|
4279
4379
|
ngOnDestroy() {
|
|
@@ -4306,6 +4406,7 @@ CatalogSearchComponent.decorators = [
|
|
|
4306
4406
|
[iconData]="iconCacheService.getIcon(icons.SyncAlt)"
|
|
4307
4407
|
(click)="handleResetButtonClick($event)">
|
|
4308
4408
|
</co-icon>
|
|
4409
|
+
<span (click)="handleResetButtonClick($event)" [textContent]="'reset'" class="reset-filter-text"></span>
|
|
4309
4410
|
</div>
|
|
4310
4411
|
<co-icon class="clickable"
|
|
4311
4412
|
[iconData]="iconCacheService.getIcon(icons.Cancel)"
|
|
@@ -4356,11 +4457,13 @@ CatalogSearchComponent.decorators = [
|
|
|
4356
4457
|
<ng-container *ngIf="mode === 'tile'">
|
|
4357
4458
|
<co-catalog-search-result-tile
|
|
4358
4459
|
[createFrozenArticle]="createFrozenArticle"
|
|
4460
|
+
[isHomeDecoHub]="isHomeDecoHub"
|
|
4359
4461
|
></co-catalog-search-result-tile>
|
|
4360
4462
|
</ng-container>
|
|
4361
4463
|
<ng-container *ngIf="mode === 'list'">
|
|
4362
4464
|
<co-catalog-search-result-list
|
|
4363
4465
|
[createFrozenArticle]="createFrozenArticle"
|
|
4466
|
+
[isHomeDecoHub]="isHomeDecoHub"
|
|
4364
4467
|
></co-catalog-search-result-list>
|
|
4365
4468
|
</ng-container>
|
|
4366
4469
|
<ng-container *ngIf="mode === 'grid'">
|
|
@@ -4388,7 +4491,11 @@ CatalogSearchComponent.decorators = [
|
|
|
4388
4491
|
CatalogSearchService,
|
|
4389
4492
|
CatalogStockService,
|
|
4390
4493
|
CatalogStockComparisonService,
|
|
4391
|
-
CatalogStockTransferService
|
|
4494
|
+
CatalogStockTransferService,
|
|
4495
|
+
{
|
|
4496
|
+
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
4497
|
+
useExisting: forwardRef(() => CatalogSearchComponent)
|
|
4498
|
+
}
|
|
4392
4499
|
],
|
|
4393
4500
|
encapsulation: ViewEncapsulation.None,
|
|
4394
4501
|
animations: [
|
|
@@ -4405,7 +4512,8 @@ CatalogSearchComponent.ctorParameters = () => [
|
|
|
4405
4512
|
{ type: CatalogService, decorators: [{ type: Host }] },
|
|
4406
4513
|
{ type: CatalogSearchService, decorators: [{ type: Host }] },
|
|
4407
4514
|
{ type: CatalogEventService },
|
|
4408
|
-
{ type: IconCacheService }
|
|
4515
|
+
{ type: IconCacheService },
|
|
4516
|
+
{ type: BaseModuleScreenConfigService }
|
|
4409
4517
|
];
|
|
4410
4518
|
CatalogSearchComponent.propDecorators = {
|
|
4411
4519
|
settings: [{ type: Input }],
|
|
@@ -4417,6 +4525,7 @@ CatalogSearchComponent.propDecorators = {
|
|
|
4417
4525
|
showLandingPage: [{ type: Input }],
|
|
4418
4526
|
showFilter: [{ type: Input }],
|
|
4419
4527
|
showViewModes: [{ type: Input }],
|
|
4528
|
+
isHomeDecoHub: [{ type: Input }],
|
|
4420
4529
|
settingsChange: [{ type: Output }],
|
|
4421
4530
|
onLookAtArticleButtonClick: [{ type: Output }],
|
|
4422
4531
|
onArButtonClick: [{ type: Output }],
|
|
@@ -4780,13 +4889,15 @@ CatalogArticleTileComponent.decorators = [
|
|
|
4780
4889
|
[label]="options.addArticleButtonText"
|
|
4781
4890
|
class="open-icon action pointer"
|
|
4782
4891
|
(onClick)="handleAddArticleButtonClick($event)"
|
|
4783
|
-
[iconData]="iconCache.getIcon(icons.AddToCartDrop)"
|
|
4892
|
+
[iconData]="iconCache.getIcon(icons.AddToCartDrop)"
|
|
4893
|
+
[disabled]="isHomeDecoHub">
|
|
4784
4894
|
</co-button>
|
|
4785
4895
|
<co-button *ngIf="configurable"
|
|
4786
4896
|
[label]="options.lookAtArticleButtonText"
|
|
4787
4897
|
class="open-icon action pointer"
|
|
4788
4898
|
(onClick)="handleLookAtArticleButtonClick($event)"
|
|
4789
|
-
[iconData]="iconCache.getIcon(icons.MagicWand)"
|
|
4899
|
+
[iconData]="iconCache.getIcon(icons.MagicWand)"
|
|
4900
|
+
[disabled]="isHomeDecoHub">
|
|
4790
4901
|
</co-button>
|
|
4791
4902
|
<!--co-button
|
|
4792
4903
|
[label]="options.stockButtonText"
|
|
@@ -4803,7 +4914,8 @@ CatalogArticleTileComponent.decorators = [
|
|
|
4803
4914
|
},] }
|
|
4804
4915
|
];
|
|
4805
4916
|
CatalogArticleTileComponent.propDecorators = {
|
|
4806
|
-
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-tile',] }]
|
|
4917
|
+
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-tile',] }],
|
|
4918
|
+
isHomeDecoHub: [{ type: Input }]
|
|
4807
4919
|
};
|
|
4808
4920
|
|
|
4809
4921
|
class CatalogSearchResultTileComponent extends CatalogSearchBaseComponent {
|
|
@@ -4831,6 +4943,7 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
4831
4943
|
[createFrozenArticle]="createFrozenArticle"
|
|
4832
4944
|
[showing]="intersection.isIntersecting"
|
|
4833
4945
|
[article]="article"
|
|
4946
|
+
[isHomeDecoHub]="isHomeDecoHub"
|
|
4834
4947
|
(onArticleClick)="onArticleClick.emit($event)"
|
|
4835
4948
|
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
4836
4949
|
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
@@ -4860,7 +4973,8 @@ CatalogSearchResultTileComponent.decorators = [
|
|
|
4860
4973
|
CatalogSearchResultTileComponent.propDecorators = {
|
|
4861
4974
|
viewChildren: [{ type: ViewChildren, args: [CatalogArticleTileComponent, { read: ElementRef },] }],
|
|
4862
4975
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-tile',] }],
|
|
4863
|
-
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }]
|
|
4976
|
+
smallScrollbar: [{ type: HostBinding, args: ['class.co-small-scrollbar',] }],
|
|
4977
|
+
isHomeDecoHub: [{ type: Input }]
|
|
4864
4978
|
};
|
|
4865
4979
|
|
|
4866
4980
|
class CatalogArticleTileModule {
|
|
@@ -5101,6 +5215,7 @@ CatalogArticleListComponent.decorators = [
|
|
|
5101
5215
|
},] }
|
|
5102
5216
|
];
|
|
5103
5217
|
CatalogArticleListComponent.propDecorators = {
|
|
5218
|
+
isHomeDecoHub: [{ type: Input }],
|
|
5104
5219
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-article-list',] }]
|
|
5105
5220
|
};
|
|
5106
5221
|
|
|
@@ -5127,6 +5242,7 @@ CatalogSearchResultListComponent.decorators = [
|
|
|
5127
5242
|
[createFrozenArticle]="createFrozenArticle"
|
|
5128
5243
|
[showing]="intersection.isIntersecting"
|
|
5129
5244
|
[article]="article"
|
|
5245
|
+
[isHomeDecoHub]="isHomeDecoHub"
|
|
5130
5246
|
(onArticleClick)="onArticleClick.emit($event)"
|
|
5131
5247
|
(onAddArticleButtonClick)="onAddArticleButtonClick.emit($event)"
|
|
5132
5248
|
(onArButtonClick)="onArButtonClick.emit($event)"
|
|
@@ -5155,6 +5271,7 @@ CatalogSearchResultListComponent.decorators = [
|
|
|
5155
5271
|
];
|
|
5156
5272
|
CatalogSearchResultListComponent.propDecorators = {
|
|
5157
5273
|
viewChildren: [{ type: ViewChildren, args: [CatalogArticleListComponent, { read: ElementRef },] }],
|
|
5274
|
+
isHomeDecoHub: [{ type: Input }],
|
|
5158
5275
|
showClass: [{ type: HostBinding, args: ['class.co-catalog-search-result-list',] }]
|
|
5159
5276
|
};
|
|
5160
5277
|
|
|
@@ -5233,6 +5350,7 @@ class CatalogExternalSourceComponent {
|
|
|
5233
5350
|
this._appEventService = _appEventService;
|
|
5234
5351
|
this.showFilter = true;
|
|
5235
5352
|
this.showNavigation = true;
|
|
5353
|
+
this.isHomeDecoHub = false;
|
|
5236
5354
|
this.articleClick = new EventEmitter();
|
|
5237
5355
|
this.addArticleClick = new EventEmitter();
|
|
5238
5356
|
this.iFrameFeedbackReceived = new EventEmitter();
|
|
@@ -5439,6 +5557,7 @@ CatalogExternalSourceComponent.decorators = [
|
|
|
5439
5557
|
[searchPlaceholder]="searchPlaceholder"
|
|
5440
5558
|
[showFilter]="showFilter"
|
|
5441
5559
|
[showNavigation]="showNavigation"
|
|
5560
|
+
[isHomeDecoHub]="isHomeDecoHub"
|
|
5442
5561
|
(onArticleClick)="handleArticleClick($event)"
|
|
5443
5562
|
></co-catalog-search>
|
|
5444
5563
|
</ng-container>
|
|
@@ -5467,6 +5586,7 @@ CatalogExternalSourceComponent.propDecorators = {
|
|
|
5467
5586
|
showFilter: [{ type: Input }],
|
|
5468
5587
|
showNavigation: [{ type: Input }],
|
|
5469
5588
|
options: [{ type: Input }],
|
|
5589
|
+
isHomeDecoHub: [{ type: Input }],
|
|
5470
5590
|
name: [{ type: Input }],
|
|
5471
5591
|
articleClick: [{ type: Output }],
|
|
5472
5592
|
addArticleClick: [{ type: Output }],
|