@colijnit/catalog 256.1.3 → 256.1.5
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 +36 -26
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/base/article-base.component.js +6 -5
- package/esm2015/lib/component/base/catalog-search-base.component.js +2 -1
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +23 -17
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +19 -19
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +10 -5
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +2 -1
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +2 -1
- package/fesm2015/colijnit-catalog.js +57 -42
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/base/article-base.component.d.ts +3 -1
- package/lib/component/base/catalog-search-base.component.d.ts +3 -1
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +4 -1
- package/lib/component/catalog-filter/style/_layout.scss +3 -0
- package/lib/component/catalog-search/catalog-search.component.d.ts +4 -1
- package/lib/style/_variables.scss +1 -1
- package/package.json +2 -2
- package/colijnit-catalog-256.1.2.tgz +0 -0
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
function Version() {
|
|
31
31
|
this.name = "@colijnit/catalog";
|
|
32
32
|
this.description = "iOne Catalog module based on Angular 12";
|
|
33
|
-
this.symVer = "256.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "256.1.5";
|
|
34
|
+
this.publishDate = "1-11-2024 14:45:45";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -4025,7 +4025,7 @@
|
|
|
4025
4025
|
CatalogFilterContentGeneralComponent.decorators = [
|
|
4026
4026
|
{ type: i0.Component, args: [{
|
|
4027
4027
|
selector: 'co-catalog-filter-content-general',
|
|
4028
|
-
template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLENR'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.articleNumber\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.ArticleNumberFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'BARCODE'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.barcode\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.BarcodeFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.PriceFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.LengthFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.WidthFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.HeightFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.DepthFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\"\n [screenConfigurationObjectName]=\"cfgName.ArticleTypeFilter\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.ColorFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'LATEST_DELIVERY_DATE'\"\n [(model)]=\"catalogSearchService.searchRequest.latestDeliveryDate\"\n [mode]=\"modes.DateField\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.DeliveryDateFilter\"\n >\n </co-catalog-filter-item>\n </div>\n \n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n [screenConfigurationObjectName]=\"cfgName.RetailFormulaFilter\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n [screenConfigurationObjectName]=\"cfgName.InOutFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_KIND'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n [screenConfigurationObjectName]=\"cfgName.ArticleKindFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [screenConfigurationObjectName]=\"cfgName.PublishFilter\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.SellViaFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n [screenConfigurationObjectName]=\"cfgName.PricelistSalesFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.Filterlist\"\n [collection]=\"categoryCollection\"\n [screenConfigurationObjectName]=\"cfgName.CategoryFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [screenConfigurationObjectName]=\"filterService.getFilterItemConfigMap(filter.filterName)\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n ",
|
|
4028
|
+
template: "\n <div class=\"catalog-filter-content-general-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n <div class=\"filter-item-wrapper articlenr\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLENR'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.articleNumber\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.ArticleNumberFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper barcode\">\n <co-catalog-filter-item [placeholder]=\"'BARCODE'\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.barcode\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.BarcodeFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper price\">\n <co-catalog-filter-item [placeholder]=\"'PRICE'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=100000\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.PriceFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper length\">\n <co-catalog-filter-item [placeholder]=\"'LENGTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.length\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.LengthFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper width\">\n <co-catalog-filter-item [placeholder]=\"'WIDTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.width\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.WidthFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper height\">\n <co-catalog-filter-item [placeholder]=\"'HEIGHT'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.height\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.HeightFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper depth\">\n <co-catalog-filter-item [placeholder]=\"'DEPTH'\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=0\n [sliderDefaultMax]=5000\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.DepthFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper article-type\">\n <co-catalog-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [customContent]=\"true\"\n [screenConfigurationObjectName]=\"cfgName.ArticleTypeFilter\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL'\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_REGULAR_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showRegularArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CONFIGURED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfiguredArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'BASE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showConfigurableArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'COMPOSITION_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCompositionArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_CUSTOMIZED_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showCustomizedArticles\"></co-input-checkbox>\n <co-input-checkbox\n [label]=\"'SHOW_INACTIVE_ARTICLES' | localize\"\n [(model)]=\"catalogSearchService.searchRequest.showInactiveArticles\"></co-input-checkbox>\n </co-catalog-filter-item>\n </div>\n \n <div class=\"filter-item-wrapper color\">\n <co-catalog-filter-item [placeholder]=\"'COLOR'\"\n [(model)]=\"catalogSearchService.searchRequest.colourCodes\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [collection]=\"colorCollection\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.ColorFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper delivery-date\">\n <co-catalog-filter-item [placeholder]=\"'LATEST_DELIVERY_DATE'\"\n [(model)]=\"catalogSearchService.searchRequest.latestDeliveryDate\"\n [mode]=\"modes.DateField\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.DeliveryDateFilter\"\n >\n </co-catalog-filter-item>\n </div>\n \n <div class=\"filter-item-wrapper retail-formula\">\n <co-catalog-filter-item [placeholder]=\"'RETAIL_FORMULA'\"\n [collection]=\"storeGroupCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n [screenConfigurationObjectName]=\"cfgName.RetailFormulaFilter\"\n > \n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper in-out-collection\">\n <co-catalog-filter-item [placeholder]=\"'IN_OUT_COLLECTION'\"\n [collection]=\"inOutCollectionCollection\" \n [mode]=\"modes.Filterlist\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n [screenConfigurationObjectName]=\"cfgName.InOutFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper article-kind\">\n <co-catalog-filter-item [placeholder]=\"'ARTICLE_KIND'\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n [screenConfigurationObjectName]=\"cfgName.ArticleKindFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper publish-via\">\n <co-catalog-filter-item [placeholder]=\"'PUBLISH_VIA'\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [screenConfigurationObjectName]=\"cfgName.PublishFilter\"\n [expanded]=\"false\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper sell-via\">\n <co-catalog-filter-item [placeholder]=\"'SELL_VIA'\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n [expanded]=\"false\"\n [screenConfigurationObjectName]=\"cfgName.SellViaFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper pricelist\">\n <co-catalog-filter-item [placeholder]=\"'PRICELIST_SALES'\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n [screenConfigurationObjectName]=\"cfgName.PricelistSalesFilter\"\n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper category\">\n <co-catalog-filter-item [placeholder]=\"'CATEGORY'\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.Filterlist\"\n [collection]=\"categoryCollection\"\n [screenConfigurationObjectName]=\"cfgName.CategoryFilter\" \n >\n </co-catalog-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\" [ngClass]=\"filter.filterName\">\n <co-catalog-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [screenConfigurationObjectName]=\"filterService.getFilterItemConfigMap(filter.filterName)\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\"\n [mode]=\"modes.Filterlist\"\n [initialLimit]=5\n ></co-catalog-filter-item> \n </div> \n </div>\n </div> \n </div>\n ",
|
|
4029
4029
|
providers: [{
|
|
4030
4030
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
4031
4031
|
useExisting: i0.forwardRef(function () { return CatalogFilterContentGeneralComponent; })
|
|
@@ -5055,6 +5055,7 @@
|
|
|
5055
5055
|
this.showNavigation = false;
|
|
5056
5056
|
this.showLandingPage = false;
|
|
5057
5057
|
this.showFilter = false;
|
|
5058
|
+
this.tempFilter = true;
|
|
5058
5059
|
this.showViewModes = true;
|
|
5059
5060
|
this.settingsChange = new i0.EventEmitter();
|
|
5060
5061
|
this.onLookAtArticleButtonClick = new i0.EventEmitter();
|
|
@@ -5159,7 +5160,7 @@
|
|
|
5159
5160
|
CatalogSearchComponent.decorators = [
|
|
5160
5161
|
{ type: i0.Component, args: [{
|
|
5161
5162
|
selector: 'co-catalog-search',
|
|
5162
|
-
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"
|
|
5163
|
+
template: "\n <div class=\"catalog-search-wrapper\">\n <ng-container *ngIf=\"tempFilter\">\n <div class=\"filter-content\" @showHideFilter>\n <div class=\"search-filter-panel-header-wrapper\">\n <div class=\"search-filter-panel-header\">\n <span [textContent]=\"'Filters'\"></span>\n <co-icon class=\"filter-reset-icon clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.SyncAlt)\"\n (click)=\"handleResetButtonClick($event)\">\n </co-icon>\n <span (click)=\"handleResetButtonClick($event)\" [textContent]=\"'reset'\" class=\"reset-filter-text\"></span>\n </div>\n <co-icon class=\"clickable\"\n [iconData]=\"iconCacheService.getIcon(icons.Cancel)\"\n (click)=\"tempFilter = false\">\n </co-icon>\n </div>\n\n <!--filter-content-->\n <div class=\"search-filter-wrapper narrow-scrollbar\">\n <co-catalog-filter [showResetFilter]=\"true\"></co-catalog-filter>\n </div>\n </div>\n </ng-container>\n <div class=\"search-content-wrapper\" #contentView>\n <div class=\"search-header\">\n <div class=\"search-catalog-title-wrapper\">\n <div class=\"catalog-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.WebCatalog)\"></co-icon>\n <div class=\"catalog-title\" [textContent]=\"title\"></div>\n </div>\n <div class=\"catalog-sub-title\" [textContent]=\"subTitle\"></div>\n </div>\n <co-catalog-search-header [placeholder]=\"searchPlaceholder\"\n (filterIconClick)=\"tempFilter = !tempFilter\"></co-catalog-search-header>\n </div>\n <div class=\"view-modes-wrapper\">\n <co-button \n (click)=\"mode = 'tile'\"\n [class.selected]=\"mode === 'tile'\"\n [iconData]=\"iconCacheService.getIcon(icons.ListView)\">\n </co-button>\n <co-button \n (click)=\"mode = 'list'\"\n [class.selected]=\"mode === 'list'\"\n [iconData]=\"iconCacheService.getIcon(icons.ThinLines)\">\n </co-button>\n </div>\n <co-catalog-navigation *ngIf=\"showNavigation\"\n [view]=\"contentView\"\n (homeClick)=\"handleHomeClick($event)\"\n (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"\n (externalSourceClick)=\"onExternalSourceClick.emit($event)\"\n ></co-catalog-navigation>\n <co-catalog-categories *ngIf=\"showLandingPage\" (categoryClick)=\"handleCategoryClick($event)\"\n (turnoverGroupClick)=\"handleTurnoverGroupClick($event)\"></co-catalog-categories>\n <div class=\"search-content\">\n <ng-container *ngIf=\"mode === 'tile'\">\n <co-catalog-search-result-tile\n [createFrozenArticle]=\"createFrozenArticle\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n [externalSource]=\"externalSource\"\n ></co-catalog-search-result-tile>\n </ng-container>\n <ng-container *ngIf=\"mode === 'list'\">\n <co-catalog-search-result-list\n [createFrozenArticle]=\"createFrozenArticle\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n [externalSource]=\"externalSource\"\n ></co-catalog-search-result-list>\n </ng-container>\n <ng-container *ngIf=\"mode === 'grid'\">\n <!--\n <co-catalog-search-result></co-catalog-search-result>\n -->\n </ng-container>\n </div>\n </div>\n </div>\n ",
|
|
5163
5164
|
providers: [
|
|
5164
5165
|
CatalogSelectSingleCacheService,
|
|
5165
5166
|
CatalogSelectMultipleCacheService,
|
|
@@ -5209,8 +5210,10 @@
|
|
|
5209
5210
|
showNavigation: [{ type: i0.Input }],
|
|
5210
5211
|
showLandingPage: [{ type: i0.Input }],
|
|
5211
5212
|
showFilter: [{ type: i0.Input }],
|
|
5213
|
+
tempFilter: [{ type: i0.Input }],
|
|
5212
5214
|
showViewModes: [{ type: i0.Input }],
|
|
5213
5215
|
isHomeDecoHub: [{ type: i0.Input }],
|
|
5216
|
+
externalSource: [{ type: i0.Input }],
|
|
5214
5217
|
settingsChange: [{ type: i0.Output }],
|
|
5215
5218
|
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
5216
5219
|
onArButtonClick: [{ type: i0.Output }],
|
|
@@ -5309,6 +5312,7 @@
|
|
|
5309
5312
|
]; };
|
|
5310
5313
|
CatalogSearchBaseComponent.propDecorators = {
|
|
5311
5314
|
createFrozenArticle: [{ type: i0.Input }],
|
|
5315
|
+
externalSource: [{ type: i0.Input }],
|
|
5312
5316
|
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
5313
5317
|
onArButtonClick: [{ type: i0.Output }],
|
|
5314
5318
|
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
@@ -5397,7 +5401,7 @@
|
|
|
5397
5401
|
case 0:
|
|
5398
5402
|
event.stopPropagation();
|
|
5399
5403
|
if (!this.createFrozenArticle) return [3 /*break*/, 2];
|
|
5400
|
-
return [4 /*yield*/, this._getJSONFromArticleObject(this.article)];
|
|
5404
|
+
return [4 /*yield*/, this._getJSONFromArticleObject(this.article, !!this.externalSource)];
|
|
5401
5405
|
case 1:
|
|
5402
5406
|
json = _a.sent();
|
|
5403
5407
|
this._appEventService.addArticleButtonClick.next(json);
|
|
@@ -5429,7 +5433,8 @@
|
|
|
5429
5433
|
desc = desc.replace(/\r?\n|\r/, '');
|
|
5430
5434
|
return desc;
|
|
5431
5435
|
};
|
|
5432
|
-
ArticleBaseComponent.prototype._getJSONFromArticleObject = function (article) {
|
|
5436
|
+
ArticleBaseComponent.prototype._getJSONFromArticleObject = function (article, externalSource) {
|
|
5437
|
+
if (externalSource === void 0) { externalSource = false; }
|
|
5433
5438
|
return __awaiter(this, void 0, void 0, function () {
|
|
5434
5439
|
return __generator(this, function (_a) {
|
|
5435
5440
|
switch (_a.label) {
|
|
@@ -5437,7 +5442,7 @@
|
|
|
5437
5442
|
if (!article) {
|
|
5438
5443
|
return [2 /*return*/, ""];
|
|
5439
5444
|
}
|
|
5440
|
-
return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.goodId, article.goodType, 1)];
|
|
5445
|
+
return [4 /*yield*/, this._iOne.getJsonArticleFlatTree(article.goodId, article.goodType, 1, externalSource)];
|
|
5441
5446
|
case 1: return [2 /*return*/, _a.sent()];
|
|
5442
5447
|
}
|
|
5443
5448
|
});
|
|
@@ -5515,6 +5520,7 @@
|
|
|
5515
5520
|
isSmallModus: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.small-modus',] }],
|
|
5516
5521
|
hasMagnifierButton: [{ type: i0.Input }],
|
|
5517
5522
|
hasInfoButton: [{ type: i0.Input }],
|
|
5523
|
+
externalSource: [{ type: i0.Input }],
|
|
5518
5524
|
onLookAtArticleButtonClick: [{ type: i0.Output }],
|
|
5519
5525
|
onArButtonClick: [{ type: i0.Output }],
|
|
5520
5526
|
onAddArticleButtonClick: [{ type: i0.Output }],
|
|
@@ -5572,7 +5578,7 @@
|
|
|
5572
5578
|
CatalogSearchResultTileComponent.decorators = [
|
|
5573
5579
|
{ type: i0.Component, args: [{
|
|
5574
5580
|
selector: 'co-catalog-search-result-tile',
|
|
5575
|
-
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-tile\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-tile>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
5581
|
+
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-tile\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n [externalSource]=\"externalSource\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-tile>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
5576
5582
|
encapsulation: i0.ViewEncapsulation.None
|
|
5577
5583
|
},] }
|
|
5578
5584
|
];
|
|
@@ -5810,7 +5816,7 @@
|
|
|
5810
5816
|
CatalogSearchResultListComponent.decorators = [
|
|
5811
5817
|
{ type: i0.Component, args: [{
|
|
5812
5818
|
selector: 'co-catalog-search-result-list',
|
|
5813
|
-
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-list\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-list>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
5819
|
+
template: "\n <div class=\"article-cards\" visibilityObserverMaster>\n <ng-container *ngFor=\"let article of catalogSearchService.articles\">\n <co-catalog-article-list\n visibilityObserver\n #intersection=\"intersection\"\n [observerEnabled]=\"!article.imageData\"\n [createFrozenArticle]=\"createFrozenArticle\"\n [showing]=\"intersection.isIntersecting\"\n [article]=\"article\"\n [externalSource]=\"externalSource\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n (onArticleClick)=\"onArticleClick.emit($event)\"\n (onAddArticleButtonClick)=\"onAddArticleButtonClick.emit($event)\"\n (onArButtonClick)=\"onArButtonClick.emit($event)\"\n (onLookAtArticleButtonClick)=\"onLookAtArticleButtonClick.emit($event)\"\n (onStockDetailsClick)=\"onStockDetailsClick.emit($event)\"\n >\n </co-catalog-article-list>\n </ng-container>\n </div>\n <co-pagination-bar *ngIf=\"catalogSearchService.articles?.length > 0\"\n [currentPage]=\"catalogSearchService.currentPage\"\n [itemsPerPage]=\"catalogSearchService.articlesPerPage\"\n [totalItems]=\"catalogSearchService.resultCount\"\n [previousLabel]=\"'PREVIOUS' | localize\"\n [nextLabel]=\"'NEXT' | localize\"\n [autoHide]=\"true\"\n [directionLinks]=\"true\"\n [paginationRange]=\"8\"\n (previousClick)=\"onPreviousClick()\"\n (nextClick)=\"onNextClick()\"\n (pageClick)=\"onPageClick($event)\">\n </co-pagination-bar>\n ",
|
|
5814
5820
|
encapsulation: i0.ViewEncapsulation.None
|
|
5815
5821
|
},] }
|
|
5816
5822
|
];
|
|
@@ -5903,10 +5909,12 @@
|
|
|
5903
5909
|
this._catalogConnectorService = _catalogConnectorService;
|
|
5904
5910
|
this._appEventService = _appEventService;
|
|
5905
5911
|
this.showFilter = true;
|
|
5912
|
+
this.tempFilter = true;
|
|
5906
5913
|
this.showNavigation = true;
|
|
5907
5914
|
this.isHomeDecoHub = false;
|
|
5908
5915
|
this.articleClick = new i0.EventEmitter();
|
|
5909
5916
|
this.addArticleClick = new i0.EventEmitter();
|
|
5917
|
+
this.lookAtArticleClick = new i0.EventEmitter();
|
|
5910
5918
|
this.iFrameFeedbackReceived = new i0.EventEmitter();
|
|
5911
5919
|
this.showClass = true;
|
|
5912
5920
|
this.showCatalog = false;
|
|
@@ -5932,7 +5940,7 @@
|
|
|
5932
5940
|
},
|
|
5933
5941
|
set: function (value) {
|
|
5934
5942
|
this._externalCatalogStartupInfo = value;
|
|
5935
|
-
this.
|
|
5943
|
+
this.externalSource = value.externalSource;
|
|
5936
5944
|
this.loaded = false;
|
|
5937
5945
|
this._prepareExternalSource();
|
|
5938
5946
|
},
|
|
@@ -5947,7 +5955,7 @@
|
|
|
5947
5955
|
quantity: 1,
|
|
5948
5956
|
article: article,
|
|
5949
5957
|
catalogDefinition: _this.catalogDefinition,
|
|
5950
|
-
externalSource: _this.
|
|
5958
|
+
externalSource: _this.externalSource
|
|
5951
5959
|
});
|
|
5952
5960
|
}
|
|
5953
5961
|
}));
|
|
@@ -5958,12 +5966,12 @@
|
|
|
5958
5966
|
article: article,
|
|
5959
5967
|
settings: { name: this.name, settings: this.externalSettings },
|
|
5960
5968
|
catalogDefinition: this.catalogDefinition,
|
|
5961
|
-
externalSource: this.
|
|
5969
|
+
externalSource: this.externalSource
|
|
5962
5970
|
});
|
|
5963
5971
|
}
|
|
5964
5972
|
};
|
|
5965
5973
|
CatalogExternalSourceComponent.prototype.receiveMessage = function (event) {
|
|
5966
|
-
if (this.
|
|
5974
|
+
if (this.externalSource.type !== '3DIMERCE')
|
|
5967
5975
|
if (typeof event.data === 'string') {
|
|
5968
5976
|
this.iFrameFeedbackReceived.emit(event.data);
|
|
5969
5977
|
}
|
|
@@ -5981,9 +5989,9 @@
|
|
|
5981
5989
|
var customerName, configurationUrl, priceDataUrl, configurationData_1, priceData_1;
|
|
5982
5990
|
var _this = this;
|
|
5983
5991
|
return __generator(this, function (_a) {
|
|
5984
|
-
customerName = this.
|
|
5985
|
-
configurationUrl = this.
|
|
5986
|
-
priceDataUrl = this.
|
|
5992
|
+
customerName = this.externalSource.username;
|
|
5993
|
+
configurationUrl = this.externalSource.domain + '/configurationData/' + hash;
|
|
5994
|
+
priceDataUrl = this.externalSource.domain + '/rules/api/' + customerName.toLowerCase() + '/' + hash;
|
|
5987
5995
|
//test setup for local testing
|
|
5988
5996
|
//const configurationUrl: string = "https://bertplantagie.platformapi-accept.3dimerce.com/configurationData/8eb5b35697c96716d3e253294344d98e4dcdcb68969c288189d45829164e3177";
|
|
5989
5997
|
//console.log(configurationUrl);
|
|
@@ -6078,37 +6086,37 @@
|
|
|
6078
6086
|
return __generator(this, function (_a) {
|
|
6079
6087
|
switch (_a.label) {
|
|
6080
6088
|
case 0:
|
|
6081
|
-
if (!this.
|
|
6089
|
+
if (!this.externalSource) {
|
|
6082
6090
|
return [2 /*return*/];
|
|
6083
6091
|
}
|
|
6084
6092
|
this.externalUrl = undefined;
|
|
6085
6093
|
this.externalSettings = {};
|
|
6086
|
-
if (!(this.
|
|
6087
|
-
return [4 /*yield*/, this._catalogConnectorService.getCatalogBundleSettings(this.
|
|
6094
|
+
if (!(this.externalSource.type === 'CATF')) return [3 /*break*/, 2];
|
|
6095
|
+
return [4 /*yield*/, this._catalogConnectorService.getCatalogBundleSettings(this.externalSource.url, parseInt(this.externalSource.schema))];
|
|
6088
6096
|
case 1:
|
|
6089
6097
|
bundleSettings = _a.sent();
|
|
6090
6098
|
this.externalSettings = JSON.parse(bundleSettings);
|
|
6091
6099
|
if (this.options) {
|
|
6092
6100
|
this.externalSettings.options = this.options;
|
|
6093
6101
|
}
|
|
6094
|
-
if (this.
|
|
6095
|
-
this.externalSettings.username = this.
|
|
6096
|
-
this.externalSettings.password = this.
|
|
6102
|
+
if (this.externalSource.username && this.externalSource.password) {
|
|
6103
|
+
this.externalSettings.username = this.externalSource.username;
|
|
6104
|
+
this.externalSettings.password = this.externalSource.password;
|
|
6097
6105
|
}
|
|
6098
6106
|
// finally show the catalog
|
|
6099
6107
|
this.showCatalog = true;
|
|
6100
6108
|
return [3 /*break*/, 3];
|
|
6101
6109
|
case 2:
|
|
6102
|
-
if (this.
|
|
6110
|
+
if (this.externalSource.type !== externalCatalogTypes_enum.ExternalCatalogTypes.Webshop && this.externalSource.type !== externalCatalogTypes_enum.ExternalCatalogTypes.ThreeDimerse) {
|
|
6103
6111
|
this.externalUrl = this._externalCatalogStartupInfo.apiUrl;
|
|
6104
|
-
if (this.
|
|
6112
|
+
if (this.externalSource.type === externalCatalogTypes_enum.ExternalCatalogTypes.Vadain) {
|
|
6105
6113
|
this.username = this._externalCatalogStartupInfo.username;
|
|
6106
6114
|
this.password = this._externalCatalogStartupInfo.password;
|
|
6107
6115
|
this.externalOrderNr = this._externalCatalogStartupInfo.orderId;
|
|
6108
6116
|
}
|
|
6109
6117
|
}
|
|
6110
6118
|
else {
|
|
6111
|
-
this.externalUrl = this.
|
|
6119
|
+
this.externalUrl = this.externalSource.url;
|
|
6112
6120
|
}
|
|
6113
6121
|
this.safeUrl = this._sanitizer.bypassSecurityTrustResourceUrl(this.externalUrl);
|
|
6114
6122
|
this.showCatalog = false;
|
|
@@ -6128,7 +6136,7 @@
|
|
|
6128
6136
|
CatalogExternalSourceComponent.decorators = [
|
|
6129
6137
|
{ type: i0.Component, args: [{
|
|
6130
6138
|
selector: 'co-catalog-external-source',
|
|
6131
|
-
template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showCatalog\">\n <co-catalog-search\n [(settings)]=\"externalSettings\"\n [title]=\"title\"\n [subTitle]=\"subTitle\"\n [searchPlaceholder]=\"searchPlaceholder\"\n [showFilter]=\"showFilter\"\n [showNavigation]=\"showNavigation\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n (onArticleClick)=\"handleArticleClick($event)\"\n ></co-catalog-search>\n </ng-container>\n <ng-container *ngIf=\"!showCatalog\">\n <iframe #catalogFrame width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen\n (load)=\"iframeLoaded($event)\"></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
6139
|
+
template: "\n <ng-container *ngIf=\"loaded\">\n <ng-container *ngIf=\"showCatalog\">\n <co-catalog-search\n [(settings)]=\"externalSettings\"\n [externalSource]=\"externalSource\"\n [title]=\"title\"\n [subTitle]=\"subTitle\"\n [searchPlaceholder]=\"searchPlaceholder\"\n [showFilter]=\"showFilter\"\n [tempFilter]=\"tempFilter\"\n [showNavigation]=\"showNavigation\"\n [isHomeDecoHub]=\"isHomeDecoHub\"\n (onArticleClick)=\"handleArticleClick($event)\"\n ></co-catalog-search>\n </ng-container>\n <ng-container *ngIf=\"!showCatalog\">\n <iframe #catalogFrame width=\"100%\" height=\"100%\" [src]=\"safeUrl\" frameborder=\"0\" allowfullscreen\n (load)=\"iframeLoaded($event)\"></iframe>\n </ng-container>\n </ng-container>\n ",
|
|
6132
6140
|
encapsulation: i0.ViewEncapsulation.None
|
|
6133
6141
|
},] }
|
|
6134
6142
|
];
|
|
@@ -6146,12 +6154,14 @@
|
|
|
6146
6154
|
subTitle: [{ type: i0.Input }],
|
|
6147
6155
|
searchPlaceholder: [{ type: i0.Input }],
|
|
6148
6156
|
showFilter: [{ type: i0.Input }],
|
|
6157
|
+
tempFilter: [{ type: i0.Input }],
|
|
6149
6158
|
showNavigation: [{ type: i0.Input }],
|
|
6150
6159
|
options: [{ type: i0.Input }],
|
|
6151
6160
|
isHomeDecoHub: [{ type: i0.Input }],
|
|
6152
6161
|
name: [{ type: i0.Input }],
|
|
6153
6162
|
articleClick: [{ type: i0.Output }],
|
|
6154
6163
|
addArticleClick: [{ type: i0.Output }],
|
|
6164
|
+
lookAtArticleClick: [{ type: i0.Output }],
|
|
6155
6165
|
iFrameFeedbackReceived: [{ type: i0.Output }],
|
|
6156
6166
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-source',] }]
|
|
6157
6167
|
};
|