@stll/folio-react 0.5.0 → 0.7.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/dist/{CommentsSidebar-BMD21hiD.js → CommentsSidebar-B8X5a8JW.js} +126 -129
- package/dist/{FindReplaceDialog-By2OhOPu.js → FindReplaceDialog-Bx7QaFQ_.js} +26 -19
- package/dist/FootnotePropertiesDialog-2lmpg9m8.js +646 -0
- package/dist/ImagePositionDialog-D3MileYL.js +842 -0
- package/dist/ImagePropertiesDialog-CzK8HCaW.js +465 -0
- package/dist/InsertSymbolDialog-Df9dyLvn.js +376 -0
- package/dist/PageSetupDialog-PSs9YdPb.js +684 -0
- package/dist/TablePropertiesDialog-PQxKKM0Y.js +344 -0
- package/dist/{TextContextMenu-CG0V37wi.js → TextContextMenu-Ci7-M4oU.js} +199 -79
- package/dist/compat/eigenpal.d.ts +1 -1
- package/dist/compat/eigenpal.js +89 -17
- package/dist/dialogChrome-BoGYPgeu.js +26 -0
- package/dist/dialogs-DK8OVUT_.d.ts +330 -0
- package/dist/dialogs-DsHnfN0g.js +1272 -0
- package/dist/dialogs.d.ts +2 -0
- package/dist/dialogs.js +9 -0
- package/dist/editor.css +1 -1
- package/dist/folio-ui-C-85DSuK.js +1011 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +13 -3
- package/dist/messages.js +1 -26
- package/dist/{renderAsync-C_Jb8BBI.d.ts → renderAsync-ChQI9UJG.d.ts} +14 -5
- package/dist/{renderAsync-B4SrVWHb.js → renderAsync-evdyE_GW.js} +5302 -3794
- package/dist/rolldown-runtime-BBjsoOtd.js +27 -0
- package/dist/standalone.css +1 -1
- package/package.json +12 -6
- package/dist/FootnotePropertiesDialog-CoPGKND_.js +0 -265
- package/dist/ImagePositionDialog-B_md0l56.js +0 -393
- package/dist/ImagePropertiesDialog-UcGv8qr3.js +0 -196
- package/dist/PageSetupDialog-Ba7bs6m3.js +0 -310
- package/dist/TablePropertiesDialog-Ci6h1tk2.js +0 -157
package/dist/compat/eigenpal.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-
|
|
1
|
+
import { n as DocxEditor$1, t as renderAsync } from "../renderAsync-evdyE_GW.js";
|
|
2
2
|
import { t as messages_exports } from "../messages.js";
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { IntlProvider, useTranslations } from "use-intl";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -26,25 +27,96 @@ const locales = {
|
|
|
26
27
|
tr,
|
|
27
28
|
"zh-CN": zhCN
|
|
28
29
|
};
|
|
29
|
-
const LocaleProvider = (
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
const LocaleProvider = (t0) => {
|
|
31
|
+
const $ = c(10);
|
|
32
|
+
const { children, i18n, locale } = t0;
|
|
33
|
+
let T0;
|
|
34
|
+
let t1;
|
|
35
|
+
let t2;
|
|
36
|
+
if ($[0] !== i18n || $[1] !== locale) {
|
|
37
|
+
const resolvedLocale = resolveLocale(locale, i18n);
|
|
38
|
+
T0 = IntlProvider;
|
|
39
|
+
t1 = resolvedLocale;
|
|
40
|
+
t2 = (0, messages_exports.getFolioMessages)(resolvedLocale);
|
|
41
|
+
$[0] = i18n;
|
|
42
|
+
$[1] = locale;
|
|
43
|
+
$[2] = T0;
|
|
44
|
+
$[3] = t1;
|
|
45
|
+
$[4] = t2;
|
|
46
|
+
} else {
|
|
47
|
+
T0 = $[2];
|
|
48
|
+
t1 = $[3];
|
|
49
|
+
t2 = $[4];
|
|
50
|
+
}
|
|
51
|
+
let t3;
|
|
52
|
+
if ($[5] !== T0 || $[6] !== children || $[7] !== t1 || $[8] !== t2) {
|
|
53
|
+
t3 = /* @__PURE__ */ jsx(T0, {
|
|
54
|
+
locale: t1,
|
|
55
|
+
messages: t2,
|
|
56
|
+
children
|
|
57
|
+
});
|
|
58
|
+
$[5] = T0;
|
|
59
|
+
$[6] = children;
|
|
60
|
+
$[7] = t1;
|
|
61
|
+
$[8] = t2;
|
|
62
|
+
$[9] = t3;
|
|
63
|
+
} else t3 = $[9];
|
|
64
|
+
return t3;
|
|
36
65
|
};
|
|
37
66
|
const useTranslation = () => {
|
|
38
|
-
|
|
67
|
+
const $ = c(2);
|
|
68
|
+
const t0 = useTranslations("folio");
|
|
69
|
+
let t1;
|
|
70
|
+
if ($[0] !== t0) {
|
|
71
|
+
t1 = { t: t0 };
|
|
72
|
+
$[0] = t0;
|
|
73
|
+
$[1] = t1;
|
|
74
|
+
} else t1 = $[1];
|
|
75
|
+
return t1;
|
|
39
76
|
};
|
|
40
|
-
const DocxEditor = forwardRef((
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
77
|
+
const DocxEditor = forwardRef((t0, ref) => {
|
|
78
|
+
const $ = c(11);
|
|
79
|
+
let i18n;
|
|
80
|
+
let locale;
|
|
81
|
+
let props;
|
|
82
|
+
if ($[0] !== t0) {
|
|
83
|
+
const { agentPanel: _agentPanel, colorMode: _colorMode, commentsSidebarOpen: _commentsSidebarOpen, disableFindReplaceShortcuts: _disableFindReplaceShortcuts, documentName: _documentName, documentNameEditable: _documentNameEditable, externalContent: _externalContent, externalPlugins: _externalPlugins, i18n: t1, locale: t2, onCommentAdd: _onCommentAdd, onCommentDelete: _onCommentDelete, onCommentReply: _onCommentReply, onCommentResolve: _onCommentResolve, onCommentsSidebarOpenChange: _onCommentsSidebarOpenChange, onDocumentNameChange: _onDocumentNameChange, onOpen: _onOpen, onRenderedDomContextReady: _onRenderedDomContextReady, pluginOverlays: _pluginOverlays, pluginRenderedDomContext: _pluginRenderedDomContext, pluginSidebarItems: _pluginSidebarItems, printOptions: _printOptions, renderLogo: _renderLogo, renderTitleBarRight: _renderTitleBarRight, showFileOpen: _showFileOpen, showHelpMenu: _showHelpMenu, showOutlineButton: _showOutlineButton, watermarkPresets: _watermarkPresets, ...t3 } = t0;
|
|
84
|
+
i18n = t1;
|
|
85
|
+
locale = t2;
|
|
86
|
+
props = t3;
|
|
87
|
+
$[0] = t0;
|
|
88
|
+
$[1] = i18n;
|
|
89
|
+
$[2] = locale;
|
|
90
|
+
$[3] = props;
|
|
91
|
+
} else {
|
|
92
|
+
i18n = $[1];
|
|
93
|
+
locale = $[2];
|
|
94
|
+
props = $[3];
|
|
95
|
+
}
|
|
96
|
+
let t1;
|
|
97
|
+
if ($[4] !== props || $[5] !== ref) {
|
|
98
|
+
t1 = /* @__PURE__ */ jsx(DocxEditor$1, {
|
|
99
|
+
...props,
|
|
100
|
+
ref
|
|
101
|
+
});
|
|
102
|
+
$[4] = props;
|
|
103
|
+
$[5] = ref;
|
|
104
|
+
$[6] = t1;
|
|
105
|
+
} else t1 = $[6];
|
|
106
|
+
let t2;
|
|
107
|
+
if ($[7] !== i18n || $[8] !== locale || $[9] !== t1) {
|
|
108
|
+
t2 = /* @__PURE__ */ jsx(LocaleProvider, {
|
|
109
|
+
i18n,
|
|
110
|
+
locale,
|
|
111
|
+
children: t1
|
|
112
|
+
});
|
|
113
|
+
$[7] = i18n;
|
|
114
|
+
$[8] = locale;
|
|
115
|
+
$[9] = t1;
|
|
116
|
+
$[10] = t2;
|
|
117
|
+
} else t2 = $[10];
|
|
118
|
+
return t2;
|
|
119
|
+
});
|
|
48
120
|
DocxEditor.displayName = "EigenpalCompatDocxEditor";
|
|
49
121
|
const resolveLocale = (locale, i18n) => locale ?? i18n?._lang ?? "en";
|
|
50
122
|
//#endregion
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { c } from "react-compiler-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
//#region src/components/dialogs/dialogChrome.ts
|
|
4
|
+
function useCloseOnDialogOpenChange(onClose) {
|
|
5
|
+
const $ = c(2);
|
|
6
|
+
let t0;
|
|
7
|
+
if ($[0] !== onClose) {
|
|
8
|
+
t0 = (open) => {
|
|
9
|
+
if (!open) onClose();
|
|
10
|
+
};
|
|
11
|
+
$[0] = onClose;
|
|
12
|
+
$[1] = t0;
|
|
13
|
+
} else t0 = $[1];
|
|
14
|
+
return t0;
|
|
15
|
+
}
|
|
16
|
+
const DIALOG_BACKDROP_CLASS = "fixed inset-0 z-[10000] bg-black/50";
|
|
17
|
+
const DIALOG_POPUP_CLASS = "bg-popover fixed start-1/2 top-1/2 z-[10001] w-full max-w-[520px] min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded-lg border shadow-xl";
|
|
18
|
+
const DIALOG_TITLE_CLASS = "border-b px-5 py-3 text-base font-semibold";
|
|
19
|
+
const DIALOG_BODY_CLASS = "flex flex-col gap-4 px-5 py-4";
|
|
20
|
+
const DIALOG_FOOTER_CLASS = "flex justify-end gap-2 border-t px-5 py-3";
|
|
21
|
+
const DIALOG_LABEL_CLASS = "text-muted-foreground text-[13px]";
|
|
22
|
+
const DIALOG_INPUT_CLASS = "border-input bg-background text-foreground rounded border px-2 py-1.5 text-[13px] outline-none";
|
|
23
|
+
const DIALOG_SECONDARY_BUTTON_CLASS = "border-input rounded border px-4 py-1.5 text-[13px]";
|
|
24
|
+
const DIALOG_PRIMARY_BUTTON_CLASS = "bg-primary text-primary-foreground rounded px-4 py-1.5 text-[13px] font-medium disabled:cursor-not-allowed disabled:opacity-50";
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DIALOG_LABEL_CLASS as a, DIALOG_SECONDARY_BUTTON_CLASS as c, DIALOG_INPUT_CLASS as i, DIALOG_TITLE_CLASS as l, DIALOG_BODY_CLASS as n, DIALOG_POPUP_CLASS as o, DIALOG_FOOTER_CLASS as r, DIALOG_PRIMARY_BUTTON_CLASS as s, DIALOG_BACKDROP_CLASS as t, useCloseOnDialogOpenChange as u };
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import React, { CSSProperties } from "react";
|
|
2
|
+
import { Document, EndnoteProperties, FootnoteProperties, SectionProperties } from "@stll/folio-core/types/document";
|
|
3
|
+
import { Watermark } from "@stll/folio-core/watermark";
|
|
4
|
+
|
|
5
|
+
//#region src/components/dialogs/findReplaceUtils.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* A single match result in the document
|
|
8
|
+
*/
|
|
9
|
+
type FindMatch = {
|
|
10
|
+
/** Index of the paragraph containing the match */paragraphIndex: number; /** Index of the run/content within the paragraph */
|
|
11
|
+
contentIndex: number; /** Character offset within the content */
|
|
12
|
+
startOffset: number; /** Character offset for end of match */
|
|
13
|
+
endOffset: number; /** The matched text */
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Find options for controlling search behavior
|
|
18
|
+
*/
|
|
19
|
+
type FindOptions = {
|
|
20
|
+
/** Whether to match case */matchCase: boolean; /** Whether to match whole words only */
|
|
21
|
+
matchWholeWord: boolean; /** Whether to use regular expressions (future) */
|
|
22
|
+
useRegex?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Find result with all matches
|
|
26
|
+
*/
|
|
27
|
+
type FindResult = {
|
|
28
|
+
/** All matches found */matches: FindMatch[]; /** Total match count */
|
|
29
|
+
totalCount: number; /** Current match index (0-based) */
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/dialogs/FindReplaceDialog.d.ts
|
|
34
|
+
/**
|
|
35
|
+
* Props for the FindReplaceDialog component
|
|
36
|
+
*/
|
|
37
|
+
type FindReplaceDialogProps = {
|
|
38
|
+
/** Whether the dialog is open */isOpen: boolean; /** Callback when dialog is closed */
|
|
39
|
+
onClose: () => void; /** Callback when searching for text */
|
|
40
|
+
onFind: (searchText: string, options: FindOptions) => FindResult | null; /** Callback when navigating to next match */
|
|
41
|
+
onFindNext: () => FindMatch | null; /** Callback when navigating to previous match */
|
|
42
|
+
onFindPrevious: () => FindMatch | null; /** Callback when replacing current match */
|
|
43
|
+
onReplace: (replaceText: string) => boolean; /** Callback when replacing all matches */
|
|
44
|
+
onReplaceAll: (searchText: string, replaceText: string, options: FindOptions) => number; /** Callback to highlight matches in document */
|
|
45
|
+
onHighlightMatches?: (matches: FindMatch[]) => void; /** Callback to clear highlights */
|
|
46
|
+
onClearHighlights?: () => void; /** Initial search text (e.g., from selected text) */
|
|
47
|
+
initialSearchText?: string; /** Whether to start in replace mode */
|
|
48
|
+
replaceMode?: boolean; /** Current match result (from external state) */
|
|
49
|
+
currentResult?: FindResult | null; /** Additional CSS class */
|
|
50
|
+
className?: string; /** Additional inline styles */
|
|
51
|
+
style?: CSSProperties;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* FindReplaceDialog component - Modal for finding and replacing text
|
|
55
|
+
*/
|
|
56
|
+
declare function FindReplaceDialog({
|
|
57
|
+
isOpen,
|
|
58
|
+
onClose,
|
|
59
|
+
onFind,
|
|
60
|
+
onFindNext,
|
|
61
|
+
onFindPrevious,
|
|
62
|
+
onHighlightMatches,
|
|
63
|
+
onClearHighlights,
|
|
64
|
+
initialSearchText,
|
|
65
|
+
currentResult,
|
|
66
|
+
className,
|
|
67
|
+
style
|
|
68
|
+
}: FindReplaceDialogProps): React.ReactElement | null;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/components/dialogs/FootnotePropertiesDialog.d.ts
|
|
71
|
+
type FootnotePropertiesDialogProps = {
|
|
72
|
+
isOpen: boolean;
|
|
73
|
+
onClose: () => void;
|
|
74
|
+
onApply: (footnoteProps: FootnoteProperties, endnoteProps: EndnoteProperties) => void;
|
|
75
|
+
footnotePr?: FootnoteProperties;
|
|
76
|
+
endnotePr?: EndnoteProperties;
|
|
77
|
+
};
|
|
78
|
+
declare function FootnotePropertiesDialog({
|
|
79
|
+
isOpen,
|
|
80
|
+
onClose,
|
|
81
|
+
onApply,
|
|
82
|
+
footnotePr,
|
|
83
|
+
endnotePr
|
|
84
|
+
}: FootnotePropertiesDialogProps): import("react").JSX.Element;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/dialogs/HyperlinkDialog.d.ts
|
|
87
|
+
type HyperlinkBookmarkOption = {
|
|
88
|
+
name: string;
|
|
89
|
+
label?: string;
|
|
90
|
+
};
|
|
91
|
+
type HyperlinkDialogData = {
|
|
92
|
+
href: string;
|
|
93
|
+
displayText: string;
|
|
94
|
+
tooltip?: string;
|
|
95
|
+
};
|
|
96
|
+
type HyperlinkDialogProps = {
|
|
97
|
+
isOpen: boolean;
|
|
98
|
+
onClose: () => void;
|
|
99
|
+
onSubmit: (data: HyperlinkDialogData) => void;
|
|
100
|
+
onRemove?: () => void;
|
|
101
|
+
currentData?: Partial<HyperlinkDialogData>;
|
|
102
|
+
selectedText?: string;
|
|
103
|
+
bookmarks?: readonly HyperlinkBookmarkOption[];
|
|
104
|
+
};
|
|
105
|
+
declare function HyperlinkDialog({
|
|
106
|
+
isOpen,
|
|
107
|
+
onClose,
|
|
108
|
+
onSubmit,
|
|
109
|
+
onRemove,
|
|
110
|
+
currentData,
|
|
111
|
+
selectedText,
|
|
112
|
+
bookmarks
|
|
113
|
+
}: HyperlinkDialogProps): import("react").JSX.Element;
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/dialogs/ImagePositionDialog.d.ts
|
|
116
|
+
/**
|
|
117
|
+
* Image Position Dialog
|
|
118
|
+
*
|
|
119
|
+
* Modal for editing image positioning settings:
|
|
120
|
+
* - Horizontal: alignment or offset, relative to page/column/margin/paragraph
|
|
121
|
+
* - Vertical: alignment or offset, relative to page/margin/paragraph/line
|
|
122
|
+
* - Distance from text (top/bottom/left/right)
|
|
123
|
+
*/
|
|
124
|
+
type ImagePositionData = {
|
|
125
|
+
horizontal?: {
|
|
126
|
+
relativeTo?: string;
|
|
127
|
+
posOffset?: number;
|
|
128
|
+
align?: string;
|
|
129
|
+
};
|
|
130
|
+
vertical?: {
|
|
131
|
+
relativeTo?: string;
|
|
132
|
+
posOffset?: number;
|
|
133
|
+
align?: string;
|
|
134
|
+
};
|
|
135
|
+
distTop?: number;
|
|
136
|
+
distBottom?: number;
|
|
137
|
+
distLeft?: number;
|
|
138
|
+
distRight?: number;
|
|
139
|
+
};
|
|
140
|
+
type ImagePositionDialogProps = {
|
|
141
|
+
isOpen: boolean;
|
|
142
|
+
onClose: () => void;
|
|
143
|
+
onApply: (data: ImagePositionData) => void;
|
|
144
|
+
currentData?: ImagePositionData;
|
|
145
|
+
};
|
|
146
|
+
declare function ImagePositionDialog({
|
|
147
|
+
isOpen,
|
|
148
|
+
onClose,
|
|
149
|
+
onApply,
|
|
150
|
+
currentData
|
|
151
|
+
}: ImagePositionDialogProps): import("react").JSX.Element;
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/dialogs/ImagePropertiesDialog.d.ts
|
|
154
|
+
/**
|
|
155
|
+
* Image Properties Dialog
|
|
156
|
+
*
|
|
157
|
+
* Modal for editing image properties:
|
|
158
|
+
* - Alt text for accessibility
|
|
159
|
+
* - Border/outline style, color, and width
|
|
160
|
+
*/
|
|
161
|
+
type ImagePropertiesData = {
|
|
162
|
+
alt?: string;
|
|
163
|
+
borderWidth?: number;
|
|
164
|
+
borderColor?: string;
|
|
165
|
+
borderStyle?: string;
|
|
166
|
+
};
|
|
167
|
+
type ImagePropertiesDialogProps = {
|
|
168
|
+
isOpen: boolean;
|
|
169
|
+
onClose: () => void;
|
|
170
|
+
onApply: (data: ImagePropertiesData) => void;
|
|
171
|
+
currentData?: ImagePropertiesData;
|
|
172
|
+
};
|
|
173
|
+
declare function ImagePropertiesDialog({
|
|
174
|
+
isOpen,
|
|
175
|
+
onClose,
|
|
176
|
+
onApply,
|
|
177
|
+
currentData
|
|
178
|
+
}: ImagePropertiesDialogProps): import("react").JSX.Element;
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/dialogs/InsertImageDialog.d.ts
|
|
181
|
+
type InsertImageDialogData = {
|
|
182
|
+
file: File;
|
|
183
|
+
alt?: string;
|
|
184
|
+
width?: number;
|
|
185
|
+
height?: number;
|
|
186
|
+
};
|
|
187
|
+
type InsertImageDialogProps = {
|
|
188
|
+
isOpen: boolean;
|
|
189
|
+
onClose: () => void;
|
|
190
|
+
onInsert: (data: InsertImageDialogData) => void;
|
|
191
|
+
accept?: string;
|
|
192
|
+
};
|
|
193
|
+
declare function InsertImageDialog({
|
|
194
|
+
isOpen,
|
|
195
|
+
onClose,
|
|
196
|
+
onInsert,
|
|
197
|
+
accept
|
|
198
|
+
}: InsertImageDialogProps): import("react").JSX.Element;
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/components/dialogs/InsertSymbolDialog.d.ts
|
|
201
|
+
type InsertSymbolDialogProps = {
|
|
202
|
+
isOpen: boolean;
|
|
203
|
+
onClose: () => void;
|
|
204
|
+
onInsert: (symbol: string) => void;
|
|
205
|
+
};
|
|
206
|
+
declare function InsertSymbolDialog({
|
|
207
|
+
isOpen,
|
|
208
|
+
onClose,
|
|
209
|
+
onInsert
|
|
210
|
+
}: InsertSymbolDialogProps): import("react").JSX.Element;
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/components/dialogs/InsertTableDialog.d.ts
|
|
213
|
+
type InsertTableDialogData = {
|
|
214
|
+
rows: number;
|
|
215
|
+
columns: number;
|
|
216
|
+
autofit: boolean;
|
|
217
|
+
styleId?: string;
|
|
218
|
+
};
|
|
219
|
+
type InsertTableStyleOption = {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
type InsertTableDialogProps = {
|
|
224
|
+
isOpen: boolean;
|
|
225
|
+
onClose: () => void;
|
|
226
|
+
onInsert: (data: InsertTableDialogData) => void;
|
|
227
|
+
defaultRows?: number;
|
|
228
|
+
defaultColumns?: number;
|
|
229
|
+
styleOptions?: readonly InsertTableStyleOption[];
|
|
230
|
+
};
|
|
231
|
+
declare function InsertTableDialog({
|
|
232
|
+
isOpen,
|
|
233
|
+
onClose,
|
|
234
|
+
onInsert,
|
|
235
|
+
defaultRows,
|
|
236
|
+
defaultColumns,
|
|
237
|
+
styleOptions
|
|
238
|
+
}: InsertTableDialogProps): import("react").JSX.Element;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/components/dialogs/PageSetupDialog.d.ts
|
|
241
|
+
type PageSetupDialogProps = {
|
|
242
|
+
isOpen: boolean;
|
|
243
|
+
onClose: () => void;
|
|
244
|
+
onApply: (props: Partial<SectionProperties>) => void;
|
|
245
|
+
currentProps?: SectionProperties;
|
|
246
|
+
};
|
|
247
|
+
declare function PageSetupDialog({
|
|
248
|
+
isOpen,
|
|
249
|
+
onClose,
|
|
250
|
+
onApply,
|
|
251
|
+
currentProps
|
|
252
|
+
}: PageSetupDialogProps): import("react").JSX.Element;
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/dialogs/PasteSpecialDialog.d.ts
|
|
255
|
+
type PasteSpecialMode = "keepFormatting" | "mergeFormatting" | "plainText";
|
|
256
|
+
type PasteSpecialDialogProps = {
|
|
257
|
+
isOpen: boolean;
|
|
258
|
+
onClose: () => void;
|
|
259
|
+
onPaste: (mode: PasteSpecialMode) => void;
|
|
260
|
+
defaultMode?: PasteSpecialMode;
|
|
261
|
+
};
|
|
262
|
+
declare function PasteSpecialDialog({
|
|
263
|
+
isOpen,
|
|
264
|
+
onClose,
|
|
265
|
+
onPaste,
|
|
266
|
+
defaultMode
|
|
267
|
+
}: PasteSpecialDialogProps): import("react").JSX.Element;
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/components/dialogs/SplitCellDialog.d.ts
|
|
270
|
+
type SplitCellDialogData = {
|
|
271
|
+
rows: number;
|
|
272
|
+
columns: number;
|
|
273
|
+
mergeBeforeSplit: boolean;
|
|
274
|
+
};
|
|
275
|
+
type SplitCellDialogProps = {
|
|
276
|
+
isOpen: boolean;
|
|
277
|
+
onClose: () => void;
|
|
278
|
+
onSplit: (data: SplitCellDialogData) => void;
|
|
279
|
+
defaultRows?: number;
|
|
280
|
+
defaultColumns?: number;
|
|
281
|
+
};
|
|
282
|
+
declare function SplitCellDialog({
|
|
283
|
+
isOpen,
|
|
284
|
+
onClose,
|
|
285
|
+
onSplit,
|
|
286
|
+
defaultRows,
|
|
287
|
+
defaultColumns
|
|
288
|
+
}: SplitCellDialogProps): import("react").JSX.Element;
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/components/dialogs/TablePropertiesDialog.d.ts
|
|
291
|
+
/**
|
|
292
|
+
* Table Properties Dialog — width type, width value, alignment.
|
|
293
|
+
*/
|
|
294
|
+
type TableProperties = {
|
|
295
|
+
width?: number | null;
|
|
296
|
+
widthType?: string | null;
|
|
297
|
+
justification?: "left" | "center" | "right" | null;
|
|
298
|
+
};
|
|
299
|
+
type TablePropertiesDialogProps = {
|
|
300
|
+
isOpen: boolean;
|
|
301
|
+
onClose: () => void;
|
|
302
|
+
onApply: (props: TableProperties) => void;
|
|
303
|
+
currentProps?: {
|
|
304
|
+
width?: number;
|
|
305
|
+
widthType?: string;
|
|
306
|
+
justification?: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
declare function TablePropertiesDialog({
|
|
310
|
+
isOpen,
|
|
311
|
+
onClose,
|
|
312
|
+
onApply,
|
|
313
|
+
currentProps
|
|
314
|
+
}: TablePropertiesDialogProps): import("react").JSX.Element;
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/components/dialogs/WatermarkDialog.d.ts
|
|
317
|
+
type WatermarkDialogProps = {
|
|
318
|
+
isOpen: boolean;
|
|
319
|
+
onClose: () => void;
|
|
320
|
+
onApply: (watermark: Watermark | undefined) => void;
|
|
321
|
+
currentWatermark?: Watermark;
|
|
322
|
+
};
|
|
323
|
+
declare function WatermarkDialog({
|
|
324
|
+
isOpen,
|
|
325
|
+
onClose,
|
|
326
|
+
onApply,
|
|
327
|
+
currentWatermark
|
|
328
|
+
}: WatermarkDialogProps): import("react").JSX.Element;
|
|
329
|
+
//#endregion
|
|
330
|
+
export { HyperlinkDialog as A, ImagePropertiesData as C, ImagePositionDialog as D, ImagePositionData as E, FindReplaceDialog as F, FindReplaceDialogProps as I, HyperlinkDialogProps as M, FootnotePropertiesDialog as N, ImagePositionDialogProps as O, FootnotePropertiesDialogProps as P, InsertImageDialogProps as S, ImagePropertiesDialogProps as T, InsertTableStyleOption as _, TablePropertiesDialogProps as a, InsertImageDialog as b, SplitCellDialogProps as c, PasteSpecialMode as d, PageSetupDialog as f, InsertTableDialogProps as g, InsertTableDialogData as h, TablePropertiesDialog as i, HyperlinkDialogData as j, HyperlinkBookmarkOption as k, PasteSpecialDialog as l, InsertTableDialog as m, WatermarkDialogProps as n, SplitCellDialog as o, PageSetupDialogProps as p, TableProperties as r, SplitCellDialogData as s, WatermarkDialog as t, PasteSpecialDialogProps as u, InsertSymbolDialog as v, ImagePropertiesDialog as w, InsertImageDialogData as x, InsertSymbolDialogProps as y };
|