croco-html 2.0.9 → 2.1.0

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.
@@ -0,0 +1,9 @@
1
+ export declare enum EAlignments {
2
+ Left = "left",
3
+ Center = "center",
4
+ Right = "right"
5
+ }
6
+ export declare const AlignmentsData: {
7
+ value: EAlignments;
8
+ text: string;
9
+ }[];
@@ -1,12 +1,23 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
3
3
  import { TagItem, HtmlBodyTag } from '../../../models/models';
4
4
  import { FilePostingStarted } from '../../upload-files-btn/upload-files-btn.component';
5
+ import { EAlignments } from "./DefaultAligments";
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class VisualEditorComponent implements OnInit, AfterViewInit {
7
8
  private _cdref;
9
+ textArea: ElementRef;
8
10
  isLoading: boolean;
9
11
  loadingText: string;
12
+ isActiveAddText: boolean;
13
+ text: string;
14
+ alignment: EAlignments;
15
+ textTag: string;
16
+ textTagOptions: TagItem[];
17
+ alignmentOptions: {
18
+ value: EAlignments;
19
+ text: string;
20
+ }[];
10
21
  showMarkUp: boolean;
11
22
  tags: TagItem[];
12
23
  selectedValue: string;
@@ -18,10 +29,15 @@ export declare class VisualEditorComponent implements OnInit, AfterViewInit {
18
29
  onHtmlChanged: EventEmitter<string>;
19
30
  rendered: EventEmitter<boolean>;
20
31
  bodyTags: HtmlBodyTag[];
32
+ saveBodyTags: HtmlBodyTag[];
21
33
  constructor(_cdref: ChangeDetectorRef);
22
34
  ngAfterViewInit(): void;
23
35
  ngAfterContentChecked(): void;
24
36
  addTag(): void;
37
+ addText(): void;
38
+ closeText(): void;
39
+ resetTextStyle(): void;
40
+ modelChanged(): void;
25
41
  postFilesStartedEventHandler(model: FilePostingStarted): void;
26
42
  addTagCustom(tag: HtmlBodyTag): void;
27
43
  filesTagsReadyHandler(tags: HtmlBodyTag[]): void;
package/lib/index.d.ts CHANGED
@@ -14,8 +14,8 @@ import { MatBadgeModule } from '@angular/material/badge';
14
14
  import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe } from "./pipes";
15
15
  import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
16
16
  import { HtmlRawViewComponent } from "./components/xml-tags/html-raw-view/html-raw-view.component";
17
- export declare const EditorComponents: (typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
18
- export declare const XmlComponents: (typeof XmlTagExternalVideoComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
17
+ export declare const EditorComponents: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent)[];
18
+ export declare const XmlComponents: (typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent)[];
19
19
  export declare const CrocoPipes: (typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe)[];
20
- export declare const CrocoHtmlDeclarations: (typeof XmlTagExternalVideoComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
20
+ export declare const CrocoHtmlDeclarations: (typeof VisualEditorComponent | typeof MainEditorComponent | typeof FileIdSelectComponent | typeof MainEditorBlockComponent | typeof AddFilesBtnComponent | typeof HtmlRawEditorComponent | typeof XmlTagTableViewComponent | typeof XmlTagViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagHeaderTextViewComponent | typeof XmlTagExternalVideoComponent | typeof HtmlRawViewComponent | typeof FileImageTagViewComponent | typeof RichTextToHtmlPipe | typeof TagToSpanPipe | typeof ToHtmlBodyTagsPipe | typeof ToPreviewHtmlPipe | typeof UploadFilesBtnComponent)[];
21
21
  export declare const MaterialModules: (typeof MatBadgeModule)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croco-html",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.4",
6
6
  "@angular/core": "^17.3.4",