simpo-component-library 3.6.164 → 3.6.165

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 (31) hide show
  1. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +6 -6
  2. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +259 -0
  3. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.model.mjs +2 -0
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  5. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
  6. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +42 -18
  7. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +93 -0
  8. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.model.mjs +2 -0
  9. package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +12 -0
  10. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +16 -4
  11. package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +94 -0
  12. package/esm2022/lib/sections/header-section/header-section.component.mjs +8 -4
  13. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  14. package/esm2022/lib/services/rest.service.mjs +5 -1
  15. package/esm2022/public-api.mjs +3 -1
  16. package/fesm2022/simpo-component-library.mjs +478 -35
  17. package/fesm2022/simpo-component-library.mjs.map +1 -1
  18. package/lib/ecommerce/sections/enrollment-form/enrollment-form.component.d.ts +47 -0
  19. package/lib/ecommerce/sections/enrollment-form/enrollment-form.model.d.ts +29 -0
  20. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +9 -1
  21. package/lib/ecommerce/sections/returns-calculator/returns-calculator.component.d.ts +30 -0
  22. package/lib/ecommerce/sections/returns-calculator/returns-calculator.model.d.ts +14 -0
  23. package/lib/ecommerce/sections/scheme-details/scheme-details.component.d.ts +5 -0
  24. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +2 -0
  25. package/lib/elements/list-home-appointment/list-home-appointment.component.d.ts +27 -0
  26. package/lib/sections/header-section/header-section.component.d.ts +2 -0
  27. package/lib/services/rest.service.d.ts +1 -0
  28. package/package.json +1 -1
  29. package/public-api.d.ts +2 -0
  30. package/simpo-component-library-3.6.165.tgz +0 -0
  31. package/simpo-component-library-3.6.164.tgz +0 -0
