simpo-component-library 3.2.4 → 3.2.6

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 (75) hide show
  1. package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +3 -3
  2. package/esm2022/lib/directive/button-editor.directive.mjs +79 -0
  3. package/esm2022/lib/directive/image-editor.directive.mjs +56 -26
  4. package/esm2022/lib/directive/sticky-directive.mjs +2 -2
  5. package/esm2022/lib/elements/add-section/add-section.component.mjs +64 -10
  6. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +6 -4
  7. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +5 -3
  8. package/esm2022/lib/elements/editor-service.service.mjs +24 -8
  9. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +6 -7
  10. package/esm2022/lib/elements/link-editor/link-editor.component.mjs +7 -7
  11. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +10 -10
  12. package/esm2022/lib/elements/navbar-button-element/navbar-button-element.component.mjs +6 -3
  13. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +7 -3
  14. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +11 -5
  15. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  16. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +9 -6
  17. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +3 -3
  18. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +6 -4
  19. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +8 -6
  20. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
  21. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +3 -3
  22. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  23. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +3 -3
  24. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +8 -6
  25. package/esm2022/lib/sections/features-section/features-section.component.mjs +6 -4
  26. package/esm2022/lib/sections/footer/footer.component.mjs +4 -4
  27. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  28. package/esm2022/lib/sections/header-section/header-section.component.mjs +277 -0
  29. package/esm2022/lib/sections/header-section/header-section.model.mjs +2 -0
  30. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  31. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +8 -6
  32. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +7 -5
  33. package/esm2022/lib/sections/image-section/image-section.component.mjs +7 -5
  34. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  35. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +4 -3
  36. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +3 -3
  37. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +6 -4
  38. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +8 -5
  39. package/esm2022/lib/sections/process-section/process-section.component.mjs +5 -3
  40. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +4 -4
  41. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  42. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +4 -4
  43. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +9 -5
  44. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +7 -5
  45. package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +3 -3
  46. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +7 -6
  47. package/esm2022/lib/sections/text-section/text-section.component.mjs +3 -3
  48. package/esm2022/lib/sections/video-section/video-section.component.mjs +4 -4
  49. package/esm2022/lib/services/rest.service.mjs +16 -7
  50. package/esm2022/lib/styles/index.mjs +8 -1
  51. package/esm2022/lib/tokens/api-token.mjs +4 -0
  52. package/esm2022/public-api.mjs +3 -1
  53. package/fesm2022/simpo-component-library.mjs +3851 -3403
  54. package/fesm2022/simpo-component-library.mjs.map +1 -1
  55. package/lib/directive/button-editor.directive.d.ts +22 -0
  56. package/lib/directive/image-editor.directive.d.ts +12 -7
  57. package/lib/elements/add-section/add-section.component.d.ts +10 -2
  58. package/lib/elements/editor-service.service.d.ts +5 -2
  59. package/lib/elements/image-editor/image-editor.component.d.ts +1 -3
  60. package/lib/elements/link-editor/link-editor.component.d.ts +3 -3
  61. package/lib/elements/media-selector/media-selector.component.d.ts +3 -3
  62. package/lib/elements/navbar-button-element/navbar-button-element.component.d.ts +2 -1
  63. package/lib/elements/simpo-button/simpo-button.component.d.ts +2 -1
  64. package/lib/elements/text-editor/text-editor.component.d.ts +3 -2
  65. package/lib/sections/add-new-section/add-new-section.component.d.ts +3 -1
  66. package/lib/sections/header-section/header-section.component.d.ts +72 -0
  67. package/lib/sections/header-section/header-section.model.d.ts +31 -0
  68. package/lib/services/rest.service.d.ts +1 -1
  69. package/lib/styles/index.d.ts +6 -0
  70. package/lib/tokens/api-token.d.ts +3 -0
  71. package/package.json +1 -1
  72. package/public-api.d.ts +2 -0
  73. package/simpo-component-library-3.2.6.tgz +0 -0
  74. package/src/lib/styles/global-styles.css +8 -0
  75. package/simpo-component-library-3.2.4.tgz +0 -0
