simpo-component-library 3.6.859 → 3.6.862

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.
@@ -14,6 +14,9 @@ export declare class HoverElementsComponent implements OnInit {
14
14
  isMerged: boolean;
15
15
  isEcommerce: boolean;
16
16
  ngOnInit(): void;
17
+ isMenuOpen: boolean;
18
+ toggleMenu(event: Event): void;
19
+ onDocumentClick(): void;
17
20
  editSection(): void;
18
21
  restyleSection(event: any): void;
19
22
  changeContent(event: any): void;
@@ -1,65 +1,52 @@
1
- import { ElementRef, EventEmitter, NgZone } from '@angular/core';
2
- import { ElementServiceService } from '../editor-service.service';
1
+ import { ElementRef, EventEmitter, OnDestroy, AfterViewInit } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
- export declare class TextEditorComponent {
5
- private editorService;
6
- private platformId;
7
- private ngZone;
8
- toolbar: ElementRef;
9
- editor: ElementRef;
10
- colorPicker: ElementRef;
11
- parentElement: ElementRef;
12
- suggestion: ElementRef;
13
- private lastGradientSpan;
3
+ export declare class TextEditorComponent implements OnDestroy, AfterViewInit {
14
4
  value: string;
15
5
  valueChange: EventEmitter<string>;
16
6
  editable: boolean;
17
7
  sectionId?: string;
18
8
  label?: string;
19
9
  type?: string;
20
- show: boolean;
10
+ editorElement: ElementRef;
11
+ private platformId;
12
+ editor: any;
13
+ selectedFontSize: string;
14
+ showToolbar: boolean;
15
+ toolbarX: number;
21
16
  toolbarY: number;
22
- suggestionY: number;
23
- rightZero: boolean;
24
- showSuggestion: boolean;
25
- toolbarData: any;
26
- selectedColorType: 'SOLID' | 'GRADIENT';
17
+ selectedColor: string;
27
18
  primaryColor: string;
28
- secondaryColor: any;
29
- constructor(editorService: ElementServiceService, platformId: Object, ngZone: NgZone);
30
- ngOnInit(): void;
19
+ secondaryColor: string;
20
+ isColorPickerOpen: boolean;
21
+ selectedColorType: 'SOLID' | 'GRADIENT';
22
+ savedSelection: any;
23
+ isFontSizeMenuOpen: boolean;
24
+ toolbarData: any;
25
+ ngAfterViewInit(): Promise<void>;
26
+ constructor();
31
27
  ngOnDestroy(): void;
32
- private selectRange;
33
- private markSelection;
34
- private restoreSelectionFromMarkers;
35
- showToolbar(event: MouseEvent): void;
36
- rememberSelection(e: MouseEvent): void;
37
- private getActiveRange;
38
- setColorMode(mode: 'SOLID' | 'GRADIENT'): void;
39
- private wrapRangeWithGradient;
40
- private unwrapGradientInRange;
41
- hideToolbar(event: MouseEvent): void;
42
- formatText(command: string, value?: string): void;
43
- updateFSforOL(): void;
44
- private setStyleWithCSS;
45
- private toLegacyFontStep;
46
- private normalizeFontSizeToCss;
47
- changeFontSize(event: any): void;
48
- changeColor(event: any): void;
49
- updateText(event: Event): void;
50
- onFormatChange(event: Event): void;
51
- openColorPicker(): void;
52
- readFormattingProperties(): void;
53
- reFormattingData(): void;
54
- changeGradientColor(): void;
55
- applyGradientToText(gradientValue: string): void;
56
- regenerateText(): void;
57
- private savedRange;
28
+ initializeEditor(): Promise<void>;
29
+ updateEmptyEditorClass(): void;
58
30
  saveSelection(): void;
59
31
  restoreSelection(): void;
60
- onPaste(event: ClipboardEvent): void;
61
- stripStyles(html: string): string;
62
- getText(): string;
32
+ switchToSolid(event: Event): void;
33
+ switchToGradient(event: Event): void;
34
+ openColorPicker(): void;
35
+ handleWindowFocus: () => void;
36
+ handleSelection(): void;
37
+ toggleBold(): void;
38
+ toggleItalic(): void;
39
+ toggleUnderline(): void;
40
+ toggleOrderedList(): void;
41
+ toggleBulletList(): void;
42
+ setAlign(alignment: 'left' | 'center' | 'right'): void;
43
+ changeColor(): void;
44
+ applyGradient(): void;
45
+ onMouseDown(): void;
46
+ toggleFontSizeMenu(event: Event): void;
47
+ getDisplayFontSize(): string;
48
+ selectCustomFontSize(cssSize: string, event: Event): void;
49
+ changeFontSize(fontSize: string): void;
63
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TextEditorComponent, never>;
64
51
  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; }; "type": { "alias": "type"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
65
52
  }
@@ -0,0 +1,30 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { BackgroundModel, LayOutModel } from '../../styles/style.model';
3
+ import { EventsService } from '../../services/events.service';
4
+ import BaseSection from '../BaseSection';
5
+ import { TestimonialMasonryContentModel, TestimonialMasonryModel, TestimonialMasonryStyleModel } from './testimonial-masonry.model';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TestimonialMasonryComponent extends BaseSection implements OnInit {
8
+ private _eventService;
9
+ data?: TestimonialMasonryModel | any;
10
+ edit?: boolean;
11
+ delete?: boolean;
12
+ customClass?: string;
13
+ nextComponentColor?: BackgroundModel;
14
+ index?: number;
15
+ content?: TestimonialMasonryContentModel;
16
+ styles?: TestimonialMasonryStyleModel;
17
+ screenWidth: number;
18
+ constructor(_eventService: EventsService);
19
+ ngOnInit(): void;
20
+ get stylesLayout(): LayOutModel;
21
+ get activeItems(): import("./testimonial-masonry.model").TestimonialMasonryItemModel[];
22
+ getQuote(item: any): string;
23
+ getAuthor(item: any): string;
24
+ getRole(item: any): string;
25
+ getAvatarUrl(item: any): string;
26
+ editSection(): void;
27
+ getScreenSize(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TestimonialMasonryComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<TestimonialMasonryComponent, "simpo-testimonial-masonry", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
30
+ }
@@ -0,0 +1,24 @@
1
+ import { Image, InputTextModel, ListItemModal, StylesModel, BannerStylesModel, ActionModel } from '../../styles/style.model';
2
+ export interface TestimonialMasonryModel {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ content: TestimonialMasonryContentModel;
7
+ styles: TestimonialMasonryStyleModel;
8
+ action?: ActionModel;
9
+ }
10
+ export interface TestimonialMasonryContentModel {
11
+ inputText: InputTextModel[];
12
+ display?: {
13
+ showImage?: boolean;
14
+ showCard?: boolean;
15
+ };
16
+ listItem: ListItemModal<TestimonialMasonryItemModel>;
17
+ }
18
+ export interface TestimonialMasonryItemModel {
19
+ status: boolean;
20
+ image: Image;
21
+ inputText: InputTextModel[];
22
+ }
23
+ export interface TestimonialMasonryStyleModel extends StylesModel, BannerStylesModel {
24
+ }
@@ -0,0 +1,2 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export declare const GradientExtension: Extension<any, any>;
@@ -0,0 +1,10 @@
1
+ import { Extension } from '@tiptap/core';
2
+ declare module '@tiptap/core' {
3
+ interface Commands<ReturnType> {
4
+ fontSize: {
5
+ setFontSize: (fontSize: string) => ReturnType;
6
+ unsetFontSize: () => ReturnType;
7
+ };
8
+ }
9
+ }
10
+ export declare const FontSize: Extension<any, any>;
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.859",
3
+ "version": "3.6.862",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
7
7
  "@angular/material": "^17.2.1"
8
8
  },
9
+ "dependencies": {
10
+ "@tiptap/core": "^3.23.1",
11
+ "@tiptap/starter-kit": "^3.23.1",
12
+ "@tiptap/extension-text-style": "^3.23.1",
13
+ "@tiptap/extension-color": "^3.23.1",
14
+ "@tiptap/extension-underline": "^3.23.1",
15
+ "@tiptap/extension-text-align": "^3.23.1",
16
+ "tslib": "^2.3.0"
17
+ },
9
18
  "sideEffects": false,
10
19
  "module": "fesm2022/simpo-component-library.mjs",
11
20
  "typings": "index.d.ts",
@@ -19,8 +28,5 @@
19
28
  "esm": "./esm2022/simpo-component-library.mjs",
20
29
  "default": "./fesm2022/simpo-component-library.mjs"
21
30
  }
22
- },
23
- "dependencies": {
24
- "tslib": "^2.3.0"
25
31
  }
