tabexseriescomponents 0.2.1331 → 0.2.1333

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 CHANGED
@@ -10148,19 +10148,10 @@ var Productinfo = function Productinfo(props) {
10148
10148
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10149
10149
  "class": ' cursor-pointer w-100 '
10150
10150
  }, /*#__PURE__*/React__default["default"].createElement("div", {
10151
- "class": "".concat(productinfo_cssstyles.relatedProductImageCont, " ").concat(productinfo_cssstyles.relatedProductImageContvertical) + ' w-100 p-0 mb-2 '
10151
+ "class": "".concat(productinfo_cssstyles.relatedProductImageCont) + ' w-100 p-0 mb-2 h-md-auto '
10152
10152
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
10153
10153
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
10154
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey
10155
- // path={
10156
- // '/tr:w-' +
10157
- // sectionproperties.relatedProductDimWidth +
10158
- // ',h-' +
10159
- // sectionproperties.galleryHeightDimension +
10160
- // '/' +
10161
- // item.productinfo.productmainimage
10162
- // }
10163
- ,
10154
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
10164
10155
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.productmainimage,
10165
10156
  loading: "lazy",
10166
10157
  style: {
@@ -22293,6 +22284,20 @@ var Filter$1 = function Filter(props) {
22293
22284
  filterrouting(tempfetchproductsfilerobjcontext);
22294
22285
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
22295
22286
  };
22287
+ var setCollectionFilterFunc_onecoll = function setCollectionFilterFunc_onecoll(collectionid) {
22288
+ var _tempfetchproductsfil5;
22289
+ var tempfetchproductsfilerobjcontext = _objectSpread$2m({}, ProductFilterObjContext);
22290
+
22291
+ // always keep only one collection selected
22292
+ tempfetchproductsfilerobjcontext.collections = [collectionid];
22293
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
22294
+ if (tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != undefined && tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != null && (tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil5 = tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter) === null || _tempfetchproductsfil5 === void 0 ? void 0 : _tempfetchproductsfil5.length) != 0) {
22295
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Parent Collection';
22296
+ }
22297
+ tempfetchproductsfilerobjcontext.page = 0;
22298
+ setProductFilterObjContext(_objectSpread$2m({}, tempfetchproductsfilerobjcontext));
22299
+ filterrouting(tempfetchproductsfilerobjcontext);
22300
+ };
22296
22301
  React.useEffect(function () {
22297
22302
  var _FetchAllVendorsQuery, _FetchAllVendorsQuery2, _FetchVendors_byprodu, _FetchVendors_byprodu2;
22298
22303
  if (FetchAllVendorsQuery !== null && FetchAllVendorsQuery !== void 0 && FetchAllVendorsQuery.isSuccess && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = _FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 ? void 0 : _FetchAllVendorsQuery.vendors) != undefined && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery2 = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.vendors) === null || _FetchAllVendorsQuery2 === void 0 ? void 0 : _FetchAllVendorsQuery2.length) != 0 && FetchVendors_byproductsQuery !== null && FetchVendors_byproductsQuery !== void 0 && FetchVendors_byproductsQuery.isSuccess && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu === void 0 || (_FetchVendors_byprodu = _FetchVendors_byprodu.data) === null || _FetchVendors_byprodu === void 0 ? void 0 : _FetchVendors_byprodu.vendors) != undefined && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu2 = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.vendors) === null || _FetchVendors_byprodu2 === void 0 ? void 0 : _FetchVendors_byprodu2.length) != 0) {
@@ -23619,7 +23624,12 @@ var Filter$1 = function Filter(props) {
23619
23624
  }, /*#__PURE__*/React__default["default"].createElement("div", {
23620
23625
  className: "".concat(filter_cssstyles.timeline_text, " ").concat(filter_cssstyles.filtercard) + ' p-0 cursor-pointer ',
23621
23626
  onClick: function onClick() {
23622
- setCollectionFilterFunc(item.collectionid);
23627
+ if (authdetailsContext.instinfo.instid == '690b53825ac09') {
23628
+ setCollectionFilterFunc_onecoll(item.collectionid);
23629
+ } else {
23630
+ setCollectionFilterFunc(item.collectionid);
23631
+ }
23632
+ // setCollectionFilterFunc(item.collectionid);
23623
23633
  },
23624
23634
  style: {
23625
23635
  color: item.isfilterselected == true ? sectionproperties.activecat_color : ''
package/dist/index.esm.js CHANGED
@@ -10097,19 +10097,10 @@ var Productinfo = function Productinfo(props) {
10097
10097
  }, /*#__PURE__*/React.createElement("div", {
10098
10098
  "class": ' cursor-pointer w-100 '
10099
10099
  }, /*#__PURE__*/React.createElement("div", {
10100
- "class": "".concat(productinfo_cssstyles.relatedProductImageCont, " ").concat(productinfo_cssstyles.relatedProductImageContvertical) + ' w-100 p-0 mb-2 '
10100
+ "class": "".concat(productinfo_cssstyles.relatedProductImageCont) + ' w-100 p-0 mb-2 h-md-auto '
10101
10101
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
10102
10102
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
10103
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey
10104
- // path={
10105
- // '/tr:w-' +
10106
- // sectionproperties.relatedProductDimWidth +
10107
- // ',h-' +
10108
- // sectionproperties.galleryHeightDimension +
10109
- // '/' +
10110
- // item.productinfo.productmainimage
10111
- // }
10112
- ,
10103
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
10113
10104
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.productmainimage,
10114
10105
  loading: "lazy",
10115
10106
  style: {
@@ -22242,6 +22233,20 @@ var Filter$1 = function Filter(props) {
22242
22233
  filterrouting(tempfetchproductsfilerobjcontext);
22243
22234
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
22244
22235
  };
22236
+ var setCollectionFilterFunc_onecoll = function setCollectionFilterFunc_onecoll(collectionid) {
22237
+ var _tempfetchproductsfil5;
22238
+ var tempfetchproductsfilerobjcontext = _objectSpread$2m({}, ProductFilterObjContext);
22239
+
22240
+ // always keep only one collection selected
22241
+ tempfetchproductsfilerobjcontext.collections = [collectionid];
22242
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
22243
+ if (tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != undefined && tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != null && (tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil5 = tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter) === null || _tempfetchproductsfil5 === void 0 ? void 0 : _tempfetchproductsfil5.length) != 0) {
22244
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Parent Collection';
22245
+ }
22246
+ tempfetchproductsfilerobjcontext.page = 0;
22247
+ setProductFilterObjContext(_objectSpread$2m({}, tempfetchproductsfilerobjcontext));
22248
+ filterrouting(tempfetchproductsfilerobjcontext);
22249
+ };
22245
22250
  useEffect(function () {
22246
22251
  var _FetchAllVendorsQuery, _FetchAllVendorsQuery2, _FetchVendors_byprodu, _FetchVendors_byprodu2;
22247
22252
  if (FetchAllVendorsQuery !== null && FetchAllVendorsQuery !== void 0 && FetchAllVendorsQuery.isSuccess && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = _FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 ? void 0 : _FetchAllVendorsQuery.vendors) != undefined && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery2 = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.vendors) === null || _FetchAllVendorsQuery2 === void 0 ? void 0 : _FetchAllVendorsQuery2.length) != 0 && FetchVendors_byproductsQuery !== null && FetchVendors_byproductsQuery !== void 0 && FetchVendors_byproductsQuery.isSuccess && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu === void 0 || (_FetchVendors_byprodu = _FetchVendors_byprodu.data) === null || _FetchVendors_byprodu === void 0 ? void 0 : _FetchVendors_byprodu.vendors) != undefined && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu2 = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.vendors) === null || _FetchVendors_byprodu2 === void 0 ? void 0 : _FetchVendors_byprodu2.length) != 0) {
@@ -23568,7 +23573,12 @@ var Filter$1 = function Filter(props) {
23568
23573
  }, /*#__PURE__*/React.createElement("div", {
23569
23574
  className: "".concat(filter_cssstyles.timeline_text, " ").concat(filter_cssstyles.filtercard) + ' p-0 cursor-pointer ',
23570
23575
  onClick: function onClick() {
23571
- setCollectionFilterFunc(item.collectionid);
23576
+ if (authdetailsContext.instinfo.instid == '690b53825ac09') {
23577
+ setCollectionFilterFunc_onecoll(item.collectionid);
23578
+ } else {
23579
+ setCollectionFilterFunc(item.collectionid);
23580
+ }
23581
+ // setCollectionFilterFunc(item.collectionid);
23572
23582
  },
23573
23583
  style: {
23574
23584
  color: item.isfilterselected == true ? sectionproperties.activecat_color : ''
package/dist/index.umd.js CHANGED
@@ -9954,19 +9954,10 @@
9954
9954
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9955
9955
  "class": ' cursor-pointer w-100 '
9956
9956
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9957
- "class": "".concat(productinfo_cssstyles.relatedProductImageCont, " ").concat(productinfo_cssstyles.relatedProductImageContvertical) + ' w-100 p-0 mb-2 '
9957
+ "class": "".concat(productinfo_cssstyles.relatedProductImageCont) + ' w-100 p-0 mb-2 h-md-auto '
9958
9958
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
9959
9959
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
9960
- publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey
9961
- // path={
9962
- // '/tr:w-' +
9963
- // sectionproperties.relatedProductDimWidth +
9964
- // ',h-' +
9965
- // sectionproperties.galleryHeightDimension +
9966
- // '/' +
9967
- // item.productinfo.productmainimage
9968
- // }
9969
- ,
9960
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
9970
9961
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.productinfo.productmainimage,
9971
9962
  loading: "lazy",
9972
9963
  style: {
@@ -22099,6 +22090,20 @@
22099
22090
  filterrouting(tempfetchproductsfilerobjcontext);
22100
22091
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
22101
22092
  };
22093
+ var setCollectionFilterFunc_onecoll = function setCollectionFilterFunc_onecoll(collectionid) {
22094
+ var _tempfetchproductsfil5;
22095
+ var tempfetchproductsfilerobjcontext = _objectSpread$2m({}, ProductFilterObjContext);
22096
+
22097
+ // always keep only one collection selected
22098
+ tempfetchproductsfilerobjcontext.collections = [collectionid];
22099
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
22100
+ if (tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != undefined && tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter != null && (tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil5 = tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter) === null || _tempfetchproductsfil5 === void 0 ? void 0 : _tempfetchproductsfil5.length) != 0) {
22101
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Parent Collection';
22102
+ }
22103
+ tempfetchproductsfilerobjcontext.page = 0;
22104
+ setProductFilterObjContext(_objectSpread$2m({}, tempfetchproductsfilerobjcontext));
22105
+ filterrouting(tempfetchproductsfilerobjcontext);
22106
+ };
22102
22107
  React.useEffect(function () {
22103
22108
  var _FetchAllVendorsQuery, _FetchAllVendorsQuery2, _FetchVendors_byprodu, _FetchVendors_byprodu2;
22104
22109
  if (FetchAllVendorsQuery !== null && FetchAllVendorsQuery !== void 0 && FetchAllVendorsQuery.isSuccess && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery = _FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery === void 0 ? void 0 : _FetchAllVendorsQuery.vendors) != undefined && (FetchAllVendorsQuery === null || FetchAllVendorsQuery === void 0 || (_FetchAllVendorsQuery2 = FetchAllVendorsQuery.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.data) === null || _FetchAllVendorsQuery2 === void 0 || (_FetchAllVendorsQuery2 = _FetchAllVendorsQuery2.vendors) === null || _FetchAllVendorsQuery2 === void 0 ? void 0 : _FetchAllVendorsQuery2.length) != 0 && FetchVendors_byproductsQuery !== null && FetchVendors_byproductsQuery !== void 0 && FetchVendors_byproductsQuery.isSuccess && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu === void 0 || (_FetchVendors_byprodu = _FetchVendors_byprodu.data) === null || _FetchVendors_byprodu === void 0 ? void 0 : _FetchVendors_byprodu.vendors) != undefined && (FetchVendors_byproductsQuery === null || FetchVendors_byproductsQuery === void 0 || (_FetchVendors_byprodu2 = FetchVendors_byproductsQuery.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.data) === null || _FetchVendors_byprodu2 === void 0 || (_FetchVendors_byprodu2 = _FetchVendors_byprodu2.vendors) === null || _FetchVendors_byprodu2 === void 0 ? void 0 : _FetchVendors_byprodu2.length) != 0) {
@@ -23425,7 +23430,12 @@
23425
23430
  }, /*#__PURE__*/React__default["default"].createElement("div", {
23426
23431
  className: "".concat(filter_cssstyles.timeline_text, " ").concat(filter_cssstyles.filtercard) + ' p-0 cursor-pointer ',
23427
23432
  onClick: function onClick() {
23428
- setCollectionFilterFunc(item.collectionid);
23433
+ if (authdetailsContext.instinfo.instid == '690b53825ac09') {
23434
+ setCollectionFilterFunc_onecoll(item.collectionid);
23435
+ } else {
23436
+ setCollectionFilterFunc(item.collectionid);
23437
+ }
23438
+ // setCollectionFilterFunc(item.collectionid);
23429
23439
  },
23430
23440
  style: {
23431
23441
  color: item.isfilterselected == true ? sectionproperties.activecat_color : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.2.1331",
3
+ "version": "0.2.1333",
4
4
  "type": "module",
5
5
  "description": "your description",
6
6
  "main": "dist/index.cjs.js",