@vaadin-component-factory/vcf-pdf-viewer 4.0.2 → 4.2.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/LICENSE +190 -190
- package/README.md +35 -35
- package/custom-elements.json +664 -0
- package/package.json +118 -83
- package/pdfjs/dist/event_utils.js +207 -0
- package/pdfjs/dist/genericl10n.js +2420 -0
- package/pdfjs/dist/message_handler.js +704 -569
- package/pdfjs/dist/node_stream.js +2 -494
- package/pdfjs/dist/node_stream2.js +1759 -0
- package/pdfjs/dist/pdf.js +20927 -12778
- package/pdfjs/dist/pdf.worker.js +24 -0
- package/pdfjs/dist/pdf_link_service.js +483 -638
- package/pdfjs/dist/pdf_rendering_queue.js +199 -199
- package/pdfjs/dist/pdf_thumbnail_viewer.js +636 -819
- package/pdfjs/dist/pdf_viewer.js +4743 -3598
- package/pdfjs/dist/ui_utils.js +762 -1033
- package/pdfjs/dist/util.js +855 -1066
- package/pdfjs/dist/worker.js +61967 -62813
- package/src/vcf-pdf-viewer.d.ts +247 -0
- package/src/vcf-pdf-viewer.js +1214 -1072
- package/theme/base/vcf-pdf-viewer-styles.js +144 -144
- package/theme/base/vcf-pdf-viewer-toolbar-icons-styles.js +39 -39
- package/theme/base/vcf-pdf-viewer.d.ts +6 -0
- package/theme/base/vcf-pdf-viewer.js +2 -2
- package/vcf-pdf-viewer.d.ts +6 -0
- package/vcf-pdf-viewer.js +2 -2
- package/pdfjs/dist/display_utils.js +0 -848
- package/pdfjs/dist/fetch_stream.js +0 -306
- package/pdfjs/dist/l10n_utils.js +0 -140
- package/pdfjs/dist/network.js +0 -565
- package/pdfjs/dist/network_utils.js +0 -340
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/vcf-pdf-viewer.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "`<vcf-pdf-viewer>` is a Web Component for rendering PDF files without\nthe need of plugins. You can provide a pdf file to it through the src\nattribute.\n\n```\n<vcf-pdf-viewer src=\"myfile.pdf\"></vcf-pdf-viewer>\n```",
|
|
12
|
+
"name": "PdfViewerElement",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "slotStyles",
|
|
17
|
+
"privacy": "protected",
|
|
18
|
+
"readonly": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "field",
|
|
22
|
+
"name": "is",
|
|
23
|
+
"static": true,
|
|
24
|
+
"readonly": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"kind": "field",
|
|
28
|
+
"name": "version",
|
|
29
|
+
"static": true,
|
|
30
|
+
"readonly": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "field",
|
|
34
|
+
"name": "__zoomItems",
|
|
35
|
+
"readonly": true,
|
|
36
|
+
"privacy": "private"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "method",
|
|
40
|
+
"name": "__createToolbarButton",
|
|
41
|
+
"privacy": "private"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "method",
|
|
45
|
+
"name": "_createSideBarToggleButton",
|
|
46
|
+
"description": "Adds toggle button to the toolbar slot named \"sidebar-toggle-button-slot\".",
|
|
47
|
+
"privacy": "private"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "method",
|
|
51
|
+
"name": "_createPreviousPageButton",
|
|
52
|
+
"description": "Adds previous page button to the toolbar slot named \"previous-page-button-slot\".",
|
|
53
|
+
"privacy": "private"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "method",
|
|
57
|
+
"name": "_createNextPageButton",
|
|
58
|
+
"description": "Adds next page button to the toolbar slot named \"next-page-button-slot\".",
|
|
59
|
+
"privacy": "private"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"kind": "method",
|
|
63
|
+
"name": "_createCurrentPageTextField",
|
|
64
|
+
"description": "Adds current page text field to the toolbar slot named \"toolbar-current-page-slot\".",
|
|
65
|
+
"privacy": "private"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"kind": "method",
|
|
69
|
+
"name": "_createZoomSelect",
|
|
70
|
+
"description": "Adds zoom select to the toolbar slot named \"toolbar-zoom-slot\".",
|
|
71
|
+
"privacy": "private"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "method",
|
|
75
|
+
"name": "__computeZoomItems",
|
|
76
|
+
"parameters": [
|
|
77
|
+
{
|
|
78
|
+
"name": "autoZoomOptionLabel"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "fitZoomOptionLabel"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"privacy": "private"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "method",
|
|
88
|
+
"name": "__setTitle",
|
|
89
|
+
"parameters": [
|
|
90
|
+
{
|
|
91
|
+
"name": "pdfTitle"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "filename"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"privacy": "private"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"kind": "method",
|
|
101
|
+
"name": "_addToolbarButtons",
|
|
102
|
+
"privacy": "private"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"kind": "method",
|
|
106
|
+
"name": "__initListeners",
|
|
107
|
+
"parameters": [
|
|
108
|
+
{
|
|
109
|
+
"name": "eventBus"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"privacy": "private"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "method",
|
|
116
|
+
"name": "__updateCurrentPageValue",
|
|
117
|
+
"parameters": [
|
|
118
|
+
{
|
|
119
|
+
"name": "pageNumber"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"privacy": "private"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"kind": "method",
|
|
126
|
+
"name": "__setFocused",
|
|
127
|
+
"parameters": [
|
|
128
|
+
{
|
|
129
|
+
"name": "focused"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"privacy": "private"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"kind": "method",
|
|
136
|
+
"name": "__open",
|
|
137
|
+
"parameters": [
|
|
138
|
+
{
|
|
139
|
+
"name": "src"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"privacy": "private"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"kind": "method",
|
|
146
|
+
"name": "__srcChanged",
|
|
147
|
+
"parameters": [
|
|
148
|
+
{
|
|
149
|
+
"name": "newSrc"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"privacy": "private"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "method",
|
|
156
|
+
"name": "__close",
|
|
157
|
+
"description": "Closes opened PDF document.",
|
|
158
|
+
"return": {
|
|
159
|
+
"type": {
|
|
160
|
+
"text": "Promise"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"privacy": "private"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"kind": "method",
|
|
167
|
+
"name": "__setFilename",
|
|
168
|
+
"parameters": [
|
|
169
|
+
{
|
|
170
|
+
"name": "src"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"privacy": "private"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"kind": "method",
|
|
177
|
+
"name": "__setPdfTitleFromMetadata",
|
|
178
|
+
"parameters": [
|
|
179
|
+
{
|
|
180
|
+
"name": "pdfDocument"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"privacy": "private"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "method",
|
|
187
|
+
"name": "__updatePageNumberStates",
|
|
188
|
+
"privacy": "private"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"kind": "method",
|
|
192
|
+
"name": "__zoomChanged",
|
|
193
|
+
"parameters": [
|
|
194
|
+
{
|
|
195
|
+
"name": "value"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"privacy": "private"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"kind": "method",
|
|
202
|
+
"name": "__pageChange",
|
|
203
|
+
"parameters": [
|
|
204
|
+
{
|
|
205
|
+
"name": "event"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"privacy": "private"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "method",
|
|
212
|
+
"name": "setCurrentPage",
|
|
213
|
+
"parameters": [
|
|
214
|
+
{
|
|
215
|
+
"name": "value"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"kind": "method",
|
|
221
|
+
"name": "_getPage",
|
|
222
|
+
"privacy": "private"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"kind": "method",
|
|
226
|
+
"name": "__previousPage",
|
|
227
|
+
"privacy": "private"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "method",
|
|
231
|
+
"name": "__nextPage",
|
|
232
|
+
"privacy": "private"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "method",
|
|
236
|
+
"name": "__toogleSidebar",
|
|
237
|
+
"privacy": "private"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "method",
|
|
241
|
+
"name": "__openSidebar",
|
|
242
|
+
"privacy": "private"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"kind": "method",
|
|
246
|
+
"name": "__closeSidebar",
|
|
247
|
+
"privacy": "private"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"kind": "method",
|
|
251
|
+
"name": "__updateThumbnailViewer",
|
|
252
|
+
"privacy": "private"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"kind": "method",
|
|
256
|
+
"name": "_onResize",
|
|
257
|
+
"privacy": "private"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "method",
|
|
261
|
+
"name": "rotateCw",
|
|
262
|
+
"description": "Rotates document clockwise."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "method",
|
|
266
|
+
"name": "rotateCcw",
|
|
267
|
+
"description": "Rotates document counterclockwise."
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "field",
|
|
271
|
+
"name": "__title",
|
|
272
|
+
"privacy": "private",
|
|
273
|
+
"type": {
|
|
274
|
+
"text": "string"
|
|
275
|
+
},
|
|
276
|
+
"description": "The title for the PDF shown in the toolbar of component. It uses both the file name and\nthe title in the PDF metadata if available.",
|
|
277
|
+
"default": "\"PDF\"",
|
|
278
|
+
"attribute": "__title"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"kind": "field",
|
|
282
|
+
"name": "zoom",
|
|
283
|
+
"privacy": "public",
|
|
284
|
+
"type": {
|
|
285
|
+
"text": "string"
|
|
286
|
+
},
|
|
287
|
+
"description": "The level of zoom on the document.\nAllowed values are\n - Number, for zoom percentage. Eg. 1.5 means 150% zoom\n - 'auto', default value\n - 'page-fit', fit a full page into component",
|
|
288
|
+
"default": "\"auto\"",
|
|
289
|
+
"attribute": "zoom"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"kind": "field",
|
|
293
|
+
"name": "currentPage",
|
|
294
|
+
"privacy": "public",
|
|
295
|
+
"type": {
|
|
296
|
+
"text": "string"
|
|
297
|
+
},
|
|
298
|
+
"description": "The current page visible viewed right now",
|
|
299
|
+
"default": "\"1\"",
|
|
300
|
+
"attribute": "currentPage"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"kind": "field",
|
|
304
|
+
"name": "__loading",
|
|
305
|
+
"privacy": "private",
|
|
306
|
+
"type": {
|
|
307
|
+
"text": "boolean"
|
|
308
|
+
},
|
|
309
|
+
"description": "Loading state",
|
|
310
|
+
"default": "true",
|
|
311
|
+
"attribute": "__loading"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"kind": "field",
|
|
315
|
+
"name": "__sidebarOpen",
|
|
316
|
+
"privacy": "private",
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "boolean"
|
|
319
|
+
},
|
|
320
|
+
"description": "Whether sidebar is open after loading or not",
|
|
321
|
+
"default": "false",
|
|
322
|
+
"attribute": "__sidebarOpen"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "field",
|
|
326
|
+
"name": "toolbarOnlyFilename",
|
|
327
|
+
"privacy": "public",
|
|
328
|
+
"type": {
|
|
329
|
+
"text": "boolean"
|
|
330
|
+
},
|
|
331
|
+
"description": "Flag to indicate if toolbar should only show filename as title",
|
|
332
|
+
"default": "false",
|
|
333
|
+
"attribute": "toolbarOnlyFilename"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "field",
|
|
337
|
+
"name": "autoZoomOptionLabel",
|
|
338
|
+
"privacy": "public",
|
|
339
|
+
"type": {
|
|
340
|
+
"text": "string"
|
|
341
|
+
},
|
|
342
|
+
"description": "Property to define auto zoom label",
|
|
343
|
+
"default": "\"Automatic zoom\"",
|
|
344
|
+
"attribute": "autoZoomOptionLabel"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"kind": "field",
|
|
348
|
+
"name": "fitZoomOptionLabel",
|
|
349
|
+
"privacy": "public",
|
|
350
|
+
"type": {
|
|
351
|
+
"text": "string"
|
|
352
|
+
},
|
|
353
|
+
"description": "Property to define page fit zoom label",
|
|
354
|
+
"default": "\"Page fit\"",
|
|
355
|
+
"attribute": "fitZoomOptionLabel"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"kind": "field",
|
|
359
|
+
"name": "customTitle",
|
|
360
|
+
"privacy": "public",
|
|
361
|
+
"type": {
|
|
362
|
+
"text": "string"
|
|
363
|
+
},
|
|
364
|
+
"description": "Property to define a custom title for the viewer",
|
|
365
|
+
"default": "\"\"",
|
|
366
|
+
"attribute": "customTitle"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"kind": "field",
|
|
370
|
+
"name": "renderInteractiveForms",
|
|
371
|
+
"privacy": "public",
|
|
372
|
+
"type": {
|
|
373
|
+
"text": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"description": "Renders interactive form elements in the annotation layer (html) if true,\nrenders values of form elements directly onto the canvas if false",
|
|
376
|
+
"default": "true",
|
|
377
|
+
"attribute": "renderInteractiveForms"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "field",
|
|
381
|
+
"name": "hideZoom",
|
|
382
|
+
"privacy": "public",
|
|
383
|
+
"type": {
|
|
384
|
+
"text": "boolean"
|
|
385
|
+
},
|
|
386
|
+
"description": "Allows to hide the zoom dropdown. By default it's always shown.",
|
|
387
|
+
"default": "false",
|
|
388
|
+
"attribute": "hideZoom"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"kind": "field",
|
|
392
|
+
"name": "sidebarToggleTooltip",
|
|
393
|
+
"privacy": "public",
|
|
394
|
+
"type": {
|
|
395
|
+
"text": "string"
|
|
396
|
+
},
|
|
397
|
+
"description": "Property to define a custom tooltip for the sidebar toggle button",
|
|
398
|
+
"default": "\"\"",
|
|
399
|
+
"attribute": "sidebarToggleTooltip"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"kind": "field",
|
|
403
|
+
"name": "previousPageTooltip",
|
|
404
|
+
"privacy": "public",
|
|
405
|
+
"type": {
|
|
406
|
+
"text": "string"
|
|
407
|
+
},
|
|
408
|
+
"description": "Property to define a custom tooltip for the previous page button",
|
|
409
|
+
"default": "\"\"",
|
|
410
|
+
"attribute": "previousPageTooltip"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"kind": "field",
|
|
414
|
+
"name": "nextPageTooltip",
|
|
415
|
+
"privacy": "public",
|
|
416
|
+
"type": {
|
|
417
|
+
"text": "string"
|
|
418
|
+
},
|
|
419
|
+
"description": "Property to define a custom tooltip for the next page button",
|
|
420
|
+
"default": "\"\"",
|
|
421
|
+
"attribute": "nextPageTooltip"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "field",
|
|
425
|
+
"name": "src",
|
|
426
|
+
"privacy": "public",
|
|
427
|
+
"type": {
|
|
428
|
+
"text": "string"
|
|
429
|
+
},
|
|
430
|
+
"description": "You can set a pdf file that you want to render with src. Note that regular cross\nsite scripting (XSS) rules apply. This means that the file should be on the same\nserver as where the component is run, or that the server where the file is on should\nbe configured to allow loading files from other sites.",
|
|
431
|
+
"attribute": "src"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"kind": "field",
|
|
435
|
+
"name": "__viewer",
|
|
436
|
+
"privacy": "private",
|
|
437
|
+
"description": "The viewer, which takes care of rendering content into a DOM element.",
|
|
438
|
+
"attribute": "__viewer"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"kind": "field",
|
|
442
|
+
"name": "__thumbnailViewer",
|
|
443
|
+
"privacy": "private",
|
|
444
|
+
"description": "The viewer for thumbnails.",
|
|
445
|
+
"attribute": "__thumbnailViewer"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "field",
|
|
449
|
+
"name": "__linkService",
|
|
450
|
+
"privacy": "private",
|
|
451
|
+
"description": "The link service.",
|
|
452
|
+
"attribute": "__linkService"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"kind": "field",
|
|
456
|
+
"name": "__document",
|
|
457
|
+
"privacy": "private",
|
|
458
|
+
"description": "A represenentation of a document that has been read in.",
|
|
459
|
+
"attribute": "__document"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"kind": "field",
|
|
463
|
+
"name": "__filename",
|
|
464
|
+
"privacy": "private",
|
|
465
|
+
"description": "Relative filename",
|
|
466
|
+
"attribute": "__filename"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"kind": "field",
|
|
470
|
+
"name": "__pdfTitle",
|
|
471
|
+
"privacy": "private",
|
|
472
|
+
"description": "The pdf metadata title",
|
|
473
|
+
"attribute": "__pdfTitle"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"kind": "field",
|
|
477
|
+
"name": "__totalPages",
|
|
478
|
+
"privacy": "private",
|
|
479
|
+
"description": "Total amount of pages in an opened document",
|
|
480
|
+
"attribute": "__totalPages"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"events": [
|
|
484
|
+
{
|
|
485
|
+
"name": "currentPage-changed",
|
|
486
|
+
"type": {
|
|
487
|
+
"text": "CustomEvent"
|
|
488
|
+
},
|
|
489
|
+
"description": "Fired after the element itself updated `currentPage`."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "document-loaded",
|
|
493
|
+
"type": {
|
|
494
|
+
"text": "CustomEvent"
|
|
495
|
+
},
|
|
496
|
+
"description": "Fired once the document behind `src` finished loading, with the pdf.js document in `detail.document`."
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "CustomEvent"
|
|
501
|
+
},
|
|
502
|
+
"description": "Fired when a sidebar thumbnail is clicked, after navigating to its page. Dispatched on the viewer, which is also passed as `detail.source`, together with `detail.pageNumber`.",
|
|
503
|
+
"name": "thumbnail-clicked"
|
|
504
|
+
}
|
|
505
|
+
],
|
|
506
|
+
"attributes": [
|
|
507
|
+
{
|
|
508
|
+
"name": "src",
|
|
509
|
+
"type": {
|
|
510
|
+
"text": "string"
|
|
511
|
+
},
|
|
512
|
+
"description": "You can set a pdf file that you want to render with src. Note that regular cross\nsite scripting (XSS) rules apply. This means that the file should be on the same\nserver as where the component is run, or that the server where the file is on should\nbe configured to allow loading files from other sites.",
|
|
513
|
+
"fieldName": "src"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "zoom",
|
|
517
|
+
"type": {
|
|
518
|
+
"text": "string"
|
|
519
|
+
},
|
|
520
|
+
"description": "The level of zoom on the document.\nAllowed values are\n - Number, for zoom percentage. Eg. 1.5 means 150% zoom\n - 'auto', default value\n - 'page-fit', fit a full page into component",
|
|
521
|
+
"default": "\"auto\"",
|
|
522
|
+
"fieldName": "zoom"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "currentpage",
|
|
526
|
+
"type": {
|
|
527
|
+
"text": "string"
|
|
528
|
+
},
|
|
529
|
+
"description": "The current page visible viewed right now",
|
|
530
|
+
"default": "\"1\"",
|
|
531
|
+
"fieldName": "currentPage"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "toolbaronlyfilename",
|
|
535
|
+
"type": {
|
|
536
|
+
"text": "boolean"
|
|
537
|
+
},
|
|
538
|
+
"description": "Flag to indicate if toolbar should only show filename as title",
|
|
539
|
+
"default": "false",
|
|
540
|
+
"fieldName": "toolbarOnlyFilename"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "autozoomoptionlabel",
|
|
544
|
+
"type": {
|
|
545
|
+
"text": "string"
|
|
546
|
+
},
|
|
547
|
+
"description": "Property to define auto zoom label",
|
|
548
|
+
"default": "\"Automatic zoom\"",
|
|
549
|
+
"fieldName": "autoZoomOptionLabel"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "fitzoomoptionlabel",
|
|
553
|
+
"type": {
|
|
554
|
+
"text": "string"
|
|
555
|
+
},
|
|
556
|
+
"description": "Property to define page fit zoom label",
|
|
557
|
+
"default": "\"Page fit\"",
|
|
558
|
+
"fieldName": "fitZoomOptionLabel"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "customtitle",
|
|
562
|
+
"type": {
|
|
563
|
+
"text": "string"
|
|
564
|
+
},
|
|
565
|
+
"description": "Property to define a custom title for the viewer",
|
|
566
|
+
"default": "\"\"",
|
|
567
|
+
"fieldName": "customTitle"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "renderinteractiveforms",
|
|
571
|
+
"type": {
|
|
572
|
+
"text": "boolean"
|
|
573
|
+
},
|
|
574
|
+
"description": "Renders interactive form elements in the annotation layer (html) if true,\nrenders values of form elements directly onto the canvas if false",
|
|
575
|
+
"default": "true",
|
|
576
|
+
"fieldName": "renderInteractiveForms"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "hidezoom",
|
|
580
|
+
"type": {
|
|
581
|
+
"text": "boolean"
|
|
582
|
+
},
|
|
583
|
+
"description": "Allows to hide the zoom dropdown. By default it's always shown.",
|
|
584
|
+
"default": "false",
|
|
585
|
+
"fieldName": "hideZoom"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "sidebartoggletooltip",
|
|
589
|
+
"type": {
|
|
590
|
+
"text": "string"
|
|
591
|
+
},
|
|
592
|
+
"description": "Property to define a custom tooltip for the sidebar toggle button",
|
|
593
|
+
"default": "\"\"",
|
|
594
|
+
"fieldName": "sidebarToggleTooltip"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "previouspagetooltip",
|
|
598
|
+
"type": {
|
|
599
|
+
"text": "string"
|
|
600
|
+
},
|
|
601
|
+
"description": "Property to define a custom tooltip for the previous page button",
|
|
602
|
+
"default": "\"\"",
|
|
603
|
+
"fieldName": "previousPageTooltip"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "nextpagetooltip",
|
|
607
|
+
"type": {
|
|
608
|
+
"text": "string"
|
|
609
|
+
},
|
|
610
|
+
"description": "Property to define a custom tooltip for the next page button",
|
|
611
|
+
"default": "\"\"",
|
|
612
|
+
"fieldName": "nextPageTooltip"
|
|
613
|
+
}
|
|
614
|
+
],
|
|
615
|
+
"mixins": [
|
|
616
|
+
{
|
|
617
|
+
"name": "ResizeMixin",
|
|
618
|
+
"package": "@vaadin/component-base/"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "SlotStylesMixin",
|
|
622
|
+
"package": "@vaadin/component-base/"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "ThemeDetectionMixin",
|
|
626
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-theme-detection-mixin"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "ThemableMixin",
|
|
630
|
+
"package": "@vaadin/vaadin-themable-mixin"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "ElementMixin",
|
|
634
|
+
"package": "@vaadin/component-base/src/element-mixin"
|
|
635
|
+
}
|
|
636
|
+
],
|
|
637
|
+
"superclass": {
|
|
638
|
+
"name": "LitElement",
|
|
639
|
+
"package": "lit"
|
|
640
|
+
},
|
|
641
|
+
"tagName": "vcf-pdf-viewer",
|
|
642
|
+
"customElement": true
|
|
643
|
+
}
|
|
644
|
+
],
|
|
645
|
+
"exports": [
|
|
646
|
+
{
|
|
647
|
+
"kind": "js",
|
|
648
|
+
"name": "PdfViewerElement",
|
|
649
|
+
"declaration": {
|
|
650
|
+
"name": "PdfViewerElement",
|
|
651
|
+
"module": "src/vcf-pdf-viewer.js"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"kind": "custom-element-definition",
|
|
656
|
+
"declaration": {
|
|
657
|
+
"name": "PdfViewerElement",
|
|
658
|
+
"module": "src/vcf-pdf-viewer.js"
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
]
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
}
|