@@ -0,0 +1,22 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { Button } from '../styles/style.model';
3
+ import { MatDialog } from '@angular/material/dialog';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ButtonEditorDirective {
6
+ private el;
7
+ private matDialog;
8
+ appButtonEditor: boolean;
9
+ buttonData?: Button;
10
+ private mouseEnterSub?;
11
+ private mouseLeaveSub?;
12
+ private clickSub?;
13
+ private readonly HIGHLIGHT_BORDER;
14
+ constructor(el: ElementRef, matDialog: MatDialog);
15
+ ngOnInit(): void;
16
+ ngOnChanges(): void;
17
+ private setupEventListeners;
18
+ private cleanup;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
@@ -1,18 +1,23 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
1
+ import { ElementRef, OnInit, OnDestroy } from '@angular/core';
2
2
  import { Image } from '../styles/style.model';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import * as i0 from "@angular/core";
5
- export declare class ImageEditorDirective {
5
+ export declare class ImageEditorDirective implements OnInit, OnDestroy {
6
6
  private el;
7
- private renderer;
8
7
  private matDialog;
9
8
  appImageEditor: boolean;
10
9
  imageData?: Image;
11
10
  sectionId?: string;
12
- constructor(el: ElementRef, renderer: Renderer2, matDialog: MatDialog);
13
- onMouseEnter(): void;
14
- onMouseLeave(): void;
15
- onClick(event: Event): void;
11
+ private mouseEnterSub?;
12
+ private mouseLeaveSub?;
13
+ private clickSub?;
14
+ private readonly HIGHLIGHT_BORDER;
15
+ constructor(el: ElementRef, matDialog: MatDialog);
16
+ ngOnInit(): void;
17
+ ngOnChanges(): void;
18
+ private setupEventListeners;
19
+ private cleanup;
20
+ ngOnDestroy(): void;
16
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, never>;
17
22
  static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "img[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
18
23
  }
@@ -8,18 +8,26 @@ export declare class AddSectionComponent {
8
8
  data: any;
9
9
  private http;
10
10
  private _eventService;
11
+ private editorService;
11
12
  private elementService;
12
- constructor(dialog: MatDialogRef<AddSectionComponent>, data: any, http: HttpClient, _eventService: EventsService, elementService: ElementServiceService);
13
+ constructor(dialog: MatDialogRef<AddSectionComponent>, data: any, http: HttpClient, _eventService: EventsService, editorService: ElementServiceService, elementService: ElementServiceService);
14
+ businessType: 'STATIC' | 'E_COMMERCE';
13
15
  ngOnInit(): void;
14
16
  selectedTab: string;
15
17
  tabs: any;
16
18
  sections: any;
17
19
  selectedSection: any;
18
20
  selectedSectionName: any;
21
+ loader: boolean;
22
+ tabShiftLoader: boolean;
23
+ selectSection(ele: any): void;
19
24
  getAllSections(): void;
20
25
  getObjectKeys(obj: any): any[];
21
- getComponentApi(): import("rxjs").Observable<Object>;
22
26
  addNewSection(componentId: any, sectionType: any, event: any): void;
27
+ searchText: string;
28
+ dummySections: any;
29
+ dummy2: any;
30
+ searchSections(): void;
23
31
  static ɵfac: i0.ɵɵFactoryDeclaration<AddSectionComponent, never>;
24
32
  static ɵcmp: i0.ɵɵComponentDeclaration<AddSectionComponent, "simpo-add-section", never, {}, {}, never, never, true, never>;
25
33
  }
@@ -3,9 +3,12 @@ import * as i0 from "@angular/core";
3
3
  export declare class ElementServiceService {
4
4
  private http;
5
5
  private BASE_URL;
6
- constructor(http: HttpClient);
7
- getComponentApi(): import("rxjs").Observable<Object>;
6
+ constructor(http: HttpClient, BASE_URL: string);
7
+ getComponentApi(businessType?: 'STATIC' | 'E_COMMERCE'): import("rxjs").Observable<Object>;
8
8
  regenerateText(request: any): import("rxjs").Observable<Object>;
9
+ getImageLibrary(): import("rxjs").Observable<Object>;
10
+ saveImagesToBusinessLibrary(mediaRequest: any): import("rxjs").Observable<Object>;
11
+ getTemplate(): import("rxjs").Observable<Object>;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementServiceService, never>;
10
13
  static ɵprov: i0.ɵɵInjectableDeclaration<ElementServiceService>;
11
14
  }
@@ -1,15 +1,13 @@
1
1
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
2
2
  import { EventsService } from '../../services/events.service';
3
3
  import { Image } from '../../styles/style.model';
4
- import { Renderer2 } from '@angular/core';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class ImageEditorComponent {
7
6
  private eventsService;
8
7
  dialogRef: MatDialogRef<ImageEditorComponent>;
9
8
  data: any;
10
9
  private matDialog;
11
- private render;
12
- constructor(eventsService: EventsService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog, render: Renderer2);
10
+ constructor(eventsService: EventsService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
13
11
  imageData: Image;
14
12
  sectionId: string;
15
13
  private backDrop;
@@ -1,10 +1,10 @@
1
1
  import { Button } from '../../styles/style.model';
2
2
  import { RedirectionLinkType } from '../../styles/index';
3
- import { RestService } from '../../services/rest.service';
4
3
  import { MatDialogRef } from '@angular/material/dialog';
4
+ import { ElementServiceService } from '../editor-service.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class LinkEditorComponent {
7
- private restService;
7
+ private editorService;
8
8
  dialogRef: MatDialogRef<LinkEditorComponent>;
9
9
  data: any;
10
10
  link: Button;
@@ -14,7 +14,7 @@ export declare class LinkEditorComponent {
14
14
  linkType: any[];
15
15
  templatePage: any[];
16
16
  addLink: boolean;
17
- constructor(restService: RestService, dialogRef: MatDialogRef<LinkEditorComponent>, data: any);
17
+ constructor(editorService: ElementServiceService, dialogRef: MatDialogRef<LinkEditorComponent>, data: any);
18
18
  ngOnInit(): void;
19
19
  closeDialog(): void;
20
20
  getTemplatePage(): void;
@@ -4,14 +4,14 @@ import { FormControl } from '@angular/forms';
4
4
  import { ImageUplaodService } from '../../services/image-upload-service.service';
5
5
  import { MatDialogRef } from '@angular/material/dialog';
6
6
  import { MatSnackBar } from '@angular/material/snack-bar';
7
- import { RestService } from '../../services/rest.service';
7
+ import { ElementServiceService } from '../editor-service.service';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class MediaSelectorComponent implements AfterViewInit {
10
10
  private imageUploadService;
11
11
  _dialogRef: MatDialogRef<MediaSelectorComponent>;
12
12
  private dialogData;
13
13
  private snackBar;
14
- private restService;
14
+ private editorService;
15
15
  viewport: CdkVirtualScrollViewport;
16
16
  tabs: string[];
17
17
  activeTab: string;
@@ -23,7 +23,7 @@ export declare class MediaSelectorComponent implements AfterViewInit {
23
23
  imageSize: number;
24
24
  multiple: boolean;
25
25
  selectedImage: Map<string, any>;
26
- constructor(imageUploadService: ImageUplaodService, _dialogRef: MatDialogRef<MediaSelectorComponent>, dialogData: any, snackBar: MatSnackBar, restService: RestService);
26
+ constructor(imageUploadService: ImageUplaodService, _dialogRef: MatDialogRef<MediaSelectorComponent>, dialogData: any, snackBar: MatSnackBar, editorService: ElementServiceService);
27
27
  ngOnInit(): void;
28
28
  ngAfterViewInit(): void;
29
29
  getImageLibrary(): void;
@@ -10,10 +10,11 @@ export declare class NavbarButtonElementComponent implements OnInit {
10
10
  selectedStyle?: HeaderButtonStyle;
11
11
  bgColor?: string;
12
12
  sectionId?: string;
13
+ accentColor?: string;
13
14
  HeaderButtonStyle: typeof HeaderButtonStyle;
14
15
  constructor(_eventService: EventsService);
15
16
  ngOnInit(): void;
16
17
  changePage(pageData?: any): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarButtonElementComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "selectedStyle": { "alias": "selectedStyle"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "selectedStyle": { "alias": "selectedStyle"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "accentColor": { "alias": "accentColor"; "required": false; }; }, {}, never, never, true, never>;
19
20
  }
@@ -8,9 +8,10 @@ export declare class SimpoButtonComponent {
8
8
  buttonId: string;
9
9
  color?: string;
10
10
  sectionId?: string;
11
+ edit?: boolean;
11
12
  constructor(_eventService: EventsService);
12
13
  ngOnInit(): void;
13
14
  redirectTo(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SimpoButtonComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SimpoButtonComponent, "app-button-element", never, { "buttonContent": { "alias": "buttonContent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SimpoButtonComponent, "app-button-element", never, { "buttonContent": { "alias": "buttonContent"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "color": { "alias": "color"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
16
17
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { ElementServiceService } from '../editor-service.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TextEditorComponent {
@@ -10,6 +10,7 @@ export declare class TextEditorComponent {
10
10
  parentElement: ElementRef;
11
11
  suggestion: ElementRef;
12
12
  value: string;
13
+ valueChange: EventEmitter<string>;
13
14
  editable: boolean;
14
15
  sectionId?: string;
15
16
  label?: string;
@@ -34,5 +35,5 @@ export declare class TextEditorComponent {
34
35
  reFormattingData(): void;
35
36
  regenerateText(): void;
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
37
- 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; }; }, {}, never, never, true, never>;
38
+ 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>;
38
39
  }
@@ -1,8 +1,10 @@
1
1
  import { EventsService } from './../../services/events.service';
2
+ import { MatDialog } from '@angular/material/dialog';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class AddNewSectionComponent {
4
5
  private _eventService;
5
- constructor(_eventService: EventsService);
6
+ private dialog;
7
+ constructor(_eventService: EventsService, dialog: MatDialog);
6
8
  index?: number;
7
9
  addSection(): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddNewSectionComponent, 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
+ }
@@ -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);
16
+ constructor(http: HttpClient, eventService: EventsService, BASE_URL: string, ECOMMERCE_URL: string);
17
17
  ngOnDestroy(): void;
18
18
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
19
19
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
@@ -74,6 +74,12 @@ export declare enum HEADER_STYLING {
74
74
  LOGO_CENTER__MENU_LEFT = "LOGO_CENTER__MENU_LEFT",
75
75
  LOGO_RIGHT__MENU_LEFT = "LOGO_RIGHT__MENU_LEFT"
76
76
  }
77
+ export declare enum Header_Type {
78
+ HEADER1 = "Header1",
79
+ HEADER2 = "Header2",
80
+ HEADER3 = "Header3",
81
+ HEADER4 = "Header4"
82
+ }
77
83
  export declare enum TEXT_SIZE {
78
84
  Small = "Small",
79
85
  Medium = "Medium",
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const API_URL: InjectionToken<string>;
3
+ export declare const ECOMMERCE_URL: InjectionToken<String>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
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';
@@ -56,6 +57,7 @@ export * from './lib/ecommerce/sections/authentication-required/authentication-r
56
57
  export * from './lib/services/events.service';
57
58
  export * from './lib/services/endUser.service';
58
59
  export * from './lib/services/sanitizeHtml';
60
+ export * from './lib/tokens/api-token';
59
61
  export * from './lib/directive/animation-directive';
60
62
  export * from './lib/directive/background-directive';
61
63
  export * from './lib/directive/banner-content-fit-directive';
@@ -138,3 +138,11 @@ animation: slideInLeft 0.5s ease-in-out forwards;
138
138
  .mat-mdc-form-field-subscript-wrapper{
139
139
  display: none;
140
140
  }
141
+ .media-selector{
142
+ position: absolute !important;
143
+ top: 0 !important;
144
+ left: 0 !important;
145
+ width: 60%;
146
+ height: 100vh;
147
+ animation: slideInLeft 0.5s ease-in-out forwards;
148
+ }
Binary file