@harbour-enterprises/superdoc 0.24.0-next.3 → 0.24.0-next.5
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/dist/chunks/{PdfViewer-skWUtg2N.cjs → PdfViewer-D6AmuQ3v.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DEWI6Uts.es.js → PdfViewer-XhwjWR8o.es.js} +1 -1
- package/dist/chunks/blank-docx-ABm6XYAA.es.js +4 -0
- package/dist/chunks/blank-docx-DfW3Eeh2.cjs +3 -0
- package/dist/chunks/{index-2QL0aZ2S.cjs → index-DAdhqIN8.cjs} +76 -12
- package/dist/chunks/{index-C_AMhrHP.es.js → index-OjiyjDUm.es.js} +76 -12
- package/dist/chunks/{super-editor.es-CfK_qBM9.cjs → super-editor.es-BPK2gF1W.cjs} +1489 -986
- package/dist/chunks/{super-editor.es-iMAoOYOw.es.js → super-editor.es-bHlpz8m_.es.js} +1489 -986
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/core/helpers/export.d.ts +1 -1
- package/dist/core/helpers/export.d.ts.map +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/style.css +37 -27
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BueCftlx.js → converter-D-9mYZ83.js} +1247 -967
- package/dist/super-editor/chunks/{docx-zipper-C9jmfWYZ.js → docx-zipper-C1p3F7Ok.js} +1 -1
- package/dist/super-editor/chunks/{editor-BsuNqVvp.js → editor-lJoa5ADp.js} +292 -47
- package/dist/super-editor/chunks/{toolbar-DxhfgAoa.js → toolbar-B5-QnQ4l.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/style.css +10 -0
- package/dist/super-editor/super-editor/src/core/Editor.d.ts +11 -0
- package/dist/super-editor/super-editor/src/core/helpers/canRenderFont.d.ts +12 -0
- package/dist/super-editor/super-editor/src/core/super-converter/SuperConverter.d.ts +6 -1
- package/dist/super-editor/super-editor/src/core/super-converter/helpers.d.ts +2 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/docxImporter.d.ts +2 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/tableImporter.d.ts +5 -3
- package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/types/index.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/utils.d.ts +9 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/gridSpan/gridSpan-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/gridSpan/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/header/header-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/header/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/headers-translator.d.ts +7 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/hideMark/hideMark-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/hideMark/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/noWrap/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/noWrap/noWrap-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/shd/shd-translator.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tc/helpers/translate-table-cell.d.ts +0 -5
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcBorders/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcBorders/tcBorders-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcFitText/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcFitText/tcFitText-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcMar/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcMar/tcMar-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcPr/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcPr/tcPr-translator.d.ts +5 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcW/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcW/tcW-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textDirection/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/textDirection/textDirection-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tl2br/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tl2br/tl2br-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-helpers.d.ts +16 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr2bl/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr2bl/tr2bl-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vAlign/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vAlign/vAlign-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vMerge/index.d.ts +1 -0
- package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vMerge/vMerge-translator.d.ts +6 -0
- package/dist/super-editor/super-editor/src/extensions/table/TableView.d.ts +1 -1
- package/dist/super-editor/super-editor/src/extensions/table-cell/table-cell.d.ts +112 -0
- package/dist/super-editor/super-editor.es.js +91 -76
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +3 -3
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +1563 -996
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/blank-docx-CPqX9RF5.cjs +0 -3
- package/dist/chunks/blank-docx-iwdyG9RH.es.js +0 -4
|
@@ -37,6 +37,15 @@ export function encodeProperties(node?: object, translatorsByXmlName?: object, a
|
|
|
37
37
|
* @returns {Array} An array of decoded elements.
|
|
38
38
|
*/
|
|
39
39
|
export function decodeProperties(translatorsBySdName?: object, properties?: object): any[];
|
|
40
|
+
/**
|
|
41
|
+
* Helper to create property handlers for nested properties (eg: w:tcBorders => borders)
|
|
42
|
+
* @param {string} xmlName The XML element name (with namespace).
|
|
43
|
+
* @param {string} sdName The SuperDoc attribute name (without namespace).
|
|
44
|
+
* @param {import('@translator').NodeTranslatorConfig[]} propertyTranslators An array of property translators to handle nested properties.
|
|
45
|
+
* @param {object} [defaultEncodedAttrs={}] Optional default attributes to include during encoding.
|
|
46
|
+
* @returns {import('@translator').NodeTranslatorConfig} The nested property handler config with xmlName, sdName, encode, and decode functions.
|
|
47
|
+
*/
|
|
48
|
+
export function createNestedPropertiesTranslator(xmlName: string, sdName: string, propertyTranslators: import("@translator").NodeTranslatorConfig[], defaultEncodedAttrs?: object): import("@translator").NodeTranslatorConfig;
|
|
40
49
|
export function generateV2HandlerEntity(handlerName: string, translator: import("../node-translator/").NodeTranslator): import("../../v2/importer/docxImporter").NodeHandlerEntry;
|
|
41
50
|
export function createAttributeHandler(xmlName?: string, sdName?: string | null, transformEncode?: any, transformDecode?: any): import("@translator").AttrConfig;
|
|
42
51
|
export function parseBoolean(value: string): boolean | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:gridSpan element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 399
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/gridSpan/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gridSpan-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:header element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 401
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/header/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./header-translator.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @type {import('@translator').NodeTranslatorConfig} */
|
|
2
|
+
export const config: import("@translator").NodeTranslatorConfig;
|
|
3
|
+
/**
|
|
4
|
+
* The NodeTranslator instance for the w:headers element.
|
|
5
|
+
* @type {import('@translator').NodeTranslator}
|
|
6
|
+
*/
|
|
7
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/headers/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./headers-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:hideMark element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 413
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/hideMark/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./hideMark-translator.js";
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/noWrap/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./noWrap-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the noWrap element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 413
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The NodeTranslator instance for the
|
|
2
|
+
* The NodeTranslator instance for the w:shd element.
|
|
3
3
|
* @type {import('@translator').NodeTranslator}
|
|
4
4
|
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 416
|
|
5
5
|
*/
|
|
@@ -10,8 +10,3 @@ export function translateTableCell(params: import("@converter/exporter").ExportP
|
|
|
10
10
|
* @returns {import('@converter/exporter').XmlReadyNode}
|
|
11
11
|
*/
|
|
12
12
|
export function generateTableCellProperties(node: import("@converter/exporter").SchemaNode): import("@converter/exporter").XmlReadyNode;
|
|
13
|
-
/**
|
|
14
|
-
* @param {Object} cellMargins
|
|
15
|
-
* @returns {Array}
|
|
16
|
-
*/
|
|
17
|
-
export function generateCellMargins(cellMargins: any): any[];
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcBorders/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tcBorders-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the tcBorders element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 459
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcFitText/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tcFitText-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:tcFitText element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 460
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tcMar/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tcMar-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:tcMar element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 462
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tcPr-translator.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tcW-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:tcW element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 465
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./textDirection-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:textDirection element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 258
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tl2br/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tl2br-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:tl2br element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 468
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr/tr-helpers.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function createPlaceholderCell(gridWidth: number, reason: string): {
|
|
2
|
+
type: "tableCell";
|
|
3
|
+
attrs: any;
|
|
4
|
+
content: any[];
|
|
5
|
+
};
|
|
6
|
+
export function advancePastRowSpans(pendingRowSpans: number[], startIndex: number, totalColumns: number): number;
|
|
7
|
+
export function fillPlaceholderColumns({ content, pendingRowSpans, currentIndex, targetIndex, totalColumns, gridColumnWidths, reason, }: {
|
|
8
|
+
content: any[];
|
|
9
|
+
pendingRowSpans: number[];
|
|
10
|
+
currentIndex: number;
|
|
11
|
+
targetIndex: number;
|
|
12
|
+
totalColumns: number;
|
|
13
|
+
gridColumnWidths?: number[];
|
|
14
|
+
reason: string;
|
|
15
|
+
}): number;
|
|
16
|
+
export function isPlaceholderCell(cell: import("@translator").SCEncoderResult | undefined): boolean;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/tr2bl/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tr2bl-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:tr2bl element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 473
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vAlign/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vAlign-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:vAlign element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 478
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
package/dist/super-editor/super-editor/src/core/super-converter/v3/handlers/w/vMerge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vMerge-translator.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NodeTranslator instance for the w:vMerge element.
|
|
3
|
+
* @type {import('@translator').NodeTranslator}
|
|
4
|
+
* @see {@link https://ecma-international.org/publications-and-standards/standards/ecma-376/} "Fundamentals And Markup Language Reference", page 479
|
|
5
|
+
*/
|
|
6
|
+
export const translator: import("@translator").NodeTranslator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function updateColumns(node: any, colgroup: any, table: any, cellMinWidth: any, overrideCol: any, overrideValue: any): void;
|
|
1
|
+
export function updateColumns(node: any, colgroup: any, table: any, cellMinWidth: any, overrideCol: any, overrideValue: any, editor: any): void;
|
|
2
2
|
export function createTableView({ editor }: {
|
|
3
3
|
editor: any;
|
|
4
4
|
}): {
|
|
@@ -37,6 +37,118 @@
|
|
|
37
37
|
* @snippetPath /snippets/extensions/table-cell.mdx
|
|
38
38
|
*/
|
|
39
39
|
export const TableCell: Node;
|
|
40
|
+
/**
|
|
41
|
+
* Conditional formatting properties
|
|
42
|
+
*/
|
|
43
|
+
export type CnfStyle = {
|
|
44
|
+
/**
|
|
45
|
+
* - Specifies that the first row conditional formatting should be applied
|
|
46
|
+
*/
|
|
47
|
+
firstRow?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* - Specifies that the last row conditional formatting should be applied
|
|
50
|
+
*/
|
|
51
|
+
lastRow?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* - Specifies that the first column conditional formatting should be applied
|
|
54
|
+
*/
|
|
55
|
+
firstColumn?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* - Specifies that the last column conditional formatting should be applied
|
|
58
|
+
*/
|
|
59
|
+
lastColumn?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* - Specifies that odd vertical banding conditional formatting should be applied
|
|
62
|
+
*/
|
|
63
|
+
oddVBand?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* - Specifies that even vertical banding conditional formatting should be applied
|
|
66
|
+
*/
|
|
67
|
+
evenVBand?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* - Specifies that odd horizontal banding conditional formatting should be applied
|
|
70
|
+
*/
|
|
71
|
+
oddHBand?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* - Specifies that even horizontal banding conditional formatting should be applied
|
|
74
|
+
*/
|
|
75
|
+
evenHBand?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* - Specifies that the top-left corner cell conditional formatting should be applied
|
|
78
|
+
*/
|
|
79
|
+
firstRowFirstColumn?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* - Specifies that the top-right corner cell conditional formatting should be applied
|
|
82
|
+
*/
|
|
83
|
+
firstRowLastColumn?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* - Specifies that the bottom-left corner cell conditional formatting should be applied
|
|
86
|
+
*/
|
|
87
|
+
lastRowFirstColumn?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* - Specifies that the bottom-right corner cell conditional formatting should be applied
|
|
90
|
+
*/
|
|
91
|
+
lastRowLastColumn?: boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Table Cell Properties
|
|
95
|
+
*/
|
|
96
|
+
export type TableCellProperties = {
|
|
97
|
+
/**
|
|
98
|
+
* - Conditional formatting properties
|
|
99
|
+
*/
|
|
100
|
+
cnfStyle?: CnfStyle;
|
|
101
|
+
/**
|
|
102
|
+
* - Cell width
|
|
103
|
+
*/
|
|
104
|
+
cellWidth?: import("../table/table.js").TableMeasurement;
|
|
105
|
+
/**
|
|
106
|
+
* - Number of grid columns spanned by the cell
|
|
107
|
+
*/
|
|
108
|
+
gridSpan?: number;
|
|
109
|
+
/**
|
|
110
|
+
* - Vertical merge setting
|
|
111
|
+
*/
|
|
112
|
+
vMerge?: "restart" | "continue";
|
|
113
|
+
/**
|
|
114
|
+
* - Cell border properties
|
|
115
|
+
*/
|
|
116
|
+
borders?: import("../table/table.js").TableBorders;
|
|
117
|
+
/**
|
|
118
|
+
* - Cell shading properties
|
|
119
|
+
*/
|
|
120
|
+
shading?: import("../table/table.js").ShadingProperties;
|
|
121
|
+
/**
|
|
122
|
+
* - Specifies that the cell content should not wrap
|
|
123
|
+
*/
|
|
124
|
+
noWrap?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* - Cell margin properties
|
|
127
|
+
*/
|
|
128
|
+
cellMargins?: import("../table/table.js").TableCellMargins;
|
|
129
|
+
/**
|
|
130
|
+
* - Text direction
|
|
131
|
+
*/
|
|
132
|
+
textDirection?: "btLr" | "tbRl";
|
|
133
|
+
/**
|
|
134
|
+
* - Specifies that the cell content should be fit to the cell
|
|
135
|
+
*/
|
|
136
|
+
tcFitText?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* - Vertical alignment
|
|
139
|
+
*/
|
|
140
|
+
vAlign?: "top" | "center" | "bottom";
|
|
141
|
+
/**
|
|
142
|
+
* - Specifies that the cell mark should be hidden
|
|
143
|
+
*/
|
|
144
|
+
hideMark?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* - This element specifies a list of references, using a unique identifier, to a table header cell that is associated with the current table cell
|
|
147
|
+
*/
|
|
148
|
+
headers?: {
|
|
149
|
+
header: string;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
40
152
|
/**
|
|
41
153
|
* Cell margins configuration
|
|
42
154
|
*/
|