simpo-component-library 3.2.49 → 3.2.51

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.
@@ -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): "#000000" | "#ffffff" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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): "#000000" | "#ffffff" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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(): "#000000" | "#ffffff" | "#ffffff;";
15
+ getTextColor(): "#ffffff" | "#000000" | "#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
  }
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
25
25
  get stylesLayout(): LayOutModel;
26
26
  get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
27
27
  get getBackgroundColor(): BackgroundModel;
28
- get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
29
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
+ get getBackgroundOpacity(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
29
+ opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
30
30
  editSection(): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
32
32
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", 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>;
@@ -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.2" | "0.3" | "0.5" | "0.7" | "0";
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>;
@@ -0,0 +1,72 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './header-section.model';
3
+ import { EventsService } from './../../services/events.service';
4
+ import { ActionModel, LayOutModel } from '../../styles/style.model';
5
+ import { ActivatedRoute, Router } from '@angular/router';
6
+ import { MatDialog } from '@angular/material/dialog';
7
+ import { StorageServiceService } from '../../services/storage.service';
8
+ import { Header_Type, ProductCardTheme } from '../../styles/index';
9
+ import * as i0 from "@angular/core";
10
+ export declare class HeaderSectionComponent implements OnInit {
11
+ private readonly _eventService;
12
+ private readonly router;
13
+ private readonly activatedRoute;
14
+ private readonly matDialog;
15
+ private readonly storageService;
16
+ data?: HeaderSectionModel;
17
+ nextComponent: any;
18
+ index?: number;
19
+ customClass?: string;
20
+ edit?: boolean;
21
+ childContainer: any;
22
+ scrollValue: number;
23
+ content?: HeaderContentModel;
24
+ style?: HeaderStyleModel;
25
+ action?: ActionModel;
26
+ color: string;
27
+ searchText: string;
28
+ theme: typeof ProductCardTheme;
29
+ HeaderStyling: typeof Header_Type;
30
+ constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService);
31
+ searchProducts(): void;
32
+ goToFav(): void;
33
+ get stylesLayout(): LayOutModel;
34
+ goToAccount(): void;
35
+ get loggedIn(): boolean;
36
+ get getUserName(): string | undefined;
37
+ goToWishlist(): void;
38
+ goToCart(): void;
39
+ applyFilter(value: any, type: string): void;
40
+ onScroll(event: any): void;
41
+ ngOnInit(): void;
42
+ isNavbarOpen: boolean;
43
+ screenWidth: number;
44
+ getScreenSize(event?: number): void;
45
+ get getParentHeight(): any;
46
+ get getDropdownLinks(): string[];
47
+ get isEcommerceWebsite(): boolean;
48
+ close(): void;
49
+ showEditors: boolean;
50
+ showEditTabs(isShow: boolean): void;
51
+ goToHome(): void;
52
+ get isHeaderSticky(): boolean;
53
+ get backgroundInfo(): any;
54
+ get simpoColor(): any;
55
+ get accentColor(): any;
56
+ get isTransparent(): any;
57
+ redirectTo(content: any): void;
58
+ showSearchBar: boolean;
59
+ get isComponentMerged(): any;
60
+ editSection(): void;
61
+ get canShowMobileFooter(): boolean;
62
+ get showMobileHomeIcon(): boolean;
63
+ get getCartItemsCount(): number;
64
+ get getHeaderStyling(): Header_Type | undefined;
65
+ get isMobile(): boolean;
66
+ getKeys(object: any): string[];
67
+ getValues(object: any): unknown[];
68
+ get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
69
+ get getNavbarButton(): any[];
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
71
+ 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>;
72
+ }
@@ -0,0 +1,31 @@
1
+ import { Header_Type, HeaderButtonStyle, ProductCardTheme } from "./../../styles/index";
2
+ import { BackgroundModel, HeaderButtonStyleModel, InputTextModel, NavbarButton } from "../../styles/style.model";
3
+ import { FooterLayoutModel, FooterLogoModel, FooterSocialLinkModel } from "../footer-section/footer-section.modal";
4
+ import { ActionModel } from "../../styles/style.model";
5
+ export interface HeaderSectionModel {
6
+ id: string;
7
+ sectionType: string;
8
+ sectionName: string;
9
+ content: HeaderContentModel;
10
+ styles: HeaderStyleModel;
11
+ action: ActionModel;
12
+ type: 'STATIC' | 'E_COMMERCE' | 'REAL_ESTATE';
13
+ }
14
+ export interface HeaderContentModel {
15
+ siteName: InputTextModel;
16
+ logo: FooterLogoModel;
17
+ socialLinks: FooterSocialLinkModel;
18
+ navbarButtons: NavbarButton[];
19
+ ecomlinks: {
20
+ [key: string]: string[];
21
+ };
22
+ }
23
+ export interface HeaderStyleModel {
24
+ layout: FooterLayoutModel;
25
+ background: BackgroundModel;
26
+ sticky?: boolean;
27
+ navigationStyle: HeaderButtonStyle;
28
+ navbarButtonStyle: HeaderButtonStyleModel;
29
+ styling: Header_Type;
30
+ theme: ProductCardTheme;
31
+ }
@@ -20,8 +20,8 @@ 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";
24
- opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
23
+ get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
+ opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
25
25
  editSection(): void;
26
26
  redirectTo(): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
@@ -23,7 +23,7 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
25
  get animationDuration(): logoSpeed;
26
- get animationDirection(): "reverse" | "normal" | logoDirection.Left;
26
+ get animationDirection(): logoDirection.Left | "reverse" | "normal";
27
27
  screenWidth: number;
28
28
  getScreenSize(event?: number): void;
29
29
  editSection(): 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(): "#000000" | "#ffffff";
20
+ getTextColor(): "#ffffff" | "#000000";
21
21
  get headingSpace(): SPACING;
22
22
  editSection(): void;
23
23
  redirectTo(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.2.49",
3
+ "version": "3.2.51",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -37,6 +37,7 @@ export * from './lib/sections/property-component/property-component.component';
37
37
  export * from './lib/sections/usp-video-section/usp-video-section.component';
38
38
  export * from './lib/sections/property-list/property-list.component';
39
39
  export * from './lib/sections/footer/footer.component';
40
+ export * from './lib/sections/header-section/header-section.component';
40
41
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
41
42
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
42
43
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
Binary file