@progress/kendo-react-pdf-viewer 7.2.4-develop.3 → 7.3.0-develop.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/index.mjs CHANGED
@@ -1,522 +1,17 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
5
8
  "use client";
6
- import { Scroller as ot, SearchService as nt, scrollToPage as F, removeChildren as P, loadPDF as de, reloadDocument as at, goToNextSearchMatch as ge, goToPreviousSearchMatch as rt, currentPage as lt, calculateZoomLevel as ct, download as st, print as it, DEFAULT_ZOOM_LEVEL as ut } from "@progress/kendo-pdfviewer-common";
7
- import { currentPage as eo } from "@progress/kendo-pdfviewer-common";
8
- import * as e from "react";
9
- import l from "prop-types";
10
- import { ButtonGroup as fe, Button as m, Toolbar as mt, ToolbarSpacer as dt } from "@progress/kendo-react-buttons";
11
- import { TextBox as gt, InputSuffix as ft } from "@progress/kendo-react-inputs";
12
- import { Pager as vt } from "@progress/kendo-react-data-tools";
13
- import { Upload as ht } from "@progress/kendo-react-upload";
14
- import { ComboBox as pt } from "@progress/kendo-react-dropdowns";
15
- import { Loader as kt } from "@progress/kendo-react-indicators";
16
- import { validatePackage as bt, shouldShowValidationUI as yt, classNames as Et, WatermarkOverlay as wt } from "@progress/kendo-react-common";
17
- import { useLocalization as Ct } from "@progress/kendo-react-intl";
18
- import { zoomOutIcon as St, zoomInIcon as xt, pointerIcon as Zt, handIcon as zt, searchIcon as Lt, folderOpenIcon as Pt, downloadIcon as Tt, printIcon as It, convertLowercaseIcon as Nt, arrowUpIcon as Mt, arrowDownIcon as Rt, xIcon as Dt } from "@progress/kendo-svg-icons";
19
- import "pdfjs-dist/build/pdf.worker.entry.js";
20
- const ve = {
21
- name: "@progress/kendo-react-pdf-viewer",
22
- productName: "KendoReact",
23
- productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
24
- publishDate: 1709632278,
25
- version: "",
26
- 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"
27
- }, B = "pdfviewer.zoomIn", A = "pdfviewer.zoomOut", K = "pdfviewer.zoomLevel", U = "pdfviewer.enableSelection", W = "pdfviewer.enablePanning", w = "pdfviewer.search", V = "pdfviewer.open", _ = "pdfviewer.download", $ = "pdfviewer.print", j = "pdfviewer.close", q = "pdfviewer.matchCase", H = "pdfviewer.prevMatch", G = "pdfviewer.nextMatch", pe = "pdfviewer.actualWidth", ke = "pdfviewer.fitToWidth", be = "pdfviewer.fitToPage", J = "pdfviewer.popupBlocked", i = {
28
- [B]: "Zoom in",
29
- [A]: "Zoom out",
30
- [K]: "Choose zoom level",
31
- [U]: "Enable selection",
32
- [W]: "Enable panning",
33
- [w]: "Search",
34
- [V]: "Open",
35
- [_]: "Download",
36
- [$]: "Print",
37
- [j]: "Close",
38
- [q]: "Match case",
39
- [H]: "Previous match",
40
- [G]: "Next match",
41
- [pe]: "Actual width",
42
- [ke]: "Fit to width",
43
- [be]: "Fit to page",
44
- [J]: "Popup is blocked."
45
- }, ye = [
46
- "pager",
47
- "spacer",
48
- "zoomInOut",
49
- "zoom",
50
- "selection",
51
- "spacer",
52
- "search",
53
- "open",
54
- "download",
55
- "print"
56
- ], k = {
57
- minZoom: 0.5,
58
- maxZoom: 4,
59
- tools: [...ye],
60
- zoomRate: 0.25,
61
- zoomLevels: [
62
- { id: 1, priority: 1, value: 1, text: "Actual width", type: "ActualWidth", locationString: pe },
63
- { id: 2, priority: 2, value: 1, text: "Fit to width", type: "FitToWidth", locationString: ke },
64
- { id: 3, priority: 3, value: 1, text: "Fit to page", type: "FitToPage", locationString: be },
65
- { id: 4, priority: 4, value: 0.5, text: "50%", type: "" },
66
- { id: 5, priority: 5, value: 0.75, text: "75%", type: "" },
67
- { id: 6, priority: 100, value: 1, text: "100%", type: "" },
68
- { id: 7, priority: 7, value: 1.25, text: "125%", type: "" },
69
- { id: 8, priority: 8, value: 1.5, text: "150%", type: "" },
70
- { id: 9, priority: 9, value: 2, text: "200%", type: "" },
71
- { id: 10, priority: 10, value: 3, text: "300%", type: "" },
72
- { id: 11, priority: 11, value: 4, text: "400%", type: "" }
73
- ],
74
- defaultZoom: ut
75
- }, Ot = [
76
- ".k-toolbar > button",
77
- ".k-toolbar .k-combobox > input",
78
- ".k-toolbar .k-button-group > button",
79
- ".k-toolbar .k-pager > a",
80
- ".k-toolbar .k-pager input"
81
- ];
82
- let he = 0;
83
- function Ft() {
84
- return he++, he;
85
- }
86
- const Bt = (n, C) => n.priority > C.priority ? -1 : n.priority < C.priority ? 1 : 0, Q = e.forwardRef((n, C) => {
87
- bt(ve);
88
- const Ee = yt(ve), {
89
- zoom: X,
90
- zoomLevels: Y = k.zoomLevels,
91
- defaultZoom: T = k.defaultZoom,
92
- minZoom: I = k.minZoom,
93
- maxZoom: N = k.maxZoom,
94
- zoomRate: S = k.zoomRate
95
- } = n, s = Ct(), c = e.useRef(null), [we, x] = e.useState(T), d = X !== void 0 ? X : we, E = Y.slice().sort(Bt).find((o) => o.value === d) || { text: d * 100 + "%", value: d, id: d, locationString: "" };
96
- E.locationString && (E.text = s.toLanguageString(E.locationString, i[E.locationString]));
97
- const [g, M] = e.useState(!1), [Ce, h] = e.useState(!0), [Z, ee] = e.useState(0), [z, te] = e.useState(!1), [Se, oe] = e.useState(!1), [p, R] = e.useState(0), [f, b] = e.useState(0), [y, ne] = e.useState(!1), [D, ae] = e.useState(""), t = e.useMemo(() => ({}), []);
98
- t.currentZoom = d, t.props = n;
99
- const re = e.useCallback((o) => {
100
- c.current && c.current.style.setProperty("--scale-factor", String(o));
101
- }, []), v = e.useRef(null), L = e.useRef(null);
102
- e.useImperativeHandle(v, () => ({
103
- get element() {
104
- return L.current;
105
- },
106
- props: n,
107
- get pages() {
108
- return t.pages;
109
- },
110
- get document() {
111
- return t.document;
112
- }
113
- }), []), e.useImperativeHandle(C, () => v.current);
114
- const xe = e.useCallback(() => {
115
- if (t.props.onLoad) {
116
- const o = { target: v.current };
117
- t.props.onLoad.call(void 0, o);
118
- }
119
- }, []), le = e.useCallback((o, a, r) => {
120
- if (n.onDownload) {
121
- const u = {
122
- target: v.current,
123
- blob: o,
124
- fileName: a,
125
- saveOptions: r
126
- };
127
- return n.onDownload.call(void 0, u) === !1;
128
- }
129
- return !1;
130
- }, [n.onDownload]), Ze = e.useCallback(() => {
131
- var o;
132
- t.scroller && t.scroller.destroy(), t.scroller = new ot((o = c.current) == null ? void 0 : o.parentNode, {
133
- filter: ".k-page",
134
- events: {}
135
- }), t.scroller.enablePanEventsTracking();
136
- }, []), ze = e.useCallback((o) => {
137
- const a = Array.from(o.querySelectorAll(".k-text-layer"));
138
- t.search = new nt({
139
- textContainers: a || [],
140
- highlightClass: "k-search-highlight",
141
- highlightMarkClass: "k-search-highlight-mark",
142
- charClass: "k-text-char"
143
- });
144
- }, []);
145
- t.done = e.useCallback(({ pdfPages: o, pdfDoc: a, zoom: r }) => {
146
- t.document = a, t.pages = o, t.zoom = r, Ze(), h(!1), M(!0), xe(), c.current && F(c.current, 0);
147
- }, []), t.error = e.useCallback((o) => {
148
- if (t.document = null, t.pages = [], h(!1), M(!1), n.onError) {
149
- const a = {
150
- error: typeof o == "string" ? { message: o } : o,
151
- target: v.current
152
- };
153
- n.onError.call(void 0, a);
154
- }
155
- }, [n.onError]), e.useEffect(() => {
156
- c.current && (n.url || n.data || n.arrayBuffer ? (h(!0), P(c.current), de({
157
- url: n.url,
158
- data: n.data,
159
- arrayBuffer: n.arrayBuffer,
160
- dom: c.current,
161
- zoom: t.currentZoom,
162
- done: t.done,
163
- error: t.error
164
- }), re(t.currentZoom)) : (t.document = null, t.pages = [], M(!1), h(!1), P(c.current)));
165
- }, [n.url, n.data, n.arrayBuffer]);
166
- const ce = e.useCallback((o, a) => {
167
- c.current && (h(!0), P(c.current), at({
168
- pdfDoc: o,
169
- zoom: a,
170
- dom: c.current,
171
- done: (r) => {
172
- t.pages = r, t.zoom = a, h(!1);
173
- },
174
- error: t.error
175
- }));
176
- }, []);
177
- e.useEffect(() => {
178
- re(d), c.current && t.document && d !== t.zoom && ce(t.document, d);
179
- }, [d, ce]), e.useEffect(() => () => {
180
- t.scroller && t.scroller.destroy(), t.search && t.search.destroy(), t.document = null, t.pages = [];
181
- }, []);
182
- const Le = e.useCallback(() => {
183
- oe(!0), ze(c.current);
184
- }, []), Pe = e.useCallback((o) => {
185
- const a = o.value, r = t.search.search({ text: a, matchCase: y });
186
- b(r.length ? 1 : 0), R(r.length), ae(a);
187
- }, [y]), Te = e.useCallback(() => {
188
- const o = t.search.search({ text: D, matchCase: !y });
189
- b(o.length ? 1 : 0), R(o.length), ne(!y);
190
- }, [y, D]), Ie = e.useCallback(() => {
191
- ge(t), b(f + 1 > p ? 1 : f + 1);
192
- }, [f, p]), Ne = e.useCallback(() => {
193
- rt(t), b(f - 1 < 1 ? p : f - 1);
194
- }, [f, p]), se = e.useCallback(() => {
195
- t.search.destroy(), b(0), R(0), ne(!1), ae(""), oe(!1);
196
- }, []), Me = e.useCallback((o) => {
197
- o.key === "Enter" ? (o.preventDefault(), ge(t), b(f + 1 > p ? 1 : f + 1)) : o.key === "Escape" && se();
198
- }, [f, p]), Re = e.useCallback((o) => {
199
- if (c.current) {
200
- const a = o.skip;
201
- F(c.current, a);
202
- const r = {
203
- page: a + 1,
204
- target: v.current,
205
- syntheticEvent: o.syntheticEvent
206
- };
207
- n.onPageChange && n.onPageChange.call(void 0, r);
208
- }
209
- ee(o.skip);
210
- }, [Z, n.onPageChange]), De = e.useCallback((o) => {
211
- if (L.current) {
212
- const a = lt(L.current);
213
- if (a !== Z) {
214
- ee(a);
215
- const r = {
216
- page: a + 1,
217
- target: v.current,
218
- syntheticEvent: o
219
- };
220
- n.onPageChange && n.onPageChange.call(void 0, r);
221
- }
222
- }
223
- }, [Z, n.onPageChange]), Oe = e.useCallback((o) => {
224
- const a = Math.min(t.currentZoom + S, N);
225
- if (a !== t.currentZoom && t.document && (x(a), n.onZoom)) {
226
- const r = {
227
- zoom: a,
228
- target: v.current,
229
- syntheticEvent: o
230
- };
231
- n.onZoom.call(void 0, r);
232
- }
233
- }, [S, N, n.onZoom]), Fe = e.useCallback((o) => {
234
- const a = Math.max(t.currentZoom - S, I);
235
- if (a !== t.currentZoom && t.document && (x(a), n.onZoom)) {
236
- const r = {
237
- zoom: a,
238
- target: v.current,
239
- syntheticEvent: o
240
- };
241
- n.onZoom.call(void 0, r);
242
- }
243
- }, [S, I, n.onZoom]), Be = e.useCallback((o) => {
244
- const a = o.value === null ? { text: "100%", value: 1, id: 100 } : { ...o.value };
245
- if (a.value === void 0) {
246
- const u = parseFloat(a.text);
247
- typeof u == "number" && !Number.isNaN(u) ? a.value = u / 100 : a.value = 1;
248
- }
249
- let r = a ? ct(a.value, a.type, t.currentZoom, c.current) : 1;
250
- if (r = Math.round(r * 100) / 100, t.currentZoom !== r && t.document && (x(r), n.onZoom)) {
251
- const u = {
252
- zoom: r,
253
- target: v.current,
254
- syntheticEvent: o.syntheticEvent
255
- };
256
- n.onZoom.call(void 0, u);
257
- }
258
- }, [n.onZoom]), Ae = e.useCallback(() => {
259
- t.scroller.disablePanEventsTracking(), te(!0);
260
- }, []), Ke = e.useCallback(() => {
261
- t.scroller.enablePanEventsTracking(), te(!1);
262
- }, []), Ue = e.useCallback(() => {
263
- st({
264
- pdf: t.document,
265
- error: t.error
266
- }, n.saveFileName, n.saveOptions, le);
267
- }, [n.url, n.data, n.arrayBuffer, n.saveFileName, n.saveOptions, le]), We = e.useCallback(() => {
268
- h(!0);
269
- const o = (r) => {
270
- t.error(typeof (r ? r.message || r : null) == "string" ? r.message || r : s.toLanguageString(J, i[J]));
271
- }, a = () => {
272
- h(!1);
273
- };
274
- it(t.pages, a, o);
275
- }, []), Ve = e.useCallback((o) => {
276
- const a = o.newState;
277
- a[0] && a[0].getRawFile && a[0].getRawFile().arrayBuffer().then((u) => {
278
- if (c.current) {
279
- h(!0), P(c.current);
280
- const O = t.props.zoom === void 0 ? T : t.props.zoom;
281
- de({
282
- arrayBuffer: u,
283
- dom: c.current,
284
- zoom: O,
285
- done: t.done,
286
- error: t.error
287
- }), x(O);
288
- }
289
- });
290
- }, [T]), _e = e.useCallback((o) => {
291
- const a = o.target;
292
- if (a instanceof Element && a.parentNode) {
293
- const r = a.closest(".k-toolbar"), u = r && r.querySelector(".k-upload input");
294
- u && u.click();
295
- }
296
- }, []), ie = Ce && /* @__PURE__ */ e.createElement("div", { className: "k-loader-container k-loader-container-md k-loader-top" }, /* @__PURE__ */ e.createElement("div", { className: "k-loader-container-overlay k-overlay-light" }), /* @__PURE__ */ e.createElement("div", { className: "k-loader-container-inner " }, /* @__PURE__ */ e.createElement(kt, { size: "large" }))), $e = /* @__PURE__ */ e.createElement(fe, null, /* @__PURE__ */ e.createElement(
297
- m,
298
- {
299
- className: "k-toolbar-button",
300
- title: s.toLanguageString(A, i[A]),
301
- disabled: d <= I || !g,
302
- onClick: Fe,
303
- icon: "zoom-out",
304
- svgIcon: St
305
- }
306
- ), /* @__PURE__ */ e.createElement(
307
- m,
308
- {
309
- className: "k-toolbar-button",
310
- title: s.toLanguageString(B, i[B]),
311
- disabled: d >= N || !g,
312
- onClick: Oe,
313
- icon: "zoom-in",
314
- svgIcon: xt
315
- }
316
- )), je = /* @__PURE__ */ e.createElement(
317
- pt,
318
- {
319
- disabled: !g,
320
- data: Y.map(
321
- (o) => ({
322
- ...o,
323
- text: o.locationString ? s.toLanguageString(o.locationString, i[o.locationString]) : o.text
324
- })
325
- ),
326
- dataItemKey: "id",
327
- textField: "text",
328
- value: g ? E : null,
329
- allowCustom: !0,
330
- onChange: Be,
331
- placeholder: s.toLanguageString(K, i[K])
332
- }
333
- ), qe = /* @__PURE__ */ e.createElement(
334
- vt,
335
- {
336
- previousNext: !0,
337
- type: "input",
338
- skip: Z,
339
- take: 1,
340
- total: t.pages ? t.pages.length : 0,
341
- info: !1,
342
- onPageChange: Re
343
- }
344
- ), He = /* @__PURE__ */ e.createElement(dt, null), Ge = /* @__PURE__ */ e.createElement(fe, null, /* @__PURE__ */ e.createElement(
345
- m,
346
- {
347
- className: "k-toolbar-button",
348
- title: s.toLanguageString(U, i[U]),
349
- icon: "pointer",
350
- svgIcon: Zt,
351
- disabled: !g,
352
- togglable: !0,
353
- selected: z && g,
354
- onClick: Ae
355
- }
356
- ), /* @__PURE__ */ e.createElement(
357
- m,
358
- {
359
- className: "k-toolbar-button",
360
- title: s.toLanguageString(W, i[W]),
361
- icon: "hand",
362
- svgIcon: zt,
363
- disabled: !g,
364
- togglable: !0,
365
- selected: !z && g,
366
- onClick: Ke
367
- }
368
- )), Je = /* @__PURE__ */ e.createElement(
369
- m,
370
- {
371
- className: "k-toolbar-button",
372
- title: s.toLanguageString(w, i[w]),
373
- icon: "search",
374
- svgIcon: Lt,
375
- disabled: !g,
376
- onClick: Le
377
- }
378
- ), Qe = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
379
- m,
380
- {
381
- className: "k-toolbar-button",
382
- title: s.toLanguageString(V, i[V]),
383
- icon: "folder-open",
384
- svgIcon: Pt,
385
- onClick: _e
386
- }
387
- ), /* @__PURE__ */ e.createElement("div", { style: { display: "none" } }, /* @__PURE__ */ e.createElement(
388
- ht,
389
- {
390
- restrictions: { allowedExtensions: [".pdf"] },
391
- onAdd: Ve,
392
- autoUpload: !1,
393
- defaultFiles: [],
394
- multiple: !1,
395
- accept: ".pdf,.PDF",
396
- withCredentials: !1
397
- }
398
- ))), Xe = /* @__PURE__ */ e.createElement(
399
- m,
400
- {
401
- className: "k-toolbar-button",
402
- title: s.toLanguageString(_, i[_]),
403
- icon: "download",
404
- svgIcon: Tt,
405
- disabled: !g,
406
- onClick: Ue
407
- }
408
- ), Ye = /* @__PURE__ */ e.createElement(
409
- m,
410
- {
411
- className: "k-toolbar-button",
412
- title: s.toLanguageString($, i[$]),
413
- icon: "print",
414
- svgIcon: It,
415
- disabled: !g,
416
- onClick: We
417
- }
418
- ), et = {
419
- pager: qe,
420
- spacer: He,
421
- zoomInOut: $e,
422
- zoom: je,
423
- selection: Ge,
424
- search: Je,
425
- open: Qe,
426
- download: Xe,
427
- print: Ye
428
- }, tt = (n.tools || k.tools).map((o) => ({ ...et[o], key: "toobar-tool-" + o + Ft() })), ue = /* @__PURE__ */ e.createElement(mt, { buttons: Ot }, ...tt), me = /* @__PURE__ */ e.createElement(
429
- "div",
430
- {
431
- className: Et("k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto", {
432
- "k-enable-text-select": z,
433
- "k-enable-panning": !z
434
- }),
435
- onScroll: De
436
- },
437
- Se && /* @__PURE__ */ e.createElement("div", { className: "k-search-panel k-pos-sticky k-top-center" }, /* @__PURE__ */ e.createElement(
438
- gt,
439
- {
440
- value: D,
441
- onChange: Pe,
442
- placeholder: s.toLanguageString(w, i[w]),
443
- autoFocus: !0,
444
- onKeyDown: Me,
445
- suffix: () => /* @__PURE__ */ e.createElement(ft, null, /* @__PURE__ */ e.createElement(
446
- m,
447
- {
448
- icon: "convert-lowercase",
449
- svgIcon: Nt,
450
- title: s.toLanguageString(q, i[q]),
451
- fillMode: "flat",
452
- togglable: !0,
453
- selected: y,
454
- onClick: Te
455
- }
456
- ))
457
- }
458
- ), /* @__PURE__ */ e.createElement("span", { className: "k-search-matches" }, /* @__PURE__ */ e.createElement("span", null, f), " of ", /* @__PURE__ */ e.createElement("span", null, p)), /* @__PURE__ */ e.createElement(
459
- m,
460
- {
461
- title: s.toLanguageString(H, i[H]),
462
- fillMode: "flat",
463
- icon: "arrow-up",
464
- svgIcon: Mt,
465
- disabled: p === 0,
466
- onClick: Ne
467
- }
468
- ), /* @__PURE__ */ e.createElement(
469
- m,
470
- {
471
- title: s.toLanguageString(G, i[G]),
472
- fillMode: "flat",
473
- icon: "arrow-down",
474
- svgIcon: Rt,
475
- disabled: p === 0,
476
- onClick: Ie
477
- }
478
- ), /* @__PURE__ */ e.createElement(
479
- m,
480
- {
481
- title: s.toLanguageString(j, i[j]),
482
- fillMode: "flat",
483
- icon: "x",
484
- svgIcon: Dt,
485
- onClick: se
486
- }
487
- )),
488
- /* @__PURE__ */ e.createElement("div", { ref: c, className: "k-pdf-viewer-pages" })
489
- );
490
- return /* @__PURE__ */ e.createElement("div", { className: "k-pdf-viewer", style: n.style, ref: L }, n.onRenderLoader ? n.onRenderLoader.call(void 0, ie || null) : ie, n.onRenderToolbar ? n.onRenderToolbar.call(void 0, ue) : ue, n.onRenderContent ? n.onRenderContent.call(void 0, me) : me, Ee && /* @__PURE__ */ e.createElement(wt, null));
491
- });
492
- Q.displayName = "KendoReactPDFViewer";
493
- Q.propTypes = {
494
- url: l.string,
495
- data: l.string,
496
- arrayBuffer: l.any,
497
- typedArray: l.any,
498
- style: l.object,
499
- saveFileName: l.string,
500
- saveOptions: l.object,
501
- tools: l.arrayOf(l.oneOf(ye).isRequired),
502
- zoomLevels: l.arrayOf(l.any),
503
- zoom: l.number,
504
- defaultZoom: l.number,
505
- minZoom: l.number,
506
- maxZoom: l.number,
507
- zoomRate: l.number,
508
- onError: l.func,
509
- onLoad: l.func,
510
- onDownload: l.func,
511
- onRenderToolbar: l.func,
512
- onRenderContent: l.func,
513
- onRenderLoader: l.func,
514
- onZoom: l.func
515
- };
516
- Q.defaultProps = k;
517
- const Qt = F;
9
+ import { scrollToPage as o } from "@progress/kendo-pdfviewer-common";
10
+ import { currentPage as c } from "@progress/kendo-pdfviewer-common";
11
+ import { PDFViewer as a } from "./PDFViewer.mjs";
12
+ const e = o;
518
13
  export {
519
- Q as PDFViewer,
520
- eo as currentPage,
521
- Qt as scrollToPage
14
+ a as PDFViewer,
15
+ c as currentPage,
16
+ e as scrollToPage
522
17
  };
