tabexseriescomponents 0.0.176 → 0.0.177

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
@@ -8818,6 +8818,7 @@ var Filter$1 = function Filter(props) {
8818
8818
  } else {
8819
8819
  tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
8820
8820
  }
8821
+ tempfetchproductsfilerobjcontext.page = 0;
8821
8822
  setProductFilterObjContext(_objectSpread$1C({}, tempfetchproductsfilerobjcontext));
8822
8823
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
8823
8824
  }
@@ -9283,10 +9284,12 @@ var CardsSection = function CardsSection(props) {
9283
9284
  // }
9284
9285
  // }, [inView]);
9285
9286
  React.useEffect(function () {
9287
+ var productfilerobjtemp = ProductFilterObjContext;
9286
9288
  if (props.filterparamsprops != undefined) {
9287
9289
  var filterpar = decodeURIComponent(props.filterparamsprops);
9288
9290
  var filterparsed = JSON.parse(filterpar);
9289
9291
  if (filterparsed != undefined) {
9292
+ productfilerobjtemp = filterparsed;
9290
9293
  setProductFilterObjContext(filterparsed);
9291
9294
  }
9292
9295
  }
@@ -9300,8 +9303,12 @@ var CardsSection = function CardsSection(props) {
9300
9303
  setsectionproperties(_objectSpread$1B({}, secpropobj));
9301
9304
  if (props.srcfromprops == 'GeneralProductsComponent') {
9302
9305
  setfetchingtype('products');
9306
+ var lcproductfetchingtype = 'Random';
9307
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
9308
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
9309
+ }
9303
9310
  setProductsFetchingTypeSectionObj({
9304
- productfetchingtype: 'Random',
9311
+ productfetchingtype: lcproductfetchingtype,
9305
9312
  collectionid: props.collectionidprops,
9306
9313
  grouptype: props.grouptypeprops,
9307
9314
  grouptyperefid: props.grouptyperefidprops
@@ -9908,7 +9915,7 @@ var CardsSection = function CardsSection(props) {
9908
9915
  if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
9909
9916
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
9910
9917
  } else {
9911
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
9918
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
9912
9919
  }
9913
9920
  } else {
9914
9921
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
package/dist/index.esm.js CHANGED
@@ -8774,6 +8774,7 @@ var Filter$1 = function Filter(props) {
8774
8774
  } else {
8775
8775
  tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
8776
8776
  }
8777
+ tempfetchproductsfilerobjcontext.page = 0;
8777
8778
  setProductFilterObjContext(_objectSpread$1C({}, tempfetchproductsfilerobjcontext));
8778
8779
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
8779
8780
  }
@@ -9239,10 +9240,12 @@ var CardsSection = function CardsSection(props) {
9239
9240
  // }
9240
9241
  // }, [inView]);
9241
9242
  useEffect(function () {
9243
+ var productfilerobjtemp = ProductFilterObjContext;
9242
9244
  if (props.filterparamsprops != undefined) {
9243
9245
  var filterpar = decodeURIComponent(props.filterparamsprops);
9244
9246
  var filterparsed = JSON.parse(filterpar);
9245
9247
  if (filterparsed != undefined) {
9248
+ productfilerobjtemp = filterparsed;
9246
9249
  setProductFilterObjContext(filterparsed);
9247
9250
  }
9248
9251
  }
@@ -9256,8 +9259,12 @@ var CardsSection = function CardsSection(props) {
9256
9259
  setsectionproperties(_objectSpread$1B({}, secpropobj));
9257
9260
  if (props.srcfromprops == 'GeneralProductsComponent') {
9258
9261
  setfetchingtype('products');
9262
+ var lcproductfetchingtype = 'Random';
9263
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
9264
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
9265
+ }
9259
9266
  setProductsFetchingTypeSectionObj({
9260
- productfetchingtype: 'Random',
9267
+ productfetchingtype: lcproductfetchingtype,
9261
9268
  collectionid: props.collectionidprops,
9262
9269
  grouptype: props.grouptypeprops,
9263
9270
  grouptyperefid: props.grouptyperefidprops
@@ -9864,7 +9871,7 @@ var CardsSection = function CardsSection(props) {
9864
9871
  if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
9865
9872
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
9866
9873
  } else {
9867
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
9874
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
9868
9875
  }
9869
9876
  } else {
9870
9877
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
package/dist/index.umd.js CHANGED
@@ -8679,6 +8679,7 @@
8679
8679
  } else {
8680
8680
  tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
8681
8681
  }
8682
+ tempfetchproductsfilerobjcontext.page = 0;
8682
8683
  setProductFilterObjContext(_objectSpread$1C({}, tempfetchproductsfilerobjcontext));
8683
8684
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
8684
8685
  }
@@ -9144,10 +9145,12 @@
9144
9145
  // }
9145
9146
  // }, [inView]);
9146
9147
  React.useEffect(function () {
9148
+ var productfilerobjtemp = ProductFilterObjContext;
9147
9149
  if (props.filterparamsprops != undefined) {
9148
9150
  var filterpar = decodeURIComponent(props.filterparamsprops);
9149
9151
  var filterparsed = JSON.parse(filterpar);
9150
9152
  if (filterparsed != undefined) {
9153
+ productfilerobjtemp = filterparsed;
9151
9154
  setProductFilterObjContext(filterparsed);
9152
9155
  }
9153
9156
  }
@@ -9161,8 +9164,12 @@
9161
9164
  setsectionproperties(_objectSpread$1B({}, secpropobj));
9162
9165
  if (props.srcfromprops == 'GeneralProductsComponent') {
9163
9166
  setfetchingtype('products');
9167
+ var lcproductfetchingtype = 'Random';
9168
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
9169
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
9170
+ }
9164
9171
  setProductsFetchingTypeSectionObj({
9165
- productfetchingtype: 'Random',
9172
+ productfetchingtype: lcproductfetchingtype,
9166
9173
  collectionid: props.collectionidprops,
9167
9174
  grouptype: props.grouptypeprops,
9168
9175
  grouptyperefid: props.grouptyperefidprops
@@ -9769,7 +9776,7 @@
9769
9776
  if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
9770
9777
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
9771
9778
  } else {
9772
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
9779
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
9773
9780
  }
9774
9781
  } else {
9775
9782
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.176",
3
+ "version": "0.0.177",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {