@mescius/wijmo.viewer 5.20232.939

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.d.ts ADDED
@@ -0,0 +1,2663 @@
1
+ /*!
2
+ *
3
+ * Wijmo Library 5.20232.939
4
+ * https://developer.mescius.com/wijmo
5
+ *
6
+ * Copyright(c) MESCIUS inc. All rights reserved.
7
+ *
8
+ * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
9
+ * us.sales@mescius.com
10
+ * https://developer.mescius.com/wijmo/licensing
11
+ *
12
+ */
13
+ /**
14
+ * {@module wijmo.viewer}
15
+ * Defines a series of classes, interfaces and functions related to the viewer controls.
16
+ */
17
+ /**
18
+ *
19
+ */
20
+ export declare var ___keepComment: any;
21
+ import { EventArgs, Event, Control, IEventHandler, Point, Rect } from '@grapecity/wijmo';
22
+ import { Popup, Menu } from '@grapecity/wijmo.input';
23
+ import * as selfModule from '@grapecity/wijmo.viewer';
24
+ export declare class _MultiSelectEx {
25
+ private _itemsSource;
26
+ private _selectAllItem;
27
+ private _multiSelect;
28
+ private _selectedAll;
29
+ private _innerCheckedItemsChanged;
30
+ private _lostFocus;
31
+ readonly checkedItemsChanged: Event<_MultiSelectEx, EventArgs>;
32
+ constructor(element: HTMLElement);
33
+ _updateHeader(): string;
34
+ onIsDroppedDownChanged(): void;
35
+ onCheckedItemsChanged(sender: any, e: any): void;
36
+ isEditable: boolean;
37
+ isDisabled: boolean;
38
+ displayMemberPath: string;
39
+ selectedValuePath: string;
40
+ itemsSource: any[];
41
+ checkedItems: any[];
42
+ readonly lostFocus: Event<any, EventArgs>;
43
+ _updateSelectedAll(): void;
44
+ }
45
+ export declare var parametersIcon: string;
46
+ export declare var icons: {
47
+ paginated: string;
48
+ print: string;
49
+ exports: string;
50
+ portrait: string;
51
+ landscape: string;
52
+ pageSetup: string;
53
+ previousPage: string;
54
+ nextPage: string;
55
+ firstPage: string;
56
+ lastPage: string;
57
+ backwardHistory: string;
58
+ forwardHistory: string;
59
+ selectTool: string;
60
+ moveTool: string;
61
+ continuousView: string;
62
+ singleView: string;
63
+ fitWholePage: string;
64
+ fitPageWidth: string;
65
+ zoomOut: string;
66
+ zoomIn: string;
67
+ fullScreen: string;
68
+ exitFullScreen: string;
69
+ thumbnails: string;
70
+ outlines: string;
71
+ search: string;
72
+ searchNext: string;
73
+ searchPrevious: string;
74
+ hamburgerMenu: string;
75
+ viewMenu: string;
76
+ searchOptions: string;
77
+ searchLeft: string;
78
+ searchRight: string;
79
+ showZoomBar: string;
80
+ rubberbandTool: string;
81
+ magnifierTool: string;
82
+ rotateDocument: string;
83
+ rotatePage: string;
84
+ };
85
+ export interface _ViewerMenuItem {
86
+ title: string;
87
+ icon?: string;
88
+ commandTag?: number;
89
+ }
90
+ export interface _IToolbarSvgButtonClickedEventArgs {
91
+ commandTag: string;
92
+ }
93
+ /**
94
+ * Provides arguments for {@link wijmo.viewer.ViewerBase.pageLoaded} event.
95
+ */
96
+ export declare class PageLoadedEventArgs extends EventArgs {
97
+ private _pageIndex;
98
+ private _pageElement;
99
+ /**
100
+ * Initializes a new instance of the {@link PageLoadedEventArgs} class.
101
+ *
102
+ * @param pageIndex Number containing the page index of loaded page.
103
+ * @param pageElement HTMLDivElement containing wrapper for rendered SVG of loaded page.
104
+ */
105
+ constructor(pageIndex: number, pageElement: HTMLDivElement);
106
+ /**
107
+ * Gets or sets the page index of loaded page.
108
+ */
109
+ pageIndex: number;
110
+ /**
111
+ * Gets or sets the HTMLDivElement containing wrapper for rendered SVG of loaded page.
112
+ */
113
+ pageElement: HTMLDivElement;
114
+ }
115
+ export declare class _ActionQueue {
116
+ private _actions;
117
+ private _isStarted;
118
+ private _any;
119
+ queue(action: Function): void;
120
+ _continue(): void;
121
+ start(): void;
122
+ readonly isStarted: boolean;
123
+ }
124
+ export interface _ITouchEventsMap {
125
+ startName: string;
126
+ moveName: string;
127
+ endName: string;
128
+ }
129
+ export declare function _getTouchEventMap(): _ITouchEventsMap;
130
+ export declare enum _TouchDirection {
131
+ None = 0,
132
+ Left = 1,
133
+ Up = 2,
134
+ Right = 3,
135
+ Down = 4
136
+ }
137
+ export declare class _TouchInfo {
138
+ static getCenter(start: Point, end: Point): Point;
139
+ static getCenterClient(startInfo: _TouchInfo, endInfo: _TouchInfo): Point;
140
+ static getCenterScreen(startInfo: _TouchInfo, endInfo: _TouchInfo): Point;
141
+ static getDistance(startInfo: _TouchInfo, endInfo: _TouchInfo): number;
142
+ static _getDirection(start: _TouchInfo, end: _TouchInfo): _TouchDirection;
143
+ private _id;
144
+ private _target;
145
+ private _screenX;
146
+ private _screenY;
147
+ private _clientX;
148
+ private _clientY;
149
+ private _systemTouchInfo;
150
+ constructor(source: Touch | PointerEvent);
151
+ readonly id: number;
152
+ readonly systemTouchInfo: Touch | PointerEvent;
153
+ readonly screenX: number;
154
+ readonly screenY: number;
155
+ readonly clientX: number;
156
+ readonly clientY: number;
157
+ }
158
+ export declare class _SpeedReducer {
159
+ private _timeInterval;
160
+ private _speedInterval;
161
+ private _timer;
162
+ private _disposeEvents;
163
+ timeInterval: number;
164
+ speedInterval: number;
165
+ stop(): void;
166
+ start(speedX: number, speedY: number, intervalAction: (x: number, y: number) => void): void;
167
+ }
168
+ export declare class _Scroller extends Control {
169
+ private static _scrollbarWidth;
170
+ static getScrollbarWidth(refresh?: boolean): number;
171
+ }
172
+ export interface _IEnumItem {
173
+ text: string;
174
+ value: number;
175
+ }
176
+ export declare function _enumToArray(enumType: any): _IEnumItem[];
177
+ export declare class _RubberbandOnAppliedEventArgs extends EventArgs {
178
+ private _rect;
179
+ constructor(rect: Rect);
180
+ readonly rect: Rect;
181
+ }
182
+ export declare class _LinkClickedEventArgs extends EventArgs {
183
+ private _a;
184
+ constructor(a: SVGElement);
185
+ readonly element: SVGElement;
186
+ }
187
+ export declare enum _ParameterType {
188
+ Boolean = 0,
189
+ DateTime = 1,
190
+ Time = 2,
191
+ Date = 3,
192
+ Integer = 4,
193
+ Float = 5,
194
+ String = 6
195
+ }
196
+ /**
197
+ * Specifies the type of a catalog item.
198
+ */
199
+ export declare enum CatalogItemType {
200
+ /**
201
+ * A folder.
202
+ */
203
+ Folder = 0,
204
+ /**
205
+ * A FlexReport definition file.
206
+ */
207
+ File = 1,
208
+ /**
209
+ * An SSRS report or a FlexReport defined in the FlexReport definition file.
210
+ */
211
+ Report = 2
212
+ }
213
+ /**
214
+ * Provides arguments for {@link wijmo.viewer.ViewerBase.queryLoadingData} event.
215
+ */
216
+ export declare class QueryLoadingDataEventArgs extends EventArgs {
217
+ private _data;
218
+ /**
219
+ * Initializes a new instance of the {@link QueryLoadingDataEventArgs} class.
220
+ *
221
+ * @param data The request data sent to the service on loading the document.
222
+ */
223
+ constructor(data?: any);
224
+ /**
225
+ * Gets the request data sent to the service on loading the document.
226
+ */
227
+ readonly data: any;
228
+ }
229
+ export declare class _ExecutionStatus {
230
+ static loaded: string;
231
+ static rendering: string;
232
+ static completed: string;
233
+ static stopped: string;
234
+ static cleared: string;
235
+ static notFound: string;
236
+ }
237
+ export declare enum _ActionKind {
238
+ Bookmark = 0,
239
+ Custom = 1
240
+ }
241
+ /**
242
+ * Specifies the mouse modes, which defines the mouse behavior of viewer.
243
+ */
244
+ export declare enum MouseMode {
245
+ /** Select text. */
246
+ SelectTool = 0,
247
+ /** Move page. */
248
+ MoveTool = 1,
249
+ /** Rubberband to zoom. */
250
+ RubberbandTool = 2,
251
+ /** Magnifier tool. */
252
+ MagnifierTool = 3
253
+ }
254
+ /**
255
+ * Specifies the view modes, which define how to show document pages in the view panel.
256
+ */
257
+ export declare enum ViewMode {
258
+ /** Only show one document page. */
259
+ Single = 0,
260
+ /** Show document pages continuously. */
261
+ Continuous = 1
262
+ }
263
+ /**
264
+ * Describes the supported zoom modes of FlexViewer.
265
+ */
266
+ export declare enum ZoomMode {
267
+ /** Custom zoom mode. The actual zoom factor is determined by the value of the {@link ViewerBase.zoomFactor} property. */
268
+ Custom = 0,
269
+ /** Pages are zoomed in or out as necessary to fit the page width in the view panel. */
270
+ PageWidth = 1,
271
+ /** Pages are zoomed in or out as necessary to fit the whole page in the view panel. */
272
+ WholePage = 2
273
+ }
274
+ export declare enum _ViewerActionType {
275
+ TogglePaginated = 0,
276
+ Print = 1,
277
+ Portrait = 2,
278
+ Landscape = 3,
279
+ ShowPageSetupDialog = 4,
280
+ FirstPage = 5,
281
+ PrePage = 6,
282
+ NextPage = 7,
283
+ LastPage = 8,
284
+ PageNumber = 9,
285
+ PageCountLabel = 10,
286
+ Backward = 11,
287
+ Forward = 12,
288
+ SelectTool = 13,
289
+ MoveTool = 14,
290
+ Continuous = 15,
291
+ Single = 16,
292
+ ZoomOut = 17,
293
+ ZoomIn = 18,
294
+ ZoomValue = 19,
295
+ FitWholePage = 20,
296
+ FitPageWidth = 21,
297
+ ToggleFullScreen = 22,
298
+ ShowHamburgerMenu = 23,
299
+ ShowViewMenu = 24,
300
+ ShowSearchBar = 25,
301
+ ShowThumbnails = 26,
302
+ ShowOutlines = 27,
303
+ ShowExportsPanel = 28,
304
+ ShowPageSetupPanel = 29,
305
+ ShowZoomBar = 30,
306
+ ShowSearchOptions = 31,
307
+ SearchPrev = 32,
308
+ SearchNext = 33,
309
+ SearchMatchCase = 34,
310
+ SearchMatchWholeWord = 35,
311
+ RubberbandTool = 36,
312
+ MagnifierTool = 37,
313
+ RotateDocument = 38,
314
+ RotatePage = 39
315
+ }
316
+ export declare enum _RotateAngle {
317
+ NoRotate = 0,
318
+ Rotation90 = 1,
319
+ Rotation180 = 2,
320
+ Rotation270 = 3
321
+ }
322
+ export declare enum _PaperKind {
323
+ Custom = 0,
324
+ Letter = 1,
325
+ LetterSmall = 2,
326
+ Tabloid = 3,
327
+ Ledger = 4,
328
+ Legal = 5,
329
+ Statement = 6,
330
+ Executive = 7,
331
+ A3 = 8,
332
+ A4 = 9,
333
+ A4Small = 10,
334
+ A5 = 11,
335
+ B4 = 12,
336
+ B5 = 13,
337
+ Folio = 14,
338
+ Quarto = 15,
339
+ Standard10x14 = 16,
340
+ Standard11x17 = 17,
341
+ Note = 18,
342
+ Number9Envelope = 19,
343
+ Number10Envelope = 20,
344
+ Number11Envelope = 21,
345
+ Number12Envelope = 22,
346
+ Number14Envelope = 23,
347
+ CSheet = 24,
348
+ DSheet = 25,
349
+ ESheet = 26,
350
+ DLEnvelope = 27,
351
+ C5Envelope = 28,
352
+ C3Envelope = 29,
353
+ C4Envelope = 30,
354
+ C6Envelope = 31,
355
+ C65Envelope = 32,
356
+ B4Envelope = 33,
357
+ B5Envelope = 34,
358
+ B6Envelope = 35,
359
+ ItalyEnvelope = 36,
360
+ MonarchEnvelope = 37,
361
+ PersonalEnvelope = 38,
362
+ USStandardFanfold = 39,
363
+ GermanStandardFanfold = 40,
364
+ GermanLegalFanfold = 41,
365
+ IsoB4 = 42,
366
+ JapanesePostcard = 43,
367
+ Standard9x11 = 44,
368
+ Standard10x11 = 45,
369
+ Standard15x11 = 46,
370
+ InviteEnvelope = 47,
371
+ LetterExtra = 50,
372
+ LegalExtra = 51,
373
+ TabloidExtra = 52,
374
+ A4Extra = 53,
375
+ LetterTransverse = 54,
376
+ A4Transverse = 55,
377
+ LetterExtraTransverse = 56,
378
+ APlus = 57,
379
+ BPlus = 58,
380
+ LetterPlus = 59,
381
+ A4Plus = 60,
382
+ A5Transverse = 61,
383
+ B5Transverse = 62,
384
+ A3Extra = 63,
385
+ A5Extra = 64,
386
+ B5Extra = 65,
387
+ A2 = 66,
388
+ A3Transverse = 67,
389
+ A3ExtraTransverse = 68,
390
+ JapaneseDoublePostcard = 69,
391
+ A6 = 70,
392
+ JapaneseEnvelopeKakuNumber2 = 71,
393
+ JapaneseEnvelopeKakuNumber3 = 72,
394
+ JapaneseEnvelopeChouNumber3 = 73,
395
+ JapaneseEnvelopeChouNumber4 = 74,
396
+ LetterRotated = 75,
397
+ A3Rotated = 76,
398
+ A4Rotated = 77,
399
+ A5Rotated = 78,
400
+ B4JisRotated = 79,
401
+ B5JisRotated = 80,
402
+ JapanesePostcardRotated = 81,
403
+ JapaneseDoublePostcardRotated = 82,
404
+ A6Rotated = 83,
405
+ JapaneseEnvelopeKakuNumber2Rotated = 84,
406
+ JapaneseEnvelopeKakuNumber3Rotated = 85,
407
+ JapaneseEnvelopeChouNumber3Rotated = 86,
408
+ JapaneseEnvelopeChouNumber4Rotated = 87,
409
+ B6Jis = 88,
410
+ B6JisRotated = 89,
411
+ Standard12x11 = 90,
412
+ JapaneseEnvelopeYouNumber4 = 91,
413
+ JapaneseEnvelopeYouNumber4Rotated = 92,
414
+ Prc16K = 93,
415
+ Prc32K = 94,
416
+ Prc32KBig = 95,
417
+ PrcEnvelopeNumber1 = 96,
418
+ PrcEnvelopeNumber2 = 97,
419
+ PrcEnvelopeNumber3 = 98,
420
+ PrcEnvelopeNumber4 = 99,
421
+ PrcEnvelopeNumber5 = 100,
422
+ PrcEnvelopeNumber6 = 101,
423
+ PrcEnvelopeNumber7 = 102,
424
+ PrcEnvelopeNumber8 = 103,
425
+ PrcEnvelopeNumber9 = 104,
426
+ PrcEnvelopeNumber10 = 105,
427
+ Prc16KRotated = 106,
428
+ Prc32KRotated = 107,
429
+ Prc32KBigRotated = 108,
430
+ PrcEnvelopeNumber1Rotated = 109,
431
+ PrcEnvelopeNumber2Rotated = 110,
432
+ PrcEnvelopeNumber3Rotated = 111,
433
+ PrcEnvelopeNumber4Rotated = 112,
434
+ PrcEnvelopeNumber5Rotated = 113,
435
+ PrcEnvelopeNumber6Rotated = 114,
436
+ PrcEnvelopeNumber7Rotated = 115,
437
+ PrcEnvelopeNumber8Rotated = 116,
438
+ PrcEnvelopeNumber9Rotated = 117,
439
+ PrcEnvelopeNumber10Rotated = 118
440
+ }
441
+ /**
442
+ * Provides arguments for {@link wijmo.viewer.ViewerBase.beforeSendRequest} event.
443
+ */
444
+ export declare class RequestEventArgs extends EventArgs {
445
+ private _url;
446
+ private _settings;
447
+ /**
448
+ * Initializes a new instance of the {@link RequestEventArgs} class.
449
+ *
450
+ * @param url String containing the URL to which the request is sent.
451
+ * @param settings An object used to configure the request. It has the
452
+ * same structure and semantics as the <b>settings</b> parameter of the
453
+ * {@link wijmo.httpRequest} method.
454
+ */
455
+ constructor(url: string, settings: any);
456
+ /**
457
+ * Gets or sets the URL to which the request is sent.
458
+ */
459
+ url: string;
460
+ /**
461
+ * Gets or sets the object used to configure the request. It has the
462
+ * same structure and semantics as the <b>settings</b> parameter of the
463
+ * {@link wijmo.httpRequest} method.
464
+ */
465
+ settings: any;
466
+ }
467
+ export declare enum _UnitType {
468
+ Document = 0,
469
+ Inch = 1,
470
+ Mm = 2,
471
+ Pica = 3,
472
+ Point = 4,
473
+ Twip = 5,
474
+ InHs = 6,
475
+ Display = 7,
476
+ Cm = 8,
477
+ Dip = 9
478
+ }
479
+ export declare class _Unit {
480
+ static _MmPerInch: number;
481
+ static _DocumentUnitsPerInch: number;
482
+ static _PointsPerInch: number;
483
+ static _TwipsPerInch: number;
484
+ static _PicaPerInch: number;
485
+ static _CmPerInch: number;
486
+ static _DisplayPerInch: number;
487
+ static _DipPerInch: number;
488
+ private static _unitTypes;
489
+ private static _unitTypeDic;
490
+ private _value;
491
+ private _units;
492
+ private _valueInPixel;
493
+ constructor(value: any, units?: _UnitType);
494
+ private static _initUnitTypeDic;
495
+ readonly value: number;
496
+ readonly units: _UnitType;
497
+ readonly valueInPixel: number;
498
+ toString(): string;
499
+ static toString(unit: _Unit): string;
500
+ static convertValue(value: number, from: _UnitType, to: _UnitType): number;
501
+ }
502
+ export interface _IRect {
503
+ x: number;
504
+ y: number;
505
+ width: number;
506
+ height: number;
507
+ }
508
+ export interface _ISize {
509
+ width: _Unit;
510
+ height: _Unit;
511
+ }
512
+ /**
513
+ * Defines the interface of promise which is used for asynchronous calling.
514
+ */
515
+ export interface IPromise {
516
+ /**
517
+ * Call the function after a promise is fulfilled or rejected.
518
+ *
519
+ * @param onFulfilled The function which will be executed when a promise is fulfilled.
520
+ * This has a single parameter, the fulfillment value. If a value is returned, it will be
521
+ * passed to the next callback function. If no value is returned, the original value will be passed.
522
+ * @param onRejected The function which will be executed when a promise is rejected.
523
+ * This has a single parameter, the rejection reason. If a value is returned, it will be
524
+ * passed to the next callback function. If no value is returned, the original value will be passed.
525
+ * @return An IPromise equivalent to the value you return from onFulfilled/onRejected after being passed.
526
+ */
527
+ then(onFulfilled?: (value?: any) => any, onRejected?: (reason?: any) => any): IPromise;
528
+ /**
529
+ * Call the function after a promise is rejected.
530
+ *
531
+ * @param onRejected The function which will be executed when a promise is rejected.
532
+ * This has a single parameter, the rejection reason. The return value will be
533
+ * passed to the next callback function.
534
+ * @return An IPromise equivalent to the value returned by onFulfilled/onRejected after being passed.
535
+ */
536
+ catch(onRejected: (reason?: any) => any): IPromise;
537
+ }
538
+ export declare class _Promise implements IPromise {
539
+ private _callbacks;
540
+ private _finished;
541
+ readonly isFinished: boolean;
542
+ cancel(): void;
543
+ then(onFulfilled?: (value?: any) => any, onRejected?: (reason?: any) => any): this;
544
+ catch(onRejected: (reason?: any) => any): IPromise;
545
+ resolve(value?: any): this;
546
+ reject(reason?: any): this;
547
+ onFulfilled(value: any): void;
548
+ onRejected(reason: any): void;
549
+ }
550
+ export declare class _CompositedPromise extends _Promise {
551
+ private _promises;
552
+ constructor(promises: IPromise[]);
553
+ _init(): void;
554
+ }
555
+ export interface _IDocumentService {
556
+ serviceUrl: string;
557
+ filePath: string;
558
+ }
559
+ export interface _IDocumentStatus {
560
+ status: string;
561
+ errorList: string[];
562
+ progress: number;
563
+ pageCount: number;
564
+ expiredDateTime: Date;
565
+ hasOutlines: boolean;
566
+ initialPosition: any;
567
+ }
568
+ export interface _IDocumentFeatures {
569
+ paginated: boolean;
570
+ nonPaginated: boolean;
571
+ textSearchInPaginatedMode: boolean;
572
+ pageSettings: boolean;
573
+ }
574
+ export interface _IDocumentStatus {
575
+ status: string;
576
+ errorList: string[];
577
+ progress: number;
578
+ pageCount: number;
579
+ expiredDateTime: Date;
580
+ hasOutlines: boolean;
581
+ initialPosition: any;
582
+ }
583
+ export interface _IDocumentFeatures {
584
+ paginated: boolean;
585
+ nonPaginated: boolean;
586
+ textSearchInPaginatedMode: boolean;
587
+ pageSettings: boolean;
588
+ }
589
+ export interface _IExecutionInfo {
590
+ path: string;
591
+ loadedDateTime: Date;
592
+ expiredDateTime: Date;
593
+ pageSettings?: _IPageSettings;
594
+ features?: _IDocumentFeatures;
595
+ status?: _IDocumentStatus;
596
+ outlinesLocation: string;
597
+ statusLocation: string;
598
+ pageSettingsLocation: string;
599
+ featuresLocation: string;
600
+ supportedFormatsLocation: string;
601
+ }
602
+ export interface _IExecutionInfo {
603
+ path: string;
604
+ loadedDateTime: Date;
605
+ expiredDateTime: Date;
606
+ pageSettings?: _IPageSettings;
607
+ features?: _IDocumentFeatures;
608
+ status?: _IDocumentStatus;
609
+ outlinesLocation: string;
610
+ statusLocation: string;
611
+ pageSettingsLocation: string;
612
+ featuresLocation: string;
613
+ supportedFormatsLocation: string;
614
+ }
615
+ export interface _IPageSettings {
616
+ paginated: boolean;
617
+ height: _Unit;
618
+ width: _Unit;
619
+ bottomMargin: _Unit;
620
+ landscape: boolean;
621
+ leftMargin: _Unit;
622
+ paperSize: _PaperKind;
623
+ rightMargin: _Unit;
624
+ topMargin: _Unit;
625
+ }
626
+ export interface _ISearchResultItem {
627
+ nearText: string;
628
+ positionInNearText: number;
629
+ boundsList: _IRect[];
630
+ pageIndex: number;
631
+ }
632
+ export interface _IOutlineNode {
633
+ caption: string;
634
+ children: _IOutlineNode[] | (() => IPromise);
635
+ level: number;
636
+ target: string;
637
+ position?: _IDocumentPosition;
638
+ }
639
+ export interface _IDocumentPosition {
640
+ pageBounds?: _IRect;
641
+ pageIndex: number;
642
+ }
643
+ export interface _IExportDescription {
644
+ name: string;
645
+ format: string;
646
+ optionDescriptions?: _IExportOptionDescription[];
647
+ }
648
+ export interface _IExportOptionDescription {
649
+ name: string;
650
+ type: string;
651
+ nullable: boolean;
652
+ defaultValue: any;
653
+ allowedValues?: string[];
654
+ group: string;
655
+ }
656
+ export interface _IDocumentOptions extends _IDocumentService {
657
+ paginated?: boolean;
658
+ }
659
+ export interface _IRenderOptions {
660
+ format: string;
661
+ paged?: boolean;
662
+ outputRange?: string | number;
663
+ resolution?: number;
664
+ }
665
+ export interface _ISearchOptions {
666
+ text: string;
667
+ matchCase?: boolean;
668
+ wholeWord?: boolean;
669
+ }
670
+ export interface _IReportService extends _IDocumentService {
671
+ reportName: string;
672
+ }
673
+ export interface _IReportOptions extends _IDocumentOptions, _IReportService {
674
+ }
675
+ export interface _IReportStatus extends _IDocumentStatus {
676
+ initialPosition: _IDocumentPosition;
677
+ }
678
+ export interface _IReportExecutionInfo extends _IExecutionInfo {
679
+ id: string;
680
+ hasParameters: boolean;
681
+ parametersLocation: string;
682
+ }
683
+ export interface _IParameter {
684
+ allowBlank: boolean;
685
+ allowedValues: {
686
+ key: string;
687
+ value: any;
688
+ }[];
689
+ dataType: _ParameterType;
690
+ error?: string;
691
+ hidden: boolean;
692
+ maxLength: number;
693
+ multiValue: boolean;
694
+ name: string;
695
+ nullable: boolean;
696
+ prompt: string;
697
+ value: any;
698
+ }
699
+ /**
700
+ * Describes an item in the report server of a specific path.
701
+ */
702
+ export interface ICatalogItem {
703
+ /**
704
+ * The short name of the item.
705
+ */
706
+ name: string;
707
+ /**
708
+ * The full path (starts with the report provider key) of the item.
709
+ */
710
+ path: string;
711
+ /**
712
+ * The type of the item.
713
+ */
714
+ type: CatalogItemType;
715
+ /**
716
+ * The array of child items.
717
+ */
718
+ items: ICatalogItem[];
719
+ }
720
+ export declare const _abstractMethodExceptionText = "It is an abstract method, please implement it.";
721
+ export declare const _hiddenCss = "hidden";
722
+ export declare function _pointMove(positive: boolean, pos: Point, detalPosOrX: Point | number, y?: number): Point;
723
+ export declare function _disableCache(url: string): string;
724
+ export declare function _removeChildren(node: HTMLElement, condition?: (ele: Element) => boolean): void;
725
+ export declare function _toDOMs(html: string): DocumentFragment;
726
+ export declare function _addEvent(elm: any, evType: string, fn: Function, useCapture?: boolean): void;
727
+ export declare function _removeEvent(elm: any, evType: string, fn: Function): void;
728
+ export declare function _addWjHandler(key: string, event: Event, func: IEventHandler, self?: any): void;
729
+ export declare function _removeAllWjHandlers(key: string, event: Event): void;
730
+ export declare function _getErrorMessage(reason: any): string;
731
+ export declare function _twipToPixel(value: number): number;
732
+ export declare function _pixelToTwip(value: number): number;
733
+ export declare function _transformSvg(svg: SVGElement, width: number, height: number, zoomFactor?: number, rotateAngle?: _RotateAngle): SVGElement;
734
+ export declare function _getTransformedPosition(bound: _IRect, size: _ISize, rotateAngle: _RotateAngle, zoomFactor: number): Point;
735
+ export declare function _getRotatedSize(size: _ISize, rotateAngle: _RotateAngle): _ISize;
736
+ export declare function _strEndsWith(str: string, value: string, ignoreCase?: boolean): boolean;
737
+ export declare function _isEqual(a: any, b: any): boolean;
738
+ export declare class _ParametersEditor extends Control {
739
+ private _itemSources;
740
+ private _parameters;
741
+ private _errors;
742
+ private static _paramIdAttr;
743
+ private static _errorsHiddenCss;
744
+ private _errorsVisible;
745
+ private _validateTimer;
746
+ private _lastEditedParam;
747
+ private static _dateTimeFormat;
748
+ private _savingParam;
749
+ readonly commit: Event<_ParametersEditor, EventArgs>;
750
+ readonly validate: Event<_ParametersEditor, EventArgs>;
751
+ constructor(element: any);
752
+ _setErrors(value: any[]): void;
753
+ readonly parameters: Object;
754
+ itemsSource: _IParameter[];
755
+ savingParam: boolean;
756
+ _reset(): void;
757
+ _setErrorsVisible(value: boolean): void;
758
+ _updateErrorsVisible(): void;
759
+ onCommit(): void;
760
+ onValidate(): void;
761
+ _deferValidate(paramName: string, beforeValidate?: Function, afterValidate?: Function): void;
762
+ private _updateErrorDiv;
763
+ _render(): void;
764
+ refresh(fullUpdate?: boolean): void;
765
+ _validateParameters(): boolean;
766
+ static _isFloat(value: string): boolean;
767
+ static _checkValueType(value: string, isSpecificType: Function): boolean;
768
+ private _generateComboEditor;
769
+ private _updateParameters;
770
+ private _generateBoolEditor;
771
+ private _generateStringEditor;
772
+ private _createTextarea;
773
+ private _bindTextChangedEvent;
774
+ private _generateNumberEditor;
775
+ private _generateDateTimeEditor;
776
+ private _validateNullValueOfParameter;
777
+ }
778
+ export declare function _statusJsonReviver(k: string, v: any): any;
779
+ export declare function _pageSettingsJsonReviver(k: string, v: any): any;
780
+ export declare function _appendQueryString(url: string, queries: Object): string;
781
+ export declare function _joinUrl(...data: (string | string[])[]): string;
782
+ export declare function _joinStringUrl(data: string[]): string[];
783
+ export declare function _prepareStringUrl(data: string): string[];
784
+ export declare function _parseReportExecutionInfo(json: string): _IReportExecutionInfo;
785
+ export declare enum _TouchEventType {
786
+ Start = 0,
787
+ Move = 1,
788
+ End = 2
789
+ }
790
+ export declare class _TouchEventArgs extends EventArgs {
791
+ private _systemEvent;
792
+ private _type;
793
+ private _touchInfos;
794
+ constructor(systemEvent: TouchEvent | PointerEvent | _TouchEventArgs);
795
+ readonly timeStamp: number;
796
+ readonly touchInfos: _TouchInfo[];
797
+ readonly systemEvent: TouchEvent | PointerEvent;
798
+ readonly target: EventTarget;
799
+ readonly currentTarget: EventTarget;
800
+ readonly type: _TouchEventType;
801
+ readonly pointersCount: number;
802
+ cancelBubble: boolean;
803
+ preventDefault(): void;
804
+ }
805
+ export declare class _TouchEvent extends Event {
806
+ raise(sender: any, args: _TouchEventArgs): void;
807
+ }
808
+ export declare class _TouchTrigger {
809
+ private _element;
810
+ private _disposeAction;
811
+ private static _elementDataName;
812
+ private static bindElement;
813
+ private static unbindElement;
814
+ static getTrigger(element: HTMLElement): _TouchTrigger;
815
+ constructor(source: any);
816
+ _onSystemTouchEvent(event: any): void;
817
+ _createTouchEventArgs(e: any): _TouchEventArgs;
818
+ dispose(): void;
819
+ readonly hostElement: HTMLElement;
820
+ _onTouchEvent(sender: any, e: _TouchEventArgs): void;
821
+ touchMove: _TouchEvent;
822
+ touchStart: _TouchEvent;
823
+ touchEnd: _TouchEvent;
824
+ onTouchEnd(event: _TouchEventArgs): void;
825
+ onTouchStart(event: _TouchEventArgs): void;
826
+ onTouchMove(event: _TouchEventArgs): void;
827
+ }
828
+ export declare class _PinchEventArgs extends _TouchEventArgs {
829
+ private _pinchType;
830
+ private _pinchDistance;
831
+ private _centerClient;
832
+ private _centerClientDelta;
833
+ private _centerScreen;
834
+ private _centerScreenDelta;
835
+ private _pre;
836
+ private _zoom;
837
+ constructor(touchEventArgs: _TouchEventArgs, pinchType: _TouchEventType, pre?: _PinchEventArgs);
838
+ readonly zoom: number;
839
+ readonly pointersCount: number;
840
+ readonly prePinchDistance: number;
841
+ readonly pinchDistance: number;
842
+ readonly centerScreenDelta: Point;
843
+ readonly centerClientDelta: Point;
844
+ readonly centerClient: Point;
845
+ readonly preCenterClient: Point;
846
+ readonly centerScreen: Point;
847
+ readonly preCenterScreen: Point;
848
+ readonly type: _TouchEventType;
849
+ }
850
+ export declare class _PinchEvent extends _TouchEvent {
851
+ raise(sender: any, args: _PinchEventArgs): void;
852
+ }
853
+ export declare class _PinchTrigger extends _TouchTrigger {
854
+ private _preEventArgs;
855
+ pinch: _PinchEvent;
856
+ onPinch(args: _PinchEventArgs): void;
857
+ onTouchStart(args: _TouchEventArgs): void;
858
+ onTouchend(args: _TouchEventArgs): void;
859
+ onTouchMove(args: _TouchEventArgs): void;
860
+ private _onPinching;
861
+ private _onPinchEnd;
862
+ private _process;
863
+ }
864
+ export declare class _PanEventArgs extends _TouchEventArgs {
865
+ private _panType;
866
+ private _client;
867
+ private _screen;
868
+ private _clientDelta;
869
+ private _screenDelta;
870
+ constructor(args: _TouchEventArgs, pre?: _PanEventArgs, type?: _TouchEventType);
871
+ readonly type: _TouchEventType;
872
+ readonly clientDelta: Point;
873
+ readonly screenDelta: Point;
874
+ readonly client: Point;
875
+ readonly screen: Point;
876
+ readonly pointersCount: number;
877
+ readonly touchInfo: _TouchInfo;
878
+ }
879
+ export declare class _PanEvent extends _TouchEvent {
880
+ raise(sender: any, args: _PanEventArgs): void;
881
+ }
882
+ export declare class _PanTrigger extends _TouchTrigger {
883
+ private _panEvents;
884
+ private _panStartTimer;
885
+ private static _threhold;
886
+ private _prePanEventArgs;
887
+ panMove: _PanEvent;
888
+ panStart: _PanEvent;
889
+ panEnd: _PanEvent;
890
+ onPanEnd(args: _PanEventArgs): void;
891
+ onPanStart(args: _PanEventArgs): void;
892
+ onPanMove(args: _PanEventArgs): void;
893
+ private _prepareMove;
894
+ private _prepareStart;
895
+ private _prepareEnd;
896
+ private _clearPanStartTimer;
897
+ private _tryStopPan;
898
+ private _stopPan;
899
+ private _processPan;
900
+ onTouchStart(args: _TouchEventArgs): void;
901
+ onTouchMove(args: _TouchEventArgs): void;
902
+ onTouchEnd(args: _TouchEventArgs): void;
903
+ private _createPanEventArgs;
904
+ }
905
+ export declare class _SwipeEventArgs extends _PanEventArgs {
906
+ private _duration;
907
+ private _startTouchInfo;
908
+ private _endTouchInfo;
909
+ private _speed;
910
+ private _direction;
911
+ constructor(startInfo: _TouchInfo, endInfo: _TouchInfo, panEventArgs: _PanEventArgs, duration: number);
912
+ readonly duration: number;
913
+ readonly startTouchInfo: _TouchInfo;
914
+ readonly endTouchInfo: _TouchInfo;
915
+ readonly speed: Point;
916
+ readonly pointersCount: number;
917
+ readonly direction: _TouchDirection;
918
+ }
919
+ export declare class _SwipeEvent extends _PanEvent {
920
+ raise(sender: any, args: _SwipeEventArgs): void;
921
+ }
922
+ export declare class _SwipeTrigger extends _PanTrigger {
923
+ static minDistance: number;
924
+ static maxDuration: number;
925
+ private _panStartEventArgs;
926
+ private _prePanMoveEventArgs;
927
+ swipe: _SwipeEvent;
928
+ static getSpeed(distance: number, duration: number): number;
929
+ onPanStart(args: _PanEventArgs): void;
930
+ onPanMove(args: _PanEventArgs): void;
931
+ onPanEnd(args: _PanEventArgs): void;
932
+ onSwipe(args: _SwipeEventArgs): void;
933
+ _createSwipeEventArgs(endArgs: _PanEventArgs): _SwipeEventArgs;
934
+ }
935
+ export declare class _TouchManager {
936
+ private static _touchPointerName;
937
+ static _allTouchInfos: _TouchInfo[];
938
+ static _isTouchEvent(event: PointerEvent | TouchEvent): boolean;
939
+ static _isTouchStart(type: string): boolean;
940
+ static _isTouchEnd(type: string): boolean;
941
+ static _isTouchMove(type: string): boolean;
942
+ static _eventTypeContains(current: string, definitions: string): boolean;
943
+ static _registerTouchInfo(systemEvent: TouchEvent | PointerEvent): void;
944
+ private _trigger;
945
+ private _pinchTrigger;
946
+ private _removeDefaultTouch;
947
+ private _defaultTouchAction;
948
+ private _defaultMsTouchAction;
949
+ constructor(element: any, removeDefaultTouch?: boolean);
950
+ touchMove: _TouchEvent;
951
+ touchStart: _TouchEvent;
952
+ touchEnd: _TouchEvent;
953
+ panMove: _PanEvent;
954
+ panStart: _PanEvent;
955
+ panEnd: _PanEvent;
956
+ swipe: _SwipeEvent;
957
+ pinch: _PinchEvent;
958
+ onPinch(event: _PinchEventArgs): void;
959
+ onSwipe(event: _SwipeEventArgs): void;
960
+ onTouchEnd(event: _TouchEventArgs): void;
961
+ onTouchStart(event: _TouchEventArgs): void;
962
+ onTouchMove(event: _TouchEventArgs): void;
963
+ onPanEnd(args: _PanEventArgs): void;
964
+ onPanStart(args: _PanEventArgs): void;
965
+ onPanMove(args: _PanEventArgs): void;
966
+ removeDefaultTouch: boolean;
967
+ readonly hostElement: HTMLElement;
968
+ readonly contentElement: Element;
969
+ dispose(): void;
970
+ }
971
+ export declare class _VScroller extends _Scroller {
972
+ private _wrapper;
973
+ private _height;
974
+ private _max;
975
+ private _desiredValue;
976
+ static controlTemplate: string;
977
+ constructor(element: any);
978
+ readonly valueChanged: Event<_VScroller, EventArgs>;
979
+ onValueChanged(): void;
980
+ preventScrollEvent(): void;
981
+ height: number;
982
+ value: number;
983
+ max: number;
984
+ refresh(fullUpdate?: boolean): void;
985
+ }
986
+ export declare class _ExportOptionEditor extends Control {
987
+ private _exportDescription;
988
+ private _options;
989
+ private _previousEmbedFonts;
990
+ private _previousShowNavigator;
991
+ private static _optionIdAttr;
992
+ private static _optionNameAttr;
993
+ private static _skippedOptions;
994
+ private static _generalGroupName;
995
+ private _optionLabels;
996
+ private _groupTitleField;
997
+ constructor(element: any);
998
+ readonly options: Object;
999
+ exportDescription: _IExportDescription;
1000
+ private _skipOption;
1001
+ private _render;
1002
+ private _generateEditor;
1003
+ private _generateComboEditor;
1004
+ private _generateBoolEditor;
1005
+ private _generateNumberEditor;
1006
+ private _generateStringEditor;
1007
+ private _generateGroup;
1008
+ private _updateEditors;
1009
+ private _getOptionLabel;
1010
+ private _getOptionDescByName;
1011
+ private _getOptionValue;
1012
+ private _setOptionValue;
1013
+ private readonly _optionLabelsText;
1014
+ private readonly _groupTitle;
1015
+ private _globalize;
1016
+ refresh(fullUpdate?: boolean): void;
1017
+ }
1018
+ export interface _IHttpRequest {
1019
+ method?: string;
1020
+ urlEncode?: boolean;
1021
+ data?: any;
1022
+ async?: boolean;
1023
+ cache?: boolean;
1024
+ success?: (xhr: XMLHttpRequest) => void;
1025
+ user?: string;
1026
+ password?: string;
1027
+ requestHeaders?: any;
1028
+ beforeSend?: (xhr: XMLHttpRequest) => void;
1029
+ error?: (xhr: XMLHttpRequest) => void;
1030
+ responseType?: string;
1031
+ }
1032
+ /**
1033
+ * Represents a routine for processing HTTP requests.
1034
+ */
1035
+ export interface IHttpRequestHandler {
1036
+ /**
1037
+ * Occurs before the request is sent to the server.
1038
+ * @param args Describes the current request.
1039
+ */
1040
+ beforeSend(args: RequestEventArgs): void;
1041
+ /**
1042
+ * Gets or sets an object containing request headers to be used when sending or requesting data.
1043
+ */
1044
+ requestHeaders: any;
1045
+ }
1046
+ export declare function _httpRequest(url: string, handler: IHttpRequestHandler, settings?: _IHttpRequest): XMLHttpRequest;
1047
+ export interface _IDocAction {
1048
+ kind: _ActionKind;
1049
+ data?: string;
1050
+ }
1051
+ export interface _IHistory {
1052
+ zoomMode?: ZoomMode;
1053
+ zoomFactor?: number;
1054
+ position?: _IDocumentPosition;
1055
+ viewMode?: ViewMode;
1056
+ pageAngles?: _RotateAngle[];
1057
+ }
1058
+ export interface _IViewerActionChangedEventArgs {
1059
+ action: _IViewerAction;
1060
+ }
1061
+ export interface _IViewerAction {
1062
+ actionType: _ViewerActionType;
1063
+ disabled: boolean;
1064
+ checked: boolean;
1065
+ shown: boolean;
1066
+ }
1067
+ export interface _IViewModeChangedEventArgs {
1068
+ oldValue: ViewMode;
1069
+ newValue: ViewMode;
1070
+ }
1071
+ export declare class _HistoryManager {
1072
+ private _items;
1073
+ private _position;
1074
+ readonly statusChanged: Event<_HistoryManager, EventArgs>;
1075
+ private _onStatusChanged;
1076
+ readonly current: _IHistory;
1077
+ clear(): void;
1078
+ add(): void;
1079
+ forward(): _IHistory;
1080
+ backward(): _IHistory;
1081
+ canForward(): boolean;
1082
+ canBackward(): boolean;
1083
+ }
1084
+ export declare enum _ArActionKind {
1085
+ Hyperlink = "hyperlink",
1086
+ Bookmark = "bookmark",
1087
+ Drillthrough = "drillthrough",
1088
+ Sort = "sort",
1089
+ Toggle = "toggle"
1090
+ }
1091
+ export interface _IArDocAction extends _IDocAction {
1092
+ arKind: _ArActionKind;
1093
+ }
1094
+ export interface IArClientParameter {
1095
+ Name: string;
1096
+ Value: any;
1097
+ }
1098
+ export declare enum _ArParameterType {
1099
+ String = 0,
1100
+ DateTime = 1,
1101
+ Boolean = 2,
1102
+ Integer = 3,
1103
+ Float = 4
1104
+ }
1105
+ export declare enum _ArParameterState {
1106
+ OK = 0,
1107
+ ExpectValue = 1,
1108
+ HasOutstandingDependencies = 2,
1109
+ ValuesValidationFailed = 3,
1110
+ DynamicValuesUnavailable = 4
1111
+ }
1112
+ export interface _IArParameterValue {
1113
+ Label: string;
1114
+ Value: any;
1115
+ }
1116
+ export interface _IArParameter {
1117
+ Name: string;
1118
+ ParameterType: _ArParameterType;
1119
+ Prompt: string;
1120
+ Nullable: boolean;
1121
+ MultiLine: boolean;
1122
+ MultiValue: boolean;
1123
+ AllowEmpty: boolean;
1124
+ DateOnly: boolean;
1125
+ Value: any;
1126
+ Values: _IArParameterValue[];
1127
+ AvailableValues: _IArParameterValue[];
1128
+ State: _ArParameterState;
1129
+ ExtendedErrorInfo: string;
1130
+ DependantParameters: _IArParameter[];
1131
+ }
1132
+ export interface _IArExecutionInfo extends _IExecutionInfo {
1133
+ }
1134
+ export interface _IArExportOptions extends _IRenderOptions {
1135
+ printing?: boolean;
1136
+ }
1137
+ export declare class _DocumentService implements _IDocumentService {
1138
+ private _url;
1139
+ private _documentPath;
1140
+ private _httpHandler;
1141
+ constructor(options: _IDocumentService, httpHandler: IHttpRequestHandler);
1142
+ readonly serviceUrl: string;
1143
+ readonly filePath: string;
1144
+ getStatus(): IPromise;
1145
+ setPageSettings(pageSettings: _IPageSettings): IPromise;
1146
+ getBookmark(name: string): IPromise;
1147
+ executeCustomAction(action: _IDocAction): IPromise;
1148
+ load(data?: any): IPromise;
1149
+ dispose(): IPromise;
1150
+ getOutlines(): IPromise;
1151
+ renderToFilter(options: _IRenderOptions): IPromise;
1152
+ search(searchOptions: _ISearchOptions): IPromise;
1153
+ getRenderToFilterUrl(options: _IRenderOptions): IPromise;
1154
+ getExportedUrl(options: _IRenderOptions): IPromise;
1155
+ getSupportedExportDescriptions(): IPromise;
1156
+ getFeatures(): IPromise;
1157
+ getPingTimeout(): number;
1158
+ getFileName(): string;
1159
+ downloadDataUrl(url: string): IPromise;
1160
+ downloadBlob(url: string): IPromise;
1161
+ httpRequest(url: string, settings?: _IHttpRequest): IPromise;
1162
+ }
1163
+ export declare class _ReportServiceBase extends _DocumentService {
1164
+ render(): IPromise;
1165
+ }
1166
+ export declare class _ReportService extends _ReportServiceBase implements _IReportService {
1167
+ private _reportName;
1168
+ private _instanceId;
1169
+ private _status;
1170
+ private _outlinesLocation;
1171
+ private _statusLocation;
1172
+ private _pageSettingsLocation;
1173
+ private _featuresLocation;
1174
+ private _parametersLocation;
1175
+ private static _reportCommand;
1176
+ private static _instancesCommand;
1177
+ private static _customActionParam;
1178
+ private static _renderAction;
1179
+ private static _searchAction;
1180
+ private static _cancelAction;
1181
+ private static _outlinesAction;
1182
+ private static _exportAction;
1183
+ private static _parametersAction;
1184
+ private static _bookmarkAction;
1185
+ private static _pageSettingsAction;
1186
+ private static _supportedFormatsAction;
1187
+ private static _invalidReportControllerError;
1188
+ private static _invalidReportCacheControllerError;
1189
+ constructor(options: _IReportService, httpHandler: IHttpRequestHandler);
1190
+ readonly isCleared: boolean;
1191
+ static getReportNames(serviceUrl: string, reportFilePath: string, httpHandler?: IHttpRequestHandler): IPromise;
1192
+ static getReports(serviceUrl: string, path: string, data?: any, httpHandler?: IHttpRequestHandler): IPromise;
1193
+ readonly reportName: string;
1194
+ getBookmark(name: string): IPromise;
1195
+ executeCustomAction(action: _IDocAction): IPromise;
1196
+ getStatus(): IPromise;
1197
+ getDocumentStatus(): IPromise;
1198
+ _getReportCache(): IPromise;
1199
+ getParameters(): IPromise;
1200
+ _getUrlMainPart(): string;
1201
+ _getReportUrl(...params: string[]): string;
1202
+ _getReportInstancesUrl(...params: string[]): string;
1203
+ _checkReportController(promise: _Promise): boolean;
1204
+ _checkReportInstanceController(promise?: _Promise): boolean;
1205
+ _getError(xhr: XMLHttpRequest): string;
1206
+ render(data?: any): IPromise;
1207
+ renderToFilter(options: _IRenderOptions): IPromise;
1208
+ load(data?: any): IPromise;
1209
+ cancel(): IPromise;
1210
+ dispose(): IPromise;
1211
+ getOutlines(): IPromise;
1212
+ getRenderToFilterUrl(options: _IRenderOptions): IPromise;
1213
+ getExportedUrl(options: _IRenderOptions): IPromise;
1214
+ search(searchOptions: _ISearchOptions): IPromise;
1215
+ setPageSettings(pageSettings: _IPageSettings): IPromise;
1216
+ setParameters(parameters: Object): IPromise;
1217
+ getSupportedExportDescriptions(): IPromise;
1218
+ getFeatures(): IPromise;
1219
+ }
1220
+ export declare class _DocumentSource {
1221
+ static _abstractMethodException: string;
1222
+ private _features;
1223
+ private _paginated;
1224
+ private _hasOutlines;
1225
+ private _pageCount;
1226
+ private _service;
1227
+ private _supportedExportDescriptions;
1228
+ private _pageSettings;
1229
+ private _isLoadCompleted;
1230
+ private _isInstanceCreated;
1231
+ private _isDisposed;
1232
+ private _errors;
1233
+ private _expiredDateTime;
1234
+ private _executionDateTime;
1235
+ private _initialPosition;
1236
+ private _httpHandler;
1237
+ readonly pageCountChanged: Event<_DocumentSource, EventArgs>;
1238
+ readonly disposed: Event<_DocumentSource, EventArgs>;
1239
+ readonly pageSettingsChanged: Event<_DocumentSource, EventArgs>;
1240
+ readonly loading: Event<_DocumentSource, EventArgs>;
1241
+ readonly loadCompleted: Event<_DocumentSource, EventArgs>;
1242
+ readonly queryLoadingData: Event<_DocumentSource, QueryLoadingDataEventArgs>;
1243
+ onQueryLoadingData(e: QueryLoadingDataEventArgs): void;
1244
+ constructor(options: _IDocumentOptions, httpHandler: IHttpRequestHandler);
1245
+ _updateIsLoadCompleted(value: boolean): void;
1246
+ _updateIsDisposed(value: boolean): void;
1247
+ _getIsDisposed(): boolean;
1248
+ _checkHasOutlines(data: _IDocumentStatus): boolean;
1249
+ _checkIsLoadCompleted(data: _IDocumentStatus): boolean;
1250
+ readonly encodeRequestParams: boolean;
1251
+ readonly executionDateTime: Date;
1252
+ readonly expiredDateTime: Date;
1253
+ readonly errors: string[];
1254
+ readonly isLoadCompleted: boolean;
1255
+ readonly isInstanceCreated: boolean;
1256
+ readonly isDisposed: boolean;
1257
+ readonly features: _IDocumentFeatures;
1258
+ readonly pageSettings: _IPageSettings;
1259
+ onPageSettingsChanged(e?: EventArgs): void;
1260
+ onLoadCompleted(e?: EventArgs): void;
1261
+ onLoading(e?: EventArgs): void;
1262
+ onDisposed(e?: EventArgs): void;
1263
+ setPageSettings(pageSettings: _IPageSettings): IPromise;
1264
+ _updatePageSettings(newValue: _IPageSettings): void;
1265
+ readonly _innerService: _DocumentService;
1266
+ readonly paginated: boolean;
1267
+ readonly hasThumbnails: boolean;
1268
+ readonly hasOutlines: boolean;
1269
+ readonly pageCount: number;
1270
+ initialPosition: _IDocumentPosition;
1271
+ readonly service: _IDocumentService;
1272
+ getSupportedExportDescriptions(): IPromise;
1273
+ getBookmark(name: string): IPromise;
1274
+ executeCustomAction(action: _IDocAction): IPromise;
1275
+ getOutlines(): IPromise;
1276
+ getFeatures(): IPromise;
1277
+ dispose(): IPromise;
1278
+ load(): IPromise;
1279
+ _updateExecutionInfo(data: _IExecutionInfo): void;
1280
+ _updateDocumentStatus(data: _IDocumentStatus): void;
1281
+ _getExecutionDateTime(data: _IExecutionInfo): Date;
1282
+ _getExpiredDateTime(data: _IDocumentStatus | _IExecutionInfo): Date;
1283
+ _getPageCount(data: _IDocumentStatus): number;
1284
+ _updatePageCount(value: number): void;
1285
+ getStatus(): IPromise;
1286
+ _createDocumentService(options: _IDocumentService): _DocumentService;
1287
+ onPageCountChanged(e?: EventArgs): void;
1288
+ export(options: _IRenderOptions): void;
1289
+ print(rotations?: _RotateAngle[]): void;
1290
+ protected readonly httpHandler: IHttpRequestHandler;
1291
+ private _removeScript;
1292
+ private _rotate;
1293
+ renderToFilter(options: _IRenderOptions): IPromise;
1294
+ getRenderToFilterUrl(options: _IRenderOptions): IPromise;
1295
+ getExportedUrl(options: _IRenderOptions, raiseEvent?: boolean): IPromise;
1296
+ search(searchOptions: _ISearchOptions): IPromise;
1297
+ }
1298
+ export declare class _ReportSourceBase extends _DocumentSource {
1299
+ private _status;
1300
+ constructor(options: _IDocumentOptions, httpHandler: IHttpRequestHandler);
1301
+ readonly statusChanged: Event<_ReportSourceBase, EventArgs>;
1302
+ readonly autoRun: boolean;
1303
+ readonly hasParameters: boolean;
1304
+ status: string;
1305
+ getParameters(): IPromise;
1306
+ setParameters(parameters: Object): IPromise;
1307
+ render(): IPromise;
1308
+ executeCustomAction(action: _IDocAction): IPromise;
1309
+ onStatusChanged(e?: EventArgs): void;
1310
+ readonly _innerService: _ReportServiceBase;
1311
+ _updateDocumentStatus(data: _IReportStatus): void;
1312
+ }
1313
+ export declare class _Report extends _ReportSourceBase {
1314
+ private _hasParameters;
1315
+ private _parameters;
1316
+ constructor(options: _IReportOptions, httpHandler: IHttpRequestHandler);
1317
+ static getReportNames(serviceUrl: string, reportFilePath: string, httpHandler?: IHttpRequestHandler): IPromise;
1318
+ static getReports(serviceUrl: string, path: string, data?: any, httpHandler?: IHttpRequestHandler): IPromise;
1319
+ readonly reportName: string;
1320
+ readonly hasParameters: boolean;
1321
+ load(): IPromise;
1322
+ cancel(): IPromise;
1323
+ dispose(): IPromise;
1324
+ setParameters(parameters: Object): IPromise;
1325
+ getParameters(): IPromise;
1326
+ _getIsDisposed(): boolean;
1327
+ _updateExecutionInfo(data: _IReportExecutionInfo): void;
1328
+ _checkIsLoadCompleted(data: _IReportStatus): boolean;
1329
+ _createDocumentService(options: _IReportService): _ReportService;
1330
+ readonly _innerService: _ReportService;
1331
+ }
1332
+ export declare class _PdfDocumentSource extends _DocumentSource {
1333
+ private _status;
1334
+ constructor(options: _IDocumentService, httpHandler: IHttpRequestHandler);
1335
+ readonly status: string;
1336
+ readonly _innerService: _PdfDocumentService;
1337
+ _createDocumentService(options: _IDocumentService): _PdfDocumentService;
1338
+ load(): IPromise;
1339
+ _updateStatus(newValue: string): void;
1340
+ getStatus(): IPromise;
1341
+ renderToFilter(options: _IRenderOptions): IPromise;
1342
+ _updateDocumentStatus(data: _IDocumentStatus): void;
1343
+ }
1344
+ export declare class _PdfDocumentService extends _DocumentService {
1345
+ private static _pdfCommand;
1346
+ private static _exportAction;
1347
+ private static _supportedFormatsAction;
1348
+ private static _searchAction;
1349
+ private static _invalidPdfControllerError;
1350
+ private _status;
1351
+ private _statusLocation;
1352
+ private _featuresLocation;
1353
+ _getPdfUrl(...params: string[]): string;
1354
+ _getPdfStatus(data?: any): IPromise;
1355
+ _checkPdfController(promise?: _Promise): boolean;
1356
+ dispose(): IPromise;
1357
+ load(data?: any): IPromise;
1358
+ getStatus(data?: any): IPromise;
1359
+ renderToFilter(options: _IRenderOptions, data?: any): IPromise;
1360
+ getRenderToFilterUrl(options: _IRenderOptions): IPromise;
1361
+ getExportedUrl(options: _IRenderOptions): IPromise;
1362
+ getSupportedExportDescriptions(): IPromise;
1363
+ getFeatures(): IPromise;
1364
+ search(searchOptions: _ISearchOptions): IPromise;
1365
+ }
1366
+ export declare function _parseExecutionInfo(json: string): _IExecutionInfo;
1367
+ export declare class _SearchManager {
1368
+ private _documentSource;
1369
+ private _text;
1370
+ private _matchCase;
1371
+ private _wholeWord;
1372
+ private _searchResult;
1373
+ private _currentIndex;
1374
+ readonly currentChanged: Event<_SearchManager, EventArgs>;
1375
+ readonly searchStarted: Event<_SearchManager, EventArgs>;
1376
+ readonly searchCompleted: Event<_SearchManager, EventArgs>;
1377
+ readonly resultsCleared: Event<_SearchManager, EventArgs>;
1378
+ readonly textChanged: Event<_SearchManager, EventArgs>;
1379
+ readonly current: _ISearchResultItem;
1380
+ currentIndex: number;
1381
+ documentSource: _DocumentSource;
1382
+ matchCase: boolean;
1383
+ readonly searchResult: _ISearchResultItem[];
1384
+ text: string;
1385
+ wholeWord: boolean;
1386
+ clear(): void;
1387
+ search(pre?: boolean): void;
1388
+ private _clearResults;
1389
+ private _getSearchResults;
1390
+ private _onCurrentChanged;
1391
+ private _onSearchStarted;
1392
+ private _onSearchCompleted;
1393
+ private _onResultsCleared;
1394
+ private _onTextChanged;
1395
+ }
1396
+ export declare class _Page {
1397
+ private _documentSource;
1398
+ private _parent;
1399
+ private _size?;
1400
+ private _content;
1401
+ private _index;
1402
+ private _rotateAngle;
1403
+ private _contentPromise;
1404
+ private _pendingContent;
1405
+ private static _bookmarkReg;
1406
+ static _bookmarkAttr: string;
1407
+ private static _customActionReg;
1408
+ static _customActionAttr: string;
1409
+ private static _idReg;
1410
+ private static _idReferReg;
1411
+ private static _invalidHref;
1412
+ constructor(documentSource: _DocumentSource, index: number, size?: _ISize);
1413
+ readonly linkClicked: Event<_Page, EventArgs>;
1414
+ readonly index: number;
1415
+ readonly size: _ISize;
1416
+ rotateAngle: _RotateAngle;
1417
+ readonly content: any;
1418
+ readonly pendingContent: boolean;
1419
+ getContent(): IPromise;
1420
+ protected _processSvgResponse(svg: string): string;
1421
+ _extractSize(content: HTMLElement): _ISize;
1422
+ private _onLinkClicked;
1423
+ protected _processActionLinks(svg: SVGElement, actionElementFound: (element: SVGElement) => void): void;
1424
+ private _addGlobalUniqueId;
1425
+ }
1426
+ export declare class _ArPage extends _Page {
1427
+ _processSvgResponse(svg: string): string;
1428
+ protected _processActionLinks(svg: SVGElement, actionElementFound: (element: SVGElement) => void): void;
1429
+ }
1430
+ export interface _IHitTestInfo {
1431
+ pageIndex: number;
1432
+ x: number;
1433
+ y: number;
1434
+ hitWorkingArea: boolean;
1435
+ }
1436
+ export interface _IPageHitTestInfo {
1437
+ pageIndex: number;
1438
+ x: number;
1439
+ y: number;
1440
+ }
1441
+ export interface _IPageView {
1442
+ pageIndex: number;
1443
+ pages: _Page[];
1444
+ scrollTop: number;
1445
+ scrollLeft: number;
1446
+ panMode: boolean;
1447
+ zoomFactor: number;
1448
+ zoomMode: ZoomMode;
1449
+ pageIndexChanged: Event;
1450
+ zoomFactorChanged: Event;
1451
+ zoomModeChanged: Event;
1452
+ positionChanged: Event;
1453
+ rotateAngleChanged: Event;
1454
+ pageLoaded: Event;
1455
+ moveToPage(pageIndex: number): IPromise;
1456
+ moveToPosition(position: _IDocumentPosition): IPromise;
1457
+ rotatePageTo(pageIndex: number, rotateAngle: _RotateAngle): any;
1458
+ hitTest(x: number, y: number): _IHitTestInfo;
1459
+ isPageContentLoaded(pageIndex: number): boolean;
1460
+ resetPages(): any;
1461
+ invalidate(): any;
1462
+ refresh(): any;
1463
+ }
1464
+ export interface _IZoomModeChangedEventArgs {
1465
+ oldValue: ZoomMode;
1466
+ newValue: ZoomMode;
1467
+ }
1468
+ export interface _IZoomFactorChangedEventArgs {
1469
+ oldValue: number;
1470
+ newValue: number;
1471
+ }
1472
+ export interface IInnerDocumentPosition extends _IDocumentPosition {
1473
+ samePage?: boolean;
1474
+ }
1475
+ export declare class _PageViewBase extends Control implements _IPageView {
1476
+ private _autoHeightCalculated;
1477
+ private _startX;
1478
+ private _startY;
1479
+ private _panMode;
1480
+ private _pageIndex;
1481
+ private _pages;
1482
+ private _zoomFactor;
1483
+ private _zoomMode;
1484
+ private _touchManager;
1485
+ private _zoomModeUpdating;
1486
+ protected _pagesWrapper: HTMLElement;
1487
+ private _fBorderBoxMode;
1488
+ private _movingPromise;
1489
+ private _targetRenderPageIndex;
1490
+ static _pageMargin: number;
1491
+ static _pageBorderWidth: number;
1492
+ static controlTemplate: string;
1493
+ constructor(element: any);
1494
+ _getTemplateParts(): object;
1495
+ _getPagesContainer(): HTMLElement;
1496
+ readonly pageIndexChanged: Event<_PageViewBase, EventArgs>;
1497
+ readonly zoomFactorChanged: Event<_PageViewBase, EventArgs>;
1498
+ readonly zoomModeChanged: Event<_PageViewBase, EventArgs>;
1499
+ readonly positionChanged: Event<_PageViewBase, EventArgs>;
1500
+ readonly rotateAngleChanged: Event<_PageViewBase, EventArgs>;
1501
+ readonly pageLoaded: Event<_PageViewBase, EventArgs>;
1502
+ _init(): void;
1503
+ dispose(): void;
1504
+ _bindTouchEvents(touchManager: _TouchManager): void;
1505
+ _initTouchEvents(): void;
1506
+ protected readonly _borderBoxMode: boolean;
1507
+ private _zoomByPinch;
1508
+ private _getFixedPosition;
1509
+ _getAbovePageCount(top: number): number;
1510
+ private _zoom;
1511
+ readonly pageIndex: number;
1512
+ pages: _Page[];
1513
+ readonly scrollTop: number;
1514
+ readonly scrollLeft: number;
1515
+ private _zoomFactorChangeInitiated;
1516
+ private _zoomModeChangeInitiated;
1517
+ zoomFactor: number;
1518
+ zoomMode: ZoomMode;
1519
+ panMode: boolean;
1520
+ private _bindEvents;
1521
+ private _startPanning;
1522
+ private _panning;
1523
+ private _stopPanning;
1524
+ _onPageIndexChanged(): void;
1525
+ _onZoomFactorChanged(oldValue: number, newValue: number): void;
1526
+ _onZoomModeChanged(oldValue: ZoomMode, newValue: ZoomMode): void;
1527
+ _onPositionChanged(): void;
1528
+ _onRotateAngleChanged(): void;
1529
+ _onPageLoaded(pageIndex: number, pageElement: HTMLDivElement): void;
1530
+ _renderViewPage(viewPage: HTMLDivElement, pageIndex: number, isContinuous: boolean): IPromise;
1531
+ _reserveViewPage(): void;
1532
+ _getViewPortHeight(): number;
1533
+ _getViewPortWidth(): number;
1534
+ _setPageTransform(viewPage: HTMLDivElement, pageIndex: number): void;
1535
+ _addViewPage(): HTMLDivElement;
1536
+ _getPageSize(pageIndex: number): _ISize;
1537
+ _render(pageIndex: number): IPromise;
1538
+ _moveToPagePosition(position: _IDocumentPosition): void;
1539
+ _updatePageViewTransform(): void;
1540
+ _updatePageIndex(index: number): void;
1541
+ moveToPage(pageIndex: number): IPromise;
1542
+ resolvePageIndex(pageIndex: number): number;
1543
+ moveToPosition(position: _IDocumentPosition): IPromise;
1544
+ private _calcZoomModeZoom;
1545
+ _zoomToView(): void;
1546
+ private _calcZoomToViewFactor;
1547
+ _zoomToViewWidth(): void;
1548
+ protected _calcZoomToViewWidthFactor(): number;
1549
+ _getTransformedPoint(pageIndex: number, top: number, left: number): Point;
1550
+ _hitTestPagePosition(pnt: _IPageHitTestInfo): _IHitTestInfo;
1551
+ rotatePageTo(pageIndex: number, rotateAngle: _RotateAngle): void;
1552
+ hitTest(clientX: number, clientY: number): _IHitTestInfo;
1553
+ resetPages(): void;
1554
+ refresh(fullUpdate?: boolean): void;
1555
+ isPageContentLoaded(pageIndex: number): boolean;
1556
+ protected _hitTestPageIndex(top: number): number;
1557
+ protected _pointInViewPanelClientArea(clientX: number, clientY: number): boolean;
1558
+ protected _panelViewPntToPageView(clientX: number, clientY: number): _IPageHitTestInfo;
1559
+ }
1560
+ export declare class _ContinuousPageView extends _PageViewBase {
1561
+ private static _preFetchPageCount;
1562
+ private _swipeSpeedReducer;
1563
+ private _disposeBodyStopSwipe;
1564
+ private _scrollingTimer;
1565
+ private _zoomFactorTimer;
1566
+ constructor(element: any);
1567
+ _init(): void;
1568
+ dispose(): void;
1569
+ _stopSwip(): void;
1570
+ _bindTouchEvents(touchManager: _TouchManager): void;
1571
+ _getAbovePageCount(top: number): number;
1572
+ refresh(fullUpdate?: boolean): void;
1573
+ protected _hitTestPageIndex(top: number): number;
1574
+ _guessPageIndex(): number;
1575
+ _render(pageIndex: number): IPromise;
1576
+ _moveToPagePosition(position: _IDocumentPosition): void;
1577
+ protected _pointInViewPanelClientArea(clientX: number, clientY: number): boolean;
1578
+ protected _panelViewPntToPageView(clientX: number, clientY: number): _IPageHitTestInfo;
1579
+ _reserveViewPage(): void;
1580
+ _updatePageViewTransform(): void;
1581
+ _zoomToViewWidth(): void;
1582
+ protected _calcZoomToViewWidthFactor(): number;
1583
+ private _ensurePageIndexPosition;
1584
+ private _getPageViewOffsetLeft;
1585
+ }
1586
+ export declare class _SinglePageView extends _PageViewBase {
1587
+ private _pagesContainer;
1588
+ private _vscroller;
1589
+ private _desiredPageScrollTop;
1590
+ private _innerNavigating;
1591
+ private _virtualScrollMode;
1592
+ static controlTemplate: string;
1593
+ constructor(element: any);
1594
+ _init(): void;
1595
+ private _initScroller;
1596
+ private _initEvents;
1597
+ _bindTouchEvents(touchManager: _TouchManager): void;
1598
+ _getTemplateParts(): object;
1599
+ applyTemplate(css: string, tpl: string, parts: Object): HTMLElement;
1600
+ virtualScrollMode: boolean;
1601
+ readonly _isScrollerVisible: boolean;
1602
+ readonly _scroller: _VScroller;
1603
+ readonly _hasPageVScrollBar: boolean;
1604
+ readonly _hasPageHScrollBar: boolean;
1605
+ _getPagesContainer(): HTMLElement;
1606
+ _getPageHeightWithoutZoom(pageIndex: number): number;
1607
+ private _hasScrollbar;
1608
+ private _updateScroller;
1609
+ _updateScrollerValue(): void;
1610
+ _doScrollerValueChanged(): void;
1611
+ _doContainerWheel(e: WheelEvent): void;
1612
+ _doContainerScroll(): void;
1613
+ _doContainerKeyDown(): void;
1614
+ _preventContainerScroll(): void;
1615
+ _innerMoveToPreviousPageAtBottom(e?: UIEvent): void;
1616
+ _innerMoveToNextPageAtTop(e?: UIEvent): void;
1617
+ _innerMoveToPage(pageIndex: number, pagePercent: number): void;
1618
+ _innerMoveToPagePosition(pagePercent: number): void;
1619
+ moveToPosition(position: _IDocumentPosition): IPromise;
1620
+ _moveToPagePosition(position: IInnerDocumentPosition): void;
1621
+ protected _hitTestPageIndex(top: number): number;
1622
+ protected _pointInViewPanelClientArea(clientX: number, clientY: number): boolean;
1623
+ protected _panelViewPntToPageView(clientX: number, clientY: number): _IPageHitTestInfo;
1624
+ _render(pageIndex: number): IPromise;
1625
+ _guessPageIndex(): number;
1626
+ _reserveViewPage(): void;
1627
+ _updatePageViewTransform(): void;
1628
+ _onPageLoaded(pageIndex: number, pageElement: HTMLDivElement): void;
1629
+ _onZoomFactorChanged(oldValue: number, newValue: number): void;
1630
+ _zoomToViewWidth(): void;
1631
+ protected _calcZoomToViewWidthFactor(): number;
1632
+ refresh(fullUpdate?: boolean): void;
1633
+ }
1634
+ export declare class _CompositePageView extends Control implements _IPageView {
1635
+ private _activePageView;
1636
+ private _singlePageView;
1637
+ private _continuousPageView;
1638
+ private _viewMode;
1639
+ static controlTemplate: string;
1640
+ constructor(element: any);
1641
+ readonly pageIndexChanged: Event<_CompositePageView, EventArgs>;
1642
+ readonly zoomFactorChanged: Event<_CompositePageView, EventArgs>;
1643
+ readonly zoomModeChanged: Event<_CompositePageView, EventArgs>;
1644
+ readonly positionChanged: Event<_CompositePageView, EventArgs>;
1645
+ readonly rotateAngleChanged: Event<_CompositePageView, EventArgs>;
1646
+ readonly pageLoaded: Event<_CompositePageView, EventArgs>;
1647
+ applyTemplate(css: string, tpl: string, parts: Object): HTMLElement;
1648
+ readonly pageIndex: number;
1649
+ pages: _Page[];
1650
+ zoomMode: ZoomMode;
1651
+ zoomFactor: number;
1652
+ panMode: boolean;
1653
+ viewMode: ViewMode;
1654
+ readonly scrollTop: number;
1655
+ readonly scrollLeft: number;
1656
+ readonly _activePageViewElement: HTMLElement;
1657
+ onPageIndexChanged(): void;
1658
+ onZoomFactorChanged(oldValue: number, newValue: number): void;
1659
+ onZoomModeChanged(oldValue: ZoomMode, newValue: ZoomMode): void;
1660
+ onPositionChanged(): void;
1661
+ onRotateAngleChanged(): void;
1662
+ onPageLoaded(e: PageLoadedEventArgs): void;
1663
+ private _updateActivePageView;
1664
+ private _initPageView;
1665
+ private _addPageViewHandlers;
1666
+ private _handlerPageIndexChanged;
1667
+ private _handlerZoomFactorChanged;
1668
+ private _handlerZoomModeChanged;
1669
+ private _handlerPositionChanged;
1670
+ private _handlerRotateAngleChanged;
1671
+ private _handlerPageLoaded;
1672
+ private _removePageViewHandlers;
1673
+ private _updatePageViewsVisible;
1674
+ moveToPage(pageIndex: number): IPromise;
1675
+ moveToPosition(position: _IDocumentPosition): IPromise;
1676
+ rotatePageTo(pageIndex: number, rotateAngle: _RotateAngle): void;
1677
+ hitTest(x: number, y: number): _IHitTestInfo;
1678
+ resetPages(): void;
1679
+ refresh(fullUpdate?: boolean): void;
1680
+ isPageContentLoaded(pageIndex: number): boolean;
1681
+ }
1682
+ export declare const _commandTagAttr = "command-tag";
1683
+ export declare function isIOS(): boolean;
1684
+ export declare function _createSvgBtn(svgContent: string): HTMLElement;
1685
+ export declare function _checkImageButton(button: HTMLElement, checked: boolean): void;
1686
+ export declare function _checkSeparatorShown(container: HTMLElement): void;
1687
+ export declare function _disableImageButton(button: HTMLElement, disabled: boolean): void;
1688
+ export declare function _getPositionByHitTestInfo(hitTestInfo: _IHitTestInfo): _IDocumentPosition;
1689
+ export declare function _setLandscape(pageSettings: _IPageSettings, landscape: boolean): void;
1690
+ export declare function _showImageButton(button: HTMLElement, visible: boolean): void;
1691
+ export declare function _isDisabledImageButton(button: HTMLElement): boolean;
1692
+ export declare function _isCheckedImageButton(button: HTMLElement): boolean;
1693
+ export declare function _toDOM(html: string): HTMLElement;
1694
+ export declare class _Toolbar extends Control {
1695
+ _toolbarWrapper: HTMLElement;
1696
+ private _toolbarContainer;
1697
+ private _toolbarLeft;
1698
+ private _toolbarRight;
1699
+ private _toolbarMoveTimer;
1700
+ private static _moveStep;
1701
+ private static _moveInterval;
1702
+ private static _enabledCss;
1703
+ private _disposed;
1704
+ static controlTemplate: string;
1705
+ constructor(element: any);
1706
+ applyTemplate(css: string, tpl: string, parts: Object): HTMLElement;
1707
+ dispose(): void;
1708
+ private _clearToolbarMoveTimer;
1709
+ private _scrollRight;
1710
+ private _scrollLeft;
1711
+ private _checkMoveButtonEnabled;
1712
+ private _showToolbarMoveButton;
1713
+ _globalize(): void;
1714
+ resetWidth(): void;
1715
+ addSeparator(): HTMLElement;
1716
+ svgButtonClicked: Event<_Toolbar, _IToolbarSvgButtonClickedEventArgs>;
1717
+ onSvgButtonClicked(e: _IToolbarSvgButtonClickedEventArgs): void;
1718
+ addCustomItem(element: any, commandTag?: any): void;
1719
+ addSvgButton(title: string, svgContent: string, commandTag: any, isToggle?: boolean): HTMLElement;
1720
+ refresh(fullUpdate?: boolean): void;
1721
+ }
1722
+ export declare class _ViewerToolbarBase extends _Toolbar {
1723
+ private _viewer;
1724
+ constructor(element: any, viewer: ViewerBase);
1725
+ _initToolbarItems(): void;
1726
+ onSvgButtonClicked(e: _IToolbarSvgButtonClickedEventArgs): void;
1727
+ readonly viewer: ViewerBase;
1728
+ static _initToolbarZoomValue(hostToolbar: HTMLElement, viewer: ViewerBase): void;
1729
+ static _initToolbarPageNumberInput(hostToolbar: HTMLElement, viewer: ViewerBase): void;
1730
+ }
1731
+ export declare class _SideTabs extends Control {
1732
+ private _headersContainer;
1733
+ private _contentsContainer;
1734
+ private _idCounter;
1735
+ private _tabPages;
1736
+ private _tabPageDic;
1737
+ readonly tabPageActived: Event<_SideTabs, EventArgs>;
1738
+ readonly tabPageVisibilityChanged: Event<_SideTabs, EventArgs>;
1739
+ readonly expanded: Event<_SideTabs, EventArgs>;
1740
+ readonly collapsed: Event<_SideTabs, EventArgs>;
1741
+ static _activedCss: string;
1742
+ static _collapsedCss: string;
1743
+ static controlTemplate: string;
1744
+ constructor(element: any);
1745
+ applyTemplate(css: string, tpl: string, parts: Object): HTMLElement;
1746
+ readonly tabPages: _TabPage[];
1747
+ getTabPage(id: string): _TabPage;
1748
+ getFirstShownTabPage(except?: _TabPage): _TabPage;
1749
+ readonly visibleTabPagesCount: number;
1750
+ readonly activedTabPage: _TabPage;
1751
+ removePage(page: string | _TabPage): void;
1752
+ addPage(title: string, svgIcon: string, index?: number): _TabPage;
1753
+ readonly isCollapsed: boolean;
1754
+ hide(page: string | _TabPage): void;
1755
+ show(page: string | _TabPage): void;
1756
+ deactive(page: string | _TabPage): void;
1757
+ active(page: string | _TabPage): void;
1758
+ enable(page: string | _TabPage, value?: boolean): void;
1759
+ enableAll(value?: boolean): void;
1760
+ onTabPageActived(): void;
1761
+ onTabPageVisibilityChanged(tabPage: _TabPage): void;
1762
+ onExpanded(): void;
1763
+ onCollapsed(): void;
1764
+ collapse(): void;
1765
+ expand(): void;
1766
+ toggle(): void;
1767
+ private _clearActiveStyles;
1768
+ private _getNewTabPageId;
1769
+ }
1770
+ export declare class _TabPage {
1771
+ private _header;
1772
+ private _outContent;
1773
+ private _content;
1774
+ private _id;
1775
+ constructor(outContent: HTMLElement, header: HTMLElement, id: string);
1776
+ readonly isActived: boolean;
1777
+ readonly isHidden: boolean;
1778
+ readonly id: string;
1779
+ readonly header: HTMLElement;
1780
+ readonly content: HTMLElement;
1781
+ readonly outContent: HTMLElement;
1782
+ enable(value?: boolean): void;
1783
+ format(customizer: (_TabPage: this) => void): void;
1784
+ }
1785
+ export interface _ITabPageVisibilityChangedEventArgs {
1786
+ tabPage: _TabPage;
1787
+ }
1788
+ export declare class _PageSetupEditor extends Control {
1789
+ private _divPaperKind;
1790
+ private _divOrientation;
1791
+ private _divMarginsLeft;
1792
+ private _divMarginsTop;
1793
+ private _divMarginsRight;
1794
+ private _divMarginsBottom;
1795
+ private _cmbPaperKind;
1796
+ private _cmbOrientation;
1797
+ private _numMarginsLeft;
1798
+ private _numMarginsTop;
1799
+ private _numMarginsRight;
1800
+ private _numMarginsBottom;
1801
+ private _uiUpdating;
1802
+ private _gPaperKind;
1803
+ private _gOrientation;
1804
+ private _gMargins;
1805
+ private _gLeft;
1806
+ private _gRight;
1807
+ private _gTop;
1808
+ private _gBottom;
1809
+ private _pageSettings;
1810
+ static controlTemplate: string;
1811
+ constructor(ele: any);
1812
+ pageSettings: _IPageSettings;
1813
+ private _globalize;
1814
+ private _updateValue;
1815
+ private _clonePageSettings;
1816
+ _updateUI(): void;
1817
+ private _findIndex;
1818
+ refresh(fullUpdate?: boolean): void;
1819
+ }
1820
+ export declare class _PageSetupDialog extends Popup {
1821
+ private _pageSetupEditorElement;
1822
+ private _btnClose;
1823
+ private _btnCancel;
1824
+ private _btnApply;
1825
+ private _pageSetupEditor;
1826
+ private _gHeader;
1827
+ readonly applied: Event<_PageSetupDialog, EventArgs>;
1828
+ static controlTemplate: string;
1829
+ constructor(ele: any);
1830
+ readonly pageSettings: _IPageSettings;
1831
+ private _globalize;
1832
+ private _addEvents;
1833
+ private _apply;
1834
+ private onApplied;
1835
+ showWithValue(pageSettings: _IPageSettings): void;
1836
+ refresh(fullUpdate?: boolean): void;
1837
+ }
1838
+ export declare class _MouseTool extends Control {
1839
+ private _pageView;
1840
+ private _viewPanelContainer;
1841
+ private _isActive;
1842
+ private _isStarted;
1843
+ private _startPnt;
1844
+ private _stopOnClientOut;
1845
+ private _css;
1846
+ private _activeCss;
1847
+ private _visibleCss;
1848
+ constructor(element: any, viewPanelContainer: HTMLElement, pageView: _IPageView, stopOnClientOut: boolean, css: string, activeCss: string, visibleCss: string);
1849
+ activate(): void;
1850
+ deactivate(): void;
1851
+ reset(): void;
1852
+ readonly isActive: boolean;
1853
+ readonly startPnt: Point;
1854
+ readonly pageView: _IPageView;
1855
+ readonly viewPanelContainer: HTMLElement;
1856
+ protected _initElement(): void;
1857
+ protected _innerStop(pnt?: Point): void;
1858
+ protected _getTemplateParts(): Object;
1859
+ protected _onMouseDown(e: MouseEvent): void;
1860
+ protected _onMouseMove(e: MouseEvent): void;
1861
+ protected _onMouseUp(e: MouseEvent): void;
1862
+ protected _start(ht: _IHitTestInfo): void;
1863
+ protected _move(pnt: Point, ht: _IHitTestInfo): void;
1864
+ protected _stop(pnt?: Point): void;
1865
+ protected _bindEvents(): void;
1866
+ protected _toClientPoint(e: MouseEvent): Point;
1867
+ protected _testPageWorkingAreaHit(pnt: Point): _IHitTestInfo;
1868
+ }
1869
+ export declare class _Rubberband extends _MouseTool {
1870
+ readonly applied: Event<_Rubberband, _RubberbandOnAppliedEventArgs>;
1871
+ constructor(element: any, viewPanelContainer: HTMLElement, pageView: _IPageView);
1872
+ protected _start(ht: _IHitTestInfo): void;
1873
+ protected _move(pnt: Point, ht: _IHitTestInfo): void;
1874
+ protected _stop(pnt?: Point): void;
1875
+ private _onApplied;
1876
+ }
1877
+ export declare class _Magnifier extends _MouseTool {
1878
+ static controlTemplate: string;
1879
+ private readonly _Magnification;
1880
+ private _viewPageDiv;
1881
+ private _currentPageIndex;
1882
+ constructor(element: any, viewPanelContainer: HTMLElement, pageView: _IPageView);
1883
+ deactivate(): void;
1884
+ reset(): void;
1885
+ protected _getTemplateParts(): {
1886
+ _viewPageDiv: string;
1887
+ };
1888
+ protected _bindEvents(): void;
1889
+ protected _start(ht: _IHitTestInfo): void;
1890
+ protected _move(pnt: Point, ht: _IHitTestInfo): void;
1891
+ private _showMagnifer;
1892
+ private _fillPage;
1893
+ private _showHitPosition;
1894
+ }
1895
+ /**
1896
+ * Base class for all the viewer controls.
1897
+ */
1898
+ export declare class ViewerBase extends Control implements IHttpRequestHandler {
1899
+ private _leftPanel;
1900
+ _viewpanelContainer: HTMLElement;
1901
+ private _initialPosition;
1902
+ private _viewerContainer;
1903
+ private _pages;
1904
+ _documentEventKey: string;
1905
+ private _requestHeaders;
1906
+ private _keepSerConnTimer;
1907
+ private _documentSource;
1908
+ private _pageIndex;
1909
+ private _mouseMode;
1910
+ private _viewMode;
1911
+ private _serviceUrl;
1912
+ private _filePath;
1913
+ private _paginated;
1914
+ private _needBind;
1915
+ private _historyManager;
1916
+ private _fullScreen;
1917
+ private _miniToolbarPinnedTimer;
1918
+ private _autoHeightCalculated;
1919
+ private _exportFormats;
1920
+ _searchManager: _SearchManager;
1921
+ private _rubberband;
1922
+ private _magnifier;
1923
+ private _thresholdWidth;
1924
+ private _outlinesPageId;
1925
+ private _thumbnailsPageId;
1926
+ private _exportsPageId;
1927
+ private _pageSetupPageId;
1928
+ _sidePanel: HTMLElement;
1929
+ private _toolbar;
1930
+ private _mobileToolbar;
1931
+ private _miniToolbar;
1932
+ private _splitter;
1933
+ private _pageSetupDialog;
1934
+ private _expiredTime;
1935
+ private _hostOriginWidth;
1936
+ private _hostOriginHeight;
1937
+ private _bodyOriginScrollTop;
1938
+ private _bodyOriginScrollLeft;
1939
+ private _footer;
1940
+ private _zoomBar;
1941
+ private _searchBar;
1942
+ private _searchOptionsMenu;
1943
+ _hamburgerMenu: _HamburgerMenu;
1944
+ private _viewMenu;
1945
+ private _historyMoving;
1946
+ private _historyTimer;
1947
+ private _gSearchTitle;
1948
+ private _gMatchCase;
1949
+ private _gWholeWord;
1950
+ private _gSearchResults;
1951
+ private _gThumbnailsTitle;
1952
+ private _gOutlinesTitle;
1953
+ private _gPageSetupTitle;
1954
+ private _gPageSetupApplyBtn;
1955
+ private _gExportsPageTitle;
1956
+ private _gExportsPageApplyBtn;
1957
+ private _gExportFormatTitle;
1958
+ static _seperatorHtml: string;
1959
+ private static _viewpanelContainerMinHeight;
1960
+ private static _miniToolbarPinnedTime;
1961
+ private static _narrowCss;
1962
+ private static _narrowWidthThreshold;
1963
+ private static _thumbnailWidth;
1964
+ private static _historyTimeout;
1965
+ private _prohibitAddHistory;
1966
+ private _initialScroll;
1967
+ private _pageMoving;
1968
+ private _devicePixelRatio;
1969
+ static _zoomValuesFormatter: (value: number) => string;
1970
+ static _zoomValuesParser: (text: string) => number;
1971
+ static _defaultZoomValues: {
1972
+ value: number;
1973
+ name: string;
1974
+ }[];
1975
+ private static _exportItems;
1976
+ /**
1977
+ * Gets or sets the template used to instantiate the viewer controls.
1978
+ */
1979
+ static controlTemplate: string;
1980
+ readonly _documentSourceChanged: Event<ViewerBase, EventArgs>;
1981
+ /**
1982
+ * Occurs after the page index is changed.
1983
+ */
1984
+ readonly pageIndexChanged: Event<ViewerBase, EventArgs>;
1985
+ /**
1986
+ * Occurs after the view mode is changed.
1987
+ */
1988
+ readonly viewModeChanged: Event<ViewerBase, EventArgs>;
1989
+ /**
1990
+ * Occurs after the mouse mode is changed.
1991
+ */
1992
+ readonly mouseModeChanged: Event<ViewerBase, EventArgs>;
1993
+ /**
1994
+ * Occurs after the full screen mode is changed.
1995
+ */
1996
+ readonly fullScreenChanged: Event<ViewerBase, EventArgs>;
1997
+ /**
1998
+ * Occurs after the zoom factor is changed.
1999
+ */
2000
+ readonly zoomFactorChanged: Event<ViewerBase, _IZoomFactorChangedEventArgs>;
2001
+ /**
2002
+ * Occurs after the zoom mode is changed.
2003
+ */
2004
+ readonly zoomModeChanged: Event<ViewerBase, _IZoomModeChangedEventArgs>;
2005
+ /**
2006
+ * Occurs when querying the request data sent to the service before loading the document.
2007
+ */
2008
+ readonly queryLoadingData: Event<ViewerBase, QueryLoadingDataEventArgs>;
2009
+ /**
2010
+ * Occurs before every request sent to the server.
2011
+ *
2012
+ * The event allows you to modify request options like URL, headers,
2013
+ * data and even the request method, before sending them to the server.
2014
+ * The event passes an argument of the {@link RequestEventArgs} type,
2015
+ * whose properties have the same meaning and structure as the
2016
+ * parameters of the {@link wijmo.httpRequest} method, and can be
2017
+ * modified to update the request attributes.
2018
+ *
2019
+ * For example, you can put an authentication token to the 'Authorization'
2020
+ * header:
2021
+ *
2022
+ * <pre>viewer.beforeSendRequest.addHandler((s, e) =&gt; {
2023
+ * e.settings.requestHeaders.Authorization = 'Bearer ' + appAuthService.getToken();
2024
+ * });
2025
+ * </pre>
2026
+ *
2027
+ * If the URL is used to induce an HTTP request that is executed by the browser
2028
+ * automatically (for example, if the URL is used as a parameter to the
2029
+ * window.open() function, or as a HTML link), then the e.settings argument
2030
+ * will be null.
2031
+ */
2032
+ readonly beforeSendRequest: Event<ViewerBase, RequestEventArgs>;
2033
+ /**
2034
+ * Occurs when the next page has been loaded from the server, and its SVG has been rendered.
2035
+ */
2036
+ readonly pageLoaded: Event<ViewerBase, PageLoadedEventArgs>;
2037
+ /**
2038
+ * Initializes a new instance of the {@link ViewerBase} class.
2039
+ *
2040
+ * @param element The DOM element that will host the control, or a CSS selector for the host element (e.g. '#theCtrl').
2041
+ * @param options JavaScript object containing initialization data for the control.
2042
+ */
2043
+ constructor(element: any, options?: any);
2044
+ _getProductInfo(): string;
2045
+ /**
2046
+ * Gets or sets the address of C1 Web API service.
2047
+ *
2048
+ * For example, http://demos.componentone.com/ASPNET/c1webapi/4.0.20172.105/api/report
2049
+ */
2050
+ serviceUrl: string;
2051
+ /**
2052
+ * Gets or sets the full path to the document on the server.
2053
+ *
2054
+ * The path starts with the key of a provider which is registered at server for locating specified document.
2055
+ */
2056
+ filePath: string;
2057
+ /**
2058
+ * Gets or sets an object containing request headers to be used when sending
2059
+ * or requesting data.
2060
+ *
2061
+ * The most typical use for this property is in scenarios where authentication
2062
+ * is required. For example:
2063
+ *
2064
+ * <pre>viewer.requestHeaders = {
2065
+ * Authorization: 'Bearer ' + appAuthService.getToken();
2066
+ * };</pre>
2067
+ */
2068
+ requestHeaders: any;
2069
+ /**
2070
+ * Gets or sets the threshold to switch between mobile and PC template.
2071
+ *
2072
+ * Default value is 767px. If width of control is smaller than thresholdWidth, mobile template will
2073
+ * be applied. If width of control is equal or greater than thresholdWidth, PC template
2074
+ * will be applied.
2075
+ * If thresholdWidth is set to 0, then only PC template is applied
2076
+ * and if it's set to a large number e.g. 9999, then only mobile template is applied.
2077
+ */
2078
+ thresholdWidth: number;
2079
+ _innerPaginated: boolean;
2080
+ protected _setTabOrder(value: number): void;
2081
+ protected _setIsDisabled(value: boolean): void;
2082
+ private _updateInnerElementsTabIndex;
2083
+ invalidate(fullUpdate?: boolean): void;
2084
+ /**
2085
+ * Reloads the document.
2086
+ *
2087
+ * This is useful for force reloading and rerendering the document.
2088
+ */
2089
+ reload(): void;
2090
+ /**
2091
+ * Refreshes the control.
2092
+ *
2093
+ * @param fullUpdate Whether to update the control layout as well as the content.
2094
+ */
2095
+ refresh(fullUpdate?: boolean): void;
2096
+ private _updateLayout;
2097
+ private _switchTemplate;
2098
+ _getSource(): _DocumentSource;
2099
+ _needBindDocumentSource(): void;
2100
+ _supportsPageSettingActions(): boolean;
2101
+ _isMobileTemplate(): boolean;
2102
+ private _init;
2103
+ private _initTools;
2104
+ _globalize(): void;
2105
+ private _autoCalculateHeight;
2106
+ private _bindEvents;
2107
+ private _checkMiniToolbarVisible;
2108
+ private _showMiniToolbar;
2109
+ _goToBookmark(action: _IDocAction): void;
2110
+ _executeCustomAction(action: _IDocAction): void;
2111
+ _getStatusUtilCompleted(documentSource: _DocumentSource): void;
2112
+ private _initChildren;
2113
+ private _initSearchBar;
2114
+ private _showSearchBar;
2115
+ private _initFooter;
2116
+ private _showFooter;
2117
+ private _createChildren;
2118
+ private _initPageView;
2119
+ private readonly _pageView;
2120
+ private _initSplitter;
2121
+ _toggleSplitter(collapsed?: boolean): void;
2122
+ private _resetMiniToolbarPosition;
2123
+ private _resetToolbarWidth;
2124
+ private _resetViewPanelContainerWidth;
2125
+ _shouldAutoHeight(): boolean;
2126
+ private _initSidePanel;
2127
+ private _clearPreHightLights;
2128
+ private _highlightPosition;
2129
+ private _scrollToPosition;
2130
+ private _initSidePanelSearch;
2131
+ private _initSidePanelOutlines;
2132
+ private _initSidePanelThumbnails;
2133
+ private _initSidePanelExports;
2134
+ private _ensureExportFormatsLoaded;
2135
+ private _updateExportTab;
2136
+ private _initSidePanelPageSetup;
2137
+ _executeAction(action: _ViewerActionType): void;
2138
+ _initSearchOptionsMenu(owner: HTMLElement): void;
2139
+ _initHamburgerMenu(owner: HTMLElement): void;
2140
+ _initViewMenu(owner: HTMLElement): void;
2141
+ private _initToolbar;
2142
+ private _clearExportFormats;
2143
+ private _supportedExportsDesc;
2144
+ private readonly _exportItemDescriptions;
2145
+ _actionIsChecked(action: _ViewerActionType): boolean;
2146
+ _isDocumentSourceLoaded(): boolean;
2147
+ _actionIsDisabled(action: _ViewerActionType): boolean;
2148
+ _actionIsShown(action: _ViewerActionType): boolean;
2149
+ readonly _viewerActionStatusChanged: Event<ViewerBase, EventArgs>;
2150
+ _onViewerActionStatusChanged(e: _IViewerActionChangedEventArgs): void;
2151
+ private _setViewerAction;
2152
+ private _updateViewerActions;
2153
+ private _updateViewModeActions;
2154
+ private _updatePageSettingsActions;
2155
+ private _updateMouseModeActions;
2156
+ private _updateZoomModeActions;
2157
+ private _updateZoomFactorActions;
2158
+ private _onPageSettingsUpdated;
2159
+ private _onPageCountUpdated;
2160
+ private _updatePageNavActions;
2161
+ private _onHistoryManagerStatusUpdated;
2162
+ _updateUI(): void;
2163
+ private _updateViewContainerCursor;
2164
+ private _updateFullScreenStyle;
2165
+ /**
2166
+ * Shows the page setup dialog.
2167
+ */
2168
+ showPageSetupDialog(): void;
2169
+ private _createPageSetupDialog;
2170
+ /**
2171
+ * Scales the current page to show the whole page in view panel.
2172
+ */
2173
+ zoomToView(): void;
2174
+ /**
2175
+ * Scales the current page to fit the width of the view panel.
2176
+ */
2177
+ zoomToViewWidth(): void;
2178
+ private _setPageLandscape;
2179
+ _setPaginated(paginated: boolean): void;
2180
+ private _setPageSettings;
2181
+ _showViewPanelErrorMessage(message: string): void;
2182
+ _showViewPanelMessage(message?: string, className?: string): void;
2183
+ _removeViewPanelMessage(): void;
2184
+ _reRenderDocument(): void;
2185
+ private _zoomBtnClicked;
2186
+ _getDocumentSource(): _DocumentSource;
2187
+ _setDocumentSource(value: _DocumentSource): void;
2188
+ _loadDocument(value: _DocumentSource, force?: boolean, disposeSource?: boolean): IPromise;
2189
+ protected _actionElementClicked(element: SVGElement): void;
2190
+ protected _getActionInfo(element: SVGElement): _IDocAction;
2191
+ private _onDocumentSourceLoadCompleted;
2192
+ _createPage(index: number, defPageSize: _ISize): _Page;
2193
+ _clearKeepSerConnTimer(): void;
2194
+ _keepServiceConnection(): void;
2195
+ _getExpiredTime(): number;
2196
+ _disposeDocument(disposeSource?: boolean): void;
2197
+ _resetDocument(): void;
2198
+ _setDocumentRendering(): void;
2199
+ /**
2200
+ * Moves to the page at the specified index.
2201
+ *
2202
+ * @param index Index (0-base) of the page to move to.
2203
+ * @return An {@link wijmo.viewer.IPromise} object with current page index.
2204
+ */
2205
+ moveToPage(index: number): IPromise;
2206
+ private _getCurrentPosition;
2207
+ private _resolvePageIndex;
2208
+ private _innerMoveToPage;
2209
+ private _moveToLastPage;
2210
+ private _moveBackwardHistory;
2211
+ private _moveForwardHistory;
2212
+ private _moveToHistory;
2213
+ private _isPositionEquals;
2214
+ private _isPageAnglesChanged;
2215
+ private _updateHistoryCurrent;
2216
+ private _innerAddHistory;
2217
+ private _addHistory;
2218
+ private _updateCurrentPageAngles;
2219
+ private _mergeHistory;
2220
+ private _ensureDocumentLoadCompleted;
2221
+ _updatePageIndex(index: number): void;
2222
+ private _getRotatedAngle;
2223
+ private _rotateDocument;
2224
+ private _rotatePage;
2225
+ /**
2226
+ * Gets or sets a value indicating the current zoom mode to show the document pages.
2227
+ */
2228
+ zoomMode: ZoomMode;
2229
+ /**
2230
+ * Gets or sets a value indicating the current zoom factor to show the document pages.
2231
+ */
2232
+ zoomFactor: number;
2233
+ /**
2234
+ * Gets or sets a value indicating how to show the document pages.
2235
+ */
2236
+ viewMode: ViewMode;
2237
+ /**
2238
+ * Gets or sets a value indicating the mouse behavior.
2239
+ *
2240
+ * The default is SelectTool which means clicking and dragging the mouse will select the text.
2241
+ */
2242
+ mouseMode: MouseMode;
2243
+ /**
2244
+ * Gets or sets a value indicating whether the viewer is under full screen mode.
2245
+ */
2246
+ fullScreen: boolean;
2247
+ /**
2248
+ * Gets the index of the page which is currently displayed in the view panel.
2249
+ */
2250
+ readonly pageIndex: number;
2251
+ private _initMiniToolbar;
2252
+ private _pinMiniToolbar;
2253
+ _onDocumentSourceChanged(e?: EventArgs): void;
2254
+ /**
2255
+ * Raises the {@link pageIndexChanged} event.
2256
+ *
2257
+ * @param e The {@link EventArgs} object.
2258
+ */
2259
+ onPageIndexChanged(e?: EventArgs): void;
2260
+ /**
2261
+ * Raises the {@link viewModeChanged} event.
2262
+ *
2263
+ * @param e The {@link EventArgs} object.
2264
+ */
2265
+ onViewModeChanged(oldValue: ViewMode, newValue: ViewMode): void;
2266
+ /**
2267
+ * Raises the {@link mouseModeChanged} event.
2268
+ *
2269
+ * @param e The {@link EventArgs} object.
2270
+ */
2271
+ onMouseModeChanged(e?: EventArgs): void;
2272
+ /**
2273
+ * Raises the {@link fullScreenChanged} event.
2274
+ *
2275
+ * @param e The {@link EventArgs} object.
2276
+ */
2277
+ onFullScreenChanged(e?: EventArgs): void;
2278
+ /**
2279
+ * Raises the {@link zoomFactorChanged} event.
2280
+ *
2281
+ * @param e The {@link EventArgs} object.
2282
+ */
2283
+ onZoomFactorChanged(e?: EventArgs): void;
2284
+ /**
2285
+ * Raises the {@link zoomModeChanged} event.
2286
+ *
2287
+ * @param e The {@link EventArgs} object.
2288
+ */
2289
+ onZoomModeChanged(e?: EventArgs): void;
2290
+ /**
2291
+ * Raises the {@link queryLoadingData} event.
2292
+ *
2293
+ * @param e The {@link QueryLoadingDataEventArgs} object that contains the loading data.
2294
+ */
2295
+ onQueryLoadingData(e: QueryLoadingDataEventArgs): void;
2296
+ /**
2297
+ * Raises the {@link beforeSendRequest} event.
2298
+ *
2299
+ * @param e The {@link RequestEventArgs} object.
2300
+ */
2301
+ onBeforeSendRequest(e: RequestEventArgs): void;
2302
+ /**
2303
+ * Raises the {@link pageLoaded} event.
2304
+ *
2305
+ * @param e The {@link PageLoadedEventArgs} object.
2306
+ */
2307
+ onPageLoaded(e: PageLoadedEventArgs): void;
2308
+ beforeSend(e: RequestEventArgs): void;
2309
+ }
2310
+ /**
2311
+ * Defines the PDFViewer control for displaying the PDF document.
2312
+ *
2313
+ * The {@link serviceUrl} property indicates the url of C1 Web API which provides PDF services.
2314
+ * The PDF services use C1PdfDocumentSource to process PDF document.
2315
+ *
2316
+ * Here is the sample to show a PDF document:
2317
+ * ```typescript
2318
+ * import { PdfViewer } from '@grapecity/wijmo.viewer';
2319
+ * var pdfViewer = new PdfViewer('#pdfViewer');
2320
+ * pdfViewer.serviceUrl= 'http://demos.componentone.com/ASPNET/c1webapi/4.0.20172.105/api/report';
2321
+ * pdfViewer.filePath= 'PdfRoot/DefaultDocument.pdf';
2322
+ * ```
2323
+ */
2324
+ export declare class PdfViewer extends ViewerBase {
2325
+ /**
2326
+ * Initializes a new instance of the {@link PdfViewer} class.
2327
+ *
2328
+ * @param element The DOM element that will host the control, or a CSS selector for the host element (e.g. '#theCtrl').
2329
+ * @param options JavaScript object containing initialization data for the control.
2330
+ */
2331
+ constructor(element: any, options?: any);
2332
+ _getProductInfo(): string;
2333
+ readonly _innerDocumentSource: _PdfDocumentSource;
2334
+ _getSource(): _PdfDocumentSource;
2335
+ }
2336
+ export declare class _ViewerMiniToolbar extends _ViewerToolbarBase {
2337
+ private _gPrint;
2338
+ private _gPreviousPage;
2339
+ private _gNextPage;
2340
+ private _gZoomOut;
2341
+ private _gZoomIn;
2342
+ private _gExitFullScreen;
2343
+ constructor(element: any, viewer: ViewerBase);
2344
+ _initToolbarItems(): void;
2345
+ _globalize(): void;
2346
+ }
2347
+ export declare class _ViewerToolbar extends _ViewerToolbarBase {
2348
+ private _gPaginated;
2349
+ private _gPrint;
2350
+ private _gExports;
2351
+ private _gPortrait;
2352
+ private _gLandscape;
2353
+ private _gPageSetup;
2354
+ private _gFirstPage;
2355
+ private _gPreviousPage;
2356
+ private _gNextPage;
2357
+ private _gLastPage;
2358
+ private _gBackwardHistory;
2359
+ private _gForwardHistory;
2360
+ private _gSelectTool;
2361
+ private _gMoveTool;
2362
+ private _gContinuousMode;
2363
+ private _gSingleMode;
2364
+ private _gWholePage;
2365
+ private _gPageWidth;
2366
+ private _gZoomOut;
2367
+ private _gZoomIn;
2368
+ private _gRubberbandTool;
2369
+ private _gMagnifierTool;
2370
+ private _gRotatePage;
2371
+ private _gRotateDocument;
2372
+ private _gFullScreen;
2373
+ constructor(element: any, viewer: ViewerBase);
2374
+ _globalize(): void;
2375
+ _initToolbarItems(): void;
2376
+ }
2377
+ export declare class _ViewerMobileToolbarBase extends _ViewerToolbarBase {
2378
+ constructor(element: any, viewer: ViewerBase);
2379
+ }
2380
+ export declare class _ViewerZoomBar extends _ViewerMobileToolbarBase {
2381
+ private _gZoomOut;
2382
+ private _gZoomIn;
2383
+ constructor(element: any, viewer: ViewerBase);
2384
+ _initToolbarItems(): void;
2385
+ _globalize(): void;
2386
+ }
2387
+ export declare class _ViewerMobileToolbar extends _ViewerMobileToolbarBase {
2388
+ private _gShowHamburgerMenu;
2389
+ private _gPrevPage;
2390
+ private _gNextPage;
2391
+ private _gShowViewMenu;
2392
+ private _gShowSearchBar;
2393
+ private _gFullScreen;
2394
+ constructor(element: any, viewer: ViewerBase);
2395
+ _initToolbarItems(): void;
2396
+ _globalize(): void;
2397
+ }
2398
+ export declare class _SearchBar extends _ViewerMobileToolbarBase {
2399
+ private _gSearchOptions;
2400
+ private _gSearchPrev;
2401
+ private _gSearchNext;
2402
+ constructor(element: any, viewer: ViewerBase);
2403
+ _initToolbarItems(): void;
2404
+ private _initSearchInput;
2405
+ private _initSearchBtnGroups;
2406
+ _globalize(): void;
2407
+ }
2408
+ export declare class _ViewerMenuBase extends Menu {
2409
+ private _viewer;
2410
+ constructor(viewer: ViewerBase, owner: HTMLElement, options?: any);
2411
+ readonly viewer: ViewerBase;
2412
+ private _bindMenuItems;
2413
+ _initItems(): any[];
2414
+ _internalFormatItem(item: _ViewerMenuItem, itemElement: HTMLElement): void;
2415
+ private _formatItem;
2416
+ private _onItemClicked;
2417
+ _updateActionStatus(actionElement: HTMLElement, actionType: _ViewerActionType): void;
2418
+ private _updateActionStatusCore;
2419
+ _updateItemsStatus(): void;
2420
+ refresh(fullUpdate?: boolean): void;
2421
+ showMenu(above?: boolean): void;
2422
+ }
2423
+ export declare class _SearchOptionsMenu extends _ViewerMenuBase {
2424
+ constructor(viewer: ViewerBase, owner: HTMLElement, options?: any);
2425
+ _initItems(): any[];
2426
+ _internalFormatItem(item: _ViewerMenuItem, itemElement: HTMLElement): void;
2427
+ _updateActionStatus(actionElement: HTMLElement, actionType: _ViewerActionType): void;
2428
+ }
2429
+ export declare class _HamburgerMenu extends _ViewerMenuBase {
2430
+ constructor(viewer: ViewerBase, owner: HTMLElement, options?: any);
2431
+ _initItems(): any[];
2432
+ }
2433
+ export declare class _ViewMenu extends _ViewerMenuBase {
2434
+ constructor(viewer: ViewerBase, owner: HTMLElement, options?: any);
2435
+ _initItems(): any[];
2436
+ }
2437
+ export declare class _ReportHamburgerMenu extends _HamburgerMenu {
2438
+ constructor(viewer: ViewerBase, owner: HTMLElement, options?: any);
2439
+ _initItems(): any[];
2440
+ }
2441
+ export declare enum _ArDocumentFormat {
2442
+ Image = 3,
2443
+ Pdf = 4,
2444
+ Html = 5,
2445
+ Word = 6,
2446
+ Xls = 7,
2447
+ Xml = 8,
2448
+ Svg = 9
2449
+ }
2450
+ export declare enum _ArLoadState {
2451
+ NotStarted = 0,
2452
+ Rendering = 1,
2453
+ Rendered = 2,
2454
+ Cancelling = 3,
2455
+ Cancelled = 4,
2456
+ Error = 5
2457
+ }
2458
+ export declare enum _ArErrorCode {
2459
+ InvalidCulture = 0,
2460
+ InvalidVersion = 1,
2461
+ UnknownReportType = 2,
2462
+ NoSuchReport = 3,
2463
+ ParametersNotSet = 4,
2464
+ RuntimeIsBusy = 5,
2465
+ InternalError = 6,
2466
+ ParameterNotExists = 7,
2467
+ NoAcceptableFormats = 8,
2468
+ InvalidToken = 9,
2469
+ UnsupportedFormat = 10,
2470
+ InvalidSetOfParameters = 11,
2471
+ MethodNotSupported = 12,
2472
+ NoValidLicenseFound = 13
2473
+ }
2474
+ export interface _IArError {
2475
+ Description: string;
2476
+ ErrorCode: _ArErrorCode;
2477
+ }
2478
+ export interface _IArMethodResponse {
2479
+ Error: _IArError;
2480
+ }
2481
+ export interface _IArJsonResponse<T extends _IArMethodResponse> {
2482
+ xhr: XMLHttpRequest;
2483
+ json?: T;
2484
+ }
2485
+ export interface _IADrillthroughReportData {
2486
+ Parameters: _IArParameter[];
2487
+ NumberOfParameters: number;
2488
+ ReportName: string;
2489
+ }
2490
+ export declare class _ArReportService extends _DocumentService {
2491
+ static StateToStatus(state: _ArLoadState): _ExecutionStatus;
2492
+ static ConvertFormat(format: string): _ArDocumentFormat;
2493
+ private _lifeTime;
2494
+ private _drillthroughData;
2495
+ private _token;
2496
+ private _parameters;
2497
+ private _hasDelayedContent;
2498
+ private _canChangeRenderMode;
2499
+ private _documentFormat;
2500
+ private _autoRun;
2501
+ private _uid;
2502
+ private _isDisposed;
2503
+ private _hasOutlines;
2504
+ static IsError(data: _IArJsonResponse<_IArMethodResponse>): data is _IArJsonResponse<_IArMethodResponse>;
2505
+ readonly isDisposed: boolean;
2506
+ readonly autoRun: boolean;
2507
+ readonly canChangeRenderMode: boolean;
2508
+ readonly parameters: _IArParameter[];
2509
+ getStatus(): IPromise;
2510
+ setPageSettings(pageSettings: _IPageSettings): IPromise;
2511
+ getBookmark(name: string): IPromise;
2512
+ executeCustomAction(action: _IArDocAction): IPromise;
2513
+ load(data?: any): IPromise;
2514
+ loadDrillthroughReport(data: _IADrillthroughReportData): IPromise;
2515
+ processOnClick(actionData: string): IPromise;
2516
+ getReportProperty(name: string): IPromise;
2517
+ render(data?: any): IPromise;
2518
+ setDrillthroughData(value: _IADrillthroughReportData): void;
2519
+ dispose(async?: boolean): IPromise;
2520
+ getOutlines(test?: boolean): IPromise;
2521
+ _getError(data: _IArJsonResponse<any> | XMLHttpRequest): string;
2522
+ _getBookmarks(parentId: number, startFrom: number, count: number, getChildren?: boolean): IPromise;
2523
+ renderToFilter(options: _IRenderOptions): IPromise;
2524
+ search(options: _ISearchOptions): IPromise;
2525
+ setParameters(value: _IArParameter[]): IPromise;
2526
+ validateParameter(value: _IArParameter): IPromise;
2527
+ getRenderToFilterUrl(options: _IRenderOptions): IPromise;
2528
+ getExportedUrl(options: _IArExportOptions): IPromise;
2529
+ getPingTimeout(): number;
2530
+ getSupportedExportDescriptions(): IPromise;
2531
+ getFeatures(): IPromise;
2532
+ private _ajax;
2533
+ private _convertFromServiceParameter;
2534
+ private _convertToServiceParameter;
2535
+ private _merge;
2536
+ private _mergeParameters;
2537
+ private _parseXml;
2538
+ }
2539
+ export interface _IArDocumentOptions extends _IDocumentOptions {
2540
+ }
2541
+ export declare class _ArReportSource extends _ReportSourceBase {
2542
+ constructor(options: _IArDocumentOptions, httpRequest: IHttpRequestHandler);
2543
+ readonly autoRun: boolean;
2544
+ readonly encodeRequestParams: boolean;
2545
+ readonly hasParameters: boolean;
2546
+ readonly hasThumbnails: boolean;
2547
+ readonly _innerService: _ArReportService;
2548
+ getParameters(): IPromise;
2549
+ setParameters(value: Object): IPromise;
2550
+ print(rotations?: _RotateAngle[]): void;
2551
+ _createDocumentService(options: _IDocumentService): _DocumentService;
2552
+ _getIsDisposed(): boolean;
2553
+ _updateExecutionInfo(data: _IArExecutionInfo): void;
2554
+ _checkIsLoadCompleted(data: _IReportStatus): boolean;
2555
+ _convertParameters(params: _IArParameter[]): _IParameter[];
2556
+ }
2557
+ /**
2558
+ * Defines the ReportViewer control for displaying the FlexReport or SSRS report.
2559
+ *
2560
+ * The {@link serviceUrl} property indicates the url of C1 Web API which provides report services.
2561
+ * The report services use C1FlexReport to process a FlexReport, and use C1SSRSDocumentSource and C1PdfDocumentSource to process an SSRS report.
2562
+ *
2563
+ * Here is a sample of how to show a FlexReport:
2564
+ * ```typescript
2565
+ * import { ReportViewer } from '@grapecity/wijmo.viewer';
2566
+ * var reportViewer = new ReportViewer('#reportViewer');
2567
+ * reportViewer.serviceUrl = 'http://demos.componentone.com/ASPNET/c1webapi/4.0.20172.105/api/report';
2568
+ * reportViewer.filePath = 'ReportsRoot/Formatting/AlternateBackground.flxr';
2569
+ * reportViewer.reportName = 'AlternateBackground';
2570
+ * ```
2571
+ *
2572
+ * Here is a sample of how to show an SSRS report:
2573
+ * ```typescript
2574
+ * import { ReportViewer } from '@grapecity/wijmo.viewer';
2575
+ * var reportViewer = new ReportViewer('#reportViewer');
2576
+ * reportViewer.serviceUrl = 'http://demos.componentone.com/ASPNET/c1webapi/4.0.20172.105/api/report';
2577
+ * reportViewer.filePath = 'c1ssrs/AdventureWorks/Company Sales';
2578
+ * ```
2579
+ */
2580
+ export declare class ReportViewer extends ViewerBase {
2581
+ private _reportName;
2582
+ private _clientParameters;
2583
+ private _paramsEditor;
2584
+ private _gParameterTitle;
2585
+ private _parametersPageId;
2586
+ static _parameterCommandTag: number;
2587
+ /**
2588
+ * Initializes a new instance of the {@link ReportViewer} class.
2589
+ *
2590
+ * @param element The DOM element that will host the control, or a CSS selector for the host element (e.g. '#theCtrl').
2591
+ * @param options JavaScript object containing initialization data for the control.
2592
+ */
2593
+ constructor(element: any, options?: any);
2594
+ _getProductInfo(): string;
2595
+ /**
2596
+ * Gets or sets the report name.
2597
+ *
2598
+ * For FlexReport, sets it with the report name defined in the FlexReport definition file.
2599
+ * For SSRS report, leave it as empty string. The SSRS report path is specified by the {@link filePath} property.
2600
+ */
2601
+ reportName: string;
2602
+ /**
2603
+ * Gets or sets a value indicating whether the content should be represented as a set of fixed sized pages.
2604
+ *
2605
+ * The default value is null which means using paginated mode for a FlexReport and non-paginaged mode for an SSRS report.
2606
+ */
2607
+ paginated: boolean;
2608
+ /**
2609
+ * Gets or sets a dictionary of {name: value} pairs that describe the parameters used to run the report.
2610
+ *
2611
+ * This property is useful if the report requires that certain parameters (for example, the hidden ones) to be passed during the initial stage.
2612
+ *
2613
+ * <pre>
2614
+ * reportViewer.parameters = {
2615
+ * 'CustomerID': 'ALFKI'
2616
+ * };</pre>
2617
+ */
2618
+ parameters: any;
2619
+ /**
2620
+ * Gets the report names defined in the specified FlexReport definition file.
2621
+ *
2622
+ * @param serviceUrl The address of C1 Web API service.
2623
+ * @param reportFilePath The full path to the FlexReport definition file.
2624
+ * @param httpHandler The HTTP request handler. This parameter is optional.
2625
+ * @return An {@link wijmo.viewer.IPromise} object with a string array which contains the report names.
2626
+ */
2627
+ static getReportNames(serviceUrl: string, reportFilePath: string, httpHandler?: IHttpRequestHandler): IPromise;
2628
+ /**
2629
+ * Gets the catalog items in the specified folder path.
2630
+ *
2631
+ * You can get all items under the folder path by passing the data parameter as:
2632
+ * 1) A true value.
2633
+ * 2) An object which has the "recursive" property with true value.
2634
+ *
2635
+ * @param serviceUrl The address of C1 Web API service.
2636
+ * @param path The folder path. The path to the FlexReport definition file will be treated as a folder path.
2637
+ * @param data The request data sent to the report service, or a boolean value indicates whether getting all items under the path.
2638
+ * @param httpHandler The HTTP request handler. This parameter is optional.
2639
+ * @return An {@link IPromise} object with an array of {@link wijmo.viewer.ICatalogItem}.
2640
+ */
2641
+ static getReports(serviceUrl: string, path: string, data?: any, httpHandler?: IHttpRequestHandler): IPromise;
2642
+ onQueryLoadingData(e: QueryLoadingDataEventArgs): void;
2643
+ _globalize(): void;
2644
+ _executeAction(action: _ViewerActionType): void;
2645
+ _executeCustomAction(action: _IDocAction): void;
2646
+ _actionIsDisabled(action: _ViewerActionType): boolean;
2647
+ _initHamburgerMenu(owner: HTMLElement): void;
2648
+ private _initSidePanelParameters;
2649
+ readonly _innerDocumentSource: _Report;
2650
+ _loadDocument(value: _ReportSourceBase, force?: boolean, disposeSource?: boolean): IPromise;
2651
+ _reRenderDocument(): void;
2652
+ _onDocumentStatusChanged(): void;
2653
+ private _renderDocumentSource;
2654
+ _disposeDocument(disposeSource?: boolean): void;
2655
+ _setDocumentRendering(): void;
2656
+ _getSource(): _DocumentSource;
2657
+ _supportsPageSettingActions(): boolean;
2658
+ refresh(fullUpdate?: boolean): void;
2659
+ protected _isArReport(): boolean;
2660
+ _createPage(index: number, defPageSize: _ISize): _Page;
2661
+ protected _actionElementClicked(element: SVGElement): void;
2662
+ protected _getActionInfo(element: SVGElement): _IDocAction;
2663
+ }