@nuskin/product-components 3.18.2-gms-12518.7 → 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",
|
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,
|