@nuskin/product-components 3.18.2-gms-12518.8 → 3.18.2-gms-11721.2
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
|
@@ -921,13 +921,15 @@ export default {
|
|
|
921
921
|
|
|
922
922
|
if (
|
|
923
923
|
availability &&
|
|
924
|
-
availability.addToCart &&
|
|
924
|
+
(availability.addToCart || availability.addToAdr) &&
|
|
925
925
|
Object.keys(this.products[sku].data).length >= 1 &&
|
|
926
926
|
availableQuantity >= 1
|
|
927
927
|
) {
|
|
928
928
|
const selectedQuantity = availability.selectedQuantity || 0;
|
|
929
929
|
if (selectedQuantity > 0) {
|
|
930
|
-
const price = availability.
|
|
930
|
+
const price = availability.AddToAdr
|
|
931
|
+
? availability.adrPrice
|
|
932
|
+
: availability.price || 0;
|
|
931
933
|
|
|
932
934
|
totalPrice += price * selectedQuantity;
|
|
933
935
|
this.totalProductQuantity += selectedQuantity;
|
|
@@ -28,13 +28,9 @@
|
|
|
28
28
|
</div>
|
|
29
29
|
<template #custom>
|
|
30
30
|
<input
|
|
31
|
-
ref="
|
|
31
|
+
ref="input"
|
|
32
32
|
v-model.number="quantityInput"
|
|
33
|
-
:class="[
|
|
34
|
-
$style.customInput,
|
|
35
|
-
{ [$style.small]: size === 'small' },
|
|
36
|
-
'quanity-input'
|
|
37
|
-
]"
|
|
33
|
+
:class="[$style.customInput, { [$style.small]: size === 'small' }]"
|
|
38
34
|
type="number"
|
|
39
35
|
min="0"
|
|
40
36
|
step="1"
|
|
@@ -175,9 +171,6 @@ export default {
|
|
|
175
171
|
}
|
|
176
172
|
}
|
|
177
173
|
},
|
|
178
|
-
mounted() {
|
|
179
|
-
this.blurAllQuantityInputs();
|
|
180
|
-
},
|
|
181
174
|
methods: {
|
|
182
175
|
/**
|
|
183
176
|
* Disables input
|
|
@@ -244,18 +237,10 @@ export default {
|
|
|
244
237
|
this.dropdownMax,
|
|
245
238
|
this.dropdownMax - this.includeZero ? 0 : 1
|
|
246
239
|
);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
this.$nextTick(() => {
|
|
252
|
-
if (!this.isMobileDevice()) {
|
|
253
|
-
this.$refs.input.focus();
|
|
254
|
-
this.$refs.input.select();
|
|
255
|
-
} else {
|
|
256
|
-
this.$refs.input.blur();
|
|
257
|
-
}
|
|
258
|
-
});
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
this.$refs.input.focus();
|
|
242
|
+
this.$refs.input.select();
|
|
243
|
+
}, 100);
|
|
259
244
|
} else {
|
|
260
245
|
this.errorMessage = "";
|
|
261
246
|
this.showCustomSelectedItem = false;
|
|
@@ -277,12 +262,6 @@ export default {
|
|
|
277
262
|
return (
|
|
278
263
|
itemQty >= this.dropdownMax && this.maxAvailable > this.dropdownMax
|
|
279
264
|
);
|
|
280
|
-
},
|
|
281
|
-
blurAllQuantityInputs() {
|
|
282
|
-
const inputs = document.querySelectorAll(
|
|
283
|
-
'input[type="number"].quantity-input'
|
|
284
|
-
);
|
|
285
|
-
inputs.forEach(input => input.blur());
|
|
286
265
|
}
|
|
287
266
|
}
|
|
288
267
|
};
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
## [3.18.2-gms-
|
|
1
|
+
## [3.18.2-gms-11721.2](https://code.tls.nuskin.io/ns-am/ux/product-components/compare/v3.18.2-gms-11721.1...v3.18.2-gms-11721.2) (2025-07-17)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.4",
|
|
4
|
-
"serialNumber": "urn:uuid:
|
|
4
|
+
"serialNumber": "urn:uuid:74c5f03a-aafb-48eb-a175-a6c21dccb129",
|
|
5
5
|
"version": 1,
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2025-07-
|
|
7
|
+
"timestamp": "2025-07-17T08:26:16Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "GitLab",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"name": "@nuskin/design-components",
|
|
88
|
-
"version": "8.
|
|
89
|
-
"purl": "pkg:npm/%40nuskin/design-components@8.
|
|
88
|
+
"version": "8.8.1",
|
|
89
|
+
"purl": "pkg:npm/%40nuskin/design-components@8.8.1",
|
|
90
90
|
"type": "library",
|
|
91
|
-
"bom-ref": "pkg:npm/%40nuskin/design-components@8.
|
|
91
|
+
"bom-ref": "pkg:npm/%40nuskin/design-components@8.8.1"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"name": "@nuskin/events",
|
|
@@ -2663,7 +2663,7 @@
|
|
|
2663
2663
|
]
|
|
2664
2664
|
},
|
|
2665
2665
|
{
|
|
2666
|
-
"ref": "pkg:npm/%40nuskin/design-components@8.
|
|
2666
|
+
"ref": "pkg:npm/%40nuskin/design-components@8.8.1",
|
|
2667
2667
|
"dependsOn": [
|
|
2668
2668
|
"pkg:npm/%40nuskin/axios-util@2.3.0",
|
|
2669
2669
|
"pkg:npm/%40nuskin/ns-account@4.28.0",
|
package/mixins/NsProductMixin.js
CHANGED
|
@@ -1082,7 +1082,7 @@ const NsProductMixin = {
|
|
|
1082
1082
|
isBaseSku: this.isBaseSku,
|
|
1083
1083
|
isVariantSku: this.isVariantSku,
|
|
1084
1084
|
addToCart: !this.disableAddToCart,
|
|
1085
|
-
addToAdr: !this.
|
|
1085
|
+
addToAdr: !this.disableAddToAdr,
|
|
1086
1086
|
selectedQuantity: Number(this.selectedQuantity),
|
|
1087
1087
|
maxQuantity: this.maxQuantity,
|
|
1088
1088
|
originalPrice: this.originalPrice,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/product-components",
|
|
3
|
-
"version": "3.18.2-gms-
|
|
3
|
+
"version": "3.18.2-gms-11721.2",
|
|
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.8.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",
|