simpo-component-library 1.6.61 → 1.6.64
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +4 -2
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +23 -11
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +12 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +2 -1
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +3 -3
- package/esm2022/lib/services/rest.service.mjs +5 -1
- package/fesm2022/simpo-component-library.mjs +43 -15
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +3 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +2 -0
- package/lib/services/rest.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-1.6.62.tgz +0 -0
- package/simpo-component-library-1.6.64.tgz +0 -0
- package/simpo-component-library-1.6.61.tgz +0 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
export class FeaturedProductModal {
|
2
|
-
constructor(json) {
|
2
|
+
constructor(json, isRecentViewedProd = false) {
|
3
3
|
this.id = "featured_product";
|
4
4
|
this.sectionType = "featuredProduct";
|
5
5
|
this.sectionName = "Featured Product Section";
|
6
6
|
this.action = json?.["action"];
|
7
7
|
this.content = json?.["content"];
|
8
8
|
this.styles = json?.["styles"];
|
9
|
+
if (isRecentViewedProd && this.content?.inputText?.[0])
|
10
|
+
this.content.inputText[0].value = "Recent Viewed Items";
|
9
11
|
}
|
10
12
|
}
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmVhdHVyZWQtcHJvZHVjdHMubW9kYWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8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