@react-pdf-kit/viewer 2.6.0-beta.2 → 2.6.0-rc.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/dist/AnnotationLayer-D6BfL976.js +113 -0
- package/dist/Button-jStpvb3T.js +21 -0
- package/dist/Checkbox-Brta-YKG.js +195 -0
- package/dist/Combination-DqNkTtir.js +695 -0
- package/dist/Container-DTWaZzc7.js +16 -0
- package/dist/CustomThumbnailElement-C2quEICO.js +19 -0
- package/dist/DarkPdfIcon-B5ehd9CV.js +9 -0
- package/dist/DocumentDialog-DHAWcYIz.js +324 -0
- package/dist/DropDown-DikL-krI.js +33 -0
- package/dist/Input-Bb_-ljl1.js +31 -0
- package/dist/LightPdfIcon-DL8MYtWQ.js +9 -0
- package/dist/LoaderIcon-D9YjinGf.js +14 -0
- package/dist/LoadingIndicator-MWrbKa6X.js +45 -0
- package/dist/MenuItem-BJDWfzAw.js +15 -0
- package/dist/MenuSeparator-D1H5l8Ej.js +6 -0
- package/dist/MostPageTool.module-BRVv-sGz.js +4 -0
- package/dist/OtherTool.module-BQY9Nfqz.js +4 -0
- package/dist/Paginate.module-B0GMw-MB.js +8 -0
- package/dist/PaginationContext--n91mIJ4.js +232 -0
- package/dist/PasswordModal-BDHdSpxf.js +76 -0
- package/dist/PropertyItem-evJWWmWZ.js +18 -0
- package/dist/RPDropFileZone-BunRfzst.js +35 -0
- package/dist/RPLayout.module-Vc3h4xxS.js +14 -0
- package/dist/RPPage-BuSGUFzw.js +91 -0
- package/dist/RPPages-V5CNUXFD.js +1007 -0
- package/dist/RPSplitter-C63X9M8w.js +121 -0
- package/dist/RPToolbar.module-BwqWLviy.js +10 -0
- package/dist/RPTooltip-ZZoFqP7C.js +381 -0
- package/dist/RotateTool.module-DH5yWbvM.js +4 -0
- package/dist/SearchTool.module-DUkVXfOn.js +16 -0
- package/dist/SkipLink-Bvbn3miT.js +18 -0
- package/dist/TextHighlightLayer-BSVgBxR3.js +157 -0
- package/dist/TextLayer-DWGFN9SF.js +125 -0
- package/dist/Thumbnail-Dwo2-4Ki.js +97 -0
- package/dist/Thumbnails-ComClyJJ.js +52 -0
- package/dist/ToolbarLayout.module-Zo715dbb.js +12 -0
- package/dist/WrapperLayout-Dcd9l9xH.js +13 -0
- package/dist/ZoomTool.module-BrIPy8pO.js +11 -0
- package/dist/assets/AnnotationLayer.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/CustomThumbnailElement.css +1 -0
- package/dist/assets/DocumentDialog.css +1 -0
- package/dist/assets/DropDown.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/LoaderIcon.css +1 -0
- package/dist/assets/LoadingIndicator.css +1 -0
- package/dist/assets/MenuItem.css +1 -0
- package/dist/assets/MenuSeparator.css +1 -0
- package/dist/assets/MostPageTool.css +1 -0
- package/dist/assets/OtherTool.css +1 -0
- package/dist/assets/Paginate.css +1 -0
- package/dist/assets/PasswordModal.css +1 -0
- package/dist/assets/PropertyItem.css +1 -0
- package/dist/assets/RPDropFileZone.css +1 -0
- package/dist/assets/RPLayout.css +1 -0
- package/dist/assets/RPPage.css +1 -0
- package/dist/assets/RPPages.css +1 -0
- package/dist/assets/RPSplitter.css +1 -0
- package/dist/assets/RPToolbar.css +1 -0
- package/dist/assets/RPTooltip.css +1 -0
- package/dist/assets/RotateTool.css +1 -0
- package/dist/assets/SearchTool.css +1 -0
- package/dist/assets/SkipLink.css +1 -0
- package/dist/assets/TextHighlightLayer.css +1 -0
- package/dist/assets/TextLayer.css +1 -0
- package/dist/assets/Thumbnail.css +1 -0
- package/dist/assets/Thumbnails.css +1 -0
- package/dist/assets/ToolbarLayout.css +1 -0
- package/dist/assets/WrapperLayout.css +1 -0
- package/dist/assets/ZoomTool.css +1 -0
- package/dist/assets/style.js +2 -77
- package/dist/chunk-C_CI6nMA.js +13 -0
- package/dist/clsx-B7LyVm5O.js +16 -0
- package/dist/components/RPConfig.js +24 -26
- package/dist/components/RPController.js +85 -135
- package/dist/components/RPDropFileZone.js +3 -61
- package/dist/components/RPPages.js +3 -1115
- package/dist/components/RPProvider.js +50 -131
- package/dist/components/RPTheme.js +20 -21
- package/dist/components/icons/CheckIcon.js +16 -22
- package/dist/components/icons/ChevronDownIcon.js +17 -23
- package/dist/components/icons/ChevronUpIcon.js +16 -22
- package/dist/components/icons/ClearIcon.js +26 -25
- package/dist/components/icons/ClockwiseIcon.js +16 -22
- package/dist/components/icons/CloseIcon.js +16 -22
- package/dist/components/icons/DarkPdfIcon.js +2 -15
- package/dist/components/icons/DualPageIcon.js +16 -22
- package/dist/components/icons/DualPageWithCoverIcon.js +16 -22
- package/dist/components/icons/FileDownloadDefaultIcon.js +20 -23
- package/dist/components/icons/FileUploadDefaultIcon.js +20 -23
- package/dist/components/icons/FullScreenIcon.js +16 -22
- package/dist/components/icons/GoToDownIcon.js +16 -22
- package/dist/components/icons/HandModeDefaultIcon.js +16 -22
- package/dist/components/icons/HorizontalScrollingIcon.js +18 -24
- package/dist/components/icons/InfoIcon.js +16 -22
- package/dist/components/icons/LightPdfIcon.js +2 -15
- package/dist/components/icons/LoaderIcon.js +2 -17
- package/dist/components/icons/MoonIcon.js +16 -22
- package/dist/components/icons/PageScrollingIcon.js +18 -24
- package/dist/components/icons/PrintDefaultIcon.js +20 -23
- package/dist/components/icons/SearchIcon.js +16 -22
- package/dist/components/icons/SinglePageIcon.js +15 -21
- package/dist/components/icons/SunIcon.js +26 -25
- package/dist/components/icons/TextSelectionDefaultIcon.js +20 -23
- package/dist/components/icons/ThreeDotIcon.js +16 -22
- package/dist/components/icons/Thumbnail.js +39 -54
- package/dist/components/icons/VerticalScrollingIcon.js +18 -24
- package/dist/components/icons/WrappedScrollingIcon.js +18 -24
- package/dist/components/icons/ZoomInIcon.js +16 -22
- package/dist/components/icons/ZoomOutIcon.js +16 -22
- package/dist/components/layout/Container.js +2 -21
- package/dist/components/layout/LayoutContainer.js +23 -34
- package/dist/components/layout/LayoutWrapper.js +14 -10
- package/dist/components/layout/RPDefaultLayout.js +99 -244
- package/dist/components/layout/RPLayout.js +70 -220
- package/dist/components/layout/SkipLink.js +3 -29
- package/dist/components/layout/WrapperLayout.js +2 -27
- package/dist/components/layout/sidebar/CustomThumbnailElement.js +2 -68
- package/dist/components/layout/sidebar/RPSidebar.js +61 -112
- package/dist/components/layout/sidebar/RPSplitter.js +2 -9
- package/dist/components/layout/sidebar/Thumbnail.js +3 -155
- package/dist/components/layout/sidebar/Thumbnails.js +2 -82
- package/dist/components/layout/toolbar/DarkModeTool.js +44 -36
- package/dist/components/layout/toolbar/DocumentDialog.js +2 -322
- package/dist/components/layout/toolbar/DocumentProperties.js +30 -39
- package/dist/components/layout/toolbar/FileDownloadTool.js +54 -50
- package/dist/components/layout/toolbar/FileUploadTool.js +54 -49
- package/dist/components/layout/toolbar/FullScreenTool.js +62 -72
- package/dist/components/layout/toolbar/MenuItem.js +2 -19
- package/dist/components/layout/toolbar/MenuSeparator.js +2 -15
- package/dist/components/layout/toolbar/MostPageTool.js +62 -81
- package/dist/components/layout/toolbar/OtherTool.js +97 -198
- package/dist/components/layout/toolbar/Paginate.js +111 -145
- package/dist/components/layout/toolbar/PrintTool.js +70 -72
- package/dist/components/layout/toolbar/PropertyItem.js +2 -12
- package/dist/components/layout/toolbar/RPMenuItem.js +22 -31
- package/dist/components/layout/toolbar/RPMoreOptions.js +140 -220
- package/dist/components/layout/toolbar/RPToolbar.js +45 -151
- package/dist/components/layout/toolbar/RPToolbarEnd.js +23 -121
- package/dist/components/layout/toolbar/RotateTool.js +49 -60
- package/dist/components/layout/toolbar/ScrollModeTool.js +79 -67
- package/dist/components/layout/toolbar/SearchCloseButton.js +23 -31
- package/dist/components/layout/toolbar/SearchResultNavigator.js +39 -100
- package/dist/components/layout/toolbar/SearchTool.js +226 -267
- package/dist/components/layout/toolbar/SelectionModeTool.js +59 -51
- package/dist/components/layout/toolbar/ThumbnailTool.js +30 -39
- package/dist/components/layout/toolbar/ToolbarCustom.js +56 -113
- package/dist/components/layout/toolbar/ToolbarDefault.js +58 -196
- package/dist/components/layout/toolbar/ToolbarLayout.js +12 -158
- package/dist/components/layout/toolbar/ViewModeTool.js +82 -62
- package/dist/components/layout/toolbar/ZoomTool.js +139 -150
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +24 -54
- package/dist/components/layout/toolbar/tools/DualPageTool.js +23 -25
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +2 -206
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +23 -35
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +23 -34
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +25 -33
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/InputPageTool.js +51 -92
- package/dist/components/layout/toolbar/tools/LastPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/NextPageTool.js +32 -61
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +21 -62
- package/dist/components/layout/toolbar/tools/PrintTool.js +23 -35
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +23 -47
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +26 -47
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +29 -38
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +22 -24
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +24 -35
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +24 -46
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +29 -58
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +26 -26
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +94 -133
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +29 -58
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +60 -148
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +31 -42
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +23 -28
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +25 -51
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +26 -42
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +57 -87
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +44 -64
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +80 -71
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +59 -57
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +79 -66
- package/dist/components/page/AnnotationLayer.js +2 -146
- package/dist/components/page/CanvasLayer.js +47 -71
- package/dist/components/page/CustomElement.js +18 -53
- package/dist/components/page/DualPage.js +43 -98
- package/dist/components/page/DualPageWithCover.js +66 -130
- package/dist/components/page/RPPage.js +2 -143
- package/dist/components/page/SinglePage.js +27 -88
- package/dist/components/page/TextHighlightLayer.js +2 -198
- package/dist/components/page/TextLayer.js +2 -202
- package/dist/components/page/searchHighlight.js +32 -37
- package/dist/components/ui/Button.js +2 -25
- package/dist/components/ui/Checkbox.js +2 -273
- package/dist/components/ui/DropDown.js +2 -36
- package/dist/components/ui/Input.js +2 -28
- package/dist/components/ui/LoadingIndicator.js +2 -59
- package/dist/components/ui/PasswordModal.js +2 -75
- package/dist/components/ui/RPTooltip.js +2 -357
- package/dist/contexts/ConfigContext.js +13 -12
- package/dist/contexts/DarkModeContext.js +26 -27
- package/dist/contexts/DimensionPagesContext.js +49 -60
- package/dist/contexts/DocumentPasswordContext.js +37 -35
- package/dist/contexts/DownloadContext.js +13 -21
- package/dist/contexts/DropFileZoneContext.js +35 -62
- package/dist/contexts/ElementPageContext.js +114 -139
- package/dist/contexts/ElementThumbnailContext.js +132 -195
- package/dist/contexts/EventCallbackContext.js +19 -34
- package/dist/contexts/FileInputContext.js +30 -49
- package/dist/contexts/FullScreenContext.js +31 -24
- package/dist/contexts/GlobalCurrentPage.js +21 -18
- package/dist/contexts/HighlightContext.js +22 -31
- package/dist/contexts/IconContext.js +9 -11
- package/dist/contexts/IconToolContext.js +14 -11
- package/dist/contexts/InitialStateContext.js +9 -11
- package/dist/contexts/LayerContext.js +9 -8
- package/dist/contexts/LayoutContainerContext.js +12 -16
- package/dist/contexts/LayoutDropFileZoneContext.js +8 -11
- package/dist/contexts/LicenseContext.js +12 -17
- package/dist/contexts/LoaderContext.js +14 -27
- package/dist/contexts/LocalizationContext.js +22 -33
- package/dist/contexts/OtherToolContext.js +17 -17
- package/dist/contexts/PageViewportContext.js +9 -8
- package/dist/contexts/PagesRotateContext.js +42 -43
- package/dist/contexts/PaginationContext.js +2 -40
- package/dist/contexts/PrintContext.js +67 -78
- package/dist/contexts/RPDocumentContext.js +60 -73
- package/dist/contexts/RenderQueueProvider.js +43 -72
- package/dist/contexts/RenderedPagesCache.js +17 -13
- package/dist/contexts/RotationContext.js +27 -38
- package/dist/contexts/ScrollModeContext.js +22 -20
- package/dist/contexts/SearchContext.js +39 -97
- package/dist/contexts/SelectionModeContext.js +22 -23
- package/dist/contexts/SmoothScrollContext.js +18 -16
- package/dist/contexts/ThemeContext.js +5 -7
- package/dist/contexts/ThumbnailsContext.js +26 -43
- package/dist/contexts/ToolComponentContext.js +54 -51
- package/dist/contexts/ToolbarComponentContext.js +48 -47
- package/dist/contexts/ViewModeContext.js +34 -31
- package/dist/contexts/ViewportContext.js +91 -85
- package/dist/contexts/VirtualGridContext.js +17 -14
- package/dist/contexts/VirtualScrollContext.js +42 -52
- package/dist/contexts/ZoomContext.js +95 -107
- package/dist/de_DE--0LF-SJR.js +483 -0
- package/dist/dist-7FA4Do6I.js +1286 -0
- package/dist/dist-BRVqFn7R.js +144 -0
- package/dist/dist-C3WNMuW2.js +29 -0
- package/dist/dist-CKteKPPA.js +947 -0
- package/dist/dist-bK-AHWLF.js +314 -0
- package/dist/lib-BiapEtK1.js +10261 -0
- package/dist/libInjectCss.js +7 -8
- package/dist/main-CHO5p1qM.js +60 -0
- package/dist/main.js +53 -296
- package/dist/style-9n_QpMZt.js +5 -0
- package/dist/useWatermark-CvAAf66v.js +67 -0
- package/dist/utils/Queue.js +40 -46
- package/dist/utils/annotations.js +227 -261
- package/dist/utils/appConsole.js +24 -42
- package/dist/utils/approximateFragtion.js +16 -21
- package/dist/utils/calculatePage.js +29 -20
- package/dist/utils/charators.js +39 -48
- package/dist/utils/const.js +8 -11
- package/dist/utils/constants.js +4 -8
- package/dist/utils/convertPdfDate.js +20 -24
- package/dist/utils/dateFormatter.js +7 -7
- package/dist/utils/elementPagePosition.js +10 -10
- package/dist/utils/formatFileSize.js +17 -8
- package/dist/utils/getElementPositionInPage.js +44 -82
- package/dist/utils/getScrollDistance.js +4 -4
- package/dist/utils/getThumbnailViewport.js +12 -6
- package/dist/utils/getWordPositionInPage.js +24 -24
- package/dist/utils/getZoomLevel.js +16 -23
- package/dist/utils/highlight.js +195 -212
- package/dist/utils/hooks/useCopyText.js +23 -33
- package/dist/utils/hooks/useDarkMode.js +10 -10
- package/dist/utils/hooks/useDarkModeProps.js +9 -10
- package/dist/utils/hooks/useDebounce.js +22 -18
- package/dist/utils/hooks/useDropFileZone.js +13 -11
- package/dist/utils/hooks/useElementSize.js +24 -20
- package/dist/utils/hooks/useFileDownload.js +16 -33
- package/dist/utils/hooks/useFlickerSelectText.js +19 -24
- package/dist/utils/hooks/useFullScreen.js +31 -28
- package/dist/utils/hooks/useGrabScroll.js +52 -51
- package/dist/utils/hooks/useHighlight.js +92 -92
- package/dist/utils/hooks/useInfiniteScroll.js +17 -18
- package/dist/utils/hooks/useLicense.js +113 -135
- package/dist/utils/hooks/useLoadPdf.js +107 -100
- package/dist/utils/hooks/useLoadWorker.js +13 -15
- package/dist/utils/hooks/useLocalization.js +25 -25
- package/dist/utils/hooks/useMousePressed.js +25 -19
- package/dist/utils/hooks/usePageRotateContext.js +25 -41
- package/dist/utils/hooks/usePaginate.js +2 -38
- package/dist/utils/hooks/usePdfProperties.js +38 -36
- package/dist/utils/hooks/usePinch.js +65 -100
- package/dist/utils/hooks/usePresentPage.js +69 -92
- package/dist/utils/hooks/usePrint.js +167 -178
- package/dist/utils/hooks/useRequestAnimationFrame.js +16 -16
- package/dist/utils/hooks/useResizeObserver.js +18 -21
- package/dist/utils/hooks/useRotate.js +15 -27
- package/dist/utils/hooks/useScrollToPage.js +2 -38
- package/dist/utils/hooks/useSearch.js +125 -163
- package/dist/utils/hooks/useTextSelection.js +69 -75
- package/dist/utils/hooks/useThumbnail.js +42 -59
- package/dist/utils/hooks/useVirtualReactWindow.js +85 -96
- package/dist/utils/hooks/useWatermark.js +2 -78
- package/dist/utils/injectPrintCSS.js +6 -21
- package/dist/utils/link_service.js +59 -137
- package/dist/utils/renderPage.js +20 -19
- package/dist/utils/sanitizeExternalUrl.js +12 -15
- package/dist/utils/smoothScrollTo.js +8 -5
- package/dist/utils/types.js +29 -21
- package/dist/utils/withRef.js +7 -7
- package/dist/utils/zoom.js +5 -6
- package/package.json +7 -7
- package/dist/Combination-17ab8af1.js +0 -698
- package/dist/MostPageTool.module-13578ad6.js +0 -6
- package/dist/OtherTool.module-a4be5f1f.js +0 -6
- package/dist/Paginate.module-4eef00aa.js +0 -8
- package/dist/PaginationContext-87f832f2.js +0 -233
- package/dist/RPLayout.module-92fa19f7.js +0 -14
- package/dist/RPSplitter-b62772f9.js +0 -122
- package/dist/RPToolbar.module-27d7fe77.js +0 -10
- package/dist/RotateTool.module-67946714.js +0 -6
- package/dist/SearchTool.module-99f60dc7.js +0 -16
- package/dist/ToolbarLayout.module-6e339802.js +0 -12
- package/dist/ZoomTool.module-7082af8c.js +0 -12
- package/dist/assets/style.css +0 -1
- package/dist/clsx-0c6e471a.js +0 -22
- package/dist/de_DE-8145915f.js +0 -489
- package/dist/index-113053cf.js +0 -309
- package/dist/index-11f3cd64.js +0 -983
- package/dist/index-23911b43.js +0 -150
- package/dist/index-ada501c4.js +0 -27
- package/dist/index-d0f0aa9a.js +0 -1542
- package/dist/index-e04c91b1.js +0 -11671
|
@@ -1,268 +1,227 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
J ? /* @__PURE__ */ o("span", { "aria-live": "polite", "aria-label": "Searching", children: /* @__PURE__ */ o(dt, { className: n["rp-search-loader-icon"], "aria-hidden": "true" }) }) : /* @__PURE__ */ o("span", { id: "search-results-count", "aria-live": "polite", children: ot }),
|
|
226
|
-
C && /* @__PURE__ */ o("div", { className: n["rp-search-tool-controls"], children: /* @__PURE__ */ o(z, { onKeyPress: R, handleClose: l }) })
|
|
227
|
-
] }),
|
|
228
|
-
/* @__PURE__ */ x("div", { className: n["rp-search-tool-input-checkboxes"], children: [
|
|
229
|
-
C && /* @__PURE__ */ o(q, {}),
|
|
230
|
-
/* @__PURE__ */ o(
|
|
231
|
-
$,
|
|
232
|
-
{
|
|
233
|
-
tabIndex: 0,
|
|
234
|
-
name: "matchCase",
|
|
235
|
-
value: et,
|
|
236
|
-
onChange: nt,
|
|
237
|
-
"aria-label": t == null ? void 0 : t.searchMatchCaseLabel,
|
|
238
|
-
children: t == null ? void 0 : t.searchMatchCaseLabel
|
|
239
|
-
}
|
|
240
|
-
),
|
|
241
|
-
!C && /* @__PURE__ */ o(v, { content: t == null ? void 0 : t.searchMatchCaseTooltip, children: /* @__PURE__ */ o("div", { className: n["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ o(j, {}) }) }),
|
|
242
|
-
/* @__PURE__ */ o(
|
|
243
|
-
$,
|
|
244
|
-
{
|
|
245
|
-
tabIndex: 0,
|
|
246
|
-
name: "wholeWord",
|
|
247
|
-
value: rt,
|
|
248
|
-
onChange: it,
|
|
249
|
-
"aria-label": t == null ? void 0 : t.searchWholeWordsLabel,
|
|
250
|
-
children: t == null ? void 0 : t.searchWholeWordsLabel
|
|
251
|
-
}
|
|
252
|
-
),
|
|
253
|
-
!C && /* @__PURE__ */ o(v, { content: t == null ? void 0 : t.searchWholeWordsTooltip, children: /* @__PURE__ */ o("div", { tabIndex: 0, className: n["rp-search-icon-info"], children: /* @__PURE__ */ o(j, {}) }) })
|
|
254
|
-
] })
|
|
255
|
-
] }),
|
|
256
|
-
!C && /* @__PURE__ */ x("div", { className: n["rp-search-tool-controls"], children: [
|
|
257
|
-
/* @__PURE__ */ o(q, {}),
|
|
258
|
-
/* @__PURE__ */ o(z, { onKeyPress: R, handleClose: l })
|
|
259
|
-
] })
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
}
|
|
264
|
-
) });
|
|
265
|
-
};
|
|
266
|
-
export {
|
|
267
|
-
zo as SearchTool
|
|
1
|
+
import { useDocumentContext as e } from "../../../contexts/RPDocumentContext.js";
|
|
2
|
+
import { useLayoutContainer as t } from "../../../contexts/LayoutContainerContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
|
+
import { useSearchContext as i } from "../../../contexts/SearchContext.js";
|
|
6
|
+
import { useLocalizationContext as a } from "../../../contexts/LocalizationContext.js";
|
|
7
|
+
import { t as o } from "../../../LoaderIcon-D9YjinGf.js";
|
|
8
|
+
import { useIconToolContext as s } from "../../../contexts/IconToolContext.js";
|
|
9
|
+
import { t as c } from "../../../Button-jStpvb3T.js";
|
|
10
|
+
import { t as ee } from "../../../Input-Bb_-ljl1.js";
|
|
11
|
+
import { useIconContext as l } from "../../../contexts/IconContext.js";
|
|
12
|
+
import { useViewportContext as te } from "../../../contexts/ViewportContext.js";
|
|
13
|
+
import { t as u } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
14
|
+
import { t as d } from "../../../DropDown-DikL-krI.js";
|
|
15
|
+
import { InfoIcon as f } from "../../icons/InfoIcon.js";
|
|
16
|
+
import { SearchIcon as p } from "../../icons/SearchIcon.js";
|
|
17
|
+
import { t as m } from "../../../SearchTool.module-DUkVXfOn.js";
|
|
18
|
+
import { t as h } from "../../../Checkbox-Brta-YKG.js";
|
|
19
|
+
import { ClearIcon as g } from "../../icons/ClearIcon.js";
|
|
20
|
+
import { SearchResultNavigator as _ } from "./SearchResultNavigator.js";
|
|
21
|
+
import { SearchCloseButton as v } from "./SearchCloseButton.js";
|
|
22
|
+
import { useCallback as y, useEffect as b, useMemo as x, useState as S } from "react";
|
|
23
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
24
|
+
//#region lib/components/layout/toolbar/SearchTool.tsx
|
|
25
|
+
var ne = () => {
|
|
26
|
+
let { searchIcon: e } = l(), { searchIcon: t } = s();
|
|
27
|
+
return e ?? t ?? /* @__PURE__ */ w(p, {});
|
|
28
|
+
}, re = () => {
|
|
29
|
+
let { searchClearIcon: e } = l(), { searchClearIcon: t } = s();
|
|
30
|
+
return e ?? t ?? /* @__PURE__ */ w(g, {});
|
|
31
|
+
}, E = ({ icon: s }) => {
|
|
32
|
+
let { container: l } = t(), [g, E] = S(!1), { pdf: D } = e(), [O, k] = S(null), { searchOptions: A, setSearchOptions: j, loading: ie, setSearch: M, totalMatches: N, currentMatchPosition: P, nextMatch: F, prevMatch: I, search: L } = i(), { searchTool: R = !0 } = n(), { searchTool: z = !0 } = r(), [B, V] = S(L), { localeMessages: H } = a(), { isSmallScreen: U } = te(), [W, G] = S(null), [K, q] = S(!1), J = y(() => {
|
|
33
|
+
E(!0);
|
|
34
|
+
}, []), Y = y(() => {
|
|
35
|
+
M(""), V(""), E(!1);
|
|
36
|
+
}, [M]), X = (e) => {
|
|
37
|
+
let t = e.key === "Enter", n = e.key === " ";
|
|
38
|
+
(t || n) && Y();
|
|
39
|
+
}, Z = y((e) => {
|
|
40
|
+
e.key === "Escape" && g && Y();
|
|
41
|
+
}, [g]), ae = y((e) => {
|
|
42
|
+
e.shiftKey && e.key === "Enter" ? I() : e.key === "Enter" && L !== B ? M(B) : e.key === "Enter" && F();
|
|
43
|
+
}, [
|
|
44
|
+
B,
|
|
45
|
+
I,
|
|
46
|
+
F,
|
|
47
|
+
M,
|
|
48
|
+
L
|
|
49
|
+
]);
|
|
50
|
+
b(() => {
|
|
51
|
+
V(L);
|
|
52
|
+
}, [L]), b(() => {
|
|
53
|
+
L && D && q(!0);
|
|
54
|
+
}, [L, D]), b(() => {
|
|
55
|
+
L && L.trim() !== "" && (V(L), M(L));
|
|
56
|
+
}, []), b(() => (window.addEventListener("keydown", Z), () => {
|
|
57
|
+
window.removeEventListener("keydown", Z);
|
|
58
|
+
}), [Z]), b(() => {
|
|
59
|
+
O && setTimeout(() => {
|
|
60
|
+
O.focus();
|
|
61
|
+
}, 0);
|
|
62
|
+
}, [O]);
|
|
63
|
+
let oe = y((e) => {
|
|
64
|
+
V(e.target.value);
|
|
65
|
+
}, []), Q = y(() => {
|
|
66
|
+
V(""), M("");
|
|
67
|
+
}, [M]), se = x(() => `${P} / ${N}`, [P, N]), { wholeWords: ce, matchCase: le } = x(() => A, [A]), ue = y((e) => {
|
|
68
|
+
j((t) => ({
|
|
69
|
+
...t,
|
|
70
|
+
matchCase: e
|
|
71
|
+
}));
|
|
72
|
+
}, [j]), de = y((e) => {
|
|
73
|
+
j((t) => ({
|
|
74
|
+
...t,
|
|
75
|
+
wholeWords: e
|
|
76
|
+
}));
|
|
77
|
+
}, [j]);
|
|
78
|
+
b(() => {
|
|
79
|
+
D && K && Y();
|
|
80
|
+
}, [D, Y]);
|
|
81
|
+
let $ = x(() => W?.querySelectorAll("[tabindex]:not([tabindex=\"-1\"])") || [], [W]), fe = y((e) => {
|
|
82
|
+
if (e.key === "Tab") {
|
|
83
|
+
let t = document.activeElement, n = -1;
|
|
84
|
+
$.forEach((e, r) => {
|
|
85
|
+
e === t && (n = r);
|
|
86
|
+
});
|
|
87
|
+
let r = n + 1;
|
|
88
|
+
e.shiftKey && (r = n - 1);
|
|
89
|
+
let i = $[r];
|
|
90
|
+
if (i) i.focus();
|
|
91
|
+
else if (r > $.length - 1) {
|
|
92
|
+
let e = $[0];
|
|
93
|
+
e && e.focus();
|
|
94
|
+
} else {
|
|
95
|
+
let e = $[$.length - 1];
|
|
96
|
+
e && e.focus();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, [$]);
|
|
100
|
+
return !R || !z ? null : /* @__PURE__ */ w(C, { children: /* @__PURE__ */ w(d, {
|
|
101
|
+
open: g,
|
|
102
|
+
container: l,
|
|
103
|
+
side: "bottom",
|
|
104
|
+
align: "start",
|
|
105
|
+
tabIndex: 0,
|
|
106
|
+
avoidCollisions: !1,
|
|
107
|
+
triggerComponent: /* @__PURE__ */ w(u, {
|
|
108
|
+
content: H?.searchButtonTooltip,
|
|
109
|
+
children: /* @__PURE__ */ w(c, {
|
|
110
|
+
active: g,
|
|
111
|
+
onClick: J,
|
|
112
|
+
"aria-label": H?.searchButtonTooltip,
|
|
113
|
+
"aria-expanded": g,
|
|
114
|
+
"aria-haspopup": "dialog",
|
|
115
|
+
children: s || /* @__PURE__ */ w(ne, {})
|
|
116
|
+
})
|
|
117
|
+
}),
|
|
118
|
+
children: /* @__PURE__ */ T("div", {
|
|
119
|
+
ref: G,
|
|
120
|
+
className: m["rp-search-tool-content"],
|
|
121
|
+
tabIndex: -1,
|
|
122
|
+
onKeyDown: fe,
|
|
123
|
+
role: "dialog",
|
|
124
|
+
"aria-label": H?.searchInputTooltip || "Search dialog",
|
|
125
|
+
children: [/* @__PURE__ */ T("div", {
|
|
126
|
+
className: m["rp-search-tool-input-wrapper"],
|
|
127
|
+
children: [/* @__PURE__ */ T("div", {
|
|
128
|
+
className: m["rp-search-tool-input"],
|
|
129
|
+
children: [
|
|
130
|
+
/* @__PURE__ */ w(u, {
|
|
131
|
+
content: H?.searchInputTooltip,
|
|
132
|
+
children: /* @__PURE__ */ w(ee, {
|
|
133
|
+
value: B,
|
|
134
|
+
onKeyDown: ae,
|
|
135
|
+
onChange: oe,
|
|
136
|
+
icon: /* @__PURE__ */ w(p, {}),
|
|
137
|
+
placeholder: H?.searchInputPlaceholder,
|
|
138
|
+
className: m["rp-search-input"],
|
|
139
|
+
ref: k,
|
|
140
|
+
id: "search-input",
|
|
141
|
+
name: "search-input",
|
|
142
|
+
tabIndex: 0,
|
|
143
|
+
"aria-label": H?.searchInputTooltip || H?.searchInputPlaceholder,
|
|
144
|
+
"aria-describedby": "search-results-count",
|
|
145
|
+
children: !!B && /* @__PURE__ */ w("span", {
|
|
146
|
+
className: m["rp-search-tool-input-clear"],
|
|
147
|
+
onClick: Q,
|
|
148
|
+
role: "button",
|
|
149
|
+
tabIndex: 0,
|
|
150
|
+
"aria-label": H?.searchCloseButtonTooltip || "Clear search",
|
|
151
|
+
onKeyDown: (e) => {
|
|
152
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Q());
|
|
153
|
+
},
|
|
154
|
+
children: /* @__PURE__ */ w(re, {})
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
ie ? /* @__PURE__ */ w("span", {
|
|
159
|
+
"aria-live": "polite",
|
|
160
|
+
"aria-label": "Searching",
|
|
161
|
+
children: /* @__PURE__ */ w(o, {
|
|
162
|
+
className: m["rp-search-loader-icon"],
|
|
163
|
+
"aria-hidden": "true"
|
|
164
|
+
})
|
|
165
|
+
}) : /* @__PURE__ */ w("span", {
|
|
166
|
+
id: "search-results-count",
|
|
167
|
+
"aria-live": "polite",
|
|
168
|
+
children: se
|
|
169
|
+
}),
|
|
170
|
+
U && /* @__PURE__ */ w("div", {
|
|
171
|
+
className: m["rp-search-tool-controls"],
|
|
172
|
+
children: /* @__PURE__ */ w(v, {
|
|
173
|
+
onKeyPress: X,
|
|
174
|
+
handleClose: Y
|
|
175
|
+
})
|
|
176
|
+
})
|
|
177
|
+
]
|
|
178
|
+
}), /* @__PURE__ */ T("div", {
|
|
179
|
+
className: m["rp-search-tool-input-checkboxes"],
|
|
180
|
+
children: [
|
|
181
|
+
U && /* @__PURE__ */ w(_, {}),
|
|
182
|
+
/* @__PURE__ */ w(h, {
|
|
183
|
+
tabIndex: 0,
|
|
184
|
+
name: "matchCase",
|
|
185
|
+
value: le,
|
|
186
|
+
onChange: ue,
|
|
187
|
+
"aria-label": H?.searchMatchCaseLabel,
|
|
188
|
+
children: H?.searchMatchCaseLabel
|
|
189
|
+
}),
|
|
190
|
+
!U && /* @__PURE__ */ w(u, {
|
|
191
|
+
content: H?.searchMatchCaseTooltip,
|
|
192
|
+
children: /* @__PURE__ */ w("div", {
|
|
193
|
+
className: m["rp-search-icon-info"],
|
|
194
|
+
tabIndex: 0,
|
|
195
|
+
children: /* @__PURE__ */ w(f, {})
|
|
196
|
+
})
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ w(h, {
|
|
199
|
+
tabIndex: 0,
|
|
200
|
+
name: "wholeWord",
|
|
201
|
+
value: ce,
|
|
202
|
+
onChange: de,
|
|
203
|
+
"aria-label": H?.searchWholeWordsLabel,
|
|
204
|
+
children: H?.searchWholeWordsLabel
|
|
205
|
+
}),
|
|
206
|
+
!U && /* @__PURE__ */ w(u, {
|
|
207
|
+
content: H?.searchWholeWordsTooltip,
|
|
208
|
+
children: /* @__PURE__ */ w("div", {
|
|
209
|
+
tabIndex: 0,
|
|
210
|
+
className: m["rp-search-icon-info"],
|
|
211
|
+
children: /* @__PURE__ */ w(f, {})
|
|
212
|
+
})
|
|
213
|
+
})
|
|
214
|
+
]
|
|
215
|
+
})]
|
|
216
|
+
}), !U && /* @__PURE__ */ T("div", {
|
|
217
|
+
className: m["rp-search-tool-controls"],
|
|
218
|
+
children: [/* @__PURE__ */ w(_, {}), /* @__PURE__ */ w(v, {
|
|
219
|
+
onKeyPress: X,
|
|
220
|
+
handleClose: Y
|
|
221
|
+
})]
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
}) });
|
|
268
225
|
};
|
|
226
|
+
//#endregion
|
|
227
|
+
export { E as SearchTool };
|
|
@@ -1,52 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import d from "../../
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { SelectionMode as e } from "../../../utils/types.js";
|
|
2
|
+
import { useSelectionModeContext as t } from "../../../contexts/SelectionModeContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
|
+
import { useLocalizationContext as i } from "../../../contexts/LocalizationContext.js";
|
|
6
|
+
import { useIconToolContext as a } from "../../../contexts/IconToolContext.js";
|
|
7
|
+
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
8
|
+
import { t as s } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
9
|
+
import { n as c } from "../../../dist-CKteKPPA.js";
|
|
10
|
+
import { t as l } from "../../../MenuItem-BJDWfzAw.js";
|
|
11
|
+
import { t as u } from "../../../MenuSeparator-D1H5l8Ej.js";
|
|
12
|
+
import { CheckIcon as d } from "../../icons/CheckIcon.js";
|
|
13
|
+
import { TextSelectionDefaultIcon as f } from "../../icons/TextSelectionDefaultIcon.js";
|
|
14
|
+
import { HandModeDefaultIcon as p } from "../../icons/HandModeDefaultIcon.js";
|
|
15
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
16
|
+
//#region lib/components/layout/toolbar/SelectionModeTool.tsx
|
|
17
|
+
var _ = () => {
|
|
18
|
+
let { textSelectionIcon: e } = o(), { textSelectionIcon: t } = a();
|
|
19
|
+
return e || t || /* @__PURE__ */ h(f, {});
|
|
20
|
+
}, v = () => {
|
|
21
|
+
let { handModeIcon: e } = o(), { handModeIcon: t } = a();
|
|
22
|
+
return e || t || /* @__PURE__ */ h(p, {});
|
|
23
|
+
}, y = () => {
|
|
24
|
+
let { selectionModeTool: a = !0 } = n(), { selectionModeTool: o = !0 } = r(), { selectionMode: f, setSelectionMode: p } = t(), { localeMessages: y } = i();
|
|
25
|
+
return !a || !o ? null : /* @__PURE__ */ h(m, { children: /* @__PURE__ */ g(c, { children: [
|
|
26
|
+
/* @__PURE__ */ h(l, {
|
|
27
|
+
onClick: () => p(e.TEXT),
|
|
28
|
+
children: /* @__PURE__ */ g(s, {
|
|
29
|
+
className: "rp-menu-item",
|
|
30
|
+
content: y?.textSelectionTooltip,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ h("div", {
|
|
33
|
+
className: "rp-menu-item-left",
|
|
34
|
+
children: /* @__PURE__ */ h(_, {})
|
|
35
|
+
}),
|
|
36
|
+
y?.textSelectionLabel,
|
|
37
|
+
f === e.TEXT ? /* @__PURE__ */ h(d, { className: "rp-menu-item-right" }) : null
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ h(l, {
|
|
42
|
+
onClick: () => p(e.HAND),
|
|
43
|
+
children: /* @__PURE__ */ g(s, {
|
|
44
|
+
className: "rp-menu-item",
|
|
45
|
+
content: y?.handToolTooltip,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ h("div", {
|
|
48
|
+
className: "rp-menu-item-left",
|
|
49
|
+
children: /* @__PURE__ */ h(v, {})
|
|
50
|
+
}),
|
|
51
|
+
y?.handToolLabel,
|
|
52
|
+
f === e.HAND ? /* @__PURE__ */ h(d, { className: "rp-menu-item-right" }) : null
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ h(u, {})
|
|
57
|
+
] }) });
|
|
52
58
|
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { y as SelectionModeTool };
|