@bluechaine/print-designer 0.1.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 (82) hide show
  1. package/README.en.md +154 -0
  2. package/README.md +151 -0
  3. package/README.zh-CN.md +5 -0
  4. package/dist/plugins/api-image.cjs +2 -0
  5. package/dist/plugins/api-image.cjs.map +1 -0
  6. package/dist/plugins/api-image.mjs +28 -0
  7. package/dist/plugins/api-image.mjs.map +1 -0
  8. package/dist/plugins/api-pdf.cjs +2 -0
  9. package/dist/plugins/api-pdf.cjs.map +1 -0
  10. package/dist/plugins/api-pdf.mjs +35 -0
  11. package/dist/plugins/api-pdf.mjs.map +1 -0
  12. package/dist/plugins/view-code-edit.cjs +11 -0
  13. package/dist/plugins/view-code-edit.cjs.map +1 -0
  14. package/dist/plugins/view-code-edit.mjs +55 -0
  15. package/dist/plugins/view-code-edit.mjs.map +1 -0
  16. package/dist/types/plugins/plugin-api-image/src/index.d.ts +11 -0
  17. package/dist/types/plugins/plugin-api-pdf/src/index.d.ts +15 -0
  18. package/dist/types/plugins/plugin-view-code-edit/src/index.d.ts +15 -0
  19. package/dist/types/src/components/Designer.vue.d.ts +2016 -0
  20. package/dist/types/src/components/DragBox.vue.d.ts +223 -0
  21. package/dist/types/src/components/Header.vue.d.ts +96 -0
  22. package/dist/types/src/components/JsonEditorModal.vue.d.ts +25 -0
  23. package/dist/types/src/components/Preview.vue.d.ts +27 -0
  24. package/dist/types/src/components/PrintDataEditorModal.vue.d.ts +86 -0
  25. package/dist/types/src/components/Ruler.vue.d.ts +16 -0
  26. package/dist/types/src/components/SvpIcon.vue.d.ts +31 -0
  27. package/dist/types/src/components/Toolbar.vue.d.ts +116 -0
  28. package/dist/types/src/components/panels/DraggableElsPanel.vue.d.ts +322 -0
  29. package/dist/types/src/components/panels/LocationExchangePanel.vue.d.ts +226 -0
  30. package/dist/types/src/components/panels/MiniMapPanel.vue.d.ts +278 -0
  31. package/dist/types/src/components/panels/PageHistoryPanel.vue.d.ts +345 -0
  32. package/dist/types/src/components/panels/PageStructurePanel.vue.d.ts +262 -0
  33. package/dist/types/src/components/panels/PageTabsPanel.vue.d.ts +267 -0
  34. package/dist/types/src/components/panels/PaperProperties.vue.d.ts +52 -0
  35. package/dist/types/src/components/panels/PropertiesPanel.vue.d.ts +225 -0
  36. package/dist/types/src/composables/useDesigner.d.ts +9 -0
  37. package/dist/types/src/composables/useDesignerUi.d.ts +2 -0
  38. package/dist/types/src/composables/useDragBox.d.ts +41 -0
  39. package/dist/types/src/composables/useRuler.d.ts +10 -0
  40. package/dist/types/src/constants/default-table-element.d.ts +151 -0
  41. package/dist/types/src/constants/header-elements.d.ts +3 -0
  42. package/dist/types/src/constants/icons.d.ts +61 -0
  43. package/dist/types/src/constants/panel-layout.d.ts +74 -0
  44. package/dist/types/src/constants.d.ts +37 -0
  45. package/dist/types/src/core/designer-options.d.ts +34 -0
  46. package/dist/types/src/core/designer-utils.d.ts +209 -0
  47. package/dist/types/src/core/hiprint-bridge.d.ts +24 -0
  48. package/dist/types/src/core/hiprint-paper-list.d.ts +20 -0
  49. package/dist/types/src/core/history-labels.d.ts +8 -0
  50. package/dist/types/src/core/history.d.ts +24 -0
  51. package/dist/types/src/core/json-editor-modal.d.ts +15 -0
  52. package/dist/types/src/core/plugins.d.ts +17 -0
  53. package/dist/types/src/core/preview-html.d.ts +2 -0
  54. package/dist/types/src/core/print-data-editor-modal.d.ts +19 -0
  55. package/dist/types/src/core/providers.d.ts +5 -0
  56. package/dist/types/src/core/register-icons.d.ts +1 -0
  57. package/dist/types/src/core/shortcuts.d.ts +20 -0
  58. package/dist/types/src/core/storage.d.ts +3 -0
  59. package/dist/types/src/core/stores.d.ts +77 -0
  60. package/dist/types/src/core/svp-element-provider.d.ts +8 -0
  61. package/dist/types/src/core/template-fields.d.ts +28 -0
  62. package/dist/types/src/core/theme.d.ts +1 -0
  63. package/dist/types/src/i18n/en-US.d.ts +104 -0
  64. package/dist/types/src/i18n/index.d.ts +12 -0
  65. package/dist/types/src/i18n/zh-CN.d.ts +104 -0
  66. package/dist/types/src/index.d.ts +52 -0
  67. package/dist/types/src/types.d.ts +229 -0
  68. package/dist/vue2/index.cjs +10329 -0
  69. package/dist/vue2/index.cjs.map +1 -0
  70. package/dist/vue2/index.mjs +10324 -0
  71. package/dist/vue2/index.mjs.map +1 -0
  72. package/dist/vue2/index.umd.cjs +10330 -0
  73. package/dist/vue2/index.umd.cjs.map +1 -0
  74. package/dist/vue2/style.css +2657 -0
  75. package/dist/vue3/index.cjs +10062 -0
  76. package/dist/vue3/index.cjs.map +1 -0
  77. package/dist/vue3/index.mjs +10057 -0
  78. package/dist/vue3/index.mjs.map +1 -0
  79. package/dist/vue3/index.umd.cjs +10063 -0
  80. package/dist/vue3/index.umd.cjs.map +1 -0
  81. package/dist/vue3/style.css +2657 -0
  82. package/package.json +129 -0
