@colijnit/catalog 12.1.41 → 12.1.43
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 -64
- 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 +19 -1
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +14 -3
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +6 -12
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +45 -1
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +4 -2
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +2 -71
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +19 -17
- package/esm2015/lib/model/settings-options.js +1 -2
- package/esm2015/lib/model/settings.js +2 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +6 -4
- package/esm2015/lib/service/catalog-connector.service.js +11 -1
- package/esm2015/lib/service/catalog-options.service.js +1 -4
- package/esm2015/lib/service/catalog-search.service.js +8 -2
- package/esm2015/lib/service/catalog-settings.service.js +8 -3
- package/esm2015/lib/service/catalog.service.js +1 -7
- package/fesm2015/colijnit-catalog.js +129 -117
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +8 -3
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +3 -4
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +0 -1
- package/lib/component/catalog-search/catalog-search.component.d.ts +2 -1
- package/lib/model/settings-options.d.ts +0 -1
- package/lib/model/settings.d.ts +1 -0
- package/lib/service/catalog-connector-adapter.service.d.ts +3 -2
- package/lib/service/catalog-connector.service.d.ts +5 -3
- package/lib/service/catalog-options.service.d.ts +0 -1
- package/lib/service/catalog-search.service.d.ts +3 -1
- package/lib/service/catalog.service.d.ts +0 -2
- package/package.json +6 -6
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
function Version() {
|
|
31
31
|
this.name = "@colijnit/catalog";
|
|
32
32
|
this.description = "iOne Catalog module based on Angular 12";
|
|
33
|
-
this.symVer = "12.1.
|
|
34
|
-
this.publishDate = "
|
|
33
|
+
this.symVer = "12.1.43";
|
|
34
|
+
this.publishDate = "15-9-2023 17:25:36";
|
|
35
35
|
}
|
|
36
36
|
return Version;
|
|
37
37
|
}());
|
|
@@ -433,7 +433,6 @@
|
|
|
433
433
|
this.showARButton = false;
|
|
434
434
|
this.maxItemsPerPage = 20;
|
|
435
435
|
this.addArticleButtonText = 'ADD TO CART';
|
|
436
|
-
this.collapseFilterByDefault = false;
|
|
437
436
|
this.sortTurnoverGroupsByAlphabet = true;
|
|
438
437
|
this.searchOnStart = false;
|
|
439
438
|
this.showFilter = false;
|
|
@@ -447,6 +446,7 @@
|
|
|
447
446
|
function CatalogSettings() {
|
|
448
447
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
449
448
|
_this.type = "V";
|
|
449
|
+
_this.createWebOrder = true;
|
|
450
450
|
_this.options = new SettingsOptions();
|
|
451
451
|
_this.useLoginEncryption = true;
|
|
452
452
|
return _this;
|
|
@@ -645,13 +645,19 @@
|
|
|
645
645
|
};
|
|
646
646
|
CatalogSettingsService.prototype.createSettingsFromObject = function (obj) {
|
|
647
647
|
return __awaiter(this, void 0, void 0, function () {
|
|
648
|
+
var ownOptions, ownCatalogParameters;
|
|
648
649
|
return __generator(this, function (_a) {
|
|
649
650
|
if (!this.settings) {
|
|
650
651
|
this.settings = new CatalogSettings();
|
|
651
652
|
}
|
|
652
|
-
|
|
653
|
+
ownOptions = Object.assign({}, this.settings.options);
|
|
654
|
+
ownCatalogParameters = Object.assign({}, this.settings.catalogParameters);
|
|
655
|
+
this.settings = Object.assign({}, this.settings, obj);
|
|
656
|
+
if (obj.catalogParameters) {
|
|
657
|
+
this.settings.catalogParameters = Object.assign({}, ownCatalogParameters, obj.catalogParameters);
|
|
658
|
+
}
|
|
653
659
|
if (obj.options) {
|
|
654
|
-
this.settings.options = Object.assign(
|
|
660
|
+
this.settings.options = Object.assign({}, ownOptions, obj.options);
|
|
655
661
|
}
|
|
656
662
|
this.settingsFinished();
|
|
657
663
|
return [2 /*return*/];
|
|
@@ -1408,11 +1414,23 @@
|
|
|
1408
1414
|
});
|
|
1409
1415
|
};
|
|
1410
1416
|
CatalogConnectorAdapterService.prototype.addWebSessionTransactionLine = function (sku, quantity) {
|
|
1411
|
-
this
|
|
1417
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1418
|
+
return __generator(this, function (_a) {
|
|
1419
|
+
switch (_a.label) {
|
|
1420
|
+
case 0: return [4 /*yield*/, this.transactionConnector.addWebSessionTransactionLine(sku, quantity)];
|
|
1421
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
});
|
|
1412
1425
|
};
|
|
1413
1426
|
CatalogConnectorAdapterService.prototype.getWebTransaction = function () {
|
|
1414
|
-
this
|
|
1415
|
-
|
|
1427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1428
|
+
return __generator(this, function (_a) {
|
|
1429
|
+
switch (_a.label) {
|
|
1430
|
+
case 0: return [4 /*yield*/, this.transactionConnector.getWebSessionSalesOrder()];
|
|
1431
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1432
|
+
}
|
|
1433
|
+
});
|
|
1416
1434
|
});
|
|
1417
1435
|
};
|
|
1418
1436
|
CatalogConnectorAdapterService.prototype.getJsonArticleFlatTree = function (goodId, goodType, quantity, showLoader, instanceId, configuratorStatistics) {
|
|
@@ -2121,6 +2139,21 @@
|
|
|
2121
2139
|
if (instanceId === void 0) { instanceId = undefined; }
|
|
2122
2140
|
return this._adapterService.getJsonArticleFlatTree(goodId, goodType, quantity, showLoader, undefined, configuratorStatistics);
|
|
2123
2141
|
};
|
|
2142
|
+
CatalogConnectorService.prototype.addWebSessionTransactionLine = function (sku, quantity) {
|
|
2143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2144
|
+
return __generator(this, function (_a) {
|
|
2145
|
+
switch (_a.label) {
|
|
2146
|
+
case 0: return [4 /*yield*/, this._adapterService.addWebSessionTransactionLine(sku, quantity)];
|
|
2147
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
2150
|
+
});
|
|
2151
|
+
};
|
|
2152
|
+
CatalogConnectorService.prototype.getWebTransaction = function () {
|
|
2153
|
+
this._adapterService.getWebTransaction().then(function (response) {
|
|
2154
|
+
console.log(response);
|
|
2155
|
+
});
|
|
2156
|
+
};
|
|
2124
2157
|
return CatalogConnectorService;
|
|
2125
2158
|
}());
|
|
2126
2159
|
CatalogConnectorService.decorators = [
|
|
@@ -2170,13 +2203,6 @@
|
|
|
2170
2203
|
enumerable: false,
|
|
2171
2204
|
configurable: true
|
|
2172
2205
|
});
|
|
2173
|
-
Object.defineProperty(CatalogOptionsService.prototype, "collapseFilterByDefault", {
|
|
2174
|
-
get: function () {
|
|
2175
|
-
return this._settingsService.settings.options.collapseFilterByDefault;
|
|
2176
|
-
},
|
|
2177
|
-
enumerable: false,
|
|
2178
|
-
configurable: true
|
|
2179
|
-
});
|
|
2180
2206
|
Object.defineProperty(CatalogOptionsService.prototype, "showPriceFilter", {
|
|
2181
2207
|
get: function () {
|
|
2182
2208
|
return this._settingsService.settings.options.showPriceFilter;
|
|
@@ -2542,10 +2568,11 @@
|
|
|
2542
2568
|
]; };
|
|
2543
2569
|
|
|
2544
2570
|
var CatalogSearchService = /** @class */ (function () {
|
|
2545
|
-
function CatalogSearchService(_filterService, _catalogConnectorService, _settingsService, _optionService) {
|
|
2571
|
+
function CatalogSearchService(_filterService, _catalogConnectorService, _catalogConnectorAdapterService, _settingsService, _optionService) {
|
|
2546
2572
|
var _this = this;
|
|
2547
2573
|
this._filterService = _filterService;
|
|
2548
2574
|
this._catalogConnectorService = _catalogConnectorService;
|
|
2575
|
+
this._catalogConnectorAdapterService = _catalogConnectorAdapterService;
|
|
2549
2576
|
this._settingsService = _settingsService;
|
|
2550
2577
|
this._optionService = _optionService;
|
|
2551
2578
|
this.searchRequest = new articleExtendedRequest.ArticleExtendedRequest();
|
|
@@ -2559,6 +2586,9 @@
|
|
|
2559
2586
|
if (_this._settingsService.settings.catalogParameters) {
|
|
2560
2587
|
_this.searchRequest = _this._settingsService.settings.catalogParameters;
|
|
2561
2588
|
}
|
|
2589
|
+
}
|
|
2590
|
+
}), this._catalogConnectorAdapterService.controllerInitialized.subscribe(function (initialized) {
|
|
2591
|
+
if (initialized) {
|
|
2562
2592
|
if (_this._settingsService.settings.options.searchOnStart) {
|
|
2563
2593
|
_this.searchArticles();
|
|
2564
2594
|
}
|
|
@@ -2660,6 +2690,7 @@
|
|
|
2660
2690
|
CatalogSearchService.ctorParameters = function () { return [
|
|
2661
2691
|
{ type: CatalogFilterService },
|
|
2662
2692
|
{ type: CatalogConnectorService },
|
|
2693
|
+
{ type: CatalogConnectorAdapterService },
|
|
2663
2694
|
{ type: CatalogSettingsService },
|
|
2664
2695
|
{ type: CatalogOptionsService }
|
|
2665
2696
|
]; };
|
|
@@ -2863,12 +2894,6 @@
|
|
|
2863
2894
|
});
|
|
2864
2895
|
});
|
|
2865
2896
|
};
|
|
2866
|
-
CatalogService.prototype.addWebSessionTransactionLine = function (sku, quantity) {
|
|
2867
|
-
this.connectorAdapter.addWebSessionTransactionLine(sku, quantity);
|
|
2868
|
-
};
|
|
2869
|
-
CatalogService.prototype.getWebTransaction = function () {
|
|
2870
|
-
this.connectorAdapter.getWebTransaction();
|
|
2871
|
-
};
|
|
2872
2897
|
CatalogService.prototype.reset = function () {
|
|
2873
2898
|
this.showCatOrTurnoverGroupArticles = false;
|
|
2874
2899
|
this.showExternalSource = false;
|
|
@@ -3062,10 +3087,10 @@
|
|
|
3062
3087
|
]; };
|
|
3063
3088
|
|
|
3064
3089
|
var CatalogFilterComponent = /** @class */ (function () {
|
|
3065
|
-
function CatalogFilterComponent(iconCache,
|
|
3090
|
+
function CatalogFilterComponent(iconCache, _settingsService, changeDetector, _catalogConnectorService, _adapterService, searchService) {
|
|
3066
3091
|
var _this = this;
|
|
3067
3092
|
this.iconCache = iconCache;
|
|
3068
|
-
this.
|
|
3093
|
+
this._settingsService = _settingsService;
|
|
3069
3094
|
this.changeDetector = changeDetector;
|
|
3070
3095
|
this._catalogConnectorService = _catalogConnectorService;
|
|
3071
3096
|
this._adapterService = _adapterService;
|
|
@@ -3079,7 +3104,6 @@
|
|
|
3079
3104
|
'Inkoop',
|
|
3080
3105
|
'Logistiek'
|
|
3081
3106
|
];
|
|
3082
|
-
this.collapsed = false;
|
|
3083
3107
|
this._subs = [];
|
|
3084
3108
|
this._subs.push(this._adapterService.controllerInitialized.subscribe(function (initialized) {
|
|
3085
3109
|
if (initialized) {
|
|
@@ -3092,10 +3116,6 @@
|
|
|
3092
3116
|
};
|
|
3093
3117
|
CatalogFilterComponent.prototype.ngOnInit = function () {
|
|
3094
3118
|
// because our <co-checkbox-select> components will output a selectionStringChange on their init, which effectively changes this.filters
|
|
3095
|
-
this.collapsed = this.optionsService.collapseFilterByDefault;
|
|
3096
|
-
if (window.innerWidth <= 950) {
|
|
3097
|
-
this.collapsed = true;
|
|
3098
|
-
}
|
|
3099
3119
|
//this.initializePriceFilterMinMax();
|
|
3100
3120
|
this.detectChanges();
|
|
3101
3121
|
};
|
|
@@ -3145,7 +3165,7 @@
|
|
|
3145
3165
|
];
|
|
3146
3166
|
CatalogFilterComponent.ctorParameters = function () { return [
|
|
3147
3167
|
{ type: IconCacheService },
|
|
3148
|
-
{ type:
|
|
3168
|
+
{ type: CatalogSettingsService },
|
|
3149
3169
|
{ type: i0.ChangeDetectorRef },
|
|
3150
3170
|
{ type: CatalogConnectorService },
|
|
3151
3171
|
{ type: CatalogConnectorAdapterService },
|
|
@@ -3157,8 +3177,7 @@
|
|
|
3157
3177
|
purchaseFilter: [{ type: i0.ViewChild, args: ['purchaseFilter', { read: i0.ElementRef },] }],
|
|
3158
3178
|
logisticsFilter: [{ type: i0.ViewChild, args: ['logisticsFilter', { read: i0.ElementRef },] }],
|
|
3159
3179
|
showResetFilter: [{ type: i0.Input }],
|
|
3160
|
-
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
|
|
3161
|
-
collapsed: [{ type: i0.HostBinding, args: ['class.collapsed',] }]
|
|
3180
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-filter',] }]
|
|
3162
3181
|
};
|
|
3163
3182
|
|
|
3164
3183
|
var CatalogFilterCategoriesComponent = /** @class */ (function () {
|
|
@@ -3296,6 +3315,15 @@
|
|
|
3296
3315
|
CatalogFilterContentGeneralComponent.prototype.ngOnDestroy = function () {
|
|
3297
3316
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
3298
3317
|
};
|
|
3318
|
+
CatalogFilterContentGeneralComponent.prototype.handleAllChanged = function (value) {
|
|
3319
|
+
this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
|
|
3320
|
+
this.catalogSearchService.searchRequest["showRegularArticles"] = value;
|
|
3321
|
+
this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
|
|
3322
|
+
this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
|
|
3323
|
+
this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
|
|
3324
|
+
this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
|
|
3325
|
+
this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
|
|
3326
|
+
};
|
|
3299
3327
|
CatalogFilterContentGeneralComponent.prototype._setCollections = function () {
|
|
3300
3328
|
this._setStoreGroups();
|
|
3301
3329
|
this._setInOutCollection();
|
|
@@ -3361,7 +3389,7 @@
|
|
|
3361
3389
|
CatalogFilterContentGeneralComponent.decorators = [
|
|
3362
3390
|
{ type: i0.Component, args: [{
|
|
3363
3391
|
selector: 'co-catalog-filter-content-general',
|
|
3364
|
-
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-filter-item [placeholder]=\"'PRICE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"100000\"\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'LENGTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'WIDTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'HEIGHT' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'DEPTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\" \n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\" \n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5 \n ></co-filter-item> <!--(collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"-->\n </div>\n </div>\n </div> \n </div>\n "
|
|
3392
|
+
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-filter-item [placeholder]=\"'PRICE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"100000\"\n [(model)]=\"catalogSearchService.searchRequest.rangePrice\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'LENGTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.length\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'WIDTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.width\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'HEIGHT' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.height\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'DEPTH' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.Slider\"\n [sliderDefaultMin]=\"0\"\n [sliderDefaultMax]=\"5000\"\n [(model)]=\"catalogSearchService.searchRequest.depth\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item\n [placeholder]=\"'ARTICLE_TYPE'\"\n [expanded]=\"true\"\n [customContent]=\"true\">\n <co-input-checkbox\n (modelChange)=\"this.handleAllChanged($event)\"\n [label]=\"'ALL' | localize\"></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-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'AUTOMATICALLY_UPDATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.CheckboxToText\"\n [(model)]=\"catalogSearchService.searchRequest.doSync\">\n </co-filter-item> \n </div> \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'RETAIL_FORMULA' | localize\"\n [expanded]=\"true\"\n [collection]=\"storeGroupCollection\"\n [(model)]=\"catalogSearchService.searchRequest.rangeStoreGroup\"\n > \n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'IN_OUT_COLLECTION' | localize\"\n [expanded]=\"true\"\n [collection]=\"inOutCollectionCollection\"\n [(model)]=\"catalogSearchService.searchRequest.collection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'ARTICLE_TYPE' | localize\"\n [expanded]=\"true\"\n [collection]=\"articleTypeCollection\"\n [mode]=\"modes.SelectListWithStringCollectionOutput\"\n [(model)]=\"catalogSearchService.searchRequest.articleKindList\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PUBLISH_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationCode\"\n [mode]=\"modes.SelectListWithNumberOutput\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SELL_VIA' | localize\"\n [expanded]=\"true\"\n [collection]=\"artPublicationSalesCollection\"\n [(model)]=\"catalogSearchService.searchRequest.publicationWebshopSales\"\n [mode]=\"modes.SelectListWithNumberOutput\" \n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'PRICELIST_SALES' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.pricelistRetail\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"priceListsSalesCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'CATEGORY' | localize\"\n [expanded]=\"true\"\n [(model)]=\"catalogSearchService.searchRequest.category\"\n [mode]=\"modes.SingleSelectList\"\n [collection]=\"categoryCollection\"\n >\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\" *ngFor=\"let filter of filterService.filters\">\n <co-filter-item\n [placeholder]=\"filter.filterName\"\n [collection]=\"filter.filterItems\"\n [(model)]=\"catalogSearchService.searchRequest[filterService.getFilterItemMap(filter.filterName)]\" \n [showLessLabel]=\"'Bekijk minder...'\"\n [showMoreLabel]=\"'Bekijk meer...'\"\n [searchPlaceholder]=\"'Zoeken...'\"\n [expanded]=true\n [initialLimit]=5 \n ></co-filter-item> <!--(collectionChange)=\"handleCollectionChange(filter.filterName, $event)\"-->\n </div>\n </div>\n </div> \n </div>\n "
|
|
3365
3393
|
},] }
|
|
3366
3394
|
];
|
|
3367
3395
|
CatalogFilterContentGeneralComponent.ctorParameters = function () { return [
|
|
@@ -3388,7 +3416,8 @@
|
|
|
3388
3416
|
corecomponents_v12.InputTextModule,
|
|
3389
3417
|
corecomponents_v12.ButtonModule,
|
|
3390
3418
|
corecomponents_v12.IconModule,
|
|
3391
|
-
PipeModule
|
|
3419
|
+
PipeModule,
|
|
3420
|
+
corecomponents.InputCheckboxModule
|
|
3392
3421
|
],
|
|
3393
3422
|
declarations: [
|
|
3394
3423
|
CatalogFilterContentGeneralComponent
|
|
@@ -3503,21 +3532,12 @@
|
|
|
3503
3532
|
};
|
|
3504
3533
|
CatalogFilterContentLogisticsComponent.prototype.ngOnInit = function () {
|
|
3505
3534
|
};
|
|
3506
|
-
CatalogFilterContentLogisticsComponent.prototype.handleAllChanged = function (value) {
|
|
3507
|
-
this.catalogSearchService.searchRequest["doSync"] = value ? "J" : "N";
|
|
3508
|
-
this.catalogSearchService.searchRequest["showRegularArticles"] = value;
|
|
3509
|
-
this.catalogSearchService.searchRequest["showConfiguredArticles"] = value;
|
|
3510
|
-
this.catalogSearchService.searchRequest["showConfigurableArticles"] = value;
|
|
3511
|
-
this.catalogSearchService.searchRequest["showCompositionArticles"] = value;
|
|
3512
|
-
this.catalogSearchService.searchRequest["showCustomizedArticles"] = value;
|
|
3513
|
-
this.catalogSearchService.searchRequest["showInactiveArticles"] = value;
|
|
3514
|
-
};
|
|
3515
3535
|
return CatalogFilterContentLogisticsComponent;
|
|
3516
3536
|
}());
|
|
3517
3537
|
CatalogFilterContentLogisticsComponent.decorators = [
|
|
3518
3538
|
{ type: i0.Component, args: [{
|
|
3519
3539
|
selector: 'co-catalog-filter-content-logistics',
|
|
3520
|
-
template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-filter-item> \n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-filter-item>\n </div
|
|
3540
|
+
template: "\n <div class=\"catalog-filter-content-logistics-wrapper catalog-filter-content-wrapper\">\n\n <div class=\"catalog-filter-wrapper\">\n <div class=\"filter-items-wrapper co-small-scrollbar\">\n \n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'SERIALNUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.serialNumber\">\n </co-filter-item> \n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'BATCH_NUMBER' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.TextField\"\n [(model)]=\"catalogSearchService.searchRequest.batchNumber\">\n </co-filter-item>\n </div>\n <div class=\"filter-item-wrapper\">\n <co-filter-item [placeholder]=\"'MUTATION_DATE' | localize\"\n [expanded]=\"true\"\n [mode]=\"modes.DateField\"\n [(model)]=\"catalogSearchService.searchRequest.dateModified\">\n </co-filter-item>\n </div> \n </div>\n </div> \n </div>\n "
|
|
3521
3541
|
},] }
|
|
3522
3542
|
];
|
|
3523
3543
|
CatalogFilterContentLogisticsComponent.ctorParameters = function () { return [
|
|
@@ -4076,15 +4096,12 @@
|
|
|
4076
4096
|
Object.defineProperty(CatalogSearchComponent.prototype, "settings", {
|
|
4077
4097
|
set: function (value) {
|
|
4078
4098
|
if (value) {
|
|
4079
|
-
var settings = void 0;
|
|
4080
4099
|
if (typeof value === 'string') {
|
|
4081
|
-
|
|
4100
|
+
this._settings = JSON.parse(value);
|
|
4082
4101
|
}
|
|
4083
4102
|
else {
|
|
4084
|
-
|
|
4103
|
+
this._settings = value;
|
|
4085
4104
|
}
|
|
4086
|
-
this._settingsService.createSettingsFromObject(settings);
|
|
4087
|
-
this._catalogService.init(this._settingsService.settings);
|
|
4088
4105
|
}
|
|
4089
4106
|
},
|
|
4090
4107
|
enumerable: false,
|
|
@@ -4094,18 +4111,29 @@
|
|
|
4094
4111
|
return true;
|
|
4095
4112
|
};
|
|
4096
4113
|
CatalogSearchComponent.prototype.ngOnInit = function () {
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4115
|
+
var _this = this;
|
|
4116
|
+
return __generator(this, function (_a) {
|
|
4117
|
+
switch (_a.label) {
|
|
4118
|
+
case 0: return [4 /*yield*/, this._settingsService.initializeSettings()];
|
|
4119
|
+
case 1:
|
|
4120
|
+
_a.sent();
|
|
4121
|
+
this._catalogService.init(this._settings);
|
|
4122
|
+
this._subs.push(this._catalogEventService.addArticleButtonClick.subscribe(function (json) {
|
|
4123
|
+
_this.onAddArticleButtonClick.emit(json);
|
|
4124
|
+
}), this._catalogEventService.arButtonClick.subscribe(function (article) {
|
|
4125
|
+
_this.onArButtonClick.emit(article);
|
|
4126
|
+
}), this._catalogEventService.articleClick.subscribe(function (article) {
|
|
4127
|
+
_this.onArticleClick.emit(article);
|
|
4128
|
+
}), this._catalogEventService.lookAtArticleButtonClick.subscribe(function (article) {
|
|
4129
|
+
_this.onLookAtArticleButtonClick.emit(article);
|
|
4130
|
+
}), this._catalogEventService.stockDetailsClick.subscribe(function (article) {
|
|
4131
|
+
_this.onStockDetailsClick.emit(article);
|
|
4132
|
+
}));
|
|
4133
|
+
return [2 /*return*/];
|
|
4134
|
+
}
|
|
4135
|
+
});
|
|
4136
|
+
});
|
|
4109
4137
|
};
|
|
4110
4138
|
CatalogSearchComponent.prototype.ngOnDestroy = function () {
|
|
4111
4139
|
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -4352,7 +4380,7 @@
|
|
|
4352
4380
|
};
|
|
4353
4381
|
ArticleBaseComponent.prototype.handleAddArticleButtonClick = function (event) {
|
|
4354
4382
|
return __awaiter(this, void 0, void 0, function () {
|
|
4355
|
-
var json;
|
|
4383
|
+
var json, articleTreeData, i, good, subArticle;
|
|
4356
4384
|
return __generator(this, function (_a) {
|
|
4357
4385
|
switch (_a.label) {
|
|
4358
4386
|
case 0:
|
|
@@ -4360,6 +4388,31 @@
|
|
|
4360
4388
|
return [4 /*yield*/, this._getJSONFromArticleObject(this.article)];
|
|
4361
4389
|
case 1:
|
|
4362
4390
|
json = _a.sent();
|
|
4391
|
+
if (!this._settingsService.settings.createWebOrder) return [3 /*break*/, 8];
|
|
4392
|
+
if (!json) return [3 /*break*/, 8];
|
|
4393
|
+
articleTreeData = JSON.parse(json);
|
|
4394
|
+
if (!(articleTreeData.articleTree && articleTreeData.articleTree.article)) return [3 /*break*/, 8];
|
|
4395
|
+
if (!(articleTreeData.articleTree.compositeGoods && Array.isArray(articleTreeData.articleTree.compositeGoods) &&
|
|
4396
|
+
articleTreeData.articleTree.compositeGoods.length > 0 && articleTreeData.articleTree.subArticles && Array.isArray(articleTreeData.articleTree.subArticles))) return [3 /*break*/, 6];
|
|
4397
|
+
i = 0;
|
|
4398
|
+
_a.label = 2;
|
|
4399
|
+
case 2:
|
|
4400
|
+
if (!(i < articleTreeData.articleTree.compositeGoods.length - 1)) return [3 /*break*/, 5];
|
|
4401
|
+
good = articleTreeData.articleTree.compositeGoods[i];
|
|
4402
|
+
subArticle = articleTreeData.articleTree.subArticles[i];
|
|
4403
|
+
return [4 /*yield*/, this._iOne.addWebSessionTransactionLine(subArticle.articleNumber, good.quantity)];
|
|
4404
|
+
case 3:
|
|
4405
|
+
_a.sent();
|
|
4406
|
+
_a.label = 4;
|
|
4407
|
+
case 4:
|
|
4408
|
+
i++;
|
|
4409
|
+
return [3 /*break*/, 2];
|
|
4410
|
+
case 5: return [3 /*break*/, 8];
|
|
4411
|
+
case 6: return [4 /*yield*/, this._iOne.addWebSessionTransactionLine(articleTreeData.articleTree.article.articleNumber, 1)];
|
|
4412
|
+
case 7:
|
|
4413
|
+
_a.sent();
|
|
4414
|
+
_a.label = 8;
|
|
4415
|
+
case 8:
|
|
4363
4416
|
this._appEventService.addArticleButtonClick.next(json);
|
|
4364
4417
|
this.onAddArticleButtonClick.emit(json);
|
|
4365
4418
|
return [2 /*return*/];
|
|
@@ -4798,16 +4851,19 @@
|
|
|
4798
4851
|
];
|
|
4799
4852
|
|
|
4800
4853
|
var CatalogExternalSourceComponent = /** @class */ (function () {
|
|
4801
|
-
function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService) {
|
|
4854
|
+
function CatalogExternalSourceComponent(_sanitizer, _catalogConnectorService, _appEventService) {
|
|
4802
4855
|
this._sanitizer = _sanitizer;
|
|
4803
4856
|
this._catalogConnectorService = _catalogConnectorService;
|
|
4857
|
+
this._appEventService = _appEventService;
|
|
4804
4858
|
this.showFilter = true;
|
|
4805
4859
|
this.showNavigation = true;
|
|
4806
4860
|
this.articleClick = new i0.EventEmitter();
|
|
4861
|
+
this.addArticleClick = new i0.EventEmitter();
|
|
4807
4862
|
this.showClass = true;
|
|
4808
4863
|
this.showCatalog = false;
|
|
4809
4864
|
this.loaded = false;
|
|
4810
4865
|
this.externalSettings = {};
|
|
4866
|
+
this._subs = [];
|
|
4811
4867
|
}
|
|
4812
4868
|
Object.defineProperty(CatalogExternalSourceComponent.prototype, "externalSource", {
|
|
4813
4869
|
get: function () {
|
|
@@ -4821,6 +4877,12 @@
|
|
|
4821
4877
|
enumerable: false,
|
|
4822
4878
|
configurable: true
|
|
4823
4879
|
});
|
|
4880
|
+
CatalogExternalSourceComponent.prototype.ngOnInit = function () {
|
|
4881
|
+
var _this = this;
|
|
4882
|
+
this._subs.push(this._appEventService.addArticleButtonClick.subscribe(function (json) {
|
|
4883
|
+
_this.addArticleClick.next(json);
|
|
4884
|
+
}));
|
|
4885
|
+
};
|
|
4824
4886
|
CatalogExternalSourceComponent.prototype.handleArticleClick = function (article) {
|
|
4825
4887
|
if (article && this.externalSettings) {
|
|
4826
4888
|
this.articleClick.emit({ article: article, settings: { name: this.name, settings: this.externalSettings } });
|
|
@@ -4875,7 +4937,8 @@
|
|
|
4875
4937
|
];
|
|
4876
4938
|
CatalogExternalSourceComponent.ctorParameters = function () { return [
|
|
4877
4939
|
{ type: i1.DomSanitizer },
|
|
4878
|
-
{ type: CatalogConnectorService }
|
|
4940
|
+
{ type: CatalogConnectorService },
|
|
4941
|
+
{ type: CatalogEventService }
|
|
4879
4942
|
]; };
|
|
4880
4943
|
CatalogExternalSourceComponent.propDecorators = {
|
|
4881
4944
|
externalSource: [{ type: i0.Input }],
|
|
@@ -4887,6 +4950,7 @@
|
|
|
4887
4950
|
options: [{ type: i0.Input }],
|
|
4888
4951
|
name: [{ type: i0.Input }],
|
|
4889
4952
|
articleClick: [{ type: i0.Output }],
|
|
4953
|
+
addArticleClick: [{ type: i0.Output }],
|
|
4890
4954
|
showClass: [{ type: i0.HostBinding, args: ['class.co-catalog-external-source',] }]
|
|
4891
4955
|
};
|
|
4892
4956
|
|