@vaadin-component-factory/vcf-pdf-viewer 2.0.0 → 2.0.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/LICENSE +0 -0
- package/README.md +0 -0
- package/package.json +22 -22
- package/pdfjs/dist/display_utils.js +0 -0
- package/pdfjs/dist/fetch_stream.js +0 -0
- package/pdfjs/dist/l10n_utils.js +0 -0
- package/pdfjs/dist/message_handler.js +0 -0
- package/pdfjs/dist/network.js +0 -0
- package/pdfjs/dist/network_utils.js +0 -0
- package/pdfjs/dist/node_stream.js +0 -0
- package/pdfjs/dist/pdf.js +0 -0
- package/pdfjs/dist/pdf_link_service.js +0 -0
- package/pdfjs/dist/pdf_rendering_queue.js +0 -0
- package/pdfjs/dist/pdf_thumbnail_viewer.js +0 -0
- package/pdfjs/dist/pdf_viewer.js +0 -0
- package/pdfjs/dist/ui_utils.js +0 -0
- package/pdfjs/dist/util.js +0 -0
- package/pdfjs/dist/worker.js +0 -0
- package/src/vcf-pdf-viewer.js +19 -13
- package/theme/lumo/vcf-pdf-viewer-styles.js +0 -0
- package/theme/lumo/vcf-pdf-viewer.js +0 -0
- package/theme/material/baseline-keyboard_arrow_down-24px.svg +0 -0
- package/theme/material/baseline-keyboard_arrow_up-24px.svg +0 -0
- package/theme/material/vcf-pdf-viewer-styles.js +0 -0
- package/theme/material/vcf-pdf-viewer.js +0 -0
- package/vcf-pdf-viewer.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin-component-factory/vcf-pdf-viewer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Polymer element providing pdf viewer",
|
|
5
5
|
"main": "vcf-pdf-viewer.js",
|
|
6
6
|
"repository": {
|
|
@@ -25,47 +25,47 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@polymer/polymer": "^3.4.1",
|
|
28
|
+
"@vaadin/button": "^24.1.1",
|
|
28
29
|
"@vaadin/component-base": "^24.1.1",
|
|
29
|
-
"@vaadin/
|
|
30
|
-
"@vaadin/vaadin-material-styles": "^24.1.1",
|
|
31
|
-
"@vaadin/text-field": "^24.1.1",
|
|
32
|
-
"@vaadin/vaadin-themable-mixin": "^24.1.1",
|
|
30
|
+
"@vaadin/icon": "^24.1.1",
|
|
33
31
|
"@vaadin/item": "^24.1.1",
|
|
34
32
|
"@vaadin/list-box": "^24.1.1",
|
|
35
33
|
"@vaadin/select": "^24.1.1",
|
|
36
|
-
"@vaadin/
|
|
37
|
-
"@vaadin/
|
|
34
|
+
"@vaadin/text-field": "^24.1.1",
|
|
35
|
+
"@vaadin/vaadin-lumo-styles": "^24.1.1",
|
|
36
|
+
"@vaadin/vaadin-material-styles": "^24.1.1",
|
|
37
|
+
"@vaadin/vaadin-themable-mixin": "^24.1.1",
|
|
38
38
|
"core-js": "^3.19.0",
|
|
39
39
|
"dommatrix": "^0.0.6",
|
|
40
40
|
"web-streams-polyfill": "^3.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@babel/core": "^7.16.0",
|
|
44
|
+
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
|
|
45
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
46
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
47
|
+
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
48
|
+
"@babel/preset-env": "^7.16.0",
|
|
49
|
+
"@babel/runtime-corejs3": "^7.16.3",
|
|
43
50
|
"@polymer/iron-component-page": "^4.0.0",
|
|
44
51
|
"@polymer/iron-demo-helpers": "^3.0.0-pre.19",
|
|
52
|
+
"@rollup/plugin-babel": "5.3.0",
|
|
53
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
45
55
|
"@vaadin/polymer-legacy-adapter": "22.0.1",
|
|
46
56
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
|
47
|
-
"regenerator-runtime": "^0.13.5",
|
|
48
|
-
"@babel/core": "^7.16.0",
|
|
49
|
-
"@babel/preset-env": "^7.16.0",
|
|
50
|
-
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
51
|
-
"@babel/runtime-corejs3": "^7.16.3",
|
|
52
|
-
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
53
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
54
|
-
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
|
|
55
57
|
"babel-loader": "^8.2.3",
|
|
56
58
|
"html-webpack-plugin": "^5.5.0",
|
|
57
|
-
"
|
|
58
|
-
"webpack-cli": "^4.9.1",
|
|
59
|
-
"webpack-dev-server": "^4.4.0",
|
|
59
|
+
"regenerator-runtime": "^0.13.5",
|
|
60
60
|
"rimraf": "^3.0.2",
|
|
61
61
|
"rollup": "^2.59.0",
|
|
62
|
-
"@rollup/plugin-babel": "5.3.0",
|
|
63
|
-
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
64
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
|
65
62
|
"rollup-plugin-copy": "^3.4.0",
|
|
66
63
|
"rollup-plugin-filesize": "^9.1.1",
|
|
67
64
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
68
|
-
"rollup-plugin-terser": "^7.0.2"
|
|
65
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
66
|
+
"webpack": "^5.61.0",
|
|
67
|
+
"webpack-cli": "^4.9.1",
|
|
68
|
+
"webpack-dev-server": "^4.4.0"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"test": "wct",
|
|
File without changes
|
|
File without changes
|
package/pdfjs/dist/l10n_utils.js
CHANGED
|
File without changes
|
|
File without changes
|
package/pdfjs/dist/network.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pdfjs/dist/pdf.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/pdfjs/dist/pdf_viewer.js
CHANGED
|
File without changes
|
package/pdfjs/dist/ui_utils.js
CHANGED
|
File without changes
|
package/pdfjs/dist/util.js
CHANGED
|
File without changes
|
package/pdfjs/dist/worker.js
CHANGED
|
File without changes
|
package/src/vcf-pdf-viewer.js
CHANGED
|
@@ -263,7 +263,7 @@ class PdfViewerElement extends
|
|
|
263
263
|
<vaadin-icon part="toggle-button-icon" slot="prefix"></vaadin-icon>
|
|
264
264
|
</vaadin-button>
|
|
265
265
|
<span id="title" part="toolbar-text toolbar-title">{{__title}}</span>
|
|
266
|
-
<vaadin-select id="zoom" part="toolbar-zoom" value="{{zoom}}">
|
|
266
|
+
<vaadin-select id="zoom" part="toolbar-zoom" value="{{zoom}}" items="[[__zoomItems]]">
|
|
267
267
|
</vaadin-select>
|
|
268
268
|
<div part="toolbar-pages">
|
|
269
269
|
<vaadin-text-field id="currentPage" part="toolbar-current-page" value="{{currentPage}}" on-change="__pageChange"></vaadin-text-field>
|
|
@@ -432,9 +432,27 @@ class PdfViewerElement extends
|
|
|
432
432
|
type: Boolean,
|
|
433
433
|
value: false
|
|
434
434
|
},
|
|
435
|
+
__zoomItems: {
|
|
436
|
+
computed: '__computeZoomItems(autoZoomOptionLabel, fitZoomOptionLabel)'
|
|
437
|
+
}
|
|
435
438
|
};
|
|
436
439
|
}
|
|
437
440
|
|
|
441
|
+
__computeZoomItems(autoZoomOptionLabel, fitZoomOptionLabel) {
|
|
442
|
+
return [
|
|
443
|
+
{ label: autoZoomOptionLabel, value:'auto' },
|
|
444
|
+
{ label: fitZoomOptionLabel, value:'page-fit' },
|
|
445
|
+
{ label: '50%', value:'0.5' },
|
|
446
|
+
{ label: '75%', value:'0.75' },
|
|
447
|
+
{ label: '100%', value:'1.0' },
|
|
448
|
+
{ label: '125%', value:'1.25' },
|
|
449
|
+
{ label: '150%', value:'1.5' },
|
|
450
|
+
{ label: '200%', value:'2.0' },
|
|
451
|
+
{ label: '300%', value:'3.0' },
|
|
452
|
+
{ label: '400%', value:'4.0' }
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
|
|
438
456
|
static get observers() {
|
|
439
457
|
return [
|
|
440
458
|
'__setTitle(__pdfTitle, __filename)',
|
|
@@ -536,18 +554,6 @@ class PdfViewerElement extends
|
|
|
536
554
|
this.__resizeObserver = new ResizeObserver(() => {
|
|
537
555
|
requestAnimationFrame(() => this.__recalculateSizes());
|
|
538
556
|
});
|
|
539
|
-
this.$.zoom.items = [
|
|
540
|
-
{ label: this.autoZoomOptionLabel, value:'auto' },
|
|
541
|
-
{ label: this.fitZoomOptionLabel, value:'page-fit' },
|
|
542
|
-
{ label: '50%', value:'0.5' },
|
|
543
|
-
{ label: '75%', value:'0.75' },
|
|
544
|
-
{ label: '100%', value:'1.0' },
|
|
545
|
-
{ label: '125%', value:'1.25' },
|
|
546
|
-
{ label: '150%', value:'1.5' },
|
|
547
|
-
{ label: '200%', value:'2.0' },
|
|
548
|
-
{ label: '300%', value:'3.0' },
|
|
549
|
-
{ label: '400%', value:'4.0' }
|
|
550
|
-
];
|
|
551
557
|
|
|
552
558
|
this.__resizeObserver.observe(this);
|
|
553
559
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/vcf-pdf-viewer.js
CHANGED
|
File without changes
|