package/messages.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="pdfviewer.zoomIn",o="pdfviewer.zoomOut",t="pdfviewer.zoomLevel",n="pdfviewer.enableSelection",c="pdfviewer.enablePanning",i="pdfviewer.search",a="pdfviewer.open",s="pdfviewer.download",p="pdfviewer.print",d="pdfviewer.close",l="pdfviewer.matchCase",r="pdfviewer.prevMatch",v="pdfviewer.nextMatch",h="pdfviewer.actualWidth",f="pdfviewer.fitToWidth",w="pdfviewer.fitToPage",m="pdfviewer.popupBlocked",u={[e]:"Zoom in",[o]:"Zoom out",[t]:"Choose zoom level",[n]:"Enable selection",[c]:"Enable panning",[i]:"Search",[a]:"Open",[s]:"Download",[p]:"Print",[d]:"Close",[l]:"Match case",[r]:"Previous match",[v]:"Next match",[h]:"Actual width",[f]:"Fit to width",[w]:"Fit to page",[m]:"Popup is blocked."};exports.actualWidth=h;exports.close=d;exports.download=s;exports.enablePanning=c;exports.enableSelection=n;exports.fitToPage=w;exports.fitToWidth=f;exports.matchCase=l;exports.messages=u;exports.nextMatch=v;exports.open=a;exports.popupBlocked=m;exports.prevMatch=r;exports.print=p;exports.search=i;exports.zoomIn=e;exports.zoomLevel=t;exports.zoomOut=o;
package/messages.mjs ADDED
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = "pdfviewer.zoomIn", o = "pdfviewer.zoomOut", t = "pdfviewer.zoomLevel", n = "pdfviewer.enableSelection", c = "pdfviewer.enablePanning", i = "pdfviewer.search", a = "pdfviewer.open", p = "pdfviewer.download", s = "pdfviewer.print", d = "pdfviewer.close", r = "pdfviewer.matchCase", l = "pdfviewer.prevMatch", v = "pdfviewer.nextMatch", w = "pdfviewer.actualWidth", f = "pdfviewer.fitToWidth", h = "pdfviewer.fitToPage", m = "pdfviewer.popupBlocked", u = {
10
+ [e]: "Zoom in",
11
+ [o]: "Zoom out",
12
+ [t]: "Choose zoom level",
13
+ [n]: "Enable selection",
14
+ [c]: "Enable panning",
15
+ [i]: "Search",
16
+ [a]: "Open",
17
+ [p]: "Download",
18
+ [s]: "Print",
19
+ [d]: "Close",
20
+ [r]: "Match case",
21
+ [l]: "Previous match",
22
+ [v]: "Next match",
23
+ [w]: "Actual width",
24
+ [f]: "Fit to width",
25
+ [h]: "Fit to page",
26
+ [m]: "Popup is blocked."
27
+ };
28
+ export {
29
+ w as actualWidth,
30
+ d as close,
31
+ p as download,
32
+ c as enablePanning,
33
+ n as enableSelection,
34
+ h as fitToPage,
35
+ f as fitToWidth,
36
+ r as matchCase,
37
+ u as messages,
38
+ v as nextMatch,
39
+ a as open,
40
+ m as popupBlocked,
41
+ l as prevMatch,
42
+ s as print,
43
+ i as search,
44
+ e as zoomIn,
45
+ t as zoomLevel,
46
+ o as zoomOut
47
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673300081,version:"",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;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const e = {
10
+ name: "@progress/kendo-react-pdf-viewer",
11
+ productName: "KendoReact",
12
+ productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
+ publishDate: 1709715760,
14
+ version: "",
15
+ 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"
16
+ };
17
+ export {
18
+ e as packageMetadata
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-pdf-viewer",
3
- "version": "7.2.4-develop.3",
3
+ "version": "7.3.0-develop.1",
4
4
  "description": "KendoReact PDFViewer package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -25,14 +25,14 @@
25
25
  "@progress/kendo-file-saver": "^1.1.1",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
27
  "@progress/kendo-pdfviewer-common": "0.2.8",
28
- "@progress/kendo-react-buttons": "7.2.4-develop.3",
29
- "@progress/kendo-react-common": "7.2.4-develop.3",
30
- "@progress/kendo-react-data-tools": "7.2.4-develop.3",
31
- "@progress/kendo-react-dropdowns": "7.2.4-develop.3",
32
- "@progress/kendo-react-indicators": "7.2.4-develop.3",
33
- "@progress/kendo-react-inputs": "7.2.4-develop.3",
34
- "@progress/kendo-react-intl": "7.2.4-develop.3",
35
- "@progress/kendo-react-upload": "7.2.4-develop.3",
28
+ "@progress/kendo-react-buttons": "7.3.0-develop.1",
29
+ "@progress/kendo-react-common": "7.3.0-develop.1",
30
+ "@progress/kendo-react-data-tools": "7.3.0-develop.1",
31
+ "@progress/kendo-react-dropdowns": "7.3.0-develop.1",
32
+ "@progress/kendo-react-indicators": "7.3.0-develop.1",
33
+ "@progress/kendo-react-inputs": "7.3.0-develop.1",
34
+ "@progress/kendo-react-intl": "7.3.0-develop.1",
35
+ "@progress/kendo-react-upload": "7.3.0-develop.1",
36
36
  "@progress/kendo-svg-icons": "^2.1.0",
37
37
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
38
38
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"