tabexseriescomponents 0.2.900 → 0.2.901
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/dist/index.cjs.js +29 -24
- package/dist/index.esm.js +29 -24
- package/dist/index.umd.js +4 -24
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -89290,7 +89290,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
89290
89290
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
89291
89291
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
89292
89292
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
89293
|
-
var _item$producttags, _item$producttags
|
|
89293
|
+
var _item$producttags, _item$producttags$, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5;
|
|
89294
89294
|
var _useState = React.useState(''),
|
|
89295
89295
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
89296
89296
|
sectionproperties = _useState2[0],
|
|
@@ -89346,13 +89346,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
89346
89346
|
React.useEffect(function () {
|
|
89347
89347
|
setitem(props.cardinfoitemprops);
|
|
89348
89348
|
}, [props.cardinfoitemprops]);
|
|
89349
|
-
|
|
89350
|
-
|
|
89351
|
-
|
|
89352
|
-
|
|
89353
|
-
|
|
89354
|
-
|
|
89355
|
-
}, [props.cardinfoitemprops]);
|
|
89349
|
+
// useEffect(() => {
|
|
89350
|
+
// if (item.quantity == 0) {
|
|
89351
|
+
// setshowquantity(false);
|
|
89352
|
+
// } else {
|
|
89353
|
+
// setshowquantity(true);
|
|
89354
|
+
// }
|
|
89355
|
+
// }, [props.cardinfoitemprops]);
|
|
89356
89356
|
React.useEffect(function () {
|
|
89357
89357
|
var productImagetoBeSelected = '';
|
|
89358
89358
|
var Tempitem = _objectSpread$6({}, item);
|
|
@@ -90211,7 +90211,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90211
90211
|
color: sectionproperties.quantitycolor,
|
|
90212
90212
|
fontWeight: sectionproperties.quantityfontweight
|
|
90213
90213
|
}
|
|
90214
|
-
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' &&
|
|
90214
|
+
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) != '67d6bda67adf6' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90215
90215
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90216
90216
|
style: {
|
|
90217
90217
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90219,29 +90219,34 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90219
90219
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
90220
90220
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
90221
90221
|
onClick: function onClick() {
|
|
90222
|
-
|
|
90223
|
-
|
|
90224
|
-
setshowquantity(true);
|
|
90222
|
+
if (sectionproperties.showvariantscont == 'Show') {
|
|
90223
|
+
addtocartfunc();
|
|
90225
90224
|
} else {
|
|
90226
|
-
if (sectionproperties.
|
|
90225
|
+
if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
90227
90226
|
addtocartfunc();
|
|
90227
|
+
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
90228
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90228
90229
|
} else {
|
|
90229
|
-
if (sectionproperties.
|
|
90230
|
-
|
|
90231
|
-
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
90232
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90230
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
90231
|
+
item.productendpointurl;
|
|
90233
90232
|
} else {
|
|
90234
|
-
|
|
90235
|
-
item.productendpointurl;
|
|
90236
|
-
} else {
|
|
90237
|
-
item.productid;
|
|
90238
|
-
}
|
|
90239
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90233
|
+
item.productid;
|
|
90240
90234
|
}
|
|
90235
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90241
90236
|
}
|
|
90242
90237
|
}
|
|
90243
90238
|
}
|
|
90244
|
-
}, addtocartbuttonrender())), showquantity ==
|
|
90239
|
+
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '67d6bda67adf6' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90240
|
+
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90241
|
+
style: {
|
|
90242
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
90243
|
+
}
|
|
90244
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
90245
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
90246
|
+
onClick: function onClick() {
|
|
90247
|
+
setshowquantity(true);
|
|
90248
|
+
}
|
|
90249
|
+
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '67d6bda67adf6' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90245
90250
|
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
90246
90251
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90247
90252
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|
package/dist/index.esm.js
CHANGED
|
@@ -89240,7 +89240,7 @@ var Variants_J_Cards = function Variants_J_Cards(props) {
|
|
|
89240
89240
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
89241
89241
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
89242
89242
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
89243
|
-
var _item$producttags, _item$producttags
|
|
89243
|
+
var _item$producttags, _item$producttags$, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5;
|
|
89244
89244
|
var _useState = useState(''),
|
|
89245
89245
|
_useState2 = _slicedToArray(_useState, 2),
|
|
89246
89246
|
sectionproperties = _useState2[0],
|
|
@@ -89296,13 +89296,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
89296
89296
|
useEffect(function () {
|
|
89297
89297
|
setitem(props.cardinfoitemprops);
|
|
89298
89298
|
}, [props.cardinfoitemprops]);
|
|
89299
|
-
useEffect(
|
|
89300
|
-
|
|
89301
|
-
|
|
89302
|
-
|
|
89303
|
-
|
|
89304
|
-
|
|
89305
|
-
}, [props.cardinfoitemprops]);
|
|
89299
|
+
// useEffect(() => {
|
|
89300
|
+
// if (item.quantity == 0) {
|
|
89301
|
+
// setshowquantity(false);
|
|
89302
|
+
// } else {
|
|
89303
|
+
// setshowquantity(true);
|
|
89304
|
+
// }
|
|
89305
|
+
// }, [props.cardinfoitemprops]);
|
|
89306
89306
|
useEffect(function () {
|
|
89307
89307
|
var productImagetoBeSelected = '';
|
|
89308
89308
|
var Tempitem = _objectSpread$6({}, item);
|
|
@@ -90161,7 +90161,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90161
90161
|
color: sectionproperties.quantitycolor,
|
|
90162
90162
|
fontWeight: sectionproperties.quantityfontweight
|
|
90163
90163
|
}
|
|
90164
|
-
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' &&
|
|
90164
|
+
}, langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar, " ", item.currentquantity, ' ', langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2)), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.contactinfo.instid) != '67d6bda67adf6' && /*#__PURE__*/React.createElement("div", {
|
|
90165
90165
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90166
90166
|
style: {
|
|
90167
90167
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90169,29 +90169,34 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
90169
90169
|
}, /*#__PURE__*/React.createElement("p", {
|
|
90170
90170
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
90171
90171
|
onClick: function onClick() {
|
|
90172
|
-
|
|
90173
|
-
|
|
90174
|
-
setshowquantity(true);
|
|
90172
|
+
if (sectionproperties.showvariantscont == 'Show') {
|
|
90173
|
+
addtocartfunc();
|
|
90175
90174
|
} else {
|
|
90176
|
-
if (sectionproperties.
|
|
90175
|
+
if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
90177
90176
|
addtocartfunc();
|
|
90177
|
+
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
90178
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90178
90179
|
} else {
|
|
90179
|
-
if (sectionproperties.
|
|
90180
|
-
|
|
90181
|
-
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
90182
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90180
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
90181
|
+
item.productendpointurl;
|
|
90183
90182
|
} else {
|
|
90184
|
-
|
|
90185
|
-
item.productendpointurl;
|
|
90186
|
-
} else {
|
|
90187
|
-
item.productid;
|
|
90188
|
-
}
|
|
90189
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90183
|
+
item.productid;
|
|
90190
90184
|
}
|
|
90185
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90191
90186
|
}
|
|
90192
90187
|
}
|
|
90193
90188
|
}
|
|
90194
|
-
}, addtocartbuttonrender())), showquantity ==
|
|
90189
|
+
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '67d6bda67adf6' && showquantity == false && /*#__PURE__*/React.createElement("div", {
|
|
90190
|
+
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90191
|
+
style: {
|
|
90192
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
90193
|
+
}
|
|
90194
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
90195
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
90196
|
+
onClick: function onClick() {
|
|
90197
|
+
setshowquantity(true);
|
|
90198
|
+
}
|
|
90199
|
+
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '67d6bda67adf6' && /*#__PURE__*/React.createElement("div", {
|
|
90195
90200
|
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
90196
90201
|
}, /*#__PURE__*/React.createElement("div", {
|
|
90197
90202
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|
package/dist/index.umd.js
CHANGED
|
@@ -89100,7 +89100,7 @@
|
|
|
89100
89100
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
89101
89101
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
89102
89102
|
var Simpleproductcard = function Simpleproductcard(props) {
|
|
89103
|
-
var _item$producttags, _item$producttags$, _authdetailsContext$i3;
|
|
89103
|
+
var _item$producttags, _item$producttags$, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5;
|
|
89104
89104
|
var _useState = React.useState(''),
|
|
89105
89105
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
89106
89106
|
sectionproperties = _useState2[0],
|
|
@@ -90046,7 +90046,7 @@
|
|
|
90046
90046
|
}
|
|
90047
90047
|
}
|
|
90048
90048
|
}
|
|
90049
|
-
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90049
|
+
}, addtocartbuttonrender())), sectionproperties.cartBtnShow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '67d6bda67adf6' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90050
90050
|
"class": "col-lg-12 p-0 d-flex align-items-center",
|
|
90051
90051
|
style: {
|
|
90052
90052
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
@@ -90054,29 +90054,9 @@
|
|
|
90054
90054
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
90055
90055
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
90056
90056
|
onClick: function onClick() {
|
|
90057
|
-
|
|
90058
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.contactinfo.instid) == '67d6bda67adf6') {
|
|
90059
|
-
setshowquantity(true);
|
|
90060
|
-
} else {
|
|
90061
|
-
if (sectionproperties.showvariantscont == 'Show') {
|
|
90062
|
-
addtocartfunc();
|
|
90063
|
-
} else {
|
|
90064
|
-
if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
90065
|
-
addtocartfunc();
|
|
90066
|
-
} else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
90067
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90068
|
-
} else {
|
|
90069
|
-
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
90070
|
-
item.productendpointurl;
|
|
90071
|
-
} else {
|
|
90072
|
-
item.productid;
|
|
90073
|
-
}
|
|
90074
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
90075
|
-
}
|
|
90076
|
-
}
|
|
90077
|
-
}
|
|
90057
|
+
setshowquantity(true);
|
|
90078
90058
|
}
|
|
90079
|
-
}, addtocartbuttonrender())), showquantity == true && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90059
|
+
}, addtocartbuttonrender())), showquantity == true && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.contactinfo.instid) == '67d6bda67adf6' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90080
90060
|
"class": "col-lg-12 p-0 d-flex align-items-center allcentered"
|
|
90081
90061
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
90082
90062
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center ',
|