@progress/kendo-react-pdf-viewer 15.1.0 → 15.1.1-develop.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/NOTICE.txt +22 -73
- package/dist/cdn/js/kendo-react-pdf-viewer.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
package/NOTICE.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
Progress KendoReact 2026 Updated July 2026
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
5
5
|
NOTICES REPORT
|
|
6
6
|
----------------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
@@ -25,14 +25,20 @@
|
|
|
25
25
|
|
|
26
26
|
----------------------------------------------------------------------------------------------------------------------------
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
will include a configuration to connect to AI. You acknowledge that a separate license or subscription access
|
|
31
|
-
by the terms and conditions of a license agreement from AI licensor will be required for use and access of
|
|
32
|
-
integrated with the Software. You will be responsible to comply with the terms of such license agreement
|
|
33
|
-
AI. You acknowledge and accept that Progress is not a party to the license agreement between You
|
|
34
|
-
use, and as a result Progress does not have any control over AI and its availability, and Progress
|
|
35
|
-
liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI
|
|
28
|
+
GENERATIVE ARTIFICIAL INTELLIGENCE INTEGRATION
|
|
29
|
+
If the Software documentation specifies integration with some form of generative artificial intelligence (AI), then the
|
|
30
|
+
Software will include a configuration to connect to AI. You acknowledge that a separate license or subscription access
|
|
31
|
+
to AI governed by the terms and conditions of a license agreement from AI licensor will be required for use and access of
|
|
32
|
+
AI capabilities integrated with the Software. You will be responsible to comply with the terms of such license agreement
|
|
33
|
+
for a valid use of AI. You acknowledge and accept that Progress is not a party to the license agreement between You
|
|
34
|
+
and AI licensor for AI use, and as a result Progress does not have any control over AI and its availability, and Progress
|
|
35
|
+
disclaims any and all liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI
|
|
36
|
+
integrated with the Software.
|
|
37
|
+
|
|
38
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
39
|
+
|
|
40
|
+
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or other
|
|
41
|
+
documentation that accompanies updates received in connection with support of the Product.
|
|
36
42
|
|
|
37
43
|
----------------------------------------------------------------------------------------------------------------------------
|
|
38
44
|
|
|
@@ -41,7 +47,6 @@ Components:
|
|
|
41
47
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
42
48
|
| Component | Origin | License |
|
|
43
49
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
44
|
-
| axios 1.13.6 | https://github.com/axios/axios | MIT License |
|
|
45
50
|
| pdfjs-dist-for-node 4.6.82 | http://mozilla.github.io/pdf.js/ | Apache License 2.0 |
|
|
46
51
|
| @progress/jszip-esm 1.0.4 | https://github.com/telerik/jszip-esm# | MIT License |
|
|
47
52
|
| | readme | |
|
|
@@ -53,7 +58,7 @@ Components:
|
|
|
53
58
|
| | irror-commands#readme | |
|
|
54
59
|
| prosemirror-dropcursor 1.8.2 | https://github.com/prosemirror/prosem | MIT License |
|
|
55
60
|
| | irror-dropcursor#readme | |
|
|
56
|
-
| prosemirror-gapcursor 1.4.
|
|
61
|
+
| prosemirror-gapcursor 1.4.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
57
62
|
| | irror-gapcursor#readme | |
|
|
58
63
|
| prosemirror-history 1.5.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
59
64
|
| | irror-history#readme | |
|
|
@@ -69,9 +74,9 @@ Components:
|
|
|
69
74
|
| | irror-state#readme | |
|
|
70
75
|
| prosemirror-tables 1.8.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
71
76
|
| | irror-tables#readme | |
|
|
72
|
-
| prosemirror-transform 1.
|
|
77
|
+
| prosemirror-transform 1.12.0 | https://github.com/prosemirror/prosem | MIT License |
|
|
73
78
|
| | irror-transform#readme | |
|
|
74
|
-
| prosemirror-view 1.41.
|
|
79
|
+
| prosemirror-view 1.41.8 | https://github.com/prosemirror/prosem | MIT License |
|
|
75
80
|
| | irror-view#readme | |
|
|
76
81
|
| react-transition-group 4.4.4 | https://github.com/reactjs/react-tran | BSD 3-clause "New" or "Revised" License |
|
|
77
82
|
| | sition-group#readme | |
|
|
@@ -270,8 +275,7 @@ third-party archives.
|
|
|
270
275
|
BSD 3-clause "New" or "Revised" License
|
|
271
276
|
(react-transition-group 4.4.4)
|
|
272
277
|
|
|
273
|
-
Copyright
|
|
274
|
-
All rights reserved.
|
|
278
|
+
[Copyright notice for each component version subject to this license can be located via the origin url provided in the Component Summary above]
|
|
275
279
|
|
|
276
280
|
Redistribution and use in source and binary forms, with or without modification,
|
|
277
281
|
are permitted provided that the following conditions are met:
|
|
@@ -301,66 +305,12 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
301
305
|
---
|
|
302
306
|
|
|
303
307
|
MIT License
|
|
304
|
-
(@progress/pako-esm 1.0.1)
|
|
305
|
-
|
|
306
|
-
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
307
|
-
|
|
308
|
-
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
309
|
-
|
|
310
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
311
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
312
|
-
in the Software without restriction, including without limitation the rights
|
|
313
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
314
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
315
|
-
furnished to do so, subject to the following conditions:
|
|
316
|
-
|
|
317
|
-
The above copyright notice and this permission notice shall be included in
|
|
318
|
-
all copies or substantial portions of the Software.
|
|
319
|
-
|
|
320
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
321
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
322
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
323
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
324
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
325
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
326
|
-
THE SOFTWARE
|
|
327
|
-
|
|
328
|
-
---
|
|
329
|
-
|
|
330
|
-
MIT License
|
|
331
|
-
(prop-types 15.8.1)
|
|
332
|
-
|
|
333
|
-
MIT License
|
|
334
|
-
|
|
335
|
-
Copyright (c) 2013-present, Facebook, Inc.
|
|
336
|
-
|
|
337
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
338
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
339
|
-
in the Software without restriction, including without limitation the rights
|
|
340
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
341
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
342
|
-
furnished to do so, subject to the following conditions:
|
|
343
|
-
|
|
344
|
-
The above copyright notice and this permission notice shall be included in all
|
|
345
|
-
copies or substantial portions of the Software.
|
|
346
|
-
|
|
347
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
348
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
349
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
350
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
351
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
352
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
353
|
-
SOFTWARE
|
|
354
|
-
|
|
355
|
-
---
|
|
356
|
-
|
|
357
|
-
MIT License
|
|
358
|
-
(@progress/jszip-esm 1.0.4, axios 1.13.6, prosemirror-commands 1.7.1, prosemirror-dropcursor 1.8.2, prosemirror-gapcursor 1.4.0, prosemirror-history 1.5.0, prosemirror-inputrules 1.5.1, prosemirror-keymap 1.2.3, prosemirror-model 1.25.4, prosemirror-schema-list 1.5.1, prosemirror-state 1.4.4, prosemirror-tables 1.8.5, prosemirror-transform 1.11.0, prosemirror-view 1.41.6)
|
|
308
|
+
(@progress/jszip-esm 1.0.4, @progress/pako-esm 1.0.1, prop-types 15.8.1, prosemirror-commands 1.7.1, prosemirror-dropcursor 1.8.2, prosemirror-gapcursor 1.4.1, prosemirror-history 1.5.0, prosemirror-inputrules 1.5.1, prosemirror-keymap 1.2.3, prosemirror-model 1.25.4, prosemirror-schema-list 1.5.1, prosemirror-state 1.4.4, prosemirror-tables 1.8.5, prosemirror-transform 1.12.0, prosemirror-view 1.41.8)
|
|
359
309
|
|
|
360
310
|
The MIT License
|
|
361
311
|
===============
|
|
362
312
|
|
|
363
|
-
Copyright
|
|
313
|
+
[Copyright notice for each component version subject to this license can be located via the origin url provided in the Component Summary above]
|
|
364
314
|
|
|
365
315
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
366
316
|
this software and associated documentation files (the "Software"), to deal in the
|
|
@@ -380,4 +330,3 @@ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
380
330
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
381
331
|
|
|
382
332
|
---
|
|
383
|
-
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@progress/kendo-pdfviewer-common"),require("react"),require("prop-types"),require("@progress/kendo-react-buttons"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-data-tools"),require("@progress/kendo-react-upload"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-indicators"),require("@progress/kendo-react-common"),require("@progress/kendo-react-intl"),require("@progress/kendo-svg-icons"),require("pdfjs-dist/build/pdf.worker.min.mjs")):"function"==typeof define&&define.amd?define(["exports","@progress/kendo-pdfviewer-common","react","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-inputs","@progress/kendo-react-data-tools","@progress/kendo-react-upload","@progress/kendo-react-dropdowns","@progress/kendo-react-indicators","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-svg-icons","pdfjs-dist/build/pdf.worker.min.mjs"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactPdfViewer={},e.KendoPdfviewerCommon,e.React,e.PropTypes,e.KendoReactButtons,e.KendoReactInputs,e.KendoReactDataTools,e.KendoReactUpload,e.KendoReactDropdowns,e.KendoReactIndicators,e.KendoReactCommon,e.KendoReactIntl,e.KendoSvgIcons)}(this,function(e,o,t,r,a,n,l,c,s,i,u,d,m){"use strict";function p(e){var o=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),o.default=e,Object.freeze(o)}var g=p(t);const f=Object.freeze({name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1673300081,version:"15.1.0",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}),v="pdfviewer.zoomIn",k="pdfviewer.zoomOut",b="pdfviewer.zoomLevel",h="pdfviewer.enableSelection",y="pdfviewer.enablePanning",C="pdfviewer.search",w="pdfviewer.open",E="pdfviewer.download",S="pdfviewer.print",x="pdfviewer.close",P="pdfviewer.matchCase",I="pdfviewer.prevMatch",z="pdfviewer.nextMatch",N="pdfviewer.actualWidth",L="pdfviewer.fitToWidth",Z="pdfviewer.fitToPage",R="pdfviewer.popupBlocked",T="pdfviewer.searchOf",O={[v]:"Zoom in",[k]:"Zoom out",[b]:"Choose zoom level",[h]:"Enable selection",[y]:"Enable panning",[C]:"Search",[w]:"Open",[E]:"Download",[T]:"of",[S]:"Print",[x]:"Close",[P]:"Match case",[I]:"Previous match",[z]:"Next match",[N]:"Actual width",[L]:"Fit to width",[Z]:"Fit to page",[R]:"Popup is blocked."},B=["pager","spacer","zoomInOut","zoom","selection","spacer","search","open","download","print"],D={minZoom:.5,maxZoom:4,tools:[...B],zoomRate:.25,zoomLevels:[{id:1,priority:1,value:1,text:"Actual width",type:"ActualWidth",locationString:N},{id:2,priority:2,value:1,text:"Fit to width",type:"FitToWidth",locationString:L},{id:3,priority:3,value:1,text:"Fit to page",type:"FitToPage",locationString:Z},{id:4,priority:4,value:.5,text:"50%",type:""},{id:5,priority:5,value:.75,text:"75%",type:""},{id:6,priority:100,value:1,text:"100%",type:""},{id:7,priority:7,value:1.25,text:"125%",type:""},{id:8,priority:8,value:1.5,text:"150%",type:""},{id:9,priority:9,value:2,text:"200%",type:""},{id:10,priority:10,value:3,text:"300%",type:""},{id:11,priority:11,value:4,text:"400%",type:""}],defaultZoom:o.DEFAULT_ZOOM_LEVEL},M=[".k-toolbar > button",".k-toolbar .k-combobox > input",".k-toolbar .k-button-group > button",".k-toolbar .k-pager > a",".k-toolbar .k-pager input"],F=(e,o)=>e.priority>o.priority?-1:e.priority<o.priority?1:0,K=g.forwardRef((e,t)=>{const r=!u.validatePackage(f,{component:"PDFViewer"}),p=u.getLicenseMessage(f),{zoom:N,zoomLevels:L=D.zoomLevels,defaultZoom:Z=D.defaultZoom,minZoom:B=D.minZoom,maxZoom:K=D.maxZoom,zoomRate:q=D.zoomRate}=e,j=d.useLocalization(),A=g.useRef(null),[U,V]=g.useState(Z),W=void 0!==N?N:U,_=L.slice().sort(F).find(e=>e.value===W)||{text:100*W+"%",value:W,id:W,locationString:""};_.locationString&&(_.text=j.toLanguageString(_.locationString,O[_.locationString]));const[G,H]=g.useState(!1),[$,J]=g.useState(!0),[Q,X]=g.useState(0),[Y,ee]=g.useState(!0),[oe,te]=g.useState(!1),[re,ae]=g.useState(0),[ne,le]=g.useState(0),[ce,se]=g.useState(!1),[ie,ue]=g.useState(""),de=g.useMemo(()=>({}),[]);de.currentZoom=W,de.props=e;const me=g.useCallback(e=>{A.current&&A.current.style.setProperty("--scale-factor",String(e))},[]),pe=g.useRef(null),ge=g.useRef(null);g.useImperativeHandle(pe,()=>({get element(){return ge.current},props:e,get pages(){return de.pages},get document(){return de.document}}),[]),g.useImperativeHandle(t,()=>pe.current);const fe=g.useCallback(()=>{if(de.props.onLoad){const e={target:pe.current};de.props.onLoad.call(void 0,e)}},[]),ve=g.useCallback((o,t,r)=>{if(e.onDownload){const a={target:pe.current,blob:o,fileName:t,saveOptions:r};return!1===e.onDownload.call(void 0,a)}return!1},[e.onDownload]),ke=g.useCallback(()=>{var e;de.scroller&&de.scroller.destroy(),de.scroller=new o.Scroller(null==(e=A.current)?void 0:e.parentNode,{filter:".k-page",events:{}}),de.scroller.disablePanEventsTracking()},[]),be=g.useCallback(e=>{const t=Array.from(e.querySelectorAll(".k-text-layer"));de.search=new o.SearchService({textContainers:t||[],highlightClass:"k-search-highlight",highlightMarkClass:"k-search-highlight-mark",charClass:"k-text-char"})},[]);de.done=g.useCallback(({pdfPages:e,pdfDoc:t,zoom:r})=>{de.document=t,de.pages=e,de.zoom=r,ke(),J(!1),H(!0),fe(),A.current&&o.scrollToPage(A.current,0)},[]),de.error=g.useCallback(o=>{if(de.document=null,de.pages=[],J(!1),H(!1),e.onError){const t="string"==typeof o?{message:o}:o,r={error:null!=t?t:j.toLanguageString(R,O[R]),target:pe.current};e.onError.call(void 0,r)}},[e.onError]),g.useEffect(()=>{A.current&&(e.url||e.data||e.arrayBuffer?(J(!0),o.removeChildren(A.current),o.loadPDF({url:e.url,data:e.data,arrayBuffer:e.arrayBuffer,dom:A.current,zoom:de.currentZoom,done:de.done,error:de.error}),me(de.currentZoom)):(de.document=null,de.pages=[],H(!1),J(!1),o.removeChildren(A.current)))},[e.url,e.data,e.arrayBuffer]);const he=g.useCallback((e,t,r)=>{A.current&&ge.current&&(J(!0),o.removeChildren(A.current),o.reloadDocument({pdfDoc:e,zoom:t,dom:A.current,done:e=>{de.pages=e,de.zoom=t,J(!1),A.current&&r>0&&o.scrollToPage(A.current,r)},error:de.error}))},[de]);g.useEffect(()=>{me(W),A.current&&de.document&&W!==de.zoom&&he(de.document,W,Q)},[W,de.document,de.zoom,he,me,Q]),g.useEffect(()=>()=>{de.scroller&&de.scroller.destroy(),de.search&&de.search.destroy(),de.document=null,de.pages=[]},[]);const ye=g.useCallback(()=>{te(!0),be(A.current)},[]),Ce=g.useCallback(e=>{const o=e.value,t=de.search.search({text:o,matchCase:ce});le(t.length?1:0),ae(t.length),ue(o)},[ce]),we=g.useCallback(()=>{const e=de.search.search({text:ie,matchCase:!ce});le(e.length?1:0),ae(e.length),se(!ce)},[ce,ie]),Ee=g.useCallback(()=>{o.goToNextSearchMatch(de),le(ne+1>re?1:ne+1)},[ne,re]),Se=g.useCallback(()=>{o.goToPreviousSearchMatch(de),le(ne-1<1?re:ne-1)},[ne,re]),xe=g.useCallback(()=>{de.search.destroy(),le(0),ae(0),se(!1),ue(""),te(!1)},[]),Pe=g.useCallback(e=>{"Enter"===e.key?(e.preventDefault(),o.goToNextSearchMatch(de),le(ne+1>re?1:ne+1)):"Escape"===e.key&&xe()},[ne,re]),Ie=g.useCallback(t=>{if(A.current){const r=t.skip;o.scrollToPage(A.current,r);const a={page:r+1,target:pe.current,syntheticEvent:t.syntheticEvent};e.onPageChange&&e.onPageChange.call(void 0,a)}X(t.skip)},[Q,e.onPageChange]),ze=g.useCallback(t=>{if(ge.current){const r=o.currentPage(ge.current);if(r!==Q){X(r);const o={page:r+1,target:pe.current,syntheticEvent:t};e.onPageChange&&e.onPageChange.call(void 0,o)}}},[Q,e.onPageChange]),Ne=g.useCallback(o=>{const t=Math.min(de.currentZoom+q,K);if(t!==de.currentZoom&&de.document&&(V(t),e.onZoom)){const r={zoom:t,target:pe.current,syntheticEvent:o};e.onZoom.call(void 0,r)}},[de.currentZoom,de.document,q,K,e.onZoom]),Le=g.useCallback(o=>{const t=Math.max(de.currentZoom-q,B);if(t!==de.currentZoom&&de.document&&(V(t),e.onZoom)){const r={zoom:t,target:pe.current,syntheticEvent:o};e.onZoom.call(void 0,r)}},[de.currentZoom,de.document,q,B,e.onZoom]),Ze=g.useCallback(t=>{const r=null===t.value?{text:"100%",value:1}:{...t.value};if(void 0===r.value){const e=parseFloat(r.text);"number"!=typeof e||Number.isNaN(e)?r.value=1:r.value=e/100}let a=o.calculateZoomLevel(r.value,r.type,de.currentZoom,A.current);if(a=Math.round(100*a)/100,de.currentZoom!==a&&de.document&&(V(a),e.onZoom)){const o={zoom:a,target:pe.current,syntheticEvent:t.syntheticEvent};e.onZoom.call(void 0,o)}},[e.onZoom]),Re=g.useCallback(()=>{de.scroller.disablePanEventsTracking(),ee(!0)},[]),Te=g.useCallback(()=>{de.scroller.enablePanEventsTracking(),ee(!1)},[]),Oe=g.useCallback(()=>{o.download({pdf:de.document,error:de.error},e.saveFileName,e.saveOptions,ve)},[e.url,e.data,e.arrayBuffer,e.saveFileName,e.saveOptions,ve]),Be=g.useCallback(()=>{J(!0);o.print(de.pages,()=>{J(!1)},e=>{J(!1),de.error(e)})},[]),De=g.useCallback(e=>{const t=e.newState;t[0]&&t[0].getRawFile&&t[0].getRawFile().arrayBuffer().then(e=>{if(A.current){J(!0),o.removeChildren(A.current);const t=void 0===de.props.zoom?Z:de.props.zoom;o.loadPDF({arrayBuffer:e,dom:A.current,zoom:t,done:de.done,error:de.error}),V(t)}})},[Z]),Me=g.useCallback(e=>{const o=e.target;if(o instanceof Element&&o.parentNode){const e=o.closest(".k-toolbar"),t=e&&e.querySelector(".k-upload input");t&&t.click()}},[]),Fe=$&&g.createElement("div",{className:"k-loader-container k-loader-container-md k-loader-top"},g.createElement("div",{className:"k-overlay"}),g.createElement("div",{className:"k-loader-container-inner "},g.createElement(i.Loader,{size:"large"}))),Ke=g.createElement(a.ButtonGroup,{className:"k-toolbar-button-group k-button-group-solid"},g.createElement(a.Button,{className:"k-group-start",fillMode:"flat",themeColor:"base",title:j.toLanguageString(k,O[k]),disabled:W<=B||!G,onClick:Le,icon:"zoom-out",svgIcon:m.zoomOutIcon}),g.createElement(a.Button,{className:"k-group-end",fillMode:"flat",themeColor:"base",title:j.toLanguageString(v,O[v]),disabled:W>=K||!G,onClick:Ne,icon:"zoom-in",svgIcon:m.zoomInIcon})),qe=g.createElement(s.ComboBox,{className:"k-toolbar-combobox",disabled:!G,data:L.map(e=>({...e,text:e.locationString?j.toLanguageString(e.locationString,O[e.locationString]):e.text})),dataItemKey:"id",textField:"text",value:G?_:null,allowCustom:!0,onChange:Ze,placeholder:j.toLanguageString(b,O[b])}),je={pager:g.createElement(l.Pager,{disabled:!G,previousNext:!0,type:"input",skip:Q,take:1,total:de.pages?de.pages.length:0,info:!1,onPageChange:Ie}),spacer:g.createElement(a.ToolbarSpacer,null),zoomInOut:Ke,zoom:qe,selection:g.createElement(a.ButtonGroup,{className:"k-toolbar-button-group k-button-group-solid"},g.createElement(a.Button,{className:"k-group-start",fillMode:"flat",themeColor:"base",title:j.toLanguageString(h,O[h]),icon:"pointer",svgIcon:m.pointerIcon,disabled:!G,togglable:!0,selected:Y&&G,onClick:Re}),g.createElement(a.Button,{className:"k-group-end",fillMode:"flat",themeColor:"base",title:j.toLanguageString(y,O[y]),icon:"hand",svgIcon:m.handIcon,disabled:!G,togglable:!0,selected:!Y&&G,onClick:Te})),search:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(C,O[C]),icon:"search",svgIcon:m.searchIcon,disabled:!G,onClick:ye}),open:g.createElement(g.Fragment,null,g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(w,O[w]),icon:"folder-open",svgIcon:m.folderOpenIcon,onClick:Me}),g.createElement("div",{style:{display:"none"}},g.createElement(c.Upload,{restrictions:{allowedExtensions:[".pdf"]},onAdd:De,autoUpload:!1,defaultFiles:[],multiple:!1,accept:".pdf,.PDF",withCredentials:!1}))),download:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(E,O[E]),icon:"download",svgIcon:m.downloadIcon,disabled:!G,onClick:Oe}),print:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(S,O[S]),icon:"print",svgIcon:m.printIcon,disabled:!G,onClick:Be})},Ae=(e.tools||D.tools).map((e,o)=>({...je[e],key:"toobar-tool-"+e+"-"+o})),Ue=g.createElement(a.Toolbar,{buttons:M},...Ae),Ve=g.createElement("div",{className:u.classNames("k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto",{"k-enable-text-select":Y,"k-enable-panning":!Y}),onScroll:ze},oe&&g.createElement("div",{className:"k-search-panel k-pos-sticky k-top-center"},g.createElement(n.TextBox,{value:ie,onChange:Ce,placeholder:j.toLanguageString(C,O[C]),autoFocus:!0,onKeyDown:Pe,suffix:()=>g.createElement(g.Fragment,null,g.createElement(n.InputSeparator,null),g.createElement(n.InputSuffix,null,g.createElement(a.Button,{icon:"convert-lowercase",svgIcon:m.convertLowercaseIcon,title:j.toLanguageString(P,O[P]),fillMode:"flat",togglable:!0,selected:ce,onClick:we})))}),g.createElement("span",{className:"k-search-matches"},g.createElement("span",null,ne)," ",j.toLanguageString(T,O[T]),g.createElement("span",null,re)),g.createElement(a.Button,{title:j.toLanguageString(I,O[I]),fillMode:"flat",icon:"arrow-up",svgIcon:m.arrowUpIcon,disabled:0===re,onClick:Se}),g.createElement(a.Button,{title:j.toLanguageString(z,O[z]),fillMode:"flat",icon:"arrow-down",svgIcon:m.arrowDownIcon,disabled:0===re,onClick:Ee}),g.createElement(a.Button,{title:j.toLanguageString(x,O[x]),fillMode:"flat",icon:"x",svgIcon:m.xIcon,onClick:xe})),g.createElement("div",{ref:A,className:"k-pdf-viewer-pages"}));return g.createElement("div",{className:"k-pdf-viewer",style:e.style,ref:ge},e.onRenderLoader?e.onRenderLoader.call(void 0,Fe||null):Fe,e.onRenderToolbar?e.onRenderToolbar.call(void 0,Ue):Ue,e.onRenderContent?e.onRenderContent.call(void 0,Ve):Ve,r&&g.createElement(u.WatermarkOverlay,{message:p}))});K.displayName="KendoReactPDFViewer",K.propTypes={url:r.string,data:r.string,arrayBuffer:r.any,typedArray:r.any,style:r.object,saveFileName:r.string,saveOptions:r.object,tools:r.arrayOf(r.oneOf(B).isRequired),zoomLevels:r.arrayOf(r.any),zoom:r.number,defaultZoom:r.number,minZoom:r.number,maxZoom:r.number,zoomRate:r.number,onError:r.func,onLoad:r.func,onDownload:r.func,onRenderToolbar:r.func,onRenderContent:r.func,onRenderLoader:r.func,onZoom:r.func};const q=o.scrollToPage;Object.defineProperty(e,"currentPage",{enumerable:!0,get:function(){return o.currentPage}}),e.PDFViewer=K,e.scrollToPage=q});
|
|
15
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@progress/kendo-pdfviewer-common"),require("react"),require("prop-types"),require("@progress/kendo-react-buttons"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-data-tools"),require("@progress/kendo-react-upload"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-indicators"),require("@progress/kendo-react-common"),require("@progress/kendo-react-intl"),require("@progress/kendo-svg-icons"),require("pdfjs-dist/build/pdf.worker.min.mjs")):"function"==typeof define&&define.amd?define(["exports","@progress/kendo-pdfviewer-common","react","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-inputs","@progress/kendo-react-data-tools","@progress/kendo-react-upload","@progress/kendo-react-dropdowns","@progress/kendo-react-indicators","@progress/kendo-react-common","@progress/kendo-react-intl","@progress/kendo-svg-icons","pdfjs-dist/build/pdf.worker.min.mjs"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactPdfViewer={},e.KendoPdfviewerCommon,e.React,e.PropTypes,e.KendoReactButtons,e.KendoReactInputs,e.KendoReactDataTools,e.KendoReactUpload,e.KendoReactDropdowns,e.KendoReactIndicators,e.KendoReactCommon,e.KendoReactIntl,e.KendoSvgIcons)}(this,function(e,o,t,r,a,n,l,c,s,i,u,d,m){"use strict";function p(e){var o=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),o.default=e,Object.freeze(o)}var g=p(t);const f=Object.freeze({name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:1673300081,version:"15.1.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}),v="pdfviewer.zoomIn",k="pdfviewer.zoomOut",b="pdfviewer.zoomLevel",h="pdfviewer.enableSelection",y="pdfviewer.enablePanning",C="pdfviewer.search",w="pdfviewer.open",E="pdfviewer.download",S="pdfviewer.print",x="pdfviewer.close",P="pdfviewer.matchCase",I="pdfviewer.prevMatch",z="pdfviewer.nextMatch",N="pdfviewer.actualWidth",L="pdfviewer.fitToWidth",Z="pdfviewer.fitToPage",R="pdfviewer.popupBlocked",T="pdfviewer.searchOf",O={[v]:"Zoom in",[k]:"Zoom out",[b]:"Choose zoom level",[h]:"Enable selection",[y]:"Enable panning",[C]:"Search",[w]:"Open",[E]:"Download",[T]:"of",[S]:"Print",[x]:"Close",[P]:"Match case",[I]:"Previous match",[z]:"Next match",[N]:"Actual width",[L]:"Fit to width",[Z]:"Fit to page",[R]:"Popup is blocked."},B=["pager","spacer","zoomInOut","zoom","selection","spacer","search","open","download","print"],D={minZoom:.5,maxZoom:4,tools:[...B],zoomRate:.25,zoomLevels:[{id:1,priority:1,value:1,text:"Actual width",type:"ActualWidth",locationString:N},{id:2,priority:2,value:1,text:"Fit to width",type:"FitToWidth",locationString:L},{id:3,priority:3,value:1,text:"Fit to page",type:"FitToPage",locationString:Z},{id:4,priority:4,value:.5,text:"50%",type:""},{id:5,priority:5,value:.75,text:"75%",type:""},{id:6,priority:100,value:1,text:"100%",type:""},{id:7,priority:7,value:1.25,text:"125%",type:""},{id:8,priority:8,value:1.5,text:"150%",type:""},{id:9,priority:9,value:2,text:"200%",type:""},{id:10,priority:10,value:3,text:"300%",type:""},{id:11,priority:11,value:4,text:"400%",type:""}],defaultZoom:o.DEFAULT_ZOOM_LEVEL},M=[".k-toolbar > button",".k-toolbar .k-combobox > input",".k-toolbar .k-button-group > button",".k-toolbar .k-pager > a",".k-toolbar .k-pager input"],F=(e,o)=>e.priority>o.priority?-1:e.priority<o.priority?1:0,K=g.forwardRef((e,t)=>{const r=!u.validatePackage(f,{component:"PDFViewer"}),p=u.getLicenseMessage(f),{zoom:N,zoomLevels:L=D.zoomLevels,defaultZoom:Z=D.defaultZoom,minZoom:B=D.minZoom,maxZoom:K=D.maxZoom,zoomRate:q=D.zoomRate}=e,j=d.useLocalization(),A=g.useRef(null),[U,V]=g.useState(Z),W=void 0!==N?N:U,_=L.slice().sort(F).find(e=>e.value===W)||{text:100*W+"%",value:W,id:W,locationString:""};_.locationString&&(_.text=j.toLanguageString(_.locationString,O[_.locationString]));const[G,H]=g.useState(!1),[$,J]=g.useState(!0),[Q,X]=g.useState(0),[Y,ee]=g.useState(!0),[oe,te]=g.useState(!1),[re,ae]=g.useState(0),[ne,le]=g.useState(0),[ce,se]=g.useState(!1),[ie,ue]=g.useState(""),de=g.useMemo(()=>({}),[]);de.currentZoom=W,de.props=e;const me=g.useCallback(e=>{A.current&&A.current.style.setProperty("--scale-factor",String(e))},[]),pe=g.useRef(null),ge=g.useRef(null);g.useImperativeHandle(pe,()=>({get element(){return ge.current},props:e,get pages(){return de.pages},get document(){return de.document}}),[]),g.useImperativeHandle(t,()=>pe.current);const fe=g.useCallback(()=>{if(de.props.onLoad){const e={target:pe.current};de.props.onLoad.call(void 0,e)}},[]),ve=g.useCallback((o,t,r)=>{if(e.onDownload){const a={target:pe.current,blob:o,fileName:t,saveOptions:r};return!1===e.onDownload.call(void 0,a)}return!1},[e.onDownload]),ke=g.useCallback(()=>{var e;de.scroller&&de.scroller.destroy(),de.scroller=new o.Scroller(null==(e=A.current)?void 0:e.parentNode,{filter:".k-page",events:{}}),de.scroller.disablePanEventsTracking()},[]),be=g.useCallback(e=>{const t=Array.from(e.querySelectorAll(".k-text-layer"));de.search=new o.SearchService({textContainers:t||[],highlightClass:"k-search-highlight",highlightMarkClass:"k-search-highlight-mark",charClass:"k-text-char"})},[]);de.done=g.useCallback(({pdfPages:e,pdfDoc:t,zoom:r})=>{de.document=t,de.pages=e,de.zoom=r,ke(),J(!1),H(!0),fe(),A.current&&o.scrollToPage(A.current,0)},[]),de.error=g.useCallback(o=>{if(de.document=null,de.pages=[],J(!1),H(!1),e.onError){const t="string"==typeof o?{message:o}:o,r={error:null!=t?t:j.toLanguageString(R,O[R]),target:pe.current};e.onError.call(void 0,r)}},[e.onError]),g.useEffect(()=>{A.current&&(e.url||e.data||e.arrayBuffer?(J(!0),o.removeChildren(A.current),o.loadPDF({url:e.url,data:e.data,arrayBuffer:e.arrayBuffer,dom:A.current,zoom:de.currentZoom,done:de.done,error:de.error}),me(de.currentZoom)):(de.document=null,de.pages=[],H(!1),J(!1),o.removeChildren(A.current)))},[e.url,e.data,e.arrayBuffer]);const he=g.useCallback((e,t,r)=>{A.current&&ge.current&&(J(!0),o.removeChildren(A.current),o.reloadDocument({pdfDoc:e,zoom:t,dom:A.current,done:e=>{de.pages=e,de.zoom=t,J(!1),A.current&&r>0&&o.scrollToPage(A.current,r)},error:de.error}))},[de]);g.useEffect(()=>{me(W),A.current&&de.document&&W!==de.zoom&&he(de.document,W,Q)},[W,de.document,de.zoom,he,me,Q]),g.useEffect(()=>()=>{de.scroller&&de.scroller.destroy(),de.search&&de.search.destroy(),de.document=null,de.pages=[]},[]);const ye=g.useCallback(()=>{te(!0),be(A.current)},[]),Ce=g.useCallback(e=>{const o=e.value,t=de.search.search({text:o,matchCase:ce});le(t.length?1:0),ae(t.length),ue(o)},[ce]),we=g.useCallback(()=>{const e=de.search.search({text:ie,matchCase:!ce});le(e.length?1:0),ae(e.length),se(!ce)},[ce,ie]),Ee=g.useCallback(()=>{o.goToNextSearchMatch(de),le(ne+1>re?1:ne+1)},[ne,re]),Se=g.useCallback(()=>{o.goToPreviousSearchMatch(de),le(ne-1<1?re:ne-1)},[ne,re]),xe=g.useCallback(()=>{de.search.destroy(),le(0),ae(0),se(!1),ue(""),te(!1)},[]),Pe=g.useCallback(e=>{"Enter"===e.key?(e.preventDefault(),o.goToNextSearchMatch(de),le(ne+1>re?1:ne+1)):"Escape"===e.key&&xe()},[ne,re]),Ie=g.useCallback(t=>{if(A.current){const r=t.skip;o.scrollToPage(A.current,r);const a={page:r+1,target:pe.current,syntheticEvent:t.syntheticEvent};e.onPageChange&&e.onPageChange.call(void 0,a)}X(t.skip)},[Q,e.onPageChange]),ze=g.useCallback(t=>{if(ge.current){const r=o.currentPage(ge.current);if(r!==Q){X(r);const o={page:r+1,target:pe.current,syntheticEvent:t};e.onPageChange&&e.onPageChange.call(void 0,o)}}},[Q,e.onPageChange]),Ne=g.useCallback(o=>{const t=Math.min(de.currentZoom+q,K);if(t!==de.currentZoom&&de.document&&(V(t),e.onZoom)){const r={zoom:t,target:pe.current,syntheticEvent:o};e.onZoom.call(void 0,r)}},[de.currentZoom,de.document,q,K,e.onZoom]),Le=g.useCallback(o=>{const t=Math.max(de.currentZoom-q,B);if(t!==de.currentZoom&&de.document&&(V(t),e.onZoom)){const r={zoom:t,target:pe.current,syntheticEvent:o};e.onZoom.call(void 0,r)}},[de.currentZoom,de.document,q,B,e.onZoom]),Ze=g.useCallback(t=>{const r=null===t.value?{text:"100%",value:1}:{...t.value};if(void 0===r.value){const e=parseFloat(r.text);"number"!=typeof e||Number.isNaN(e)?r.value=1:r.value=e/100}let a=o.calculateZoomLevel(r.value,r.type,de.currentZoom,A.current);if(a=Math.round(100*a)/100,de.currentZoom!==a&&de.document&&(V(a),e.onZoom)){const o={zoom:a,target:pe.current,syntheticEvent:t.syntheticEvent};e.onZoom.call(void 0,o)}},[e.onZoom]),Re=g.useCallback(()=>{de.scroller.disablePanEventsTracking(),ee(!0)},[]),Te=g.useCallback(()=>{de.scroller.enablePanEventsTracking(),ee(!1)},[]),Oe=g.useCallback(()=>{o.download({pdf:de.document,error:de.error},e.saveFileName,e.saveOptions,ve)},[e.url,e.data,e.arrayBuffer,e.saveFileName,e.saveOptions,ve]),Be=g.useCallback(()=>{J(!0);o.print(de.pages,()=>{J(!1)},e=>{J(!1),de.error(e)})},[]),De=g.useCallback(e=>{const t=e.newState;t[0]&&t[0].getRawFile&&t[0].getRawFile().arrayBuffer().then(e=>{if(A.current){J(!0),o.removeChildren(A.current);const t=void 0===de.props.zoom?Z:de.props.zoom;o.loadPDF({arrayBuffer:e,dom:A.current,zoom:t,done:de.done,error:de.error}),V(t)}})},[Z]),Me=g.useCallback(e=>{const o=e.target;if(o instanceof Element&&o.parentNode){const e=o.closest(".k-toolbar"),t=e&&e.querySelector(".k-upload input");t&&t.click()}},[]),Fe=$&&g.createElement("div",{className:"k-loader-container k-loader-container-md k-loader-top"},g.createElement("div",{className:"k-overlay"}),g.createElement("div",{className:"k-loader-container-inner "},g.createElement(i.Loader,{size:"large"}))),Ke=g.createElement(a.ButtonGroup,{className:"k-toolbar-button-group k-button-group-solid"},g.createElement(a.Button,{className:"k-group-start",fillMode:"flat",themeColor:"base",title:j.toLanguageString(k,O[k]),disabled:W<=B||!G,onClick:Le,icon:"zoom-out",svgIcon:m.zoomOutIcon}),g.createElement(a.Button,{className:"k-group-end",fillMode:"flat",themeColor:"base",title:j.toLanguageString(v,O[v]),disabled:W>=K||!G,onClick:Ne,icon:"zoom-in",svgIcon:m.zoomInIcon})),qe=g.createElement(s.ComboBox,{className:"k-toolbar-combobox",disabled:!G,data:L.map(e=>({...e,text:e.locationString?j.toLanguageString(e.locationString,O[e.locationString]):e.text})),dataItemKey:"id",textField:"text",value:G?_:null,allowCustom:!0,onChange:Ze,placeholder:j.toLanguageString(b,O[b])}),je={pager:g.createElement(l.Pager,{disabled:!G,previousNext:!0,type:"input",skip:Q,take:1,total:de.pages?de.pages.length:0,info:!1,onPageChange:Ie}),spacer:g.createElement(a.ToolbarSpacer,null),zoomInOut:Ke,zoom:qe,selection:g.createElement(a.ButtonGroup,{className:"k-toolbar-button-group k-button-group-solid"},g.createElement(a.Button,{className:"k-group-start",fillMode:"flat",themeColor:"base",title:j.toLanguageString(h,O[h]),icon:"pointer",svgIcon:m.pointerIcon,disabled:!G,togglable:!0,selected:Y&&G,onClick:Re}),g.createElement(a.Button,{className:"k-group-end",fillMode:"flat",themeColor:"base",title:j.toLanguageString(y,O[y]),icon:"hand",svgIcon:m.handIcon,disabled:!G,togglable:!0,selected:!Y&&G,onClick:Te})),search:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(C,O[C]),icon:"search",svgIcon:m.searchIcon,disabled:!G,onClick:ye}),open:g.createElement(g.Fragment,null,g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(w,O[w]),icon:"folder-open",svgIcon:m.folderOpenIcon,onClick:Me}),g.createElement("div",{style:{display:"none"}},g.createElement(c.Upload,{restrictions:{allowedExtensions:[".pdf"]},onAdd:De,autoUpload:!1,defaultFiles:[],multiple:!1,accept:".pdf,.PDF",withCredentials:!1}))),download:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(E,O[E]),icon:"download",svgIcon:m.downloadIcon,disabled:!G,onClick:Oe}),print:g.createElement(a.Button,{className:"k-toolbar-button",fillMode:"flat",themeColor:"base",title:j.toLanguageString(S,O[S]),icon:"print",svgIcon:m.printIcon,disabled:!G,onClick:Be})},Ae=(e.tools||D.tools).map((e,o)=>({...je[e],key:"toobar-tool-"+e+"-"+o})),Ue=g.createElement(a.Toolbar,{buttons:M},...Ae),Ve=g.createElement("div",{className:u.classNames("k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto",{"k-enable-text-select":Y,"k-enable-panning":!Y}),onScroll:ze},oe&&g.createElement("div",{className:"k-search-panel k-pos-sticky k-top-center"},g.createElement(n.TextBox,{value:ie,onChange:Ce,placeholder:j.toLanguageString(C,O[C]),autoFocus:!0,onKeyDown:Pe,suffix:()=>g.createElement(g.Fragment,null,g.createElement(n.InputSeparator,null),g.createElement(n.InputSuffix,null,g.createElement(a.Button,{icon:"convert-lowercase",svgIcon:m.convertLowercaseIcon,title:j.toLanguageString(P,O[P]),fillMode:"flat",togglable:!0,selected:ce,onClick:we})))}),g.createElement("span",{className:"k-search-matches"},g.createElement("span",null,ne)," ",j.toLanguageString(T,O[T]),g.createElement("span",null,re)),g.createElement(a.Button,{title:j.toLanguageString(I,O[I]),fillMode:"flat",icon:"arrow-up",svgIcon:m.arrowUpIcon,disabled:0===re,onClick:Se}),g.createElement(a.Button,{title:j.toLanguageString(z,O[z]),fillMode:"flat",icon:"arrow-down",svgIcon:m.arrowDownIcon,disabled:0===re,onClick:Ee}),g.createElement(a.Button,{title:j.toLanguageString(x,O[x]),fillMode:"flat",icon:"x",svgIcon:m.xIcon,onClick:xe})),g.createElement("div",{ref:A,className:"k-pdf-viewer-pages"}));return g.createElement("div",{className:"k-pdf-viewer",style:e.style,ref:ge},e.onRenderLoader?e.onRenderLoader.call(void 0,Fe||null):Fe,e.onRenderToolbar?e.onRenderToolbar.call(void 0,Ue):Ue,e.onRenderContent?e.onRenderContent.call(void 0,Ve):Ve,r&&g.createElement(u.WatermarkOverlay,{message:p}))});K.displayName="KendoReactPDFViewer",K.propTypes={url:r.string,data:r.string,arrayBuffer:r.any,typedArray:r.any,style:r.object,saveFileName:r.string,saveOptions:r.object,tools:r.arrayOf(r.oneOf(B).isRequired),zoomLevels:r.arrayOf(r.any),zoom:r.number,defaultZoom:r.number,minZoom:r.number,maxZoom:r.number,zoomRate:r.number,onError:r.func,onLoad:r.func,onDownload:r.func,onRenderToolbar:r.func,onRenderContent:r.func,onRenderLoader:r.func,onZoom:r.func};const q=o.scrollToPage;Object.defineProperty(e,"currentPage",{enumerable:!0,get:function(){return o.currentPage}}),e.PDFViewer=K,e.scrollToPage=q});
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1784221048,version:"15.1.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export const packageMetadata = Object.freeze({
|
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCode: 'KENDOUIREACT',
|
|
8
8
|
productCodes: ['KENDOUIREACT'],
|
|
9
|
-
publishDate:
|
|
10
|
-
version: '15.1.
|
|
9
|
+
publishDate: 1784221048,
|
|
10
|
+
version: '15.1.1-develop.2',
|
|
11
11
|
licensingDocsUrl:
|
|
12
12
|
'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
13
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-pdf-viewer",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.1-develop.2",
|
|
4
4
|
"description": "KendoReact PDFViewer package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-file-saver": "^1.1.1",
|
|
29
29
|
"@progress/kendo-licensing": "^1.7.2",
|
|
30
|
-
"@progress/kendo-react-buttons": "15.1.
|
|
31
|
-
"@progress/kendo-react-common": "15.1.
|
|
32
|
-
"@progress/kendo-react-data-tools": "15.1.
|
|
33
|
-
"@progress/kendo-react-dropdowns": "15.1.
|
|
34
|
-
"@progress/kendo-react-indicators": "15.1.
|
|
35
|
-
"@progress/kendo-react-inputs": "15.1.
|
|
36
|
-
"@progress/kendo-react-intl": "15.1.
|
|
37
|
-
"@progress/kendo-react-upload": "15.1.
|
|
30
|
+
"@progress/kendo-react-buttons": "15.1.1-develop.2",
|
|
31
|
+
"@progress/kendo-react-common": "15.1.1-develop.2",
|
|
32
|
+
"@progress/kendo-react-data-tools": "15.1.1-develop.2",
|
|
33
|
+
"@progress/kendo-react-dropdowns": "15.1.1-develop.2",
|
|
34
|
+
"@progress/kendo-react-indicators": "15.1.1-develop.2",
|
|
35
|
+
"@progress/kendo-react-inputs": "15.1.1-develop.2",
|
|
36
|
+
"@progress/kendo-react-intl": "15.1.1-develop.2",
|
|
37
|
+
"@progress/kendo-react-upload": "15.1.1-develop.2",
|
|
38
38
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
40
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"package": {
|
|
62
62
|
"productName": "KendoReact",
|
|
63
63
|
"productCode": "KENDOUIREACT",
|
|
64
|
-
"publishDate":
|
|
64
|
+
"publishDate": 1784221048,
|
|
65
65
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
66
66
|
}
|
|
67
67
|
},
|