@a3s-lab/office 0.25.0 → 0.27.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 +76 -2
- package/dist/0~4595.js +16 -2
- package/dist/0~5093.js +463 -201
- package/dist/0~6090.js +77 -77
- package/dist/{0~2805.js → 0~7043.js} +305 -2
- package/dist/0~document-editor.js +2451 -985
- package/dist/0~spreadsheet-editor.js +22113 -20117
- package/dist/0~work-docx-export.js +492 -10
- package/dist/0~work-docx-import.js +171 -98
- package/dist/0~work-office-diagnostics.js +198 -4
- package/dist/{164.js → 1544.js} +1412 -1055
- package/dist/4104.js +145 -29
- package/dist/6282.js +1920 -544
- package/dist/9424.js +16 -0
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/features/work/editors/document-command-catalog.d.ts +102 -0
- package/dist/internal/features/work/editors/document-font-dialog-model.d.ts +83 -0
- package/dist/internal/features/work/editors/document-font-dialog-script-font-model.d.ts +18 -0
- package/dist/internal/features/work/editors/document-font-dialog.d.ts +9 -0
- package/dist/internal/features/work/editors/document-home-ribbon.d.ts +2 -1
- package/dist/internal/features/work/editors/document-page-chrome-editor.d.ts +6 -0
- package/dist/internal/features/work/editors/document-page-chrome-ribbon.d.ts +2 -1
- package/dist/internal/features/work/editors/document-strike-ribbon.d.ts +7 -0
- package/dist/internal/features/work/editors/document-text-case-ribbon.d.ts +4 -0
- package/dist/internal/features/work/editors/document-toolbar.d.ts +3 -1
- package/dist/internal/features/work/editors/document-underline-ribbon.d.ts +9 -0
- package/dist/internal/features/work/editors/document-wps-shortcuts.d.ts +1 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-fill-format.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-cell-format.d.ts +2 -1
- package/dist/internal/features/work/editors/spreadsheet-command-controller.d.ts +18 -9
- package/dist/internal/features/work/editors/spreadsheet-format-cells-dialog-model.d.ts +13 -2
- package/dist/internal/features/work/editors/spreadsheet-format-cells-fill-panel.d.ts +13 -0
- package/dist/internal/features/work/editors/spreadsheet-format-cells-fill-preview.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-format-painter.d.ts +1 -1
- package/dist/internal/features/work/editors/spreadsheet-operation-projection.d.ts +6 -0
- package/dist/internal/features/work/editors/spreadsheet-rich-text-dom-selection.d.ts +11 -0
- package/dist/internal/features/work/editors/spreadsheet-rich-text-paste.d.ts +22 -0
- package/dist/internal/features/work/editors/spreadsheet-rich-text-selection-controller.d.ts +38 -0
- package/dist/internal/features/work/editors/spreadsheet-rich-text-selection-format.d.ts +26 -0
- package/dist/internal/features/work/editors/work-office-chrome.d.ts +9 -1
- package/dist/internal/features/work/work-css-color.d.ts +1 -0
- package/dist/internal/features/work/work-document-character-formatting.d.ts +16 -1
- package/dist/internal/features/work/work-document-character-position.d.ts +9 -0
- package/dist/internal/features/work/work-document-character-scale.d.ts +8 -0
- package/dist/internal/features/work/work-document-character-spacing.d.ts +8 -0
- package/dist/internal/features/work/work-document-emphasis.d.ts +7 -0
- package/dist/internal/features/work/work-document-equations.d.ts +2 -1
- package/dist/internal/features/work/work-document-format-changes.d.ts +16 -2
- package/dist/internal/features/work/work-document-hidden-text.d.ts +5 -0
- package/dist/internal/features/work/work-document-kerning.d.ts +10 -0
- package/dist/internal/features/work/work-document-paragraph-shading.d.ts +1 -1
- package/dist/internal/features/work/work-document-script-font-extension.d.ts +2 -0
- package/dist/internal/features/work/work-document-script-fonts.d.ts +51 -0
- package/dist/internal/features/work/work-document-strike.d.ts +21 -0
- package/dist/internal/features/work/work-document-text-case.d.ts +10 -0
- package/dist/internal/features/work/work-document-underline.d.ts +37 -0
- package/dist/internal/features/work/work-document-word-line-metrics.d.ts +12 -0
- package/dist/internal/features/work/work-docx-character-position.d.ts +2 -0
- package/dist/internal/features/work/work-docx-character-scale.d.ts +2 -0
- package/dist/internal/features/work/work-docx-character-spacing.d.ts +4 -0
- package/dist/internal/features/work/work-docx-emphasis-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-emphasis.d.ts +14 -0
- package/dist/internal/features/work/work-docx-hidden-text-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-hidden-text-export.d.ts +16 -0
- package/dist/internal/features/work/work-docx-hidden-text.d.ts +11 -0
- package/dist/internal/features/work/work-docx-kerning-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-kerning.d.ts +14 -0
- package/dist/internal/features/work/work-docx-run-fonts-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-run-fonts-export.d.ts +14 -0
- package/dist/internal/features/work/work-docx-run-fonts.d.ts +13 -0
- package/dist/internal/features/work/work-docx-run-formatting-import.d.ts +23 -2
- package/dist/internal/features/work/work-docx-run-script-font-import.d.ts +9 -0
- package/dist/internal/features/work/work-docx-strike.d.ts +8 -0
- package/dist/internal/features/work/work-docx-theme-reference.d.ts +1 -1
- package/dist/internal/features/work/work-docx-twips.d.ts +6 -0
- package/dist/internal/features/work/work-docx-underline.d.ts +3 -0
- package/dist/internal/features/work/work-spreadsheet-gradient-fill-canvas.d.ts +10 -0
- package/dist/internal/features/work/work-spreadsheet-native-fill-canvas.d.ts +8 -0
- package/dist/internal/features/work/work-spreadsheet-pattern-fill-canvas.d.ts +8 -0
- package/dist/internal/features/work/work-xlsx-cell-style-origin.d.ts +2 -1
- package/dist/internal/features/work/work-xlsx-cell-style-writer.d.ts +3 -0
- package/dist/internal/features/work/work-xlsx-cell-styles.d.ts +4 -0
- package/dist/internal/features/work/work-xlsx-gradient-fill.d.ts +31 -0
- package/dist/internal/features/work/work-xlsx-native-fill.d.ts +17 -0
- package/dist/internal/features/work/work-xlsx-pattern-fill.d.ts +21 -0
- package/dist/internal/features/work/work-xlsx-rich-text-edit.d.ts +28 -0
- package/dist/internal/features/work/work-xlsx-rich-text-model.d.ts +40 -0
- package/dist/internal/features/work/work-xlsx-rich-text.d.ts +4 -18
- package/dist/office-kernel.wasm +0 -0
- package/dist/styles.css +770 -80
- package/docs/latest/en/browser-editor-architecture.md +37 -0
- package/package.json +32 -1
|
@@ -5,6 +5,12 @@ export declare function parseDocxTwipsMeasure(source: string, options: {
|
|
|
5
5
|
signed: boolean;
|
|
6
6
|
strict: boolean;
|
|
7
7
|
}): number | null;
|
|
8
|
+
export declare function parseDocxHalfPointsMeasure(source: string, options: {
|
|
9
|
+
minimum: number;
|
|
10
|
+
maximum: number;
|
|
11
|
+
signed: boolean;
|
|
12
|
+
strict: boolean;
|
|
13
|
+
}): number | null;
|
|
8
14
|
export declare function parseBoundedDocxInteger(source: string, options: {
|
|
9
15
|
minimum: number;
|
|
10
16
|
maximum: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { XlsxGradientFill } from './work-xlsx-gradient-fill';
|
|
2
|
+
export interface SpreadsheetGradientFillBounds {
|
|
3
|
+
endX: number;
|
|
4
|
+
endY: number;
|
|
5
|
+
startX: number;
|
|
6
|
+
startY: number;
|
|
7
|
+
}
|
|
8
|
+
type SpreadsheetGradientFillRect = CanvasRenderingContext2D['fillRect'];
|
|
9
|
+
export declare function drawSpreadsheetGradientFill(context: CanvasRenderingContext2D, bounds: SpreadsheetGradientFillBounds, fill: XlsxGradientFill, fillRect?: SpreadsheetGradientFillRect): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { XlsxNativeFill } from './work-xlsx-native-fill';
|
|
2
|
+
/**
|
|
3
|
+
* Fortune Sheet paints a cell background immediately after beforeRenderCell.
|
|
4
|
+
* Intercepting only that first viewport paint keeps native fills behind text
|
|
5
|
+
* and avoids any fill work for cells outside the visible Canvas.
|
|
6
|
+
*/
|
|
7
|
+
export declare function beginSpreadsheetNativeFillRender(fill: XlsxNativeFill | undefined, context: CanvasRenderingContext2D): void;
|
|
8
|
+
export declare function finishSpreadsheetNativeFillRender(context: CanvasRenderingContext2D): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { XlsxPatternFill } from './work-xlsx-pattern-fill';
|
|
2
|
+
export interface SpreadsheetPatternFillBounds {
|
|
3
|
+
endX: number;
|
|
4
|
+
endY: number;
|
|
5
|
+
startX: number;
|
|
6
|
+
startY: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function drawSpreadsheetPatternFillOverlay(context: CanvasRenderingContext2D, bounds: SpreadsheetPatternFillBounds, fill: XlsxPatternFill): void;
|
|
@@ -41,5 +41,6 @@ export declare function xlsxColorElementMatchesOrigin(element: Element | undefin
|
|
|
41
41
|
export declare function applyXlsxSemanticColorOrigin(element: Element, origin: XlsxSemanticColorOrigin): void;
|
|
42
42
|
export declare function xlsxSemanticColorOriginKey(origin: XlsxSemanticColorOrigin | undefined): string;
|
|
43
43
|
export declare function xlsxSemanticColorOriginSupported(origin: XlsxSemanticColorOrigin, palette: XlsxSemanticPalette | undefined): boolean;
|
|
44
|
-
export declare function prepareXlsxSemanticPalette(styles: Document, theme: Document | null,
|
|
44
|
+
export declare function prepareXlsxSemanticPalette(styles: Document, theme: Document | null, colors: Iterable<XlsxSemanticColorOrigin>): PreparedXlsxSemanticPalette;
|
|
45
|
+
export declare function xlsxCellStyleOriginSemanticColors(origin: XlsxCellStyleOrigin): XlsxSemanticColorOrigin[];
|
|
45
46
|
export declare function normalizeXlsxSemanticColorOrigin(value: unknown): XlsxSemanticColorOrigin | undefined;
|
|
@@ -18,6 +18,9 @@ export declare class XlsxDirectCellStyleWriter {
|
|
|
18
18
|
styleId(baseStyleId: number, cell: Cell, border?: XlsxCellBorder): number;
|
|
19
19
|
private fontId;
|
|
20
20
|
private fillId;
|
|
21
|
+
private gradientFillId;
|
|
22
|
+
private exportGradientFill;
|
|
23
|
+
private fillColorElement;
|
|
21
24
|
private borderId;
|
|
22
25
|
private updateCounts;
|
|
23
26
|
}
|
|
@@ -2,11 +2,15 @@ import type { Cell, Sheet } from '@fortune-sheet/core';
|
|
|
2
2
|
import { type XlsxCellBorder } from './work-xlsx-cell-borders';
|
|
3
3
|
import { type XlsxDirectCellStyleWriter } from './work-xlsx-cell-style-writer';
|
|
4
4
|
import { type XlsxCellStyleOrigin } from './work-xlsx-cell-style-origin';
|
|
5
|
+
import { type XlsxGradientFill } from './work-xlsx-gradient-fill';
|
|
6
|
+
import { type XlsxPatternFill } from './work-xlsx-pattern-fill';
|
|
5
7
|
export { XlsxDirectCellStyleWriter } from './work-xlsx-cell-style-writer';
|
|
6
8
|
export interface XlsxDirectCellStyle {
|
|
7
9
|
border?: XlsxCellBorder;
|
|
8
10
|
column: number;
|
|
11
|
+
gradientFill?: XlsxGradientFill;
|
|
9
12
|
origin?: XlsxCellStyleOrigin;
|
|
13
|
+
patternFill?: XlsxPatternFill;
|
|
10
14
|
row: number;
|
|
11
15
|
style: Partial<Cell>;
|
|
12
16
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Cell } from '@fortune-sheet/core';
|
|
2
|
+
import { type XlsxSemanticColorOrigin } from './work-xlsx-cell-style-origin';
|
|
3
|
+
import { type XlsxColorResolver } from './work-xlsx-colors';
|
|
4
|
+
export declare const XLSX_GRADIENT_FILL_CELL_KEY: "a3sXlsxGradientFill";
|
|
5
|
+
export declare const MAX_XLSX_GRADIENT_STOPS = 256;
|
|
6
|
+
export interface XlsxGradientStop {
|
|
7
|
+
color: string;
|
|
8
|
+
colorOrigin?: XlsxSemanticColorOrigin;
|
|
9
|
+
position: number;
|
|
10
|
+
}
|
|
11
|
+
export type XlsxGradientFill = {
|
|
12
|
+
degree: number;
|
|
13
|
+
stops: XlsxGradientStop[];
|
|
14
|
+
type: 'linear';
|
|
15
|
+
} | {
|
|
16
|
+
bottom: number;
|
|
17
|
+
left: number;
|
|
18
|
+
right: number;
|
|
19
|
+
stops: XlsxGradientStop[];
|
|
20
|
+
top: number;
|
|
21
|
+
type: 'path';
|
|
22
|
+
};
|
|
23
|
+
export declare function readXlsxGradientFill(element: Element | undefined, colors: XlsxColorResolver): XlsxGradientFill | undefined;
|
|
24
|
+
export declare function withXlsxGradientFill(cell: Cell, fill: XlsxGradientFill | undefined): Cell;
|
|
25
|
+
export declare function deleteXlsxGradientFill(cell: Cell): void;
|
|
26
|
+
export declare function xlsxGradientFill(cell: Cell | null | undefined): XlsxGradientFill | undefined;
|
|
27
|
+
export declare function activeXlsxGradientFill(cell: Cell | null | undefined): XlsxGradientFill | undefined;
|
|
28
|
+
export declare function normalizeXlsxGradientFill(value: unknown): XlsxGradientFill | undefined;
|
|
29
|
+
export declare function xlsxGradientFillFallbackColor(fill: XlsxGradientFill): string;
|
|
30
|
+
export declare function xlsxGradientFillSemanticColors(fill: XlsxGradientFill | undefined): XlsxSemanticColorOrigin[];
|
|
31
|
+
export declare function xlsxGradientFillKey(fill: XlsxGradientFill | undefined): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Cell } from '@fortune-sheet/core';
|
|
2
|
+
import { type XlsxGradientFill } from './work-xlsx-gradient-fill';
|
|
3
|
+
import { type XlsxPatternFill } from './work-xlsx-pattern-fill';
|
|
4
|
+
import type { XlsxSemanticColorOrigin } from './work-xlsx-cell-style-origin';
|
|
5
|
+
export declare const xlsxNativeFillCellKeys: readonly ["a3sXlsxPatternFill", "a3sXlsxGradientFill"];
|
|
6
|
+
export type XlsxNativeFillCellKey = (typeof xlsxNativeFillCellKeys)[number];
|
|
7
|
+
export type XlsxNativeFill = {
|
|
8
|
+
kind: 'gradient';
|
|
9
|
+
value: XlsxGradientFill;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'pattern';
|
|
12
|
+
value: XlsxPatternFill;
|
|
13
|
+
};
|
|
14
|
+
export declare function activeXlsxNativeFill(cell: Cell | null | undefined): XlsxNativeFill | undefined;
|
|
15
|
+
export declare function deleteXlsxNativeFills(cell: Cell): void;
|
|
16
|
+
export declare function xlsxNativeFillSemanticColors(fill: XlsxNativeFill | undefined): XlsxSemanticColorOrigin[];
|
|
17
|
+
export declare function xlsxNativeFillKey(fill: XlsxNativeFill | undefined): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Cell } from '@fortune-sheet/core';
|
|
2
|
+
import { type XlsxSemanticColorOrigin } from './work-xlsx-cell-style-origin';
|
|
3
|
+
import { type XlsxColorResolver } from './work-xlsx-colors';
|
|
4
|
+
export declare const XLSX_PATTERN_FILL_CELL_KEY: "a3sXlsxPatternFill";
|
|
5
|
+
export declare const xlsxPatternFillTypes: readonly ["darkDown", "darkGray", "darkGrid", "darkHorizontal", "darkTrellis", "darkUp", "darkVertical", "gray0625", "gray125", "lightDown", "lightGray", "lightGrid", "lightHorizontal", "lightTrellis", "lightUp", "lightVertical", "mediumGray"];
|
|
6
|
+
export type XlsxPatternFillType = (typeof xlsxPatternFillTypes)[number];
|
|
7
|
+
export interface XlsxPatternFill {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
backgroundColorOrigin?: XlsxSemanticColorOrigin;
|
|
10
|
+
foregroundColor: string;
|
|
11
|
+
foregroundColorOrigin?: XlsxSemanticColorOrigin;
|
|
12
|
+
patternType: XlsxPatternFillType;
|
|
13
|
+
}
|
|
14
|
+
export declare function readXlsxPatternFill(pattern: Element | undefined, colors: XlsxColorResolver): XlsxPatternFill | undefined;
|
|
15
|
+
export declare function withXlsxPatternFill(cell: Cell, fill: XlsxPatternFill | undefined): Cell;
|
|
16
|
+
export declare function deleteXlsxPatternFill(cell: Cell): void;
|
|
17
|
+
export declare function xlsxPatternFill(cell: Cell | null | undefined): XlsxPatternFill | undefined;
|
|
18
|
+
export declare function activeXlsxPatternFill(cell: Cell | null | undefined): XlsxPatternFill | undefined;
|
|
19
|
+
export declare function normalizeXlsxPatternFill(value: unknown): XlsxPatternFill | undefined;
|
|
20
|
+
export declare function xlsxPatternFillSemanticColors(fill: XlsxPatternFill | undefined): XlsxSemanticColorOrigin[];
|
|
21
|
+
export declare function xlsxPatternFillKey(fill: XlsxPatternFill | undefined): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Cell } from '@fortune-sheet/core';
|
|
2
|
+
import { type XlsxRichTextRun } from './work-xlsx-rich-text-model';
|
|
3
|
+
export interface SpreadsheetRichTextPasteIntent {
|
|
4
|
+
end: number;
|
|
5
|
+
runs: readonly XlsxRichTextRun[];
|
|
6
|
+
start: number;
|
|
7
|
+
text: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Reconciles a text edit emitted by Fortune with the previous native XLSX
|
|
11
|
+
* rich-text cell. Formula-bar edits may arrive as a plain string, while the
|
|
12
|
+
* in-cell editor emits visible runs without A3S-only semantic color metadata.
|
|
13
|
+
* This bounded model restores only style and metadata justified by the prior
|
|
14
|
+
* controlled value and the exact text replacement.
|
|
15
|
+
*/
|
|
16
|
+
export declare function reconcileSpreadsheetRichTextCellEdit(previous: Cell | null | undefined, current: Cell, formattedPaste?: SpreadsheetRichTextPasteIntent): Cell;
|
|
17
|
+
/**
|
|
18
|
+
* Restores the controlled runs when an unauthenticated Fortune callback keeps
|
|
19
|
+
* the exact visible text but drops native run metadata. Callers must reserve
|
|
20
|
+
* this for non-structural batches without an exact cell-operation coordinate.
|
|
21
|
+
*/
|
|
22
|
+
export declare function restoreSpreadsheetRichTextCellRuns(previous: Cell | null | undefined, current: Cell): Cell;
|
|
23
|
+
/**
|
|
24
|
+
* Proves that Fortune retained the visible text of a controlled native
|
|
25
|
+
* rich-text cell. This permits metadata-only callbacks to restore lost run
|
|
26
|
+
* structure without guessing across a text or structural edit.
|
|
27
|
+
*/
|
|
28
|
+
export declare function sameSpreadsheetRichTextCellText(previous: Cell | null | undefined, current: Cell): boolean;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Cell } from '@fortune-sheet/core';
|
|
2
|
+
import { type XlsxSemanticColorOrigin } from './work-xlsx-cell-style-origin';
|
|
3
|
+
import type { SpreadsheetUnderlineCellValue } from './work-spreadsheet-underline';
|
|
4
|
+
export declare const MAX_XLSX_RICH_TEXT_CELL_CHARACTERS = 32767;
|
|
5
|
+
export declare const MAX_XLSX_RICH_TEXT_RUNS_PER_CELL = 512;
|
|
6
|
+
export declare const MAX_XLSX_RICH_TEXT_CELLS = 10000;
|
|
7
|
+
export declare const MAX_XLSX_RICH_TEXT_RUNS = 100000;
|
|
8
|
+
export declare const MAX_XLSX_RICH_TEXT_FONT_NAME_CHARACTERS = 128;
|
|
9
|
+
export declare const MAX_XLSX_RICH_TEXT_FONT_SIZE = 409;
|
|
10
|
+
export interface XlsxRichTextRun {
|
|
11
|
+
a3sXlsxColorOrigin?: XlsxSemanticColorOrigin;
|
|
12
|
+
bl?: 0 | 1;
|
|
13
|
+
cl?: 0 | 1;
|
|
14
|
+
fc?: string;
|
|
15
|
+
ff?: string;
|
|
16
|
+
fs?: number;
|
|
17
|
+
it?: 0 | 1;
|
|
18
|
+
un?: SpreadsheetUnderlineCellValue;
|
|
19
|
+
v: string;
|
|
20
|
+
}
|
|
21
|
+
export interface NormalizedXlsxRichTextCell {
|
|
22
|
+
runs: XlsxRichTextRun[];
|
|
23
|
+
text: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Normalizes the text state that may participate in caret-level rich-text
|
|
27
|
+
* authoring. Native runs remain authoritative; bounded plain strings receive
|
|
28
|
+
* one run derived from the cell-wide font so partial formatting and formatted
|
|
29
|
+
* paste share the same conversion contract.
|
|
30
|
+
*/
|
|
31
|
+
export declare function normalizeXlsxRichTextEditSource(cell: Cell | null | undefined): NormalizedXlsxRichTextCell | null;
|
|
32
|
+
export declare function xlsxRichTextBaseRun(cell: Cell | null | undefined, text: string): XlsxRichTextRun;
|
|
33
|
+
export declare function normalizeXlsxRichTextCell(cell: Cell): NormalizedXlsxRichTextCell | null;
|
|
34
|
+
export declare function normalizeXlsxRichTextRun(value: unknown): XlsxRichTextRun | null;
|
|
35
|
+
export declare function normalizeXlsxRichTextColor(value: unknown): string | null;
|
|
36
|
+
export declare function coalesceXlsxRichTextRuns(source: readonly XlsxRichTextRun[]): XlsxRichTextRun[];
|
|
37
|
+
export declare function sameXlsxRichTextRunStyle(left: XlsxRichTextRun, right: XlsxRichTextRun): boolean;
|
|
38
|
+
export declare function validXlsxRichText(value: string): boolean;
|
|
39
|
+
export declare function isHighSurrogate(value: number): boolean;
|
|
40
|
+
export declare function isLowSurrogate(value: number): boolean;
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import type { Cell, Sheet } from '@fortune-sheet/core';
|
|
2
|
-
import { type
|
|
3
|
-
import { type XlsxCellStyleOrigin, type
|
|
2
|
+
import { type SpreadsheetUnderlineStyle } from './work-spreadsheet-underline';
|
|
3
|
+
import { type XlsxCellStyleOrigin, type XlsxSemanticPalette } from './work-xlsx-cell-style-origin';
|
|
4
4
|
import { type XlsxColorResolver } from './work-xlsx-colors';
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const MAX_XLSX_RICH_TEXT_CELLS = 10000;
|
|
8
|
-
export declare const MAX_XLSX_RICH_TEXT_RUNS = 100000;
|
|
9
|
-
export interface XlsxRichTextRun {
|
|
10
|
-
a3sXlsxColorOrigin?: XlsxSemanticColorOrigin;
|
|
11
|
-
bl?: 0 | 1;
|
|
12
|
-
cl?: 0 | 1;
|
|
13
|
-
fc?: string;
|
|
14
|
-
ff?: string;
|
|
15
|
-
fs?: number;
|
|
16
|
-
it?: 0 | 1;
|
|
17
|
-
un?: SpreadsheetUnderlineCellValue;
|
|
18
|
-
v: string;
|
|
19
|
-
}
|
|
5
|
+
import { type XlsxRichTextRun } from './work-xlsx-rich-text-model';
|
|
6
|
+
export { MAX_XLSX_RICH_TEXT_CELL_CHARACTERS, MAX_XLSX_RICH_TEXT_CELLS, MAX_XLSX_RICH_TEXT_RUNS, MAX_XLSX_RICH_TEXT_RUNS_PER_CELL, type XlsxRichTextRun, } from './work-xlsx-rich-text-model';
|
|
20
7
|
export interface XlsxRichTextCell {
|
|
21
8
|
column: number;
|
|
22
9
|
row: number;
|
|
@@ -52,4 +39,3 @@ export declare function xlsxRichTextCellText(cell: Cell): string | null;
|
|
|
52
39
|
export declare function sheetHasXlsxRichTextCells(sheet: Sheet): boolean;
|
|
53
40
|
export declare function xlsxRichTextStyleOrigins(sheet: Sheet): XlsxCellStyleOrigin[];
|
|
54
41
|
export declare function writeXlsxRichTextCells(worksheet: Document, sheet: Sheet, semanticPalette?: XlsxSemanticPalette): void;
|
|
55
|
-
export {};
|
package/dist/office-kernel.wasm
CHANGED
|
Binary file
|