simpo-component-library 3.8.11 → 3.8.12

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 (30) hide show
  1. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +14 -6
  2. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  3. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
  4. package/esm2022/lib/services/scheme-plan.service.mjs +10 -1
  5. package/fesm2022/simpo-component-library.mjs +26 -9
  6. package/fesm2022/simpo-component-library.mjs.map +1 -1
  7. package/lib/components/input-fields/input-fields.component.d.ts +1 -1
  8. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  9. package/lib/ecommerce/sections/featured-brand/featured-brand.component.d.ts +1 -1
  10. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  11. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  12. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  13. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +2 -2
  14. package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
  15. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  16. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  17. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  18. package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
  19. package/lib/sections/faq-columns-cards/faq-columns-cards.component.d.ts +1 -1
  20. package/lib/sections/faq-section/faq-section.component.d.ts +1 -1
  21. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  22. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  23. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  24. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
  25. package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
  26. package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -2
  27. package/lib/services/scheme-plan.service.d.ts +5 -0
  28. package/package.json +1 -1
  29. package/simpo-component-library-3.8.12.tgz +0 -0
  30. package/simpo-component-library-3.8.11.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
13
13
  constructor(elementRef: ElementRef);
14
14
  ngOnChanges(changes: SimpleChanges): void;
15
15
  handleMoneyInput(event: any): void;
16
- get getTextColor(): "#000" | "#FFF";
16
+ get getTextColor(): "#FFF" | "#000";
17
17
  interpolateColor(color1: string, color2: string, factor: number): string;
18
18
  padZero(str: string, length: number): string;
19
19
  generateColorBasedOnNumber(number: number): string;
@@ -97,7 +97,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
97
97
  validateNumber(event: KeyboardEvent): void;
98
98
  validateOTP(event: KeyboardEvent): void;
99
99
  checkStrength(): void;
100
- getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
100
+ getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
101
101
  emailDebounceTimer: any;
102
102
  onEmailChange(): void;
103
103
  emailCheck: boolean;
@@ -36,7 +36,7 @@ export declare class FeaturedBrandComponent extends BaseSection {
36
36
  get getDirection(): "ROW" | "COLUMN" | undefined;
37
37
  get stylesLayout(): LayOutModel;
38
38
  get isMobile(): boolean;
39
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
39
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedBrandComponent, never>;
41
41
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedBrandComponent, "simpo-featured-brand", 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>;
42
42
  }
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
37
37
  get getDirection(): "ROW" | "COLUMN" | undefined;
38
38
  get stylesLayout(): LayOutModel;
39
39
  get isMobile(): boolean;
40
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
40
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
43
43
  }
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
32
32
  get getDirection(): "ROW" | "COLUMN" | undefined;
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
35
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", 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>;
38
38
  }
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
35
  getColor(color: any): "#000000" | "#ffffff";
36
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
36
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
38
38
  static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-collection", 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>;
39
39
  }
@@ -133,7 +133,7 @@ export declare class ProductDescComponent extends BaseSection implements DoCheck
133
133
  getHeaderColor(type: string): string;
134
134
  formatItemCode(code: any): string | null;
135
135
  getTextColor(color: any): "#000000" | "#ffffff";
136
- getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
136
+ getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
137
137
  onFindInStore(id: string): void;
138
138
  onBookAppointment(): void;
139
139
  isDetails: boolean;
@@ -188,7 +188,7 @@ export declare class ProductDescComponent extends BaseSection implements DoCheck
188
188
  */
189
189
  get schemePlanEnabled(): boolean;
190
190
  /**
191
- * The plan is fetched lazily, the first time the section is an e-commerce page with the switch on. That
191
+ * The plan is fetched lazily, the first time the switch is on. It does not depend on the site type. That
192
192
  * fetch checks the second condition (Passbook app installed) and finds an eligible scheme, so
193
193
  * businesses with the switch off make no extra requests, and turning it on later still loads the plan.
194
194
  */
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
21
21
  get stylesLayout(): LayOutModel;
22
22
  get spacingLayout(): SpacingModel;
23
23
  getParentClass(): "" | "overflow-scroll flex-nowrap";
24
- getClass(index: number): "col-6" | "col-12" | "col-6 mb-2" | "col-12 mb-2";
24
+ getClass(index: number): "col-12" | "col-6" | "col-6 mb-2" | "col-12 mb-2";
25
25
  showSchemeDetails(scheme: any): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
27
27
  static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
