@stll/folio-vue 0.23.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +24 -0
  2. package/dist/ListButtons-B8HxA64I.cjs +4 -0
  3. package/dist/{ListButtons-DjLPhg8p.js → ListButtons-BeELtp_-.js} +201 -188
  4. package/dist/{SplitCellDialog-Id6nLwrR.js → SplitCellDialog-CSqbtDum.js} +748 -732
  5. package/dist/SplitCellDialog-DzKBu09z.cjs +15 -0
  6. package/dist/components/AnonymizationRectsOverlay.vue.d.ts +20 -0
  7. package/dist/components/AutocompleteCaretOverlay.vue.d.ts +4 -0
  8. package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +11 -0
  9. package/dist/components/CommentMarginMarkers.vue.d.ts +16 -0
  10. package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +8 -0
  11. package/dist/components/DecorationLayer.vue.d.ts +12 -0
  12. package/dist/components/DocumentName.vue.d.ts +13 -0
  13. package/dist/components/DocumentOutline.vue.d.ts +28 -0
  14. package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +73 -0
  15. package/dist/components/DocxEditor/DocxEditorMenuBar.vue.d.ts +39 -0
  16. package/dist/components/DocxEditor/DocxEditorOverlays.vue.d.ts +42 -0
  17. package/dist/components/DocxEditor/types.d.ts +11 -4
  18. package/dist/components/DocxEditor.vue.d.ts +58 -0
  19. package/dist/components/EditingModeDropdown.vue.d.ts +11 -0
  20. package/dist/components/EditorToolbar.vue.d.ts +30 -0
  21. package/dist/components/FormattingBar.vue.d.ts +20 -0
  22. package/dist/components/HeaderFooterSelectionOverlay.vue.d.ts +12 -0
  23. package/dist/components/ImageContextMenu.vue.d.ts +24 -0
  24. package/dist/components/ImageSelectionOverlay.vue.d.ts +21 -0
  25. package/dist/components/InlineHeaderFooterEditor.vue.d.ts +15 -0
  26. package/dist/components/MenuBar.vue.d.ts +18 -0
  27. package/dist/components/PageIndicator.vue.d.ts +8 -0
  28. package/dist/components/PassageHighlightOverlay.vue.d.ts +16 -0
  29. package/dist/components/PrintButton.vue.d.ts +16 -0
  30. package/dist/components/ReviewControls.vue.d.ts +17 -0
  31. package/dist/components/TemplateDirectivesOverlay.vue.d.ts +15 -0
  32. package/dist/components/TextContextMenu.vue.d.ts +46 -0
  33. package/dist/components/TitleBar.vue.d.ts +17 -0
  34. package/dist/components/Toolbar.vue.d.ts +139 -0
  35. package/dist/components/UnifiedSidebar.vue.d.ts +55 -0
  36. package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +20 -0
  37. package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +15 -0
  38. package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +30 -0
  39. package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +29 -0
  40. package/dist/components/dialogs/ImagePropertiesDialog.vue.d.ts +13 -0
  41. package/dist/components/dialogs/InsertImageDialog.vue.d.ts +21 -0
  42. package/dist/components/dialogs/InsertSymbolDialog.vue.d.ts +12 -0
  43. package/dist/components/dialogs/InsertTableDialog.vue.d.ts +22 -0
  44. package/dist/components/dialogs/PageSetupDialog.vue.d.ts +14 -0
  45. package/dist/components/dialogs/PasteSpecialDialog.vue.d.ts +16 -0
  46. package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +12 -0
  47. package/dist/components/dialogs/SplitCellDialog.vue.d.ts +22 -0
  48. package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +15 -0
  49. package/dist/components/dialogs/WatermarkDialog.vue.d.ts +14 -0
  50. package/dist/components/dialogs/index.d.ts +13 -13
  51. package/dist/components/sidebar/AddCommentCard.vue.d.ts +9 -0
  52. package/dist/components/sidebar/Avatar.vue.d.ts +10 -0
  53. package/dist/components/sidebar/CommentCard.vue.d.ts +21 -0
  54. package/dist/components/sidebar/ReplyInput.vue.d.ts +7 -0
  55. package/dist/components/sidebar/ReplyThread.vue.d.ts +8 -0
  56. package/dist/components/sidebar/ResolvedCommentMarker.vue.d.ts +11 -0
  57. package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +20 -0
  58. package/dist/components/ui/AlignmentButtons.vue.d.ts +15 -0
  59. package/dist/components/ui/Button.vue.d.ts +30 -0
  60. package/dist/components/ui/Checkbox.vue.d.ts +11 -0
  61. package/dist/components/ui/ColorPicker.vue.d.ts +30 -0
  62. package/dist/components/ui/DatePickerPopover.vue.d.ts +13 -0
  63. package/dist/components/ui/Dialog.vue.d.ts +28 -0
  64. package/dist/components/ui/FontPicker.vue.d.ts +21 -0
  65. package/dist/components/ui/FontSizePicker.vue.d.ts +27 -0
  66. package/dist/components/ui/HorizontalRuler.vue.d.ts +39 -0
  67. package/dist/components/ui/HyperlinkPopup.vue.d.ts +21 -0
  68. package/dist/components/ui/IconGridDropdown.vue.d.ts +32 -0
  69. package/dist/components/ui/ImageTransformDropdown.vue.d.ts +11 -0
  70. package/dist/components/ui/ImageWrapDropdown.vue.d.ts +15 -0
  71. package/dist/components/ui/Input.vue.d.ts +17 -0
  72. package/dist/components/ui/LineSpacingPicker.vue.d.ts +20 -0
  73. package/dist/components/ui/ListButtons.vue.d.ts +30 -0
  74. package/dist/components/ui/MaterialSymbol.vue.d.ts +13 -0
  75. package/dist/components/ui/MenuDropdown.vue.d.ts +42 -0
  76. package/dist/components/ui/OutlineRail.vue.d.ts +19 -0
  77. package/dist/components/ui/Popover.vue.d.ts +40 -0
  78. package/dist/components/ui/Select.vue.d.ts +15 -0
  79. package/dist/components/ui/StylePicker.vue.d.ts +16 -0
  80. package/dist/components/ui/TableBorderColorPicker.vue.d.ts +14 -0
  81. package/dist/components/ui/TableBorderPicker.vue.d.ts +11 -0
  82. package/dist/components/ui/TableBorderWidthPicker.vue.d.ts +10 -0
  83. package/dist/components/ui/TableCellFillPicker.vue.d.ts +14 -0
  84. package/dist/components/ui/TableGridInline.vue.d.ts +14 -0
  85. package/dist/components/ui/TableGridPicker.vue.d.ts +18 -0
  86. package/dist/components/ui/TableMoreDropdown.vue.d.ts +51 -0
  87. package/dist/components/ui/TableStyleGallery.vue.d.ts +10 -0
  88. package/dist/components/ui/TableToolbar.vue.d.ts +61 -0
  89. package/dist/components/ui/VerticalRuler.vue.d.ts +20 -0
  90. package/dist/components/ui/ZoomControl.vue.d.ts +12 -0
  91. package/dist/components/ui/icon-paths.json.d.ts +276 -0
  92. package/dist/composables/useDocxEditor.d.ts +3 -0
  93. package/dist/composables/useDocxEditorRefApi.d.ts +3 -0
  94. package/dist/composables/useFindReplace.d.ts +5 -1
  95. package/dist/composables/useFontLifecycle.d.ts +1 -0
  96. package/dist/composables.cjs +2 -2
  97. package/dist/composables.js +45 -44
  98. package/dist/dialogs.cjs +1 -1
  99. package/dist/dialogs.js +2 -5
  100. package/dist/folio-vue.css +1 -156
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.d.ts +2 -0
  103. package/dist/index.js +1456 -1409
  104. package/dist/ui.cjs +1 -1
  105. package/dist/ui.js +2 -2
  106. package/dist/useFindReplace-BbW0xWo7.js +74 -0
  107. package/dist/useFindReplace-neQmDh2i.cjs +1 -0
  108. package/dist/useZoom-B1miNAf_.cjs +1 -0
  109. package/dist/{useZoom-D8Wi1XkB.js → useZoom-Bw5gp69V.js} +262 -252
  110. package/dist/utils/embeddedFonts.d.ts +1 -1
  111. package/package.json +22 -10
  112. package/dist/ListButtons-DIWR-Q8d.cjs +0 -4
  113. package/dist/SplitCellDialog-B_z6ynxm.cjs +0 -15
  114. package/dist/useFindReplace-CL8Rbc3y.js +0 -59
  115. package/dist/useFindReplace-ZCrdvwEk.cjs +0 -1
  116. package/dist/useZoom-CkbPWZ64.cjs +0 -1
