simpo-component-library 3.6.162 → 3.6.164

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.
Files changed (42) hide show
  1. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
  2. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
  3. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +2 -2
  4. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +4 -3
  5. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +3 -3
  6. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  7. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
  8. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  9. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +3 -3
  10. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  11. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +3 -3
  12. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +20 -4
  13. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +31 -5
  14. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +129 -94
  15. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
  16. package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +10 -3
  17. package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
  18. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
  19. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +4 -4
  20. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  21. package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +2 -2
  22. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  23. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +12 -3
  24. package/esm2022/lib/sections/footer/footer.component.mjs +3 -3
  25. package/esm2022/lib/sections/header-section/header-section.component.mjs +16 -3
  26. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  27. package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +3 -3
  28. package/esm2022/lib/services/rest.service.mjs +4 -1
  29. package/fesm2022/simpo-component-library.mjs +254 -183
  30. package/fesm2022/simpo-component-library.mjs.map +1 -1
  31. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  32. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +6 -0
  33. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +8 -1
  34. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +22 -14
  35. package/lib/ecommerce/sections/store-list/store-list.component.d.ts +4 -0
  36. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  37. package/lib/elements/text-editor/text-editor.component.d.ts +1 -0
  38. package/lib/sections/header-section/header-section.component.d.ts +3 -0
  39. package/lib/services/rest.service.d.ts +1 -0
  40. package/package.json +1 -1
  41. package/simpo-component-library-3.6.164.tgz +0 -0
  42. package/simpo-component-library-3.6.162.tgz +0 -0
@@ -61,7 +61,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
61
61
  validateNumber(event: KeyboardEvent): void;
62
62
  validateOTP(event: KeyboardEvent): void;
63
63
  checkStrength(): void;
64
- getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
64
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
65
65
  emailDebounceTimer: any;
66
66
  onEmailChange(): void;
67
67
  emailCheck: boolean;
@@ -36,6 +36,12 @@ export declare class OrderDetailsComponent implements OnInit {
36
36
  trackOrder(): void;
37
37
  productReview: number;
38
38
  submitReview(item: any): void;
39
+ sectionsVisible: {
40
+ billDetails: boolean;
41
+ deliveryDetails: boolean;
42
+ timeline: boolean;
43
+ };
44
+ toggleSection(section: keyof typeof this.sectionsVisible): void;
39
45
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderDetailsComponent, never>;
40
46
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderDetailsComponent, "simpo-order-details", 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; }; "orderDetailData": { "alias": "orderDetailData"; "required": false; }; }, { "goBackEmitter": "goBackEmitter"; }, never, never, true, never>;
41
47
  }