@@ -31,7 +31,7 @@ export declare class LinkEditorComponent {
31
31
  changeButtonStyle(): void;
32
32
  getContrastTextColor(backgroundHex: any): void;
33
33
  backgroundType: string[];
34
- setBorderRadius(): "0px" | "7px" | "99px";
34
+ setBorderRadius(): "0px" | "99px" | "7px";
35
35
  setBorder(): string;
36
36
  setColor(): any;
37
37
  setBackground(): any;
@@ -32,8 +32,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
32
32
  get stylesLayout(): LayOutModel;
33
33
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
34
34
  get getBackgroundColor(): BackgroundModel;
35
- get getBackgroundOpacity(): "0" | "0.5" | "0.7" | "0.6" | "0.8" | "1";
36
- opacityValue(value: OverlayValue): "0.5" | "0.7" | "0.6" | "0.8" | "1";
35
+ get getBackgroundOpacity(): "1" | "0" | "0.7" | "0.5" | "0.6" | "0.8";
36
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.6" | "0.8";
37
37
  editSection(): void;
38
38
  getScreenSize(): number;
39
39
  getSectionMinHeight(): string;
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
25
25
  get canMergeNavbar(): boolean | undefined;
26
26
  get isBorderlessImage(): boolean | undefined;
27
27
  get getPositionLayout(): PositionLayoutModal;
28
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
28
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
29
  editSection(): void;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
31
31
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
@@ -31,7 +31,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit, O
31
31
  shouldShowDropdown(field: any): boolean;
32
32
  getCardStyle(): {};
33
33
  getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
34
- getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
34
+ getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
36
36
  static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
37
37
  }
@@ -17,7 +17,7 @@ export declare class FaqColumnsCardsComponent extends BaseSection {
17
17
  ngOnInit(): void;
18
18
  get headingSpace(): SPACING;
19
19
  get stylesLayout(): LayOutModel;
20
- getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
20
+ getLayout(): "justify-content-start" | "justify-content-center" | "justify-content-end";
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqColumnsCardsComponent, never>;
22
22
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqColumnsCardsComponent, "simpo-faq-columns-cards", never, { "data": { "alias": "data"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
23
23
  }
@@ -23,7 +23,7 @@ export declare class FaqSectionComponent extends BaseSection {
23
23
  toggleContent(idx: number): void;
24
24
  editSection(): void;
25
25
  getScreenSize(): void;
26
- getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
26
+ getLayout(): "justify-content-start" | "justify-content-center" | "justify-content-end";
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
28
28
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
29
29
  }
@@ -23,7 +23,7 @@ export declare class ImageGridHotspotComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
26
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
20
20
  constructor(_eventService: EventsService);
21
21
  ngOnInit(): void;
22
22
  get canMergeNavbar(): boolean | undefined;
23
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
23
+ get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
24
  get stylesLayout(): LayOutModel;
25
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
25
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
26
26
  editSection(): void;
27
27
  redirectTo(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -26,8 +26,8 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
26
26
  get originalItemsLength(): number;
27
27
  trackByIndex(index: number): number;
28
28
  get stylesLayout(): LayOutModel;
29
- get animationDuration(): "25s" | "20s" | "15s" | "10s" | "8s" | logoSpeed.Normal;
30
- get animationDirection(): "reverse" | "normal" | logoDirection.Left;
29
+ get animationDuration(): "8s" | logoSpeed.Normal | "25s" | "20s" | "15s" | "10s";
30
+ get animationDirection(): logoDirection.Left | "reverse" | "normal";
31
31
  get isMobile(): boolean;
32
32
  get getPositionLayout(): PositionLayoutModal;
33
33
  screenWidth: number;
@@ -24,7 +24,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
24
24
  idx: number;
25
25
  getImageData(): import("../../styles/style.model").Image | undefined;
26
26
  getImageUrl(): string | undefined;
27
- getImageType(): "Video" | "Image";
27
+ getImageType(): "Image" | "Video";
28
28
  getLength(): number;
29
29
  editSection(): void;
30
30
  stopPropagation(event: any): void;
@@ -23,8 +23,8 @@ export declare class PricingSectionComponent extends BaseSection {
23
23
  getButtonId(): string;
24
24
  editSection(): void;
25
25
  redirectTo(data: any): void;
26
- getClass(): "col-6" | "col-4" | "col-3" | "col-12";
27
- getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
26
+ getClass(): "col-4" | "col-12" | "col-6" | "col-3";
27
+ getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
30
30
  }
@@ -58,6 +58,11 @@ export declare class SchemePlanService {
58
58
  loadStaff(): Observable<SchemePlanStaff[]>;
59
59
  /** Highest value of `jewellerBenefit` (same rule the Returns Calculator uses). */
60
60
  highestBenefit(scheme: any): number;
61
+ /**
62
+ * A stand-in product value used only to *display* the plan button in an editor preview that has no
63
+ * real product (so no price). The button label depends on the scheme, not on this number.
64
+ */
65
+ sampleProductValue(scheme: any): number;
61
66
  /**
62
67
  * Builds the plan for a product worth `productValue`.
63
68
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.8.11",
3
+ "version": "3.8.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file