@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.
- package/README.en.md +154 -0
- package/README.md +151 -0
- package/README.zh-CN.md +5 -0
- package/dist/plugins/api-image.cjs +2 -0
- package/dist/plugins/api-image.cjs.map +1 -0
- package/dist/plugins/api-image.mjs +28 -0
- package/dist/plugins/api-image.mjs.map +1 -0
- package/dist/plugins/api-pdf.cjs +2 -0
- package/dist/plugins/api-pdf.cjs.map +1 -0
- package/dist/plugins/api-pdf.mjs +35 -0
- package/dist/plugins/api-pdf.mjs.map +1 -0
- package/dist/plugins/view-code-edit.cjs +11 -0
- package/dist/plugins/view-code-edit.cjs.map +1 -0
- package/dist/plugins/view-code-edit.mjs +55 -0
- package/dist/plugins/view-code-edit.mjs.map +1 -0
- package/dist/types/plugins/plugin-api-image/src/index.d.ts +11 -0
- package/dist/types/plugins/plugin-api-pdf/src/index.d.ts +15 -0
- package/dist/types/plugins/plugin-view-code-edit/src/index.d.ts +15 -0
- package/dist/types/src/components/Designer.vue.d.ts +2016 -0
- package/dist/types/src/components/DragBox.vue.d.ts +223 -0
- package/dist/types/src/components/Header.vue.d.ts +96 -0
- package/dist/types/src/components/JsonEditorModal.vue.d.ts +25 -0
- package/dist/types/src/components/Preview.vue.d.ts +27 -0
- package/dist/types/src/components/PrintDataEditorModal.vue.d.ts +86 -0
- package/dist/types/src/components/Ruler.vue.d.ts +16 -0
- package/dist/types/src/components/SvpIcon.vue.d.ts +31 -0
- package/dist/types/src/components/Toolbar.vue.d.ts +116 -0
- package/dist/types/src/components/panels/DraggableElsPanel.vue.d.ts +322 -0
- package/dist/types/src/components/panels/LocationExchangePanel.vue.d.ts +226 -0
- package/dist/types/src/components/panels/MiniMapPanel.vue.d.ts +278 -0
- package/dist/types/src/components/panels/PageHistoryPanel.vue.d.ts +345 -0
- package/dist/types/src/components/panels/PageStructurePanel.vue.d.ts +262 -0
- package/dist/types/src/components/panels/PageTabsPanel.vue.d.ts +267 -0
- package/dist/types/src/components/panels/PaperProperties.vue.d.ts +52 -0
- package/dist/types/src/components/panels/PropertiesPanel.vue.d.ts +225 -0
- package/dist/types/src/composables/useDesigner.d.ts +9 -0
- package/dist/types/src/composables/useDesignerUi.d.ts +2 -0
- package/dist/types/src/composables/useDragBox.d.ts +41 -0
- package/dist/types/src/composables/useRuler.d.ts +10 -0
- package/dist/types/src/constants/default-table-element.d.ts +151 -0
- package/dist/types/src/constants/header-elements.d.ts +3 -0
- package/dist/types/src/constants/icons.d.ts +61 -0
- package/dist/types/src/constants/panel-layout.d.ts +74 -0
- package/dist/types/src/constants.d.ts +37 -0
- package/dist/types/src/core/designer-options.d.ts +34 -0
- package/dist/types/src/core/designer-utils.d.ts +209 -0
- package/dist/types/src/core/hiprint-bridge.d.ts +24 -0
- package/dist/types/src/core/hiprint-paper-list.d.ts +20 -0
- package/dist/types/src/core/history-labels.d.ts +8 -0
- package/dist/types/src/core/history.d.ts +24 -0
- package/dist/types/src/core/json-editor-modal.d.ts +15 -0
- package/dist/types/src/core/plugins.d.ts +17 -0
- package/dist/types/src/core/preview-html.d.ts +2 -0
- package/dist/types/src/core/print-data-editor-modal.d.ts +19 -0
- package/dist/types/src/core/providers.d.ts +5 -0
- package/dist/types/src/core/register-icons.d.ts +1 -0
- package/dist/types/src/core/shortcuts.d.ts +20 -0
- package/dist/types/src/core/storage.d.ts +3 -0
- package/dist/types/src/core/stores.d.ts +77 -0
- package/dist/types/src/core/svp-element-provider.d.ts +8 -0
- package/dist/types/src/core/template-fields.d.ts +28 -0
- package/dist/types/src/core/theme.d.ts +1 -0
- package/dist/types/src/i18n/en-US.d.ts +104 -0
- package/dist/types/src/i18n/index.d.ts +12 -0
- package/dist/types/src/i18n/zh-CN.d.ts +104 -0
- package/dist/types/src/index.d.ts +52 -0
- package/dist/types/src/types.d.ts +229 -0
- package/dist/vue2/index.cjs +10329 -0
- package/dist/vue2/index.cjs.map +1 -0
- package/dist/vue2/index.mjs +10324 -0
- package/dist/vue2/index.mjs.map +1 -0
- package/dist/vue2/index.umd.cjs +10330 -0
- package/dist/vue2/index.umd.cjs.map +1 -0
- package/dist/vue2/style.css +2657 -0
- package/dist/vue3/index.cjs +10062 -0
- package/dist/vue3/index.cjs.map +1 -0
- package/dist/vue3/index.mjs +10057 -0
- package/dist/vue3/index.mjs.map +1 -0
- package/dist/vue3/index.umd.cjs +10063 -0
- package/dist/vue3/index.umd.cjs.map +1 -0
- package/dist/vue3/style.css +2657 -0
- package/package.json +129 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
t: (key: string, fallback?: string) => string;
|
|
3
|
+
miniMapRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
4
|
+
snapshot: {
|
|
5
|
+
elements: {
|
|
6
|
+
key: string;
|
|
7
|
+
kind: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
showIcon: boolean;
|
|
10
|
+
style: Record<string, string>;
|
|
11
|
+
}[];
|
|
12
|
+
headerLine: Record<string, string> | null;
|
|
13
|
+
footerLine: Record<string, string> | null;
|
|
14
|
+
};
|
|
15
|
+
stageStyle: import("vue").ComputedRef<{
|
|
16
|
+
left: string;
|
|
17
|
+
top: string;
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
}>;
|
|
21
|
+
viewportStyle: import("vue").ComputedRef<{
|
|
22
|
+
left: string;
|
|
23
|
+
top: string;
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
}>;
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
28
|
+
DragBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
storageKey: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
layoutKey: {
|
|
38
|
+
type: import("vue").PropType<import("../../constants/panel-layout.js").SvpPanelLayoutKey>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
styleOptionKey: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
panelKey: {
|
|
46
|
+
type: import("vue").PropType<keyof import("../../core/stores").PanelVisibility>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
defaultX: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
defaultY: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
width: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
height: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
visible: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
folded: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
foldable: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
closable: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
bodyPadding: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
boundsSelector: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
bodyStyleExtra: {
|
|
90
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
91
|
+
default: () => {};
|
|
92
|
+
};
|
|
93
|
+
}>, {
|
|
94
|
+
boxRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
95
|
+
state: {
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
width: number;
|
|
99
|
+
height: number;
|
|
100
|
+
folded: boolean;
|
|
101
|
+
visible: boolean;
|
|
102
|
+
};
|
|
103
|
+
show: import("vue").ComputedRef<boolean>;
|
|
104
|
+
showFold: import("vue").ComputedRef<boolean>;
|
|
105
|
+
showClose: import("vue").ComputedRef<boolean>;
|
|
106
|
+
toggleFolded: () => void;
|
|
107
|
+
boxStyle: import("vue").ComputedRef<{
|
|
108
|
+
left: string;
|
|
109
|
+
top: string;
|
|
110
|
+
width: string;
|
|
111
|
+
height: string;
|
|
112
|
+
}>;
|
|
113
|
+
bodyStyle: import("vue").ComputedRef<{
|
|
114
|
+
padding: string | undefined;
|
|
115
|
+
}>;
|
|
116
|
+
onClose: () => void;
|
|
117
|
+
resolvedTitle: import("vue").ComputedRef<string>;
|
|
118
|
+
draggable: import("vue").ComputedRef<boolean>;
|
|
119
|
+
t: (key: string, fallback?: string) => string;
|
|
120
|
+
UI_ICONS: {
|
|
121
|
+
readonly save: "lucide:save";
|
|
122
|
+
readonly preview: "lucide:eye";
|
|
123
|
+
readonly editTemplate: "lucide:file-json-2";
|
|
124
|
+
readonly editPrintData: "lucide:database";
|
|
125
|
+
readonly exportFile: "lucide:download";
|
|
126
|
+
readonly importFile: "lucide:upload";
|
|
127
|
+
readonly chevronDown: "lucide:chevron-down";
|
|
128
|
+
readonly close: "lucide:x";
|
|
129
|
+
};
|
|
130
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:visible")[], "close" | "update:visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
131
|
+
title: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
storageKey: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
layoutKey: {
|
|
140
|
+
type: import("vue").PropType<import("../../constants/panel-layout.js").SvpPanelLayoutKey>;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
styleOptionKey: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
panelKey: {
|
|
148
|
+
type: import("vue").PropType<keyof import("../../core/stores").PanelVisibility>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
defaultX: {
|
|
152
|
+
type: NumberConstructor;
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
defaultY: {
|
|
156
|
+
type: NumberConstructor;
|
|
157
|
+
default: number;
|
|
158
|
+
};
|
|
159
|
+
width: {
|
|
160
|
+
type: NumberConstructor;
|
|
161
|
+
default: number;
|
|
162
|
+
};
|
|
163
|
+
height: {
|
|
164
|
+
type: NumberConstructor;
|
|
165
|
+
default: number;
|
|
166
|
+
};
|
|
167
|
+
visible: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
folded: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
foldable: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
closable: {
|
|
180
|
+
type: BooleanConstructor;
|
|
181
|
+
default: undefined;
|
|
182
|
+
};
|
|
183
|
+
bodyPadding: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
boundsSelector: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
191
|
+
bodyStyleExtra: {
|
|
192
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
193
|
+
default: () => {};
|
|
194
|
+
};
|
|
195
|
+
}>> & Readonly<{
|
|
196
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
197
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
198
|
+
}>, {
|
|
199
|
+
title: string;
|
|
200
|
+
width: number;
|
|
201
|
+
height: number;
|
|
202
|
+
panelKey: keyof import("../../core/stores").PanelVisibility;
|
|
203
|
+
visible: boolean;
|
|
204
|
+
folded: boolean;
|
|
205
|
+
storageKey: string;
|
|
206
|
+
layoutKey: "draggableEls" | "miniMap" | "pageStructure" | "pageHistory" | "properties";
|
|
207
|
+
styleOptionKey: string;
|
|
208
|
+
defaultX: number;
|
|
209
|
+
defaultY: number;
|
|
210
|
+
foldable: boolean;
|
|
211
|
+
closable: boolean;
|
|
212
|
+
bodyPadding: string;
|
|
213
|
+
boundsSelector: string;
|
|
214
|
+
bodyStyleExtra: Record<string, string>;
|
|
215
|
+
}, {}, {
|
|
216
|
+
SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
217
|
+
icon: {
|
|
218
|
+
type: StringConstructor;
|
|
219
|
+
required: true;
|
|
220
|
+
};
|
|
221
|
+
size: {
|
|
222
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
223
|
+
default: number;
|
|
224
|
+
};
|
|
225
|
+
}>, {
|
|
226
|
+
isSvg: import("vue").ComputedRef<boolean>;
|
|
227
|
+
sizePx: import("vue").ComputedRef<number>;
|
|
228
|
+
wrapStyle: import("vue").ComputedRef<{
|
|
229
|
+
width: string;
|
|
230
|
+
height: string;
|
|
231
|
+
}>;
|
|
232
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
233
|
+
icon: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
required: true;
|
|
236
|
+
};
|
|
237
|
+
size: {
|
|
238
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
239
|
+
default: number;
|
|
240
|
+
};
|
|
241
|
+
}>> & Readonly<{}>, {
|
|
242
|
+
size: string | number;
|
|
243
|
+
}, {}, {
|
|
244
|
+
Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
|
|
245
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
246
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
247
|
+
SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
248
|
+
icon: {
|
|
249
|
+
type: StringConstructor;
|
|
250
|
+
required: true;
|
|
251
|
+
};
|
|
252
|
+
size: {
|
|
253
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
254
|
+
default: number;
|
|
255
|
+
};
|
|
256
|
+
}>, {
|
|
257
|
+
isSvg: import("vue").ComputedRef<boolean>;
|
|
258
|
+
sizePx: import("vue").ComputedRef<number>;
|
|
259
|
+
wrapStyle: import("vue").ComputedRef<{
|
|
260
|
+
width: string;
|
|
261
|
+
height: string;
|
|
262
|
+
}>;
|
|
263
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
264
|
+
icon: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
required: true;
|
|
267
|
+
};
|
|
268
|
+
size: {
|
|
269
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
270
|
+
default: number;
|
|
271
|
+
};
|
|
272
|
+
}>> & Readonly<{}>, {
|
|
273
|
+
size: string | number;
|
|
274
|
+
}, {}, {
|
|
275
|
+
Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
|
|
276
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
277
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
278
|
+
export default _default;
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import type { HistoryStep } from '../../core/history';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
t: (key: string, fallback?: string) => string;
|
|
4
|
+
state: {
|
|
5
|
+
theme: string;
|
|
6
|
+
themeList: (string | {
|
|
7
|
+
theme?: string | undefined;
|
|
8
|
+
primaryColor: string;
|
|
9
|
+
primaryContent?: string | undefined;
|
|
10
|
+
secondaryColor?: string | undefined;
|
|
11
|
+
secondaryContent?: string | undefined;
|
|
12
|
+
accentColor?: string | undefined;
|
|
13
|
+
accentContent?: string | undefined;
|
|
14
|
+
neutralColor?: string | undefined;
|
|
15
|
+
neutralContent?: string | undefined;
|
|
16
|
+
base100?: string | undefined;
|
|
17
|
+
base200?: string | undefined;
|
|
18
|
+
base300?: string | undefined;
|
|
19
|
+
baseContent?: string | undefined;
|
|
20
|
+
info?: string | undefined;
|
|
21
|
+
infoContent?: string | undefined;
|
|
22
|
+
success?: string | undefined;
|
|
23
|
+
successContent?: string | undefined;
|
|
24
|
+
warning?: string | undefined;
|
|
25
|
+
warningContent?: string | undefined;
|
|
26
|
+
error?: string | undefined;
|
|
27
|
+
errorContent?: string | undefined;
|
|
28
|
+
})[];
|
|
29
|
+
lang: string;
|
|
30
|
+
zoom: number;
|
|
31
|
+
panels: {
|
|
32
|
+
draggableEls: boolean;
|
|
33
|
+
miniMap: boolean;
|
|
34
|
+
pageStructure: boolean;
|
|
35
|
+
pageHistory: boolean;
|
|
36
|
+
properties: boolean;
|
|
37
|
+
};
|
|
38
|
+
selection: {
|
|
39
|
+
count: number;
|
|
40
|
+
ids: string[];
|
|
41
|
+
elements: unknown[];
|
|
42
|
+
};
|
|
43
|
+
history: {
|
|
44
|
+
index: number;
|
|
45
|
+
total: number;
|
|
46
|
+
capacity: number;
|
|
47
|
+
canUndo: boolean;
|
|
48
|
+
canRedo: boolean;
|
|
49
|
+
};
|
|
50
|
+
isMobile: boolean;
|
|
51
|
+
uiPulse: number;
|
|
52
|
+
};
|
|
53
|
+
steps: import("vue").ComputedRef<HistoryStep[]>;
|
|
54
|
+
currentIdx: import("vue").ComputedRef<number>;
|
|
55
|
+
stepLabel: (step: HistoryStep) => string;
|
|
56
|
+
stepIcon: (step: HistoryStep) => string;
|
|
57
|
+
canRemove: (step: HistoryStep) => boolean;
|
|
58
|
+
onJump: (idx: number) => void;
|
|
59
|
+
onClear: () => void;
|
|
60
|
+
onRemove: (idx: number) => void;
|
|
61
|
+
TOOL_ICONS: {
|
|
62
|
+
readonly undo: "lucide:undo-2";
|
|
63
|
+
readonly redo: "lucide:redo-2";
|
|
64
|
+
readonly alignLeft: "lucide:align-left";
|
|
65
|
+
readonly alignCenter: "lucide:align-center";
|
|
66
|
+
readonly alignRight: "lucide:align-right";
|
|
67
|
+
readonly alignTop: "lucide:align-start-vertical";
|
|
68
|
+
readonly alignMiddle: "lucide:align-center-vertical";
|
|
69
|
+
readonly alignBottom: "lucide:align-end-vertical";
|
|
70
|
+
readonly moveTop: "lucide:arrow-up-to-line";
|
|
71
|
+
readonly moveUp: "lucide:arrow-up";
|
|
72
|
+
readonly moveDown: "lucide:arrow-down";
|
|
73
|
+
readonly moveBottom: "lucide:arrow-down-to-line";
|
|
74
|
+
readonly flipH: "lucide:flip-horizontal";
|
|
75
|
+
readonly flipV: "lucide:flip-vertical";
|
|
76
|
+
readonly fontInc: "lucide:plus";
|
|
77
|
+
readonly fontDec: "lucide:minus";
|
|
78
|
+
readonly fontBold: "lucide:bold";
|
|
79
|
+
readonly fontUnbold: "lucide:bold";
|
|
80
|
+
readonly lock: "lucide:lock";
|
|
81
|
+
readonly unlock: "lucide:unlock";
|
|
82
|
+
readonly clone: "lucide:copy-plus";
|
|
83
|
+
readonly copy: "lucide:copy";
|
|
84
|
+
readonly cut: "lucide:scissors";
|
|
85
|
+
readonly paste: "lucide:clipboard-paste";
|
|
86
|
+
readonly delete: "lucide:trash-2";
|
|
87
|
+
readonly zoomOut: "lucide:zoom-out";
|
|
88
|
+
readonly zoomIn: "lucide:zoom-in";
|
|
89
|
+
readonly rotate: "lucide:rotate-cw";
|
|
90
|
+
readonly clear: "lucide:eraser";
|
|
91
|
+
readonly toggle: "lucide:panel-left";
|
|
92
|
+
};
|
|
93
|
+
ICON_DELETE: string;
|
|
94
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
|
95
|
+
DragBox: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
96
|
+
title: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
storageKey: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
layoutKey: {
|
|
105
|
+
type: import("vue").PropType<import("../../constants/panel-layout.js").SvpPanelLayoutKey>;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
styleOptionKey: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
panelKey: {
|
|
113
|
+
type: import("vue").PropType<keyof import("../../core/stores").PanelVisibility>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
defaultX: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
defaultY: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
default: number;
|
|
123
|
+
};
|
|
124
|
+
width: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
127
|
+
};
|
|
128
|
+
height: {
|
|
129
|
+
type: NumberConstructor;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
visible: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
folded: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
foldable: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
144
|
+
closable: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
148
|
+
bodyPadding: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
boundsSelector: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
bodyStyleExtra: {
|
|
157
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
158
|
+
default: () => {};
|
|
159
|
+
};
|
|
160
|
+
}>, {
|
|
161
|
+
boxRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
162
|
+
state: {
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
width: number;
|
|
166
|
+
height: number;
|
|
167
|
+
folded: boolean;
|
|
168
|
+
visible: boolean;
|
|
169
|
+
};
|
|
170
|
+
show: import("vue").ComputedRef<boolean>;
|
|
171
|
+
showFold: import("vue").ComputedRef<boolean>;
|
|
172
|
+
showClose: import("vue").ComputedRef<boolean>;
|
|
173
|
+
toggleFolded: () => void;
|
|
174
|
+
boxStyle: import("vue").ComputedRef<{
|
|
175
|
+
left: string;
|
|
176
|
+
top: string;
|
|
177
|
+
width: string;
|
|
178
|
+
height: string;
|
|
179
|
+
}>;
|
|
180
|
+
bodyStyle: import("vue").ComputedRef<{
|
|
181
|
+
padding: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
onClose: () => void;
|
|
184
|
+
resolvedTitle: import("vue").ComputedRef<string>;
|
|
185
|
+
draggable: import("vue").ComputedRef<boolean>;
|
|
186
|
+
t: (key: string, fallback?: string) => string;
|
|
187
|
+
UI_ICONS: {
|
|
188
|
+
readonly save: "lucide:save";
|
|
189
|
+
readonly preview: "lucide:eye";
|
|
190
|
+
readonly editTemplate: "lucide:file-json-2";
|
|
191
|
+
readonly editPrintData: "lucide:database";
|
|
192
|
+
readonly exportFile: "lucide:download";
|
|
193
|
+
readonly importFile: "lucide:upload";
|
|
194
|
+
readonly chevronDown: "lucide:chevron-down";
|
|
195
|
+
readonly close: "lucide:x";
|
|
196
|
+
};
|
|
197
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:visible")[], "close" | "update:visible", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
198
|
+
title: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
storageKey: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
layoutKey: {
|
|
207
|
+
type: import("vue").PropType<import("../../constants/panel-layout.js").SvpPanelLayoutKey>;
|
|
208
|
+
default: string;
|
|
209
|
+
};
|
|
210
|
+
styleOptionKey: {
|
|
211
|
+
type: StringConstructor;
|
|
212
|
+
default: string;
|
|
213
|
+
};
|
|
214
|
+
panelKey: {
|
|
215
|
+
type: import("vue").PropType<keyof import("../../core/stores").PanelVisibility>;
|
|
216
|
+
default: string;
|
|
217
|
+
};
|
|
218
|
+
defaultX: {
|
|
219
|
+
type: NumberConstructor;
|
|
220
|
+
default: number;
|
|
221
|
+
};
|
|
222
|
+
defaultY: {
|
|
223
|
+
type: NumberConstructor;
|
|
224
|
+
default: number;
|
|
225
|
+
};
|
|
226
|
+
width: {
|
|
227
|
+
type: NumberConstructor;
|
|
228
|
+
default: number;
|
|
229
|
+
};
|
|
230
|
+
height: {
|
|
231
|
+
type: NumberConstructor;
|
|
232
|
+
default: number;
|
|
233
|
+
};
|
|
234
|
+
visible: {
|
|
235
|
+
type: BooleanConstructor;
|
|
236
|
+
default: boolean;
|
|
237
|
+
};
|
|
238
|
+
folded: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
foldable: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
246
|
+
closable: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: undefined;
|
|
249
|
+
};
|
|
250
|
+
bodyPadding: {
|
|
251
|
+
type: StringConstructor;
|
|
252
|
+
default: string;
|
|
253
|
+
};
|
|
254
|
+
boundsSelector: {
|
|
255
|
+
type: StringConstructor;
|
|
256
|
+
default: string;
|
|
257
|
+
};
|
|
258
|
+
bodyStyleExtra: {
|
|
259
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
260
|
+
default: () => {};
|
|
261
|
+
};
|
|
262
|
+
}>> & Readonly<{
|
|
263
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
264
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
}>, {
|
|
266
|
+
title: string;
|
|
267
|
+
width: number;
|
|
268
|
+
height: number;
|
|
269
|
+
panelKey: keyof import("../../core/stores").PanelVisibility;
|
|
270
|
+
visible: boolean;
|
|
271
|
+
folded: boolean;
|
|
272
|
+
storageKey: string;
|
|
273
|
+
layoutKey: "draggableEls" | "miniMap" | "pageStructure" | "pageHistory" | "properties";
|
|
274
|
+
styleOptionKey: string;
|
|
275
|
+
defaultX: number;
|
|
276
|
+
defaultY: number;
|
|
277
|
+
foldable: boolean;
|
|
278
|
+
closable: boolean;
|
|
279
|
+
bodyPadding: string;
|
|
280
|
+
boundsSelector: string;
|
|
281
|
+
bodyStyleExtra: Record<string, string>;
|
|
282
|
+
}, {}, {
|
|
283
|
+
SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
284
|
+
icon: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
required: true;
|
|
287
|
+
};
|
|
288
|
+
size: {
|
|
289
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
290
|
+
default: number;
|
|
291
|
+
};
|
|
292
|
+
}>, {
|
|
293
|
+
isSvg: import("vue").ComputedRef<boolean>;
|
|
294
|
+
sizePx: import("vue").ComputedRef<number>;
|
|
295
|
+
wrapStyle: import("vue").ComputedRef<{
|
|
296
|
+
width: string;
|
|
297
|
+
height: string;
|
|
298
|
+
}>;
|
|
299
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
300
|
+
icon: {
|
|
301
|
+
type: StringConstructor;
|
|
302
|
+
required: true;
|
|
303
|
+
};
|
|
304
|
+
size: {
|
|
305
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
306
|
+
default: number;
|
|
307
|
+
};
|
|
308
|
+
}>> & Readonly<{}>, {
|
|
309
|
+
size: string | number;
|
|
310
|
+
}, {}, {
|
|
311
|
+
Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
|
|
312
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
313
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
314
|
+
SvpIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
315
|
+
icon: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
required: true;
|
|
318
|
+
};
|
|
319
|
+
size: {
|
|
320
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
321
|
+
default: number;
|
|
322
|
+
};
|
|
323
|
+
}>, {
|
|
324
|
+
isSvg: import("vue").ComputedRef<boolean>;
|
|
325
|
+
sizePx: import("vue").ComputedRef<number>;
|
|
326
|
+
wrapStyle: import("vue").ComputedRef<{
|
|
327
|
+
width: string;
|
|
328
|
+
height: string;
|
|
329
|
+
}>;
|
|
330
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
331
|
+
icon: {
|
|
332
|
+
type: StringConstructor;
|
|
333
|
+
required: true;
|
|
334
|
+
};
|
|
335
|
+
size: {
|
|
336
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
337
|
+
default: number;
|
|
338
|
+
};
|
|
339
|
+
}>> & Readonly<{}>, {
|
|
340
|
+
size: string | number;
|
|
341
|
+
}, {}, {
|
|
342
|
+
Icon: import("vue").DefineSetupFnComponent<import("@iconify/vue").IconProps, {}, {}, import("@iconify/vue").IconProps, import("vue").PublicProps>;
|
|
343
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
344
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
345
|
+
export default _default;
|