superdoc 2.28.0 → 2.29.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
- package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
- package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
- package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
- package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-DmSkZehl.cjs} +72 -100
- package/dist/chunks/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-aOWhUVI7.es.js} +69 -97
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-DdT4b29f.es.js} +200 -65
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-_SbygYQ4.cjs} +227 -68
- package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
- package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +18 -11
- package/dist/layout-engine/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/SuperDoc.vue.d.ts +137 -61
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +533 -48
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +107 -23
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +74 -14
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
- package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
- package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +29 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +14 -0
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +40 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +3 -8
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -9
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +14 -23
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -11
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +7 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +80 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +113 -33
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -49
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +372 -123
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +1117 -370
- package/dist/superdoc.cjs +1923 -2838
- package/dist/superdoc.es.js +1863 -2783
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/OverflowMenu.vue.d.ts +0 -104
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- package/dist/superdoc/src/main.d.ts +0 -1
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface DocumentModeOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
description: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
options: {
|
|
11
|
+
type: PropType<DocumentModeOption[]>;
|
|
6
12
|
};
|
|
7
|
-
}
|
|
13
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
select: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
options: {
|
|
17
|
+
type: PropType<DocumentModeOption[]>;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{
|
|
20
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
22
|
documentModeRefs: HTMLDivElement[];
|
|
9
23
|
}, HTMLDivElement>;
|
|
10
24
|
export default _default;
|
|
@@ -1,10 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ComboBoxCommand, ComboBoxItem, ComboBoxTabOut } from './ToolbarComboBox.vue.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
item: {
|
|
5
|
+
type: PropType<ComboBoxItem>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
uiFontFamily: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
command: (payload: ComboBoxCommand) => any;
|
|
14
|
+
"item-clicked": () => any;
|
|
15
|
+
"tab-out": (event: ComboBoxTabOut) => any;
|
|
16
|
+
"editor-handoff": () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
item: {
|
|
19
|
+
type: PropType<ComboBoxItem>;
|
|
20
|
+
required: true;
|
|
8
21
|
};
|
|
9
|
-
|
|
22
|
+
uiFontFamily: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{
|
|
27
|
+
onCommand?: ((payload: ComboBoxCommand) => any) | undefined;
|
|
28
|
+
"onItem-clicked"?: (() => any) | undefined;
|
|
29
|
+
"onTab-out"?: ((event: ComboBoxTabOut) => any) | undefined;
|
|
30
|
+
"onEditor-handoff"?: (() => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
uiFontFamily: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
34
|
export default _default;
|
|
@@ -1,10 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ComboBoxCommand, ComboBoxItem, ComboBoxTabOut } from './ToolbarComboBox.vue.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
item: {
|
|
5
|
+
type: PropType<ComboBoxItem>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
uiFontFamily: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
command: (payload: ComboBoxCommand) => any;
|
|
14
|
+
"item-clicked": () => any;
|
|
15
|
+
"tab-out": (event: ComboBoxTabOut) => any;
|
|
16
|
+
"editor-handoff": () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
item: {
|
|
19
|
+
type: PropType<ComboBoxItem>;
|
|
20
|
+
required: true;
|
|
8
21
|
};
|
|
9
|
-
|
|
22
|
+
uiFontFamily: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{
|
|
27
|
+
onCommand?: ((payload: ComboBoxCommand) => any) | undefined;
|
|
28
|
+
"onItem-clicked"?: (() => any) | undefined;
|
|
29
|
+
"onTab-out"?: ((event: ComboBoxTabOut) => any) | undefined;
|
|
30
|
+
"onEditor-handoff"?: (() => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
uiFontFamily: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
34
|
export default _default;
|
|
@@ -1,14 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { ColorOption } from './IconGridRow.vue.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
icons: {
|
|
5
|
+
type: PropType<ColorOption[][]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
customIcons: {
|
|
9
|
+
type: PropType<ColorOption[][]>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
activeColor: {
|
|
13
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
hasNoneIcon: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
select: (...args: any[]) => void;
|
|
22
|
+
clickoutside: (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
icons: {
|
|
25
|
+
type: PropType<ColorOption[][]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
customIcons: {
|
|
29
|
+
type: PropType<ColorOption[][]>;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
activeColor: {
|
|
33
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
hasNoneIcon: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onClickoutside?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}>, {
|
|
4
44
|
hasNoneIcon: boolean;
|
|
5
|
-
|
|
6
|
-
customIcons?: unknown[] | undefined;
|
|
7
|
-
$props: {
|
|
8
|
-
readonly icons?: unknown[] | undefined;
|
|
9
|
-
readonly hasNoneIcon?: boolean | undefined;
|
|
10
|
-
readonly activeColor?: Record<string, any> | undefined;
|
|
11
|
-
readonly customIcons?: unknown[] | undefined;
|
|
12
|
-
};
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
46
|
export default _default;
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
export interface ColorOption {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
value: string;
|
|
6
|
+
style: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
9
|
+
icons: {
|
|
10
|
+
type: PropType<ColorOption[][]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
activeColor: {
|
|
14
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
select: (...args: any[]) => void;
|
|
19
|
+
clickoutside: (...args: any[]) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
icons: {
|
|
22
|
+
type: PropType<ColorOption[][]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
activeColor: {
|
|
26
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onClickoutside?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
10
33
|
rowRefs: HTMLDivElement[];
|
|
11
34
|
iconRefs: HTMLDivElement[];
|
|
12
35
|
}, any>;
|
|
@@ -1,39 +1,184 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { SuperDocUI } from '../../../public/ui/types.js';
|
|
3
|
+
type LinkInputUI = Partial<Pick<SuperDocUI, 'selection' | 'toolbar' | 'document'>> & Pick<SuperDocUI, 'commands'>;
|
|
4
|
+
interface LinkItem {
|
|
5
|
+
attributes?: Ref<{
|
|
6
|
+
href?: unknown;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
showInput: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
showLink: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
goToAnchor: {
|
|
19
|
+
type: PropType<(anchorUrl: string) => unknown>;
|
|
20
|
+
default: () => void;
|
|
21
|
+
};
|
|
22
|
+
/** The shared UI controller (single command-state truth). */
|
|
23
|
+
ui: {
|
|
24
|
+
type: PropType<LinkInputUI | null>;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
/** The built-in `link` toolbar item, for current-href fallback. */
|
|
28
|
+
linkItem: {
|
|
29
|
+
type: PropType<LinkItem | null>;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
closePopover: {
|
|
33
|
+
type: PropType<() => void>;
|
|
34
|
+
default: () => void;
|
|
35
|
+
};
|
|
36
|
+
href: {
|
|
37
|
+
type: PropType<string | null>;
|
|
38
|
+
default: null;
|
|
39
|
+
};
|
|
40
|
+
target: {
|
|
41
|
+
type: PropType<string | null>;
|
|
42
|
+
default: null;
|
|
43
|
+
};
|
|
44
|
+
rel: {
|
|
45
|
+
type: PropType<string | null>;
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
tooltip: {
|
|
49
|
+
type: PropType<string | null>;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
clickedElement: {
|
|
53
|
+
type: PropType<HTMLElement | null>;
|
|
54
|
+
default: null;
|
|
55
|
+
};
|
|
56
|
+
hyperlinkTarget: {
|
|
57
|
+
type: PropType<object | null>;
|
|
58
|
+
default: null;
|
|
59
|
+
};
|
|
60
|
+
hyperlinkText: {
|
|
61
|
+
type: PropType<string | null>;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
textTarget: {
|
|
65
|
+
type: PropType<object | null>;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
68
|
+
selectedText: {
|
|
69
|
+
type: PropType<string | null>;
|
|
70
|
+
default: null;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Re-applies the toolbar's pre-interaction selection capture before the link
|
|
74
|
+
* command runs. LinkInput executes the command directly (bypassing Toolbar.vue's
|
|
75
|
+
* handleCommand → restoreSelection), so without this the command would wrap
|
|
76
|
+
* whatever selection remains after the dropdown interaction instead of the text
|
|
77
|
+
* the user highlighted. Supplied by renderLinkDropdown.
|
|
78
|
+
*/
|
|
79
|
+
restoreSelection: {
|
|
80
|
+
type: PropType<() => void>;
|
|
81
|
+
default: () => void;
|
|
82
|
+
};
|
|
83
|
+
documentMode: {
|
|
84
|
+
type: PropType<string | null>;
|
|
85
|
+
default: null;
|
|
86
|
+
};
|
|
87
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
88
|
+
showInput: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
showLink: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
goToAnchor: {
|
|
97
|
+
type: PropType<(anchorUrl: string) => unknown>;
|
|
98
|
+
default: () => void;
|
|
99
|
+
};
|
|
100
|
+
/** The shared UI controller (single command-state truth). */
|
|
101
|
+
ui: {
|
|
102
|
+
type: PropType<LinkInputUI | null>;
|
|
103
|
+
default: null;
|
|
104
|
+
};
|
|
105
|
+
/** The built-in `link` toolbar item, for current-href fallback. */
|
|
106
|
+
linkItem: {
|
|
107
|
+
type: PropType<LinkItem | null>;
|
|
108
|
+
default: null;
|
|
109
|
+
};
|
|
110
|
+
closePopover: {
|
|
111
|
+
type: PropType<() => void>;
|
|
112
|
+
default: () => void;
|
|
113
|
+
};
|
|
114
|
+
href: {
|
|
115
|
+
type: PropType<string | null>;
|
|
116
|
+
default: null;
|
|
117
|
+
};
|
|
118
|
+
target: {
|
|
119
|
+
type: PropType<string | null>;
|
|
120
|
+
default: null;
|
|
121
|
+
};
|
|
122
|
+
rel: {
|
|
123
|
+
type: PropType<string | null>;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
tooltip: {
|
|
127
|
+
type: PropType<string | null>;
|
|
128
|
+
default: null;
|
|
129
|
+
};
|
|
130
|
+
clickedElement: {
|
|
131
|
+
type: PropType<HTMLElement | null>;
|
|
132
|
+
default: null;
|
|
133
|
+
};
|
|
134
|
+
hyperlinkTarget: {
|
|
135
|
+
type: PropType<object | null>;
|
|
136
|
+
default: null;
|
|
137
|
+
};
|
|
138
|
+
hyperlinkText: {
|
|
139
|
+
type: PropType<string | null>;
|
|
140
|
+
default: null;
|
|
141
|
+
};
|
|
142
|
+
textTarget: {
|
|
143
|
+
type: PropType<object | null>;
|
|
144
|
+
default: null;
|
|
145
|
+
};
|
|
146
|
+
selectedText: {
|
|
147
|
+
type: PropType<string | null>;
|
|
148
|
+
default: null;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Re-applies the toolbar's pre-interaction selection capture before the link
|
|
152
|
+
* command runs. LinkInput executes the command directly (bypassing Toolbar.vue's
|
|
153
|
+
* handleCommand → restoreSelection), so without this the command would wrap
|
|
154
|
+
* whatever selection remains after the dropdown interaction instead of the text
|
|
155
|
+
* the user highlighted. Supplied by renderLinkDropdown.
|
|
156
|
+
*/
|
|
157
|
+
restoreSelection: {
|
|
158
|
+
type: PropType<() => void>;
|
|
159
|
+
default: () => void;
|
|
160
|
+
};
|
|
161
|
+
documentMode: {
|
|
162
|
+
type: PropType<string | null>;
|
|
163
|
+
default: null;
|
|
164
|
+
};
|
|
165
|
+
}>> & Readonly<{}>, {
|
|
166
|
+
target: string | null;
|
|
167
|
+
href: string | null;
|
|
168
|
+
tooltip: string | null;
|
|
169
|
+
rel: string | null;
|
|
170
|
+
documentMode: string | null;
|
|
171
|
+
ui: LinkInputUI | null;
|
|
172
|
+
textTarget: object | null;
|
|
173
|
+
hyperlinkTarget: object | null;
|
|
10
174
|
showInput: boolean;
|
|
11
175
|
showLink: boolean;
|
|
12
|
-
goToAnchor:
|
|
13
|
-
linkItem:
|
|
14
|
-
closePopover:
|
|
15
|
-
clickedElement:
|
|
16
|
-
hyperlinkText: string;
|
|
17
|
-
selectedText: string;
|
|
18
|
-
restoreSelection:
|
|
19
|
-
|
|
20
|
-
readonly target?: string | undefined;
|
|
21
|
-
readonly href?: string | undefined;
|
|
22
|
-
readonly tooltip?: string | undefined;
|
|
23
|
-
readonly rel?: string | undefined;
|
|
24
|
-
readonly documentMode?: string | undefined;
|
|
25
|
-
readonly ui?: Record<string, any> | undefined;
|
|
26
|
-
readonly textTarget?: Record<string, any> | undefined;
|
|
27
|
-
readonly hyperlinkTarget?: Record<string, any> | undefined;
|
|
28
|
-
readonly showInput?: boolean | undefined;
|
|
29
|
-
readonly showLink?: boolean | undefined;
|
|
30
|
-
readonly goToAnchor?: Function | undefined;
|
|
31
|
-
readonly linkItem?: Record<string, any> | undefined;
|
|
32
|
-
readonly closePopover?: Function | undefined;
|
|
33
|
-
readonly clickedElement?: Record<string, any> | undefined;
|
|
34
|
-
readonly hyperlinkText?: string | undefined;
|
|
35
|
-
readonly selectedText?: string | undefined;
|
|
36
|
-
readonly restoreSelection?: Function | undefined;
|
|
37
|
-
};
|
|
38
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
176
|
+
goToAnchor: (anchorUrl: string) => unknown;
|
|
177
|
+
linkItem: LinkItem | null;
|
|
178
|
+
closePopover: () => void;
|
|
179
|
+
clickedElement: HTMLElement | null;
|
|
180
|
+
hyperlinkText: string | null;
|
|
181
|
+
selectedText: string | null;
|
|
182
|
+
restoreSelection: () => void;
|
|
183
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
39
184
|
export default _default;
|
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { StyleCatalogItem } from '../../../public/ui/types.js';
|
|
3
|
+
type LinkedStyleOption = Partial<Pick<StyleCatalogItem, 'id' | 'name' | 'preview'>>;
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
styles: {
|
|
6
|
+
type: PropType<LinkedStyleOption[]>;
|
|
7
|
+
default: () => never[];
|
|
8
|
+
};
|
|
9
|
+
selectedOption: {
|
|
10
|
+
type: PropType<string | null>;
|
|
11
|
+
default: null;
|
|
12
|
+
};
|
|
13
|
+
updateLabel: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
update: (style: Partial<Pick<StyleCatalogItem, "id" | "name" | "preview">>) => any;
|
|
19
|
+
select: (style: Partial<Pick<StyleCatalogItem, "id" | "name" | "preview">>) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
styles: {
|
|
22
|
+
type: PropType<LinkedStyleOption[]>;
|
|
23
|
+
default: () => never[];
|
|
10
24
|
};
|
|
11
|
-
|
|
25
|
+
selectedOption: {
|
|
26
|
+
type: PropType<string | null>;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
updateLabel: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{
|
|
34
|
+
onUpdate?: ((style: Partial<Pick<StyleCatalogItem, "id" | "name" | "preview">>) => any) | undefined;
|
|
35
|
+
onSelect?: ((style: Partial<Pick<StyleCatalogItem, "id" | "name" | "preview">>) => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
styles: Partial<Pick<StyleCatalogItem, "id" | "name" | "preview">>[];
|
|
38
|
+
selectedOption: string | null;
|
|
39
|
+
updateLabel: string;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
12
41
|
styleRefs: HTMLDivElement[];
|
|
13
42
|
}, HTMLDivElement>;
|
|
14
43
|
export default _default;
|
|
@@ -1,25 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { HeaderFooterKind, HeaderFooterPageNumberAlignment, HeaderFooterPageNumbersInfo, SectionPageNumberingFormat } from '../../../../../document-api/src/index.js';
|
|
3
|
+
import { CommandExecutionResult, CommandState } from '../../../public/ui/types.js';
|
|
4
|
+
type PagePosition = 'top' | 'bottom';
|
|
5
|
+
interface PageNumberChoice {
|
|
6
|
+
position: PagePosition;
|
|
7
|
+
alignment?: HeaderFooterPageNumberAlignment;
|
|
8
|
+
showOnFirstPage?: boolean;
|
|
9
|
+
format?: SectionPageNumberingFormat;
|
|
10
|
+
start?: number | null;
|
|
11
|
+
}
|
|
12
|
+
interface RememberedChoice {
|
|
13
|
+
position: PagePosition;
|
|
14
|
+
alignment: HeaderFooterPageNumberAlignment | null;
|
|
15
|
+
showOnFirstPage: boolean;
|
|
16
|
+
}
|
|
17
|
+
type PageNumberMenuOutcome = {
|
|
18
|
+
action: 'apply';
|
|
19
|
+
choice: RememberedChoice;
|
|
20
|
+
} | {
|
|
21
|
+
action: 'remove';
|
|
22
|
+
kinds: HeaderFooterKind[];
|
|
23
|
+
} | {
|
|
24
|
+
action: 'cursor';
|
|
25
|
+
};
|
|
26
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
27
|
+
/** Command state of `page-numbers-apply`, read when the popover opens. */
|
|
28
|
+
pageNumbersState: {
|
|
29
|
+
type: PropType<CommandState | null>;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
/** Command state of `page-number-insert` (insert at the header/footer cursor). */
|
|
33
|
+
atCursorState: {
|
|
34
|
+
type: PropType<CommandState | null>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
/** Header/footer structure cannot be suggested, so numbering needs Editing. */
|
|
38
|
+
suggesting: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** The selection is in a header or footer, so a disabled cursor insert needs a collapsed caret. */
|
|
43
|
+
inHeaderFooter: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
/** Resolves the caret section's page numbers (`headerFooters.pageNumbers.get`), or null. */
|
|
48
|
+
loadCurrent: {
|
|
49
|
+
type: PropType<() => Promise<HeaderFooterPageNumbersInfo | null>>;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
/** Runs `page-numbers-apply` with `{ position, alignment?, showOnFirstPage?, format?, start? }`. */
|
|
53
|
+
applyPageNumbers: {
|
|
54
|
+
type: PropType<(choice: PageNumberChoice) => Promise<CommandExecutionResult>>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
/** Runs `page-numbers-remove`. */
|
|
58
|
+
removePageNumbers: {
|
|
59
|
+
type: PropType<() => Promise<CommandExecutionResult>>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
/** Runs `page-number-insert` at the header/footer cursor. */
|
|
63
|
+
insertAtCursor: {
|
|
64
|
+
type: PropType<() => Promise<CommandExecutionResult>>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
/** Closes the popover after a successful action. */
|
|
68
|
+
close: {
|
|
69
|
+
type: PropType<(outcome: PageNumberMenuOutcome) => void>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
/** Last choice made in this session, used when the section has no numbers yet. */
|
|
73
|
+
initialChoice: {
|
|
74
|
+
type: PropType<RememberedChoice | null>;
|
|
75
|
+
default: null;
|
|
76
|
+
};
|
|
77
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
/** Command state of `page-numbers-apply`, read when the popover opens. */
|
|
79
|
+
pageNumbersState: {
|
|
80
|
+
type: PropType<CommandState | null>;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
83
|
+
/** Command state of `page-number-insert` (insert at the header/footer cursor). */
|
|
84
|
+
atCursorState: {
|
|
85
|
+
type: PropType<CommandState | null>;
|
|
86
|
+
default: null;
|
|
87
|
+
};
|
|
88
|
+
/** Header/footer structure cannot be suggested, so numbering needs Editing. */
|
|
89
|
+
suggesting: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
/** The selection is in a header or footer, so a disabled cursor insert needs a collapsed caret. */
|
|
94
|
+
inHeaderFooter: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
/** Resolves the caret section's page numbers (`headerFooters.pageNumbers.get`), or null. */
|
|
99
|
+
loadCurrent: {
|
|
100
|
+
type: PropType<() => Promise<HeaderFooterPageNumbersInfo | null>>;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
/** Runs `page-numbers-apply` with `{ position, alignment?, showOnFirstPage?, format?, start? }`. */
|
|
104
|
+
applyPageNumbers: {
|
|
105
|
+
type: PropType<(choice: PageNumberChoice) => Promise<CommandExecutionResult>>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
/** Runs `page-numbers-remove`. */
|
|
109
|
+
removePageNumbers: {
|
|
110
|
+
type: PropType<() => Promise<CommandExecutionResult>>;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
/** Runs `page-number-insert` at the header/footer cursor. */
|
|
114
|
+
insertAtCursor: {
|
|
115
|
+
type: PropType<() => Promise<CommandExecutionResult>>;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
/** Closes the popover after a successful action. */
|
|
119
|
+
close: {
|
|
120
|
+
type: PropType<(outcome: PageNumberMenuOutcome) => void>;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
/** Last choice made in this session, used when the section has no numbers yet. */
|
|
124
|
+
initialChoice: {
|
|
125
|
+
type: PropType<RememberedChoice | null>;
|
|
126
|
+
default: null;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{}>, {
|
|
3
129
|
suggesting: boolean;
|
|
4
|
-
pageNumbersState:
|
|
5
|
-
atCursorState:
|
|
130
|
+
pageNumbersState: CommandState | null;
|
|
131
|
+
atCursorState: CommandState | null;
|
|
6
132
|
inHeaderFooter: boolean;
|
|
7
|
-
loadCurrent:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
insertAtCursor: Function;
|
|
11
|
-
initialChoice: Record<string, any>;
|
|
12
|
-
$props: {
|
|
13
|
-
readonly close?: Function | undefined;
|
|
14
|
-
readonly suggesting?: boolean | undefined;
|
|
15
|
-
readonly pageNumbersState?: Record<string, any> | undefined;
|
|
16
|
-
readonly atCursorState?: Record<string, any> | undefined;
|
|
17
|
-
readonly inHeaderFooter?: boolean | undefined;
|
|
18
|
-
readonly loadCurrent?: Function | undefined;
|
|
19
|
-
readonly applyPageNumbers?: Function | undefined;
|
|
20
|
-
readonly removePageNumbers?: Function | undefined;
|
|
21
|
-
readonly insertAtCursor?: Function | undefined;
|
|
22
|
-
readonly initialChoice?: Record<string, any> | undefined;
|
|
23
|
-
};
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
133
|
+
loadCurrent: () => Promise<HeaderFooterPageNumbersInfo | null>;
|
|
134
|
+
initialChoice: RememberedChoice | null;
|
|
135
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
136
|
export default _default;
|