simpo-component-library 3.6.741 → 3.6.742
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/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +37 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +29 -25
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +73 -7
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +16 -2
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -1
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +2 -1
- package/esm2022/lib/sections/faq-columns-cards/faq-columns-cards.component.mjs +3 -3
- package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
- package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +10 -4
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +8 -8
- package/esm2022/lib/services/rest.service.mjs +18 -2
- package/esm2022/lib/services/storage.service.mjs +60 -75
- package/esm2022/lib/styles/index.mjs +3 -3
- package/fesm2022/simpo-component-library.mjs +399 -270
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +1 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -3
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +16 -1
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +1 -0
- package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -0
- package/lib/ecommerce/styles/product.modal.d.ts +1 -0
- package/lib/sections/header-section/header-section.model.d.ts +0 -1
- package/lib/sections/image-grid-section/image-grid-section.model.d.ts +0 -1
- package/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.d.ts +2 -0
- package/lib/services/rest.service.d.ts +2 -1
- package/lib/services/storage.service.d.ts +3 -6
- package/lib/styles/index.d.ts +2 -2
- package/package.json +1 -1
- package/simpo-component-library-3.6.742.tgz +0 -0
- package/simpo-component-library-3.6.741.tgz +0 -0
|
@@ -82,6 +82,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
82
82
|
removeCoupon(event: MouseEvent): void;
|
|
83
83
|
getIndexDBData(): void;
|
|
84
84
|
proceedToCheckout(): void;
|
|
85
|
+
private toSlug;
|
|
85
86
|
goToProductDetails(product: OrderedItems): void;
|
|
86
87
|
proceedToListPage(): void;
|
|
87
88
|
removeItem(item: OrderedItems): void;
|
|
@@ -14,7 +14,6 @@ import { Meta, Title } from '@angular/platform-browser';
|
|
|
14
14
|
import { MatDialog } from '@angular/material/dialog';
|
|
15
15
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
16
16
|
import { CustomerReviewComponent } from '../../sections/customer-review/customer-review.component';
|
|
17
|
-
import { AnalyticsService } from '../../../services/analytics.service';
|
|
18
17
|
import * as i0 from "@angular/core";
|
|
19
18
|
export declare class ProductDescComponent extends BaseSection {
|
|
20
19
|
private platformId;
|
|
@@ -30,7 +29,6 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
30
29
|
private readonly bottomSheet;
|
|
31
30
|
private renderer;
|
|
32
31
|
private matDialog;
|
|
33
|
-
private analyticsService;
|
|
34
32
|
reviewComponent: CustomerReviewComponent;
|
|
35
33
|
aboveHeight: ElementRef<HTMLDivElement>;
|
|
36
34
|
container: ElementRef<HTMLDivElement>;
|
|
@@ -54,7 +52,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
54
52
|
showReview: boolean;
|
|
55
53
|
selectedReview: any;
|
|
56
54
|
currentImageIndex: number;
|
|
57
|
-
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet, renderer: Renderer2, matDialog: MatDialog
|
|
55
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet, renderer: Renderer2, matDialog: MatDialog);
|
|
58
56
|
buttonId?: string;
|
|
59
57
|
button?: ButtonModel;
|
|
60
58
|
styles?: ProductDescStylesModal;
|
|
@@ -20,6 +20,12 @@ interface BaseModel {
|
|
|
20
20
|
imgUrl: string;
|
|
21
21
|
status: boolean;
|
|
22
22
|
}
|
|
23
|
+
interface RatingFilterOption {
|
|
24
|
+
label: string;
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
selected: boolean;
|
|
28
|
+
}
|
|
23
29
|
export declare class ProductListComponent extends BaseSection {
|
|
24
30
|
private platformId;
|
|
25
31
|
private readonly _eventService;
|
|
@@ -50,6 +56,8 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
50
56
|
scrollingValue: number;
|
|
51
57
|
pricingMin: number;
|
|
52
58
|
pricingMax: number;
|
|
59
|
+
minRating: number;
|
|
60
|
+
maxRating: number;
|
|
53
61
|
sortBy: string;
|
|
54
62
|
searchText: string;
|
|
55
63
|
private USER_CART;
|
|
@@ -91,7 +99,9 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
91
99
|
max: number;
|
|
92
100
|
selected: boolean;
|
|
93
101
|
}[];
|
|
102
|
+
ratingOptions: RatingFilterOption[];
|
|
94
103
|
onPriceRangeChange(index?: number): void;
|
|
104
|
+
onRatingChange(selectedRating: RatingFilterOption): void;
|
|
95
105
|
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
96
106
|
raiseLead(): void;
|
|
97
107
|
priceRangeFlag: boolean;
|
|
@@ -117,6 +127,11 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
117
127
|
name: string;
|
|
118
128
|
type: string;
|
|
119
129
|
}[];
|
|
130
|
+
get selectedRatingChips(): {
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
type: string;
|
|
134
|
+
}[];
|
|
120
135
|
get allActiveChips(): {
|
|
121
136
|
id: string;
|
|
122
137
|
name: string;
|
|
@@ -129,7 +144,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
129
144
|
removeFilter(filter: any): void;
|
|
130
145
|
applyProductWidth(): boolean;
|
|
131
146
|
getProductWidth(): string;
|
|
132
|
-
proceedToProductDesc(
|
|
147
|
+
proceedToProductDesc(product: Product): void;
|
|
133
148
|
ringSizes: {
|
|
134
149
|
size: string;
|
|
135
150
|
status: boolean;
|
|
@@ -37,6 +37,7 @@ export declare class WhislistComponent extends BaseSection implements OnInit {
|
|
|
37
37
|
editSection(): void;
|
|
38
38
|
get isMobile(): boolean;
|
|
39
39
|
get currency(): string;
|
|
40
|
+
private toSlug;
|
|
40
41
|
redirectToProduct(product: OrderedItems): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<WhislistComponent, never>;
|
|
42
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<WhislistComponent, "simpo-whislist", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -15,8 +15,10 @@ export declare class TestimonialFullwidthComponent extends BaseSection {
|
|
|
15
15
|
TextPosition: typeof TextPosition;
|
|
16
16
|
content?: TestimonialFullwidthContentModel;
|
|
17
17
|
style?: TestimonialFullwidthStylesModel;
|
|
18
|
+
screenWidth: any;
|
|
18
19
|
constructor(_eventService: EventsService);
|
|
19
20
|
ngOnInit(): void;
|
|
21
|
+
getScreenSize(): void;
|
|
20
22
|
get stylesLayout(): LayOutModel;
|
|
21
23
|
editSection(): void;
|
|
22
24
|
getListItemLength(): number;
|
|
@@ -33,10 +33,11 @@ export declare class RestService implements OnDestroy {
|
|
|
33
33
|
getAllRedemptionSchemes(): Observable<Object>;
|
|
34
34
|
getAllProducts(payload: any): Observable<Object>;
|
|
35
35
|
getProductDetails(productId?: string | null): Observable<any>;
|
|
36
|
+
getProductDetailsV2(slugName?: string | null): Observable<any>;
|
|
36
37
|
getCollectionByIds(collectionIds: string[]): Observable<any>;
|
|
37
38
|
getAllCategories(): Observable<any>;
|
|
38
39
|
getAllCollections(): Observable<any>;
|
|
39
|
-
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<{
|
|
40
|
+
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, minRating: number, maxRating: number, sortBy: string, pageNo: number, size: number): Observable<{
|
|
40
41
|
count: any;
|
|
41
42
|
minPrice: any;
|
|
42
43
|
maxPrice: any;
|
|
@@ -4,17 +4,14 @@ import { EventsService } from './events.service';
|
|
|
4
4
|
import { CookieService } from 'ngx-cookie-service';
|
|
5
5
|
import { RestService } from './rest.service';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
|
-
import { StorageLike } from '../services/storage-like';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class StorageServiceService {
|
|
10
9
|
private readonly eventService;
|
|
11
10
|
private readonly cookieService;
|
|
12
11
|
private readonly restService;
|
|
13
|
-
private storage;
|
|
14
12
|
private router;
|
|
15
13
|
private platformId;
|
|
16
|
-
|
|
17
|
-
constructor(eventService: EventsService, cookieService: CookieService, restService: RestService, storage: StorageLike, router: Router, platformId: Object);
|
|
14
|
+
constructor(eventService: EventsService, cookieService: CookieService, restService: RestService, router: Router, platformId: Object);
|
|
18
15
|
private totalCartItems;
|
|
19
16
|
getCartTotalAmount: number;
|
|
20
17
|
get getTotalCartItems(): number;
|
|
@@ -31,9 +28,9 @@ export declare class StorageServiceService {
|
|
|
31
28
|
trialCartCollectionRef: IDBObjectStore | null;
|
|
32
29
|
createDataBase(): Promise<void>;
|
|
33
30
|
setToken(token: any): void;
|
|
34
|
-
getToken():
|
|
31
|
+
getToken(): void;
|
|
35
32
|
setReferralDetails(details: any): void;
|
|
36
|
-
getReferralDetails():
|
|
33
|
+
getReferralDetails(): string;
|
|
37
34
|
updateAllData(): void;
|
|
38
35
|
mergeAllItems(unSyncedItem: any[], syncedItem: any[]): any[];
|
|
39
36
|
getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export interface Screen {
|
|
|
23
23
|
'min-height': 'calc(95vh - 0px)';
|
|
24
24
|
}
|
|
25
25
|
export declare enum BANNERALIGNMENT {
|
|
26
|
-
left = "flex-lg-row",
|
|
27
|
-
right = "flex-lg-row
|
|
26
|
+
left = "flex-lg-row-reverse",
|
|
27
|
+
right = "flex-lg-row",
|
|
28
28
|
top = "flex-column",
|
|
29
29
|
bottom = "flex-column-reverse"
|
|
30
30
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|