simpo-component-library 3.2.70 → 3.2.72

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 (25) hide show
  1. package/esm2022/lib/directive/button-editor.directive.mjs +3 -3
  2. package/esm2022/lib/directive/image-editor.directive.mjs +3 -3
  3. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
  4. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +34 -87
  5. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +20 -25
  6. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  7. package/esm2022/lib/sections/header-section/header-section.component.mjs +7 -24
  8. package/esm2022/lib/services/rest.service.mjs +9 -5
  9. package/esm2022/lib/tokens/api-token.mjs +2 -1
  10. package/fesm2022/simpo-component-library.mjs +593 -657
  11. package/fesm2022/simpo-component-library.mjs.map +1 -1
  12. package/lib/directive/background-directive.d.ts +1 -1
  13. package/lib/directive/button-directive.directive.d.ts +1 -1
  14. package/lib/directive/color.directive.d.ts +1 -1
  15. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +6 -21
  16. package/lib/ecommerce/sections/cart/cart.component.d.ts +3 -4
  17. package/lib/sections/header-section/header-section.component.d.ts +0 -1
  18. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  19. package/lib/services/rest.service.d.ts +1 -1
  20. package/lib/tokens/api-token.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/simpo-component-library-3.2.72.tgz +0 -0
  23. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +0 -2
  24. package/lib/ecommerce/sections/authentication-required/authentication-required.model.d.ts +0 -15
  25. package/simpo-component-library-3.2.70.tgz +0 -0
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
15
15
  applyButtonStyleChanges(): void;
16
16
  applyButtonType(style: ButtonStyleModel, color: string): void;
17
17
  applyButtonShape(style: ButtonStyleModel): void;
18
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
19
19
  buttonStyleSubscription?: Subscription;
20
20
  buttonStyleChangeCheck(): void;
21
21
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -1,30 +1,18 @@
1
1
  import { RestService } from '../../../services/rest.service';
2
- import { ActivatedRoute, Router } from '@angular/router';
2
+ import { Router } from '@angular/router';
3
3
  import { MessageService } from 'primeng/api';
4
4
  import { StorageServiceService } from '../../../services/storage.service';
5
5
  import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
6
6
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
7
- import { AuthenticationModel, AuthenticationStylesModel } from './authentication-required.model';
8
- import BaseSection from '../../../sections/BaseSection';
9
- import { ButtonModel, LayOutModel } from '../../../styles/style.model';
10
7
  import * as i0 from "@angular/core";
11
- export declare class AuthenticationRequiredComponent extends BaseSection {
8
+ export declare class AuthenticationRequiredComponent {
12
9
  private readonly restService;
13
10
  private readonly router;
14
11
  private readonly messageService;
15
12
  private readonly storageService;
16
13
  private readonly matDialog;
17
- private readonly activatedRoute;
18
14
  private readonly dialogRef;
19
15
  private readonly bottomsheetRef;
20
- data?: AuthenticationModel;
21
- index?: number;
22
- edit?: boolean;
23
- delete?: boolean;
24
- styles?: AuthenticationStylesModel;
25
- button?: ButtonModel;
26
- buttonId: string;
27
- currentPage: 'LOGIN' | 'SIGNUP';
28
16
  private mobileTimer;
29
17
  email: string;
30
18
  mobile: string;
@@ -41,9 +29,8 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
41
29
  type: string;
42
30
  active: boolean;
43
31
  }[];
44
- constructor(restService: RestService, router: Router, messageService: MessageService, storageService: StorageServiceService, matDialog: MatDialog, activatedRoute: ActivatedRoute, dialogRef: MatDialogRef<AuthenticationRequiredComponent>, bottomsheetRef: MatBottomSheetRef<AuthenticationRequiredComponent>);
32
+ constructor(restService: RestService, router: Router, messageService: MessageService, storageService: StorageServiceService, matDialog: MatDialog, dialogRef: MatDialogRef<AuthenticationRequiredComponent>, bottomsheetRef: MatBottomSheetRef<AuthenticationRequiredComponent>);
45
33
  signUpEnabled: any;
46
- proceedToCheckout: boolean;
47
34
  ngOnInit(): void;
48
35
  loginType: "PASSWORD" | "OTP";
49
36
  close(): void;
@@ -58,12 +45,10 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
58
45
  validateNumber(event: KeyboardEvent): void;
59
46
  validateOTP(event: KeyboardEvent): void;
60
47
  checkStrength(): void;
61
- getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
48
+ getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
62
49
  get isEmailValid(): boolean;
63
50
  get isPasswordValid(): boolean;
64
51
  get isMobile(): boolean;
65
- get stylesLayout(): LayOutModel;
66
- get accentColor(): string;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationRequiredComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthenticationRequiredComponent, "simpo-authentication-required", never, {}, {}, never, never, true, never>;
69
54
  }
@@ -3,7 +3,7 @@ import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
3
3
  import BaseSection from '../../../sections/BaseSection';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import { CartService } from '../../../services/cart.service';
6
- import { ActivatedRoute, Router } from '@angular/router';
6
+ import { Router } from '@angular/router';
7
7
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
8
8
  import { RestService } from "../../../services/rest.service";
9
9
  import { StorageServiceService } from '../../../services/storage.service';
