@nuskin/product-components 3.19.0-pa-902.1 → 3.19.0
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/.releaserc
CHANGED
|
@@ -48,8 +48,16 @@
|
|
|
48
48
|
<div :class="$style.offerMessaging">
|
|
49
49
|
<h2 :class="$style.offerTitle">{{ localTranslations.welcome }}</h2>
|
|
50
50
|
<p :class="$style.offerMessage">
|
|
51
|
-
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{
|
|
52
|
-
|
|
51
|
+
<span v-if="!offer.isGroupOffer && !offer.isQuickShare">{{
|
|
52
|
+
offer.name
|
|
53
|
+
}}</span>
|
|
54
|
+
<span
|
|
55
|
+
v-if="
|
|
56
|
+
!offer.isGroupOffer &&
|
|
57
|
+
offer.countryCode === 'JP' &&
|
|
58
|
+
!offer.isQuickShare
|
|
59
|
+
"
|
|
60
|
+
>
|
|
53
61
|
さん,
|
|
54
62
|
</span>
|
|
55
63
|
<span v-else-if="!offer.isGroupOffer && offer.countryCode !== 'JP'"
|
|
@@ -921,13 +929,15 @@ export default {
|
|
|
921
929
|
|
|
922
930
|
if (
|
|
923
931
|
availability &&
|
|
924
|
-
availability.addToCart &&
|
|
932
|
+
(availability.addToCart || availability.addToAdr) &&
|
|
925
933
|
Object.keys(this.products[sku].data).length >= 1 &&
|
|
926
934
|
availableQuantity >= 1
|
|
927
935
|
) {
|
|
928
936
|
const selectedQuantity = availability.selectedQuantity || 0;
|
|
929
937
|
if (selectedQuantity > 0) {
|
|
930
|
-
const price = availability.
|
|
938
|
+
const price = availability.addToCart
|
|
939
|
+
? availability.price
|
|
940
|
+
: availability.adrPrice || 0;
|
|
931
941
|
|
|
932
942
|
totalPrice += price * selectedQuantity;
|
|
933
943
|
this.totalProductQuantity += selectedQuantity;
|
|
@@ -237,10 +237,14 @@ export default {
|
|
|
237
237
|
this.dropdownMax,
|
|
238
238
|
this.dropdownMax - this.includeZero ? 0 : 1
|
|
239
239
|
);
|
|
240
|
-
|
|
241
|
-
this
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
this.$nextTick(() => {
|
|
241
|
+
if (!this.isMobileDevice()) {
|
|
242
|
+
this.$refs.input.focus();
|
|
243
|
+
this.$refs.input.select();
|
|
244
|
+
} else {
|
|
245
|
+
this.$refs.input.blur();
|
|
246
|
+
}
|
|
247
|
+
});
|
|
244
248
|
} else {
|
|
245
249
|
this.errorMessage = "";
|
|
246
250
|
this.showCustomSelectedItem = false;
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# [3.19.0
|
|
1
|
+
# [3.19.0](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.4...v3.19.0) (2025-10-10)
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -1092,7 +1092,7 @@ const NsProductMixin = {
|
|
|
1092
1092
|
isBaseSku: this.isBaseSku,
|
|
1093
1093
|
isVariantSku: this.isVariantSku,
|
|
1094
1094
|
addToCart: !this.disableAddToCart,
|
|
1095
|
-
addToAdr: !this.
|
|
1095
|
+
addToAdr: !this.disableAddToAdr,
|
|
1096
1096
|
selectedQuantity: Number(this.selectedQuantity),
|
|
1097
1097
|
maxQuantity: this.maxQuantity,
|
|
1098
1098
|
originalPrice: this.originalPrice,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/product-components",
|
|
3
|
-
"version": "3.19.0
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "Nu Skin Product Components",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@mdi/font": "3.9.97",
|
|
26
26
|
"@ns/ns-contentstack-lib": "2.2.2",
|
|
27
|
-
"@nuskin/design-components": "8.
|
|
27
|
+
"@nuskin/design-components": "8.9.1",
|
|
28
28
|
"@nuskin/ns-common-lib": "1.4.8",
|
|
29
29
|
"@nuskin/ns-core-styles": "2.12.0",
|
|
30
30
|
"@nuskin/ns-icon": "2.12.1",
|