print-canvas-designer 0.1.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/COMMERCIAL_LICENSE.md +47 -0
- package/LICENSE +37 -0
- package/README.md +147 -0
- package/THIRD_PARTY_NOTICES.md +20 -0
- package/dist/components/PrintDesigner.vue.d.ts +49 -0
- package/dist/components/PrintPreview.vue.d.ts +8 -0
- package/dist/editor/canvas/CanvasBarcodeElement.vue.d.ts +8 -0
- package/dist/editor/canvas/CanvasElement.vue.d.ts +10 -0
- package/dist/editor/canvas/CanvasPage.vue.d.ts +7 -0
- package/dist/editor/canvas/CanvasQrElement.vue.d.ts +6 -0
- package/dist/editor/canvas/CanvasTextElement.vue.d.ts +8 -0
- package/dist/editor/canvas/MoveableLayer.vue.d.ts +6 -0
- package/dist/editor/canvas/PrintCanvas.vue.d.ts +10 -0
- package/dist/editor/canvas/events.d.ts +9 -0
- package/dist/editor/core/defaults.d.ts +12 -0
- package/dist/editor/core/geometry.d.ts +7 -0
- package/dist/editor/core/history.d.ts +13 -0
- package/dist/editor/core/pluginOptions.d.ts +3 -0
- package/dist/editor/core/schema.d.ts +162 -0
- package/dist/editor/core/text.d.ts +17 -0
- package/dist/editor/core/units.d.ts +9 -0
- package/dist/editor/panels/ComponentShelf.vue.d.ts +2 -0
- package/dist/editor/panels/DesignerToolbar.vue.d.ts +2 -0
- package/dist/editor/panels/InspectorPanel.vue.d.ts +2 -0
- package/dist/editor/properties/AppearanceSection.vue.d.ts +6 -0
- package/dist/editor/properties/BaseSection.vue.d.ts +8 -0
- package/dist/editor/properties/CodeSection.vue.d.ts +6 -0
- package/dist/editor/properties/ComponentPropertySection.vue.d.ts +6 -0
- package/dist/editor/properties/GeometrySection.vue.d.ts +6 -0
- package/dist/editor/properties/TextSection.vue.d.ts +6 -0
- package/dist/editor/registry/components.d.ts +2 -0
- package/dist/editor/render/PrintElementContent.vue.d.ts +12 -0
- package/dist/editor/render/styles.d.ts +63 -0
- package/dist/editor/store/usePrintDesigner.d.ts +186 -0
- package/dist/editor/ui/BaseButton.vue.d.ts +21 -0
- package/dist/editor/ui/BaseColor.vue.d.ts +12 -0
- package/dist/editor/ui/BaseIconButton.vue.d.ts +8 -0
- package/dist/editor/ui/BaseIconGroup.vue.d.ts +14 -0
- package/dist/editor/ui/BaseInput.vue.d.ts +13 -0
- package/dist/editor/ui/BaseNumberInput.vue.d.ts +15 -0
- package/dist/editor/ui/BaseSegmented.vue.d.ts +14 -0
- package/dist/editor/ui/BaseSelect.vue.d.ts +14 -0
- package/dist/editor/ui/PropertyRow.vue.d.ts +20 -0
- package/dist/editor/ui/PropertySection.vue.d.ts +20 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +12 -0
- package/dist/html2canvas.esm-C4Mnoizn.cjs +22 -0
- package/dist/html2canvas.esm-dgT_1dIT.js +4871 -0
- package/dist/index-BEReyC5k.cjs +364 -0
- package/dist/index-DGkMLEeJ.js +18125 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.es-DGu5dqeR.js +6693 -0
- package/dist/index.es-Di9HyGPO.cjs +18 -0
- package/dist/index.mjs +21 -0
- package/dist/jspdf.es.min-BOsuRURv.js +10006 -0
- package/dist/jspdf.es.min-Cc_0fodg.cjs +217 -0
- package/dist/og-image.svg +56 -0
- package/dist/plugin.d.ts +9 -0
- package/dist/print-C0Dx8UZT.cjs +1 -0
- package/dist/print-CBevAO3L.js +705 -0
- package/dist/purify.es-BUDLCglq.cjs +3 -0
- package/dist/purify.es-CiEWEeUM.js +605 -0
- package/dist/robots.txt +4 -0
- package/dist/sitemap.xml +13 -0
- package/dist/style.css +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrintElement } from '../core/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PrintElement;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrintElement } from '../core/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PrintElement;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrintElement } from '../core/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PrintElement;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PrintElement } from '../core/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PrintElement;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PrintComponentDefinition, PrintElement } from '../core/schema';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
element: PrintElement;
|
|
4
|
+
componentDefinition?: PrintComponentDefinition;
|
|
5
|
+
data?: Record<string, unknown>;
|
|
6
|
+
designer?: unknown;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PrintElement } from '../core/schema';
|
|
2
|
+
export declare const CANVAS_HIT_MIN_SIZE = 16;
|
|
3
|
+
export declare const LINE_HIT_MIN_HEIGHT = 14;
|
|
4
|
+
export declare const getElementBoxStyle: (item: PrintElement) => {
|
|
5
|
+
left: string;
|
|
6
|
+
top: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
color: string | undefined;
|
|
10
|
+
backgroundColor: string | undefined;
|
|
11
|
+
borderColor: string | undefined;
|
|
12
|
+
borderWidth: string | undefined;
|
|
13
|
+
borderStyle: string | undefined;
|
|
14
|
+
borderRadius: string | undefined;
|
|
15
|
+
transform: string;
|
|
16
|
+
transformOrigin: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const getCanvasElementBoxStyle: (item: PrintElement) => {
|
|
19
|
+
left: string;
|
|
20
|
+
top: string;
|
|
21
|
+
width: string;
|
|
22
|
+
height: string;
|
|
23
|
+
color: string | undefined;
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
borderWidth: string;
|
|
26
|
+
borderRadius: string | undefined;
|
|
27
|
+
transform: string;
|
|
28
|
+
transformOrigin: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const getCanvasElementContentStyle: (item: PrintElement) => {
|
|
31
|
+
readonly position: "absolute";
|
|
32
|
+
readonly left: `${number}px`;
|
|
33
|
+
readonly top: `${number}px`;
|
|
34
|
+
readonly width: `${number}px`;
|
|
35
|
+
readonly height: `${number}px`;
|
|
36
|
+
readonly color: string | undefined;
|
|
37
|
+
readonly backgroundColor: string | undefined;
|
|
38
|
+
readonly borderColor: string | undefined;
|
|
39
|
+
readonly borderWidth: string | undefined;
|
|
40
|
+
readonly borderStyle: string | undefined;
|
|
41
|
+
readonly borderRadius: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
export declare const getTextContentStyle: (item: PrintElement) => {
|
|
44
|
+
color: string | undefined;
|
|
45
|
+
fontSize: string | undefined;
|
|
46
|
+
fontWeight: string | number | undefined;
|
|
47
|
+
fontStyle: string | undefined;
|
|
48
|
+
textDecoration: string | undefined;
|
|
49
|
+
textAlign: any;
|
|
50
|
+
whiteSpace: any;
|
|
51
|
+
textOverflow: any;
|
|
52
|
+
wordBreak: any;
|
|
53
|
+
overflowWrap: any;
|
|
54
|
+
lineHeight: string | number | undefined;
|
|
55
|
+
letterSpacing: string | undefined;
|
|
56
|
+
display: string;
|
|
57
|
+
justifyContent: string | undefined;
|
|
58
|
+
alignItems: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
export declare const getLineContentStyle: (item: PrintElement) => {
|
|
61
|
+
backgroundColor: string;
|
|
62
|
+
backgroundImage: string;
|
|
63
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { CanvasPoint, PrintComponentDefinition, PrintDesignerEmits, PrintDesignerProps, PrintDocument, PrintElement, PrintElementStyle, PrintElementType, PrintPageOrientation, PrintPaperType, PrintSizeUnit } from '../core/schema';
|
|
3
|
+
export interface PrintDesignerState {
|
|
4
|
+
printDocument: PrintDocument;
|
|
5
|
+
renderData?: Record<string, unknown>;
|
|
6
|
+
activeElementId: string | null;
|
|
7
|
+
selectedElementIds: string[];
|
|
8
|
+
hoverElementId: string | null;
|
|
9
|
+
editingElementId: string | null;
|
|
10
|
+
zoomRatio: number;
|
|
11
|
+
canvasViewportRect: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
copiedElement: PrintElement | null;
|
|
16
|
+
showGrid: boolean;
|
|
17
|
+
showRuler: boolean;
|
|
18
|
+
snapToGrid: boolean;
|
|
19
|
+
gridSize: number;
|
|
20
|
+
pageSizeUnit: PrintSizeUnit;
|
|
21
|
+
showMarginGuide: boolean;
|
|
22
|
+
showSafeAreaGuide: boolean;
|
|
23
|
+
alignmentGuides: {
|
|
24
|
+
vertical: number[];
|
|
25
|
+
horizontal: number[];
|
|
26
|
+
};
|
|
27
|
+
distanceGuides: {
|
|
28
|
+
id: string;
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
text: string;
|
|
32
|
+
direction: 'horizontal' | 'vertical';
|
|
33
|
+
}[];
|
|
34
|
+
isDirty: boolean;
|
|
35
|
+
isPreviewOpen: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface PrintDesignerContext {
|
|
38
|
+
state: PrintDesignerState;
|
|
39
|
+
availableComponents: ComputedRef<PrintComponentDefinition[]>;
|
|
40
|
+
componentMap: ComputedRef<Map<string, PrintComponentDefinition>>;
|
|
41
|
+
activeElement: ComputedRef<PrintElement | null>;
|
|
42
|
+
selectedElements: ComputedRef<PrintElement[]>;
|
|
43
|
+
canUndo: ComputedRef<boolean>;
|
|
44
|
+
canRedo: ComputedRef<boolean>;
|
|
45
|
+
selectElement: (id: string | null) => void;
|
|
46
|
+
toggleElementSelection: (id: string) => void;
|
|
47
|
+
setSelectedElements: (ids: string[]) => void;
|
|
48
|
+
setRenderData: (data?: Record<string, unknown>) => void;
|
|
49
|
+
hoverElement: (id: string | null) => void;
|
|
50
|
+
startTextEditing: (id: string) => void;
|
|
51
|
+
finishTextEditing: (id: string, text: string) => void;
|
|
52
|
+
addElement: (type: PrintElementType, point: CanvasPoint) => void;
|
|
53
|
+
updateElement: (id: string, patch: Partial<PrintElement>, capture?: boolean, emit?: boolean) => void;
|
|
54
|
+
updateElementStyle: (id: string, patch: Partial<PrintElementStyle>, capture?: boolean, keepInPage?: boolean, emit?: boolean) => void;
|
|
55
|
+
uploadImageForElement: (id: string, file: File) => Promise<void>;
|
|
56
|
+
setPaperType: (type: PrintPaperType) => void;
|
|
57
|
+
updatePageSize: (size: {
|
|
58
|
+
width?: number;
|
|
59
|
+
height?: number;
|
|
60
|
+
paperType?: PrintPaperType;
|
|
61
|
+
}) => void;
|
|
62
|
+
setPageOrientation: (orientation: PrintPageOrientation) => void;
|
|
63
|
+
updatePageMargin: (margin: Partial<NonNullable<PrintDocument['page']['margin']>>) => void;
|
|
64
|
+
captureSnapshot: () => void;
|
|
65
|
+
moveActiveElementBy: (deltaX: number, deltaY: number) => void;
|
|
66
|
+
moveSelectedElementsBy: (deltaX: number, deltaY: number) => void;
|
|
67
|
+
copyActiveElement: () => void;
|
|
68
|
+
pasteElement: () => void;
|
|
69
|
+
duplicateActiveElement: () => void;
|
|
70
|
+
bringActiveElementForward: () => void;
|
|
71
|
+
sendActiveElementBackward: () => void;
|
|
72
|
+
bringActiveElementToFront: () => void;
|
|
73
|
+
sendActiveElementToBack: () => void;
|
|
74
|
+
toggleActiveElementLock: () => void;
|
|
75
|
+
hideActiveElement: () => void;
|
|
76
|
+
showElement: (id: string) => void;
|
|
77
|
+
removeElement: (id: string) => void;
|
|
78
|
+
removeActiveElement: () => void;
|
|
79
|
+
removeSelectedElements: () => void;
|
|
80
|
+
setZoomRatio: (value: number) => void;
|
|
81
|
+
zoomIn: () => void;
|
|
82
|
+
zoomOut: () => void;
|
|
83
|
+
resetZoom: () => void;
|
|
84
|
+
fitCanvas: () => void;
|
|
85
|
+
fitCanvasWidth: () => void;
|
|
86
|
+
setCanvasViewportRect: (rect: {
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
}) => void;
|
|
90
|
+
toggleGrid: () => void;
|
|
91
|
+
toggleSnapToGrid: () => void;
|
|
92
|
+
setGridSize: (size: number) => void;
|
|
93
|
+
setPageSizeUnit: (unit: PrintSizeUnit) => void;
|
|
94
|
+
toggleRuler: () => void;
|
|
95
|
+
toggleMarginGuide: () => void;
|
|
96
|
+
toggleSafeAreaGuide: () => void;
|
|
97
|
+
setAlignmentGuides: (guides: {
|
|
98
|
+
vertical?: number[];
|
|
99
|
+
horizontal?: number[];
|
|
100
|
+
}) => void;
|
|
101
|
+
clearAlignmentGuides: () => void;
|
|
102
|
+
setDistanceGuides: (guides: PrintDesignerState['distanceGuides']) => void;
|
|
103
|
+
clearDistanceGuides: () => void;
|
|
104
|
+
undo: () => void;
|
|
105
|
+
redo: () => void;
|
|
106
|
+
save: () => void;
|
|
107
|
+
preview: () => void;
|
|
108
|
+
print: () => void;
|
|
109
|
+
exportPdf: () => void;
|
|
110
|
+
closePreview: () => void;
|
|
111
|
+
emitChange: () => void;
|
|
112
|
+
}
|
|
113
|
+
export interface PrintDesignerCommandMap {
|
|
114
|
+
selectElement: PrintDesignerContext['selectElement'];
|
|
115
|
+
toggleElementSelection: PrintDesignerContext['toggleElementSelection'];
|
|
116
|
+
setSelectedElements: PrintDesignerContext['setSelectedElements'];
|
|
117
|
+
setRenderData: PrintDesignerContext['setRenderData'];
|
|
118
|
+
hoverElement: PrintDesignerContext['hoverElement'];
|
|
119
|
+
startTextEditing: PrintDesignerContext['startTextEditing'];
|
|
120
|
+
finishTextEditing: PrintDesignerContext['finishTextEditing'];
|
|
121
|
+
addElement: PrintDesignerContext['addElement'];
|
|
122
|
+
updateElement: PrintDesignerContext['updateElement'];
|
|
123
|
+
updateElementStyle: PrintDesignerContext['updateElementStyle'];
|
|
124
|
+
uploadImageForElement: PrintDesignerContext['uploadImageForElement'];
|
|
125
|
+
setPaperType: PrintDesignerContext['setPaperType'];
|
|
126
|
+
updatePageSize: PrintDesignerContext['updatePageSize'];
|
|
127
|
+
setPageOrientation: PrintDesignerContext['setPageOrientation'];
|
|
128
|
+
updatePageMargin: PrintDesignerContext['updatePageMargin'];
|
|
129
|
+
captureSnapshot: PrintDesignerContext['captureSnapshot'];
|
|
130
|
+
moveActiveElementBy: PrintDesignerContext['moveActiveElementBy'];
|
|
131
|
+
moveSelectedElementsBy: PrintDesignerContext['moveSelectedElementsBy'];
|
|
132
|
+
copyActiveElement: PrintDesignerContext['copyActiveElement'];
|
|
133
|
+
pasteElement: PrintDesignerContext['pasteElement'];
|
|
134
|
+
duplicateActiveElement: PrintDesignerContext['duplicateActiveElement'];
|
|
135
|
+
bringActiveElementForward: PrintDesignerContext['bringActiveElementForward'];
|
|
136
|
+
sendActiveElementBackward: PrintDesignerContext['sendActiveElementBackward'];
|
|
137
|
+
bringActiveElementToFront: PrintDesignerContext['bringActiveElementToFront'];
|
|
138
|
+
sendActiveElementToBack: PrintDesignerContext['sendActiveElementToBack'];
|
|
139
|
+
toggleActiveElementLock: PrintDesignerContext['toggleActiveElementLock'];
|
|
140
|
+
hideActiveElement: PrintDesignerContext['hideActiveElement'];
|
|
141
|
+
showElement: PrintDesignerContext['showElement'];
|
|
142
|
+
removeElement: PrintDesignerContext['removeElement'];
|
|
143
|
+
removeActiveElement: PrintDesignerContext['removeActiveElement'];
|
|
144
|
+
removeSelectedElements: PrintDesignerContext['removeSelectedElements'];
|
|
145
|
+
setZoomRatio: PrintDesignerContext['setZoomRatio'];
|
|
146
|
+
zoomIn: PrintDesignerContext['zoomIn'];
|
|
147
|
+
zoomOut: PrintDesignerContext['zoomOut'];
|
|
148
|
+
resetZoom: PrintDesignerContext['resetZoom'];
|
|
149
|
+
fitCanvas: PrintDesignerContext['fitCanvas'];
|
|
150
|
+
fitCanvasWidth: PrintDesignerContext['fitCanvasWidth'];
|
|
151
|
+
setCanvasViewportRect: PrintDesignerContext['setCanvasViewportRect'];
|
|
152
|
+
toggleGrid: PrintDesignerContext['toggleGrid'];
|
|
153
|
+
toggleSnapToGrid: PrintDesignerContext['toggleSnapToGrid'];
|
|
154
|
+
setGridSize: PrintDesignerContext['setGridSize'];
|
|
155
|
+
setPageSizeUnit: PrintDesignerContext['setPageSizeUnit'];
|
|
156
|
+
toggleRuler: PrintDesignerContext['toggleRuler'];
|
|
157
|
+
toggleMarginGuide: PrintDesignerContext['toggleMarginGuide'];
|
|
158
|
+
toggleSafeAreaGuide: PrintDesignerContext['toggleSafeAreaGuide'];
|
|
159
|
+
setAlignmentGuides: PrintDesignerContext['setAlignmentGuides'];
|
|
160
|
+
clearAlignmentGuides: PrintDesignerContext['clearAlignmentGuides'];
|
|
161
|
+
setDistanceGuides: PrintDesignerContext['setDistanceGuides'];
|
|
162
|
+
clearDistanceGuides: PrintDesignerContext['clearDistanceGuides'];
|
|
163
|
+
undo: PrintDesignerContext['undo'];
|
|
164
|
+
redo: PrintDesignerContext['redo'];
|
|
165
|
+
save: PrintDesignerContext['save'];
|
|
166
|
+
preview: PrintDesignerContext['preview'];
|
|
167
|
+
print: PrintDesignerContext['print'];
|
|
168
|
+
exportPdf: PrintDesignerContext['exportPdf'];
|
|
169
|
+
closePreview: PrintDesignerContext['closePreview'];
|
|
170
|
+
emitChange: PrintDesignerContext['emitChange'];
|
|
171
|
+
}
|
|
172
|
+
export type PrintDesignerCommandName = keyof PrintDesignerCommandMap;
|
|
173
|
+
export declare const printDesignerKey: InjectionKey<PrintDesignerContext>;
|
|
174
|
+
export interface CreatePrintDesignerOptions extends PrintDesignerProps {
|
|
175
|
+
onUpdateModelValue?: (value: PrintDocument) => void;
|
|
176
|
+
onSave?: (value: PrintDocument) => void;
|
|
177
|
+
onPreview?: (value: PrintDocument) => void;
|
|
178
|
+
onPrint?: (value: PrintDocument) => void;
|
|
179
|
+
onExportPdf?: (value: PrintDocument) => void;
|
|
180
|
+
onChange?: (value: PrintDocument) => void;
|
|
181
|
+
onSelect?: (value: PrintElement | null) => void;
|
|
182
|
+
}
|
|
183
|
+
export declare const createPrintDesigner: (options: CreatePrintDesignerOptions, emit?: PrintDesignerEmits) => PrintDesignerContext;
|
|
184
|
+
export declare const createPrintDesignerContext: (props: PrintDesignerProps, emit: PrintDesignerEmits) => PrintDesignerContext;
|
|
185
|
+
export declare const providePrintDesigner: (context: PrintDesignerContext) => void;
|
|
186
|
+
export declare const usePrintDesigner: () => PrintDesignerContext;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
variant?: 'default' | 'primary';
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLButtonElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
change: (value: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
onChange?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
variant?: 'default' | 'soft';
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
options: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, 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) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
change: (value: string) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onChange?: ((value: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: number) => any;
|
|
10
|
+
change: (value: number) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
13
|
+
onChange?: ((value: number) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLInputElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string | number;
|
|
3
|
+
options: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: string | number) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string | number;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
options: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, 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) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSelectElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLLabelElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" role="img" aria-label="Print Canvas Designer icon">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#2563eb"/>
|
|
3
|
+
<rect x="17" y="13" width="30" height="20" rx="4" fill="#ffffff" opacity="0.96"/>
|
|
4
|
+
<rect x="21" y="17" width="22" height="3" rx="1.5" fill="#2563eb" opacity="0.7"/>
|
|
5
|
+
<rect x="21" y="24" width="12" height="3" rx="1.5" fill="#2563eb" opacity="0.42"/>
|
|
6
|
+
<rect x="13" y="28" width="38" height="20" rx="5" fill="#dbeafe"/>
|
|
7
|
+
<rect x="19" y="36" width="26" height="15" rx="3" fill="#ffffff"/>
|
|
8
|
+
<path d="M24 42h16M24 47h10" stroke="#2563eb" stroke-width="3" stroke-linecap="round"/>
|
|
9
|
+
<circle cx="19" cy="34" r="2.2" fill="#2563eb"/>
|
|
10
|
+
<circle cx="45" cy="34" r="2.2" fill="#2563eb"/>
|
|
11
|
+
<path d="M42 13l5 5h-5z" fill="#bfdbfe"/>
|
|
12
|
+
</svg>
|