simpo-component-library 3.2.45 → 3.2.47

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 (59) hide show
  1. package/esm2022/lib/directive/button-editor.directive.mjs +48 -0
  2. package/esm2022/lib/directive/image-editor.directive.mjs +34 -24
  3. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +6 -4
  4. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +5 -3
  5. package/esm2022/lib/elements/editor-service.service.mjs +12 -1
  6. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +6 -7
  7. package/esm2022/lib/elements/link-editor/link-editor.component.mjs +7 -7
  8. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +8 -8
  9. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +8 -4
  10. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +7 -3
  11. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +2 -2
  12. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +2 -2
  13. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +6 -4
  14. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +6 -4
  15. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +5 -5
  16. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +2 -2
  17. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +1 -1
  18. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +1 -1
  19. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +7 -5
  20. package/esm2022/lib/sections/features-section/features-section.component.mjs +6 -4
  21. package/esm2022/lib/sections/footer/footer.component.mjs +2 -2
  22. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +2 -2
  23. package/esm2022/lib/sections/header-text/header-text.component.mjs +2 -2
  24. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +7 -5
  25. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +7 -5
  26. package/esm2022/lib/sections/image-section/image-section.component.mjs +7 -5
  27. package/esm2022/lib/sections/location-section/location-section.component.mjs +1 -1
  28. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +4 -3
  29. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +2 -2
  30. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +6 -4
  31. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +7 -4
  32. package/esm2022/lib/sections/process-section/process-section.component.mjs +5 -3
  33. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +1 -1
  34. package/esm2022/lib/sections/service-section/service-section.component.mjs +2 -2
  35. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +1 -1
  36. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +7 -5
  37. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +7 -5
  38. package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +1 -1
  39. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +7 -6
  40. package/esm2022/lib/sections/text-section/text-section.component.mjs +2 -2
  41. package/esm2022/lib/sections/video-section/video-section.component.mjs +1 -1
  42. package/fesm2022/simpo-component-library.mjs +2863 -2779
  43. package/fesm2022/simpo-component-library.mjs.map +1 -1
  44. package/lib/directive/button-editor.directive.d.ts +16 -0
  45. package/lib/directive/image-editor.directive.d.ts +3 -5
  46. package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
  47. package/lib/elements/editor-service.service.d.ts +3 -0
  48. package/lib/elements/image-editor/image-editor.component.d.ts +1 -3
  49. package/lib/elements/link-editor/link-editor.component.d.ts +3 -3
  50. package/lib/elements/media-selector/media-selector.component.d.ts +3 -3
  51. package/lib/elements/simpo-button/simpo-button.component.d.ts +2 -1
  52. package/lib/elements/text-editor/text-editor.component.d.ts +3 -2
  53. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  54. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  55. package/lib/sections/image-section/image-section.component.d.ts +2 -2
  56. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/simpo-component-library-3.2.47.tgz +0 -0
  59. package/simpo-component-library-3.2.45.tgz +0 -0
@@ -0,0 +1,16 @@
1
+ import { ElementRef, Renderer2 } 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 renderer;
8
+ private matDialog;
9
+ appButtonEditor: boolean;
10
+ buttonData?: Button;
11
+ constructor(el: ElementRef, renderer: Renderer2, matDialog: MatDialog);
12
+ ngAfterViewInit(): void;
13
+ onClick(event: Event): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
@@ -1,17 +1,15 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
1
+ import { ElementRef } 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
5
  export declare class ImageEditorDirective {
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;
11
+ constructor(el: ElementRef, matDialog: MatDialog);
12
+ ngAfterViewInit(): void;
15
13
  onClick(event: Event): void;
16
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, never>;
17
15
  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>;
@@ -45,7 +45,7 @@ export declare class AuthenticationRequiredComponent {
45
45
  validateNumber(event: KeyboardEvent): void;
46
46
  validateOTP(event: KeyboardEvent): void;
47
47
  checkStrength(): void;
48
- getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
48
+ getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
49
49
  get isEmailValid(): boolean;
50
50
  get isPasswordValid(): boolean;
51
51
  get isMobile(): boolean;
@@ -6,6 +6,9 @@ export declare class ElementServiceService {
6
6
  constructor(http: HttpClient, BASE_URL: string);
7
7
  getComponentApi(): 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;
@@ -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
  }
@@ -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" | "0.7" | "0.5" | "0.3" | "0.2";
29
- opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
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";
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" | "0.7" | "0.5" | "0.3" | "0.2";
28
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
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>;
@@ -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(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
24
- opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
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";
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(): logoDirection.Left | "reverse" | "normal";
26
+ get animationDirection(): "reverse" | "normal" | logoDirection.Left;
27
27
  screenWidth: number;
28
28
  getScreenSize(event?: number): void;
29
29
  editSection(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.2.45",
3
+ "version": "3.2.47",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file