simpo-component-library 3.1.31 → 3.2.41

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 (58) hide show
  1. package/esm2022/lib/directive/image-editor.directive.mjs +2 -2
  2. package/esm2022/lib/directive/spacing-around.directive.mjs +2 -2
  3. package/esm2022/lib/elements/add-section/add-section.component.mjs +12 -10
  4. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +8 -4
  5. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +6 -3
  6. package/esm2022/lib/elements/editor-service.service.mjs +29 -0
  7. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +13 -7
  8. package/esm2022/lib/elements/link-editor/link-editor.component.mjs +3 -3
  9. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +4 -4
  10. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +83 -37
  11. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +6 -3
  12. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +6 -4
  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 +6 -4
  16. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +6 -4
  17. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +6 -4
  18. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +5 -3
  19. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +5 -3
  20. package/esm2022/lib/sections/features-section/features-section.component.mjs +6 -4
  21. package/esm2022/lib/sections/footer/footer.component.mjs +18 -4
  22. package/esm2022/lib/sections/header-text/header-text.component.mjs +6 -4
  23. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +5 -3
  24. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +5 -3
  25. package/esm2022/lib/sections/location-section/location-section.component.mjs +6 -4
  26. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +4 -3
  27. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +5 -3
  28. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +5 -3
  29. package/esm2022/lib/sections/process-section/process-section.component.mjs +5 -3
  30. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +6 -4
  31. package/esm2022/lib/sections/service-section/service-section.component.mjs +6 -4
  32. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +6 -4
  33. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +6 -4
  34. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +7 -5
  35. package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +6 -4
  36. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +6 -4
  37. package/esm2022/lib/sections/text-section/text-section.component.mjs +9 -8
  38. package/esm2022/lib/sections/video-section/video-section.component.mjs +5 -3
  39. package/esm2022/lib/services/rest.service.mjs +4 -1
  40. package/esm2022/lib/tokens/api-token.mjs +3 -0
  41. package/fesm2022/simpo-component-library.mjs +804 -677
  42. package/fesm2022/simpo-component-library.mjs.map +1 -1
  43. package/lib/elements/add-section/add-section.component.d.ts +3 -1
  44. package/lib/elements/below-image-card/below-image-card.component.d.ts +2 -1
  45. package/lib/elements/covering-image-card/covering-image-card.component.d.ts +2 -1
  46. package/lib/elements/editor-service.service.d.ts +11 -0
  47. package/lib/elements/image-editor/image-editor.component.d.ts +4 -1
  48. package/lib/elements/media-selector/media-selector.component.d.ts +1 -1
  49. package/lib/elements/text-editor/text-editor.component.d.ts +13 -3
  50. package/lib/elements/top-of-image-card/top-of-image-card.component.d.ts +2 -1
  51. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +1 -1
  52. package/lib/sections/footer/footer.component.d.ts +1 -0
  53. package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
  54. package/lib/services/rest.service.d.ts +1 -0
  55. package/lib/tokens/api-token.d.ts +2 -0
  56. package/package.json +1 -1
  57. package/simpo-component-library-3.2.41.tgz +0 -0
  58. package/simpo-component-library-3.1.31.tgz +0 -0
@@ -1,13 +1,15 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { EventsService } from '../../services/events.service';
4
+ import { ElementServiceService } from '../editor-service.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class AddSectionComponent {
6
7
  dialog: MatDialogRef<AddSectionComponent>;
7
8
  data: any;
8
9
  private http;
9
10
  private _eventService;
10
- constructor(dialog: MatDialogRef<AddSectionComponent>, data: any, http: HttpClient, _eventService: EventsService);
11
+ private elementService;
12
+ constructor(dialog: MatDialogRef<AddSectionComponent>, data: any, http: HttpClient, _eventService: EventsService, elementService: ElementServiceService);
11
13
  ngOnInit(): void;
12
14
  selectedTab: string;
13
15
  tabs: any;
@@ -8,10 +8,11 @@ export declare class BelowImageCardComponent {
8
8
  content: any;
9
9
  componentId?: string;
10
10
  button?: ButtonModel;
11
+ edit?: boolean;
11
12
  constructor(_eventService: EventsService);
12
13
  ngOnInit(): void;
13
14
  redirectTo(): void;
14
15
  get getAspectRatio(): any;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BelowImageCardComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<BelowImageCardComponent, "simpo-below-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; }, {}, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<BelowImageCardComponent, "simpo-below-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
17
18
  }
