superdoc 2.28.0 → 2.29.0-next.2
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/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-D4lVeOJu.es.js} +3 -2
- package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-boENOZdF.cjs} +3 -2
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-BAGOnYGM.cjs} +201 -23
- package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-BFt8agAI.es.js} +180 -20
- 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 +3 -3
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/write/write.d.ts +10 -9
- 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 +5 -3
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2365 -48
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +108 -23
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +689 -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/use-comment.d.ts +1 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +14 -0
- 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/composables/use-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- package/dist/superdoc/src/core/SuperDoc.d.ts +1 -1
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +2 -1
- package/dist/superdoc/src/core/types/index.d.ts +9 -4
- package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- 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/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 +82 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +151 -28
- package/dist/superdoc/src/stores/superdoc-store.d.ts +454 -85
- package/dist/superdoc.cjs +396 -443
- package/dist/superdoc.es.js +329 -378
- 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
|
@@ -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;
|
|
174
|
+
restoreSelection: () => void;
|
|
10
175
|
showInput: boolean;
|
|
11
176
|
showLink: boolean;
|
|
12
|
-
goToAnchor:
|
|
13
|
-
linkItem:
|
|
14
|
-
closePopover:
|
|
15
|
-
clickedElement:
|
|
16
|
-
hyperlinkText: string;
|
|
17
|
-
selectedText: string;
|
|
18
|
-
|
|
19
|
-
$props: {
|
|
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>;
|
|
177
|
+
goToAnchor: (anchorUrl: string) => unknown;
|
|
178
|
+
linkItem: LinkItem | null;
|
|
179
|
+
closePopover: () => void;
|
|
180
|
+
clickedElement: HTMLElement | null;
|
|
181
|
+
hyperlinkText: string | null;
|
|
182
|
+
selectedText: string | null;
|
|
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;
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
-
$slots: S;
|
|
5
|
-
});
|
|
6
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
contentStyle: Record<string, any>;
|
|
9
|
-
trigger: string;
|
|
10
|
-
delay: number;
|
|
11
|
-
duration: number;
|
|
12
|
-
$props: {
|
|
13
|
-
readonly disabled?: boolean | undefined;
|
|
14
|
-
readonly contentStyle?: Record<string, any> | undefined;
|
|
15
|
-
readonly trigger?: string | undefined;
|
|
16
|
-
readonly delay?: number | undefined;
|
|
17
|
-
readonly duration?: number | undefined;
|
|
18
|
-
};
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
20
|
-
triggerRef: HTMLSpanElement;
|
|
21
|
-
contentRef: HTMLDivElement;
|
|
22
|
-
}, any>;
|
|
23
|
-
type __VLS_TemplateResult = {
|
|
1
|
+
import { CSSProperties, PropType } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
24
3
|
attrs: Partial<{}>;
|
|
25
4
|
slots: {
|
|
26
5
|
trigger?(_: {}): any;
|
|
@@ -32,3 +11,63 @@ type __VLS_TemplateResult = {
|
|
|
32
11
|
};
|
|
33
12
|
rootEl: any;
|
|
34
13
|
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
16
|
+
trigger: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
delay: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
duration: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
contentStyle: {
|
|
33
|
+
type: PropType<CSSProperties>;
|
|
34
|
+
default: () => {};
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
trigger: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
delay: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
duration: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
default: number;
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
contentStyle: {
|
|
54
|
+
type: PropType<CSSProperties>;
|
|
55
|
+
default: () => {};
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
contentStyle: CSSProperties;
|
|
60
|
+
duration: number;
|
|
61
|
+
trigger: string;
|
|
62
|
+
delay: number;
|
|
63
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
64
|
+
triggerRef: HTMLSpanElement;
|
|
65
|
+
contentRef: HTMLDivElement;
|
|
66
|
+
}, any>;
|
|
67
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
68
|
+
export default _default;
|
|
69
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -1,24 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { MaybeRef, PropType, Ref, StyleValue } from 'vue';
|
|
2
|
+
interface ToolbarButtonItem {
|
|
3
|
+
name: Ref<string>;
|
|
4
|
+
active: MaybeRef<boolean>;
|
|
5
|
+
icon: Ref<string | undefined>;
|
|
6
|
+
label: Ref<string | undefined>;
|
|
7
|
+
hideLabel: Ref<boolean | undefined>;
|
|
8
|
+
iconColor: Ref<string | undefined>;
|
|
9
|
+
hasCaret: Ref<boolean | undefined>;
|
|
10
|
+
splitButton: Ref<boolean>;
|
|
11
|
+
disabled: Ref<boolean | undefined>;
|
|
12
|
+
expand: Ref<boolean>;
|
|
13
|
+
inlineTextInputVisible: Ref<boolean | undefined>;
|
|
14
|
+
hasInlineTextInput: Ref<boolean | undefined>;
|
|
15
|
+
style: Ref<StyleValue | undefined>;
|
|
16
|
+
attributes: Ref<{
|
|
17
|
+
className?: unknown;
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
}>;
|
|
20
|
+
nestedOptions?: Ref<{
|
|
21
|
+
label?: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
25
|
+
iconColor: {
|
|
26
|
+
type: PropType<string | null>;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
active: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
isNarrow: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
isWide: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
toolbarItem: {
|
|
42
|
+
type: PropType<ToolbarButtonItem>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
defaultLabel: {
|
|
46
|
+
type: PropType<string | null>;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
isOverflowItem: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
allowEnterPropagation: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
|
+
buttonClick: () => any;
|
|
59
|
+
textSubmit: (value: string) => any;
|
|
60
|
+
mainClick: () => any;
|
|
61
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
iconColor: {
|
|
63
|
+
type: PropType<string | null>;
|
|
64
|
+
default: null;
|
|
65
|
+
};
|
|
66
|
+
active: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
isNarrow: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
isWide: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
toolbarItem: {
|
|
79
|
+
type: PropType<ToolbarButtonItem>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
defaultLabel: {
|
|
83
|
+
type: PropType<string | null>;
|
|
84
|
+
default: null;
|
|
85
|
+
};
|
|
86
|
+
isOverflowItem: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
allowEnterPropagation: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
}>> & Readonly<{
|
|
95
|
+
onButtonClick?: (() => any) | undefined;
|
|
96
|
+
onTextSubmit?: ((value: string) => any) | undefined;
|
|
97
|
+
onMainClick?: (() => any) | undefined;
|
|
98
|
+
}>, {
|
|
3
99
|
active: boolean;
|
|
4
100
|
isNarrow: boolean;
|
|
5
101
|
isWide: boolean;
|
|
6
|
-
defaultLabel: string;
|
|
7
|
-
iconColor: string;
|
|
8
|
-
toolbarItem: Record<string, any>;
|
|
102
|
+
defaultLabel: string | null;
|
|
103
|
+
iconColor: string | null;
|
|
9
104
|
isOverflowItem: boolean;
|
|
10
105
|
allowEnterPropagation: boolean;
|
|
11
|
-
|
|
12
|
-
readonly active?: boolean | undefined;
|
|
13
|
-
readonly isNarrow?: boolean | undefined;
|
|
14
|
-
readonly isWide?: boolean | undefined;
|
|
15
|
-
readonly defaultLabel?: string | undefined;
|
|
16
|
-
readonly iconColor?: string | undefined;
|
|
17
|
-
readonly toolbarItem?: Record<string, any> | undefined;
|
|
18
|
-
readonly isOverflowItem?: boolean | undefined;
|
|
19
|
-
readonly allowEnterPropagation?: boolean | undefined;
|
|
20
|
-
};
|
|
21
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
106
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
22
107
|
inlineInput: HTMLInputElement;
|
|
23
108
|
}, HTMLDivElement>;
|
|
24
109
|
export default _default;
|