superdoc 2.28.0 → 2.29.0-next.1
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-0OA8hCNb.cjs} +201 -23
- package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-Duf65d0b.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/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/write/write.d.ts +10 -9
- 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 +1670 -24
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +2 -2
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +7 -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 +1 -0
- 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 +319 -401
- package/dist/superdoc.es.js +247 -330
- 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,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;
|
|
@@ -1,11 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
name: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: PropType<string | null>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
type: PropType<string | null>;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: PropType<string | null>;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
type: PropType<string | null>;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
color: string | null;
|
|
30
|
+
icon: string | null;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
32
|
export default _default;
|
|
@@ -1,16 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CSSProperties, PropType, Ref, StyleValue } from 'vue';
|
|
2
|
+
interface ComboBoxOption {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
props?: {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
interface ComboBoxItem {
|
|
12
|
+
id?: Ref<string>;
|
|
13
|
+
name?: Ref<string>;
|
|
14
|
+
label?: Ref<string | number | null | undefined>;
|
|
15
|
+
disabled?: Ref<boolean | undefined>;
|
|
16
|
+
attributes?: Ref<{
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
} | undefined>;
|
|
19
|
+
nestedOptions?: Ref<ComboBoxOption[]>;
|
|
20
|
+
selectedValue: Ref<string | undefined>;
|
|
21
|
+
expand?: Ref<boolean>;
|
|
22
|
+
style?: Ref<StyleValue | undefined>;
|
|
23
|
+
}
|
|
24
|
+
interface TabOutTarget {
|
|
25
|
+
shiftKey: boolean;
|
|
26
|
+
target: HTMLInputElement | null;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
29
|
+
item: {
|
|
30
|
+
type: PropType<ComboBoxItem>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
uiFontFamily: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
showPreview: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
normalizeValue: {
|
|
42
|
+
type: PropType<(value: string) => string>;
|
|
43
|
+
default: (value: string) => string;
|
|
44
|
+
};
|
|
45
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
command: (payload: {
|
|
47
|
+
item: ComboBoxItem;
|
|
48
|
+
argument: string;
|
|
49
|
+
option: ComboBoxOption | null;
|
|
50
|
+
}) => any;
|
|
51
|
+
"item-clicked": () => any;
|
|
52
|
+
"tab-out": (event: KeyboardEvent | TabOutTarget) => any;
|
|
53
|
+
"editor-handoff": () => any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
item: {
|
|
56
|
+
type: PropType<ComboBoxItem>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
uiFontFamily: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
showPreview: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
normalizeValue: {
|
|
68
|
+
type: PropType<(value: string) => string>;
|
|
69
|
+
default: (value: string) => string;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{
|
|
72
|
+
onCommand?: ((payload: {
|
|
73
|
+
item: ComboBoxItem;
|
|
74
|
+
argument: string;
|
|
75
|
+
option: ComboBoxOption | null;
|
|
76
|
+
}) => any) | undefined;
|
|
77
|
+
"onItem-clicked"?: (() => any) | undefined;
|
|
78
|
+
"onTab-out"?: ((event: KeyboardEvent | TabOutTarget) => any) | undefined;
|
|
79
|
+
"onEditor-handoff"?: (() => any) | undefined;
|
|
80
|
+
}>, {
|
|
4
81
|
uiFontFamily: string;
|
|
5
82
|
showPreview: boolean;
|
|
6
|
-
normalizeValue:
|
|
7
|
-
|
|
8
|
-
readonly item?: Record<string, any> | undefined;
|
|
9
|
-
readonly uiFontFamily?: string | undefined;
|
|
10
|
-
readonly showPreview?: boolean | undefined;
|
|
11
|
-
readonly normalizeValue?: Function | undefined;
|
|
12
|
-
};
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
83
|
+
normalizeValue: (value: string) => string;
|
|
84
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
85
|
rootRef: HTMLDivElement;
|
|
15
86
|
inputRef: HTMLInputElement;
|
|
16
87
|
popupRef: HTMLDivElement;
|
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
readonly options?: unknown[] | undefined;
|
|
21
|
-
readonly disabled?: boolean | undefined;
|
|
22
|
-
readonly contentStyle?: Record<string, any> | undefined;
|
|
23
|
-
readonly show?: boolean | undefined;
|
|
24
|
-
readonly menuProps?: Function | undefined;
|
|
25
|
-
readonly nodeProps?: Function | undefined;
|
|
26
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
27
|
-
readonly hasOpenChild?: boolean | undefined;
|
|
28
|
-
};
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
30
|
-
triggerRef: HTMLDivElement;
|
|
31
|
-
menuRef: HTMLDivElement;
|
|
32
|
-
}, HTMLDivElement>;
|
|
33
|
-
type __VLS_TemplateResult = {
|
|
1
|
+
import { CSSProperties, PropType } from 'vue';
|
|
2
|
+
interface DropdownOption {
|
|
3
|
+
key?: string | number;
|
|
4
|
+
label?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
class?: unknown;
|
|
8
|
+
props?: Record<string, unknown>;
|
|
9
|
+
icon?: string | object | ((option: DropdownOption) => unknown);
|
|
10
|
+
render?: () => unknown;
|
|
11
|
+
}
|
|
12
|
+
interface DropdownMenuProps {
|
|
13
|
+
class?: unknown;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
[attribute: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
type MenuPropsFactory = () => DropdownMenuProps | null | undefined;
|
|
18
|
+
type NodePropsFactory = (option: DropdownOption) => Record<string, unknown> | null | undefined;
|
|
19
|
+
declare function __VLS_template(): {
|
|
34
20
|
attrs: Partial<{}>;
|
|
35
21
|
slots: {
|
|
36
22
|
trigger?(_: {}): any;
|
|
@@ -42,3 +28,106 @@ type __VLS_TemplateResult = {
|
|
|
42
28
|
};
|
|
43
29
|
rootEl: HTMLDivElement;
|
|
44
30
|
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
33
|
+
options: {
|
|
34
|
+
type: PropType<DropdownOption[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
show: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
placement: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
contentStyle: {
|
|
50
|
+
type: PropType<CSSProperties>;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
menuProps: {
|
|
54
|
+
type: PropType<MenuPropsFactory>;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
nodeProps: {
|
|
58
|
+
type: PropType<NodePropsFactory>;
|
|
59
|
+
default: null;
|
|
60
|
+
};
|
|
61
|
+
closeOnEscape: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
hasOpenChild: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>, {
|
|
70
|
+
focusTrigger: () => void;
|
|
71
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
+
select: (key: string | number | undefined, option: DropdownOption) => any;
|
|
73
|
+
"update:show": (value: boolean) => any;
|
|
74
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
75
|
+
options: {
|
|
76
|
+
type: PropType<DropdownOption[]>;
|
|
77
|
+
default: () => never[];
|
|
78
|
+
};
|
|
79
|
+
show: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
placement: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
disabled: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
contentStyle: {
|
|
92
|
+
type: PropType<CSSProperties>;
|
|
93
|
+
default: () => {};
|
|
94
|
+
};
|
|
95
|
+
menuProps: {
|
|
96
|
+
type: PropType<MenuPropsFactory>;
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
nodeProps: {
|
|
100
|
+
type: PropType<NodePropsFactory>;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
closeOnEscape: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
hasOpenChild: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{
|
|
112
|
+
onSelect?: ((key: string | number | undefined, option: DropdownOption) => any) | undefined;
|
|
113
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
114
|
+
}>, {
|
|
115
|
+
placement: string;
|
|
116
|
+
options: DropdownOption[];
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
contentStyle: CSSProperties;
|
|
119
|
+
menuProps: MenuPropsFactory;
|
|
120
|
+
nodeProps: NodePropsFactory;
|
|
121
|
+
closeOnEscape: boolean;
|
|
122
|
+
hasOpenChild: boolean;
|
|
123
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
124
|
+
triggerRef: HTMLDivElement;
|
|
125
|
+
menuRef: HTMLDivElement;
|
|
126
|
+
}, HTMLDivElement>;
|
|
127
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
128
|
+
export default _default;
|
|
129
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
130
|
+
new (): {
|
|
131
|
+
$slots: S;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
@@ -23,7 +23,6 @@ export function useToolbarItem(options: any): {
|
|
|
23
23
|
style: import('vue').Ref<any, any>;
|
|
24
24
|
isNarrow: import('vue').Ref<any, any>;
|
|
25
25
|
isWide: import('vue').Ref<any, any>;
|
|
26
|
-
minWidth: import('vue').Ref<any, any>;
|
|
27
26
|
layoutWidth: import('vue').Ref<any, any>;
|
|
28
27
|
argument: import('vue').Ref<any, any>;
|
|
29
28
|
parentItem: import('vue').Ref<null, null>;
|