@@ -8,9 +8,10 @@ export declare class CoveringImageCardComponent {
8
8
  content: any;
9
9
  componentId?: string;
10
10
  button?: ButtonModel;
11
+ edit?: boolean;
11
12
  constructor(_eventService: EventsService);
12
13
  ngOnInit(): void;
13
14
  redirectTo(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<CoveringImageCardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<CoveringImageCardComponent, "simpo-covering-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoveringImageCardComponent, "simpo-covering-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
16
17
  }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ElementServiceService {
4
+ private http;
5
+ private BASE_URL;
6
+ constructor(http: HttpClient, BASE_URL: string);
7
+ getComponentApi(): import("rxjs").Observable<Object>;
8
+ regenerateText(request: any): import("rxjs").Observable<Object>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementServiceService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ElementServiceService>;
11
+ }
@@ -1,15 +1,18 @@
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';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ImageEditorComponent {
6
7
  private eventsService;
7
8
  dialogRef: MatDialogRef<ImageEditorComponent>;
8
9
  data: any;
9
10
  private matDialog;
10
- constructor(eventsService: EventsService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
11
+ private render;
12
+ constructor(eventsService: EventsService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog, render: Renderer2);
11
13
  imageData: Image;
12
14
  sectionId: string;
15
+ private backDrop;
13
16
  ngOnInit(): void;
14
17
  max: number;
15
18
  min: number;
@@ -8,7 +8,7 @@ import { RestService } from '../../services/rest.service';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class MediaSelectorComponent implements AfterViewInit {
10
10
  private imageUploadService;
11
- private _dialogRef;
11
+ _dialogRef: MatDialogRef<MediaSelectorComponent>;
12
12
  private dialogData;
13
13
  private snackBar;
14
14
  private restService;
@@ -1,16 +1,25 @@
1
1
  import { ElementRef } from '@angular/core';
2
+ import { ElementServiceService } from '../editor-service.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class TextEditorComponent {
5
+ private editorService;
6
+ private platformId;
4
7
  toolbar: ElementRef;
5
8
  editor: ElementRef;
6
9
  colorPicker: ElementRef;
10
+ parentElement: ElementRef;
11
+ suggestion: ElementRef;
7
12
  value: string;
8
13
  editable: boolean;
14
+ sectionId?: string;
15
+ label?: string;
9
16
  show: boolean;
10
- toolbarX: number;
11
17
  toolbarY: number;
18
+ suggestionY: number;
19
+ rightZero: boolean;
20
+ showSuggestion: boolean;
12
21
  toolbarData: any;
13
- constructor();
22
+ constructor(editorService: ElementServiceService, platformId: Object);
14
23
  ngOnInit(): void;
15
24
  ngOnDestroy(): void;
16
25
  showToolbar(event: MouseEvent): void;
@@ -23,6 +32,7 @@ export declare class TextEditorComponent {
23
32
  openColorPicker(): void;
24
33
  readFormattingProperties(): void;
25
34
  reFormattingData(): void;
35
+ regenerateText(): void;
26
36
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TextEditorComponent, "simpo-text-editor", never, { "value": { "alias": "value"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, {}, never, never, true, 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>;
28
38
  }
@@ -8,9 +8,10 @@ export declare class TopOfImageCardComponent {
8
8
  content: any;
9
9
  componentId?: string;
10
10
  button?: ButtonModel;
11
+ edit?: boolean;
11
12
  constructor(_eventService: EventsService);
12
13
  ngOnInit(): void;
13
14
  redirectTo(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TopOfImageCardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TopOfImageCardComponent, "simpo-top-of-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; }, {}, never, never, true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TopOfImageCardComponent, "simpo-top-of-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
16
17
  }
@@ -23,7 +23,7 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
23
23
  constructor(_eventService: EventsService);
24
24
  ngOnInit(): void;
25
25
  get stylesLayout(): LayOutModel;
26
- get getBlurValue(): "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | "NONE" | undefined;
26
+ get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
27
27
  get getBackgroundColor(): BackgroundModel;
28
28
  get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
29
29
  opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
@@ -32,6 +32,7 @@ export declare class FooterComponent extends BaseSection {
32
32
  getPages(): void;
33
33
  redirectToPage(pageData: any): void;
34
34
  createNewLink(folderIndex: number): void;
35
+ createNewFolder(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
36
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "simpo-footer", 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>;
37
38
  }
@@ -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;
@@ -83,6 +83,7 @@ export declare class RestService implements OnDestroy {
83
83
  getTemplate(): Observable<Object>;
84
84
  getImageLibrary(): Observable<Object>;
85
85
  saveImagesToBusinessLibrary(mediaRequest: any): Observable<Object>;
86
+ regenerateText(request: any): Observable<Object>;
86
87
  getFieldsToDisplay(fieldsList: any[]): any;
87
88
  static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
88
89
  static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const API_URL: InjectionToken<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.1.31",
3
+ "version": "3.2.41",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file