26
32
  }
package/public-api.d.ts CHANGED
@@ -49,6 +49,8 @@ export * from './lib/sections/scheme-detail/scheme-detail.component';
49
49
  export * from './lib/ecommerce/sections/schemes/schemes.component';
50
50
  export * from './lib/sections/image-grid-hotspot/image-grid-hotspot.component';
51
51
  export * from './lib/sections/testimonial-slider/testimonial-slider.component';
52
+ export * from './lib/sections/testimonial-masonry/testimonial-masonry.component';
53
+ export * from './lib/sections/testimonial-masonry/testimonial-masonry.model';
52
54
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
53
55
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
54
56
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
@@ -82,11 +82,6 @@
82
82
  font-size: 18px !important;
83
83
  line-height: 20px !important;
84
84
  }
85
-
86
- p {
87
- font-size: 16px !important;
88
- line-height: 21px !important;
89
- }
90
85
  }
91
86
 
92
87
  }
@@ -117,11 +112,6 @@
117
112
  font-size: 16px;
118
113
  line-height: 24px;
119
114
  }
120
-
121
- p {
122
- font-size: 14px;
123
- line-height: 21px;
124
- }
125
115
  }
126
116
 
127
117
  }
@@ -151,11 +141,6 @@
151
141
  font-size: 16px;
152
142
  line-height: 24px;
153
143
  }
154
-
155
- p {
156
- font-size: 14px;
157
- line-height: 21px;
158
- }
159
144
  }
160
145
 
161
146
  .link-editor {
Binary file