@a3s-lab/office 0.26.0 → 0.28.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 +89 -2
- package/dist/0~4595.js +16 -2
- package/dist/0~5093.js +563 -201
- package/dist/0~6090.js +77 -77
- package/dist/{0~2805.js → 0~7043.js} +305 -2
- package/dist/0~document-editor.js +2633 -976
- package/dist/0~spreadsheet-editor.js +1324 -378
- package/dist/0~work-docx-export.js +737 -17
- package/dist/0~work-docx-import.js +173 -98
- package/dist/0~work-office-diagnostics.js +250 -5
- package/dist/{164.js → 1544.js} +1083 -785
- package/dist/4104.js +145 -29
- package/dist/5184.js +13 -0
- package/dist/6282.js +1898 -345
- 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 +111 -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-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/work-office-chrome.d.ts +9 -1
- 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 +20 -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-legacy-text-effects.d.ts +27 -0
- 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 +16 -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 +17 -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-legacy-text-effects-diagnostics.d.ts +3 -0
- package/dist/internal/features/work/work-docx-legacy-text-effects-export.d.ts +18 -0
- package/dist/internal/features/work/work-docx-legacy-text-effects.d.ts +12 -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 +27 -2
- package/dist/internal/features/work/work-docx-run-property-order.d.ts +2 -0
- 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/office-kernel.wasm +0 -0
- package/dist/styles.css +809 -78
- package/docs/latest/en/browser-editor-architecture.md +24 -0
- package/package.json +35 -1
|
@@ -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;
|
package/dist/office-kernel.wasm
CHANGED
|
Binary file
|