croco-html 2.41.0 → 2.43.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.
- package/README.md +59 -0
- package/esm2022/lib/components/editor/main-editor-block/main-editor-block.component.mjs +3 -3
- package/esm2022/lib/components/editor/visual-editor/visual-editor.component.mjs +3 -3
- package/esm2022/lib/extensions/AngularMaterialTableMethods.mjs +1 -1
- package/esm2022/lib/extensions/TableMethods.mjs +1 -1
- package/esm2022/lib/models/models.mjs +1 -1
- package/esm2022/lib/pipes/sprite-icon-path.pipe.mjs +2 -2
- package/fesm2022/croco-html.mjs +5 -5
- package/fesm2022/croco-html.mjs.map +1 -1
- package/lib/extensions/AngularMaterialTableMethods.d.ts +1 -2
- package/lib/extensions/HtmlExtractionMethods.d.ts +2 -2
- package/lib/extensions/TableMethods.d.ts +5 -1
- package/lib/index.d.ts +7 -7
- package/lib/models/models.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BaseApiResponse, TableData, TableRowData } from './TableMethods';
|
|
2
|
-
import { AngularMaterialTableData } from "../models/models";
|
|
1
|
+
import { AngularMaterialTableData, BaseApiResponse, TableData, TableRowData } from './TableMethods';
|
|
3
2
|
export declare class AngularMaterialTableMethods {
|
|
4
3
|
static getAngularMaterialTableData(columns: string[], rows: TableRowData[]): AngularMaterialTableData;
|
|
5
4
|
static checkHeaders(tableData: TableData): BaseApiResponse;
|
|
@@ -18,7 +18,7 @@ export declare class HtmlExtractionMethods {
|
|
|
18
18
|
} | {
|
|
19
19
|
angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
|
|
20
20
|
html: string;
|
|
21
|
-
angularMaterialTableData: import("
|
|
21
|
+
angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
|
|
22
22
|
type: string;
|
|
23
23
|
data: import("./TableMethods").TableData;
|
|
24
24
|
validationResult: import("./TableMethods").BaseApiResponse;
|
|
@@ -45,7 +45,7 @@ export declare class HtmlExtractionMethods {
|
|
|
45
45
|
} | {
|
|
46
46
|
angularMaterialTableDataCheck: import("./TableMethods").BaseApiResponse;
|
|
47
47
|
html: string;
|
|
48
|
-
angularMaterialTableData: import("
|
|
48
|
+
angularMaterialTableData: import("./TableMethods").AngularMaterialTableData;
|
|
49
49
|
type: string;
|
|
50
50
|
data: import("./TableMethods").TableData;
|
|
51
51
|
validationResult: import("./TableMethods").BaseApiResponse;
|
|
@@ -32,6 +32,10 @@ export declare class TableTypes {
|
|
|
32
32
|
static readonly Table = "table";
|
|
33
33
|
static readonly TableRowColumn = "table-row-column";
|
|
34
34
|
}
|
|
35
|
+
export interface AngularMaterialTableData {
|
|
36
|
+
displayedColumns: string[];
|
|
37
|
+
data: object[];
|
|
38
|
+
}
|
|
35
39
|
export declare class TableMethods {
|
|
36
40
|
static getTableFromHtmlTag(tableTag: HTMLTableElement, options: CrocoHtmlOptions): {
|
|
37
41
|
type: string;
|
|
@@ -47,7 +51,7 @@ export declare class TableMethods {
|
|
|
47
51
|
} | {
|
|
48
52
|
angularMaterialTableDataCheck: BaseApiResponse;
|
|
49
53
|
html: string;
|
|
50
|
-
angularMaterialTableData:
|
|
54
|
+
angularMaterialTableData: AngularMaterialTableData;
|
|
51
55
|
type: string;
|
|
52
56
|
data: TableData;
|
|
53
57
|
validationResult: BaseApiResponse;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { MainEditorBlockComponent } from "./components";
|
|
|
3
3
|
import { MainEditorComponent } from "./components";
|
|
4
4
|
import { FileIdSelectComponent } from "./components";
|
|
5
5
|
import { XmlTagHeaderInnerTextViewComponent } from "./components";
|
|
6
|
+
import { XmlTagHtmlViewComponent } from "./components";
|
|
6
7
|
import { XmlTagRichTextViewComponent } from "./components";
|
|
7
8
|
import { XmlTagTableViewComponent } from "./components";
|
|
8
9
|
import { XmlTagViewComponent } from "./components";
|
|
@@ -10,14 +11,13 @@ import { VisualEditorComponent } from './components';
|
|
|
10
11
|
import { AddFilesBtnComponent } from './components';
|
|
11
12
|
import { XmlTagExternalVideoComponent } from "./components";
|
|
12
13
|
import { HtmlRawEditorComponent } from "./components";
|
|
13
|
-
import {
|
|
14
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
15
|
import { RichTextToHtmlPipe, TagToSpanPipe, ToHtmlBodyTagsPipe, ToPreviewHtmlPipe, ToPreviewPipe } from "./pipes";
|
|
15
16
|
import { FileImageTagViewComponent, UploadFilesBtnComponent } from "./components";
|
|
16
17
|
import { HtmlRawViewComponent } from "./components";
|
|
17
|
-
import { HtmlViewComponent } from "./components";
|
|
18
18
|
import { XmlTagCustomWidgetComponent } from "./components";
|
|
19
|
-
export declare const EditorComponents: (typeof
|
|
20
|
-
export declare const XmlComponents: (typeof
|
|
21
|
-
export declare const CrocoPipes: (typeof
|
|
22
|
-
export declare const CrocoHtmlDeclarations: (typeof
|
|
23
|
-
export declare const MaterialModules: (typeof
|
|
19
|
+
export declare const EditorComponents: (typeof HtmlRawEditorComponent | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof FileIdSelectComponent | typeof MainEditorComponent)[];
|
|
20
|
+
export declare const XmlComponents: (typeof XmlTagCustomWidgetComponent | typeof XmlTagExternalVideoComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent)[];
|
|
21
|
+
export declare const CrocoPipes: (typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof ToHtmlBodyTagsPipe | typeof RichTextToHtmlPipe | typeof TagToSpanPipe)[];
|
|
22
|
+
export declare const CrocoHtmlDeclarations: (typeof ToPreviewHtmlPipe | typeof ToPreviewPipe | typeof HtmlRawEditorComponent | typeof ToHtmlBodyTagsPipe | typeof AddFilesBtnComponent | typeof MainEditorBlockComponent | typeof VisualEditorComponent | typeof ImageEditorComponent | typeof XmlTagCustomWidgetComponent | typeof FileIdSelectComponent | typeof XmlTagExternalVideoComponent | typeof UploadFilesBtnComponent | typeof XmlTagHeaderInnerTextViewComponent | typeof XmlTagHtmlViewComponent | typeof RichTextToHtmlPipe | typeof XmlTagRichTextViewComponent | typeof XmlTagTableViewComponent | typeof FileImageTagViewComponent | typeof HtmlRawViewComponent | typeof XmlTagViewComponent | typeof MainEditorComponent | typeof TagToSpanPipe)[];
|
|
23
|
+
export declare const MaterialModules: (typeof MatFormFieldModule)[];
|
package/lib/models/models.d.ts
CHANGED