@@ -0,0 +1,47 @@
1
+ import BaseSection from '../../../sections/BaseSection';
2
+ import { RestService } from '../../../services/rest.service';
3
+ import { ActivatedRoute } from '@angular/router';
4
+ import { EnrollmentFormModel, EnrollmentFormStyleModel } from './enrollment-form.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EnrollmentFormComponent extends BaseSection {
7
+ private restService;
8
+ private activeRoute;
9
+ data?: EnrollmentFormModel;
10
+ edit?: boolean;
11
+ customClass?: string;
12
+ delete?: boolean;
13
+ index?: number;
14
+ styles?: EnrollmentFormStyleModel;
15
+ constructor(restService: RestService, activeRoute: ActivatedRoute);
16
+ ngOnInit(): void;
17
+ page: 'ENROLLMENT' | 'PAYMENT';
18
+ enrollementPayload: any;
19
+ schemesData: any;
20
+ selectedScheme: any;
21
+ getSchemes(): void;
22
+ storeData: any;
23
+ selectedStore: any;
24
+ getAllStores(): void;
25
+ staffData: any;
26
+ getStaffById(): void;
27
+ stateData: any;
28
+ getAllState(): void;
29
+ cityData: any;
30
+ getCityByStateId(): void;
31
+ setMonthlyInstallmentAmount(): void;
32
+ storeSlabs: any;
33
+ getStoreSlabs(): void;
34
+ createEnrollment(): void;
35
+ success(): void;
36
+ result: {
37
+ type: 'success' | 'failure';
38
+ title: string;
39
+ message: string;
40
+ iconClass: string;
41
+ } | null;
42
+ showResult: boolean;
43
+ isProcessing: boolean;
44
+ simulatePayment(type: 'success' | 'failure'): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnrollmentFormComponent, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<EnrollmentFormComponent, "simpo-enrollment-form", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
47
+ }
@@ -0,0 +1,29 @@
1
+ import { InputTextModel, PositionLayoutModal, StylesModel, Image } from "../../../styles/style.model";
2
+ import { CONTENT_BACKGROUND } from "../../../styles/types";
3
+ import { ActionModel } from "../../../styles/style.model";
4
+ import { Corners } from "./../../../styles/index";
5
+ export interface EnrollmentFormModel {
6
+ id: string;
7
+ sectionType: string;
8
+ sectionName: string;
9
+ content: EnrollmentFormContentModel;
10
+ styles: EnrollmentFormStyleModel;
11
+ action: ActionModel;
12
+ }
13
+ export interface EnrollmentFormStyleModel extends StylesModel {
14
+ positionLayout: PositionLayoutModal;
15
+ inputOpacity: number;
16
+ corners: Corners;
17
+ contentBackground: {
18
+ display: boolean;
19
+ style: CONTENT_BACKGROUND;
20
+ };
21
+ }
22
+ export interface EnrollmentFormContentModel {
23
+ headingText: string;
24
+ inputText: InputTextModel[];
25
+ image: ImageModel;
26
+ }
27
+ export interface ImageModel extends Image {
28
+ showImage: boolean;
29
+ }
@@ -47,7 +47,7 @@ export declare class ProductListComponent extends BaseSection {
47
47
  scrollingValue: number;
48
48
  pricingMin: number;
49
49
  pricingMax: number;
50
- sortBy: string | null;
50
+ sortBy: string;
51
51
  searchText: string;
52
52
  private USER_CART;
53
53
  private USER_WISHLIST;
@@ -77,6 +77,8 @@ export declare class ProductListComponent extends BaseSection {
77
77
  constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService);
78
78
  handleProductListScroll(): void;
79
79
  loadMoreProductsToList(): void;
80
+ ecomConfigs: any;
81
+ getEcommerceConfigs(): void;
80
82
  ngOnInit(): void;
81
83
  filterByCategoryCollectionParam(qCategories: any, qCollections: any): void;
82
84
  getAllCategories(): void;
@@ -110,6 +112,12 @@ export declare class ProductListComponent extends BaseSection {
110
112
  getButtonId(index: number): string;
111
113
  getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
112
114
  getElementRow(): number;
115
+ showAllCategories: boolean;
116
+ get displayedCategories(): BaseModel[];
117
+ toggleCategories(): void;
118
+ showAllCollections: boolean;
119
+ get displayedCollections(): BaseModel[];
120
+ toggleCollections(): void;
113
121
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
114
122
  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>;
115
123
  }
@@ -0,0 +1,30 @@
1
+ import BaseSection from '../../../sections/BaseSection';
2
+ import { ReturnsCalculatorModel, ReturnsCalculatorStyleModel } from './returns-calculator.model';
3
+ import { LayOutModel } from '../../../styles/style.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ReturnsCalculatorComponent extends BaseSection {
6
+ data?: ReturnsCalculatorModel;
7
+ edit?: boolean;
8
+ customClass?: string;
9
+ delete?: boolean;
10
+ index?: number;
11
+ styles?: ReturnsCalculatorStyleModel;
12
+ selectedScheme: string;
13
+ monthlyAmount: number;
14
+ maxAmount: number;
15
+ minAmount: number;
16
+ constructor();
17
+ ngOnInit(): void;
18
+ onSchemeChange(): void;
19
+ onAmountChange(): void;
20
+ get individualContribution(): number;
21
+ get orraBonus(): number;
22
+ get totalRedemptionValue(): number;
23
+ get groupContribution(): number;
24
+ get luckyDrawAmount(): number;
25
+ get stylesLayout(): LayOutModel;
26
+ getButtonId(index: number): string;
27
+ getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReturnsCalculatorComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReturnsCalculatorComponent, "simpo-returns-calculator", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
30
+ }
@@ -0,0 +1,14 @@
1
+ import { BannerStylesModel, ActionModel, InputTextModel } from "../../../styles/style.model";
2
+ export interface ReturnsCalculatorModel {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ content: ReturnsCalculatorContentModel;
7
+ styles: ReturnsCalculatorStyleModel;
8
+ action: ActionModel;
9
+ }
10
+ export interface ReturnsCalculatorStyleModel extends BannerStylesModel {
11
+ }
12
+ export interface ReturnsCalculatorContentModel {
13
+ inputText: InputTextModel[];
14
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SchemeDetailsComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchemeDetailsComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchemeDetailsComponent, "simpo-scheme-details", never, {}, {}, never, never, true, never>;
5
+ }
@@ -45,6 +45,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
45
45
  getUserWislistDetails(): void;