@@ -60,6 +60,7 @@ export declare class ProductDescComponent extends BaseSection {
60
60
  items: MenuItem[] | null;
61
61
  businessDetails: any;
62
62
  trialCartItem: any[];
63
+ isPinCode: boolean;
63
64
  ngOnInit(): void;
64
65
  varientLoading: boolean;
65
66
  recentViewItemList: Product[];
@@ -108,7 +109,7 @@ export declare class ProductDescComponent extends BaseSection {
108
109
  getTextColor(color: any): "#000000" | "#ffffff";
109
110
  languages: string[];
110
111
  selectedLang: string;
111
- getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
112
+ getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
112
113
  onFindInStore(id: string): void;
113
114
  onBookAppointment(): void;
114
115
  isDetails: boolean;
@@ -135,6 +136,12 @@ export declare class ProductDescComponent extends BaseSection {
135
136
  closeDialog(): void;
136
137
  getRatings(noofratings: any): any;
137
138
  addToTrialCart(): void;
139
+ reviewsData: any[];
140
+ ratingCounts: any;
141
+ pageNumber: number;
142
+ loadMoreReviews(): void;
143
+ getReviews(productId: string): void;
144
+ getPercentage(rating: number): string;
138
145
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
139
146
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
140
147
  }
@@ -1,8 +1,9 @@
1
+ import { ElementRef } from '@angular/core';
1
2
  import { ItemVariant, Product } from '../../styles/product.modal';
2
3
  import BaseSection from '../../../sections/BaseSection';
3
4
  import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
4
- import { EventsService } from '.././../../services/events.service';
5
- import { RestService } from '.././../../services/rest.service';
5
+ import { EventsService } from '../../../services/events.service';
6
+ import { RestService } from '../../../services/rest.service';
6
7
  import { BackgroundModel, ButtonModel } from '../../../styles/style.model';
7
8
  import { ActivatedRoute, Router } from '@angular/router';
8
9
  import { StorageServiceService } from '../../../services/storage.service';
@@ -38,15 +39,12 @@ export declare class ProductListComponent extends BaseSection {
38
39
  nextComponentColor?: BackgroundModel;
39
40
  isLoading: boolean;
40
41
  apiLoading: boolean;
42
+ isListLoading: boolean;
43
+ isAllListLoaded: boolean;
41
44
  content?: ProductListContentModal;
42
45
  button?: ButtonModel;
43
46
  totalPages: number;
44
47
  scrollingValue: number;
45
- onWindowScroll(event: Event): void;
46
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
47
- items: MenuItem[] | null;
48
- private filterBottomSheetRef;
49
- private sortingDialogRef;
50
48
  pricingMin: number;
51
49
  pricingMax: number;
52
50
  sortBy: string | null;
@@ -60,7 +58,6 @@ export declare class ProductListComponent extends BaseSection {
60
58
  value: string;
61
59
  }[];
62
60
  screenWidth: number;
63
- getScreenSize(): void;
64
61
  filterList: any[];
65
62
  styles?: ProductListStylesModal;
66
63
  totalCount: number;
@@ -68,12 +65,24 @@ export declare class ProductListComponent extends BaseSection {
68
65
  size: number;
69
66
  searchTxt: string;
70
67
  theme: typeof ProductCardTheme;
68
+ items: MenuItem[] | null;
69
+ private filterBottomSheetRef;
70
+ private sortingDialogRef;
71
+ categories: BaseModel[];
72
+ collections: BaseModel[];
73
+ imageIndex: number;
74
+ listScrollContainer: ElementRef<HTMLDivElement>;
75
+ getScreenSize(): void;
76
+ onWindowScroll(event: Event): void;
77
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
78
+ handleProductListScroll(): void;
79
+ loadMoreProductsToList(): void;
71
80
  ngOnInit(): void;
72
- getButtonId(index: number): string;
73
- getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
74
81
  filterByCategoryCollectionParam(qCategories: any, qCollections: any): void;
75
82
  getAllCategories(): void;
76
83
  getAllCollections(): void;
84
+ filterItemList(): void;
85
+ updateProductCartWishlistProperties(): void;
77
86
  removeFilter(filter: any): void;
78
87
  applyProductWidth(): boolean;
79
88
  getProductWidth(): string;
@@ -85,11 +94,8 @@ export declare class ProductListComponent extends BaseSection {
85
94
  selectVarient(product: Product, varient: ItemVariant): void;
86
95
  private getVarientQuantity;
87
96
  private isVarientPresentInWishtlist;
88
- categories: BaseModel[];
89
- collections: BaseModel[];
90
97
  applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
91
98
  navigateFilter(sorting: string): void;
92
- filterItemList(): void;
93
99
  openFilter(FilterSection: any): void;
94
100
  openSorting(SortingSection: any): void;
95
101
  paginationChange(page: number): void;
@@ -100,8 +106,10 @@ export declare class ProductListComponent extends BaseSection {
100
106
  get currency(): string;
101
107
  get minSize(): number;
102
108
  getProductImages(product: any): any;
103
- imageIndex: number;
104
109
  changeImage(product: any, action: 'PREV' | 'NEXT', index: number): Promise<void>;
110
+ getButtonId(index: number): string;
111
+ getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
112
+ getElementRow(): number;
105
113
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
106
114
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-list", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
107
115
  }
@@ -28,7 +28,11 @@ export declare class StoreListComponent extends BaseSection {
28
28
  submit: boolean;
29
29
  loader: boolean;
30
30
  error: boolean;
31
+ stateList: any;
31
32
  getStoreDetails(): void;
33
+ showState: boolean;
34
+ selectedState: string;
35
+ setStateData(stateData: any): void;
32
36
  getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
33
37
  openWhatsapp(phone: string): void;
34
38
  viewStore(storeId: string): void;
@@ -28,7 +28,7 @@ export declare class LinkEditorComponent {
28
28
  buttonStyles: any;
29
29
  changeButtonStyle(): void;
30
30
  backgroundType: string[];
31
- setBorderRadius(): "0px" | "99px" | "7px";
31
+ setBorderRadius(): "0px" | "7px" | "99px";
32
32
  setBorder(): string;
33
33
  setColor(): any;
34
34
  setBackground(): any;
@@ -44,6 +44,7 @@ export declare class TextEditorComponent {
44
44
  restoreSelection(): void;
45
45
  onPaste(event: ClipboardEvent): void;
46
46
  stripStyles(html: string): string;
47
+ getText(): string;
47
48
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
48
49
  static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "simpo-text-editor", never, { "value": { "alias": "value"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
49
50
  }
@@ -32,6 +32,8 @@ export declare class HeaderSectionComponent implements OnInit {
32
32
  HeaderStyling: typeof Header_Type;
33
33
  parentHeight: number;
34
34
  constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService);
35
+ searchChangeTimeout: any;
36
+ waitBeforeSearch(): void;
35
37
  searchProducts(): void;
36
38
  goToFav(): void;
37
39
  get stylesLayout(): LayOutModel;
@@ -82,6 +84,7 @@ export declare class HeaderSectionComponent implements OnInit {
82
84
  getCategoriesHeader(): void;
83
85
  Object: ObjectConstructor;
84
86
  applyFilterToList(obj: any, type: any): void;
87
+ filterByCategory(): void;
85
88
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
86
89
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSectionComponent, "simpo-header-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
87
90
  }
@@ -96,6 +96,7 @@ export declare class RestService implements OnDestroy {
96
96
  deleteItemFromCart(request: checkItemAlreadyAdded): Observable<Object>;
97
97
  bookAppointment(request: any): Observable<Object>;
98
98
  createEnrollmentScheme(enrollement: any): Observable<Object>;
99
+ getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
99
100
  getFieldsToDisplay(fieldsList: any[]): any;
100
101
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
101
102
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.162",
3
+ "version": "3.6.164",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file