@crystaldesign/basket-model 24.11.0-beta.36 → 24.11.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +11 -11
- package/build/esm/index.js +11 -11
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -443,15 +443,15 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
443
443
|
_this = this,
|
|
444
444
|
_this$VKPrice5;
|
|
445
445
|
return /*AricleName*/(
|
|
446
|
-
DivaUtils__default["default"].tryDecodeURIComponent(this.Name) + '\n' + '\n' + (
|
|
447
|
-
!config.hideArticleNr && this.ConfigArticleCodex !== this.ArticleCodex ? t('basket.priceOverview.table.articleNr') + ': ' + this.ArticleCodex + '\n' : '') + (
|
|
448
|
-
!config.hideCatalogName ? t('basket.priceOverview.table.model') + ': ' + orderSet.CatalogName + ' \n' : '') + (
|
|
449
|
-
!config.hideOrderNr ? t('basket.priceOverview.table.orderNr') + ': ' + this.ConfigArticleCodex + ' \n' : '') + (
|
|
450
|
-
!config.hideSize && this.Size ? t('basket.priceOverview.table.size') + ': ' + this.Size + ' \n' : '') + (
|
|
446
|
+
DivaUtils__default["default"].tryDecodeURIComponent(this.Name) + '\n' + '\n' + (/*AricleNr*/
|
|
447
|
+
!config.hideArticleNr && this.ConfigArticleCodex !== this.ArticleCodex ? t('basket.priceOverview.table.articleNr') + ': ' + this.ArticleCodex + '\n' : '') + (/*CatalogName*/
|
|
448
|
+
!config.hideCatalogName ? t('basket.priceOverview.table.model') + ': ' + orderSet.CatalogName + ' \n' : '') + (/*AricleOrderNr*/
|
|
449
|
+
!config.hideOrderNr ? t('basket.priceOverview.table.orderNr') + ': ' + this.ConfigArticleCodex + ' \n' : '') + (/*ArticleSize*/
|
|
450
|
+
!config.hideSize && this.Size ? t('basket.priceOverview.table.size') + ': ' + this.Size + ' \n' : '') + (/*ArticlePrices*/
|
|
451
451
|
!config.hidePrices ? /*BasePrice */
|
|
452
|
-
(_this$ConfigPriceData = this.ConfigPriceDatas) !== null && _this$ConfigPriceData !== void 0 && _this$ConfigPriceData.BasePriceTitle && this.ConfigPriceDatas.BasePrice ? t('basket.priceOverview.table.base_price') + ': ' + this.ConfigPriceDatas.BasePriceTitle + ' - ' + DivaUtils__default["default"].formatPrice(this.ConfigPriceDatas.BasePrice, priceFormat) + ' \n' : '' + (
|
|
452
|
+
(_this$ConfigPriceData = this.ConfigPriceDatas) !== null && _this$ConfigPriceData !== void 0 && _this$ConfigPriceData.BasePriceTitle && this.ConfigPriceDatas.BasePrice ? t('basket.priceOverview.table.base_price') + ': ' + this.ConfigPriceDatas.BasePriceTitle + ' - ' + DivaUtils__default["default"].formatPrice(this.ConfigPriceDatas.BasePrice, priceFormat) + ' \n' : '' + (/*AdditionalPrices */(_this$ConfigPriceData2 = this.ConfigPriceDatas) === null || _this$ConfigPriceData2 === void 0 ? void 0 : _this$ConfigPriceData2.AdditionalPrices) ? (_this$ConfigPriceData3 = this.ConfigPriceDatas) === null || _this$ConfigPriceData3 === void 0 || (_this$ConfigPriceData3 = _this$ConfigPriceData3.AdditionalPrices) === null || _this$ConfigPriceData3 === void 0 ? void 0 : _this$ConfigPriceData3.map(function (variant, i) {
|
|
453
453
|
return !_this.priceFoundInVariants(variant) ? t('basket.priceOverview.table.additional_price') + ': ' + variant.Title + ' - ' + variant.Price + '\n' : '';
|
|
454
|
-
}).join('') : '' : '') + (
|
|
454
|
+
}).join('') : '' : '') + (/*ArticleVariantValues*/
|
|
455
455
|
!config.hideVariantValues && this.VariantBasketDatas ? this.VariantBasketDatas.map(function (variant, i, array) {
|
|
456
456
|
var _this$ConfigPriceData4;
|
|
457
457
|
var addPercentagePrinted = false;
|
|
@@ -459,7 +459,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
459
459
|
return /*Tabgroup */(
|
|
460
460
|
(variant.TabGroup && variant.TabGroup != variant.OPTName && (!array[i - 1] || array[i - 1].TabGroup != variant.TabGroup) ? '\n' + variant.TabGroup + '\n' : variant.TabGroup == variant.OPTName ? '\n' : '') + /*Optionname */
|
|
461
461
|
variant.OPTName + ': ' + /*Optionvaluename */
|
|
462
|
-
variant.OPVName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : '') + (variant.vOPV ? ' (' + variant.vOPV + ')' : '') + (
|
|
462
|
+
variant.OPVName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : '') + (variant.vOPV ? ' (' + variant.vOPV + ')' : '') + (/*Variant price*/
|
|
463
463
|
!config.hidePrices && (_this$ConfigPriceData4 = _this.ConfigPriceDatas) !== null && _this$ConfigPriceData4 !== void 0 && _this$ConfigPriceData4.AdditionalPrices ? _this.ConfigPriceDatas.AdditionalPrices.map(function (item) {
|
|
464
464
|
if (item.OPT == variant.OPT) {
|
|
465
465
|
for (var _i = 0; _i < _this.VariantBasketDatas.length; _i++) {
|
|
@@ -474,9 +474,9 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
474
474
|
return '';
|
|
475
475
|
}).join('') : '') + '\n'
|
|
476
476
|
);
|
|
477
|
-
}).join('') + '\n' : '') + (
|
|
478
|
-
!config.hideTotalPrices && (_this$VKPrice5 = this.VKPrice) !== null && _this$VKPrice5 !== void 0 && _this$VKPrice5.Price ? t('basket.priceOverview.table.singlePrice') + ': ' + DivaUtils__default["default"].formatPrice(this.VKPrice.Price, priceFormat) + ' \n' : '') + (
|
|
479
|
-
!config.hideQuantity ? t('catalogs.header.nArticles') + ': ' + this.Quantity + ' \n' : '') + (
|
|
477
|
+
}).join('') + '\n' : '') + (/*ArticleSingle*/
|
|
478
|
+
!config.hideTotalPrices && (_this$VKPrice5 = this.VKPrice) !== null && _this$VKPrice5 !== void 0 && _this$VKPrice5.Price ? t('basket.priceOverview.table.singlePrice') + ': ' + DivaUtils__default["default"].formatPrice(this.VKPrice.Price, priceFormat) + ' \n' : '') + (/*ArticleQuantity*/
|
|
479
|
+
!config.hideQuantity ? t('catalogs.header.nArticles') + ': ' + this.Quantity + ' \n' : '') + (/*ArticleCalcPrice*/
|
|
480
480
|
!config.hideTotalPrices && this.CalcPrice ? t('basket.priceOverview.table.sum') + ': ' + DivaUtils__default["default"].formatPrice(this.CalcPrice, priceFormat) + ' \n' : '')
|
|
481
481
|
);
|
|
482
482
|
}
|
package/build/esm/index.js
CHANGED
|
@@ -431,15 +431,15 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
431
431
|
_this = this,
|
|
432
432
|
_this$VKPrice5;
|
|
433
433
|
return /*AricleName*/(
|
|
434
|
-
DivaUtils.tryDecodeURIComponent(this.Name) + '\n' + '\n' + (
|
|
435
|
-
!config.hideArticleNr && this.ConfigArticleCodex !== this.ArticleCodex ? t('basket.priceOverview.table.articleNr') + ': ' + this.ArticleCodex + '\n' : '') + (
|
|
436
|
-
!config.hideCatalogName ? t('basket.priceOverview.table.model') + ': ' + orderSet.CatalogName + ' \n' : '') + (
|
|
437
|
-
!config.hideOrderNr ? t('basket.priceOverview.table.orderNr') + ': ' + this.ConfigArticleCodex + ' \n' : '') + (
|
|
438
|
-
!config.hideSize && this.Size ? t('basket.priceOverview.table.size') + ': ' + this.Size + ' \n' : '') + (
|
|
434
|
+
DivaUtils.tryDecodeURIComponent(this.Name) + '\n' + '\n' + (/*AricleNr*/
|
|
435
|
+
!config.hideArticleNr && this.ConfigArticleCodex !== this.ArticleCodex ? t('basket.priceOverview.table.articleNr') + ': ' + this.ArticleCodex + '\n' : '') + (/*CatalogName*/
|
|
436
|
+
!config.hideCatalogName ? t('basket.priceOverview.table.model') + ': ' + orderSet.CatalogName + ' \n' : '') + (/*AricleOrderNr*/
|
|
437
|
+
!config.hideOrderNr ? t('basket.priceOverview.table.orderNr') + ': ' + this.ConfigArticleCodex + ' \n' : '') + (/*ArticleSize*/
|
|
438
|
+
!config.hideSize && this.Size ? t('basket.priceOverview.table.size') + ': ' + this.Size + ' \n' : '') + (/*ArticlePrices*/
|
|
439
439
|
!config.hidePrices ? /*BasePrice */
|
|
440
|
-
(_this$ConfigPriceData = this.ConfigPriceDatas) !== null && _this$ConfigPriceData !== void 0 && _this$ConfigPriceData.BasePriceTitle && this.ConfigPriceDatas.BasePrice ? t('basket.priceOverview.table.base_price') + ': ' + this.ConfigPriceDatas.BasePriceTitle + ' - ' + DivaUtils.formatPrice(this.ConfigPriceDatas.BasePrice, priceFormat) + ' \n' : '' + (
|
|
440
|
+
(_this$ConfigPriceData = this.ConfigPriceDatas) !== null && _this$ConfigPriceData !== void 0 && _this$ConfigPriceData.BasePriceTitle && this.ConfigPriceDatas.BasePrice ? t('basket.priceOverview.table.base_price') + ': ' + this.ConfigPriceDatas.BasePriceTitle + ' - ' + DivaUtils.formatPrice(this.ConfigPriceDatas.BasePrice, priceFormat) + ' \n' : '' + (/*AdditionalPrices */(_this$ConfigPriceData2 = this.ConfigPriceDatas) === null || _this$ConfigPriceData2 === void 0 ? void 0 : _this$ConfigPriceData2.AdditionalPrices) ? (_this$ConfigPriceData3 = this.ConfigPriceDatas) === null || _this$ConfigPriceData3 === void 0 || (_this$ConfigPriceData3 = _this$ConfigPriceData3.AdditionalPrices) === null || _this$ConfigPriceData3 === void 0 ? void 0 : _this$ConfigPriceData3.map(function (variant, i) {
|
|
441
441
|
return !_this.priceFoundInVariants(variant) ? t('basket.priceOverview.table.additional_price') + ': ' + variant.Title + ' - ' + variant.Price + '\n' : '';
|
|
442
|
-
}).join('') : '' : '') + (
|
|
442
|
+
}).join('') : '' : '') + (/*ArticleVariantValues*/
|
|
443
443
|
!config.hideVariantValues && this.VariantBasketDatas ? this.VariantBasketDatas.map(function (variant, i, array) {
|
|
444
444
|
var _this$ConfigPriceData4;
|
|
445
445
|
var addPercentagePrinted = false;
|
|
@@ -447,7 +447,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
447
447
|
return /*Tabgroup */(
|
|
448
448
|
(variant.TabGroup && variant.TabGroup != variant.OPTName && (!array[i - 1] || array[i - 1].TabGroup != variant.TabGroup) ? '\n' + variant.TabGroup + '\n' : variant.TabGroup == variant.OPTName ? '\n' : '') + /*Optionname */
|
|
449
449
|
variant.OPTName + ': ' + /*Optionvaluename */
|
|
450
|
-
variant.OPVName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : '') + (variant.vOPV ? ' (' + variant.vOPV + ')' : '') + (
|
|
450
|
+
variant.OPVName + (variant.MeasureValue ? ': ' + variant.MeasureValue + ' ' + variant.MeasureUnit : '') + (variant.vOPV ? ' (' + variant.vOPV + ')' : '') + (/*Variant price*/
|
|
451
451
|
!config.hidePrices && (_this$ConfigPriceData4 = _this.ConfigPriceDatas) !== null && _this$ConfigPriceData4 !== void 0 && _this$ConfigPriceData4.AdditionalPrices ? _this.ConfigPriceDatas.AdditionalPrices.map(function (item) {
|
|
452
452
|
if (item.OPT == variant.OPT) {
|
|
453
453
|
for (var _i = 0; _i < _this.VariantBasketDatas.length; _i++) {
|
|
@@ -462,9 +462,9 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
462
462
|
return '';
|
|
463
463
|
}).join('') : '') + '\n'
|
|
464
464
|
);
|
|
465
|
-
}).join('') + '\n' : '') + (
|
|
466
|
-
!config.hideTotalPrices && (_this$VKPrice5 = this.VKPrice) !== null && _this$VKPrice5 !== void 0 && _this$VKPrice5.Price ? t('basket.priceOverview.table.singlePrice') + ': ' + DivaUtils.formatPrice(this.VKPrice.Price, priceFormat) + ' \n' : '') + (
|
|
467
|
-
!config.hideQuantity ? t('catalogs.header.nArticles') + ': ' + this.Quantity + ' \n' : '') + (
|
|
465
|
+
}).join('') + '\n' : '') + (/*ArticleSingle*/
|
|
466
|
+
!config.hideTotalPrices && (_this$VKPrice5 = this.VKPrice) !== null && _this$VKPrice5 !== void 0 && _this$VKPrice5.Price ? t('basket.priceOverview.table.singlePrice') + ': ' + DivaUtils.formatPrice(this.VKPrice.Price, priceFormat) + ' \n' : '') + (/*ArticleQuantity*/
|
|
467
|
+
!config.hideQuantity ? t('catalogs.header.nArticles') + ': ' + this.Quantity + ' \n' : '') + (/*ArticleCalcPrice*/
|
|
468
468
|
!config.hideTotalPrices && this.CalcPrice ? t('basket.priceOverview.table.sum') + ': ' + DivaUtils.formatPrice(this.CalcPrice, priceFormat) + ' \n' : '')
|
|
469
469
|
);
|
|
470
470
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/basket-model",
|
|
3
|
-
"version": "24.11.0-beta.
|
|
3
|
+
"version": "24.11.0-beta.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"lodash.debounce": "^4.0.8"
|
|
21
21
|
},
|
|
22
22
|
"main": "build/cjs/index.js",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5d97d8aefbfe3433ca9884a39d60174a9ffc2db5"
|
|
24
24
|
}
|