@jasy/vue 1.0.0-alpha.1 → 1.0.0-alpha.3
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.md +1 -1
- package/dist/components.d.ts +1 -2
- package/dist/components.js +0 -30
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
React has [`@react-pdf/renderer`](https://react-pdf.org). Vue had nothing. This is it: a thin Vue custom
|
|
12
|
-
renderer over the [`@jasy/pdf`](https://
|
|
12
|
+
renderer over the [`@jasy/pdf`](https://npmx.dev/@jasy/pdf) engine. You write a component
|
|
13
13
|
tree, you get a real PDF - no headless browser, no server round-trip, no Java.
|
|
14
14
|
|
|
15
15
|
```vue
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
2
|
import type { ColorInput, Insets, ImageSource, FontSource, PageSizeInput, ColumnWidth } from "@jasy/pdf";
|
|
3
3
|
export declare const Document: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
align: PropType<"left" | "center" | "right">;
|
|
@@ -373,4 +373,3 @@ export declare const DefaultTextStyle: import("vue").DefineComponent<import("vue
|
|
|
373
373
|
bold: boolean;
|
|
374
374
|
italic: boolean;
|
|
375
375
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
376
|
-
export declare const jasyVue: Plugin;
|
package/dist/components.js
CHANGED
|
@@ -208,33 +208,3 @@ export const DefaultTextStyle = defineComponent({
|
|
|
208
208
|
props: defaultTextStyleProps,
|
|
209
209
|
setup: fwd("default-text-style"),
|
|
210
210
|
});
|
|
211
|
-
const components = {
|
|
212
|
-
Document,
|
|
213
|
-
Page,
|
|
214
|
-
Column,
|
|
215
|
-
Row,
|
|
216
|
-
Box,
|
|
217
|
-
Padding,
|
|
218
|
-
Expanded,
|
|
219
|
-
Spacer,
|
|
220
|
-
Divider,
|
|
221
|
-
Image,
|
|
222
|
-
Text,
|
|
223
|
-
Paragraph,
|
|
224
|
-
Span,
|
|
225
|
-
Table,
|
|
226
|
-
TableRow,
|
|
227
|
-
TableCell,
|
|
228
|
-
Positioned,
|
|
229
|
-
DefaultTextStyle,
|
|
230
|
-
};
|
|
231
|
-
// Register the components globally, optionally under a `prefix` to avoid name clashes with a UI library:
|
|
232
|
-
// `app.use(jasyVue, { prefix: "Pdf" })` → `<PdfRow>`, `<PdfText>`, …
|
|
233
|
-
export const jasyVue = {
|
|
234
|
-
install(app, options = {}) {
|
|
235
|
-
const prefix = options.prefix ?? "";
|
|
236
|
-
for (const [name, comp] of Object.entries(components)) {
|
|
237
|
-
app.component(prefix + name, comp);
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasy/vue",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "Author PDFs as Vue components - a thin Vue custom renderer over @jasy/pdf.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jasy/pdf": "1.0.0-alpha.
|
|
34
|
+
"@jasy/pdf": "1.0.0-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"vue": "^3.4.0"
|