@docx-editor.dev/vue 2.37.0 → 2.38.0-canary.20261114032659.sha-cdc64af
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/index.cjs +3 -3
- package/dist/index.d.cts +1600 -201
- package/dist/index.d.ts +1600 -201
- package/dist/index.js +3 -3
- package/docs/highlight-ranges.md +361 -0
- package/docs/tracked-replacement.md +35 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import * as vue from 'vue';
|
|
7
7
|
import { Ref, VNode, PropType, SlotsType, VNodeChild, CSSProperties, Component, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowRef, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
|
|
8
8
|
import * as _docx_editor_dev_core_layout from '@docx-editor.dev/core/layout';
|
|
9
|
-
import { UnsupportedElementRule, UnsupportedElement, RevisionMarkupDialogSession, ResolvedRevisionMarkup, CompareDocumentsDialogSession, CompareDocumentsProgress, RevisionMarkupOptions, ChromeExportFormat, ResolvedChromePrintSettings, ChromePrintSettings, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, SplitCellLimits, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, ImageDecodePort, DocxEditorInstance, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, PaneRequest, SelectedChartState, ChartData, ChartFormat, SelectedChartCommand, ChartPaneChange, DocumentSearchHighlight, DocumentSearchFindOptions, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
|
|
10
|
-
export { CHART_TYPE_CHOICES, CHROME_GROUPS, CHROME_MENUS, ChartColor, ChartData, ChartFormat, ChartFormatChange, ChartPaneChange, ChartType, ChromeExportFormat, ChromeExportHandlers, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, ClearRefreshHighlightsOptions, CompareDocumentsChromeHandlers, CompareDocumentsDialogSession, CompareDocumentsEngineErrorCode, CompareDocumentsErrorCode, CompareDocumentsOutcome, CompareDocumentsRefusalReason, CompareDocumentsRequest, DEFAULT_FONT, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, HIGHLIGHT_REFRESH_MS, HighlightSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, NavigateToChangeOptions, PX_PER_CM, PX_PER_INCH, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, ResolvedRevisionMarkup, ReviewAuthorInfo, ReviewDisplayMode, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionChangedLinesMark, RevisionDeletionMark, RevisionMarkupChromeHandlers, RevisionMarkupColor, RevisionMarkupDialogSession, RevisionMarkupMark, RevisionMarkupNamedColor, RevisionMarkupOptions, RevisionStyles, RulerTick, RulerUnit, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SelectedChartCommand, SelectedChartState, ToolbarCommandState, UnsupportedElement, UnsupportedElementLayout, UnsupportedElementRule, WORD_DEFAULT_FONT, chartTypeLabelKey, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, deferFonts, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, rulerPageBox, runToolbarCommand, toolbarCommandState } from '@docx-editor.dev/core/editor';
|
|
9
|
+
import { UnsupportedElementRule, UnsupportedElement, RevisionMarkupDialogSession, ResolvedRevisionMarkup, CompareDocumentsDialogSession, CompareDocumentsProgress, RevisionMarkupOptions, ChromeExportFormat, ResolvedChromePrintSettings, ChromePrintSettings, ContentControlWidgetSession, CalendarMonth, ContentControlListNavigation, CalendarDay, InvalidTextFormFieldSession, TextFormFieldDialogSession, ParagraphDialogFields, ParagraphDialogMixed, BookmarkSortOrder, SplitCellLimits, ChromeMenuId, ChromeSlotId, ChromeMenuEntry, FontConfigurationFragment, FontResolver, FontShapingOptions, EditorModule, ReviewDisplayMode, FieldResultsMode, ContentLockPolicy, LockedControlNavigation, ImageDecodePort, DocxEditorInstance, ChromeGroupId, SupportedImageMime, TableChromeSlotId, ChromeExportHandlers, PaneRequest, PaneRequestListenerOptions, SelectedChartState, ChartData, ChartFormat, SelectedChartCommand, ChartPaneChange, ShapeFormatState, SelectedShapeCommand, ShapePaneChange, ColorPick, ObjectSlotValueMap, ObjectSlotReadValueMap, ObjectToggleSlotId, EditorPaneId, PaneSectionId, PaneSection, DocumentSearchHighlight, DocumentSearchFindOptions, RevisionAuthorStyle, ReviewAuthorInfo, EditorCommandExecute, ToolbarValueMap, HighlightSource, ParagraphFormatRead, ParagraphFormatUpdate, MarkedFontResolver, FontOrigin, SurfaceHyperlink, RulerIndent, TextMeasurer, PaginatedSurfaceState, NavigationCommand, SurfaceFormatting, SectionProperties, HistoryGroupBindingOptions } from '@docx-editor.dev/core/editor';
|
|
10
|
+
export { CHART_TYPE_CHOICES, CHROME_GROUPS, CHROME_MENUS, ChartColor, ChartData, ChartFormat, ChartFormatChange, ChartPaneChange, ChartType, ChromeExportFormat, ChromeExportHandlers, ChromeMenu, ChromeMenuEntry, ChromeMenuId, ChromeMenuItemEntry, ChromeMenuSeparatorEntry, ChromeMenuSubmenuEntry, ChromeSlotId, ClearRefreshHighlightsOptions, ColorPick, CompareDocumentsChromeHandlers, CompareDocumentsDialogSession, CompareDocumentsEngineErrorCode, CompareDocumentsErrorCode, CompareDocumentsOutcome, CompareDocumentsRefusalReason, CompareDocumentsRequest, DEFAULT_FONT, DocumentRefresh, DocumentRefreshError, DocumentRefreshState, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, FontConfigurationBase, FontConfigurationFragment, FontLoadFailure, FontLoadFailureReason, FontOrigin, FontResolutionRequest, FontResolver, FontResolverMark, FontUrlSource, HIGHLIGHT_REFRESH_MS, HighlightSource, ImageWrapTarget, LOADING_SNAPSHOT, LoadFontsRequest, LoadFontsResult, MAX_RESOLVER_FAMILIES, MarkedFontResolver, NavigateToChangeOptions, ObjectSlotReadValueMap, ObjectSlotValueMap, ObjectToggleSlotId, PANE_SECTIONS, PX_PER_CM, PX_PER_INCH, PaneSection, PaneSectionId, PaneSectionIds, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, ParagraphTabStop, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshRefusal, RefreshRefusalFields, RefreshRefusalReason, RefreshResult, RefreshSubmission, RefreshUpdate, RefreshUpdateMode, ReplaceDocumentErrorCode, ReplaceDocumentOutcome, ReplaceDocumentRefusal, ReplaceDocumentRefusalReason, ReplaceDocumentRequest, ResolvedRevisionMarkup, ReviewAuthorInfo, ReviewDisplayMode, RevisionAuthorAssignments, RevisionAuthorStyle, RevisionChangedLinesMark, RevisionDeletionMark, RevisionMarkupChromeHandlers, RevisionMarkupColor, RevisionMarkupDialogSession, RevisionMarkupMark, RevisionMarkupNamedColor, RevisionMarkupOptions, RevisionStyles, RulerTick, RulerUnit, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SHAPE_OUTLINE_DASHES, SHAPE_OUTLINE_WIDTHS, SelectedChartCommand, SelectedChartState, SelectedShapeCommand, ShapeFillState, ShapeFormatState, ShapeOutlineDash, ShapeOutlineState, ShapePaneChange, ToolbarCommandState, UnsupportedElement, UnsupportedElementLayout, UnsupportedElementRule, WORD_DEFAULT_FONT, acceptedOffsetFromText, acceptedTextRanges, chartTypeLabelKey, chromeMenuSlots, commandForSlot, composeFontConfiguration, composeFontOrigins, createDocumentRefresh, createFontSource, deferFonts, defineFontResolver, generateRulerTicks, isFontResolver, loadFonts, paneSections, rulerPageBox, runToolbarCommand, textOffsetFromAccepted, toolbarCommandState } from '@docx-editor.dev/core/editor';
|
|
11
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
12
12
|
import * as _docx_editor_dev_core from '@docx-editor.dev/core';
|
|
13
13
|
import { ContentControlType, ContentControlSummary } from '@docx-editor.dev/core';
|
|
14
|
-
import { Editor, ViewScope, EditorCommand, WatermarkState, BookmarkSummary, DocumentSource, FontConfiguration, ZoomMode, TableInteractionLabelKey, DocumentChange, EditorFontError, ExecResult, TextMatch, DocumentOpenFailure, DocumentHandle,
|
|
15
|
-
export { AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, DocumentOpenFailure, DocumentOpenFailureReason, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ScrollToAnchorOptions, TextMatch, Watermark, WatermarkState } from '@docx-editor.dev/core/contracts/editor';
|
|
14
|
+
import { Editor, ViewScope, EditorCommand, WatermarkState, BookmarkSummary, HighlightRange, HighlightHit, DocumentSource, FontConfiguration, ZoomMode, TableInteractionLabelKey, DocumentChange, EditorFontError, ExecResult, EditorExecOptions, TextMatch, DocumentOpenFailure, DocumentHandle, EditorScope, EditorSnapshot, EditorEvents, HighlightResult, HighlightOptions, PageSetup, IndentFormatting, Watermark, ColorValue, Theme } from '@docx-editor.dev/core/contracts/editor';
|
|
15
|
+
export { AcceptedTextRange, AnchorHighlightAnimation, AnchorHighlightOptions, ClearAnchorHighlightOptions, DocumentOpenFailure, DocumentOpenFailureReason, Editor, EditorCommand, EditorFontError, EditorFontErrorCode, EditorQuery, EditorScope, EditorSnapshot, FontConfiguration, FontFaceRequest, FontSource, FontSourceSubstitution, HighlightHit, HighlightOptions, HighlightRange, HighlightRect, HighlightResult, PageSetup, ParagraphText, ParagraphTextProofing, ParagraphTextReadOptions, ParagraphTextSpan, ReplaceAcceptedTextCommand, ScrollToAnchorOptions, TextMatch, Watermark, WatermarkState } from '@docx-editor.dev/core/contracts/editor';
|
|
16
16
|
import * as _docx_editor_dev_i18n from '@docx-editor.dev/i18n';
|
|
17
17
|
import { TFunction, Translations, LocaleStrings } from '@docx-editor.dev/i18n';
|
|
18
18
|
export { TranslationKey } from '@docx-editor.dev/i18n';
|
|
@@ -4579,6 +4579,39 @@ interface MenuPartComponent {
|
|
|
4579
4579
|
readonly docxMenu: ChromeMenuId;
|
|
4580
4580
|
}
|
|
4581
4581
|
|
|
4582
|
+
/**
|
|
4583
|
+
* Host rows that render above the packaged rows instead of after them.
|
|
4584
|
+
*
|
|
4585
|
+
* Use it for rows about the item under the pointer, such as spelling suggestions for the
|
|
4586
|
+
* word that was right-clicked. Read that item with `useContextMenuTarget()`. A menu opened
|
|
4587
|
+
* from the keyboard has no target: `useContextMenuAnchor()` reports `trigger: 'keyboard'`,
|
|
4588
|
+
* and `editor.getSelectionRange()` reads the caret instead. It must be a direct child of
|
|
4589
|
+
* `DocxEditor.ContextMenu`; a component that returns it renders at the end.
|
|
4590
|
+
*
|
|
4591
|
+
* @public
|
|
4592
|
+
*/
|
|
4593
|
+
declare const ContextMenuStart: {
|
|
4594
|
+
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
4595
|
+
[key: string]: any;
|
|
4596
|
+
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, vue.PublicProps, {}, true, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
4597
|
+
P: {};
|
|
4598
|
+
B: {};
|
|
4599
|
+
D: {};
|
|
4600
|
+
C: {};
|
|
4601
|
+
M: {};
|
|
4602
|
+
Defaults: {};
|
|
4603
|
+
}, Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
4604
|
+
[key: string]: any;
|
|
4605
|
+
}>[], {}, {}, {}, {}>;
|
|
4606
|
+
__isFragment?: never;
|
|
4607
|
+
__isTeleport?: never;
|
|
4608
|
+
__isSuspense?: never;
|
|
4609
|
+
} & vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
4610
|
+
[key: string]: any;
|
|
4611
|
+
}>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
4612
|
+
docxRowPlacement: 'start';
|
|
4613
|
+
};
|
|
4614
|
+
|
|
4582
4615
|
/** Props for a packaged context-menu row. @public */
|
|
4583
4616
|
interface ContextMenuCommandProps {
|
|
4584
4617
|
icon?: DocxEditorChildren;
|
|
@@ -6715,6 +6748,10 @@ declare const ContextMenuItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
6715
6748
|
onSelect: () => void;
|
|
6716
6749
|
className: string;
|
|
6717
6750
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
6751
|
+
/** Props for `DocxEditor.ContextMenu.Start`. @public */
|
|
6752
|
+
interface ContextMenuStartProps {
|
|
6753
|
+
children?: DocxEditorChildren;
|
|
6754
|
+
}
|
|
6718
6755
|
|
|
6719
6756
|
/** @public */
|
|
6720
6757
|
interface DocxEditorContextMenuProps {
|
|
@@ -6801,6 +6838,8 @@ interface DocxEditorContextMenuNamespace {
|
|
|
6801
6838
|
readonly RefreshTocPageNumbers: typeof ContextMenuRefreshTocPageNumbers;
|
|
6802
6839
|
readonly RemoveToc: typeof ContextMenuRemoveToc;
|
|
6803
6840
|
readonly Item: typeof ContextMenuItem;
|
|
6841
|
+
/** Host rows that render above the packaged rows instead of after them. */
|
|
6842
|
+
readonly Start: typeof ContextMenuStart;
|
|
6804
6843
|
readonly Slot: typeof MenuItem;
|
|
6805
6844
|
readonly Row: typeof MenuRow;
|
|
6806
6845
|
readonly Group: typeof MenuGroup;
|
|
@@ -6810,10 +6849,22 @@ interface DocxEditorContextMenuNamespace {
|
|
|
6810
6849
|
/** @public */
|
|
6811
6850
|
declare const ContextMenu: DocxEditorContextMenuNamespace;
|
|
6812
6851
|
|
|
6813
|
-
/**
|
|
6852
|
+
/**
|
|
6853
|
+
* Where the panel opened, in client coordinates, and how it was opened.
|
|
6854
|
+
*
|
|
6855
|
+
* @public
|
|
6856
|
+
*/
|
|
6814
6857
|
interface ContextMenuAnchor {
|
|
6858
|
+
/** Horizontal client coordinate the panel opened at, in CSS pixels. */
|
|
6815
6859
|
readonly x: number;
|
|
6860
|
+
/** Vertical client coordinate the panel opened at, in CSS pixels. */
|
|
6816
6861
|
readonly y: number;
|
|
6862
|
+
/**
|
|
6863
|
+
* `pointer` for a right-click, which opens at the pointer. `keyboard` for Shift+F10 or the
|
|
6864
|
+
* Menu key, which opens below the caret, or at the top-left of the document area when the
|
|
6865
|
+
* caret is not on a painted page.
|
|
6866
|
+
*/
|
|
6867
|
+
readonly trigger: 'pointer' | 'keyboard';
|
|
6817
6868
|
}
|
|
6818
6869
|
/** @public */
|
|
6819
6870
|
interface ContextMenuContextValue {
|
|
@@ -6824,8 +6875,49 @@ interface ContextMenuContextValue {
|
|
|
6824
6875
|
readonly clipboardRefusal: string | null;
|
|
6825
6876
|
readonly reportClipboardRefusal: (reason: string) => void;
|
|
6826
6877
|
}
|
|
6827
|
-
/**
|
|
6878
|
+
/**
|
|
6879
|
+
* The element the opening right-click landed on, or null while the menu is closed.
|
|
6880
|
+
*
|
|
6881
|
+
* A menu opened from the keyboard has no target; read the caret with
|
|
6882
|
+
* `editor.getSelectionRange()`.
|
|
6883
|
+
*
|
|
6884
|
+
* @public
|
|
6885
|
+
*/
|
|
6828
6886
|
declare function useContextMenuTarget(): HTMLElement | null;
|
|
6887
|
+
/**
|
|
6888
|
+
* Where the open menu is anchored and how it was opened, or null while the menu is closed.
|
|
6889
|
+
*
|
|
6890
|
+
* Rows in `ContextMenu.Start` read `trigger` to tell a right-click from a keyboard open,
|
|
6891
|
+
* which acts on the caret rather than on a pointer target. The ref follows the menu, so a
|
|
6892
|
+
* row that stays mounted while the menu opens again reads the new anchor.
|
|
6893
|
+
*
|
|
6894
|
+
* @public
|
|
6895
|
+
*/
|
|
6896
|
+
declare function useContextMenuAnchor(): ComputedRef<ContextMenuAnchor | null>;
|
|
6897
|
+
/**
|
|
6898
|
+
* The text highlights the open context menu is about, topmost first. Pass a set name to read
|
|
6899
|
+
* one set. `R` is your range type, so fields you added to your ranges come back typed on
|
|
6900
|
+
* `range`.
|
|
6901
|
+
*
|
|
6902
|
+
* For a right-click (`trigger: 'pointer'`), these are the marks under the pointer. For a
|
|
6903
|
+
* keyboard open (`trigger: 'keyboard'`, Shift+F10 or the Menu key), these are the marks whose
|
|
6904
|
+
* current range holds the caret: same paragraph, and the caret offset from `start` to
|
|
6905
|
+
* `start + length`, both ends included. For a range selection, the caret is its `head`. A
|
|
6906
|
+
* keyboard hit's `rect` is the mark's rectangle on the caret's line.
|
|
6907
|
+
*
|
|
6908
|
+
* A document change while the menu is open, such as a collaborator's edit, reads the marks
|
|
6909
|
+
* again, so `start` and `length` never describe text that moved. Text that moved away from
|
|
6910
|
+
* the pointer or the caret is no longer reported. Empty while the menu is closed, and when
|
|
6911
|
+
* the caret is on a page that is not painted.
|
|
6912
|
+
*
|
|
6913
|
+
* @example
|
|
6914
|
+
* ```ts
|
|
6915
|
+
* const hits = useContextMenuHighlights<MisspellingRange>('spelling');
|
|
6916
|
+
* // hits.value[0]?.range.suggestions
|
|
6917
|
+
* ```
|
|
6918
|
+
* @public
|
|
6919
|
+
*/
|
|
6920
|
+
declare function useContextMenuHighlights<R extends HighlightRange = HighlightRange>(name?: string): Readonly<ShallowRef<readonly HighlightHit<R>[]>>;
|
|
6829
6921
|
|
|
6830
6922
|
/** Render overrides for automatically hosted editor popups. False disables a popup. @public */
|
|
6831
6923
|
interface DocxEditorPopups {
|
|
@@ -9114,10 +9206,33 @@ declare const DocxEditorChartPane: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
9114
9206
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9115
9207
|
|
|
9116
9208
|
/**
|
|
9117
|
-
* Call `listener` for each
|
|
9118
|
-
*
|
|
9209
|
+
* Call `listener` for each request for a pane in `options.panes`: Insert > Chart and Edit chart
|
|
9210
|
+
* ask for `'chart'`, and Format shape asks for `'shape'`. The default is `['chart']`. A request
|
|
9211
|
+
* says what the user asked to see, not where: answer it with any UI, such as a popover, a
|
|
9212
|
+
* drawer, a dialog, or `DocxEditor.SidePanel`, and render `DocxEditor.PaneSections` or single
|
|
9213
|
+
* parts in it. Listening for a pane makes its chrome available, so list only the panes the host
|
|
9214
|
+
* shows.
|
|
9215
|
+
*
|
|
9216
|
+
* @example
|
|
9217
|
+
* ```vue
|
|
9218
|
+
* <script setup lang="ts">
|
|
9219
|
+
* import { ref } from 'vue';
|
|
9220
|
+
* import { DocxEditor, usePaneRequest } from '@docx-editor.dev/vue';
|
|
9221
|
+
*
|
|
9222
|
+
* const open = ref(false);
|
|
9223
|
+
* usePaneRequest(() => (open.value = true), { panes: ['chart'] });
|
|
9224
|
+
* </script>
|
|
9225
|
+
*
|
|
9226
|
+
* <template>
|
|
9227
|
+
* <div v-if="open" role="dialog" aria-label="Chart">
|
|
9228
|
+
* <DocxEditor.PaneSections pane="chart" :sections="['type', 'elements']" />
|
|
9229
|
+
* </div>
|
|
9230
|
+
* </template>
|
|
9231
|
+
* ```
|
|
9232
|
+
*
|
|
9233
|
+
* @public
|
|
9119
9234
|
*/
|
|
9120
|
-
declare function usePaneRequest(listener: (request: PaneRequest) => void): void;
|
|
9235
|
+
declare function usePaneRequest(listener: (request: PaneRequest) => void, options?: PaneRequestListenerOptions): void;
|
|
9121
9236
|
/** Props for `DocxEditor.SidePanel`. @public */
|
|
9122
9237
|
interface DocxEditorSidePanelProps {
|
|
9123
9238
|
/** A class name added to the panel. */
|
|
@@ -9125,12 +9240,15 @@ interface DocxEditorSidePanelProps {
|
|
|
9125
9240
|
/** Shows a close button that calls it. */
|
|
9126
9241
|
onClose?: () => void;
|
|
9127
9242
|
/**
|
|
9128
|
-
* The default slot: content that replaces the packaged
|
|
9129
|
-
* the focus, the panel moves it to the first field in this content.
|
|
9243
|
+
* The default slot: content that replaces the packaged panes. When Edit chart or Format shape
|
|
9244
|
+
* asks for the focus, the panel moves it to the first field in this content.
|
|
9130
9245
|
*/
|
|
9131
9246
|
children?: DocxEditorChildren;
|
|
9132
9247
|
}
|
|
9133
|
-
/**
|
|
9248
|
+
/**
|
|
9249
|
+
* The side panel that holds the Chart pane or the Format shape pane. The default slot replaces
|
|
9250
|
+
* the packaged panes. @public
|
|
9251
|
+
*/
|
|
9134
9252
|
declare const DocxEditorSidePanel: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9135
9253
|
className: {
|
|
9136
9254
|
type: StringConstructor;
|
|
@@ -9191,203 +9309,1415 @@ interface UseSelectedChartReturn {
|
|
|
9191
9309
|
*/
|
|
9192
9310
|
declare function useSelectedChart(): UseSelectedChartReturn;
|
|
9193
9311
|
|
|
9194
|
-
/**
|
|
9195
|
-
interface
|
|
9196
|
-
/**
|
|
9197
|
-
|
|
9198
|
-
* active match (`'active'`), or none (`'none'`). Default: `'all'`.
|
|
9199
|
-
*/
|
|
9200
|
-
readonly highlight?: DocumentSearchHighlight;
|
|
9201
|
-
}
|
|
9202
|
-
/** What `useDocumentSearch` answers. @public */
|
|
9203
|
-
interface UseDocumentSearchResult {
|
|
9204
|
-
/** The text in the search box, updated synchronously as the user types. */
|
|
9205
|
-
readonly query: ComputedRef<string>;
|
|
9206
|
-
/** Update the typed query. The search runs after a short debounce. */
|
|
9207
|
-
readonly setQuery: (query: string) => void;
|
|
9208
|
-
/**
|
|
9209
|
-
* Search now and return the matches. `selectFirst` selects the first match; `highlight`
|
|
9210
|
-
* highlights the results until `clear()`, even without this hook's own request.
|
|
9211
|
-
*/
|
|
9212
|
-
readonly find: (query: string, options?: DocumentSearchFindOptions) => readonly TextMatch[];
|
|
9213
|
-
readonly matchCase: ComputedRef<boolean>;
|
|
9214
|
-
readonly setMatchCase: (value: boolean) => void;
|
|
9215
|
-
readonly wholeWord: ComputedRef<boolean>;
|
|
9216
|
-
readonly setWholeWord: (value: boolean) => void;
|
|
9217
|
-
/** Matches for the last searched query, in document order. */
|
|
9218
|
-
readonly matches: ComputedRef<readonly TextMatch[]>;
|
|
9219
|
-
/** The search stopped at its cap with matches still ahead, so a count reads "2000+". */
|
|
9220
|
-
readonly truncated: ComputedRef<boolean>;
|
|
9221
|
-
/** Index of the current match, or `-1` before any navigation. */
|
|
9222
|
-
readonly activeIndex: ComputedRef<number>;
|
|
9223
|
-
/** The current match, or `null` before any navigation. */
|
|
9224
|
-
readonly activeMatch: ComputedRef<TextMatch | null>;
|
|
9225
|
-
/**
|
|
9226
|
-
* Select a match by index and bring its page into view. Focus stays where it is, so a
|
|
9227
|
-
* search box keeps it. Returns false for an index without a match.
|
|
9228
|
-
*/
|
|
9229
|
-
readonly goTo: (index: number) => boolean;
|
|
9230
|
-
/** Next / previous match, wrapping at the ends the way Word's arrows do. */
|
|
9231
|
-
readonly next: () => boolean;
|
|
9232
|
-
readonly previous: () => boolean;
|
|
9233
|
-
/** Empty the query and drop the results, without changing the selection. */
|
|
9234
|
-
readonly clear: () => void;
|
|
9235
|
-
/** Whether a typed query is waiting for its debounce to elapse. */
|
|
9236
|
-
readonly isPending: ComputedRef<boolean>;
|
|
9237
|
-
}
|
|
9238
|
-
/**
|
|
9239
|
-
* The editor's shared search, with no UI attached. The packaged Find pane uses the same
|
|
9240
|
-
* session, so state set here shows there.
|
|
9241
|
-
*
|
|
9242
|
-
* @public
|
|
9243
|
-
*/
|
|
9244
|
-
declare function useDocumentSearch(options?: MaybeRefOrGetter<UseDocumentSearchOptions>): UseDocumentSearchResult;
|
|
9245
|
-
|
|
9246
|
-
/** @public */
|
|
9247
|
-
type NavigationTab$1 = 'headings' | 'find' | 'goto';
|
|
9248
|
-
/** @public */
|
|
9249
|
-
interface UseNavigationPaneOptions {
|
|
9250
|
-
defaultOpen?: boolean;
|
|
9251
|
-
open?: boolean;
|
|
9252
|
-
onOpenChange?: (open: boolean) => void;
|
|
9253
|
-
defaultTab?: NavigationTab$1;
|
|
9254
|
-
tab?: NavigationTab$1;
|
|
9255
|
-
onTabChange?: (tab: NavigationTab$1) => void;
|
|
9256
|
-
paneWidth?: number;
|
|
9257
|
-
}
|
|
9258
|
-
/** @public */
|
|
9259
|
-
interface UseNavigationPaneResult {
|
|
9260
|
-
readonly open: ComputedRef<boolean>;
|
|
9261
|
-
readonly setOpen: (open: boolean) => void;
|
|
9262
|
-
readonly toggle: () => void;
|
|
9263
|
-
readonly tab: ComputedRef<NavigationTab$1>;
|
|
9264
|
-
readonly setTab: (tab: NavigationTab$1) => void;
|
|
9265
|
-
readonly paneWidth: ComputedRef<number>;
|
|
9266
|
-
readonly shift: ComputedRef<number>;
|
|
9267
|
-
/**
|
|
9268
|
-
* Whether the open pane covers the page instead of moving it. True on a viewport too
|
|
9269
|
-
* narrow to show a readable page beside the pane (see `NAVIGATION_PANE_MIN_PAGE_ROOM`);
|
|
9270
|
-
* `shift` is then 0, and `DocxEditorNavigation` closes after a heading or result is picked.
|
|
9271
|
-
*/
|
|
9272
|
-
readonly overlay: ComputedRef<boolean>;
|
|
9312
|
+
/** Props for `DocxEditor.ShapePane`. @public */
|
|
9313
|
+
interface DocxEditorShapePaneProps {
|
|
9314
|
+
/** A class name added to the pane. */
|
|
9315
|
+
className?: string;
|
|
9273
9316
|
}
|
|
9274
|
-
/** @public */
|
|
9275
|
-
declare
|
|
9276
|
-
|
|
9277
|
-
/**
|
|
9278
|
-
* The Bookmarks panel: a bookmark search box, the sort order and hidden-bookmarks toggle, and
|
|
9279
|
-
* the bookmarks it offers, grouped by place when sorted by location.
|
|
9280
|
-
*
|
|
9281
|
-
* @public
|
|
9282
|
-
*/
|
|
9283
|
-
declare const NavigationGoTo: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9317
|
+
/** The fill and outline of the selected shape, or why the pane shows none. @public */
|
|
9318
|
+
declare const DocxEditorShapePane: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9284
9319
|
className: {
|
|
9285
9320
|
type: StringConstructor;
|
|
9286
9321
|
default: undefined;
|
|
9287
9322
|
};
|
|
9288
|
-
style: {
|
|
9289
|
-
type: PropType<CSSProperties>;
|
|
9290
|
-
default: undefined;
|
|
9291
|
-
};
|
|
9292
9323
|
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9293
9324
|
className: {
|
|
9294
9325
|
type: StringConstructor;
|
|
9295
9326
|
default: undefined;
|
|
9296
9327
|
};
|
|
9297
|
-
style: {
|
|
9298
|
-
type: PropType<CSSProperties>;
|
|
9299
|
-
default: undefined;
|
|
9300
|
-
};
|
|
9301
9328
|
}>> & Readonly<{}>, {
|
|
9302
9329
|
className: string;
|
|
9303
|
-
style: CSSProperties;
|
|
9304
9330
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9305
9331
|
|
|
9306
|
-
/**
|
|
9307
|
-
interface
|
|
9332
|
+
/** What `useSelectedShape` returns. @public */
|
|
9333
|
+
interface UseSelectedShapeReturn {
|
|
9334
|
+
/** The drawing node id of the selected shape, text box, line, or group, or null. */
|
|
9335
|
+
readonly drawingNodeId: ComputedRef<string | null>;
|
|
9336
|
+
/** The shape selected inside the group by a second press, or null. */
|
|
9337
|
+
readonly memberId: ComputedRef<string | null>;
|
|
9338
|
+
/** The fill and outline, or null when no shape with a fill or outline is selected. */
|
|
9339
|
+
readonly format: ComputedRef<ShapeFormatState | null>;
|
|
9340
|
+
/** Whether `setShapeFill` can run now. */
|
|
9341
|
+
readonly canEditFill: ComputedRef<boolean>;
|
|
9342
|
+
/** Whether the transparency of a solid fill can change now. */
|
|
9343
|
+
readonly canEditTransparency: ComputedRef<boolean>;
|
|
9344
|
+
/** Whether `setShapeOutline` can run now. */
|
|
9345
|
+
readonly canEditOutline: ComputedRef<boolean>;
|
|
9346
|
+
/** Why the fill cannot change, translated, or null when it can. */
|
|
9347
|
+
readonly fillDisabledReason: ComputedRef<string | null>;
|
|
9348
|
+
/** Why the transparency cannot change, translated, or null when it can. */
|
|
9349
|
+
readonly transparencyDisabledReason: ComputedRef<string | null>;
|
|
9350
|
+
/** Why the outline cannot change, translated, or null when it can. */
|
|
9351
|
+
readonly outlineDisabledReason: ComputedRef<string | null>;
|
|
9352
|
+
/**
|
|
9353
|
+
* Run a fill or outline edit on the shape this composable shows, as `editor.exec` does,
|
|
9354
|
+
* without the `drawingNodeId`: `execute({ type: 'setShapeOutline', color: '0070C0',
|
|
9355
|
+
* widthPt: 3 })`. A refusal's reason is translated.
|
|
9356
|
+
*/
|
|
9357
|
+
readonly execute: (command: SelectedShapeCommand) => ExecResult;
|
|
9358
|
+
/**
|
|
9359
|
+
* Apply one checked change, as the packaged pane does: `edit({ type: 'fillColor',
|
|
9360
|
+
* color: 'accent1' })` or `edit({ type: 'outlineWidth', text: '3' })`. A theme color resolves
|
|
9361
|
+
* through the document's theme. Text the pane cannot read refuses with a translated reason.
|
|
9362
|
+
* One undo step.
|
|
9363
|
+
*/
|
|
9364
|
+
readonly edit: (change: ShapePaneChange) => ExecResult;
|
|
9365
|
+
}
|
|
9366
|
+
/**
|
|
9367
|
+
* The selected shape, its fill and outline, whether each can change, and `execute` for the
|
|
9368
|
+
* shape commands. Use it inside `DocxEditor.Root` to build a Format shape pane of your own. It
|
|
9369
|
+
* reads the shape on every editor change, because protection, locks, and collaboration change
|
|
9370
|
+
* what `can` answers. Every refusal reason it returns is translated. @public
|
|
9371
|
+
*/
|
|
9372
|
+
declare function useSelectedShape(): UseSelectedShapeReturn;
|
|
9373
|
+
|
|
9374
|
+
/** The value of a picker: a pick, `none` for No colour, or null when the target is mixed. @public */
|
|
9375
|
+
type ColorPickerValue = ColorPick | 'none' | null;
|
|
9376
|
+
/** Props for `ColorPicker.Root`. @public */
|
|
9377
|
+
interface ColorPickerRootProps {
|
|
9378
|
+
value: ColorPickerValue;
|
|
9379
|
+
onPick: (pick: ColorPick | 'none') => void;
|
|
9380
|
+
noColor?: 'none' | 'auto' | false;
|
|
9381
|
+
automaticHex?: string;
|
|
9382
|
+
themeHexes?: readonly string[];
|
|
9383
|
+
disabled?: boolean;
|
|
9384
|
+
open?: boolean;
|
|
9385
|
+
onOpenChange?: (open: boolean) => void;
|
|
9308
9386
|
className?: string;
|
|
9309
|
-
|
|
9310
|
-
|
|
9387
|
+
/** Renders the single child of the default slot as the root, with the picker's attributes. */
|
|
9388
|
+
asChild?: boolean;
|
|
9311
9389
|
}
|
|
9312
|
-
/** @public */
|
|
9313
|
-
interface
|
|
9314
|
-
|
|
9390
|
+
/** Props for `ColorPicker.Trigger`. Other attributes (`aria-label`, `title`) pass through. @public */
|
|
9391
|
+
interface ColorPickerTriggerProps {
|
|
9392
|
+
className?: string;
|
|
9393
|
+
/** Renders the single child of the default slot as the trigger, without the colour chip. */
|
|
9394
|
+
asChild?: boolean;
|
|
9315
9395
|
}
|
|
9316
|
-
/** @public */
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
|
|
9332
|
-
|
|
9333
|
-
|
|
9334
|
-
|
|
9335
|
-
}
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
}
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9396
|
+
/** Props for `ColorPicker.Swatch`. @public */
|
|
9397
|
+
interface ColorPickerSwatchProps {
|
|
9398
|
+
pick: ColorPick;
|
|
9399
|
+
/** The paint, `#RRGGBB`; default the paint of `pick` in the document's theme. */
|
|
9400
|
+
hex?: string;
|
|
9401
|
+
className?: string;
|
|
9402
|
+
}
|
|
9403
|
+
/** Props for `ColorPicker.Content`. Other attributes (`aria-label`) pass through. @public */
|
|
9404
|
+
interface ColorPickerContentProps {
|
|
9405
|
+
/** Whether the default content shows the hex field. Default true. */
|
|
9406
|
+
hexInput?: boolean;
|
|
9407
|
+
/** Renders the grid in place, inside a popup the host already owns. */
|
|
9408
|
+
inline?: boolean;
|
|
9409
|
+
/**
|
|
9410
|
+
* Renders the grid in this element, through `Teleport`, for a host popover library that
|
|
9411
|
+
* places it. The grid then takes no position of its own.
|
|
9412
|
+
*/
|
|
9413
|
+
container?: Element | null;
|
|
9414
|
+
className?: string;
|
|
9415
|
+
}
|
|
9416
|
+
/** Props for `ColorPicker.NoColor`. The default slot replaces the button text. @public */
|
|
9417
|
+
interface ColorPickerNoColorProps {
|
|
9418
|
+
className?: string;
|
|
9419
|
+
}
|
|
9420
|
+
/** Props for `ColorPicker.HexInput`. @public */
|
|
9421
|
+
interface ColorPickerHexInputProps {
|
|
9422
|
+
/** More class names for the field. */
|
|
9423
|
+
className?: string;
|
|
9424
|
+
}
|
|
9425
|
+
/**
|
|
9426
|
+
* The colour picker compound: `Root`, `Trigger`, `Content`, and the parts of the grid. Every
|
|
9427
|
+
* colour control of the editor is built from it. @public
|
|
9428
|
+
*/
|
|
9429
|
+
declare const ColorPicker: {
|
|
9430
|
+
Root: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9431
|
+
/** The current pick, `none` for No colour, or null when the target shows several colours. */
|
|
9432
|
+
value: {
|
|
9433
|
+
type: PropType<ColorPickerValue>;
|
|
9434
|
+
default: null;
|
|
9435
|
+
};
|
|
9436
|
+
/** Called with the picked colour, or `none` (or `auto`) for the first button of the grid. */
|
|
9437
|
+
onPick: {
|
|
9438
|
+
type: PropType<(pick: ColorPick | 'none') => void>;
|
|
9439
|
+
required: true;
|
|
9440
|
+
};
|
|
9441
|
+
/** `none` (No colour, the default), `auto` (Automatic), or false for no such button. */
|
|
9442
|
+
noColor: {
|
|
9443
|
+
type: PropType<'none' | 'auto' | false>;
|
|
9444
|
+
default: string;
|
|
9445
|
+
};
|
|
9446
|
+
/** The colour that Automatic paints, `#RRGGBB`. */
|
|
9447
|
+
automaticHex: {
|
|
9448
|
+
type: StringConstructor;
|
|
9449
|
+
default: undefined;
|
|
9450
|
+
};
|
|
9451
|
+
/** The theme colours, `RRGGBB` in slot order; default the document's. */
|
|
9452
|
+
themeHexes: {
|
|
9453
|
+
type: PropType<readonly string[]>;
|
|
9454
|
+
default: undefined;
|
|
9455
|
+
};
|
|
9456
|
+
disabled: {
|
|
9457
|
+
type: BooleanConstructor;
|
|
9458
|
+
default: boolean;
|
|
9459
|
+
};
|
|
9460
|
+
/** Open state, for a controlled picker. */
|
|
9461
|
+
open: {
|
|
9462
|
+
type: PropType<boolean | undefined>;
|
|
9463
|
+
default: undefined;
|
|
9464
|
+
};
|
|
9465
|
+
onOpenChange: {
|
|
9466
|
+
type: PropType<(open: boolean) => void>;
|
|
9467
|
+
default: undefined;
|
|
9468
|
+
};
|
|
9469
|
+
className: {
|
|
9470
|
+
type: StringConstructor;
|
|
9471
|
+
default: undefined;
|
|
9472
|
+
};
|
|
9473
|
+
asChild: {
|
|
9474
|
+
type: BooleanConstructor;
|
|
9475
|
+
default: boolean;
|
|
9476
|
+
};
|
|
9477
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9478
|
+
/** The current pick, `none` for No colour, or null when the target shows several colours. */
|
|
9479
|
+
value: {
|
|
9480
|
+
type: PropType<ColorPickerValue>;
|
|
9481
|
+
default: null;
|
|
9482
|
+
};
|
|
9483
|
+
/** Called with the picked colour, or `none` (or `auto`) for the first button of the grid. */
|
|
9484
|
+
onPick: {
|
|
9485
|
+
type: PropType<(pick: ColorPick | 'none') => void>;
|
|
9486
|
+
required: true;
|
|
9487
|
+
};
|
|
9488
|
+
/** `none` (No colour, the default), `auto` (Automatic), or false for no such button. */
|
|
9489
|
+
noColor: {
|
|
9490
|
+
type: PropType<'none' | 'auto' | false>;
|
|
9491
|
+
default: string;
|
|
9492
|
+
};
|
|
9493
|
+
/** The colour that Automatic paints, `#RRGGBB`. */
|
|
9494
|
+
automaticHex: {
|
|
9495
|
+
type: StringConstructor;
|
|
9496
|
+
default: undefined;
|
|
9497
|
+
};
|
|
9498
|
+
/** The theme colours, `RRGGBB` in slot order; default the document's. */
|
|
9499
|
+
themeHexes: {
|
|
9500
|
+
type: PropType<readonly string[]>;
|
|
9501
|
+
default: undefined;
|
|
9502
|
+
};
|
|
9503
|
+
disabled: {
|
|
9504
|
+
type: BooleanConstructor;
|
|
9505
|
+
default: boolean;
|
|
9506
|
+
};
|
|
9507
|
+
/** Open state, for a controlled picker. */
|
|
9508
|
+
open: {
|
|
9509
|
+
type: PropType<boolean | undefined>;
|
|
9510
|
+
default: undefined;
|
|
9511
|
+
};
|
|
9512
|
+
onOpenChange: {
|
|
9513
|
+
type: PropType<(open: boolean) => void>;
|
|
9514
|
+
default: undefined;
|
|
9515
|
+
};
|
|
9516
|
+
className: {
|
|
9517
|
+
type: StringConstructor;
|
|
9518
|
+
default: undefined;
|
|
9519
|
+
};
|
|
9520
|
+
asChild: {
|
|
9521
|
+
type: BooleanConstructor;
|
|
9522
|
+
default: boolean;
|
|
9523
|
+
};
|
|
9524
|
+
}>> & Readonly<{}>, {
|
|
9525
|
+
value: ColorPickerValue;
|
|
9526
|
+
noColor: "auto" | "none" | false;
|
|
9527
|
+
automaticHex: string;
|
|
9528
|
+
themeHexes: readonly string[];
|
|
9529
|
+
disabled: boolean;
|
|
9530
|
+
open: boolean | undefined;
|
|
9531
|
+
onOpenChange: (open: boolean) => void;
|
|
9532
|
+
className: string;
|
|
9533
|
+
asChild: boolean;
|
|
9534
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9535
|
+
Trigger: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9536
|
+
className: {
|
|
9537
|
+
type: StringConstructor;
|
|
9538
|
+
default: undefined;
|
|
9539
|
+
};
|
|
9540
|
+
asChild: {
|
|
9541
|
+
type: BooleanConstructor;
|
|
9542
|
+
default: boolean;
|
|
9543
|
+
};
|
|
9544
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9545
|
+
className: {
|
|
9546
|
+
type: StringConstructor;
|
|
9547
|
+
default: undefined;
|
|
9548
|
+
};
|
|
9549
|
+
asChild: {
|
|
9550
|
+
type: BooleanConstructor;
|
|
9551
|
+
default: boolean;
|
|
9552
|
+
};
|
|
9553
|
+
}>> & Readonly<{}>, {
|
|
9554
|
+
className: string;
|
|
9555
|
+
asChild: boolean;
|
|
9556
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9557
|
+
Content: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9558
|
+
/** Whether the default content shows the hex field. Default true. */
|
|
9559
|
+
hexInput: {
|
|
9560
|
+
type: BooleanConstructor;
|
|
9561
|
+
default: boolean;
|
|
9562
|
+
};
|
|
9563
|
+
/** Renders the grid in place, inside a popup the host already owns. */
|
|
9564
|
+
inline: {
|
|
9565
|
+
type: BooleanConstructor;
|
|
9566
|
+
default: boolean;
|
|
9567
|
+
};
|
|
9568
|
+
/** Renders the grid in this element, through `Teleport`. */
|
|
9569
|
+
container: {
|
|
9570
|
+
type: PropType<Element | null>;
|
|
9571
|
+
default: undefined;
|
|
9572
|
+
};
|
|
9573
|
+
className: {
|
|
9574
|
+
type: StringConstructor;
|
|
9575
|
+
default: undefined;
|
|
9576
|
+
};
|
|
9577
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9578
|
+
/** Whether the default content shows the hex field. Default true. */
|
|
9579
|
+
hexInput: {
|
|
9580
|
+
type: BooleanConstructor;
|
|
9581
|
+
default: boolean;
|
|
9582
|
+
};
|
|
9583
|
+
/** Renders the grid in place, inside a popup the host already owns. */
|
|
9584
|
+
inline: {
|
|
9585
|
+
type: BooleanConstructor;
|
|
9586
|
+
default: boolean;
|
|
9587
|
+
};
|
|
9588
|
+
/** Renders the grid in this element, through `Teleport`. */
|
|
9589
|
+
container: {
|
|
9590
|
+
type: PropType<Element | null>;
|
|
9591
|
+
default: undefined;
|
|
9592
|
+
};
|
|
9593
|
+
className: {
|
|
9594
|
+
type: StringConstructor;
|
|
9595
|
+
default: undefined;
|
|
9596
|
+
};
|
|
9597
|
+
}>> & Readonly<{}>, {
|
|
9598
|
+
hexInput: boolean;
|
|
9599
|
+
inline: boolean;
|
|
9600
|
+
container: Element | null;
|
|
9601
|
+
className: string;
|
|
9602
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9603
|
+
Grid: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9604
|
+
Swatch: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9605
|
+
pick: {
|
|
9606
|
+
type: PropType<ColorPick>;
|
|
9607
|
+
required: true;
|
|
9608
|
+
};
|
|
9609
|
+
/** The paint, `#RRGGBB`; default the paint of `pick` in the document's theme. */
|
|
9610
|
+
hex: {
|
|
9611
|
+
type: StringConstructor;
|
|
9612
|
+
default: undefined;
|
|
9613
|
+
};
|
|
9614
|
+
className: {
|
|
9615
|
+
type: StringConstructor;
|
|
9616
|
+
default: undefined;
|
|
9617
|
+
};
|
|
9618
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9619
|
+
pick: {
|
|
9620
|
+
type: PropType<ColorPick>;
|
|
9621
|
+
required: true;
|
|
9622
|
+
};
|
|
9623
|
+
/** The paint, `#RRGGBB`; default the paint of `pick` in the document's theme. */
|
|
9624
|
+
hex: {
|
|
9625
|
+
type: StringConstructor;
|
|
9626
|
+
default: undefined;
|
|
9627
|
+
};
|
|
9628
|
+
className: {
|
|
9629
|
+
type: StringConstructor;
|
|
9630
|
+
default: undefined;
|
|
9631
|
+
};
|
|
9632
|
+
}>> & Readonly<{}>, {
|
|
9633
|
+
hex: string;
|
|
9634
|
+
className: string;
|
|
9635
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9636
|
+
NoColor: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9637
|
+
className: {
|
|
9638
|
+
type: StringConstructor;
|
|
9639
|
+
default: undefined;
|
|
9640
|
+
};
|
|
9641
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9642
|
+
className: {
|
|
9643
|
+
type: StringConstructor;
|
|
9644
|
+
default: undefined;
|
|
9645
|
+
};
|
|
9646
|
+
}>> & Readonly<{}>, {
|
|
9647
|
+
className: string;
|
|
9648
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9649
|
+
HexInput: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9650
|
+
className: {
|
|
9651
|
+
type: StringConstructor;
|
|
9652
|
+
default: undefined;
|
|
9653
|
+
};
|
|
9654
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9655
|
+
className: {
|
|
9656
|
+
type: StringConstructor;
|
|
9657
|
+
default: undefined;
|
|
9658
|
+
};
|
|
9659
|
+
}>> & Readonly<{}>, {
|
|
9660
|
+
className: string;
|
|
9661
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9662
|
+
};
|
|
9663
|
+
/** The parts of the `ColorPicker` compound. @public */
|
|
9664
|
+
type ColorPickerCompound = typeof ColorPicker;
|
|
9665
|
+
|
|
9666
|
+
/** A `shape.*` or `chart.*` slot. @public */
|
|
9667
|
+
type ObjectSlotId = keyof ObjectSlotValueMap;
|
|
9668
|
+
/** How a part renders: with a visible label (`field`), or as a toolbar control (`compact`). @public */
|
|
9669
|
+
type ObjectControlVariant = 'field' | 'compact';
|
|
9670
|
+
/** The props every shape and chart part takes. @public */
|
|
9671
|
+
interface ObjectControlProps {
|
|
9672
|
+
/** A class name added to the part's root. */
|
|
9673
|
+
className?: string;
|
|
9674
|
+
/** Replaces the label, which defaults to the slot's translated name. */
|
|
9675
|
+
label?: string;
|
|
9676
|
+
/** Default `field`, or `compact` inside `DocxEditorToolbar`. */
|
|
9677
|
+
variant?: ObjectControlVariant;
|
|
9678
|
+
/** Renders nothing, so a toolbar override can remove the slot. */
|
|
9679
|
+
hidden?: boolean;
|
|
9680
|
+
}
|
|
9681
|
+
/**
|
|
9682
|
+
* The props of a part whose control is a button: the colour parts and the toggle parts. With
|
|
9683
|
+
* `asChild`, the one child of the default slot becomes the button. @public
|
|
9684
|
+
*/
|
|
9685
|
+
interface ObjectButtonPartProps extends ObjectControlProps {
|
|
9686
|
+
/** Replaces the slot's icon in the compact variant. */
|
|
9687
|
+
icon?: DocxEditorChildren;
|
|
9688
|
+
/** Renders the one child of the default slot as the button, with the part's props merged in. */
|
|
9689
|
+
asChild?: boolean;
|
|
9690
|
+
/** With `asChild`, the element that becomes the button. Pass it in the default slot. */
|
|
9691
|
+
children?: DocxEditorChildren;
|
|
9692
|
+
}
|
|
9693
|
+
/** What `useObjectControl` returns for every slot. @public */
|
|
9694
|
+
interface ObjectControlState<K extends ObjectSlotId> {
|
|
9695
|
+
readonly slotId: K;
|
|
9696
|
+
/** The slot's translated name. */
|
|
9697
|
+
readonly label: ComputedRef<string>;
|
|
9698
|
+
/**
|
|
9699
|
+
* The value the object shows now, typed for the slot, or null when nothing is selected, the
|
|
9700
|
+
* object shows several values, or the slot has no single value (`chart.seriesColor`,
|
|
9701
|
+
* `chart.data`).
|
|
9702
|
+
*/
|
|
9703
|
+
readonly value: ComputedRef<ObjectSlotReadValueMap[K] | null>;
|
|
9704
|
+
/** The values a list slot offers, in list order; empty for other slots. */
|
|
9705
|
+
readonly options: ComputedRef<readonly ObjectSlotValueMap[K][]>;
|
|
9706
|
+
/** Whether a toggle is on, or whether the object shows the property. */
|
|
9707
|
+
readonly isActive: ComputedRef<boolean>;
|
|
9708
|
+
readonly isEnabled: ComputedRef<boolean>;
|
|
9709
|
+
/** Why the control is disabled, translated, or null. */
|
|
9710
|
+
readonly disabledReason: ComputedRef<string | null>;
|
|
9711
|
+
/** Run the slot with `value`, as `runToolbarCommand` does. */
|
|
9712
|
+
readonly execute: (value: ObjectSlotValueMap[K], options?: EditorExecOptions) => ExecResult;
|
|
9713
|
+
}
|
|
9714
|
+
/** The member a toggle slot adds: a run with no value turns the element on or off. @public */
|
|
9715
|
+
interface ObjectToggleControl {
|
|
9716
|
+
readonly toggle: (options?: EditorExecOptions) => ExecResult;
|
|
9717
|
+
}
|
|
9718
|
+
/**
|
|
9719
|
+
* What `useObjectControl` returns: the state and `execute`, and `toggle` for the toggle slots
|
|
9720
|
+
* (`chart.dataLabels`, `chart.axes`, `chart.gridlines`). @public
|
|
9721
|
+
*/
|
|
9722
|
+
type UseObjectControlReturn<K extends ObjectSlotId> = ObjectControlState<K> & (K extends ObjectToggleSlotId ? ObjectToggleControl : unknown);
|
|
9723
|
+
/**
|
|
9724
|
+
* Bind one `shape.*` or `chart.*` slot: its typed value, the values a list offers, the enabled
|
|
9725
|
+
* state, the translated reason, and `execute`. Use it to build a control the packaged parts do
|
|
9726
|
+
* not cover. @public
|
|
9727
|
+
*/
|
|
9728
|
+
declare function useObjectControl<K extends ObjectSlotId>(slotId: K): UseObjectControlReturn<K>;
|
|
9729
|
+
/** A part component: it renders one slot, and `docxSlot` names the slot for toolbar overrides. @public */
|
|
9730
|
+
type ObjectPartComponent<C, S extends ObjectSlotId> = C & {
|
|
9731
|
+
readonly docxSlot: S;
|
|
9732
|
+
};
|
|
9733
|
+
|
|
9734
|
+
/** Props of a shape part. @public */
|
|
9735
|
+
type ShapePartProps = ObjectControlProps;
|
|
9736
|
+
/** Props of a shape colour part: it also takes `icon` and `asChild`. @public */
|
|
9737
|
+
type ShapeColorPartProps = ObjectButtonPartProps;
|
|
9738
|
+
/** The fill colour of the selected shape (`shape.fill`), with No fill. @public */
|
|
9739
|
+
declare const DocxEditorShapeFill: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9740
|
+
readonly className: {
|
|
9741
|
+
readonly type: StringConstructor;
|
|
9742
|
+
readonly default: undefined;
|
|
9743
|
+
};
|
|
9744
|
+
readonly label: {
|
|
9745
|
+
readonly type: StringConstructor;
|
|
9746
|
+
readonly default: undefined;
|
|
9747
|
+
};
|
|
9748
|
+
readonly variant: {
|
|
9749
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9750
|
+
readonly default: undefined;
|
|
9751
|
+
};
|
|
9752
|
+
readonly hidden: {
|
|
9753
|
+
readonly type: BooleanConstructor;
|
|
9754
|
+
readonly default: false;
|
|
9755
|
+
};
|
|
9756
|
+
readonly icon: {
|
|
9757
|
+
readonly type: vue.PropType<DocxEditorChildren>;
|
|
9758
|
+
readonly default: undefined;
|
|
9759
|
+
};
|
|
9760
|
+
readonly asChild: {
|
|
9761
|
+
readonly type: BooleanConstructor;
|
|
9762
|
+
readonly default: false;
|
|
9763
|
+
};
|
|
9764
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9765
|
+
readonly className: {
|
|
9766
|
+
readonly type: StringConstructor;
|
|
9767
|
+
readonly default: undefined;
|
|
9768
|
+
};
|
|
9769
|
+
readonly label: {
|
|
9770
|
+
readonly type: StringConstructor;
|
|
9771
|
+
readonly default: undefined;
|
|
9772
|
+
};
|
|
9773
|
+
readonly variant: {
|
|
9774
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9775
|
+
readonly default: undefined;
|
|
9776
|
+
};
|
|
9777
|
+
readonly hidden: {
|
|
9778
|
+
readonly type: BooleanConstructor;
|
|
9779
|
+
readonly default: false;
|
|
9780
|
+
};
|
|
9781
|
+
readonly icon: {
|
|
9782
|
+
readonly type: vue.PropType<DocxEditorChildren>;
|
|
9783
|
+
readonly default: undefined;
|
|
9784
|
+
};
|
|
9785
|
+
readonly asChild: {
|
|
9786
|
+
readonly type: BooleanConstructor;
|
|
9787
|
+
readonly default: false;
|
|
9788
|
+
};
|
|
9789
|
+
}>> & Readonly<{}>, {
|
|
9790
|
+
readonly className: string;
|
|
9791
|
+
readonly label: string;
|
|
9792
|
+
readonly variant: ObjectControlVariant;
|
|
9793
|
+
readonly hidden: boolean;
|
|
9794
|
+
readonly icon: DocxEditorChildren;
|
|
9795
|
+
readonly asChild: boolean;
|
|
9796
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "shape.fill">;
|
|
9797
|
+
/** The transparency of a solid fill, in percent (`shape.fillTransparency`). @public */
|
|
9798
|
+
declare const DocxEditorShapeFillTransparency: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9799
|
+
readonly className: {
|
|
9800
|
+
readonly type: StringConstructor;
|
|
9801
|
+
readonly default: undefined;
|
|
9802
|
+
};
|
|
9803
|
+
readonly label: {
|
|
9804
|
+
readonly type: StringConstructor;
|
|
9805
|
+
readonly default: undefined;
|
|
9806
|
+
};
|
|
9807
|
+
readonly variant: {
|
|
9808
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9809
|
+
readonly default: undefined;
|
|
9810
|
+
};
|
|
9811
|
+
readonly hidden: {
|
|
9812
|
+
readonly type: BooleanConstructor;
|
|
9813
|
+
readonly default: false;
|
|
9814
|
+
};
|
|
9815
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9816
|
+
readonly className: {
|
|
9817
|
+
readonly type: StringConstructor;
|
|
9818
|
+
readonly default: undefined;
|
|
9819
|
+
};
|
|
9820
|
+
readonly label: {
|
|
9821
|
+
readonly type: StringConstructor;
|
|
9822
|
+
readonly default: undefined;
|
|
9823
|
+
};
|
|
9824
|
+
readonly variant: {
|
|
9825
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9826
|
+
readonly default: undefined;
|
|
9827
|
+
};
|
|
9828
|
+
readonly hidden: {
|
|
9829
|
+
readonly type: BooleanConstructor;
|
|
9830
|
+
readonly default: false;
|
|
9831
|
+
};
|
|
9832
|
+
}>> & Readonly<{}>, {
|
|
9833
|
+
readonly className: string;
|
|
9834
|
+
readonly label: string;
|
|
9835
|
+
readonly variant: ObjectControlVariant;
|
|
9836
|
+
readonly hidden: boolean;
|
|
9837
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "shape.fillTransparency">;
|
|
9838
|
+
/** The outline colour of the selected shape (`shape.outlineColor`), with No line. @public */
|
|
9839
|
+
declare const DocxEditorShapeOutlineColor: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9840
|
+
readonly className: {
|
|
9841
|
+
readonly type: StringConstructor;
|
|
9842
|
+
readonly default: undefined;
|
|
9843
|
+
};
|
|
9844
|
+
readonly label: {
|
|
9845
|
+
readonly type: StringConstructor;
|
|
9846
|
+
readonly default: undefined;
|
|
9847
|
+
};
|
|
9848
|
+
readonly variant: {
|
|
9849
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9850
|
+
readonly default: undefined;
|
|
9851
|
+
};
|
|
9852
|
+
readonly hidden: {
|
|
9853
|
+
readonly type: BooleanConstructor;
|
|
9854
|
+
readonly default: false;
|
|
9855
|
+
};
|
|
9856
|
+
readonly icon: {
|
|
9857
|
+
readonly type: vue.PropType<DocxEditorChildren>;
|
|
9858
|
+
readonly default: undefined;
|
|
9859
|
+
};
|
|
9860
|
+
readonly asChild: {
|
|
9861
|
+
readonly type: BooleanConstructor;
|
|
9862
|
+
readonly default: false;
|
|
9863
|
+
};
|
|
9864
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9865
|
+
readonly className: {
|
|
9866
|
+
readonly type: StringConstructor;
|
|
9867
|
+
readonly default: undefined;
|
|
9868
|
+
};
|
|
9869
|
+
readonly label: {
|
|
9870
|
+
readonly type: StringConstructor;
|
|
9871
|
+
readonly default: undefined;
|
|
9872
|
+
};
|
|
9873
|
+
readonly variant: {
|
|
9874
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9875
|
+
readonly default: undefined;
|
|
9876
|
+
};
|
|
9877
|
+
readonly hidden: {
|
|
9878
|
+
readonly type: BooleanConstructor;
|
|
9879
|
+
readonly default: false;
|
|
9880
|
+
};
|
|
9881
|
+
readonly icon: {
|
|
9882
|
+
readonly type: vue.PropType<DocxEditorChildren>;
|
|
9883
|
+
readonly default: undefined;
|
|
9884
|
+
};
|
|
9885
|
+
readonly asChild: {
|
|
9886
|
+
readonly type: BooleanConstructor;
|
|
9887
|
+
readonly default: false;
|
|
9888
|
+
};
|
|
9889
|
+
}>> & Readonly<{}>, {
|
|
9890
|
+
readonly className: string;
|
|
9891
|
+
readonly label: string;
|
|
9892
|
+
readonly variant: ObjectControlVariant;
|
|
9893
|
+
readonly hidden: boolean;
|
|
9894
|
+
readonly icon: DocxEditorChildren;
|
|
9895
|
+
readonly asChild: boolean;
|
|
9896
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "shape.outlineColor">;
|
|
9897
|
+
/**
|
|
9898
|
+
* The outline width in points (`shape.outlineWidth`): a list of preset widths, and in a field
|
|
9899
|
+
* a number box for any other width. @public
|
|
9900
|
+
*/
|
|
9901
|
+
declare const DocxEditorShapeOutlineWidth: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9902
|
+
readonly className: {
|
|
9903
|
+
readonly type: StringConstructor;
|
|
9904
|
+
readonly default: undefined;
|
|
9905
|
+
};
|
|
9906
|
+
readonly label: {
|
|
9907
|
+
readonly type: StringConstructor;
|
|
9908
|
+
readonly default: undefined;
|
|
9909
|
+
};
|
|
9910
|
+
readonly variant: {
|
|
9911
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9912
|
+
readonly default: undefined;
|
|
9913
|
+
};
|
|
9914
|
+
readonly hidden: {
|
|
9915
|
+
readonly type: BooleanConstructor;
|
|
9916
|
+
readonly default: false;
|
|
9917
|
+
};
|
|
9918
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9919
|
+
readonly className: {
|
|
9920
|
+
readonly type: StringConstructor;
|
|
9921
|
+
readonly default: undefined;
|
|
9922
|
+
};
|
|
9923
|
+
readonly label: {
|
|
9924
|
+
readonly type: StringConstructor;
|
|
9925
|
+
readonly default: undefined;
|
|
9926
|
+
};
|
|
9927
|
+
readonly variant: {
|
|
9928
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9929
|
+
readonly default: undefined;
|
|
9930
|
+
};
|
|
9931
|
+
readonly hidden: {
|
|
9932
|
+
readonly type: BooleanConstructor;
|
|
9933
|
+
readonly default: false;
|
|
9934
|
+
};
|
|
9935
|
+
}>> & Readonly<{}>, {
|
|
9936
|
+
readonly className: string;
|
|
9937
|
+
readonly label: string;
|
|
9938
|
+
readonly variant: ObjectControlVariant;
|
|
9939
|
+
readonly hidden: boolean;
|
|
9940
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "shape.outlineWidth">;
|
|
9941
|
+
/** The outline dash (`shape.outlineDash`): solid, dotted, or dashed. @public */
|
|
9942
|
+
declare const DocxEditorShapeOutlineDash: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9943
|
+
readonly className: {
|
|
9944
|
+
readonly type: StringConstructor;
|
|
9945
|
+
readonly default: undefined;
|
|
9946
|
+
};
|
|
9947
|
+
readonly label: {
|
|
9948
|
+
readonly type: StringConstructor;
|
|
9949
|
+
readonly default: undefined;
|
|
9950
|
+
};
|
|
9951
|
+
readonly variant: {
|
|
9952
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9953
|
+
readonly default: undefined;
|
|
9954
|
+
};
|
|
9955
|
+
readonly hidden: {
|
|
9956
|
+
readonly type: BooleanConstructor;
|
|
9957
|
+
readonly default: false;
|
|
9958
|
+
};
|
|
9959
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
9960
|
+
readonly className: {
|
|
9961
|
+
readonly type: StringConstructor;
|
|
9962
|
+
readonly default: undefined;
|
|
9963
|
+
};
|
|
9964
|
+
readonly label: {
|
|
9965
|
+
readonly type: StringConstructor;
|
|
9966
|
+
readonly default: undefined;
|
|
9967
|
+
};
|
|
9968
|
+
readonly variant: {
|
|
9969
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
9970
|
+
readonly default: undefined;
|
|
9971
|
+
};
|
|
9972
|
+
readonly hidden: {
|
|
9973
|
+
readonly type: BooleanConstructor;
|
|
9974
|
+
readonly default: false;
|
|
9975
|
+
};
|
|
9976
|
+
}>> & Readonly<{}>, {
|
|
9977
|
+
readonly className: string;
|
|
9978
|
+
readonly label: string;
|
|
9979
|
+
readonly variant: ObjectControlVariant;
|
|
9980
|
+
readonly hidden: boolean;
|
|
9981
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "shape.outlineDash">;
|
|
9982
|
+
|
|
9983
|
+
/** Props of a chart part. @public */
|
|
9984
|
+
type ChartPartProps = ObjectControlProps;
|
|
9985
|
+
/** Props of a chart toggle part: it also takes `icon` and `asChild`. @public */
|
|
9986
|
+
type ChartTogglePartProps = ObjectButtonPartProps;
|
|
9987
|
+
/** Props of `DocxEditor.ChartSeriesColors`. @public */
|
|
9988
|
+
interface ChartSeriesColorsProps extends ChartPartProps {
|
|
9989
|
+
/** Shows the colour of this series (or pie point) only. */
|
|
9990
|
+
index?: number;
|
|
9991
|
+
}
|
|
9992
|
+
/**
|
|
9993
|
+
* The chart type (`chart.type`). A field notes when a type change drops colours or axis titles,
|
|
9994
|
+
* and when a pie chart shows only its first series. @public
|
|
9995
|
+
*/
|
|
9996
|
+
declare const DocxEditorChartType: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
9997
|
+
readonly className: {
|
|
9998
|
+
readonly type: StringConstructor;
|
|
9999
|
+
readonly default: undefined;
|
|
10000
|
+
};
|
|
10001
|
+
readonly label: {
|
|
10002
|
+
readonly type: StringConstructor;
|
|
10003
|
+
readonly default: undefined;
|
|
10004
|
+
};
|
|
10005
|
+
readonly variant: {
|
|
10006
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10007
|
+
readonly default: undefined;
|
|
10008
|
+
};
|
|
10009
|
+
readonly hidden: {
|
|
10010
|
+
readonly type: BooleanConstructor;
|
|
10011
|
+
readonly default: false;
|
|
10012
|
+
};
|
|
10013
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10014
|
+
readonly className: {
|
|
10015
|
+
readonly type: StringConstructor;
|
|
10016
|
+
readonly default: undefined;
|
|
10017
|
+
};
|
|
10018
|
+
readonly label: {
|
|
10019
|
+
readonly type: StringConstructor;
|
|
10020
|
+
readonly default: undefined;
|
|
10021
|
+
};
|
|
10022
|
+
readonly variant: {
|
|
10023
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10024
|
+
readonly default: undefined;
|
|
10025
|
+
};
|
|
10026
|
+
readonly hidden: {
|
|
10027
|
+
readonly type: BooleanConstructor;
|
|
10028
|
+
readonly default: false;
|
|
10029
|
+
};
|
|
10030
|
+
}>> & Readonly<{}>, {
|
|
10031
|
+
readonly className: string;
|
|
10032
|
+
readonly label: string;
|
|
10033
|
+
readonly variant: ObjectControlVariant;
|
|
10034
|
+
readonly hidden: boolean;
|
|
10035
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.type">;
|
|
10036
|
+
/**
|
|
10037
|
+
* The chart title (`chart.title`). A field shows a Title check box and, while it is on, the title
|
|
10038
|
+
* text; a toolbar shows the text field alone, where empty text removes the title. @public
|
|
10039
|
+
*/
|
|
10040
|
+
declare const DocxEditorChartTitle: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10041
|
+
readonly className: {
|
|
10042
|
+
readonly type: StringConstructor;
|
|
10043
|
+
readonly default: undefined;
|
|
10044
|
+
};
|
|
10045
|
+
readonly label: {
|
|
10046
|
+
readonly type: StringConstructor;
|
|
10047
|
+
readonly default: undefined;
|
|
10048
|
+
};
|
|
10049
|
+
readonly variant: {
|
|
10050
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10051
|
+
readonly default: undefined;
|
|
10052
|
+
};
|
|
10053
|
+
readonly hidden: {
|
|
10054
|
+
readonly type: BooleanConstructor;
|
|
10055
|
+
readonly default: false;
|
|
10056
|
+
};
|
|
10057
|
+
}>, () => void | string | number | boolean | vue_jsx_runtime.JSX.Element | vue.VNodeArrayChildren | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10058
|
+
readonly className: {
|
|
10059
|
+
readonly type: StringConstructor;
|
|
10060
|
+
readonly default: undefined;
|
|
10061
|
+
};
|
|
10062
|
+
readonly label: {
|
|
10063
|
+
readonly type: StringConstructor;
|
|
10064
|
+
readonly default: undefined;
|
|
10065
|
+
};
|
|
10066
|
+
readonly variant: {
|
|
10067
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10068
|
+
readonly default: undefined;
|
|
10069
|
+
};
|
|
10070
|
+
readonly hidden: {
|
|
10071
|
+
readonly type: BooleanConstructor;
|
|
10072
|
+
readonly default: false;
|
|
10073
|
+
};
|
|
10074
|
+
}>> & Readonly<{}>, {
|
|
10075
|
+
readonly className: string;
|
|
10076
|
+
readonly label: string;
|
|
10077
|
+
readonly variant: ObjectControlVariant;
|
|
10078
|
+
readonly hidden: boolean;
|
|
10079
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.title">;
|
|
10080
|
+
/** Where the legend sits, or none (`chart.legend`). @public */
|
|
10081
|
+
declare const DocxEditorChartLegend: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10082
|
+
readonly className: {
|
|
10083
|
+
readonly type: StringConstructor;
|
|
10084
|
+
readonly default: undefined;
|
|
10085
|
+
};
|
|
10086
|
+
readonly label: {
|
|
10087
|
+
readonly type: StringConstructor;
|
|
10088
|
+
readonly default: undefined;
|
|
10089
|
+
};
|
|
10090
|
+
readonly variant: {
|
|
10091
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10092
|
+
readonly default: undefined;
|
|
10093
|
+
};
|
|
10094
|
+
readonly hidden: {
|
|
10095
|
+
readonly type: BooleanConstructor;
|
|
10096
|
+
readonly default: false;
|
|
10097
|
+
};
|
|
10098
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10099
|
+
readonly className: {
|
|
10100
|
+
readonly type: StringConstructor;
|
|
10101
|
+
readonly default: undefined;
|
|
10102
|
+
};
|
|
10103
|
+
readonly label: {
|
|
10104
|
+
readonly type: StringConstructor;
|
|
10105
|
+
readonly default: undefined;
|
|
10106
|
+
};
|
|
10107
|
+
readonly variant: {
|
|
10108
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10109
|
+
readonly default: undefined;
|
|
10110
|
+
};
|
|
10111
|
+
readonly hidden: {
|
|
10112
|
+
readonly type: BooleanConstructor;
|
|
10113
|
+
readonly default: false;
|
|
10114
|
+
};
|
|
10115
|
+
}>> & Readonly<{}>, {
|
|
10116
|
+
readonly className: string;
|
|
10117
|
+
readonly label: string;
|
|
10118
|
+
readonly variant: ObjectControlVariant;
|
|
10119
|
+
readonly hidden: boolean;
|
|
10120
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.legend">;
|
|
10121
|
+
/** Whether each point shows its value (`chart.dataLabels`). @public */
|
|
10122
|
+
declare const DocxEditorChartDataLabels: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10123
|
+
readonly className: {
|
|
10124
|
+
readonly type: StringConstructor;
|
|
10125
|
+
readonly default: undefined;
|
|
10126
|
+
};
|
|
10127
|
+
readonly label: {
|
|
10128
|
+
readonly type: StringConstructor;
|
|
10129
|
+
readonly default: undefined;
|
|
10130
|
+
};
|
|
10131
|
+
readonly variant: {
|
|
10132
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10133
|
+
readonly default: undefined;
|
|
10134
|
+
};
|
|
10135
|
+
readonly hidden: {
|
|
10136
|
+
readonly type: BooleanConstructor;
|
|
10137
|
+
readonly default: false;
|
|
10138
|
+
};
|
|
10139
|
+
readonly icon: {
|
|
10140
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10141
|
+
readonly default: undefined;
|
|
10142
|
+
};
|
|
10143
|
+
readonly asChild: {
|
|
10144
|
+
readonly type: BooleanConstructor;
|
|
10145
|
+
readonly default: false;
|
|
10146
|
+
};
|
|
10147
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10148
|
+
readonly className: {
|
|
10149
|
+
readonly type: StringConstructor;
|
|
10150
|
+
readonly default: undefined;
|
|
10151
|
+
};
|
|
10152
|
+
readonly label: {
|
|
10153
|
+
readonly type: StringConstructor;
|
|
10154
|
+
readonly default: undefined;
|
|
10155
|
+
};
|
|
10156
|
+
readonly variant: {
|
|
10157
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10158
|
+
readonly default: undefined;
|
|
10159
|
+
};
|
|
10160
|
+
readonly hidden: {
|
|
10161
|
+
readonly type: BooleanConstructor;
|
|
10162
|
+
readonly default: false;
|
|
10163
|
+
};
|
|
10164
|
+
readonly icon: {
|
|
10165
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10166
|
+
readonly default: undefined;
|
|
10167
|
+
};
|
|
10168
|
+
readonly asChild: {
|
|
10169
|
+
readonly type: BooleanConstructor;
|
|
10170
|
+
readonly default: false;
|
|
10171
|
+
};
|
|
10172
|
+
}>> & Readonly<{}>, {
|
|
10173
|
+
readonly className: string;
|
|
10174
|
+
readonly label: string;
|
|
10175
|
+
readonly variant: ObjectControlVariant;
|
|
10176
|
+
readonly hidden: boolean;
|
|
10177
|
+
readonly icon: DocxEditorChildren;
|
|
10178
|
+
readonly asChild: boolean;
|
|
10179
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.dataLabels">;
|
|
10180
|
+
/** Whether the chart shows its axes (`chart.axes`). Nothing for a chart with no axes. @public */
|
|
10181
|
+
declare const DocxEditorChartAxes: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10182
|
+
readonly className: {
|
|
10183
|
+
readonly type: StringConstructor;
|
|
10184
|
+
readonly default: undefined;
|
|
10185
|
+
};
|
|
10186
|
+
readonly label: {
|
|
10187
|
+
readonly type: StringConstructor;
|
|
10188
|
+
readonly default: undefined;
|
|
10189
|
+
};
|
|
10190
|
+
readonly variant: {
|
|
10191
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10192
|
+
readonly default: undefined;
|
|
10193
|
+
};
|
|
10194
|
+
readonly hidden: {
|
|
10195
|
+
readonly type: BooleanConstructor;
|
|
10196
|
+
readonly default: false;
|
|
10197
|
+
};
|
|
10198
|
+
readonly icon: {
|
|
10199
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10200
|
+
readonly default: undefined;
|
|
10201
|
+
};
|
|
10202
|
+
readonly asChild: {
|
|
10203
|
+
readonly type: BooleanConstructor;
|
|
10204
|
+
readonly default: false;
|
|
10205
|
+
};
|
|
10206
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10207
|
+
readonly className: {
|
|
10208
|
+
readonly type: StringConstructor;
|
|
10209
|
+
readonly default: undefined;
|
|
10210
|
+
};
|
|
10211
|
+
readonly label: {
|
|
10212
|
+
readonly type: StringConstructor;
|
|
10213
|
+
readonly default: undefined;
|
|
10214
|
+
};
|
|
10215
|
+
readonly variant: {
|
|
10216
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10217
|
+
readonly default: undefined;
|
|
10218
|
+
};
|
|
10219
|
+
readonly hidden: {
|
|
10220
|
+
readonly type: BooleanConstructor;
|
|
10221
|
+
readonly default: false;
|
|
10222
|
+
};
|
|
10223
|
+
readonly icon: {
|
|
10224
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10225
|
+
readonly default: undefined;
|
|
10226
|
+
};
|
|
10227
|
+
readonly asChild: {
|
|
10228
|
+
readonly type: BooleanConstructor;
|
|
10229
|
+
readonly default: false;
|
|
10230
|
+
};
|
|
10231
|
+
}>> & Readonly<{}>, {
|
|
10232
|
+
readonly className: string;
|
|
10233
|
+
readonly label: string;
|
|
10234
|
+
readonly variant: ObjectControlVariant;
|
|
10235
|
+
readonly hidden: boolean;
|
|
10236
|
+
readonly icon: DocxEditorChildren;
|
|
10237
|
+
readonly asChild: boolean;
|
|
10238
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.axes">;
|
|
10239
|
+
/** Whether the value axis shows major gridlines (`chart.gridlines`). @public */
|
|
10240
|
+
declare const DocxEditorChartGridlines: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10241
|
+
readonly className: {
|
|
10242
|
+
readonly type: StringConstructor;
|
|
10243
|
+
readonly default: undefined;
|
|
10244
|
+
};
|
|
10245
|
+
readonly label: {
|
|
10246
|
+
readonly type: StringConstructor;
|
|
10247
|
+
readonly default: undefined;
|
|
10248
|
+
};
|
|
10249
|
+
readonly variant: {
|
|
10250
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10251
|
+
readonly default: undefined;
|
|
10252
|
+
};
|
|
10253
|
+
readonly hidden: {
|
|
10254
|
+
readonly type: BooleanConstructor;
|
|
10255
|
+
readonly default: false;
|
|
10256
|
+
};
|
|
10257
|
+
readonly icon: {
|
|
10258
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10259
|
+
readonly default: undefined;
|
|
10260
|
+
};
|
|
10261
|
+
readonly asChild: {
|
|
10262
|
+
readonly type: BooleanConstructor;
|
|
10263
|
+
readonly default: false;
|
|
10264
|
+
};
|
|
10265
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10266
|
+
readonly className: {
|
|
10267
|
+
readonly type: StringConstructor;
|
|
10268
|
+
readonly default: undefined;
|
|
10269
|
+
};
|
|
10270
|
+
readonly label: {
|
|
10271
|
+
readonly type: StringConstructor;
|
|
10272
|
+
readonly default: undefined;
|
|
10273
|
+
};
|
|
10274
|
+
readonly variant: {
|
|
10275
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10276
|
+
readonly default: undefined;
|
|
10277
|
+
};
|
|
10278
|
+
readonly hidden: {
|
|
10279
|
+
readonly type: BooleanConstructor;
|
|
10280
|
+
readonly default: false;
|
|
10281
|
+
};
|
|
10282
|
+
readonly icon: {
|
|
10283
|
+
readonly type: PropType<DocxEditorChildren>;
|
|
10284
|
+
readonly default: undefined;
|
|
10285
|
+
};
|
|
10286
|
+
readonly asChild: {
|
|
10287
|
+
readonly type: BooleanConstructor;
|
|
10288
|
+
readonly default: false;
|
|
10289
|
+
};
|
|
10290
|
+
}>> & Readonly<{}>, {
|
|
10291
|
+
readonly className: string;
|
|
10292
|
+
readonly label: string;
|
|
10293
|
+
readonly variant: ObjectControlVariant;
|
|
10294
|
+
readonly hidden: boolean;
|
|
10295
|
+
readonly icon: DocxEditorChildren;
|
|
10296
|
+
readonly asChild: boolean;
|
|
10297
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.gridlines">;
|
|
10298
|
+
/** The category (or X) axis title (`chart.categoryAxisTitle`). @public */
|
|
10299
|
+
declare const DocxEditorChartCategoryAxisTitle: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10300
|
+
readonly className: {
|
|
10301
|
+
readonly type: StringConstructor;
|
|
10302
|
+
readonly default: undefined;
|
|
10303
|
+
};
|
|
10304
|
+
readonly label: {
|
|
10305
|
+
readonly type: StringConstructor;
|
|
10306
|
+
readonly default: undefined;
|
|
10307
|
+
};
|
|
10308
|
+
readonly variant: {
|
|
10309
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10310
|
+
readonly default: undefined;
|
|
10311
|
+
};
|
|
10312
|
+
readonly hidden: {
|
|
10313
|
+
readonly type: BooleanConstructor;
|
|
10314
|
+
readonly default: false;
|
|
10315
|
+
};
|
|
10316
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10317
|
+
readonly className: {
|
|
10318
|
+
readonly type: StringConstructor;
|
|
10319
|
+
readonly default: undefined;
|
|
10320
|
+
};
|
|
10321
|
+
readonly label: {
|
|
10322
|
+
readonly type: StringConstructor;
|
|
10323
|
+
readonly default: undefined;
|
|
10324
|
+
};
|
|
10325
|
+
readonly variant: {
|
|
10326
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10327
|
+
readonly default: undefined;
|
|
10328
|
+
};
|
|
10329
|
+
readonly hidden: {
|
|
10330
|
+
readonly type: BooleanConstructor;
|
|
10331
|
+
readonly default: false;
|
|
10332
|
+
};
|
|
10333
|
+
}>> & Readonly<{}>, {
|
|
10334
|
+
readonly className: string;
|
|
10335
|
+
readonly label: string;
|
|
10336
|
+
readonly variant: ObjectControlVariant;
|
|
10337
|
+
readonly hidden: boolean;
|
|
10338
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.categoryAxisTitle">;
|
|
10339
|
+
/** The value (or Y) axis title (`chart.valueAxisTitle`). @public */
|
|
10340
|
+
declare const DocxEditorChartValueAxisTitle: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10341
|
+
readonly className: {
|
|
10342
|
+
readonly type: StringConstructor;
|
|
10343
|
+
readonly default: undefined;
|
|
10344
|
+
};
|
|
10345
|
+
readonly label: {
|
|
10346
|
+
readonly type: StringConstructor;
|
|
10347
|
+
readonly default: undefined;
|
|
10348
|
+
};
|
|
10349
|
+
readonly variant: {
|
|
10350
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10351
|
+
readonly default: undefined;
|
|
10352
|
+
};
|
|
10353
|
+
readonly hidden: {
|
|
10354
|
+
readonly type: BooleanConstructor;
|
|
10355
|
+
readonly default: false;
|
|
10356
|
+
};
|
|
10357
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10358
|
+
readonly className: {
|
|
10359
|
+
readonly type: StringConstructor;
|
|
10360
|
+
readonly default: undefined;
|
|
10361
|
+
};
|
|
10362
|
+
readonly label: {
|
|
10363
|
+
readonly type: StringConstructor;
|
|
10364
|
+
readonly default: undefined;
|
|
10365
|
+
};
|
|
10366
|
+
readonly variant: {
|
|
10367
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10368
|
+
readonly default: undefined;
|
|
10369
|
+
};
|
|
10370
|
+
readonly hidden: {
|
|
10371
|
+
readonly type: BooleanConstructor;
|
|
10372
|
+
readonly default: false;
|
|
10373
|
+
};
|
|
10374
|
+
}>> & Readonly<{}>, {
|
|
10375
|
+
readonly className: string;
|
|
10376
|
+
readonly label: string;
|
|
10377
|
+
readonly variant: ObjectControlVariant;
|
|
10378
|
+
readonly hidden: boolean;
|
|
10379
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.valueAxisTitle">;
|
|
10380
|
+
/**
|
|
10381
|
+
* The colour of each series, or of each point of a pie chart (`chart.seriesColor`): one shared
|
|
10382
|
+
* colour picker per entry, with Automatic. `index` shows one entry only. @public
|
|
10383
|
+
*/
|
|
10384
|
+
declare const DocxEditorChartSeriesColors: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10385
|
+
className: {
|
|
10386
|
+
readonly type: StringConstructor;
|
|
10387
|
+
readonly default: undefined;
|
|
10388
|
+
};
|
|
10389
|
+
label: {
|
|
10390
|
+
readonly type: StringConstructor;
|
|
10391
|
+
readonly default: undefined;
|
|
10392
|
+
};
|
|
10393
|
+
variant: {
|
|
10394
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10395
|
+
readonly default: undefined;
|
|
10396
|
+
};
|
|
10397
|
+
hidden: {
|
|
10398
|
+
readonly type: BooleanConstructor;
|
|
10399
|
+
readonly default: false;
|
|
10400
|
+
};
|
|
10401
|
+
/** Shows the entry at this index only. */
|
|
10402
|
+
index: {
|
|
10403
|
+
type: NumberConstructor;
|
|
10404
|
+
default: undefined;
|
|
10405
|
+
};
|
|
10406
|
+
}>, () => vue.VNodeChild, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10407
|
+
className: {
|
|
10408
|
+
readonly type: StringConstructor;
|
|
10409
|
+
readonly default: undefined;
|
|
10410
|
+
};
|
|
10411
|
+
label: {
|
|
10412
|
+
readonly type: StringConstructor;
|
|
10413
|
+
readonly default: undefined;
|
|
10414
|
+
};
|
|
10415
|
+
variant: {
|
|
10416
|
+
readonly type: PropType<ObjectControlVariant>;
|
|
10417
|
+
readonly default: undefined;
|
|
10418
|
+
};
|
|
10419
|
+
hidden: {
|
|
10420
|
+
readonly type: BooleanConstructor;
|
|
10421
|
+
readonly default: false;
|
|
10422
|
+
};
|
|
10423
|
+
/** Shows the entry at this index only. */
|
|
10424
|
+
index: {
|
|
10425
|
+
type: NumberConstructor;
|
|
10426
|
+
default: undefined;
|
|
10427
|
+
};
|
|
10428
|
+
}>> & Readonly<{}>, {
|
|
10429
|
+
className: string;
|
|
10430
|
+
label: string;
|
|
10431
|
+
variant: ObjectControlVariant;
|
|
10432
|
+
hidden: boolean;
|
|
10433
|
+
index: number;
|
|
10434
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.seriesColor">;
|
|
10435
|
+
|
|
10436
|
+
/** The categories and series of the selected chart, or why they cannot change. @public */
|
|
10437
|
+
declare const DocxEditorChartData: ObjectPartComponent<vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10438
|
+
readonly className: {
|
|
10439
|
+
readonly type: StringConstructor;
|
|
10440
|
+
readonly default: undefined;
|
|
10441
|
+
};
|
|
10442
|
+
readonly label: {
|
|
10443
|
+
readonly type: StringConstructor;
|
|
10444
|
+
readonly default: undefined;
|
|
10445
|
+
};
|
|
10446
|
+
readonly variant: {
|
|
10447
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
10448
|
+
readonly default: undefined;
|
|
10449
|
+
};
|
|
10450
|
+
readonly hidden: {
|
|
10451
|
+
readonly type: BooleanConstructor;
|
|
10452
|
+
readonly default: false;
|
|
10453
|
+
};
|
|
10454
|
+
}>, () => vue_jsx_runtime.JSX.Element | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10455
|
+
readonly className: {
|
|
10456
|
+
readonly type: StringConstructor;
|
|
10457
|
+
readonly default: undefined;
|
|
10458
|
+
};
|
|
10459
|
+
readonly label: {
|
|
10460
|
+
readonly type: StringConstructor;
|
|
10461
|
+
readonly default: undefined;
|
|
10462
|
+
};
|
|
10463
|
+
readonly variant: {
|
|
10464
|
+
readonly type: vue.PropType<ObjectControlVariant>;
|
|
10465
|
+
readonly default: undefined;
|
|
10466
|
+
};
|
|
10467
|
+
readonly hidden: {
|
|
10468
|
+
readonly type: BooleanConstructor;
|
|
10469
|
+
readonly default: false;
|
|
10470
|
+
};
|
|
10471
|
+
}>> & Readonly<{}>, {
|
|
10472
|
+
readonly className: string;
|
|
10473
|
+
readonly label: string;
|
|
10474
|
+
readonly variant: ObjectControlVariant;
|
|
10475
|
+
readonly hidden: boolean;
|
|
10476
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>, "chart.data">;
|
|
10477
|
+
|
|
10478
|
+
/** The packaged part of each shape and chart slot. @public */
|
|
10479
|
+
declare const OBJECT_SLOT_PARTS: Readonly<Record<ObjectSlotId, Component>>;
|
|
10480
|
+
/** Props for `DocxEditor.PaneSections`. @public */
|
|
10481
|
+
interface DocxEditorPaneSectionsProps<P extends EditorPaneId = EditorPaneId> {
|
|
10482
|
+
/** The pane whose sections to render: `shape` or `chart`. */
|
|
10483
|
+
pane: P;
|
|
10484
|
+
/** Only these sections, by id (`fill` and `outline`; `type`, `elements`, `colors`, and `data`); default all. */
|
|
10485
|
+
sections?: readonly PaneSectionId<P>[];
|
|
10486
|
+
/** Leaves out sections; `ChartPane` leaves out the format sections of a chart it cannot read. */
|
|
10487
|
+
filter?: (section: PaneSection<P>) => boolean;
|
|
10488
|
+
}
|
|
10489
|
+
/**
|
|
10490
|
+
* The sections of a pane, each a heading over its slot parts. The parts render as fields, also
|
|
10491
|
+
* inside a toolbar. @public
|
|
10492
|
+
*/
|
|
10493
|
+
declare const DocxEditorPaneSections: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10494
|
+
pane: {
|
|
10495
|
+
type: PropType<EditorPaneId>;
|
|
10496
|
+
required: true;
|
|
10497
|
+
};
|
|
10498
|
+
sections: {
|
|
10499
|
+
type: PropType<readonly PaneSectionId[]>;
|
|
10500
|
+
default: undefined;
|
|
10501
|
+
};
|
|
10502
|
+
filter: {
|
|
10503
|
+
type: PropType<(section: PaneSection) => boolean>;
|
|
10504
|
+
default: undefined;
|
|
10505
|
+
};
|
|
10506
|
+
}>, () => vue_jsx_runtime.JSX.Element[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10507
|
+
pane: {
|
|
10508
|
+
type: PropType<EditorPaneId>;
|
|
10509
|
+
required: true;
|
|
10510
|
+
};
|
|
10511
|
+
sections: {
|
|
10512
|
+
type: PropType<readonly PaneSectionId[]>;
|
|
10513
|
+
default: undefined;
|
|
10514
|
+
};
|
|
10515
|
+
filter: {
|
|
10516
|
+
type: PropType<(section: PaneSection) => boolean>;
|
|
10517
|
+
default: undefined;
|
|
10518
|
+
};
|
|
10519
|
+
}>> & Readonly<{}>, {
|
|
10520
|
+
sections: readonly PaneSectionId[];
|
|
10521
|
+
filter: (section: PaneSection) => boolean;
|
|
10522
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10523
|
+
|
|
10524
|
+
/** How `useDocumentSearch` behaves. @public */
|
|
10525
|
+
interface UseDocumentSearchOptions {
|
|
10526
|
+
/**
|
|
10527
|
+
* Which matches to mark: every match with the active one emphasized (`'all'`), only the
|
|
10528
|
+
* active match (`'active'`), or none (`'none'`). Default: `'all'`.
|
|
10529
|
+
*/
|
|
10530
|
+
readonly highlight?: DocumentSearchHighlight;
|
|
10531
|
+
}
|
|
10532
|
+
/** What `useDocumentSearch` answers. @public */
|
|
10533
|
+
interface UseDocumentSearchResult {
|
|
10534
|
+
/** The text in the search box, updated synchronously as the user types. */
|
|
10535
|
+
readonly query: ComputedRef<string>;
|
|
10536
|
+
/** Update the typed query. The search runs after a short debounce. */
|
|
10537
|
+
readonly setQuery: (query: string) => void;
|
|
10538
|
+
/**
|
|
10539
|
+
* Search now and return the matches. `selectFirst` selects the first match; `highlight`
|
|
10540
|
+
* highlights the results until `clear()`, even without this hook's own request.
|
|
10541
|
+
*/
|
|
10542
|
+
readonly find: (query: string, options?: DocumentSearchFindOptions) => readonly TextMatch[];
|
|
10543
|
+
readonly matchCase: ComputedRef<boolean>;
|
|
10544
|
+
readonly setMatchCase: (value: boolean) => void;
|
|
10545
|
+
readonly wholeWord: ComputedRef<boolean>;
|
|
10546
|
+
readonly setWholeWord: (value: boolean) => void;
|
|
10547
|
+
/** Matches for the last searched query, in document order. */
|
|
10548
|
+
readonly matches: ComputedRef<readonly TextMatch[]>;
|
|
10549
|
+
/** The search stopped at its cap with matches still ahead, so a count reads "2000+". */
|
|
10550
|
+
readonly truncated: ComputedRef<boolean>;
|
|
10551
|
+
/** Index of the current match, or `-1` before any navigation. */
|
|
10552
|
+
readonly activeIndex: ComputedRef<number>;
|
|
10553
|
+
/** The current match, or `null` before any navigation. */
|
|
10554
|
+
readonly activeMatch: ComputedRef<TextMatch | null>;
|
|
10555
|
+
/**
|
|
10556
|
+
* Select a match by index and bring its page into view. Focus stays where it is, so a
|
|
10557
|
+
* search box keeps it. Returns false for an index without a match.
|
|
10558
|
+
*/
|
|
10559
|
+
readonly goTo: (index: number) => boolean;
|
|
10560
|
+
/** Next / previous match, wrapping at the ends the way Word's arrows do. */
|
|
10561
|
+
readonly next: () => boolean;
|
|
10562
|
+
readonly previous: () => boolean;
|
|
10563
|
+
/** Empty the query and drop the results, without changing the selection. */
|
|
10564
|
+
readonly clear: () => void;
|
|
10565
|
+
/** Whether a typed query is waiting for its debounce to elapse. */
|
|
10566
|
+
readonly isPending: ComputedRef<boolean>;
|
|
10567
|
+
}
|
|
10568
|
+
/**
|
|
10569
|
+
* The editor's shared search, with no UI attached. The packaged Find pane uses the same
|
|
10570
|
+
* session, so state set here shows there.
|
|
10571
|
+
*
|
|
10572
|
+
* @public
|
|
10573
|
+
*/
|
|
10574
|
+
declare function useDocumentSearch(options?: MaybeRefOrGetter<UseDocumentSearchOptions>): UseDocumentSearchResult;
|
|
10575
|
+
|
|
10576
|
+
/** @public */
|
|
10577
|
+
type NavigationTab$1 = 'headings' | 'find' | 'goto';
|
|
10578
|
+
/** @public */
|
|
10579
|
+
interface UseNavigationPaneOptions {
|
|
10580
|
+
defaultOpen?: boolean;
|
|
10581
|
+
open?: boolean;
|
|
10582
|
+
onOpenChange?: (open: boolean) => void;
|
|
10583
|
+
defaultTab?: NavigationTab$1;
|
|
10584
|
+
tab?: NavigationTab$1;
|
|
10585
|
+
onTabChange?: (tab: NavigationTab$1) => void;
|
|
10586
|
+
paneWidth?: number;
|
|
10587
|
+
}
|
|
10588
|
+
/** @public */
|
|
10589
|
+
interface UseNavigationPaneResult {
|
|
10590
|
+
readonly open: ComputedRef<boolean>;
|
|
10591
|
+
readonly setOpen: (open: boolean) => void;
|
|
10592
|
+
readonly toggle: () => void;
|
|
10593
|
+
readonly tab: ComputedRef<NavigationTab$1>;
|
|
10594
|
+
readonly setTab: (tab: NavigationTab$1) => void;
|
|
10595
|
+
readonly paneWidth: ComputedRef<number>;
|
|
10596
|
+
readonly shift: ComputedRef<number>;
|
|
10597
|
+
/**
|
|
10598
|
+
* Whether the open pane covers the page instead of moving it. True on a viewport too
|
|
10599
|
+
* narrow to show a readable page beside the pane (see `NAVIGATION_PANE_MIN_PAGE_ROOM`);
|
|
10600
|
+
* `shift` is then 0, and `DocxEditorNavigation` closes after a heading or result is picked.
|
|
10601
|
+
*/
|
|
10602
|
+
readonly overlay: ComputedRef<boolean>;
|
|
10603
|
+
}
|
|
10604
|
+
/** @public */
|
|
10605
|
+
declare function useNavigationPane(options?: MaybeRefOrGetter$1<UseNavigationPaneOptions>): UseNavigationPaneResult;
|
|
10606
|
+
|
|
10607
|
+
/**
|
|
10608
|
+
* The Bookmarks panel: a bookmark search box, the sort order and hidden-bookmarks toggle, and
|
|
10609
|
+
* the bookmarks it offers, grouped by place when sorted by location.
|
|
10610
|
+
*
|
|
10611
|
+
* @public
|
|
10612
|
+
*/
|
|
10613
|
+
declare const NavigationGoTo: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10614
|
+
className: {
|
|
10615
|
+
type: StringConstructor;
|
|
10616
|
+
default: undefined;
|
|
10617
|
+
};
|
|
10618
|
+
style: {
|
|
10619
|
+
type: PropType<CSSProperties>;
|
|
10620
|
+
default: undefined;
|
|
10621
|
+
};
|
|
10622
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10623
|
+
className: {
|
|
10624
|
+
type: StringConstructor;
|
|
10625
|
+
default: undefined;
|
|
10626
|
+
};
|
|
10627
|
+
style: {
|
|
10628
|
+
type: PropType<CSSProperties>;
|
|
10629
|
+
default: undefined;
|
|
10630
|
+
};
|
|
10631
|
+
}>> & Readonly<{}>, {
|
|
10632
|
+
className: string;
|
|
10633
|
+
style: CSSProperties;
|
|
10634
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10635
|
+
|
|
10636
|
+
/** Shared props for the pane's structural parts. @public */
|
|
10637
|
+
interface NavigationPartProps {
|
|
10638
|
+
className?: string;
|
|
10639
|
+
style?: CSSProperties;
|
|
10640
|
+
children?: DocxEditorChildren;
|
|
10641
|
+
}
|
|
10642
|
+
/** @public */
|
|
10643
|
+
interface NavigationTabProps extends NavigationPartProps {
|
|
10644
|
+
value: NavigationTab$1;
|
|
10645
|
+
}
|
|
10646
|
+
/** @public */
|
|
10647
|
+
declare const NavigationHeader: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10648
|
+
className: {
|
|
10649
|
+
type: StringConstructor;
|
|
10650
|
+
default: undefined;
|
|
10651
|
+
};
|
|
10652
|
+
style: {
|
|
10653
|
+
type: PropType<CSSProperties>;
|
|
10654
|
+
default: undefined;
|
|
10655
|
+
};
|
|
10656
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10657
|
+
className: {
|
|
10658
|
+
type: StringConstructor;
|
|
10659
|
+
default: undefined;
|
|
10660
|
+
};
|
|
10661
|
+
style: {
|
|
10662
|
+
type: PropType<CSSProperties>;
|
|
10663
|
+
default: undefined;
|
|
10664
|
+
};
|
|
10665
|
+
}>> & Readonly<{}>, {
|
|
10666
|
+
className: string;
|
|
10667
|
+
style: CSSProperties;
|
|
10668
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10669
|
+
/** @public */
|
|
10670
|
+
declare const NavigationClose: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10671
|
+
className: {
|
|
10672
|
+
type: StringConstructor;
|
|
10673
|
+
default: undefined;
|
|
10674
|
+
};
|
|
10675
|
+
style: {
|
|
10676
|
+
type: PropType<CSSProperties>;
|
|
10677
|
+
default: undefined;
|
|
10678
|
+
};
|
|
10679
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10680
|
+
className: {
|
|
10681
|
+
type: StringConstructor;
|
|
10682
|
+
default: undefined;
|
|
10683
|
+
};
|
|
10684
|
+
style: {
|
|
10685
|
+
type: PropType<CSSProperties>;
|
|
10686
|
+
default: undefined;
|
|
10687
|
+
};
|
|
10688
|
+
}>> & Readonly<{}>, {
|
|
10689
|
+
className: string;
|
|
10690
|
+
style: CSSProperties;
|
|
10691
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10692
|
+
/** @public */
|
|
10693
|
+
declare const NavigationTitle: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10694
|
+
className: {
|
|
10695
|
+
type: StringConstructor;
|
|
10696
|
+
default: undefined;
|
|
10697
|
+
};
|
|
10698
|
+
style: {
|
|
10699
|
+
type: PropType<CSSProperties>;
|
|
10700
|
+
default: undefined;
|
|
10701
|
+
};
|
|
10702
|
+
}>, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
10703
|
+
className: {
|
|
10704
|
+
type: StringConstructor;
|
|
10705
|
+
default: undefined;
|
|
10706
|
+
};
|
|
10707
|
+
style: {
|
|
10708
|
+
type: PropType<CSSProperties>;
|
|
10709
|
+
default: undefined;
|
|
10710
|
+
};
|
|
10711
|
+
}>> & Readonly<{}>, {
|
|
10712
|
+
className: string;
|
|
10713
|
+
style: CSSProperties;
|
|
10714
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
10715
|
+
/** @public */
|
|
10716
|
+
declare const NavigationTabs: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
10717
|
+
className: {
|
|
10718
|
+
type: StringConstructor;
|
|
10719
|
+
default: undefined;
|
|
10720
|
+
};
|
|
9391
10721
|
style: {
|
|
9392
10722
|
type: PropType<CSSProperties>;
|
|
9393
10723
|
default: undefined;
|
|
@@ -10152,10 +11482,51 @@ interface DocxEditorNamespace {
|
|
|
10152
11482
|
readonly HorizontalRuler: typeof DocxEditorHorizontalRuler;
|
|
10153
11483
|
readonly VerticalRuler: typeof DocxEditorVerticalRuler;
|
|
10154
11484
|
readonly DocumentOutline: typeof DocxEditorDocumentOutline;
|
|
10155
|
-
/**
|
|
11485
|
+
/**
|
|
11486
|
+
* The side panel that holds the Chart pane or the Format shape pane; the host renders it to
|
|
11487
|
+
* show it.
|
|
11488
|
+
*/
|
|
10156
11489
|
readonly SidePanel: typeof DocxEditorSidePanel;
|
|
10157
11490
|
/** The Chart pane: the type, elements, colors, and data of the selected chart. */
|
|
10158
11491
|
readonly ChartPane: typeof DocxEditorChartPane;
|
|
11492
|
+
/** The Format shape pane: the fill and outline of the selected shape. */
|
|
11493
|
+
readonly ShapePane: typeof DocxEditorShapePane;
|
|
11494
|
+
/** The sections of a pane (`PANE_SECTIONS`), each a heading over its slot parts. */
|
|
11495
|
+
readonly PaneSections: typeof DocxEditorPaneSections;
|
|
11496
|
+
/** The shared colour picker compound (`Root`, `Trigger`, `Content`, `Swatch`, …). */
|
|
11497
|
+
readonly ColorPicker: typeof ColorPicker;
|
|
11498
|
+
/** The fill colour of the selected shape (`shape.fill`). */
|
|
11499
|
+
readonly ShapeFill: typeof DocxEditorShapeFill;
|
|
11500
|
+
/** The fill transparency of the selected shape (`shape.fillTransparency`). */
|
|
11501
|
+
readonly ShapeFillTransparency: typeof DocxEditorShapeFillTransparency;
|
|
11502
|
+
/** The outline colour of the selected shape (`shape.outlineColor`). */
|
|
11503
|
+
readonly ShapeOutlineColor: typeof DocxEditorShapeOutlineColor;
|
|
11504
|
+
/** The outline width of the selected shape (`shape.outlineWidth`). */
|
|
11505
|
+
readonly ShapeOutlineWidth: typeof DocxEditorShapeOutlineWidth;
|
|
11506
|
+
/** The outline dash of the selected shape (`shape.outlineDash`). */
|
|
11507
|
+
readonly ShapeOutlineDash: typeof DocxEditorShapeOutlineDash;
|
|
11508
|
+
/** The type of the selected chart (`chart.type`). */
|
|
11509
|
+
readonly ChartType: typeof DocxEditorChartType;
|
|
11510
|
+
/** The title of the selected chart (`chart.title`). */
|
|
11511
|
+
readonly ChartTitle: typeof DocxEditorChartTitle;
|
|
11512
|
+
/** The legend position of the selected chart (`chart.legend`). */
|
|
11513
|
+
readonly ChartLegend: typeof DocxEditorChartLegend;
|
|
11514
|
+
/** The data labels toggle of the selected chart (`chart.dataLabels`). */
|
|
11515
|
+
readonly ChartDataLabels: typeof DocxEditorChartDataLabels;
|
|
11516
|
+
/** The axes toggle of the selected chart (`chart.axes`). */
|
|
11517
|
+
readonly ChartAxes: typeof DocxEditorChartAxes;
|
|
11518
|
+
/** The gridlines toggle of the selected chart (`chart.gridlines`). */
|
|
11519
|
+
readonly ChartGridlines: typeof DocxEditorChartGridlines;
|
|
11520
|
+
/** The category (X) axis title of the selected chart (`chart.categoryAxisTitle`). */
|
|
11521
|
+
readonly ChartCategoryAxisTitle: typeof DocxEditorChartCategoryAxisTitle;
|
|
11522
|
+
/** The value (Y) axis title of the selected chart (`chart.valueAxisTitle`). */
|
|
11523
|
+
readonly ChartValueAxisTitle: typeof DocxEditorChartValueAxisTitle;
|
|
11524
|
+
/** The series (or point) colours of the selected chart (`chart.seriesColor`). */
|
|
11525
|
+
readonly ChartSeriesColors: typeof DocxEditorChartSeriesColors;
|
|
11526
|
+
/** The data editor of the selected chart (`chart.data`). */
|
|
11527
|
+
readonly ChartData: typeof DocxEditorChartData;
|
|
11528
|
+
/** The chart type list that inserts a chart (`insert.chart`), with `Trigger`, `Content`, `Item`. */
|
|
11529
|
+
readonly ChartInsert: typeof ChartInsert;
|
|
10159
11530
|
readonly Navigation: typeof Navigation;
|
|
10160
11531
|
/** File export progress and errors, configured through popups.export. */
|
|
10161
11532
|
readonly ExportDialog: typeof DocxEditorExportDialog;
|
|
@@ -10299,8 +11670,11 @@ interface EditorValueCommandState<T extends string | number> {
|
|
|
10299
11670
|
readonly isEnabled: ComputedRef<boolean>;
|
|
10300
11671
|
readonly disabledReason: ComputedRef<string | null>;
|
|
10301
11672
|
}
|
|
10302
|
-
/**
|
|
10303
|
-
|
|
11673
|
+
/**
|
|
11674
|
+
* Bind a value slot. Font size values use half-points; colors use six digits without `#`. The
|
|
11675
|
+
* `shape.*` and `chart.*` slots bind through `useObjectControl`. @public
|
|
11676
|
+
*/
|
|
11677
|
+
declare function useEditorValueCommand<K extends Exclude<keyof ToolbarValueMap, keyof ObjectSlotValueMap>>(slotId: K): EditorValueCommandState<ToolbarValueMap[K]>;
|
|
10304
11678
|
|
|
10305
11679
|
/** @public */
|
|
10306
11680
|
declare function useEditorEvent<E extends keyof EditorEvents>(event: E, handler: EditorEvents[E]): void;
|
|
@@ -10357,26 +11731,43 @@ type UseEditorHostDocumentReturn = Readonly<ShallowRef<Document | null>>;
|
|
|
10357
11731
|
*/
|
|
10358
11732
|
declare function useEditorHostDocument(): UseEditorHostDocumentReturn;
|
|
10359
11733
|
|
|
11734
|
+
/**
|
|
11735
|
+
* The value of the ref that {@link useHighlights} returns: the counts of the last
|
|
11736
|
+
* application, and `refresh` to run the source again. @public
|
|
11737
|
+
*/
|
|
11738
|
+
interface UseHighlightsReturn extends HighlightResult {
|
|
11739
|
+
/**
|
|
11740
|
+
* Run the source again, for changes Vue and the editor cannot see: a word added to a plain
|
|
11741
|
+
* dictionary object, the caret leaving the word being typed, or an asynchronous result
|
|
11742
|
+
* arriving in a cache that is not reactive. An array source applies again.
|
|
11743
|
+
*
|
|
11744
|
+
* The set updates in Vue's next flush, before the next paint, and a run that was waiting
|
|
11745
|
+
* for typing to pause is replaced by this one. It keeps the same identity across updates,
|
|
11746
|
+
* and does nothing after the calling scope is disposed.
|
|
11747
|
+
*/
|
|
11748
|
+
readonly refresh: () => void;
|
|
11749
|
+
}
|
|
10360
11750
|
/**
|
|
10361
11751
|
* Mark text ranges as the named set while the calling scope is active.
|
|
10362
11752
|
*
|
|
10363
11753
|
* A function source runs inside reactive tracking, so a getter that reads refs reapplies
|
|
10364
|
-
* when they change.
|
|
10365
|
-
* other's ranges.
|
|
11754
|
+
* when they change. For state that is not reactive, call `refresh()` on the returned value.
|
|
11755
|
+
* Use a unique `name` per call: two calls with the same name replace each other's ranges.
|
|
10366
11756
|
*
|
|
10367
11757
|
* @example
|
|
10368
11758
|
* ```ts
|
|
10369
|
-
* useHighlights(
|
|
11759
|
+
* const glossary = useHighlights(
|
|
10370
11760
|
* 'glossary',
|
|
10371
11761
|
* (editor) => editor.findMatches(terms.value, { wholeWord: true }).flat(),
|
|
10372
11762
|
* { className: 'glossary-term' }
|
|
10373
11763
|
* );
|
|
11764
|
+
* // glossary.value.applied; glossary.value.refresh() runs the source again.
|
|
10374
11765
|
* ```
|
|
10375
11766
|
*
|
|
10376
11767
|
* @see {@link https://www.docx-editor.dev/docs/2.x/recipes/highlight-ranges | Highlight ranges}
|
|
10377
11768
|
* @public
|
|
10378
11769
|
*/
|
|
10379
|
-
declare function useHighlights(name: MaybeRefOrGetter<string>, source: MaybeRefOrGetter<HighlightSource>, options?: MaybeRefOrGetter<HighlightOptions>): ComputedRef<
|
|
11770
|
+
declare function useHighlights(name: MaybeRefOrGetter<string>, source: MaybeRefOrGetter<HighlightSource>, options?: MaybeRefOrGetter<HighlightOptions>): ComputedRef<UseHighlightsReturn>;
|
|
10380
11771
|
|
|
10381
11772
|
/**
|
|
10382
11773
|
* The topmost text highlight under the pointer, or `null`. Pass a set name to watch one set.
|
|
@@ -10393,7 +11784,15 @@ declare function useHighlightAt<R extends HighlightRange = HighlightRange>(name?
|
|
|
10393
11784
|
|
|
10394
11785
|
/** @public */
|
|
10395
11786
|
interface EditorCaret {
|
|
11787
|
+
/** The paragraph, as `TextPosition.blockId` and `TextMatch.blockId` name it. */
|
|
11788
|
+
readonly blockId: string;
|
|
11789
|
+
/**
|
|
11790
|
+
* The same paragraph id as `blockId`, for `at` parameters that take `paragraphId`.
|
|
11791
|
+
*
|
|
11792
|
+
* @deprecated Use `blockId`.
|
|
11793
|
+
*/
|
|
10396
11794
|
readonly paragraphId: string;
|
|
11795
|
+
/** UTF-16 offset in the paragraph's model text. */
|
|
10397
11796
|
readonly offset: number;
|
|
10398
11797
|
}
|
|
10399
11798
|
/** @public */
|
|
@@ -11681,5 +13080,5 @@ interface UseHistoryGroupReturn {
|
|
|
11681
13080
|
/** Bind a control's native gesture lifecycle. Apply values through the existing command hooks. @public */
|
|
11682
13081
|
declare function useHistoryGroup({ kind }: HistoryGroupBindingOptions): UseHistoryGroupReturn;
|
|
11683
13082
|
|
|
11684
|
-
export { CONTENT_CONTROL_SLOTS, ChartInsert, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuMergeCells, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuRemoveToc, ContextMenuSelectAll, ContextMenuSelectTable, ContextMenuSplitCell, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorChartPane, DocxEditorColorByChangeType, DocxEditorCompareDocumentsDialog, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShell, DocxEditorSidePanel, DocxEditorSplitCellDialog, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorUnsupportedElement, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationGoTo, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarChartInsert, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useBookmarkDialog, useBookmarks, useChromeDir, useChromeTranslate, useCommentDraftRequest, useCompareDocumentsDialog, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorColorMode, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useOpenFailure, usePageSetup, usePageSetupDialog, usePaneRequest, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useSelectedChart, useSplitCellDialog, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
11685
|
-
export type { BookmarkDialogFields, ChartInsertPartComponent, ChartInsertProps, ChromeTranslate, CompareDocumentsDialogValues, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocumentStyleSummary, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChartPaneProps, DocxEditorChildren, DocxEditorCompareDocumentsDialogProps, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRefCallback, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorSidePanelProps, DocxEditorSplitCellDialogProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorUnsupportedElementProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontOption, FontsInput, FormattingAction, GoToBookmarkProblem, HeaderFooterState, HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, ListState, ListType, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphAlignment, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ResolvedColorMode, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, ScopedChromeAnchorPlacement, SelectionFormatting, SlotProps, SplitCellDialogFields, TableAction, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseBookmarkDialogReturn, UseBookmarksReturn, UseCompareDocumentsDialogReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorColorModeReturn, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseSelectedChartReturn, UseSplitCellDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|
|
13083
|
+
export { CONTENT_CONTROL_SLOTS, ChartInsert, ColorPicker, ContextMenuCellVerticalAlignment, ContextMenuCopy, ContextMenuCopyFormatting, ContextMenuCut, ContextMenuDelete, ContextMenuDeleteTable, ContextMenuDeleteTableColumn, ContextMenuDeleteTableRow, ContextMenuInsertColumnLeft, ContextMenuInsertColumnRight, ContextMenuInsertRowAbove, ContextMenuInsertRowBelow, ContextMenuItem, ContextMenuMergeCells, ContextMenuPaste, ContextMenuPasteFormatting, ContextMenuPasteWithoutFormatting, ContextMenuRefreshToc, ContextMenuRefreshTocPageNumbers, ContextMenuRemoveToc, ContextMenuSelectAll, ContextMenuSelectTable, ContextMenuSplitCell, ContextMenuStart, DEFAULT_WATERMARK_PRESETS, DocumentName, DocumentOutline, DocxEditor, DocxEditorAuthorStyle, DocxEditorBookmarkDialog, DocxEditorChartAxes, DocxEditorChartCategoryAxisTitle, DocxEditorChartData, DocxEditorChartDataLabels, DocxEditorChartGridlines, DocxEditorChartLegend, DocxEditorChartPane, DocxEditorChartSeriesColors, DocxEditorChartTitle, DocxEditorChartType, DocxEditorChartValueAxisTitle, DocxEditorColorByChangeType, DocxEditorCompareDocumentsDialog, DocxEditorContent, DocxEditorContentControl, DocxEditorContentControlWidget, DocxEditorContextMenu, DocxEditorDocumentOutline, DocxEditorEquation, DocxEditorExportDialog, DocxEditorFontNotice, DocxEditorHeaderFooterChrome, DocxEditorHorizontalRuler, DocxEditorHyperLink, DocxEditorImageAltTextPopup, DocxEditorImageInsertErrorDialog, DocxEditorImagePropertiesDialog, DocxEditorInvalidTextFormFieldDialog, DocxEditorLoading, DocxEditorLoadingSpinner, DocxEditorMenu, DocxEditorNavigation, DocxEditorNotePreview, DocxEditorNotePropertiesDialog, DocxEditorNotesChrome, DocxEditorNotesContextMenu, DocxEditorOpenFailure, DocxEditorOpenFailureAction, DocxEditorPageNumber, DocxEditorPageSetupDialog, DocxEditorPaneSections, DocxEditorParagraphDialog, DocxEditorPrintDialog, DocxEditorRevisionMarkup, DocxEditorRevisionMarkupDialog, DocxEditorRoot, DocxEditorShapeFill, DocxEditorShapeFillTransparency, DocxEditorShapeOutlineColor, DocxEditorShapeOutlineDash, DocxEditorShapeOutlineWidth, DocxEditorShapePane, DocxEditorShell, DocxEditorSidePanel, DocxEditorSplitCellDialog, DocxEditorTextFormFieldDialog, DocxEditorToolbar, DocxEditorUnsupportedElement, DocxEditorVerticalRuler, DocxEditorViewport, DocxEditorWatermarkDialog, DocxEditorWindow, HorizontalRuler, ImageAltText, ImageInsertProvider, ImageInsertTrigger, ImagePropertiesTrigger, ImageWrap, LocaleProvider, Logo, MenuBar, NAVIGATION_PANE_GAP, NAVIGATION_PANE_INSET, NAVIGATION_PANE_MIN_PAGE_ROOM, NAVIGATION_PANE_WIDTH, NavigationClose, NavigationFind, NavigationGoTo, NavigationHeader, NavigationHeadings, NavigationTab, NavigationTabs, NavigationTitle, NavigationToggle, OBJECT_SLOT_PARTS, OUTLINE_BUTTON_LEFT_OFFSET, OUTLINE_BUTTON_RESERVED_SPACE, OUTLINE_LEFT_OFFSET, OUTLINE_RESERVED_SPACE, PageIndicator, PageNumberTranslationContext, PaginatedDocxEditor, PaginatedDocxEditorShell, REVIEW_MARKERS_GUTTER, REVIEW_PANE_GUTTER, RULER_WIDTH, ReviewRailContext, Slot, TitleBar, TitleBarRight, Toolbar, ToolbarButton, ToolbarChartInsert, ToolbarContext, ToolbarGroup, ToolbarImageProperties, VERSION, VerticalRuler, definePopup, editorStateActiveSubscriptionCount, isFieldLink, navigationPaneOverlays, navigationPaneReservation, navigationShift, normalizeImageBytes, notificationYieldsToTask, provideDocxEditor, reviewGutter, useBookmarkDialog, useBookmarks, useChromeDir, useChromeTranslate, useCommentDraftRequest, useCompareDocumentsDialog, useContentControl, useContentControlInstance, useContentControlWidget, useContextMenuAnchor, useContextMenuHighlights, useContextMenuTarget, useDocumentOutline, useDocumentSearch, useDocxEditor, useDocxSource, useEditorCaret, useEditorColorMode, useEditorCommand, useEditorEvent, useEditorHostDocument, useEditorSnapshot, useEditorState, useEditorValueCommand, useFontFamily, useFonts, useGoToBookmark, useHeaderFooterState, useHighlightAt, useHighlights, useHistoryGroup, useHyperlinkPopup, useHyperlinkPopupInstance, useNavigationPane, useNavigationShift, useNotePropertiesState, useNoteScopeState, useObjectControl, useOpenFailure, usePageSetup, usePageSetupDialog, usePaneRequest, useParagraphDialog, useParagraphFormat, useParagraphIndent, useParagraphStyle, useReviewAuthors, useReviewGutter, useRevisionMarkupDialog, useScopeClassName, useScopedChromeAnchor, useSelectedChart, useSelectedShape, useSplitCellDialog, useTableBorderTargetLabel, useTextFormFieldDialog, useToolbarContext, useToolbarLabel, useToolbarLabelFor, useTranslation, useWatermark, useWatermarkDialog, useZoom };
|
|
13084
|
+
export type { BookmarkDialogFields, ChartInsertPartComponent, ChartInsertProps, ChartPartProps, ChartSeriesColorsProps, ChartTogglePartProps, ChromeTranslate, ColorPickerCompound, ColorPickerContentProps, ColorPickerHexInputProps, ColorPickerNoColorProps, ColorPickerRootProps, ColorPickerSwatchProps, ColorPickerTriggerProps, ColorPickerValue, CompareDocumentsDialogValues, ContentControlActionProps, ContentControlInspectorState, ContentControlLock, ContentControlPartProps, ContentControlProps, ContentControlSlotId, ContentControlWidgetDayProps, ContentControlWidgetEntry, ContentControlWidgetItemProps, ContentControlWidgetPictureProps, ContextMenuAnchor, ContextMenuCommandProps, ContextMenuContextValue, ContextMenuItemProps, ContextMenuStartProps, ContextMenuTableRowProps, DialogCustomizationProps, DialogPartProps, DocumentStyleSummary, DocxEditorAuthorStyleProps, DocxEditorBookmarkDialogProps, DocxEditorChartPaneProps, DocxEditorChildren, DocxEditorCompareDocumentsDialogProps, DocxEditorContentControlNamespace, DocxEditorContentControlWidgetNamespace, DocxEditorContentControlWidgetPartProps, DocxEditorContentControlWidgetProps, DocxEditorContentProps, DocxEditorContextMenuNamespace, DocxEditorContextMenuProps, DocxEditorDocumentOutlineProps, DocxEditorExportDialogProps, DocxEditorFontNoticeProps, DocxEditorHeaderFooterChromeProps, DocxEditorHyperLinkNamespace, DocxEditorImageAltTextPopupProps, DocxEditorImageInsertErrorDialogProps, DocxEditorImagePropertiesDialogProps, DocxEditorInvalidTextFormFieldDialogProps, DocxEditorLoadingComponent, DocxEditorLoadingProps, DocxEditorLoadingSpinnerProps, DocxEditorMenuNamespace, DocxEditorMenuProps, DocxEditorNamespace, DocxEditorNavigationNamespace, DocxEditorNavigationProps, DocxEditorNotePreviewProps, DocxEditorNotePropertiesDialogProps, DocxEditorNotesChromeProps, DocxEditorNotesContextMenuProps, DocxEditorOpenFailureActionProps, DocxEditorOpenFailureComponent, DocxEditorOpenFailureContext, DocxEditorOpenFailureMessage, DocxEditorOpenFailureProps, DocxEditorPageNumberProps, DocxEditorPageSetupDialogProps, DocxEditorPaneSectionsProps, DocxEditorParagraphDialogProps, DocxEditorPopup, DocxEditorPopups, DocxEditorPrintDialogProps, DocxEditorProps, DocxEditorRef, DocxEditorRefCallback, DocxEditorRevisionMarkupDialogProps, DocxEditorRevisionMarkupProps, DocxEditorRootListeners, DocxEditorRootProps, DocxEditorRulerProps, DocxEditorShapePaneProps, DocxEditorSidePanelProps, DocxEditorSplitCellDialogProps, DocxEditorTextFormFieldDialogProps, DocxEditorToolbarGroupProps, DocxEditorToolbarNamespace, DocxEditorToolbarProps, DocxEditorToolbarSlotProps, DocxEditorUnsupportedElementProps, DocxEditorViewportProps, DocxEditorWatermarkDialogProps, DocxEditorWindowProps, DocxFontOrigin, DocxFontsInput, DocxFontsSource, DocxSource, EditorCaret, EditorCommandState, EditorMode, EditorValueCommandState, FontFamilyItemProps, FontFamilyNamespace, FontFamilyPartProps, FontFamilyProps, FontOption, FontsInput, FormattingAction, GoToBookmarkProblem, HeaderFooterState, HorizontalRulerProps, HyperLinkActionProps, HyperLinkPartProps, HyperLinkProps, HyperlinkPopupAnchor, HyperlinkPopupMode, HyperlinkPopupState, ImagePropertiesTriggerProps, IndentUpdate, ListState, ListType, LocaleProviderProps, MaybeRefOrGetter, MenuActionProps, MenuGroupProps, MenuId, MenuItemBaseProps, MenuItemProps, MenuPartComponent, MenuProps, MenuReportIssueProps, MenuReviewersProps, MenuRowProps, MenuSeparatorProps, MenuSubmenuBaseProps, MenuSubmenuProps, MenuTableGridProps, NavigationPartProps, NavigationShiftInput, NavigationTabProps, NavigationTab$1 as NavigationTabValue, NormalizedImagePayload, NotePropertiesState, ObjectButtonPartProps, ObjectControlProps, ObjectControlState, ObjectControlVariant, ObjectPartComponent, ObjectSlotId, ObjectToggleControl, OutlineHeading$1 as OutlineHeading, OutlineHeadingItem, PageIndicatorProps, PageSetupDialogFields, PageSetupUpdate, PaginatedDocxEditorExpose, PaginatedDocxEditorHandle, PaginatedDocxEditorProps, PaginatedDocxEditorShellProps, ParagraphAlignment, ParagraphStyleItemProps, ParagraphStyleNamespace, ParagraphStyleOption, ParagraphStylePartProps, ParagraphStyleProps, ProvideDocxEditorResult, ResolvedColorMode, ReviewGutter, ReviewGutterInput, ReviewRailRegistry, ScopedChromeAnchor, ScopedChromeAnchorPlacement, SelectionFormatting, ShapeColorPartProps, ShapePartProps, SlotProps, SplitCellDialogFields, TableAction, TableBorderColorNamespace, TableBorderStyleNamespace, TableBorderTargetNamespace, TableBorderWidthNamespace, TableCellFillNamespace, TableChromeItemProps, TableChromePartComponent, TableChromePartProps, TextFormFieldDialogFields, ToolbarActionProps, ToolbarAlignmentComponent, ToolbarButtonProps, ToolbarContextValue, ToolbarPartComponent, ToolbarPartProps, ToolbarProps, ToolbarReviewersProps, ToolbarSeparatorProps, ToolbarSlotPartComponent, ToolbarSlotPartProps, ToolbarTranslate, UseBookmarkDialogReturn, UseBookmarksReturn, UseCompareDocumentsDialogReturn, UseContentControlResult, UseContentControlWidgetResult, UseDialogReturn, UseDocumentOutlineResult, UseDocumentSearchOptions, UseDocumentSearchResult, UseDocxSourceOptions, UseDocxSourceResult, UseEditorColorModeReturn, UseEditorHostDocumentReturn, UseFontFamilyResult, UseGoToBookmarkOptions, UseGoToBookmarkReturn, UseHighlightsReturn, UseHistoryGroupReturn, UseHyperlinkPopupResult, UseNavigationPaneOptions, UseNavigationPaneResult, UseObjectControlReturn, UseOpenFailureOptions, UseOpenFailureReturn, UsePageSetupDialogReturn, UsePageSetupReturn, UseParagraphDialogReturn, UseParagraphFormatReturn, UseParagraphIndentReturn, UseParagraphStyleResult, UseRevisionMarkupDialogReturn, UseSelectedChartReturn, UseSelectedShapeReturn, UseSplitCellDialogReturn, UseTextFormFieldDialogReturn, UseWatermarkDialogReturn, UseWatermarkReturn, UseZoomResult, VerticalRulerProps, WatermarkDialogFieldName, WatermarkDialogFields, WatermarkDialogKind, WatermarkDialogLayout };
|