@@ -0,0 +1,30 @@
1
+ export type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
2
+ export type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm" | "xs" | "icon-xs";
3
+ type __VLS_Props = {
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ };
9
+ declare var __VLS_1: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ click: (evt: MouseEvent) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClick?: (evt: MouseEvent) => any;
17
+ }>, {
18
+ size: ButtonSize;
19
+ variant: ButtonVariant;
20
+ className: string;
21
+ disabled: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ checked?: boolean;
3
+ className?: string;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ "update:checked": (value: boolean) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ "onUpdate:checked"?: (value: boolean) => any;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { CSSProperties } from 'vue';
2
+ import { ColorValue, Theme } from '@stll/folio-core/types/document';
3
+ export type ColorPickerMode = "text" | "highlight" | "border";
4
+ type __VLS_Props = {
5
+ mode: ColorPickerMode;
6
+ value?: ColorValue | string | undefined;
7
+ theme?: Theme | null;
8
+ disabled?: boolean;
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ title?: string;
12
+ /** Override the default icon for the mode */
13
+ icon?: string;
14
+ /** Override the auto/no-color button label */
15
+ autoLabel?: string;
16
+ /** Word-style split button (apply | arrow). Default true. */
17
+ splitButton?: boolean;
18
+ /** Initial "last picked" color used by the apply half. */
19
+ defaultColor?: ColorValue | string;
20
+ };
21
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ change: (color: string | ColorValue) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onChange?: (color: string | ColorValue) => any;
25
+ }>, {
26
+ disabled: boolean;
27
+ splitButton: boolean;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ value: string | Date | null;
3
+ defaultOpen?: boolean;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ change: (value: string | null) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onChange?: (value: string | null) => any;
9
+ }>, {
10
+ defaultOpen: boolean;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,28 @@
1
+ type __VLS_Props = {
2
+ open: boolean;
3
+ ariaLabel?: string;
4
+ className?: string;
5
+ backdropClass?: string;
6
+ closeOnBackdrop?: boolean;
7
+ };
8
+ declare var __VLS_7: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_7) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ close: () => any;
14
+ "update:open": (value: boolean) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClose?: () => any;
17
+ "onUpdate:open"?: (value: boolean) => any;
18
+ }>, {
19
+ closeOnBackdrop: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,21 @@
1
+ import { FontOption } from '../../utils/fontOptions';
2
+ export type { FontOption };
3
+ type __VLS_Props = {
4
+ value?: string;
5
+ fonts?: FontOption[];
6
+ disabled?: boolean;
7
+ className?: string;
8
+ placeholder?: string;
9
+ showPreview?: boolean;
10
+ };
11
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ change: (fontFamily: string) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: (fontFamily: string) => any;
15
+ }>, {
16
+ placeholder: string;
17
+ disabled: boolean;
18
+ showPreview: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,27 @@
1
+ export { halfPointsToPoints, pointsToHalfPoints } from '@stll/folio-core/utils/units';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<{
5
+ value?: number;
6
+ sizes?: number[];
7
+ disabled?: boolean;
8
+ minSize?: number;
9
+ maxSize?: number;
10
+ placeholder?: string;
11
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ change: (size: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<{
14
+ value?: number;
15
+ sizes?: number[];
16
+ disabled?: boolean;
17
+ minSize?: number;
18
+ maxSize?: number;
19
+ placeholder?: string;
20
+ }> & Readonly<{
21
+ onChange?: (size: number) => any;
22
+ }>, {
23
+ placeholder: string;
24
+ disabled: boolean;
25
+ minSize: number;
26
+ maxSize: number;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,39 @@
1
+ import { SectionProperties, TabStop } from '@stll/folio-core/types/document';
2
+ type __VLS_Props = {
3
+ sectionProps?: SectionProperties | null;
4
+ zoom?: number;
5
+ editable?: boolean;
6
+ showFirstLineIndent?: boolean;
7
+ firstLineIndent?: number;
8
+ hangingIndent?: boolean;
9
+ indentLeft?: number;
10
+ indentRight?: number;
11
+ unit?: "inch" | "cm";
12
+ tabStops?: TabStop[] | null;
13
+ };
14
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ "left-margin-change": (twips: number) => any;
16
+ "right-margin-change": (twips: number) => any;
17
+ "first-line-indent-change": (twips: number) => any;
18
+ "indent-left-change": (twips: number) => any;
19
+ "indent-right-change": (twips: number) => any;
20
+ "tab-stop-remove": (twips: number) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ "onLeft-margin-change"?: (twips: number) => any;
23
+ "onRight-margin-change"?: (twips: number) => any;
24
+ "onFirst-line-indent-change"?: (twips: number) => any;
25
+ "onIndent-left-change"?: (twips: number) => any;
26
+ "onIndent-right-change"?: (twips: number) => any;
27
+ "onTab-stop-remove"?: (twips: number) => any;
28
+ }>, {
29
+ indentLeft: number;
30
+ indentRight: number;
31
+ hangingIndent: boolean;
32
+ zoom: number;
33
+ unit: "inch" | "cm";
34
+ editable: boolean;
35
+ firstLineIndent: number;
36
+ showFirstLineIndent: boolean;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
+ declare const _default: typeof __VLS_export;
39
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { HyperlinkPopupData } from './hyperlinkPopupTypes';
2
+ export type { HyperlinkPopupData } from './hyperlinkPopupTypes';
3
+ type __VLS_Props = {
4
+ data: HyperlinkPopupData | null;
5
+ readOnly?: boolean;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ close: () => any;
9
+ copy: (href: string) => any;
10
+ remove: () => any;
11
+ edit: (displayText: string, href: string) => any;
12
+ navigate: (href: string) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onClose?: () => any;
15
+ onCopy?: (href: string) => any;
16
+ onRemove?: () => any;
17
+ onEdit?: (displayText: string, href: string) => any;
18
+ onNavigate?: (href: string) => any;
19
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,32 @@
1
+ export type IconGridOption<V extends string = string> = {
2
+ value: V;
3
+ label: string;
4
+ iconName: string;
5
+ };
6
+ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: import('vue').PublicProps & __VLS_PrettifyLocal<{
8
+ options: IconGridOption<T>[];
9
+ activeValue?: T | null;
10
+ triggerIcon: string;
11
+ tooltipContent: string;
12
+ disabled?: boolean;
13
+ ariaLabel?: string;
14
+ } & {
15
+ onSelect?: (value: T) => any;
16
+ }> & (typeof globalThis extends {
17
+ __VLS_PROPS_FALLBACK: infer P;
18
+ } ? P : {});
19
+ expose: (exposed: {}) => void;
20
+ attrs: any;
21
+ slots: {};
22
+ emit: (e: "select", value: T) => void;
23
+ }>) => import('vue').VNode & {
24
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
25
+ };
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
29
+ [K in keyof T]: T[K];
30
+ } : {
31
+ [K in keyof T as K]: T[K];
32
+ }) & {};
@@ -0,0 +1,11 @@
1
+ export type TransformAction = "rotateCW" | "rotateCCW" | "flipH" | "flipV";
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ transform: (action: TransformAction) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onTransform?: (action: TransformAction) => any;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ imageContext: {
3
+ wrapType: string;
4
+ displayMode: string;
5
+ cssFloat: string | null;
6
+ };
7
+ disabled?: boolean;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ change: (wrapType: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onChange?: (wrapType: string) => any;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number;
3
+ className?: string;
4
+ size?: "sm" | "default" | "lg";
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
7
+ focus: () => void | undefined;
8
+ select: () => void | undefined;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "update:modelValue": (value: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:modelValue"?: (value: string) => any;
13
+ }>, {
14
+ size: "sm" | "default" | "lg";
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,20 @@
1
+ export type LineSpacingOption = {
2
+ label: string;
3
+ value: number;
4
+ twipsValue: number;
5
+ };
6
+ type __VLS_Props = {
7
+ value?: number;
8
+ options?: LineSpacingOption[];
9
+ disabled?: boolean;
10
+ className?: string;
11
+ };
12
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ change: (twips: number) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onChange?: (twips: number) => any;
16
+ }>, {
17
+ disabled: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { ListState } from '../../utils/listState';
2
+ export type { ListState } from '../../utils/listState';
3
+ export { createDefaultListState } from '../../utils/listState';
4
+ declare const _default: typeof __VLS_export;
5
+ export default _default;
6
+ declare const __VLS_export: import('vue').DefineComponent<{
7
+ listState?: ListState;
8
+ disabled?: boolean;
9
+ showIndentButtons?: boolean;
10
+ canOutdent?: boolean;
11
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
+ indent: () => any;
13
+ outdent: () => any;
14
+ "bullet-list": () => any;
15
+ "numbered-list": () => any;
16
+ }, string, import('vue').PublicProps, Readonly<{
17
+ listState?: ListState;
18
+ disabled?: boolean;
19
+ showIndentButtons?: boolean;
20
+ canOutdent?: boolean;
21
+ }> & Readonly<{
22
+ onIndent?: () => any;
23
+ onOutdent?: () => any;
24
+ "onBullet-list"?: () => any;
25
+ "onNumbered-list"?: () => any;
26
+ }>, {
27
+ disabled: boolean;
28
+ canOutdent: boolean;
29
+ showIndentButtons: boolean;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,13 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ name: string;
4
+ size?: number;
5
+ className?: string;
6
+ style?: CSSProperties;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ size: number;
10
+ className: string;
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,42 @@
1
+ export type MenuItem = {
2
+ icon?: string;
3
+ label: string;
4
+ shortcut?: string;
5
+ onClick?: () => void;
6
+ disabled?: boolean;
7
+ /** Stable id so the `#submenu` slot can tell which item it's rendering for. */
8
+ key?: string;
9
+ /** When true, the item shows a right-chevron and opens the `#submenu` slot on hover. */
10
+ submenu?: boolean;
11
+ };
12
+ export type MenuSeparator = {
13
+ type: "separator";
14
+ };
15
+ export type MenuEntry = MenuItem | MenuSeparator;
16
+ type __VLS_Props = {
17
+ label: string;
18
+ items: MenuEntry[];
19
+ disabled?: boolean;
20
+ /** When true, the trigger renders a down-arrow caret next to the label.
21
+ * Default `false` — every in-tree caller is a top-level menubar button. */
22
+ showChevron?: boolean;
23
+ };
24
+ declare function closeMenu(): void;
25
+ declare var __VLS_28: {
26
+ item: MenuItem;
27
+ closeMenu: typeof closeMenu;
28
+ };
29
+ type __VLS_Slots = {} & {
30
+ submenu?: (props: typeof __VLS_28) => any;
31
+ };
32
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ showChevron: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ type __VLS_WithSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,19 @@
1
+ import { OutlineItem } from '../../ui/folio-ui';
2
+ type __VLS_Props = {
3
+ items: OutlineItem[];
4
+ getScrollContainer: () => HTMLElement | null;
5
+ resolvePct?: (id: string, container: HTMLElement) => number | null;
6
+ onJump: (id: string, container: HTMLElement) => void;
7
+ activeId?: string | null;
8
+ topOffset?: number;
9
+ panelWidth?: number;
10
+ ariaLabel?: string;
11
+ presentation?: "panel" | "rail";
12
+ };
13
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ ariaLabel: string;
15
+ activeId: string | null;
16
+ presentation: "panel" | "rail";
17
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ open: boolean;
4
+ /** Where the panel sits relative to the trigger. Defaults to bottom-left. */
5
+ placement?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
6
+ /** Extra panel className. */
7
+ panelClass?: string;
8
+ /** Extra panel inline styles. */
9
+ panelStyle?: CSSProperties;
10
+ /** Close when the user scrolls outside the panel (default true). */
11
+ closeOnScroll?: boolean;
12
+ };
13
+ declare function toggle(): void;
14
+ declare var __VLS_1: {
15
+ toggle: typeof toggle;
16
+ open: boolean;
17
+ }, __VLS_3: {};
18
+ type __VLS_Slots = {} & {
19
+ trigger?: (props: typeof __VLS_1) => any;
20
+ } & {
21
+ panel?: (props: typeof __VLS_3) => any;
22
+ };
23
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ close: () => any;
25
+ "update:open": (value: boolean) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onClose?: () => any;
28
+ "onUpdate:open"?: (value: boolean) => any;
29
+ }>, {
30
+ placement: "bottom-left" | "bottom-right" | "top-left" | "top-right";
31
+ closeOnScroll: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,15 @@
1
+ import { FolioSelectItem } from '../../ui/folio-ui';
2
+ type __VLS_Props = {
3
+ value?: string;
4
+ items: FolioSelectItem[];
5
+ disabled?: boolean;
6
+ placeholder?: string;
7
+ className?: string;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ change: (value: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onChange?: (value: string) => any;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { StyleOption } from './StylePicker.types';
2
+ type __VLS_Props = {
3
+ value?: string;
4
+ styles?: StyleOption[];
5
+ disabled?: boolean;
6
+ className?: string;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ change: (styleId: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onChange?: (styleId: string) => any;
12
+ }>, {
13
+ disabled: boolean;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@stll/folio-core/types/document';
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ theme?: Theme | null;
5
+ /** Current border color (RGB hex without #). */
6
+ value?: string;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ change: (hex: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onChange?: (hex: string) => any;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export type TableBorderPreset = "all" | "none" | "box" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV";
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ change: (preset: TableBorderPreset) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onChange?: (preset: TableBorderPreset) => any;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ change: (eighths: number) => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ onChange?: (eighths: number) => any;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@stll/folio-core/types/document';
2
+ type __VLS_Props = {
3
+ disabled?: boolean;
4
+ theme?: Theme | null;
5
+ /** Current fill color (RGB hex without #). */
6
+ value?: string;
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ change: (hex: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onChange?: (hex: string) => any;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ gridRows?: number;
3
+ gridColumns?: number;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ insert: (rows: number, cols: number) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onInsert?: (rows: number, cols: number) => any;
9
+ }>, {
10
+ gridRows: number;
11
+ gridColumns: number;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ gridRows?: number;
4
+ gridColumns?: number;
5
+ tooltip?: string;
6
+ };
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
+ insert: (rows: number, cols: number) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onInsert?: (rows: number, cols: number) => any;
11
+ }>, {
12
+ tooltip: string;
13
+ disabled: boolean;
14
+ gridRows: number;
15
+ gridColumns: number;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;