@@ -32,7 +32,6 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
32
32
  private readonly storageService;
33
33
  private readonly messageService;
34
34
  private readonly bottomSheet;
35
- private readonly activatedRoute;
36
35
  matDialogData: any;
37
36
  dialogRef: MatDialogRef<CartComponent>;
38
37
  data?: CartSectionModal;
@@ -44,7 +43,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
44
43
  isLoading: boolean;
45
44
  styles?: CartSectionStylesModel;
46
45
  currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
47
- constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, activatedRoute: ActivatedRoute, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
46
+ constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
48
47
  private userDetails;
49
48
  private USER_CART_ITEMS;
50
49
  selectedAddressIdx: number;
@@ -82,7 +81,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
82
81
  get getAddressList(): import("../../styles/user.modal").AddressDetails[];
83
82
  get isMobile(): boolean;
84
83
  get currency(): string;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
86
85
  static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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; }; }, {}, never, never, true, never>;
87
86
  }
88
87
  export {};
@@ -27,7 +27,6 @@ export declare class HeaderSectionComponent implements OnInit {
27
27
  searchText: string;
28
28
  theme: typeof ProductCardTheme;
29
29
  HeaderStyling: typeof Header_Type;
30
- parentHeight: number;
31
30
  constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService);
32
31
  searchProducts(): void;
33
32
  goToFav(): void;
@@ -17,7 +17,7 @@ export declare class PricingSectionComponent extends BaseSection {
17
17
  style?: PricingSectionStylesModel;
18
18
  constructor(_eventService: EventsService);
19
19
  ngOnInit(): void;
20
- getTextColor(): "#ffffff" | "#000000";
20
+ getTextColor(): "#000000" | "#ffffff";
21
21
  get headingSpace(): SPACING;
22
22
  editSection(): void;
23
23
  redirectTo(): void;
@@ -13,7 +13,7 @@ export declare class RestService implements OnDestroy {
13
13
  private ECOMMERCE_URL;
14
14
  private CMIS_URL;
15
15
  private environmentTypeSubscriber;
16
- constructor(http: HttpClient, eventService: EventsService, BASE_URL: string, ECOMMERCE_URL: string);
16
+ constructor(http: HttpClient, eventService: EventsService, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string);
17
17
  ngOnDestroy(): void;
18
18
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
19
19
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
@@ -1,3 +1,4 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  export declare const API_URL: InjectionToken<string>;
3
3
  export declare const ECOMMERCE_URL: InjectionToken<String>;
4
+ export declare const CMIS_URL: InjectionToken<String>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.2.70",
3
+ "version": "3.2.72",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aGVudGljYXRpb24tcmVxdWlyZWQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zaW1wby11aS9zcmMvbGliL2Vjb21tZXJjZS9zZWN0aW9ucy9hdXRoZW50aWNhdGlvbi1yZXF1aXJlZC9hdXRoZW50aWNhdGlvbi1yZXF1aXJlZC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29ybmVycyB9IGZyb20gJy4uLy4uLy4uL3N0eWxlcy9pbmRleCc7XHJcbmltcG9ydCB7IEFjdGlvbk1vZGVsLCBBbmltYXRpb25Nb2RlbCwgQmFja2dyb3VuZE1vZGVsLCBCYW5uZXJTdHlsZXNNb2RlbCwgSW1hZ2UsIElucHV0VGV4dE1vZGVsLCBMYXlPdXRNb2RlbCwgTGlzdEl0ZW1Nb2RhbCB9IGZyb20gJy4uLy4uLy4uL3N0eWxlcy9zdHlsZS5tb2RlbCc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIEF1dGhlbnRpY2F0aW9uTW9kZWwge1xyXG4gICAgaWQ6IHN0cmluZztcclxuICAgIHNlY3Rpb25UeXBlOiBzdHJpbmcsXHJcbiAgICBzZWN0aW9uTmFtZTogc3RyaW5nLFxyXG4gICAgc3R5bGVzOiBCYW5uZXJTdHlsZXNNb2RlbDtcclxuICAgIGFjdGlvbjogQWN0aW9uTW9kZWw7XHJcbn1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgQXV0aGVudGljYXRpb25TdHlsZXNNb2RlbCB7XHJcbiAgICBsYXlvdXQ6IExheU91dE1vZGVsO1xyXG4gICAgYmFja2dyb3VuZDogQmFja2dyb3VuZE1vZGVsO1xyXG4gICAgYW5pbWF0aW9uOiBBbmltYXRpb25Nb2RlbDtcclxuICAgIGNvcm5lcnM6IENvcm5lcnM7XHJcbn1cclxuIl19
@@ -1,15 +0,0 @@
1
- import { Corners } from '../../../styles/index';
2
- import { ActionModel, AnimationModel, BackgroundModel, BannerStylesModel, LayOutModel } from '../../../styles/style.model';
3
- export interface AuthenticationModel {
4
- id: string;
5
- sectionType: string;
6
- sectionName: string;
7
- styles: BannerStylesModel;
8
- action: ActionModel;
9
- }
10
- export interface AuthenticationStylesModel {
11
- layout: LayOutModel;
12
- background: BackgroundModel;
13
- animation: AnimationModel;
14
- corners: Corners;
15
- }
Binary file