croco-html 4.2.1 → 4.2.3
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.
- package/fesm2022/croco-html.mjs +148 -133
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/components/editor/visual-editor/visual-editor.component.d.ts +1 -2
- package/lib/extensions/AngularMaterialTableMethods.d.ts +3 -3
- package/lib/extensions/BootstrapTableMethods.d.ts +2 -2
- package/lib/extensions/HtmlExtractionMethods.d.ts +0 -22
- package/lib/extensions/InterfaceBlock.d.ts +0 -1
- package/lib/extensions/TableMethods.d.ts +4 -20
- package/lib/tag-services/HtmlRawTagService.d.ts +10 -0
- package/lib/tag-services/TableTagService.d.ts +12 -0
- package/package.json +1 -1
- package/lib/extensions/HtmlRawTagDataConsts.d.ts +0 -10
|
@@ -4,9 +4,8 @@ import { ExternalVideoSupportedTypes } from '../../../extensions';
|
|
|
4
4
|
import { ExternalVideoTagDataConsts } from '../../../extensions';
|
|
5
5
|
import { TagItem, HtmlBodyTag } from '../../../models/models';
|
|
6
6
|
import { CrocoHtmlOptions } from '../../../options';
|
|
7
|
-
import { HtmlRawTagDataConsts } from "../../../extensions/HtmlRawTagDataConsts";
|
|
8
7
|
import { SpriteIdsType } from "../../../../sprites-ids.type";
|
|
9
|
-
import { TextAlignment } from '../../../tag-services';
|
|
8
|
+
import { HtmlRawTagDataConsts, TextAlignment } from '../../../tag-services';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
export declare class VisualEditorComponent implements OnInit, AfterViewInit {
|
|
12
11
|
private readonly _cdref;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseApiResponse } from '../models';
|
|
2
|
-
import { AngularMaterialTableData,
|
|
2
|
+
import { AngularMaterialTableData, TableHeaderData, TableRowData } from './TableMethods';
|
|
3
3
|
export declare class AngularMaterialTableMethods {
|
|
4
4
|
static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
|
|
5
|
-
static checkHeaders(
|
|
6
|
-
static checkAngularMaterialTableData(
|
|
5
|
+
static checkHeaders(header: TableHeaderData): BaseApiResponse;
|
|
6
|
+
static checkAngularMaterialTableData(header: TableHeaderData, rows: TableRowData[], checkHeaders?: boolean): BaseApiResponse;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InterfaceBlock } from "./InterfaceBlock";
|
|
2
|
-
import {
|
|
2
|
+
import { TableHeaderData, TableRowData } from './TableMethods';
|
|
3
3
|
export declare class BootstrapTableMethods {
|
|
4
|
-
static BuildTable(
|
|
4
|
+
static BuildTable(header: TableHeaderData, rows: TableRowData[]): string;
|
|
5
5
|
static BuildHeader(data: TableHeaderData): string;
|
|
6
6
|
static BuildBody(rows: TableRowData[]): string;
|
|
7
7
|
static BuildInnerTags(tags: InterfaceBlock[]): string;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import { InterfaceBlock } from "./InterfaceBlock";
|
|
2
2
|
import { CrocoHtmlOptions } from "../options";
|
|
3
3
|
export declare class HtmlExtractionMethods {
|
|
4
|
-
static Extractors: {
|
|
5
|
-
table: (elem: HTMLElement, options: CrocoHtmlOptions) => {
|
|
6
|
-
type: string;
|
|
7
|
-
data: import("./TableMethods").TableData;
|
|
8
|
-
validationResult: import("croco-html").BaseApiResponse;
|
|
9
|
-
bootstrapHtml: string;
|
|
10
|
-
} | {
|
|
11
|
-
angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
|
|
12
|
-
type: string;
|
|
13
|
-
data: import("./TableMethods").TableData;
|
|
14
|
-
validationResult: import("croco-html").BaseApiResponse;
|
|
15
|
-
bootstrapHtml: string;
|
|
16
|
-
} | {
|
|
17
|
-
angularMaterialTableDataCheck: import("croco-html").BaseApiResponse;
|
|
18
|
-
html: string;
|
|
19
|
-
angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
|
|
20
|
-
type: string;
|
|
21
|
-
data: import("./TableMethods").TableData;
|
|
22
|
-
validationResult: import("croco-html").BaseApiResponse;
|
|
23
|
-
bootstrapHtml: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
4
|
static transformHtmlElementToBlocks(element: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock[];
|
|
27
5
|
static transformHtmlStringToBlocks(value: string, options: CrocoHtmlOptions): InterfaceBlock[];
|
|
28
6
|
}
|
|
@@ -19,6 +19,9 @@ export interface TableRowData {
|
|
|
19
19
|
export interface TableData {
|
|
20
20
|
header: TableHeaderData;
|
|
21
21
|
rows: TableRowData[];
|
|
22
|
+
bootstrapHtml: string;
|
|
23
|
+
html: string;
|
|
24
|
+
angularMaterialTableDataCheck?: BaseApiResponse;
|
|
22
25
|
}
|
|
23
26
|
export interface TableTagData {
|
|
24
27
|
type: "table";
|
|
@@ -34,26 +37,7 @@ export interface AngularMaterialTableData {
|
|
|
34
37
|
data: object[];
|
|
35
38
|
}
|
|
36
39
|
export declare class TableMethods {
|
|
37
|
-
static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions):
|
|
38
|
-
type: string;
|
|
39
|
-
data: TableData;
|
|
40
|
-
validationResult: BaseApiResponse;
|
|
41
|
-
bootstrapHtml: string;
|
|
42
|
-
} | {
|
|
43
|
-
angularMaterialTableDataCheck: BaseApiResponse;
|
|
44
|
-
type: string;
|
|
45
|
-
data: TableData;
|
|
46
|
-
validationResult: BaseApiResponse;
|
|
47
|
-
bootstrapHtml: string;
|
|
48
|
-
} | {
|
|
49
|
-
angularMaterialTableDataCheck: BaseApiResponse;
|
|
50
|
-
html: string;
|
|
51
|
-
angularMaterialTableData: AngularMaterialTableData;
|
|
52
|
-
type: string;
|
|
53
|
-
data: TableData;
|
|
54
|
-
validationResult: BaseApiResponse;
|
|
55
|
-
bootstrapHtml: string;
|
|
56
|
-
};
|
|
40
|
+
static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
57
41
|
static checkTable(tableData: TableData): BaseApiResponse;
|
|
58
42
|
static getHeader(tableTag: HTMLTableElement): TableHeaderData;
|
|
59
43
|
static getTableRows(tableTag: HTMLTableElement, options: CrocoHtmlOptions): Array<TableRowData>;
|
|
@@ -2,6 +2,16 @@ import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
|
2
2
|
import { HtmlBodyTag } from "../models";
|
|
3
3
|
import { CrocoHtmlOptions } from "../options";
|
|
4
4
|
import { IMarkUpTagService, IVisualEditorProps } from "./IMarkUpTagService";
|
|
5
|
+
export declare class HtmlRawTagDataConsts {
|
|
6
|
+
static readonly TagName = "html-raw";
|
|
7
|
+
}
|
|
8
|
+
export interface ExtractHtmlRawTag {
|
|
9
|
+
type: string;
|
|
10
|
+
data: ExtractHtmlRawTagData;
|
|
11
|
+
}
|
|
12
|
+
export interface ExtractHtmlRawTagData {
|
|
13
|
+
innerHTML: string;
|
|
14
|
+
}
|
|
5
15
|
export declare class HtmlRawTagService implements IMarkUpTagService {
|
|
6
16
|
tagName: string;
|
|
7
17
|
shortDescription: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InterfaceBlock } from "../extensions/InterfaceBlock";
|
|
2
|
+
import { HtmlBodyTag } from "../models";
|
|
3
|
+
import { CrocoHtmlOptions } from "../options";
|
|
4
|
+
import { IMarkUpTagService, IVisualEditorProps } from "./IMarkUpTagService";
|
|
5
|
+
export declare class TableTagService implements IMarkUpTagService {
|
|
6
|
+
tagName: string;
|
|
7
|
+
shortDescription: string;
|
|
8
|
+
bodyTagToHtmlStringConverter(bodyTag: HtmlBodyTag): string;
|
|
9
|
+
extractBlockFromHtmlElement(elem: HTMLElement, options: CrocoHtmlOptions): InterfaceBlock;
|
|
10
|
+
toBodyTag(data: InterfaceBlock): HtmlBodyTag;
|
|
11
|
+
getDefaultValue(props: IVisualEditorProps): HtmlBodyTag;
|
|
12
|
+
}
|
package/package.json
CHANGED