@@ -0,0 +1,223 @@
1
+ import { type PropType } from 'vue-demi';
2
+ import { type PanelVisibility } from '../core/stores';
3
+ import type { SvpPanelLayoutKey } from '../constants/panel-layout';
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ title: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ storageKey: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ layoutKey: {
14
+ type: PropType<SvpPanelLayoutKey>;
15
+ default: string;
16
+ };
17
+ styleOptionKey: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ panelKey: {
22
+ type: PropType<keyof PanelVisibility>;
23
+ default: string;
24
+ };
25
+ defaultX: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ defaultY: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ width: {
34
+ type: NumberConstructor;
35
+ default: number;
36
+ };
37
+ height: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ visible: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ folded: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ foldable: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ closable: {
54
+ type: BooleanConstructor;
55
+ default: undefined;
56
+ };
57
+ bodyPadding: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ boundsSelector: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ bodyStyleExtra: {
66
+ type: PropType<Record<string, string>>;
67
+ default: () => {};
68
+ };
69
+ }>, {
70
+ boxRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
71
+ state: {
72
+ x: number;
73
+ y: number;
74
+ width: number;
75
+ height: number;
76
+ folded: boolean;
77
+ visible: boolean;
78
+ };
79
+ show: import("vue").ComputedRef<boolean>;
80
+ showFold: import("vue").ComputedRef<boolean>;
81
+ showClose: import("vue").ComputedRef<boolean>;
82
+ toggleFolded: () => void;
83
+ boxStyle: import("vue").ComputedRef<{
84
+ left: string;
85
+ top: string;
86
+ width: string;
87
+ height: string;
88
+ }>;
89
+ bodyStyle: import("vue").ComputedRef<{
90
+ padding: string | undefined;
91
+ }>;
92
+ onClose: () => void;
93
+ resolvedTitle: import("vue").ComputedRef<string>;
94
+ draggable: import("vue").ComputedRef<boolean>;
95
+ t: (key: string, fallback?: string) => string;
96
+ UI_ICONS: {
97
+ readonly save: "lucide:save";
98
+ readonly preview: "lucide:eye";
99
+ readonly editTemplate: "lucide:file-json-2";
100
+ readonly editPrintData: "lucide:database";
101
+ readonly exportFile: "lucide:download";
102
+ readonly importFile: "lucide:upload";
103
+ readonly chevronDown: "lucide:chevron-down";
104
+ readonly close: "lucide:x";
105
+ };
106
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:visible")[], "close" | "update:visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
107
+ title: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ storageKey: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ layoutKey: {
116
+ type: PropType<SvpPanelLayoutKey>;
117
+ default: string;
118
+ };
119
+ styleOptionKey: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ panelKey: {
124
+ type: PropType<keyof PanelVisibility>;
125
+ default: string;
126
+ };
127
+ defaultX: {
128
+ type: NumberConstructor;
129
+ default: number;
130
+ };
131
+ defaultY: {
132
+ type: NumberConstructor;
133
+ default: number;
134
+ };
135
+ width: {
136
+ type: NumberConstructor;
137
+ default: number;
138
+ };
139
+ height: {
140
+ type: NumberConstructor;
141
+ default: number;
142
+ };
143
+ visible: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ folded: {
148
+ type: BooleanConstructor;
149
+ default: boolean;
150
+ };
151
+ foldable: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ closable: {
156
+ type: BooleanConstructor;
157
+ default: undefined;
158
+ };
159
+ bodyPadding: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ };
163
+ boundsSelector: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ };
167
+ bodyStyleExtra: {
168
+ type: PropType<Record<string, string>>;
169
+ default: () => {};
170
+ };
171
+ }>> & Readonly<{
172
+ onClose?: ((...args: any[]) => any) | undefined;
173
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
174
+ }>, {
175
+ title: string;
176
+ width: number;
177
+ height: number;
178
+ panelKey: keyof PanelVisibility;
179
+ visible: boolean;
180
+ folded: boolean;
181
+ storageKey: string;
182
+ layoutKey: "draggableEls" | "miniMap" | "pageStructure" | "pageHistory" | "properties";
183
+ styleOptionKey: string;
184
+ defaultX: number;
185
+ defaultY: number;
186
+ foldable: boolean;
187
+ closable: boolean;
188
+ bodyPadding: string;
189
+ boundsSelector: string;
190
+ bodyStyleExtra: Record<string, string>;
191
+ }, {}, {
192
+ SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
193
+ icon: {
194
+ type: StringConstructor;
195
+ required: true;
196
+ };
197
+ size: {
198
+ type: (StringConstructor | NumberConstructor)[];
199
+ default: number;
200
+ };
201
+ }>, {
202
+ isSvg: import("vue").ComputedRef<boolean>;
203
+ sizePx: import("vue").ComputedRef<number>;
204
+ wrapStyle: import("vue").ComputedRef<{
205
+ width: string;
206
+ height: string;
207
+ }>;
208
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
209
+ icon: {
210
+ type: StringConstructor;
211
+ required: true;
212
+ };
213
+ size: {
214
+ type: (StringConstructor | NumberConstructor)[];
215
+ default: number;
216
+ };
217
+ }>> & Readonly<{}>, {
218
+ size: string | number;
219
+ }, {}, {
220
+ Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
221
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
222
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
223
+ export default _default;
@@ -0,0 +1,96 @@
1
+ import { type PropType } from 'vue-demi';
2
+ import type { HeaderEle } from '../types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ title: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ logoHtml: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ headerNewEle: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ headerEleList: {
17
+ type: PropType<HeaderEle[]>;
18
+ default: () => never[];
19
+ };
20
+ }>, {
21
+ t: (key: string, fallback?: string) => string;
22
+ UI_ICONS: {
23
+ readonly save: "lucide:save";
24
+ readonly preview: "lucide:eye";
25
+ readonly editTemplate: "lucide:file-json-2";
26
+ readonly editPrintData: "lucide:database";
27
+ readonly exportFile: "lucide:download";
28
+ readonly importFile: "lucide:upload";
29
+ readonly chevronDown: "lucide:chevron-down";
30
+ readonly close: "lucide:x";
31
+ };
32
+ showElementBar: import("vue").ComputedRef<boolean>;
33
+ resolvedEleList: import("vue").ComputedRef<HeaderEle[]>;
34
+ onElementClick: (item: HeaderEle, event: MouseEvent) => void;
35
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("save" | "preview" | "edit-template" | "edit-print-data" | "export-file" | "import-file")[], "save" | "preview" | "edit-template" | "edit-print-data" | "export-file" | "import-file", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
+ title: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ logoHtml: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ headerNewEle: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ headerEleList: {
49
+ type: PropType<HeaderEle[]>;
50
+ default: () => never[];
51
+ };
52
+ }>> & Readonly<{
53
+ onPreview?: ((...args: any[]) => any) | undefined;
54
+ onSave?: ((...args: any[]) => any) | undefined;
55
+ "onEdit-template"?: ((...args: any[]) => any) | undefined;
56
+ "onEdit-print-data"?: ((...args: any[]) => any) | undefined;
57
+ "onExport-file"?: ((...args: any[]) => any) | undefined;
58
+ "onImport-file"?: ((...args: any[]) => any) | undefined;
59
+ }>, {
60
+ title: string;
61
+ logoHtml: string;
62
+ headerNewEle: boolean;
63
+ headerEleList: HeaderEle[];
64
+ }, {}, {
65
+ SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
66
+ icon: {
67
+ type: StringConstructor;
68
+ required: true;
69
+ };
70
+ size: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: number;
73
+ };
74
+ }>, {
75
+ isSvg: import("vue").ComputedRef<boolean>;
76
+ sizePx: import("vue").ComputedRef<number>;
77
+ wrapStyle: import("vue").ComputedRef<{
78
+ width: string;
79
+ height: string;
80
+ }>;
81
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
82
+ icon: {
83
+ type: StringConstructor;
84
+ required: true;
85
+ };
86
+ size: {
87
+ type: (StringConstructor | NumberConstructor)[];
88
+ default: number;
89
+ };
90
+ }>> & Readonly<{}>, {
91
+ size: string | number;
92
+ }, {}, {
93
+ Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
94
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
95
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
96
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import type { JsonEditorModalOptions } from '../core/json-editor-modal';
2
+ export interface JsonEditorOpenOptions extends JsonEditorModalOptions {
3
+ variant?: 'template' | 'default';
4
+ }
5
+ declare const _default: import("vue").DefineComponent<{}, {
6
+ visible: import("vue").Ref<boolean, boolean>;
7
+ title: import("vue").Ref<string, string>;
8
+ text: import("vue").Ref<string, string>;
9
+ error: import("vue").Ref<string, string>;
10
+ confirmText: import("vue").Ref<string, string>;
11
+ cancelText: import("vue").Ref<string, string>;
12
+ clearTextLabel: import("vue").Ref<string, string>;
13
+ copyTextLabel: import("vue").Ref<string, string>;
14
+ showToolbar: import("vue").Ref<boolean, boolean>;
15
+ linesRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
16
+ textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
17
+ lineNumbers: import("vue").ComputedRef<string>;
18
+ close: (result: unknown | null) => void;
19
+ onInput: () => void;
20
+ syncScroll: () => void;
21
+ doClear: () => void;
22
+ doCopy: () => Promise<void>;
23
+ apply: () => void;
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { type PropType } from 'vue-demi';
2
+ import type { PreviewOptions } from '../types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ options: {
5
+ type: PropType<PreviewOptions>;
6
+ default: () => {};
7
+ };
8
+ }>, {
9
+ t: (key: string, fallback?: string) => string;
10
+ visible: import("vue").Ref<boolean, boolean>;
11
+ html: import("vue").Ref<string, string>;
12
+ canExportPdf: import("vue").ComputedRef<boolean>;
13
+ canExportImage: import("vue").ComputedRef<boolean>;
14
+ canPrint: import("vue").ComputedRef<boolean>;
15
+ close: () => void;
16
+ onPrint: () => Promise<void>;
17
+ onPdf: () => Promise<void>;
18
+ onImage: () => Promise<void>;
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
+ options: {
21
+ type: PropType<PreviewOptions>;
22
+ default: () => {};
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ options: PreviewOptions;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,86 @@
1
+ import { type TableFieldDef, type TemplateFieldSchema } from '../core/template-fields';
2
+ declare const _default: import("vue").DefineComponent<{}, {
3
+ visible: import("vue").Ref<boolean, boolean>;
4
+ title: import("vue").Ref<string, string>;
5
+ confirmText: import("vue").Ref<string, string>;
6
+ cancelText: import("vue").Ref<string, string>;
7
+ clearTextLabel: import("vue").Ref<string, string>;
8
+ copyTextLabel: import("vue").Ref<string, string>;
9
+ basicSectionTitle: import("vue").Ref<string, string>;
10
+ tableSectionTitle: import("vue").Ref<string, string>;
11
+ emptyHint: import("vue").Ref<string, string>;
12
+ addRowText: import("vue").Ref<string, string>;
13
+ deleteRowText: import("vue").Ref<string, string>;
14
+ tableFieldLabel: import("vue").Ref<string, string>;
15
+ schema: import("vue").Ref<{
16
+ basicFields: {
17
+ field: string;
18
+ label: string;
19
+ testData?: string | undefined;
20
+ }[];
21
+ tables: {
22
+ field: string;
23
+ label: string;
24
+ columns: {
25
+ field: string;
26
+ label: string;
27
+ }[];
28
+ }[];
29
+ }, TemplateFieldSchema | {
30
+ basicFields: {
31
+ field: string;
32
+ label: string;
33
+ testData?: string | undefined;
34
+ }[];
35
+ tables: {
36
+ field: string;
37
+ label: string;
38
+ columns: {
39
+ field: string;
40
+ label: string;
41
+ }[];
42
+ }[];
43
+ }>;
44
+ basicValues: Record<string, string>;
45
+ tableValues: Record<string, Record<string, string>[]>;
46
+ isEmpty: import("vue").ComputedRef<boolean>;
47
+ ICON_DELETE: string;
48
+ close: (result: Record<string, unknown> | null) => void;
49
+ addTableRow: (table: TableFieldDef) => void;
50
+ removeTableRow: (tableField: string, rowIndex: number) => void;
51
+ doClear: () => void;
52
+ doCopy: () => Promise<void>;
53
+ apply: () => void;
54
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
55
+ SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
56
+ icon: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ size: {
61
+ type: (StringConstructor | NumberConstructor)[];
62
+ default: number;
63
+ };
64
+ }>, {
65
+ isSvg: import("vue").ComputedRef<boolean>;
66
+ sizePx: import("vue").ComputedRef<number>;
67
+ wrapStyle: import("vue").ComputedRef<{
68
+ width: string;
69
+ height: string;
70
+ }>;
71
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
+ icon: {
73
+ type: StringConstructor;
74
+ required: true;
75
+ };
76
+ size: {
77
+ type: (StringConstructor | NumberConstructor)[];
78
+ default: number;
79
+ };
80
+ }>> & Readonly<{}>, {
81
+ size: string | number;
82
+ }, {}, {
83
+ Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
84
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
85
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { type PropType } from 'vue-demi';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ scroller: {
4
+ type: PropType<() => HTMLElement | null>;
5
+ required: true;
6
+ };
7
+ }>, {
8
+ rulerXRef: import("vue").Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
9
+ rulerYRef: import("vue").Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ scroller: {
12
+ type: PropType<() => HTMLElement | null>;
13
+ required: true;
14
+ };
15
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
@@ -0,0 +1,31 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ icon: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ size: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: number;
9
+ };
10
+ }>, {
11
+ isSvg: import("vue").ComputedRef<boolean>;
12
+ sizePx: import("vue").ComputedRef<number>;
13
+ wrapStyle: import("vue").ComputedRef<{
14
+ width: string;
15
+ height: string;
16
+ }>;
17
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ icon: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ size: {
23
+ type: (StringConstructor | NumberConstructor)[];
24
+ default: number;
25
+ };
26
+ }>> & Readonly<{}>, {
27
+ size: string | number;
28
+ }, {}, {
29
+ Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
30
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ export default _default;
@@ -0,0 +1,116 @@
1
+ import { type PropType } from 'vue-demi';
2
+ import type { Lang, ToolDescriptor } from '../types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ tools: {
5
+ type: PropType<ToolDescriptor[]>;
6
+ default: () => ToolDescriptor[];
7
+ };
8
+ hiddenKeys: {
9
+ type: PropType<string[]>;
10
+ default: () => never[];
11
+ };
12
+ mobileOnlyKeys: {
13
+ type: PropType<string[]>;
14
+ default: () => never[];
15
+ };
16
+ }>, {
17
+ t: (key: string, fallback?: string) => string;
18
+ lang: import("vue").ComputedRef<Lang>;
19
+ localeList: Lang[];
20
+ utils: import("../index.js").DesignerUtils;
21
+ visibleTools: import("vue").ComputedRef<ToolDescriptor[]>;
22
+ zoomPercentText: import("vue").ComputedRef<string>;
23
+ localeLabel: (code: string) => string;
24
+ onLangChange: (e: Event) => void;
25
+ onToolbarMouseDown: (e: MouseEvent) => void;
26
+ tooltipFor: (tool: ToolDescriptor) => string;
27
+ isDisabled: (tool: ToolDescriptor) => boolean;
28
+ isActive: (tool: ToolDescriptor) => boolean;
29
+ onClick: (tool: ToolDescriptor) => void;
30
+ TOOL_ICONS: {
31
+ readonly undo: "lucide:undo-2";
32
+ readonly redo: "lucide:redo-2";
33
+ readonly alignLeft: "lucide:align-left";
34
+ readonly alignCenter: "lucide:align-center";
35
+ readonly alignRight: "lucide:align-right";
36
+ readonly alignTop: "lucide:align-start-vertical";
37
+ readonly alignMiddle: "lucide:align-center-vertical";
38
+ readonly alignBottom: "lucide:align-end-vertical";
39
+ readonly moveTop: "lucide:arrow-up-to-line";
40
+ readonly moveUp: "lucide:arrow-up";
41
+ readonly moveDown: "lucide:arrow-down";
42
+ readonly moveBottom: "lucide:arrow-down-to-line";
43
+ readonly flipH: "lucide:flip-horizontal";
44
+ readonly flipV: "lucide:flip-vertical";
45
+ readonly fontInc: "lucide:plus";
46
+ readonly fontDec: "lucide:minus";
47
+ readonly fontBold: "lucide:bold";
48
+ readonly fontUnbold: "lucide:bold";
49
+ readonly lock: "lucide:lock";
50
+ readonly unlock: "lucide:unlock";
51
+ readonly clone: "lucide:copy-plus";
52
+ readonly copy: "lucide:copy";
53
+ readonly cut: "lucide:scissors";
54
+ readonly paste: "lucide:clipboard-paste";
55
+ readonly delete: "lucide:trash-2";
56
+ readonly zoomOut: "lucide:zoom-out";
57
+ readonly zoomIn: "lucide:zoom-in";
58
+ readonly rotate: "lucide:rotate-cw";
59
+ readonly clear: "lucide:eraser";
60
+ readonly toggle: "lucide:panel-left";
61
+ };
62
+ isLockToggleDisabled: () => boolean;
63
+ isSelectionLocked: () => boolean;
64
+ lockToggleIcon: () => string;
65
+ lockToggleTooltip: () => string;
66
+ onLockToggleClick: () => void;
67
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
68
+ tools: {
69
+ type: PropType<ToolDescriptor[]>;
70
+ default: () => ToolDescriptor[];
71
+ };
72
+ hiddenKeys: {
73
+ type: PropType<string[]>;
74
+ default: () => never[];
75
+ };
76
+ mobileOnlyKeys: {
77
+ type: PropType<string[]>;
78
+ default: () => never[];
79
+ };
80
+ }>> & Readonly<{}>, {
81
+ tools: ToolDescriptor[];
82
+ hiddenKeys: string[];
83
+ mobileOnlyKeys: string[];
84
+ }, {}, {
85
+ SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
86
+ icon: {
87
+ type: StringConstructor;
88
+ required: true;
89
+ };
90
+ size: {
91
+ type: (StringConstructor | NumberConstructor)[];
92
+ default: number;
93
+ };
94
+ }>, {
95
+ isSvg: import("vue").ComputedRef<boolean>;
96
+ sizePx: import("vue").ComputedRef<number>;
97
+ wrapStyle: import("vue").ComputedRef<{
98
+ width: string;
99
+ height: string;
100
+ }>;
101
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
102
+ icon: {
103
+ type: StringConstructor;
104
+ required: true;
105
+ };
106
+ size: {
107
+ type: (StringConstructor | NumberConstructor)[];
108
+ default: number;
109
+ };
110
+ }>> & Readonly<{}>, {
111
+ size: string | number;
112
+ }, {}, {
113
+ Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
114
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
115
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
116
+ export default _default;