adalo-pdf-viewer 1.2.2
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 +153 -0
- package/adalo.json +19 -0
- package/dist/editor.js +2 -0
- package/dist/editor.js.LICENSE.txt +1 -0
- package/dist/icons/PDFViewer.png +0 -0
- package/dist/input/editor.js +9 -0
- package/dist/input/runtime.js +1 -0
- package/dist/logo.png +0 -0
- package/dist/metadata.json +1 -0
- package/dist/runtime.js +2 -0
- package/dist/runtime.js.LICENSE.txt +1 -0
- package/logo.png +0 -0
- package/package.json +30 -0
- package/scripts/install_android.sh +20 -0
- package/scripts/install_android.ts +22 -0
- package/scripts/install_ios.sh +13 -0
- package/scripts/install_ios.ts +23 -0
- package/src/components/PDFViewer/icon.png +0 -0
- package/src/components/PDFViewer/index.js +506 -0
- package/src/components/PDFViewer/index.native.js +521 -0
- package/src/components/PDFViewer/index.web.js +172 -0
- package/src/components/PDFViewer/manifest.json +110 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "PDF Viewer",
|
|
3
|
+
"defaultWidth": 320,
|
|
4
|
+
"defaultHeight": 480,
|
|
5
|
+
"resizeX": true,
|
|
6
|
+
"resizeY": true,
|
|
7
|
+
"icon": "./icon.png",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"name": "pdfUrl",
|
|
11
|
+
"displayName": "PDF URL",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"helpText": "Link to a PDF file — can be a static URL or a dynamic value from your database (e.g. a File field)."
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "fitWidth",
|
|
17
|
+
"displayName": "Fit to Width",
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": true,
|
|
20
|
+
"helpText": "When ON, the PDF scales to fill the component width. When OFF, the full page fits inside the component."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "showControls",
|
|
24
|
+
"displayName": "Show Page Controls",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": true,
|
|
27
|
+
"helpText": "Show Previous / Next buttons and the current page number at the bottom."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "backgroundColor",
|
|
31
|
+
"displayName": "Background Color",
|
|
32
|
+
"type": "color",
|
|
33
|
+
"default": "@background"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "controlColor",
|
|
37
|
+
"displayName": "Control Color",
|
|
38
|
+
"type": "color",
|
|
39
|
+
"default": "@primary",
|
|
40
|
+
"enabled": { "showControls": true }
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "controlTextColor",
|
|
44
|
+
"displayName": "Control Text Color",
|
|
45
|
+
"type": "color",
|
|
46
|
+
"default": "#FFFFFF",
|
|
47
|
+
"enabled": { "showControls": true }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "loadingText",
|
|
51
|
+
"displayName": "Loading Text",
|
|
52
|
+
"type": "text",
|
|
53
|
+
"default": "Loading PDF…",
|
|
54
|
+
"helpText": "Text shown while the PDF is being fetched."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "loadingTextColor",
|
|
58
|
+
"displayName": "Loading Text Color",
|
|
59
|
+
"type": "color",
|
|
60
|
+
"default": "@text"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "errorText",
|
|
64
|
+
"displayName": "Error Text",
|
|
65
|
+
"type": "text",
|
|
66
|
+
"default": "Could not load PDF. Please check the URL.",
|
|
67
|
+
"helpText": "Text shown when the PDF fails to load."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "errorTextColor",
|
|
71
|
+
"displayName": "Error Text Color",
|
|
72
|
+
"type": "color",
|
|
73
|
+
"default": "#E53E3E"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "onLoadComplete",
|
|
77
|
+
"displayName": "On Load Complete",
|
|
78
|
+
"type": "action",
|
|
79
|
+
"helpText": "Fires when the PDF has finished loading.",
|
|
80
|
+
"arguments": [
|
|
81
|
+
{
|
|
82
|
+
"type": "number",
|
|
83
|
+
"displayName": "Total Pages"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "onPageChange",
|
|
89
|
+
"displayName": "On Page Change",
|
|
90
|
+
"type": "action",
|
|
91
|
+
"helpText": "Fires when the user navigates to a different page.",
|
|
92
|
+
"arguments": [
|
|
93
|
+
{
|
|
94
|
+
"type": "number",
|
|
95
|
+
"displayName": "Current Page"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "number",
|
|
99
|
+
"displayName": "Total Pages"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "onError",
|
|
105
|
+
"displayName": "On Error",
|
|
106
|
+
"type": "action",
|
|
107
|
+
"helpText": "Fires when the PDF fails to load."
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|