@ikas/storefront 0.0.79 → 0.0.81
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/index.es.js
CHANGED
|
@@ -12679,10 +12679,17 @@ var IkasOrderLineItem = /** @class */ (function () {
|
|
|
12679
12679
|
: new IkasOrderLineVariant();
|
|
12680
12680
|
makeAutoObservable(this);
|
|
12681
12681
|
}
|
|
12682
|
+
Object.defineProperty(IkasOrderLineItem.prototype, "finalPriceWithQuantity", {
|
|
12683
|
+
get: function () {
|
|
12684
|
+
return this.finalPrice * this.quantity;
|
|
12685
|
+
},
|
|
12686
|
+
enumerable: false,
|
|
12687
|
+
configurable: true
|
|
12688
|
+
});
|
|
12682
12689
|
Object.defineProperty(IkasOrderLineItem.prototype, "tax", {
|
|
12683
12690
|
get: function () {
|
|
12684
12691
|
var taxValue = this.taxValue || 0;
|
|
12685
|
-
return (this.
|
|
12692
|
+
return (this.finalPriceWithQuantity / (100 + taxValue)) * taxValue;
|
|
12686
12693
|
},
|
|
12687
12694
|
enumerable: false,
|
|
12688
12695
|
configurable: true
|
|
@@ -19817,8 +19824,6 @@ var IkasProductList = /** @class */ (function () {
|
|
|
19817
19824
|
return new IkasProductDetail(product, product.variants[0].variantValues);
|
|
19818
19825
|
});
|
|
19819
19826
|
}
|
|
19820
|
-
console.log("getInitial data log");
|
|
19821
|
-
console.log(data);
|
|
19822
19827
|
this.applyFacets(response_1.facets);
|
|
19823
19828
|
this.data = data;
|
|
19824
19829
|
this._count = response_1.count;
|
|
@@ -26180,7 +26185,7 @@ var CartItem = observer(function (_a) {
|
|
|
26180
26185
|
createElement("div", { className: styles$e.VariantName }, cartItem.variant.variantValues
|
|
26181
26186
|
.map(function (vv) { return vv.variantValueName; })
|
|
26182
26187
|
.join(", "))),
|
|
26183
|
-
createElement("div", { className: styles$e.Price }, formatMoney(cartItem.
|
|
26188
|
+
createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPriceWithQuantity, currencyCode))));
|
|
26184
26189
|
});
|
|
26185
26190
|
|
|
26186
26191
|
var css_248z$g = ".style-module_CartSummary__30RcF {\n background-color: #FAFAFA;\n padding: 0 0.7em;\n border-bottom: 1px solid #d9d9d9;\n overflow: hidden; }\n .style-module_CartSummary__30RcF.style-module_AllowExpand__3kDXF {\n border-top: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 56px;\n padding: 0 1em;\n width: calc(100% + 1.4em);\n margin-left: -0.7em;\n border-bottom: 1px solid transparent;\n transition: border-bottom .3s;\n user-select: none; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv {\n display: flex;\n align-items: center;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_Label__3E7LF {\n margin-left: 0.5em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d {\n transition: all .3s; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d.style-module_Rotated__3sgbm {\n transform: rotate(-180deg); }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Price__sosrJ {\n font-weight: 500; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA.style-module_Expanded__3VBL2 {\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {\n overflow: hidden;\n width: 100%;\n transition: height .3s ease-in-out; }\n .style-module_CartSummary__30RcF .style-module_Details__3-X_i {\n overflow: hidden; }\n .style-module_CartSummary__30RcF .style-module_Divider__2d0Zk {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA {\n display: flex;\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA .style-module_CouponButton__14hL- {\n flex: 0 0 auto;\n width: 60px;\n margin-left: 0.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n color: white; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr {\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.3em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {\n color: #545454;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {\n margin-bottom: 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5em 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Title__16M5E {\n font-size: 1em; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Tax__17g6O {\n font-size: 0.8em;\n color: #545454; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TotalPrice__2s7DC {\n font-size: 1.5em;\n font-weight: 500; }\n @media only screen and (min-width: 1000px) {\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF,\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.9em; } }\n";
|
package/build/index.js
CHANGED
|
@@ -12692,10 +12692,17 @@ var IkasOrderLineItem = /** @class */ (function () {
|
|
|
12692
12692
|
: new IkasOrderLineVariant();
|
|
12693
12693
|
mobx.makeAutoObservable(this);
|
|
12694
12694
|
}
|
|
12695
|
+
Object.defineProperty(IkasOrderLineItem.prototype, "finalPriceWithQuantity", {
|
|
12696
|
+
get: function () {
|
|
12697
|
+
return this.finalPrice * this.quantity;
|
|
12698
|
+
},
|
|
12699
|
+
enumerable: false,
|
|
12700
|
+
configurable: true
|
|
12701
|
+
});
|
|
12695
12702
|
Object.defineProperty(IkasOrderLineItem.prototype, "tax", {
|
|
12696
12703
|
get: function () {
|
|
12697
12704
|
var taxValue = this.taxValue || 0;
|
|
12698
|
-
return (this.
|
|
12705
|
+
return (this.finalPriceWithQuantity / (100 + taxValue)) * taxValue;
|
|
12699
12706
|
},
|
|
12700
12707
|
enumerable: false,
|
|
12701
12708
|
configurable: true
|
|
@@ -19800,8 +19807,6 @@ var IkasProductList = /** @class */ (function () {
|
|
|
19800
19807
|
return new IkasProductDetail(product, product.variants[0].variantValues);
|
|
19801
19808
|
});
|
|
19802
19809
|
}
|
|
19803
|
-
console.log("getInitial data log");
|
|
19804
|
-
console.log(data);
|
|
19805
19810
|
this.applyFacets(response_1.facets);
|
|
19806
19811
|
this.data = data;
|
|
19807
19812
|
this._count = response_1.count;
|
|
@@ -26160,7 +26165,7 @@ var CartItem = mobxReactLite.observer(function (_a) {
|
|
|
26160
26165
|
React.createElement("div", { className: styles$e.VariantName }, cartItem.variant.variantValues
|
|
26161
26166
|
.map(function (vv) { return vv.variantValueName; })
|
|
26162
26167
|
.join(", "))),
|
|
26163
|
-
React.createElement("div", { className: styles$e.Price }, formatMoney(cartItem.
|
|
26168
|
+
React.createElement("div", { className: styles$e.Price }, formatMoney(cartItem.finalPriceWithQuantity, currencyCode))));
|
|
26164
26169
|
});
|
|
26165
26170
|
|
|
26166
26171
|
var css_248z$g = ".style-module_CartSummary__30RcF {\n background-color: #FAFAFA;\n padding: 0 0.7em;\n border-bottom: 1px solid #d9d9d9;\n overflow: hidden; }\n .style-module_CartSummary__30RcF.style-module_AllowExpand__3kDXF {\n border-top: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: 56px;\n padding: 0 1em;\n width: calc(100% + 1.4em);\n margin-left: -0.7em;\n border-bottom: 1px solid transparent;\n transition: border-bottom .3s;\n user-select: none; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv {\n display: flex;\n align-items: center;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_Label__3E7LF {\n margin-left: 0.5em; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d {\n transition: all .3s; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Left__A54sv .style-module_ArrowDown__2ET-d.style-module_Rotated__3sgbm {\n transform: rotate(-180deg); }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA .style-module_Price__sosrJ {\n font-weight: 500; }\n .style-module_CartSummary__30RcF .style-module_ExpandHeader__2ICjA.style-module_Expanded__3VBL2 {\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_DetailsContainer__FBBIP {\n overflow: hidden;\n width: 100%;\n transition: height .3s ease-in-out; }\n .style-module_CartSummary__30RcF .style-module_Details__3-X_i {\n overflow: hidden; }\n .style-module_CartSummary__30RcF .style-module_Divider__2d0Zk {\n width: 100%;\n height: 1px;\n margin: auto;\n background-color: #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA {\n display: flex;\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_Coupon__3pdQA .style-module_CouponButton__14hL- {\n flex: 0 0 auto;\n width: 60px;\n margin-left: 0.5em;\n display: flex;\n justify-content: center;\n align-items: center;\n color: white; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr {\n padding: 1.2em 0;\n border-bottom: 1px solid #d9d9d9; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.3em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF {\n color: #545454;\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.8em; }\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ:last-of-type {\n margin-bottom: 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5em 0; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Title__16M5E {\n font-size: 1em; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TitleContainer__3ptQE .style-module_Tax__17g6O {\n font-size: 0.8em;\n color: #545454; }\n .style-module_CartSummary__30RcF .style-module_TotalContainer__36DNt .style-module_TotalPrice__2s7DC {\n font-size: 1.5em;\n font-weight: 500; }\n @media only screen and (min-width: 1000px) {\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Label__3E7LF,\n .style-module_CartSummary__30RcF .style-module_SubTotalInfo__1QMnr .style-module_InfoRow__3eZdJ .style-module_Value__3mBvk {\n font-size: 0.9em; } }\n";
|