46
46
  deleteFromWhislist(product: OrderedItems): void;
47
47
  moveToCart(product: OrderedItems): void;
48
+ viewSchemeDetails(): void;
48
49
  addToFav(item: OrderedItems, type: 'ADD' | 'SUBSTRACT'): void;
49
50
  editProfileData(type: 'MOBILE' | 'EMAIL'): Promise<void>;
50
51
  get getProductWidth(): string;
@@ -72,6 +73,7 @@ export declare class UserProfileComponent extends BaseSection implements OnInit
72
73
  private getComplementColor;
73
74
  private convertHEX;
74
75
  get currency(): string;
76
+ getOrderedItems(order: any): any;
75
77
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
76
78
  static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "simpo-user-profile", never, { "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>;
77
79
  }
@@ -0,0 +1,27 @@
1
+ import { RestService } from '../../services/rest.service';
2
+ import { StorageServiceService } from '../../services/storage.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ListHomeAppointmentComponent {
5
+ private restService;
6
+ private storageService;
7
+ sectionsVisible: {
8
+ billDetails: boolean;
9
+ deliveryDetails: boolean;
10
+ timeline: boolean;
11
+ };
12
+ currentTab: 'BOOKING_LIST' | 'BOOKING_DETAIL';
13
+ orderTimiline: any;
14
+ homeAppointmentList: any[];
15
+ appointmentDetails: any;
16
+ constructor(restService: RestService, storageService: StorageServiceService);
17
+ ngOnInit(): void;
18
+ getHomeAppointmentList(): void;
19
+ private getIcon;
20
+ toggleSection(section: keyof typeof this.sectionsVisible): void;
21
+ get currency(): string;
22
+ get isMobile(): boolean;
23
+ viewBookingDetail(appointmentDetail: any): void;
24
+ backToAppointmentList(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListHomeAppointmentComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListHomeAppointmentComponent, "simpo-list-home-appointment", never, {}, {}, never, never, true, never>;
27
+ }
@@ -81,7 +81,9 @@ export declare class HeaderSectionComponent implements OnInit {
81
81
  categoryList: any;
82
82
  collectionList: any;
83
83
  selectedCategory: any;
84
+ storeAvaiable: boolean;
84
85
  getCategoriesHeader(): void;
86
+ goToStores(): void;
85
87
  Object: ObjectConstructor;
86
88
  applyFilterToList(obj: any, type: any): void;
87
89
  filterByCategory(): void;
@@ -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
+ getHomeAppointmentList(userId: string): Observable<Object>;
99
100
  getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
100
101
  getFieldsToDisplay(fieldsList: any[]): any;
101
102
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.164",
3
+ "version": "3.6.165",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -61,6 +61,8 @@ export * from './lib/ecommerce/sections/authentication-required/authentication-r
61
61
  export * from './lib/ecommerce/sections/new-collection/new-collection.component';
62
62
  export * from './lib/ecommerce/sections/store-list/store-list.component';
63
63
  export * from './lib/ecommerce/sections/store-page/store-page.component';
64
+ export * from './lib/ecommerce/sections/enrollment-form/enrollment-form.component';
65
+ export * from './lib/ecommerce/sections/returns-calculator/returns-calculator.component';
64
66
  export * from './lib/ecommerce/sections/book-appointment/book-appointment.component';
65
67
  export * from './lib/services/events.service';
66
68
  export * from './lib/services/endUser.service';
Binary file