@grapecity-software/gcdocs.pdfviewer 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2886 -0
- package/README.md +390 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +19 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/main.js +54 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1224 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/AnnotationBase.html +349 -0
- package/docs/classes/ButtonWidget.html +512 -0
- package/docs/classes/ChoiceWidget.html +487 -0
- package/docs/classes/CircleAnnotation.html +425 -0
- package/docs/classes/DsPdfViewer.html +4095 -0
- package/docs/classes/FileAttachmentAnnotation.html +422 -0
- package/docs/classes/FreeTextAnnotation.html +405 -0
- package/docs/classes/GcPdfSearcher.html +362 -0
- package/docs/classes/GcPdfViewer.html +3923 -0
- package/docs/classes/HighlightAnnotation.html +390 -0
- package/docs/classes/InkAnnotation.html +400 -0
- package/docs/classes/LineAnnotation.html +422 -0
- package/docs/classes/LinkAnnotation.html +390 -0
- package/docs/classes/MarkupAnnotation.html +407 -0
- package/docs/classes/PolyLineAnnotation.html +406 -0
- package/docs/classes/PolygonAnnotation.html +406 -0
- package/docs/classes/PopupAnnotation.html +393 -0
- package/docs/classes/RedactAnnotation.html +439 -0
- package/docs/classes/SignatureAnnotation.html +398 -0
- package/docs/classes/SoundAnnotation.html +438 -0
- package/docs/classes/SquareAnnotation.html +397 -0
- package/docs/classes/SquigglyAnnotation.html +390 -0
- package/docs/classes/StampAnnotation.html +400 -0
- package/docs/classes/StrikeOutAnnotation.html +390 -0
- package/docs/classes/TextAnnotation.html +404 -0
- package/docs/classes/TextWidget.html +465 -0
- package/docs/classes/UnderlineAnnotation.html +390 -0
- package/docs/classes/ViewerOptions.html +1243 -0
- package/docs/classes/WidgetAnnotation.html +454 -0
- package/docs/enums/AnnotationTypeCode.html +196 -0
- package/docs/enums/ModificationType.html +86 -0
- package/docs/enums/SharedAccessMode.html +79 -0
- package/docs/enums/TextAlignmentType.html +66 -0
- package/docs/index.html +222 -0
- package/docs/interfaces/IGCEventBus.html +106 -0
- package/docs/types/AnnotationMarkedStateType.html +126 -0
- package/docs/types/AnnotationReviewStateType.html +126 -0
- package/docs/types/AnnotationStateModel.html +126 -0
- package/docs/types/AnnotationTypeName.html +126 -0
- package/docs/types/BusEventName.html +126 -0
- package/docs/types/DocumentListItem.html +146 -0
- package/docs/types/FieldAppearanceRenderingType.html +130 -0
- package/docs/types/FormFieldMapping.html +126 -0
- package/docs/types/FormFillerSettings.html +257 -0
- package/docs/types/GcProps.html +237 -0
- package/docs/types/InputFieldMapping.html +175 -0
- package/docs/types/JsCancelEventArgs.html +137 -0
- package/docs/types/JsEventArgs.html +133 -0
- package/docs/types/JsExecutionConfig.html +165 -0
- package/docs/types/KeyboardShortcutDefinition.html +149 -0
- package/docs/types/KeyboardShortcutTool.html +126 -0
- package/docs/types/LineEndStyle.html +126 -0
- package/docs/types/LinkDestinationType.html +126 -0
- package/docs/types/LinkType.html +126 -0
- package/docs/types/LogLevel.html +128 -0
- package/docs/types/ModificationsState.html +145 -0
- package/docs/types/NamedAction.html +127 -0
- package/docs/types/OpenAction.html +148 -0
- package/docs/types/OpenParameters.html +126 -0
- package/docs/types/OptionalContentConfig.html +195 -0
- package/docs/types/OptionalContentGroup.html +194 -0
- package/docs/types/PageLayout.html +126 -0
- package/docs/types/PageMode.html +126 -0
- package/docs/types/PageModification.html +137 -0
- package/docs/types/PageStructureChange.html +139 -0
- package/docs/types/PageViewport.html +221 -0
- package/docs/types/PdfOrganizerSettings.html +147 -0
- package/docs/types/ReplyToolSettings.html +196 -0
- package/docs/types/RotationInit.html +155 -0
- package/docs/types/RulerLine.html +146 -0
- package/docs/types/SaveSettings.html +191 -0
- package/docs/types/ScrollPageIntoViewOptions.html +126 -0
- package/docs/types/SharedDocumentInfo.html +139 -0
- package/docs/types/SignToolSettings.html +437 -0
- package/docs/types/SignatureInfo.html +158 -0
- package/docs/types/SignatureInformation.html +145 -0
- package/docs/types/StampCategory.html +159 -0
- package/docs/types/StructTreeContent.html +144 -0
- package/docs/types/StructTreeNode.html +141 -0
- package/docs/types/StructureChanges.html +142 -0
- package/docs/types/SupportApiSettings.html +199 -0
- package/docs/types/TextMarkupContextMenuSettings.html +139 -0
- package/docs/types/ToolbarButtonKey.html +126 -0
- package/docs/types/UndoChangeName.html +126 -0
- package/docs/types/UserAccess.html +133 -0
- package/docs/types/ViewerFeatureName.html +128 -0
- package/docs/types/ViewerPreferences.html +178 -0
- package/docs/types/WidgetFieldTypeName.html +129 -0
- package/docs.html +19 -0
- package/gcpdfviewer.js +2 -0
- package/gcpdfviewer.worker.js +2 -0
- package/index.html +43 -0
- package/localization/en-pdf-viewer.json +1587 -0
- package/localization/en-viewer-base.json +73 -0
- package/localization/localization_example.html +55 -0
- package/package.json +27 -0
- package/resources/bcmaps/78-EUC-H.bin +0 -0
- package/resources/bcmaps/78-EUC-V.bin +0 -0
- package/resources/bcmaps/78-H.bin +0 -0
- package/resources/bcmaps/78-RKSJ-H.bin +0 -0
- package/resources/bcmaps/78-RKSJ-V.bin +0 -0
- package/resources/bcmaps/78-V.bin +0 -0
- package/resources/bcmaps/78ms-RKSJ-H.bin +0 -0
- package/resources/bcmaps/78ms-RKSJ-V.bin +0 -0
- package/resources/bcmaps/83pv-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90ms-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90ms-RKSJ-V.bin +0 -0
- package/resources/bcmaps/90msp-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90msp-RKSJ-V.bin +0 -0
- package/resources/bcmaps/90pv-RKSJ-H.bin +0 -0
- package/resources/bcmaps/90pv-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Add-H.bin +0 -0
- package/resources/bcmaps/Add-RKSJ-H.bin +0 -0
- package/resources/bcmaps/Add-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Add-V.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-0.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-1.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-2.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-3.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-4.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-5.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-6.bin +0 -0
- package/resources/bcmaps/Adobe-CNS1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-0.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-1.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-2.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-3.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-4.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-5.bin +0 -0
- package/resources/bcmaps/Adobe-GB1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-0.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-1.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-2.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-3.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-4.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-5.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-6.bin +0 -0
- package/resources/bcmaps/Adobe-Japan1-UCS2.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-0.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-1.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-2.bin +0 -0
- package/resources/bcmaps/Adobe-Korea1-UCS2.bin +0 -0
- package/resources/bcmaps/B5-H.bin +0 -0
- package/resources/bcmaps/B5-V.bin +0 -0
- package/resources/bcmaps/B5pc-H.bin +0 -0
- package/resources/bcmaps/B5pc-V.bin +0 -0
- package/resources/bcmaps/CNS-EUC-H.bin +0 -0
- package/resources/bcmaps/CNS-EUC-V.bin +0 -0
- package/resources/bcmaps/CNS1-H.bin +0 -0
- package/resources/bcmaps/CNS1-V.bin +0 -0
- package/resources/bcmaps/CNS2-H.bin +0 -0
- package/resources/bcmaps/CNS2-V.bin +3 -0
- package/resources/bcmaps/ETHK-B5-H.bin +0 -0
- package/resources/bcmaps/ETHK-B5-V.bin +0 -0
- package/resources/bcmaps/ETen-B5-H.bin +0 -0
- package/resources/bcmaps/ETen-B5-V.bin +0 -0
- package/resources/bcmaps/ETenms-B5-H.bin +3 -0
- package/resources/bcmaps/ETenms-B5-V.bin +0 -0
- package/resources/bcmaps/EUC-H.bin +0 -0
- package/resources/bcmaps/EUC-V.bin +0 -0
- package/resources/bcmaps/Ext-H.bin +0 -0
- package/resources/bcmaps/Ext-RKSJ-H.bin +0 -0
- package/resources/bcmaps/Ext-RKSJ-V.bin +0 -0
- package/resources/bcmaps/Ext-V.bin +0 -0
- package/resources/bcmaps/GB-EUC-H.bin +0 -0
- package/resources/bcmaps/GB-EUC-V.bin +0 -0
- package/resources/bcmaps/GB-H.bin +4 -0
- package/resources/bcmaps/GB-V.bin +0 -0
- package/resources/bcmaps/GBK-EUC-H.bin +0 -0
- package/resources/bcmaps/GBK-EUC-V.bin +0 -0
- package/resources/bcmaps/GBK2K-H.bin +0 -0
- package/resources/bcmaps/GBK2K-V.bin +0 -0
- package/resources/bcmaps/GBKp-EUC-H.bin +0 -0
- package/resources/bcmaps/GBKp-EUC-V.bin +0 -0
- package/resources/bcmaps/GBT-EUC-H.bin +0 -0
- package/resources/bcmaps/GBT-EUC-V.bin +0 -0
- package/resources/bcmaps/GBT-H.bin +0 -0
- package/resources/bcmaps/GBT-V.bin +0 -0
- package/resources/bcmaps/GBTpc-EUC-H.bin +0 -0
- package/resources/bcmaps/GBTpc-EUC-V.bin +0 -0
- package/resources/bcmaps/GBpc-EUC-H.bin +0 -0
- package/resources/bcmaps/GBpc-EUC-V.bin +0 -0
- package/resources/bcmaps/H.bin +0 -0
- package/resources/bcmaps/HKdla-B5-H.bin +0 -0
- package/resources/bcmaps/HKdla-B5-V.bin +0 -0
- package/resources/bcmaps/HKdlb-B5-H.bin +0 -0
- package/resources/bcmaps/HKdlb-B5-V.bin +0 -0
- package/resources/bcmaps/HKgccs-B5-H.bin +0 -0
- package/resources/bcmaps/HKgccs-B5-V.bin +0 -0
- package/resources/bcmaps/HKm314-B5-H.bin +0 -0
- package/resources/bcmaps/HKm314-B5-V.bin +0 -0
- package/resources/bcmaps/HKm471-B5-H.bin +0 -0
- package/resources/bcmaps/HKm471-B5-V.bin +0 -0
- package/resources/bcmaps/HKscs-B5-H.bin +0 -0
- package/resources/bcmaps/HKscs-B5-V.bin +0 -0
- package/resources/bcmaps/Hankaku.bin +0 -0
- package/resources/bcmaps/Hiragana.bin +0 -0
- package/resources/bcmaps/KSC-EUC-H.bin +0 -0
- package/resources/bcmaps/KSC-EUC-V.bin +0 -0
- package/resources/bcmaps/KSC-H.bin +0 -0
- package/resources/bcmaps/KSC-Johab-H.bin +0 -0
- package/resources/bcmaps/KSC-Johab-V.bin +0 -0
- package/resources/bcmaps/KSC-V.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-H.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-HW-H.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-HW-V.bin +0 -0
- package/resources/bcmaps/KSCms-UHC-V.bin +0 -0
- package/resources/bcmaps/KSCpc-EUC-H.bin +0 -0
- package/resources/bcmaps/KSCpc-EUC-V.bin +0 -0
- package/resources/bcmaps/Katakana.bin +0 -0
- package/resources/bcmaps/LICENSE +36 -0
- package/resources/bcmaps/NWP-H.bin +0 -0
- package/resources/bcmaps/NWP-V.bin +0 -0
- package/resources/bcmaps/RKSJ-H.bin +0 -0
- package/resources/bcmaps/RKSJ-V.bin +0 -0
- package/resources/bcmaps/Roman.bin +0 -0
- package/resources/bcmaps/UniCNS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniCNS-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniGB-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniGB-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniGB-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniGB-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-HW-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-HW-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniJIS-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniJIS2004-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UCS2-HW-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniJISPro-UTF8-V.bin +0 -0
- package/resources/bcmaps/UniJISX0213-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJISX0213-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniJISX02132004-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniJISX02132004-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniKS-UCS2-H.bin +0 -0
- package/resources/bcmaps/UniKS-UCS2-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF16-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF16-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF32-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF32-V.bin +0 -0
- package/resources/bcmaps/UniKS-UTF8-H.bin +0 -0
- package/resources/bcmaps/UniKS-UTF8-V.bin +0 -0
- package/resources/bcmaps/V.bin +0 -0
- package/resources/bcmaps/WP-Symbol.bin +0 -0
- package/resources/standard_fonts/FoxitDingbats.pfb +0 -0
- package/resources/standard_fonts/FoxitFixed.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSans.pfb +0 -0
- package/resources/standard_fonts/FoxitSansBold.pfb +0 -0
- package/resources/standard_fonts/FoxitSansBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSansItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSerif.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/resources/standard_fonts/FoxitSymbol.pfb +0 -0
- package/resources/standard_fonts/LICENSE_FOXIT +27 -0
- package/resources/standard_fonts/LICENSE_LIBERATION +102 -0
- package/resources/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/resources/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/resources/standard_fonts/README.md +11 -0
- package/themes/dark-yellow.css +1 -0
- package/themes/dark-yellow.jscss +7 -0
- package/themes/dark.css +1 -0
- package/themes/dark.jscss +7 -0
- package/themes/gc-blue.css +1 -0
- package/themes/gc-blue.jscss +7 -0
- package/themes/light-blue.css +1 -0
- package/themes/light-blue.jscss +7 -0
- package/themes/light.css +1 -0
- package/themes/light.jscss +7 -0
- package/themes/viewer.css +1 -0
- package/themes/viewer.jscss +7 -0
- package/typings/AcroForm/AcroForm.d.ts +3 -0
- package/typings/AcroForm/index.d.ts +4 -0
- package/typings/AcroForm/state.d.ts +4 -0
- package/typings/AcroForm/types.d.ts +15 -0
- package/typings/Annotations/AnnotationPropertyDescriptors.d.ts +88 -0
- package/typings/Annotations/AnnotationState.d.ts +5 -0
- package/typings/Annotations/AnnotationTypes.d.ts +353 -0
- package/typings/Annotations/Annotations.d.ts +151 -0
- package/typings/Annotations/Editors/CalloutLineEditor.d.ts +19 -0
- package/typings/Annotations/Editors/CancelableEditorBase.d.ts +34 -0
- package/typings/Annotations/Editors/ChoiceOptionsEditor.d.ts +21 -0
- package/typings/Annotations/Editors/ColorEditor/ColorEditor.d.ts +13 -0
- package/typings/Annotations/Editors/ColorEditor/Localization.d.ts +2 -0
- package/typings/Annotations/Editors/ColorEditor/StandardPalette.d.ts +3 -0
- package/typings/Annotations/Editors/ColorEditor/types.d.ts +21 -0
- package/typings/Annotations/Editors/FileEditor.d.ts +42 -0
- package/typings/Annotations/Editors/FloatEditor.d.ts +43 -0
- package/typings/Annotations/Editors/ImageFileEditor.d.ts +37 -0
- package/typings/Annotations/Editors/JsCodeAreaEditor.d.ts +18 -0
- package/typings/Annotations/Editors/KeyValuePairEditor.d.ts +20 -0
- package/typings/Annotations/Editors/LinkAnnotationHelper.d.ts +18 -0
- package/typings/Annotations/Editors/LinkDestTypeEditor.d.ts +18 -0
- package/typings/Annotations/Editors/MediaFileEditor.d.ts +7 -0
- package/typings/Annotations/Editors/MediaPosterFileEditor.d.ts +9 -0
- package/typings/Annotations/Editors/NullableIntEditor.d.ts +39 -0
- package/typings/Annotations/Editors/ParentIdEditor.d.ts +22 -0
- package/typings/Annotations/Editors/PlaceholderEditorStub.d.ts +15 -0
- package/typings/Annotations/Editors/PreserveStampSizeAspectToggle.d.ts +15 -0
- package/typings/Annotations/Editors/SelectFileHelper.d.ts +24 -0
- package/typings/Annotations/Editors/SoundFileEditor.d.ts +41 -0
- package/typings/Annotations/Editors/TextAreaEditor.d.ts +23 -0
- package/typings/Annotations/Elements/CheckBoxElement.d.ts +2 -0
- package/typings/Annotations/Elements/RadioButtonElement.d.ts +2 -0
- package/typings/Annotations/RichMediaAnnotation.d.ts +41 -0
- package/typings/Annotations/index.d.ts +4 -0
- package/typings/Annotations/state.d.ts +4 -0
- package/typings/Annotations/types.d.ts +63 -0
- package/typings/Articles/Articles.d.ts +19 -0
- package/typings/Articles/index.d.ts +4 -0
- package/typings/Articles/state.d.ts +4 -0
- package/typings/Articles/types.d.ts +24 -0
- package/typings/Attachments/Attachments.d.ts +17 -0
- package/typings/Attachments/index.d.ts +3 -0
- package/typings/Attachments/state.d.ts +4 -0
- package/typings/Attachments/types.d.ts +7 -0
- package/typings/Contents/Contents.d.ts +13 -0
- package/typings/Contents/index.d.ts +4 -0
- package/typings/Contents/state.d.ts +4 -0
- package/typings/Contents/types.d.ts +16 -0
- package/typings/ContextMenu/ContextMenuProvider.d.ts +48 -0
- package/typings/ContextMenu/DropdownMenu.d.ts +121 -0
- package/typings/ContextMenu/GcDocumentContextMenu.d.ts +80 -0
- package/typings/ContextMenu/Positioner.d.ts +58 -0
- package/typings/ContextMenu/constants.d.ts +22 -0
- package/typings/ContextMenu/essentials.d.ts +41 -0
- package/typings/ContextMenu/types.d.ts +2 -0
- package/typings/Core/ExternalPdfManager.d.ts +24 -0
- package/typings/Core/GcPdfViewerDataLoader.d.ts +24 -0
- package/typings/DataStorage/DataStorage.d.ts +20 -0
- package/typings/Dialogs/ConfirmationDialog.d.ts +17 -0
- package/typings/Dialogs/ProgressDialog.d.ts +37 -0
- package/typings/Dialogs/Types.d.ts +22 -0
- package/typings/DocumentListPanel.d.ts +39 -0
- package/typings/DsPdfViewer.d.ts +5 -0
- package/typings/FloatingBar/FloatingBar.d.ts +20 -0
- package/typings/FloatingBar/types.d.ts +7 -0
- package/typings/FloatingSearchBar/FloatingSearchBar.d.ts +42 -0
- package/typings/FloatingSearchBar/types.d.ts +3 -0
- package/typings/FormFiller/Controls/CheckBoxControl.d.ts +7 -0
- package/typings/FormFiller/Controls/ChoiceControl.d.ts +11 -0
- package/typings/FormFiller/Controls/CombTextControl.d.ts +7 -0
- package/typings/FormFiller/Controls/ControlBase.d.ts +32 -0
- package/typings/FormFiller/Controls/DateTimeControl.d.ts +7 -0
- package/typings/FormFiller/Controls/DateTimeHelper.d.ts +18 -0
- package/typings/FormFiller/Controls/EmailControl.d.ts +7 -0
- package/typings/FormFiller/Controls/PasswordControl.d.ts +7 -0
- package/typings/FormFiller/Controls/RadioControl.d.ts +7 -0
- package/typings/FormFiller/Controls/SearchControl.d.ts +7 -0
- package/typings/FormFiller/Controls/TelControl.d.ts +7 -0
- package/typings/FormFiller/Controls/TextControl.d.ts +7 -0
- package/typings/FormFiller/Controls/UrlControl.d.ts +7 -0
- package/typings/FormFiller/FieldRow.d.ts +27 -0
- package/typings/FormFiller/FormFiller.d.ts +32 -0
- package/typings/FormFiller/FormFillerDialog.d.ts +28 -0
- package/typings/FormFiller/Validator.d.ts +9 -0
- package/typings/FormFiller/types.d.ts +48 -0
- package/typings/GcPdfDocument.d.ts +65 -0
- package/typings/GcPdfDocumentView.d.ts +22 -0
- package/typings/GcPdfViewer.d.ts +464 -0
- package/typings/GcPdfViewerStateStorage.d.ts +24 -0
- package/typings/Keyboard/KeyboardWorker.d.ts +52 -0
- package/typings/Keyboard/ShortcutsConfig.d.ts +10 -0
- package/typings/Layers/Layers.d.ts +17 -0
- package/typings/Layers/index.d.ts +1 -0
- package/typings/Layers/state.d.ts +0 -0
- package/typings/Layers/types.d.ts +8 -0
- package/typings/LeftSidebar.d.ts +33 -0
- package/typings/Models/EventArgs.d.ts +38 -0
- package/typings/Models/GcMeasurementTypes.d.ts +29 -0
- package/typings/Models/PluginTypes.d.ts +23 -0
- package/typings/Models/ViewerTypes.d.ts +279 -0
- package/typings/Password/GcPdfPasswordDialog.d.ts +31 -0
- package/typings/PdfDocumentViewer/PdfDocumentViewer.d.ts +11 -0
- package/typings/PdfOrganizer/PdfOrganizerDialog.d.ts +83 -0
- package/typings/PdfOrganizer/types.d.ts +17 -0
- package/typings/Polyfills/ArrayPolyfills.d.ts +1 -0
- package/typings/Polyfills/CanvasToBlob.d.ts +0 -0
- package/typings/Polyfills/closest.d.ts +0 -0
- package/typings/Print/GcPdfPrintProgress.d.ts +17 -0
- package/typings/Print/GcPdfPrintService.d.ts +7 -0
- package/typings/Properties/DocumentInformation.d.ts +22 -0
- package/typings/Properties/PropertiesDialog.d.ts +39 -0
- package/typings/ReplyTool/AuthorLabel.d.ts +8 -0
- package/typings/ReplyTool/ReplyTool.d.ts +90 -0
- package/typings/ReplyTool/types.d.ts +25 -0
- package/typings/RightSidebar/GcRightSidebar.d.ts +42 -0
- package/typings/RightSidebar/types.d.ts +2 -0
- package/typings/Search/GcPdfSearcher.d.ts +98 -0
- package/typings/Search/IPdfSearcher.d.ts +5 -0
- package/typings/Search/SearchPanel.d.ts +16 -0
- package/typings/Search/SearchPanelBase.d.ts +35 -0
- package/typings/Search/SearchUtils.d.ts +24 -0
- package/typings/Search/SearchWorker.d.ts +37 -0
- package/typings/Search/TextSelectionBoundsTester.d.ts +10 -0
- package/typings/Search/api.d.ts +12 -0
- package/typings/Search/index.d.ts +5 -0
- package/typings/Search/types.d.ts +135 -0
- package/typings/Security/DocumentSecuritySummary.d.ts +19 -0
- package/typings/SharedDocuments/ShareDialog.d.ts +55 -0
- package/typings/SharedDocuments/SharedChangeIndicator.d.ts +5 -0
- package/typings/SharedDocuments/SharedDocumentsPanel.d.ts +26 -0
- package/typings/SharedDocuments/types.d.ts +73 -0
- package/typings/SignTool/CanvasRuler.d.ts +21 -0
- package/typings/SignTool/DrawTool.d.ts +41 -0
- package/typings/SignTool/ImageTool.d.ts +51 -0
- package/typings/SignTool/SignToolDialog.d.ts +97 -0
- package/typings/SignTool/SignToolStorage.d.ts +17 -0
- package/typings/SignTool/SignaturePad/SignaturePad.d.ts +76 -0
- package/typings/SignTool/SignaturePad/throttle.d.ts +1 -0
- package/typings/SignTool/SignaturePad/types.d.ts +30 -0
- package/typings/SignTool/TypeTool.d.ts +52 -0
- package/typings/SignTool/types.d.ts +62 -0
- package/typings/StructureTree/StructureTree.d.ts +31 -0
- package/typings/StructureTree/index.d.ts +1 -0
- package/typings/StructureTree/state.d.ts +0 -0
- package/typings/StructureTree/types.d.ts +7 -0
- package/typings/Styles/StaticIcons.d.ts +1 -0
- package/typings/Styles/pdfSvgIcons.d.ts +155 -0
- package/typings/SupportApi/Connection/ClientMessage.d.ts +61 -0
- package/typings/SupportApi/Connection/Message.d.ts +3 -0
- package/typings/SupportApi/Connection/PersistentConnection.d.ts +33 -0
- package/typings/SupportApi/Connection/ServerMessage.d.ts +25 -0
- package/typings/SupportApi/DocumentOptions.d.ts +14 -0
- package/typings/SupportApi/ISupportApi.d.ts +44 -0
- package/typings/SupportApi/ISupportApiBase.d.ts +30 -0
- package/typings/SupportApi/LocalDocumentModification.d.ts +23 -0
- package/typings/SupportApi/RenderParams.d.ts +7 -0
- package/typings/SupportApi/SignatureInfo.d.ts +0 -0
- package/typings/SupportApi/SupportApiImpl.d.ts +88 -0
- package/typings/SupportApi/Wasm/IWasmModule.d.ts +22 -0
- package/typings/SupportApi/Wasm/WasmModule.d.ts +2 -0
- package/typings/SupportApi/Wasm/WasmSupportApi.d.ts +38 -0
- package/typings/SupportApi/types.d.ts +43 -0
- package/typings/Thumbnails/GcRangedThumbsPane.d.ts +17 -0
- package/typings/Thumbnails/GcThumbView.d.ts +50 -0
- package/typings/Thumbnails/GcThumbnailViewer.d.ts +46 -0
- package/typings/Thumbnails/Thumbnails.d.ts +18 -0
- package/typings/Thumbnails/index.d.ts +1 -0
- package/typings/Toolbar/PdfToolbarLayout.d.ts +9 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbar.d.ts +25 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbarControl.d.ts +31 -0
- package/typings/Toolbar/SecondToolbar/SecondToolbarRenderer.d.ts +5 -0
- package/typings/Toolbar/SecondToolbar/types.d.ts +9 -0
- package/typings/Toolbar/ToolbarItems.d.ts +71 -0
- package/typings/Toolbar/controls/AddStampDropdown.d.ts +61 -0
- package/typings/Toolbar/controls/Zoom.d.ts +42 -0
- package/typings/Utils/AnnotationsSvgFactory.d.ts +34 -0
- package/typings/Utils/AudioOscilloscopeVisualizer.d.ts +23 -0
- package/typings/Utils/AudioUtils.d.ts +12 -0
- package/typings/Utils/BackgroundUtilsWorker.d.ts +6 -0
- package/typings/Utils/BrowserUtils.d.ts +20 -0
- package/typings/Utils/ColorUtils.d.ts +7 -0
- package/typings/Utils/CombFieldBehavior.d.ts +58 -0
- package/typings/Utils/DomUtils.d.ts +21 -0
- package/typings/Utils/DownloadUtil.d.ts +2 -0
- package/typings/Utils/DrawingPanel.d.ts +11 -0
- package/typings/Utils/DropFileAreaHelper.d.ts +25 -0
- package/typings/Utils/EditableComboBoxBehavior.d.ts +17 -0
- package/typings/Utils/EncodingUtils.d.ts +9 -0
- package/typings/Utils/Exceptions.d.ts +5 -0
- package/typings/Utils/GcEditableTextBehavior.d.ts +48 -0
- package/typings/Utils/GcMeasurement.d.ts +37 -0
- package/typings/Utils/GestureEventsDispatcher.d.ts +40 -0
- package/typings/Utils/MathUtils.d.ts +17 -0
- package/typings/Utils/MeasurementUtils.d.ts +4 -0
- package/typings/Utils/PromiseUtils.d.ts +24 -0
- package/typings/Utils/ResizableDialogBehavior.d.ts +1 -0
- package/typings/Utils/RichMediaAnnotationPlayer.d.ts +60 -0
- package/typings/Utils/ScrollUtils.d.ts +20 -0
- package/typings/Utils/SearchUtils.d.ts +20 -0
- package/typings/Utils/SelectionRangeUtils.d.ts +2 -0
- package/typings/Utils/SharedRef.d.ts +17 -0
- package/typings/Utils/StampImagesAwaiter.d.ts +15 -0
- package/typings/Utils/SupportApiUtils.d.ts +4 -0
- package/typings/Utils/TooltipPopup.d.ts +6 -0
- package/typings/Utils/UrlUtils.d.ts +17 -0
- package/typings/Utils/ViewerUtils.d.ts +68 -0
- package/typings/Utils/index.d.ts +1 -0
- package/typings/ViewerOptions.d.ts +316 -0
- package/typings/XFA/XfaApiImpl.d.ts +19 -0
- package/typings/XFA/XfaForm.d.ts +7 -0
- package/typings/XFA/XfaNode.d.ts +5 -0
- package/typings/httpClient.d.ts +15 -0
- package/typings/index.d.ts +10 -0
- package/typings/plugin.d.ts +646 -0
- package/typings/vendor/i18next.d.ts +1022 -0
- package/typings/vendor/js-viewer-core/api/PluginModel.d.ts +246 -0
- package/typings/vendor/js-viewer-core/api/ReportViewerCmd.d.ts +72 -0
- package/typings/vendor/js-viewer-core/api/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/ContinuousView.d.ts +37 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/Page.d.ts +17 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/SinglePageView.d.ts +30 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/View.d.ts +15 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/Zoomer.d.ts +12 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/moveTool.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/state.d.ts +7 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/types.d.ts +214 -0
- package/typings/vendor/js-viewer-core/components/DocumentViewer/zoomUtils.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/ErrorView.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/View.d.ts +22 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/state.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ErrorPanel/types.d.ts +21 -0
- package/typings/vendor/js-viewer-core/components/NotificationManager/NotificationManager.d.ts +19 -0
- package/typings/vendor/js-viewer-core/components/NotificationManager/index.d.ts +1 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/MenuView.d.ts +32 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/SideBarView.d.ts +39 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/TopBottomPanelView.d.ts +9 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/index.d.ts +5 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/state.d.ts +13 -0
- package/typings/vendor/js-viewer-core/components/PanelManager/types.d.ts +47 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/View.d.ts +19 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/index.d.ts +3 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/state.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ProgressDialog/types.d.ts +26 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/ThumbnailsPanel.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/index.d.ts +4 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/state.d.ts +6 -0
- package/typings/vendor/js-viewer-core/components/ThumbnailsPanel/types.d.ts +37 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/Toolbar.d.ts +97 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/controls/Zoom.d.ts +23 -0
- package/typings/vendor/js-viewer-core/components/Toolbar/index.d.ts +1 -0
- package/typings/vendor/js-viewer-core/components/index.d.ts +8 -0
- package/typings/vendor/js-viewer-core/components/utils.d.ts +6 -0
- package/typings/vendor/js-viewer-core/control/CancellationToken.d.ts +36 -0
- package/typings/vendor/js-viewer-core/control/EventFan.d.ts +35 -0
- package/typings/vendor/js-viewer-core/control/ReactStateBinder.d.ts +24 -0
- package/typings/vendor/js-viewer-core/control/ReportViewer.d.ts +227 -0
- package/typings/vendor/js-viewer-core/control/SessionState.d.ts +61 -0
- package/typings/vendor/js-viewer-core/control/Store.d.ts +37 -0
- package/typings/vendor/js-viewer-core/control/Toolbar.d.ts +53 -0
- package/typings/vendor/js-viewer-core/control/ViewerState.d.ts +67 -0
- package/typings/vendor/js-viewer-core/control/historyStore.d.ts +0 -0
- package/typings/vendor/js-viewer-core/control/index.d.ts +7 -0
- package/typings/vendor/js-viewer-core/features/search/SearchPanel.d.ts +21 -0
- package/typings/vendor/js-viewer-core/features/search/api.d.ts +18 -0
- package/typings/vendor/js-viewer-core/features/search/index.d.ts +8 -0
- package/typings/vendor/js-viewer-core/features/search/types.d.ts +117 -0
- package/typings/vendor/js-viewer-core/index.d.ts +6 -0
- package/typings/vendor/js-viewer-core/styles/svgIcons.d.ts +30 -0
- package/typings/vendor/react/global.d.ts +151 -0
- package/typings/vendor/react/react-dom.d.ts +100 -0
- package/typings/vendor/react/react.d.ts +3152 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { MouseEvent } from 'react';
|
|
5
|
+
//@ts-ignore
|
|
6
|
+
import { Icon } from '@grapecity/core-ui';
|
|
7
|
+
import { CancellationToken, SessionState } from '../control';
|
|
8
|
+
import { ReportViewerCmd, ReportViewerCommandStatus, DocumentMoniker } from './ReportViewerCmd';
|
|
9
|
+
import { FindOptions, SearchResult } from '../features/search';
|
|
10
|
+
import { PageDecoration } from '../components/DocumentViewer';
|
|
11
|
+
export declare type ChangeHandler<TState> = (state: TState) => void;
|
|
12
|
+
declare type UnsubscribeFn = () => void;
|
|
13
|
+
/** Provides the read/write access to state store, similar to redux store */
|
|
14
|
+
export interface IStore<TState, TMsg> {
|
|
15
|
+
dispatch(msg: TMsg): void;
|
|
16
|
+
readonly state: TState;
|
|
17
|
+
subscribe(onUpdate: ChangeHandler<TState>): UnsubscribeFn;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Interface to state binder component which purpose is to allow one UI control to handle several documents.
|
|
21
|
+
*/
|
|
22
|
+
export interface IStateBinder<TState> {
|
|
23
|
+
/** binds component to a new state */
|
|
24
|
+
bind(store: IStore<TState, any>): void;
|
|
25
|
+
}
|
|
26
|
+
export declare type PanelHandle = {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
/** Long running tasks API */
|
|
30
|
+
export declare type TaskCallbacks = {
|
|
31
|
+
onProgress: (message: any) => void;
|
|
32
|
+
isCancelRequested: () => boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare type TaskSettings = {
|
|
35
|
+
title?: string;
|
|
36
|
+
supportCancel?: boolean;
|
|
37
|
+
};
|
|
38
|
+
/** End of long running tasks API */
|
|
39
|
+
/** Error reporting */
|
|
40
|
+
export declare type ErrorSeverity = "error" | "warn" | "info" | "debug";
|
|
41
|
+
export declare type ErrorMessage = {
|
|
42
|
+
severity: ErrorSeverity;
|
|
43
|
+
message: string;
|
|
44
|
+
details: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type ErrorHandler = (error: ErrorMessage) => boolean;
|
|
47
|
+
/** Defines a parameter for reportError method */
|
|
48
|
+
export interface IErrorParams {
|
|
49
|
+
readonly severity?: ErrorSeverity;
|
|
50
|
+
readonly message: string;
|
|
51
|
+
readonly details?: string;
|
|
52
|
+
}
|
|
53
|
+
/** History API */
|
|
54
|
+
export interface IViewerEvent {
|
|
55
|
+
readonly type: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type ViewerEvent = IViewerEvent & {
|
|
58
|
+
type: "jumpedToPage";
|
|
59
|
+
fromPage: number | null;
|
|
60
|
+
to: {
|
|
61
|
+
pageIndex: number;
|
|
62
|
+
selector?: string;
|
|
63
|
+
};
|
|
64
|
+
} | {
|
|
65
|
+
type: "drilledToDocument";
|
|
66
|
+
fromDoc: SessionState;
|
|
67
|
+
target: DocumentMoniker;
|
|
68
|
+
};
|
|
69
|
+
/** Action (for interactive documents) handler context */
|
|
70
|
+
export declare type ActionContext<TEvent extends IViewerEvent> = {
|
|
71
|
+
readonly document: IDocument;
|
|
72
|
+
readonly view: IDocumentView | null;
|
|
73
|
+
processCommand(cmd: ReportViewerCmd): void;
|
|
74
|
+
processAction(action: ViewerAction): void;
|
|
75
|
+
pushEvent(event: TEvent): void;
|
|
76
|
+
};
|
|
77
|
+
/** Standard viewer actions */
|
|
78
|
+
export declare type ViewerAction = {
|
|
79
|
+
Type: "goBookmark";
|
|
80
|
+
Target: {
|
|
81
|
+
pageNumber: number;
|
|
82
|
+
selector?: string;
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
Type: "goHyperlink";
|
|
86
|
+
Target: string;
|
|
87
|
+
} | {
|
|
88
|
+
Type: "drillDocument";
|
|
89
|
+
Target: DocumentMoniker;
|
|
90
|
+
};
|
|
91
|
+
/** end of History API */
|
|
92
|
+
export interface IReportError {
|
|
93
|
+
/** Reports the error to user/UI. */
|
|
94
|
+
reportError(params: IErrorParams): void;
|
|
95
|
+
}
|
|
96
|
+
/** Defines the generic for processing error. */
|
|
97
|
+
export declare class PluginError extends Error {
|
|
98
|
+
readonly text: string;
|
|
99
|
+
readonly details: string;
|
|
100
|
+
constructor(title: string, text: string, details: string);
|
|
101
|
+
}
|
|
102
|
+
/** Defines the document processing error. */
|
|
103
|
+
export declare class DocumentError extends PluginError {
|
|
104
|
+
constructor(text: string, details: string);
|
|
105
|
+
}
|
|
106
|
+
export declare type PanelLocation = 'top' | 'bottom' | 'default';
|
|
107
|
+
/** Main component API */
|
|
108
|
+
export declare type PanelSettings = {
|
|
109
|
+
label: string;
|
|
110
|
+
icon: string | Icon;
|
|
111
|
+
description: string;
|
|
112
|
+
visible: boolean;
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
/**Define this property to show this panel: 'top' - on top document view, 'bottom' - on bottom document view, 'default' - in sidebar/menu
|
|
115
|
+
* This panel will be shown in sidebar/menu by default, if this property is undefined */
|
|
116
|
+
location?: PanelLocation;
|
|
117
|
+
};
|
|
118
|
+
/** Represents API to access main (host) viewer components. */
|
|
119
|
+
export interface IViewerHost extends IReportError {
|
|
120
|
+
/** Creates a new UI panel
|
|
121
|
+
* @param render renders DOM for the panel UI to a specified container element. Must be instance of React.ReactChild
|
|
122
|
+
* @param binder instance of Binder that connects state to panel UI.
|
|
123
|
+
*/
|
|
124
|
+
createPanel<T>(component: any, binder: IStateBinder<T>, key: string, settings: Partial<PanelSettings>): PanelHandle;
|
|
125
|
+
/** Shows or hides the panel button in sidebar. */
|
|
126
|
+
showPanel(panelKey: PanelHandle, visible?: boolean): void;
|
|
127
|
+
/** Updates sidebar panel status. */
|
|
128
|
+
updatePanel(panelKey: PanelHandle, settings: Partial<PanelSettings>): void;
|
|
129
|
+
/** Ensures the panel is visible to user. */
|
|
130
|
+
bringPanelToFront(panel: PanelHandle): void;
|
|
131
|
+
/** Binds panel to a new document/state. */
|
|
132
|
+
bindPanel<TState, TMsg>(panel: PanelHandle, store: IStore<TState, TMsg>): void;
|
|
133
|
+
/** Instructs viewer that after particular action (such as clicking link or button) it should close panel when in mobile mode. */
|
|
134
|
+
closePanelOnNarrowScreen(panel?: PanelHandle): void;
|
|
135
|
+
/** Allows plugin to send a command to viewer window */
|
|
136
|
+
processCommand(cmd: ReportViewerCmd): void;
|
|
137
|
+
/** Redirects action processing to plugin */
|
|
138
|
+
processAction(action: ViewerAction): void;
|
|
139
|
+
/** Gets commands status */
|
|
140
|
+
readonly commandStatus: ReportViewerCommandStatus;
|
|
141
|
+
/** Sets viewer background color, default value = 'transparent'.
|
|
142
|
+
* @obsolete Use backgroundColor property instead.
|
|
143
|
+
*/
|
|
144
|
+
setBackgroundColor(backgroundColor?: string): void;
|
|
145
|
+
/** Gets or ets page decoration, default value = 'shadow' */
|
|
146
|
+
pageDecoration: PageDecoration;
|
|
147
|
+
/** Gets or sets viewer background color, default value = 'transparent' */
|
|
148
|
+
backgroundColor: string;
|
|
149
|
+
/** Allows to show sidebar in fullscreen mode */
|
|
150
|
+
enableSidebarInFullscreen: boolean;
|
|
151
|
+
}
|
|
152
|
+
export declare enum TimeDirection {
|
|
153
|
+
Backward = "backward",
|
|
154
|
+
Forward = "forward"
|
|
155
|
+
}
|
|
156
|
+
/** Interface to plugin module to implement support for particular document types. */
|
|
157
|
+
export interface IPluginModule<TEvent extends IViewerEvent, TAction> {
|
|
158
|
+
/** Gets unique plugin identifier */
|
|
159
|
+
readonly pluginKey: string;
|
|
160
|
+
/** Opens a new document by URI */
|
|
161
|
+
openDocument(location: DocumentMoniker, token?: CancellationToken): Promise<IDocument | null>;
|
|
162
|
+
/** Renders page to a page view */
|
|
163
|
+
renderPage(page: IPageData): PageView;
|
|
164
|
+
/** Renders the page with highlighted results */
|
|
165
|
+
renderHighlightPage?(page: IPageData, results: SearchResult[]): PageView;
|
|
166
|
+
/** Fires when user switches to a new document (opens a new report) */
|
|
167
|
+
onOpenDocument?(view: IDocument | null): void;
|
|
168
|
+
/** Fires when user switches to a new document view */
|
|
169
|
+
onOpenDocumentView(view: IDocumentView | null): void;
|
|
170
|
+
/** Given the mouse event attempts to resolve the action for the viewer/plugin. */
|
|
171
|
+
resolveAction(context: ActionContext<TEvent>, event: MouseEvent): TAction | ViewerAction | null;
|
|
172
|
+
/** Processes the action resolved on prior step */
|
|
173
|
+
processAction(context: ActionContext<TEvent>, action: TAction, processCommand: (cmd: ReportViewerCmd) => void): boolean;
|
|
174
|
+
/** Translates event to a viewer commands (provides implementation for the events) */
|
|
175
|
+
processEvent(context: ActionContext<TEvent>, event: TEvent, direction: TimeDirection): void;
|
|
176
|
+
}
|
|
177
|
+
export declare type PageCountResult = {
|
|
178
|
+
totalPageCount: number | null;
|
|
179
|
+
renderedSoFar: number;
|
|
180
|
+
};
|
|
181
|
+
/** Defines a progress message for IRunEventSink.progress() method. */
|
|
182
|
+
export declare type ProgressMessage = {
|
|
183
|
+
phase: "starting";
|
|
184
|
+
message: string;
|
|
185
|
+
} | {
|
|
186
|
+
phase: "run";
|
|
187
|
+
document?: IDocumentView;
|
|
188
|
+
count: PageCountResult;
|
|
189
|
+
} | {
|
|
190
|
+
phase: "complete";
|
|
191
|
+
document?: IDocumentView;
|
|
192
|
+
pageCount: number;
|
|
193
|
+
} | {
|
|
194
|
+
phase: "cancelled";
|
|
195
|
+
};
|
|
196
|
+
/** Interface for communicating viewer when document rendering is in progress. */
|
|
197
|
+
export interface IRunEventsSink extends IReportError {
|
|
198
|
+
/** Changes current status and provides additional progress info. */
|
|
199
|
+
progress(message: ProgressMessage): Promise<void>;
|
|
200
|
+
/** Instruct viewer to reset cached page data for particular page or range of pages */
|
|
201
|
+
invalidatePage(index: number, count?: number): void;
|
|
202
|
+
/** Provides cancellation token for rendering routine. The latter should check cancellation status and cancel rendering as soon as possible. */
|
|
203
|
+
readonly cancel: CancellationToken;
|
|
204
|
+
}
|
|
205
|
+
/** Internal document representation */
|
|
206
|
+
export interface IDocument {
|
|
207
|
+
/** Indicates whether the view can be created immediately after document is loaded. Primarily for AutoRun. */
|
|
208
|
+
canView(): boolean;
|
|
209
|
+
/** Creates a new document view (runs the reports or renders the document).
|
|
210
|
+
* @param baseView the view to inherit settings or parameters from. Consider "refresh" behavior in report viewer.
|
|
211
|
+
* @param sink the interface to communicate progress into to a viewer.
|
|
212
|
+
*/
|
|
213
|
+
createView(baseView: IDocumentView | null, sink: IRunEventsSink): Promise<IDocumentView | undefined>;
|
|
214
|
+
/** Updates the document view without data retrieval. Usually is called when view settings are changed. */
|
|
215
|
+
updateView(view: IDocumentView, sink: IRunEventsSink): Promise<IDocumentView | undefined>;
|
|
216
|
+
}
|
|
217
|
+
/** Visual representation of the document. */
|
|
218
|
+
export interface IDocumentView {
|
|
219
|
+
/** Gets the number of pages within a document. */
|
|
220
|
+
readonly pageCount: PageCountResult;
|
|
221
|
+
/** Gets the document page. */
|
|
222
|
+
awaitPage(index: number): Promise<IPageData | null>;
|
|
223
|
+
/** Override to provide fulltext search implementation */
|
|
224
|
+
//@ts-ignore
|
|
225
|
+
search?(options: FindOptions, startFrom: SearchResult): AsyncIterableIterator<SearchResult>;
|
|
226
|
+
}
|
|
227
|
+
export declare type PageSize = {
|
|
228
|
+
/** Page width in html units. E.g. "13cm", "5in" */
|
|
229
|
+
width: string;
|
|
230
|
+
/** Page height. */
|
|
231
|
+
height: string;
|
|
232
|
+
};
|
|
233
|
+
/** Marker interface for page data */
|
|
234
|
+
export interface IPageData {
|
|
235
|
+
/** Gets the page size */
|
|
236
|
+
readonly pageSize: PageSize;
|
|
237
|
+
}
|
|
238
|
+
/** Rendering friendly page representation. */
|
|
239
|
+
export declare type PageView = {
|
|
240
|
+
kind: 'html';
|
|
241
|
+
html: string;
|
|
242
|
+
} | {
|
|
243
|
+
kind: 'dom';
|
|
244
|
+
dom: Element;
|
|
245
|
+
};
|
|
246
|
+
export type { PageDecoration };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare type HistoryDir = "Back" | "Fwd" | "Parent";
|
|
2
|
+
export declare type GotoTarget = "first" | "prev" | "next" | "last";
|
|
3
|
+
/** @hidden Pointer to a document with required settings/parameters */
|
|
4
|
+
export interface DocumentMoniker {
|
|
5
|
+
readonly pluginKey: string;
|
|
6
|
+
}
|
|
7
|
+
/** @hidden */
|
|
8
|
+
export declare type ReportViewerCmd = {
|
|
9
|
+
type: "Goto";
|
|
10
|
+
payload: {
|
|
11
|
+
target: GotoTarget;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: "GotoPage";
|
|
15
|
+
payload: {
|
|
16
|
+
pageIndex: number;
|
|
17
|
+
scrollTo?: string;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: "SetCurrentPage";
|
|
21
|
+
payload: {
|
|
22
|
+
pageIndex: number;
|
|
23
|
+
};
|
|
24
|
+
} | {
|
|
25
|
+
type: "FetchPages";
|
|
26
|
+
payload: {
|
|
27
|
+
startPage: number;
|
|
28
|
+
pageCount: number;
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
type: "Refresh";
|
|
32
|
+
} | {
|
|
33
|
+
type: "Run";
|
|
34
|
+
payload?: {
|
|
35
|
+
dontCutHistory: boolean;
|
|
36
|
+
gotoPageIndex?: number;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
type: "Cancel";
|
|
40
|
+
}
|
|
41
|
+
/** Resets the pages navigation history. Clears document drill history if `hard` parameter is set to true */
|
|
42
|
+
| {
|
|
43
|
+
type: "ClearHistory";
|
|
44
|
+
payload: {
|
|
45
|
+
hard?: boolean;
|
|
46
|
+
};
|
|
47
|
+
} | {
|
|
48
|
+
type: "GoHistory";
|
|
49
|
+
payload: {
|
|
50
|
+
direction: HistoryDir;
|
|
51
|
+
};
|
|
52
|
+
} | {
|
|
53
|
+
type: "UpdateView";
|
|
54
|
+
} | {
|
|
55
|
+
type: "OpenDocument";
|
|
56
|
+
payload: DocumentMoniker;
|
|
57
|
+
};
|
|
58
|
+
/** @hidden */
|
|
59
|
+
export declare type ReportViewerCommandStatus = {
|
|
60
|
+
readonly canGoBack: boolean;
|
|
61
|
+
readonly canGoForward: boolean;
|
|
62
|
+
readonly canRefresh: boolean;
|
|
63
|
+
readonly canCancel: boolean;
|
|
64
|
+
readonly canGoHistoryBack: boolean;
|
|
65
|
+
readonly canGoBackToParent: boolean;
|
|
66
|
+
readonly canGoHistoryForward: boolean;
|
|
67
|
+
readonly canGoHistory: {
|
|
68
|
+
Back: boolean;
|
|
69
|
+
Fwd: boolean;
|
|
70
|
+
Parent: boolean;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import { PageViewProps } from './types';
|
|
6
|
+
declare type ContinuousViewState = {
|
|
7
|
+
viewportHeight: number;
|
|
8
|
+
viewportWidth: number;
|
|
9
|
+
scrollTopPosition: number;
|
|
10
|
+
scrollingToPage: boolean;
|
|
11
|
+
pagesOnScreen: number;
|
|
12
|
+
};
|
|
13
|
+
export declare class ContinuousView extends Component<PageViewProps, ContinuousViewState> {
|
|
14
|
+
static displayName: string;
|
|
15
|
+
private ref;
|
|
16
|
+
private _pageCoords;
|
|
17
|
+
private _lastScrollRequestNo;
|
|
18
|
+
private _moveHandler;
|
|
19
|
+
constructor(props: PageViewProps);
|
|
20
|
+
private checkMouseMode;
|
|
21
|
+
private onUnmount?;
|
|
22
|
+
componentDidMount(): void;
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
componentDidUpdate(prevProps: PageViewProps): void;
|
|
25
|
+
private getVisiblePageIndex;
|
|
26
|
+
private updateViewportSize;
|
|
27
|
+
private onScroll;
|
|
28
|
+
private getRange;
|
|
29
|
+
private fetchPagesIfNew;
|
|
30
|
+
private setCurrentPage;
|
|
31
|
+
private scrollToCurrentPage;
|
|
32
|
+
private onClick;
|
|
33
|
+
render(): JSX.Element;
|
|
34
|
+
private getPageSize;
|
|
35
|
+
private getPageViewportSize;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import { PageInfo, ZoomTarget } from './types';
|
|
6
|
+
import { PluginModel } from '../../api';
|
|
7
|
+
export declare type PageProps = {
|
|
8
|
+
pageIndex: number;
|
|
9
|
+
pageModel: PageInfo | null;
|
|
10
|
+
zoomFactor: number;
|
|
11
|
+
zoomTarget?: ZoomTarget;
|
|
12
|
+
defaultPageSize?: PluginModel.PageSize;
|
|
13
|
+
};
|
|
14
|
+
export declare class Page extends Component<PageProps> {
|
|
15
|
+
static displayName: string;
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { Component } from 'react';
|
|
5
|
+
import { PageViewProps } from './types';
|
|
6
|
+
declare type SinglePageViewState = {
|
|
7
|
+
zoomFactor: number;
|
|
8
|
+
viewportWidth: number;
|
|
9
|
+
viewportHeight: number;
|
|
10
|
+
shouldUpdateViewportSize: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare class SinglePageView extends Component<PageViewProps, SinglePageViewState> {
|
|
13
|
+
static displayName: string;
|
|
14
|
+
private zoomerRef;
|
|
15
|
+
private pageViewRef;
|
|
16
|
+
private _lastScrollRequestNo;
|
|
17
|
+
private _moveHandler;
|
|
18
|
+
state: SinglePageViewState;
|
|
19
|
+
private onClick;
|
|
20
|
+
private checkMouseMode;
|
|
21
|
+
private onUnmount?;
|
|
22
|
+
componentDidMount(): void;
|
|
23
|
+
componentWillUnmount(): void;
|
|
24
|
+
componentDidUpdate(): void;
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
private updateViewportSize;
|
|
27
|
+
private getPageSize;
|
|
28
|
+
private getPageViewportSize;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { Component, MouseEventHandler } from 'react';
|
|
5
|
+
import { Model } from "./types";
|
|
6
|
+
import { ReportViewerCmd } from "../../api/ReportViewerCmd";
|
|
7
|
+
export declare type DocumentViewerProps = {
|
|
8
|
+
dispatchViewerCmd: (cmd: ReportViewerCmd) => void;
|
|
9
|
+
onClick: MouseEventHandler;
|
|
10
|
+
resizeObserver: (handler: () => void) => (() => void);
|
|
11
|
+
};
|
|
12
|
+
export declare class View extends Component<DocumentViewerProps, Model> {
|
|
13
|
+
state: Model;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
2
|
+
//@ts-ignore
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ZoomTarget } from "./types";
|
|
5
|
+
export declare type ZoomerProps = {
|
|
6
|
+
zoomFactor: number;
|
|
7
|
+
zoomTarget: ZoomTarget;
|
|
8
|
+
shouldAddMargin: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Zoomer: React.ForwardRefExoticComponent<ZoomerProps & {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
import { DocViewMsg, DocViewModel, ViewSettings, SettingsMsg, Model } from "./types";
|
|
3
|
+
export declare function init(): Model;
|
|
4
|
+
export declare function initDocView(): DocViewModel;
|
|
5
|
+
export declare function initSettings(): ViewSettings;
|
|
6
|
+
export declare function docViewReducer(msg: DocViewMsg, model: DocViewModel): DocViewModel;
|
|
7
|
+
export declare function settingsReducer(msg: SettingsMsg, model: ViewSettings): ViewSettings;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/** @hidden */ /** */
|
|
2
|
+
/// <reference path="../../../../vendor/react/react.d.ts" />
|
|
3
|
+
//@ts-ignore
|
|
4
|
+
import { MouseEventHandler } from 'react';
|
|
5
|
+
import { PluginModel, ReportViewerCmd } from '../../api';
|
|
6
|
+
export declare type PageInfo = {
|
|
7
|
+
size: PluginModel.PageSize | null;
|
|
8
|
+
data: PluginModel.PageView | null;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isInvalid: boolean;
|
|
11
|
+
reqIndex: number;
|
|
12
|
+
};
|
|
13
|
+
export declare enum ViewerStatus {
|
|
14
|
+
Empty = 0,
|
|
15
|
+
Loading = 1,
|
|
16
|
+
Cancelled = 2,
|
|
17
|
+
Ready = 3,
|
|
18
|
+
Failed = 4
|
|
19
|
+
}
|
|
20
|
+
export declare enum ZoomMode {
|
|
21
|
+
Value = 0,
|
|
22
|
+
PageWidth = 1,
|
|
23
|
+
WholePage = 2
|
|
24
|
+
}
|
|
25
|
+
export declare enum ViewMode {
|
|
26
|
+
SinglePage = 0,
|
|
27
|
+
Continuous = 1
|
|
28
|
+
}
|
|
29
|
+
export declare enum MouseMode {
|
|
30
|
+
Select = 0,
|
|
31
|
+
Move = 1
|
|
32
|
+
}
|
|
33
|
+
export declare type UISize = 'small' | 'medium' | 'large';
|
|
34
|
+
/**
|
|
35
|
+
* Zoom settings.
|
|
36
|
+
**/
|
|
37
|
+
export declare type ZoomSettings = {
|
|
38
|
+
/**
|
|
39
|
+
* Zoom mode - fit page width.
|
|
40
|
+
**/
|
|
41
|
+
mode: ZoomMode.PageWidth;
|
|
42
|
+
} | {
|
|
43
|
+
/**
|
|
44
|
+
* Zoom mode - fit whole page.
|
|
45
|
+
**/
|
|
46
|
+
mode: ZoomMode.WholePage;
|
|
47
|
+
} | {
|
|
48
|
+
/**
|
|
49
|
+
* Zoom mode - value.
|
|
50
|
+
**/
|
|
51
|
+
mode: ZoomMode.Value;
|
|
52
|
+
/**
|
|
53
|
+
* Zoom factor.
|
|
54
|
+
**/
|
|
55
|
+
factor: number;
|
|
56
|
+
};
|
|
57
|
+
export declare type ZoomTarget = 'viewport' | 'page';
|
|
58
|
+
export declare type PageDecoration = 'none' | 'border' | 'shadow';
|
|
59
|
+
export declare type ViewSettings = {
|
|
60
|
+
zoom: ZoomSettings;
|
|
61
|
+
zoomTarget: ZoomTarget;
|
|
62
|
+
mode: ViewMode;
|
|
63
|
+
mouseMode: MouseMode;
|
|
64
|
+
isFullscreen: boolean;
|
|
65
|
+
narrowScreen: boolean;
|
|
66
|
+
isToolbarVisible: boolean;
|
|
67
|
+
isSidebarVisible: boolean;
|
|
68
|
+
backgroundColor: string;
|
|
69
|
+
pageDecoration: PageDecoration;
|
|
70
|
+
enableSidebarInFullscreen: boolean;
|
|
71
|
+
};
|
|
72
|
+
export declare type DocViewModel = {
|
|
73
|
+
readonly status: ViewerStatus;
|
|
74
|
+
readonly pageCount: number;
|
|
75
|
+
readonly pageIndex: number;
|
|
76
|
+
/** Indicates last page was set by user and view should scroll to page */
|
|
77
|
+
readonly scrollRequestNo: number;
|
|
78
|
+
readonly scrollToSelector: string | null;
|
|
79
|
+
readonly progressMessage: string;
|
|
80
|
+
readonly pageBuffer: Array<PageInfo>;
|
|
81
|
+
readonly highlightPage: {
|
|
82
|
+
pageIndex: number;
|
|
83
|
+
pageView: PluginModel.PageView;
|
|
84
|
+
} | null;
|
|
85
|
+
};
|
|
86
|
+
export declare type SettingsMsg = {
|
|
87
|
+
type: "UpdateZoom";
|
|
88
|
+
payload: {
|
|
89
|
+
zoom: ZoomSettings;
|
|
90
|
+
};
|
|
91
|
+
} | {
|
|
92
|
+
type: "UpdateZoomTarget";
|
|
93
|
+
payload: {
|
|
94
|
+
zoomTarget: ZoomTarget;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
type: "UpdateView";
|
|
98
|
+
payload: {
|
|
99
|
+
mode: ViewMode;
|
|
100
|
+
};
|
|
101
|
+
} | {
|
|
102
|
+
type: "UpdateMouseMode";
|
|
103
|
+
payload: {
|
|
104
|
+
mode: MouseMode;
|
|
105
|
+
};
|
|
106
|
+
} | {
|
|
107
|
+
type: "UpdateFullscreen";
|
|
108
|
+
payload: {
|
|
109
|
+
isFullscreen: boolean;
|
|
110
|
+
};
|
|
111
|
+
} | {
|
|
112
|
+
type: "UpdateToolbarVisibility";
|
|
113
|
+
payload: {
|
|
114
|
+
isVisible: boolean;
|
|
115
|
+
};
|
|
116
|
+
} | {
|
|
117
|
+
type: "UpdateSidebarVisibility";
|
|
118
|
+
payload: {
|
|
119
|
+
isVisible: boolean;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
type: "ToggleNarrowScreen";
|
|
123
|
+
payload: {
|
|
124
|
+
isNarrow?: boolean;
|
|
125
|
+
};
|
|
126
|
+
} | {
|
|
127
|
+
type: 'UpdateBackgroundColor';
|
|
128
|
+
payload: {
|
|
129
|
+
backgroundColor: string;
|
|
130
|
+
};
|
|
131
|
+
} | {
|
|
132
|
+
type: 'UpdatePageDecoration';
|
|
133
|
+
payload: {
|
|
134
|
+
pageDecoration: PageDecoration;
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
type: 'EnableSidebarInFullscreen';
|
|
138
|
+
payload: {
|
|
139
|
+
enableSidebarInFullscreen: boolean;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export declare type DocViewMsg = {
|
|
143
|
+
type: "Reset";
|
|
144
|
+
payload: {};
|
|
145
|
+
} | {
|
|
146
|
+
type: "UpdateStatus";
|
|
147
|
+
payload: {
|
|
148
|
+
isLoading: boolean;
|
|
149
|
+
pageCount?: number;
|
|
150
|
+
message: string;
|
|
151
|
+
};
|
|
152
|
+
} | {
|
|
153
|
+
type: "Cancelled";
|
|
154
|
+
payload: {
|
|
155
|
+
message: string;
|
|
156
|
+
};
|
|
157
|
+
} | {
|
|
158
|
+
type: "Failed";
|
|
159
|
+
payload: {
|
|
160
|
+
message: string;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
type: "SetCurrentPage";
|
|
164
|
+
payload: {
|
|
165
|
+
pageIndex: number;
|
|
166
|
+
doScroll?: boolean;
|
|
167
|
+
scrollTo?: string;
|
|
168
|
+
};
|
|
169
|
+
} | {
|
|
170
|
+
type: "Fetching";
|
|
171
|
+
payload: {
|
|
172
|
+
pageIndex: number;
|
|
173
|
+
reqIndex: number;
|
|
174
|
+
};
|
|
175
|
+
} | {
|
|
176
|
+
type: "Fetched";
|
|
177
|
+
payload: {
|
|
178
|
+
pageIndex: number;
|
|
179
|
+
reqIndex: number;
|
|
180
|
+
data: PluginModel.PageView;
|
|
181
|
+
size: PluginModel.PageSize;
|
|
182
|
+
};
|
|
183
|
+
} | {
|
|
184
|
+
type: "RemoveHighlight";
|
|
185
|
+
} | {
|
|
186
|
+
type: "HighlightPage";
|
|
187
|
+
payload: {
|
|
188
|
+
pageIndex: number;
|
|
189
|
+
pageView: PluginModel.PageView;
|
|
190
|
+
};
|
|
191
|
+
} | {
|
|
192
|
+
type: "Invalidate";
|
|
193
|
+
payload: {
|
|
194
|
+
startPage: number;
|
|
195
|
+
pageCount: number;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
export declare type PageViewProps = DocViewModel & {
|
|
199
|
+
settings: ViewSettings;
|
|
200
|
+
dispatchVwr: (cmd: ReportViewerCmd) => void;
|
|
201
|
+
onClick: MouseEventHandler;
|
|
202
|
+
resizeObserver: (handler: () => void) => (() => void);
|
|
203
|
+
};
|
|
204
|
+
export declare type Model = {
|
|
205
|
+
settings: ViewSettings;
|
|
206
|
+
session: DocViewModel;
|
|
207
|
+
};
|
|
208
|
+
export declare type Msg = {
|
|
209
|
+
type: 'settings';
|
|
210
|
+
payload: SettingsMsg;
|
|
211
|
+
} | {
|
|
212
|
+
type: 'session';
|
|
213
|
+
payload: DocViewMsg;
|
|
214
|
+
};
|