@pristy/pristy-libvue 2.21.2 → 3.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/dist/ActivityHistory-BLsSFzfP.js +235 -0
- package/dist/ActivityHistory-BLsSFzfP.js.map +1 -0
- package/dist/AlfrescoApi.d.ts +28 -0
- package/dist/AlfrescoApi.d.ts.map +1 -0
- package/dist/BookmarksComponent-i6mFff8y.js +44 -0
- package/dist/BookmarksComponent-i6mFff8y.js.map +1 -0
- package/dist/ChartWrapper-8nl96UQq.js +59 -0
- package/dist/ChartWrapper-8nl96UQq.js.map +1 -0
- package/dist/DisplayFileInDashboardComponent-YSKmRXrK.js +105 -0
- package/dist/DisplayFileInDashboardComponent-YSKmRXrK.js.map +1 -0
- package/dist/ExternalApps-B30MYLdt.js +90 -0
- package/dist/ExternalApps-B30MYLdt.js.map +1 -0
- package/dist/FavoriteList-9cXLdtMh.js +380 -0
- package/dist/FavoriteList-9cXLdtMh.js.map +1 -0
- package/dist/MarkdownComponent-vN01MbFM.js +55 -0
- package/dist/MarkdownComponent-vN01MbFM.js.map +1 -0
- package/dist/PDFComponent-DjEBu0cQ.js +1077 -0
- package/dist/PDFComponent-DjEBu0cQ.js.map +1 -0
- package/dist/PdfCommentService-D5m9OkWV.js +200 -0
- package/dist/PdfCommentService-D5m9OkWV.js.map +1 -0
- package/dist/PdfConfigService-9q_fMJP1.js +17 -0
- package/dist/PdfConfigService-9q_fMJP1.js.map +1 -0
- package/dist/PdfInfoWriter-Bvp327Pn.js +80 -0
- package/dist/PdfInfoWriter-Bvp327Pn.js.map +1 -0
- package/dist/PdfToolsComponent-nHHo5LtF.js +1948 -0
- package/dist/PdfToolsComponent-nHHo5LtF.js.map +1 -0
- package/dist/PlanTreePdfService-r8f9ERs2.js +76 -0
- package/dist/PlanTreePdfService-r8f9ERs2.js.map +1 -0
- package/dist/SearchInput-Dp0N7yZE.js +58 -0
- package/dist/SearchInput-Dp0N7yZE.js.map +1 -0
- package/dist/UnknownBlockType-4VLPDRkN.js +22 -0
- package/dist/UnknownBlockType-4VLPDRkN.js.map +1 -0
- package/dist/components/CodeMirrorBase.vue.d.ts +43 -0
- package/dist/components/CodeMirrorBase.vue.d.ts.map +1 -0
- package/dist/components/CodeMirrorEditor.vue.d.ts +145 -0
- package/dist/components/CodeMirrorEditor.vue.d.ts.map +1 -0
- package/dist/components/DiffViewer.vue.d.ts +37 -0
- package/dist/components/DiffViewer.vue.d.ts.map +1 -0
- package/dist/components/DiffViewerDialog.vue.d.ts +103 -0
- package/dist/components/DiffViewerDialog.vue.d.ts.map +1 -0
- package/dist/components/EditorAppearanceSettings.vue.d.ts +24 -0
- package/dist/components/EditorAppearanceSettings.vue.d.ts.map +1 -0
- package/dist/components/ErrorComponent.vue.d.ts +58 -0
- package/dist/components/ErrorComponent.vue.d.ts.map +1 -0
- package/dist/components/FolderUpload.vue.d.ts +89 -0
- package/dist/components/FolderUpload.vue.d.ts.map +1 -0
- package/dist/components/HelpKeyMessage.vue.d.ts +36 -0
- package/dist/components/HelpKeyMessage.vue.d.ts.map +1 -0
- package/dist/components/IconPickerDialog.vue.d.ts +99 -0
- package/dist/components/IconPickerDialog.vue.d.ts.map +1 -0
- package/dist/components/IndexAwaitOverlay.vue.d.ts +31 -0
- package/dist/components/IndexAwaitOverlay.vue.d.ts.map +1 -0
- package/dist/components/PristyIcon.vue.d.ts +34 -0
- package/dist/components/PristyIcon.vue.d.ts.map +1 -0
- package/dist/components/SelectionStatus.vue.d.ts +56 -0
- package/dist/components/SelectionStatus.vue.d.ts.map +1 -0
- package/dist/components/TreeExplorer.vue.d.ts +93 -0
- package/dist/components/TreeExplorer.vue.d.ts.map +1 -0
- package/dist/components/UploadStatus.vue.d.ts +106 -0
- package/dist/components/UploadStatus.vue.d.ts.map +1 -0
- package/dist/components/UploadTargetInfo.vue.d.ts +14 -0
- package/dist/components/UploadTargetInfo.vue.d.ts.map +1 -0
- package/dist/components/auth/OidcCallback.vue.d.ts +8 -0
- package/dist/components/auth/OidcCallback.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts +119 -0
- package/dist/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/ComplexBreadcrumb.vue.d.ts +279 -0
- package/dist/components/breadcrumb/ComplexBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts +155 -0
- package/dist/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatInput.vue.d.ts +77 -0
- package/dist/components/chat/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatMessage.vue.d.ts +75 -0
- package/dist/components/chat/ChatMessage.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatPanel.vue.d.ts +481 -0
- package/dist/components/chat/ChatPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/ChatRoomList.vue.d.ts +85 -0
- package/dist/components/chat/ChatRoomList.vue.d.ts.map +1 -0
- package/dist/components/classification/AdminClassificationLauncher.vue.d.ts +19 -0
- package/dist/components/classification/AdminClassificationLauncher.vue.d.ts.map +1 -0
- package/dist/components/classification/AdminClassificationPage.vue.d.ts +827 -0
- package/dist/components/classification/AdminClassificationPage.vue.d.ts.map +1 -0
- package/dist/components/classification/AiLearningPanel.vue.d.ts +41 -0
- package/dist/components/classification/AiLearningPanel.vue.d.ts.map +1 -0
- package/dist/components/classification/AiProcessingBadge.vue.d.ts +29 -0
- package/dist/components/classification/AiProcessingBadge.vue.d.ts.map +1 -0
- package/dist/components/classification/AiSuggestionsPanel.vue.d.ts +93 -0
- package/dist/components/classification/AiSuggestionsPanel.vue.d.ts.map +1 -0
- package/dist/components/classification/ClassificationPlanCreate.vue.d.ts +28 -0
- package/dist/components/classification/ClassificationPlanCreate.vue.d.ts.map +1 -0
- package/dist/components/classification/ClassificationPlanList.vue.d.ts +74 -0
- package/dist/components/classification/ClassificationPlanList.vue.d.ts.map +1 -0
- package/dist/components/classification/DictionaryForm.vue.d.ts +66 -0
- package/dist/components/classification/DictionaryForm.vue.d.ts.map +1 -0
- package/dist/components/classification/EmplacementForm.vue.d.ts +107 -0
- package/dist/components/classification/EmplacementForm.vue.d.ts.map +1 -0
- package/dist/components/classification/FieldForm.vue.d.ts +152 -0
- package/dist/components/classification/FieldForm.vue.d.ts.map +1 -0
- package/dist/components/classification/LexiconForm.vue.d.ts +67 -0
- package/dist/components/classification/LexiconForm.vue.d.ts.map +1 -0
- package/dist/components/classification/MetadataFormFields.vue.d.ts +273 -0
- package/dist/components/classification/MetadataFormFields.vue.d.ts.map +1 -0
- package/dist/components/classification/NatureForm.vue.d.ts +153 -0
- package/dist/components/classification/NatureForm.vue.d.ts.map +1 -0
- package/dist/components/classification/NatureSelector.vue.d.ts +197 -0
- package/dist/components/classification/NatureSelector.vue.d.ts.map +1 -0
- package/dist/components/classification/PlanInformationPanel.vue.d.ts +89 -0
- package/dist/components/classification/PlanInformationPanel.vue.d.ts.map +1 -0
- package/dist/components/classification/PlanSuggestInput.vue.d.ts +84 -0
- package/dist/components/classification/PlanSuggestInput.vue.d.ts.map +1 -0
- package/dist/components/classification/PlanTreePanel.vue.d.ts +79 -0
- package/dist/components/classification/PlanTreePanel.vue.d.ts.map +1 -0
- package/dist/components/classification/UploadPlanPopup.vue.d.ts +354 -0
- package/dist/components/classification/UploadPlanPopup.vue.d.ts.map +1 -0
- package/dist/components/classification/ViewSelectorPopup.vue.d.ts +122 -0
- package/dist/components/classification/ViewSelectorPopup.vue.d.ts.map +1 -0
- package/dist/components/config/AddPairInConfigDialog.vue.d.ts +60 -0
- package/dist/components/config/AddPairInConfigDialog.vue.d.ts.map +1 -0
- package/dist/components/config/ArrayEditor.vue.d.ts +68 -0
- package/dist/components/config/ArrayEditor.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigDatatable.vue.d.ts +77 -0
- package/dist/components/config/ConfigDatatable.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigHealthBanner.vue.d.ts +25 -0
- package/dist/components/config/ConfigHealthBanner.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigItemEditor.vue.d.ts +80 -0
- package/dist/components/config/ConfigItemEditor.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigRawEditor.vue.d.ts +100 -0
- package/dist/components/config/ConfigRawEditor.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigSplitView.vue.d.ts +89 -0
- package/dist/components/config/ConfigSplitView.vue.d.ts.map +1 -0
- package/dist/components/config/ConfigUpload.vue.d.ts +40 -0
- package/dist/components/config/ConfigUpload.vue.d.ts.map +1 -0
- package/dist/components/config/ListVersionConfig.vue.d.ts +130 -0
- package/dist/components/config/ListVersionConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardAdminPage.vue.d.ts +2244 -0
- package/dist/components/dashboard/DashboardAdminPage.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardComponent.vue.d.ts +1498 -0
- package/dist/components/dashboard/DashboardComponent.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardSkeleton.vue.d.ts +17 -0
- package/dist/components/dashboard/DashboardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/BlockConfigEditor.vue.d.ts +1060 -0
- package/dist/components/dashboard/editor/BlockConfigEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/DashboardEditor.vue.d.ts +2095 -0
- package/dist/components/dashboard/editor/DashboardEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/FieldLabel.vue.d.ts +55 -0
- package/dist/components/dashboard/editor/FieldLabel.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/JsonEditorDialog.vue.d.ts +93 -0
- package/dist/components/dashboard/editor/JsonEditorDialog.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/MarkdownEditorDialog.vue.d.ts +102 -0
- package/dist/components/dashboard/editor/MarkdownEditorDialog.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/VersionHistoryDialog.vue.d.ts +101 -0
- package/dist/components/dashboard/editor/VersionHistoryDialog.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/BookmarksConfig.vue.d.ts +77 -0
- package/dist/components/dashboard/editor/block-configs/BookmarksConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/ChartConfig.vue.d.ts +95 -0
- package/dist/components/dashboard/editor/block-configs/ChartConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/ExternalAppsConfig.vue.d.ts +300 -0
- package/dist/components/dashboard/editor/block-configs/ExternalAppsConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/FavoritesConfig.vue.d.ts +99 -0
- package/dist/components/dashboard/editor/block-configs/FavoritesConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/MarkdownConfig.vue.d.ts +98 -0
- package/dist/components/dashboard/editor/block-configs/MarkdownConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts +80 -0
- package/dist/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/NoConfig.vue.d.ts +11 -0
- package/dist/components/dashboard/editor/block-configs/NoConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/block-configs/PdfImageConfig.vue.d.ts +78 -0
- package/dist/components/dashboard/editor/block-configs/PdfImageConfig.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/blockDraft.d.ts.map +1 -0
- package/dist/components/dashboard/editor/grid/BasketPanel.vue.d.ts +80 -0
- package/dist/components/dashboard/editor/grid/BasketPanel.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/grid/BlockTypeSelector.vue.d.ts +56 -0
- package/dist/components/dashboard/editor/grid/BlockTypeSelector.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/grid/GridBlock.vue.d.ts +112 -0
- package/dist/components/dashboard/editor/grid/GridBlock.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/grid/GridEditor.vue.d.ts +164 -0
- package/dist/components/dashboard/editor/grid/GridEditor.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/grid/MinimapPanel.vue.d.ts +72 -0
- package/dist/components/dashboard/editor/grid/MinimapPanel.vue.d.ts.map +1 -0
- package/dist/components/dashboard/editor/validators.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/ActivityHistory.vue.d.ts +86 -0
- package/dist/components/dashboard/widgets/ActivityHistory.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/BookmarksComponent.vue.d.ts +42 -0
- package/dist/components/dashboard/widgets/BookmarksComponent.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/ChartWrapper.vue.d.ts +53 -0
- package/dist/components/dashboard/widgets/ChartWrapper.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/DisplayFileInDashboardComponent.vue.d.ts +351 -0
- package/dist/components/dashboard/widgets/DisplayFileInDashboardComponent.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/ExternalApps.vue.d.ts +47 -0
- package/dist/components/dashboard/widgets/ExternalApps.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/FavoriteFileList.vue.d.ts +68 -0
- package/dist/components/dashboard/widgets/FavoriteFileList.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/FavoriteFolderList.vue.d.ts +65 -0
- package/dist/components/dashboard/widgets/FavoriteFolderList.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/FavoriteList.vue.d.ts +182 -0
- package/dist/components/dashboard/widgets/FavoriteList.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/FavoriteSiteList.vue.d.ts +66 -0
- package/dist/components/dashboard/widgets/FavoriteSiteList.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/MarkdownComponent.vue.d.ts +35 -0
- package/dist/components/dashboard/widgets/MarkdownComponent.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/OnlyImageDisplayed.vue.d.ts +36 -0
- package/dist/components/dashboard/widgets/OnlyImageDisplayed.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/SearchInput.vue.d.ts +42 -0
- package/dist/components/dashboard/widgets/SearchInput.vue.d.ts.map +1 -0
- package/dist/components/dashboard/widgets/UnknownBlockType.vue.d.ts +23 -0
- package/dist/components/dashboard/widgets/UnknownBlockType.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppFooter.vue.d.ts +138 -0
- package/dist/components/layouts/AppFooter.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppLayout.vue.d.ts +927 -0
- package/dist/components/layouts/AppLayout.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppMobileLayout.vue.d.ts +271 -0
- package/dist/components/layouts/AppMobileLayout.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppSidebar.vue.d.ts +223 -0
- package/dist/components/layouts/AppSidebar.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppSubmenu.vue.d.ts +119 -0
- package/dist/components/layouts/AppSubmenu.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppSwitcher.vue.d.ts +87 -0
- package/dist/components/layouts/AppSwitcher.vue.d.ts.map +1 -0
- package/dist/components/layouts/AppTopbar.vue.d.ts +329 -0
- package/dist/components/layouts/AppTopbar.vue.d.ts.map +1 -0
- package/dist/components/layouts/SidebarProfileSection.vue.d.ts +108 -0
- package/dist/components/layouts/SidebarProfileSection.vue.d.ts.map +1 -0
- package/dist/components/menu/ActionMenu.vue.d.ts +35 -0
- package/dist/components/menu/ActionMenu.vue.d.ts.map +1 -0
- package/dist/components/navigation/CardMetadataLines.vue.d.ts +41 -0
- package/dist/components/navigation/CardMetadataLines.vue.d.ts.map +1 -0
- package/dist/components/navigation/ColumnTogglePanel.vue.d.ts +121 -0
- package/dist/components/navigation/ColumnTogglePanel.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentCompactTableView.vue.d.ts +509 -0
- package/dist/components/navigation/ContentCompactTableView.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentFiltersHeader.vue.d.ts +100 -0
- package/dist/components/navigation/ContentFiltersHeader.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentGridView.vue.d.ts +291 -0
- package/dist/components/navigation/ContentGridView.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentListView.vue.d.ts +242 -0
- package/dist/components/navigation/ContentListView.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentTableView.vue.d.ts +541 -0
- package/dist/components/navigation/ContentTableView.vue.d.ts.map +1 -0
- package/dist/components/navigation/ContentToolbar.vue.d.ts +51 -0
- package/dist/components/navigation/ContentToolbar.vue.d.ts.map +1 -0
- package/dist/components/navigation/DynamicContentView.vue.d.ts +2026 -0
- package/dist/components/navigation/DynamicContentView.vue.d.ts.map +1 -0
- package/dist/components/navigation/GhostNodeRow.vue.d.ts +68 -0
- package/dist/components/navigation/GhostNodeRow.vue.d.ts.map +1 -0
- package/dist/components/navigation/LayoutSelector.vue.d.ts +35 -0
- package/dist/components/navigation/LayoutSelector.vue.d.ts.map +1 -0
- package/dist/components/navigation/PreviewPanel.vue.d.ts +842 -0
- package/dist/components/navigation/PreviewPanel.vue.d.ts.map +1 -0
- package/dist/components/navigation/SelectionBar.vue.d.ts +149 -0
- package/dist/components/navigation/SelectionBar.vue.d.ts.map +1 -0
- package/dist/components/pagination/PaginatorComponent.vue.d.ts +52 -0
- package/dist/components/pagination/PaginatorComponent.vue.d.ts.map +1 -0
- package/dist/components/pdfTools/PdfToolsComponent.vue.d.ts +259 -0
- package/dist/components/pdfTools/PdfToolsComponent.vue.d.ts.map +1 -0
- package/dist/components/pdfTools/PdfToolsLoading.vue.d.ts +14 -0
- package/dist/components/pdfTools/PdfToolsLoading.vue.d.ts.map +1 -0
- package/dist/components/pdfTools/SaveAsPopup.vue.d.ts +62 -0
- package/dist/components/pdfTools/SaveAsPopup.vue.d.ts.map +1 -0
- package/dist/components/popup/CopyOrMovePopup.vue.d.ts +176 -0
- package/dist/components/popup/CopyOrMovePopup.vue.d.ts.map +1 -0
- package/dist/components/popup/CreateWorkflowPopup.vue.d.ts +104 -0
- package/dist/components/popup/CreateWorkflowPopup.vue.d.ts.map +1 -0
- package/dist/components/popup/ImportNewVersionPopup.vue.d.ts +43 -0
- package/dist/components/popup/ImportNewVersionPopup.vue.d.ts.map +1 -0
- package/dist/components/popup/ImportPopupWithWorker.vue.d.ts +186 -0
- package/dist/components/popup/ImportPopupWithWorker.vue.d.ts.map +1 -0
- package/dist/components/popup/MemberListPopup.vue.d.ts +196 -0
- package/dist/components/popup/MemberListPopup.vue.d.ts.map +1 -0
- package/dist/components/popup/SendMailPopup.vue.d.ts +105 -0
- package/dist/components/popup/SendMailPopup.vue.d.ts.map +1 -0
- package/dist/components/popup/ShareLinkPopup.vue.d.ts +69 -0
- package/dist/components/popup/ShareLinkPopup.vue.d.ts.map +1 -0
- package/dist/components/search/AddCriterionPopup.vue.d.ts +135 -0
- package/dist/components/search/AddCriterionPopup.vue.d.ts.map +1 -0
- package/dist/components/search/AdvancedSearchPanel.vue.d.ts +756 -0
- package/dist/components/search/AdvancedSearchPanel.vue.d.ts.map +1 -0
- package/dist/components/search/AdvancedViewPanel.vue.d.ts +886 -0
- package/dist/components/search/AdvancedViewPanel.vue.d.ts.map +1 -0
- package/dist/components/search/ExactSearch.vue.d.ts +49 -0
- package/dist/components/search/ExactSearch.vue.d.ts.map +1 -0
- package/dist/components/search/FavoriteViewMenu.vue.d.ts +45 -0
- package/dist/components/search/FavoriteViewMenu.vue.d.ts.map +1 -0
- package/dist/components/search/SaveViewPopup.vue.d.ts +127 -0
- package/dist/components/search/SaveViewPopup.vue.d.ts.map +1 -0
- package/dist/components/search/UserViewsFavoritesPanel.vue.d.ts +62 -0
- package/dist/components/search/UserViewsFavoritesPanel.vue.d.ts.map +1 -0
- package/dist/components/search/ViewResultsPanel.vue.d.ts +327 -0
- package/dist/components/search/ViewResultsPanel.vue.d.ts.map +1 -0
- package/dist/components/toast/CustomToastContent.vue.d.ts +76 -0
- package/dist/components/toast/CustomToastContent.vue.d.ts.map +1 -0
- package/dist/components/users/MemberList.vue.d.ts +177 -0
- package/dist/components/users/MemberList.vue.d.ts.map +1 -0
- package/dist/components/viewer/ArchiveViewer.vue.d.ts +117 -0
- package/dist/components/viewer/ArchiveViewer.vue.d.ts.map +1 -0
- package/dist/components/viewer/ArchiveViewerSkeleton.vue.d.ts +17 -0
- package/dist/components/viewer/ArchiveViewerSkeleton.vue.d.ts.map +1 -0
- package/dist/components/viewer/AudioPlayer.vue.d.ts +58 -0
- package/dist/components/viewer/AudioPlayer.vue.d.ts.map +1 -0
- package/dist/components/viewer/CodeMirrorViewer.vue.d.ts +42 -0
- package/dist/components/viewer/CodeMirrorViewer.vue.d.ts.map +1 -0
- package/dist/components/viewer/ImageViewer.vue.d.ts +164 -0
- package/dist/components/viewer/ImageViewer.vue.d.ts.map +1 -0
- package/dist/components/viewer/PDFComponent.vue.d.ts +584 -0
- package/dist/components/viewer/PDFComponent.vue.d.ts.map +1 -0
- package/dist/components/viewer/PdfSignaturePanel.vue.d.ts +40 -0
- package/dist/components/viewer/PdfSignaturePanel.vue.d.ts.map +1 -0
- package/dist/components/viewer/PdfViewerSkeleton.vue.d.ts +17 -0
- package/dist/components/viewer/PdfViewerSkeleton.vue.d.ts.map +1 -0
- package/dist/components/viewer/VideoPlayer.vue.d.ts +116 -0
- package/dist/components/viewer/VideoPlayer.vue.d.ts.map +1 -0
- package/dist/components/viewer/ViewerSkeleton.vue.d.ts +37 -0
- package/dist/components/viewer/ViewerSkeleton.vue.d.ts.map +1 -0
- package/dist/components/viewer/lazyPdfComponents.d.ts +528 -0
- package/dist/components/viewer/lazyPdfComponents.d.ts.map +1 -0
- package/dist/components/views/PredefinedViewsPanel.vue.d.ts +132 -0
- package/dist/components/views/PredefinedViewsPanel.vue.d.ts.map +1 -0
- package/dist/components/views/ViewList.vue.d.ts +78 -0
- package/dist/components/views/ViewList.vue.d.ts.map +1 -0
- package/dist/components/workspace/WorkspaceCard.vue.d.ts +466 -0
- package/dist/components/workspace/WorkspaceCard.vue.d.ts.map +1 -0
- package/dist/components/workspace/WorkspaceList.vue.d.ts +555 -0
- package/dist/components/workspace/WorkspaceList.vue.d.ts.map +1 -0
- package/dist/composables/collabProtocol.d.ts.map +1 -0
- package/dist/composables/editorAppearance.d.ts +65 -0
- package/dist/composables/editorAppearance.d.ts.map +1 -0
- package/dist/composables/editorThemes/buildEditorTheme.d.ts +56 -0
- package/dist/composables/editorThemes/buildEditorTheme.d.ts.map +1 -0
- package/dist/composables/editorThemes/dracula.d.ts +5 -0
- package/dist/composables/editorThemes/dracula.d.ts.map +1 -0
- package/dist/composables/editorThemes/github.d.ts +6 -0
- package/dist/composables/editorThemes/github.d.ts.map +1 -0
- package/dist/composables/editorThemes/nord.d.ts +5 -0
- package/dist/composables/editorThemes/nord.d.ts.map +1 -0
- package/dist/composables/editorThemes/one.d.ts +7 -0
- package/dist/composables/editorThemes/one.d.ts.map +1 -0
- package/dist/composables/editorThemes/pristy.d.ts +6 -0
- package/dist/composables/editorThemes/pristy.d.ts.map +1 -0
- package/dist/composables/editorThemes/solarized.d.ts +6 -0
- package/dist/composables/editorThemes/solarized.d.ts.map +1 -0
- package/dist/composables/useAuth.d.ts.map +1 -0
- package/dist/composables/useChatWebSocket.d.ts.map +1 -0
- package/dist/composables/useClassificationPlan.d.ts.map +1 -0
- package/dist/composables/useCodeMirror.d.ts +57 -0
- package/dist/composables/useCodeMirror.d.ts.map +1 -0
- package/dist/composables/useCollabEditor.d.ts.map +1 -0
- package/dist/composables/useCollabWebSocket.d.ts.map +1 -0
- package/dist/composables/useColumnFilter.d.ts.map +1 -0
- package/dist/composables/useDelayedVisibility.d.ts +29 -0
- package/dist/composables/useDelayedVisibility.d.ts.map +1 -0
- package/dist/composables/useDragDrop.d.ts.map +1 -0
- package/dist/composables/useGhostNodes.d.ts.map +1 -0
- package/dist/composables/useGridValidation.d.ts.map +1 -0
- package/dist/composables/useLayout.d.ts.map +1 -0
- package/dist/composables/useMarkdownPreview.d.ts +77 -0
- package/dist/composables/useMarkdownPreview.d.ts.map +1 -0
- package/dist/composables/useResize.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts.map +1 -0
- package/dist/directives/assert.d.ts.map +1 -0
- package/dist/dracula-DZ4d0UAj.js +32 -0
- package/dist/dracula-DZ4d0UAj.js.map +1 -0
- package/dist/github-WL9tKr_4.js +57 -0
- package/dist/github-WL9tKr_4.js.map +1 -0
- package/dist/httpClientPatch.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +4423 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/locales/index.d.ts.map +1 -0
- package/dist/index-DJEkd3cy.js +47201 -0
- package/dist/index-DJEkd3cy.js.map +1 -0
- package/dist/index.d.ts +195 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/nord-FqRawSxu.js +32 -0
- package/dist/nord-FqRawSxu.js.map +1 -0
- package/dist/one-CTKKLi-H.js +34 -0
- package/dist/one-CTKKLi-H.js.map +1 -0
- package/dist/pages/ErrorPage.vue.d.ts +29 -0
- package/dist/pages/ErrorPage.vue.d.ts.map +1 -0
- package/dist/pages/LoginPage.vue.d.ts +71 -0
- package/dist/pages/LoginPage.vue.d.ts.map +1 -0
- package/dist/pages/NotFoundPages.vue.d.ts +58 -0
- package/dist/pages/NotFoundPages.vue.d.ts.map +1 -0
- package/dist/plugins/KeycloakPlugin.d.ts.map +1 -0
- package/dist/pristy-libvue.css +1 -1
- package/dist/pristy-libvue.es.js +266 -204
- package/dist/pristy-libvue.umd.js +147 -24
- package/dist/pristy-libvue.umd.js.map +1 -1
- package/dist/services/AftsQueryBuilder.d.ts.map +1 -0
- package/dist/services/AiContextService.d.ts +101 -0
- package/dist/services/AiContextService.d.ts.map +1 -0
- package/dist/services/AiImportService.d.ts +208 -0
- package/dist/services/AiImportService.d.ts.map +1 -0
- package/dist/services/AiLearningService.d.ts +79 -0
- package/dist/services/AiLearningService.d.ts.map +1 -0
- package/dist/services/AiMetadataService.d.ts +86 -0
- package/dist/services/AiMetadataService.d.ts.map +1 -0
- package/dist/services/AlfrescoFileService.d.ts.map +1 -0
- package/dist/services/AlfrescoModelService.d.ts.map +1 -0
- package/dist/services/AlfrescoNodeService.d.ts.map +1 -0
- package/dist/services/AlfrescoPermissionService.d.ts.map +1 -0
- package/dist/services/AlfrescoProxyService.d.ts.map +1 -0
- package/dist/services/AppSwitcherService.d.ts.map +1 -0
- package/dist/services/ArchiveService.d.ts +109 -0
- package/dist/services/ArchiveService.d.ts.map +1 -0
- package/dist/services/CapabilitiesService.d.ts.map +1 -0
- package/dist/services/CardMetadataService.d.ts +40 -0
- package/dist/services/CardMetadataService.d.ts.map +1 -0
- package/dist/services/ChatBackendService.d.ts.map +1 -0
- package/dist/services/ClassificationFileService.d.ts +75 -0
- package/dist/services/ClassificationFileService.d.ts.map +1 -0
- package/dist/services/ClassificationFilingService.d.ts +43 -0
- package/dist/services/ClassificationFilingService.d.ts.map +1 -0
- package/dist/services/ClassificationService.d.ts +46 -0
- package/dist/services/ClassificationService.d.ts.map +1 -0
- package/dist/services/CollabBackupService.d.ts.map +1 -0
- package/dist/services/CollabService.d.ts.map +1 -0
- package/dist/services/CollaboraAccessService.d.ts.map +1 -0
- package/dist/services/ColumnPreferenceService.d.ts +29 -0
- package/dist/services/ColumnPreferenceService.d.ts.map +1 -0
- package/dist/services/ConfigHealthService.d.ts.map +1 -0
- package/dist/services/ConfigService.d.ts.map +1 -0
- package/dist/services/DashboardService.d.ts +111 -0
- package/dist/services/DashboardService.d.ts.map +1 -0
- package/dist/services/DiffusionService.d.ts.map +1 -0
- package/dist/services/EditorAppearanceService.d.ts +75 -0
- package/dist/services/EditorAppearanceService.d.ts.map +1 -0
- package/dist/services/ErrorService.d.ts.map +1 -0
- package/dist/services/FavoriteService.d.ts.map +1 -0
- package/dist/services/FilingPlanService.d.ts.map +1 -0
- package/dist/services/FormatService.d.ts.map +1 -0
- package/dist/services/GhostMatcher.d.ts.map +1 -0
- package/dist/services/IconeService.d.ts.map +1 -0
- package/dist/services/IndexAwaitService.d.ts +61 -0
- package/dist/services/IndexAwaitService.d.ts.map +1 -0
- package/dist/services/KeyboardShortcutsService.d.ts.map +1 -0
- package/dist/services/LibVueActionService.d.ts.map +1 -0
- package/dist/services/MenuService.d.ts.map +1 -0
- package/dist/services/NodeDragService.d.ts +93 -0
- package/dist/services/NodeDragService.d.ts.map +1 -0
- package/dist/services/NodeToMenuItemService.d.ts.map +1 -0
- package/dist/services/PdfCommentService.d.ts +67 -0
- package/dist/services/PdfCommentService.d.ts.map +1 -0
- package/dist/services/PdfConfigService.d.ts.map +1 -0
- package/dist/services/PdfDocumentService.d.ts +81 -0
- package/dist/services/PdfDocumentService.d.ts.map +1 -0
- package/dist/services/PdfFormService.d.ts.map +1 -0
- package/dist/services/PdfInfoWriter.d.ts +19 -0
- package/dist/services/PdfInfoWriter.d.ts.map +1 -0
- package/dist/services/PdfInsertService.d.ts +2 -0
- package/dist/services/PdfInsertService.d.ts.map +1 -0
- package/dist/services/PdfLinkService.d.ts.map +1 -0
- package/dist/services/PdfRedactionService.d.ts.map +1 -0
- package/dist/services/PdfSearchService.d.ts +69 -0
- package/dist/services/PdfSearchService.d.ts.map +1 -0
- package/dist/services/PdfSignatureService.d.ts.map +1 -0
- package/dist/services/PdfTextService.d.ts.map +1 -0
- package/dist/services/PeopleService.d.ts.map +1 -0
- package/dist/services/PlanSuggestService.d.ts +29 -0
- package/dist/services/PlanSuggestService.d.ts.map +1 -0
- package/dist/services/PlanTreePdfService.d.ts +26 -0
- package/dist/services/PlanTreePdfService.d.ts.map +1 -0
- package/dist/services/PreviewService.d.ts.map +1 -0
- package/dist/services/RocketChatAuthService.d.ts.map +1 -0
- package/dist/services/RocketChatService.d.ts.map +1 -0
- package/dist/services/TranslationService.d.ts.map +1 -0
- package/dist/services/UserViewService.d.ts.map +1 -0
- package/dist/services/ViewConfigService.d.ts.map +1 -0
- package/dist/services/WorkflowService.d.ts.map +1 -0
- package/dist/services/WorkspaceConfigService.d.ts +30 -0
- package/dist/services/WorkspaceConfigService.d.ts.map +1 -0
- package/dist/services/WorkspaceService.d.ts +102 -0
- package/dist/services/WorkspaceService.d.ts.map +1 -0
- package/dist/services/ZipShareService.d.ts +105 -0
- package/dist/services/ZipShareService.d.ts.map +1 -0
- package/dist/services/aliasMap.d.ts.map +1 -0
- package/dist/services/auth/KeycloakAuthProvider.d.ts.map +1 -0
- package/dist/services/auth/OidcAuthProvider.d.ts.map +1 -0
- package/dist/services/auth/__tests__/FakeAuthProvider.d.ts.map +1 -0
- package/dist/services/auth/authProvider.d.ts.map +1 -0
- package/dist/services/auth/buildOidcSettings.d.ts.map +1 -0
- package/dist/services/criteriaLogic.d.ts.map +1 -0
- package/dist/services/userSearchQuery.d.ts.map +1 -0
- package/dist/solarized-B1Axyuuz.js +47 -0
- package/dist/solarized-B1Axyuuz.js.map +1 -0
- package/dist/stores/aiImport.d.ts +43 -0
- package/dist/stores/aiImport.d.ts.map +1 -0
- package/dist/stores/chat.d.ts.map +1 -0
- package/dist/stores/collab.d.ts.map +1 -0
- package/dist/stores/collabora.d.ts.map +1 -0
- package/dist/stores/config.d.ts +344 -0
- package/dist/stores/config.d.ts.map +1 -0
- package/dist/stores/editorAppearance.d.ts +32 -0
- package/dist/stores/editorAppearance.d.ts.map +1 -0
- package/dist/stores/favorites.d.ts.map +1 -0
- package/dist/stores/filingPlan.d.ts.map +1 -0
- package/dist/stores/indexAwait.d.ts +83 -0
- package/dist/stores/indexAwait.d.ts.map +1 -0
- package/dist/stores/markdownDocument.d.ts +30 -0
- package/dist/stores/markdownDocument.d.ts.map +1 -0
- package/dist/stores/menu.d.ts.map +1 -0
- package/dist/stores/navigation.d.ts +89 -0
- package/dist/stores/navigation.d.ts.map +1 -0
- package/dist/stores/paginator.d.ts.map +1 -0
- package/dist/stores/pdfDocument.d.ts +89 -0
- package/dist/stores/pdfDocument.d.ts.map +1 -0
- package/dist/stores/screen.d.ts.map +1 -0
- package/dist/stores/search.d.ts.map +1 -0
- package/dist/stores/selection.d.ts.map +1 -0
- package/dist/stores/taskNotification.d.ts.map +1 -0
- package/dist/stores/upload.d.ts +174 -0
- package/dist/stores/upload.d.ts.map +1 -0
- package/dist/stores/user.d.ts +174 -0
- package/dist/stores/user.d.ts.map +1 -0
- package/dist/stores/userPreferences.d.ts.map +1 -0
- package/dist/stores/userView.d.ts.map +1 -0
- package/dist/stores/zipShare.d.ts +54 -0
- package/dist/stores/zipShare.d.ts.map +1 -0
- package/dist/typedef.d.ts.map +1 -0
- package/dist/utils/classificationPlanUtils.d.ts +193 -0
- package/dist/utils/classificationPlanUtils.d.ts.map +1 -0
- package/dist/utils/indexAwaitReducer.d.ts +56 -0
- package/dist/utils/indexAwaitReducer.d.ts.map +1 -0
- package/dist/utils/overflowUtils.d.ts.map +1 -0
- package/dist/utils/planTree.d.ts +35 -0
- package/dist/utils/planTree.d.ts.map +1 -0
- package/dist/utils/treeA11y.d.ts +17 -0
- package/dist/utils/treeA11y.d.ts.map +1 -0
- package/dist/utils/workspaceAppearance.d.ts +16 -0
- package/dist/utils/workspaceAppearance.d.ts.map +1 -0
- package/dist/workers/upload.worker.d.ts.map +1 -0
- package/package.json +21 -12
- package/dist/ActivityHistory-CYTsXlFs.js +0 -235
- package/dist/ActivityHistory-CYTsXlFs.js.map +0 -1
- package/dist/BookmarksComponent-BQRGDBtk.js +0 -44
- package/dist/BookmarksComponent-BQRGDBtk.js.map +0 -1
- package/dist/ChartWrapper-NLlDKzgW.js +0 -59
- package/dist/ChartWrapper-NLlDKzgW.js.map +0 -1
- package/dist/DisplayFileInDashboardComponent-Ba8OoyfR.js +0 -105
- package/dist/DisplayFileInDashboardComponent-Ba8OoyfR.js.map +0 -1
- package/dist/ExternalApps-cKv9ZUlp.js +0 -90
- package/dist/ExternalApps-cKv9ZUlp.js.map +0 -1
- package/dist/FavoriteList-NsYCMz7n.js +0 -380
- package/dist/FavoriteList-NsYCMz7n.js.map +0 -1
- package/dist/MarkdownComponent-q21Q073I.js +0 -56
- package/dist/MarkdownComponent-q21Q073I.js.map +0 -1
- package/dist/PDFComponent-CUgH5A5P.js +0 -987
- package/dist/PDFComponent-CUgH5A5P.js.map +0 -1
- package/dist/PdfConfigService-DZN8iTaP.js +0 -17
- package/dist/PdfConfigService-DZN8iTaP.js.map +0 -1
- package/dist/PdfToolsComponent-CynQg24K.js +0 -1970
- package/dist/PdfToolsComponent-CynQg24K.js.map +0 -1
- package/dist/SearchInput-CbErAaEm.js +0 -58
- package/dist/SearchInput-CbErAaEm.js.map +0 -1
- package/dist/UnknownBlockType-BhseESPx.js +0 -22
- package/dist/UnknownBlockType-BhseESPx.js.map +0 -1
- package/dist/index-DyssYdtW.js +0 -40792
- package/dist/index-DyssYdtW.js.map +0 -1
- package/dist/src/AlfrescoApi.d.ts +0 -27
- package/dist/src/AlfrescoApi.d.ts.map +0 -1
- package/dist/src/components/CodeMirrorBase.vue.d.ts +0 -34
- package/dist/src/components/CodeMirrorBase.vue.d.ts.map +0 -1
- package/dist/src/components/CodeMirrorEditor.vue.d.ts +0 -21
- package/dist/src/components/CodeMirrorEditor.vue.d.ts.map +0 -1
- package/dist/src/components/DiffViewerDialog.vue.d.ts +0 -18
- package/dist/src/components/DiffViewerDialog.vue.d.ts.map +0 -1
- package/dist/src/components/ErrorComponent.vue.d.ts +0 -34
- package/dist/src/components/ErrorComponent.vue.d.ts.map +0 -1
- package/dist/src/components/FolderUpload.vue.d.ts +0 -36
- package/dist/src/components/FolderUpload.vue.d.ts.map +0 -1
- package/dist/src/components/HelpKeyMessage.vue.d.ts +0 -24
- package/dist/src/components/HelpKeyMessage.vue.d.ts.map +0 -1
- package/dist/src/components/IconPickerDialog.vue.d.ts +0 -63
- package/dist/src/components/IconPickerDialog.vue.d.ts.map +0 -1
- package/dist/src/components/PristyIcon.vue.d.ts +0 -18
- package/dist/src/components/PristyIcon.vue.d.ts.map +0 -1
- package/dist/src/components/SelectionStatus.vue.d.ts +0 -38
- package/dist/src/components/SelectionStatus.vue.d.ts.map +0 -1
- package/dist/src/components/TreeExplorer.vue.d.ts +0 -76
- package/dist/src/components/TreeExplorer.vue.d.ts.map +0 -1
- package/dist/src/components/UploadStatus.vue.d.ts +0 -40
- package/dist/src/components/UploadStatus.vue.d.ts.map +0 -1
- package/dist/src/components/UploadTargetInfo.vue.d.ts +0 -7
- package/dist/src/components/UploadTargetInfo.vue.d.ts.map +0 -1
- package/dist/src/components/auth/OidcCallback.vue.d.ts +0 -4
- package/dist/src/components/auth/OidcCallback.vue.d.ts.map +0 -1
- package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts +0 -84
- package/dist/src/components/breadcrumb/BreadCrumbAlfresco.vue.d.ts.map +0 -1
- package/dist/src/components/breadcrumb/ComplexBreadcrumb.vue.d.ts +0 -234
- package/dist/src/components/breadcrumb/ComplexBreadcrumb.vue.d.ts.map +0 -1
- package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts +0 -122
- package/dist/src/components/breadcrumb/EllipsisBreadcrumb.vue.d.ts.map +0 -1
- package/dist/src/components/chat/ChatInput.vue.d.ts +0 -50
- package/dist/src/components/chat/ChatInput.vue.d.ts.map +0 -1
- package/dist/src/components/chat/ChatMessage.vue.d.ts +0 -41
- package/dist/src/components/chat/ChatMessage.vue.d.ts.map +0 -1
- package/dist/src/components/chat/ChatPanel.vue.d.ts +0 -434
- package/dist/src/components/chat/ChatPanel.vue.d.ts.map +0 -1
- package/dist/src/components/chat/ChatRoomList.vue.d.ts +0 -52
- package/dist/src/components/chat/ChatRoomList.vue.d.ts.map +0 -1
- package/dist/src/components/classification/AdminClassificationLauncher.vue.d.ts +0 -6
- package/dist/src/components/classification/AdminClassificationLauncher.vue.d.ts.map +0 -1
- package/dist/src/components/classification/AdminClassificationPage.vue.d.ts +0 -658
- package/dist/src/components/classification/AdminClassificationPage.vue.d.ts.map +0 -1
- package/dist/src/components/classification/ClassificationPlanCreate.vue.d.ts +0 -6
- package/dist/src/components/classification/ClassificationPlanCreate.vue.d.ts.map +0 -1
- package/dist/src/components/classification/ClassificationPlanList.vue.d.ts +0 -20
- package/dist/src/components/classification/ClassificationPlanList.vue.d.ts.map +0 -1
- package/dist/src/components/classification/DictionaryForm.vue.d.ts +0 -49
- package/dist/src/components/classification/DictionaryForm.vue.d.ts.map +0 -1
- package/dist/src/components/classification/EmplacementForm.vue.d.ts +0 -76
- package/dist/src/components/classification/EmplacementForm.vue.d.ts.map +0 -1
- package/dist/src/components/classification/FieldForm.vue.d.ts +0 -121
- package/dist/src/components/classification/FieldForm.vue.d.ts.map +0 -1
- package/dist/src/components/classification/LexiconForm.vue.d.ts +0 -50
- package/dist/src/components/classification/LexiconForm.vue.d.ts.map +0 -1
- package/dist/src/components/classification/MetadataFormFields.vue.d.ts +0 -147
- package/dist/src/components/classification/MetadataFormFields.vue.d.ts.map +0 -1
- package/dist/src/components/classification/NatureForm.vue.d.ts +0 -123
- package/dist/src/components/classification/NatureForm.vue.d.ts.map +0 -1
- package/dist/src/components/classification/NatureSelector.vue.d.ts +0 -128
- package/dist/src/components/classification/NatureSelector.vue.d.ts.map +0 -1
- package/dist/src/components/classification/UploadPlanPopup.vue.d.ts +0 -32
- package/dist/src/components/classification/UploadPlanPopup.vue.d.ts.map +0 -1
- package/dist/src/components/classification/ViewSelectorPopup.vue.d.ts +0 -85
- package/dist/src/components/classification/ViewSelectorPopup.vue.d.ts.map +0 -1
- package/dist/src/components/config/AddPairInConfigDialog.vue.d.ts +0 -50
- package/dist/src/components/config/AddPairInConfigDialog.vue.d.ts.map +0 -1
- package/dist/src/components/config/ArrayEditor.vue.d.ts +0 -12
- package/dist/src/components/config/ArrayEditor.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigDatatable.vue.d.ts +0 -14
- package/dist/src/components/config/ConfigDatatable.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigHealthBanner.vue.d.ts +0 -16
- package/dist/src/components/config/ConfigHealthBanner.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigItemEditor.vue.d.ts +0 -12
- package/dist/src/components/config/ConfigItemEditor.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigRawEditor.vue.d.ts +0 -80
- package/dist/src/components/config/ConfigRawEditor.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigSplitView.vue.d.ts +0 -14
- package/dist/src/components/config/ConfigSplitView.vue.d.ts.map +0 -1
- package/dist/src/components/config/ConfigUpload.vue.d.ts +0 -24
- package/dist/src/components/config/ConfigUpload.vue.d.ts.map +0 -1
- package/dist/src/components/config/ListVersionConfig.vue.d.ts +0 -75
- package/dist/src/components/config/ListVersionConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/DashboardAdminPage.vue.d.ts +0 -2147
- package/dist/src/components/dashboard/DashboardAdminPage.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/DashboardComponent.vue.d.ts +0 -771
- package/dist/src/components/dashboard/DashboardComponent.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/BlockConfigEditor.vue.d.ts +0 -941
- package/dist/src/components/dashboard/editor/BlockConfigEditor.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/DashboardEditor.vue.d.ts +0 -2033
- package/dist/src/components/dashboard/editor/DashboardEditor.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/FieldLabel.vue.d.ts +0 -42
- package/dist/src/components/dashboard/editor/FieldLabel.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/JsonEditorDialog.vue.d.ts +0 -80
- package/dist/src/components/dashboard/editor/JsonEditorDialog.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/MarkdownEditorDialog.vue.d.ts +0 -77
- package/dist/src/components/dashboard/editor/MarkdownEditorDialog.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/VersionHistoryDialog.vue.d.ts +0 -53
- package/dist/src/components/dashboard/editor/VersionHistoryDialog.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/BookmarksConfig.vue.d.ts +0 -61
- package/dist/src/components/dashboard/editor/block-configs/BookmarksConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/ChartConfig.vue.d.ts +0 -76
- package/dist/src/components/dashboard/editor/block-configs/ChartConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/ExternalAppsConfig.vue.d.ts +0 -221
- package/dist/src/components/dashboard/editor/block-configs/ExternalAppsConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/FavoritesConfig.vue.d.ts +0 -78
- package/dist/src/components/dashboard/editor/block-configs/FavoritesConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/MarkdownConfig.vue.d.ts +0 -72
- package/dist/src/components/dashboard/editor/block-configs/MarkdownConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts +0 -66
- package/dist/src/components/dashboard/editor/block-configs/MyActivityConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/NoConfig.vue.d.ts +0 -4
- package/dist/src/components/dashboard/editor/block-configs/NoConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/block-configs/PdfImageConfig.vue.d.ts +0 -60
- package/dist/src/components/dashboard/editor/block-configs/PdfImageConfig.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/blockDraft.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/grid/BasketPanel.vue.d.ts +0 -38
- package/dist/src/components/dashboard/editor/grid/BasketPanel.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/grid/BlockTypeSelector.vue.d.ts +0 -36
- package/dist/src/components/dashboard/editor/grid/BlockTypeSelector.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/grid/GridBlock.vue.d.ts +0 -73
- package/dist/src/components/dashboard/editor/grid/GridBlock.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/grid/GridEditor.vue.d.ts +0 -141
- package/dist/src/components/dashboard/editor/grid/GridEditor.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/grid/MinimapPanel.vue.d.ts +0 -44
- package/dist/src/components/dashboard/editor/grid/MinimapPanel.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/editor/validators.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/ActivityHistory.vue.d.ts +0 -56
- package/dist/src/components/dashboard/widgets/ActivityHistory.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/BookmarksComponent.vue.d.ts +0 -27
- package/dist/src/components/dashboard/widgets/BookmarksComponent.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/ChartWrapper.vue.d.ts +0 -41
- package/dist/src/components/dashboard/widgets/ChartWrapper.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/DisplayFileInDashboardComponent.vue.d.ts +0 -337
- package/dist/src/components/dashboard/widgets/DisplayFileInDashboardComponent.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/ExternalApps.vue.d.ts +0 -32
- package/dist/src/components/dashboard/widgets/ExternalApps.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/FavoriteFileList.vue.d.ts +0 -45
- package/dist/src/components/dashboard/widgets/FavoriteFileList.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/FavoriteFolderList.vue.d.ts +0 -44
- package/dist/src/components/dashboard/widgets/FavoriteFolderList.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/FavoriteList.vue.d.ts +0 -167
- package/dist/src/components/dashboard/widgets/FavoriteList.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/FavoriteSiteList.vue.d.ts +0 -37
- package/dist/src/components/dashboard/widgets/FavoriteSiteList.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/MarkdownComponent.vue.d.ts +0 -31
- package/dist/src/components/dashboard/widgets/MarkdownComponent.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/OnlyImageDisplayed.vue.d.ts +0 -26
- package/dist/src/components/dashboard/widgets/OnlyImageDisplayed.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/SearchInput.vue.d.ts +0 -30
- package/dist/src/components/dashboard/widgets/SearchInput.vue.d.ts.map +0 -1
- package/dist/src/components/dashboard/widgets/UnknownBlockType.vue.d.ts +0 -14
- package/dist/src/components/dashboard/widgets/UnknownBlockType.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppFooter.vue.d.ts +0 -115
- package/dist/src/components/layouts/AppFooter.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppLayout.vue.d.ts +0 -864
- package/dist/src/components/layouts/AppLayout.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppMobileLayout.vue.d.ts +0 -219
- package/dist/src/components/layouts/AppMobileLayout.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppSidebar.vue.d.ts +0 -182
- package/dist/src/components/layouts/AppSidebar.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts +0 -55
- package/dist/src/components/layouts/AppSubmenu.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppSwitcher.vue.d.ts +0 -63
- package/dist/src/components/layouts/AppSwitcher.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/AppTopbar.vue.d.ts +0 -285
- package/dist/src/components/layouts/AppTopbar.vue.d.ts.map +0 -1
- package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts +0 -64
- package/dist/src/components/layouts/SidebarProfileSection.vue.d.ts.map +0 -1
- package/dist/src/components/menu/ActionMenu.vue.d.ts +0 -26
- package/dist/src/components/menu/ActionMenu.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts +0 -63
- package/dist/src/components/navigation/ColumnTogglePanel.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts +0 -363
- package/dist/src/components/navigation/ContentCompactTableView.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts +0 -75
- package/dist/src/components/navigation/ContentFiltersHeader.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentGridView.vue.d.ts +0 -157
- package/dist/src/components/navigation/ContentGridView.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentListView.vue.d.ts +0 -156
- package/dist/src/components/navigation/ContentListView.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentTableView.vue.d.ts +0 -408
- package/dist/src/components/navigation/ContentTableView.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/ContentToolbar.vue.d.ts +0 -19
- package/dist/src/components/navigation/ContentToolbar.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts +0 -1716
- package/dist/src/components/navigation/DynamicContentView.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/GhostNodeRow.vue.d.ts +0 -34
- package/dist/src/components/navigation/GhostNodeRow.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/LayoutSelector.vue.d.ts +0 -16
- package/dist/src/components/navigation/LayoutSelector.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/PreviewPanel.vue.d.ts +0 -646
- package/dist/src/components/navigation/PreviewPanel.vue.d.ts.map +0 -1
- package/dist/src/components/navigation/SelectionBar.vue.d.ts +0 -90
- package/dist/src/components/navigation/SelectionBar.vue.d.ts.map +0 -1
- package/dist/src/components/pagination/PaginatorComponent.vue.d.ts +0 -43
- package/dist/src/components/pagination/PaginatorComponent.vue.d.ts.map +0 -1
- package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts +0 -19
- package/dist/src/components/pdfTools/PdfToolsComponent.vue.d.ts.map +0 -1
- package/dist/src/components/pdfTools/SaveAsPopup.vue.d.ts +0 -14
- package/dist/src/components/pdfTools/SaveAsPopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts +0 -128
- package/dist/src/components/popup/CopyOrMovePopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts +0 -79
- package/dist/src/components/popup/CreateWorkflowPopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts +0 -28
- package/dist/src/components/popup/ImportNewVersionPopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts +0 -105
- package/dist/src/components/popup/ImportPopupWithWorker.vue.d.ts.map +0 -1
- package/dist/src/components/popup/MemberListPopup.vue.d.ts +0 -183
- package/dist/src/components/popup/MemberListPopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/SendMailPopup.vue.d.ts +0 -69
- package/dist/src/components/popup/SendMailPopup.vue.d.ts.map +0 -1
- package/dist/src/components/popup/ShareLinkPopup.vue.d.ts +0 -39
- package/dist/src/components/popup/ShareLinkPopup.vue.d.ts.map +0 -1
- package/dist/src/components/search/AddCriterionPopup.vue.d.ts +0 -118
- package/dist/src/components/search/AddCriterionPopup.vue.d.ts.map +0 -1
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts +0 -723
- package/dist/src/components/search/AdvancedSearchPanel.vue.d.ts.map +0 -1
- package/dist/src/components/search/AdvancedViewPanel.vue.d.ts +0 -854
- package/dist/src/components/search/AdvancedViewPanel.vue.d.ts.map +0 -1
- package/dist/src/components/search/ExactSearch.vue.d.ts +0 -41
- package/dist/src/components/search/ExactSearch.vue.d.ts.map +0 -1
- package/dist/src/components/search/FavoriteViewMenu.vue.d.ts +0 -36
- package/dist/src/components/search/FavoriteViewMenu.vue.d.ts.map +0 -1
- package/dist/src/components/search/SaveViewPopup.vue.d.ts +0 -107
- package/dist/src/components/search/SaveViewPopup.vue.d.ts.map +0 -1
- package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts +0 -52
- package/dist/src/components/search/UserViewsFavoritesPanel.vue.d.ts.map +0 -1
- package/dist/src/components/search/ViewResultsPanel.vue.d.ts +0 -275
- package/dist/src/components/search/ViewResultsPanel.vue.d.ts.map +0 -1
- package/dist/src/components/toast/CustomToastContent.vue.d.ts +0 -72
- package/dist/src/components/toast/CustomToastContent.vue.d.ts.map +0 -1
- package/dist/src/components/users/MemberList.vue.d.ts +0 -142
- package/dist/src/components/users/MemberList.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/ArchiveViewer.vue.d.ts +0 -14
- package/dist/src/components/viewer/ArchiveViewer.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/AudioPlayer.vue.d.ts +0 -39
- package/dist/src/components/viewer/AudioPlayer.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/CodeMirrorViewer.vue.d.ts +0 -13
- package/dist/src/components/viewer/CodeMirrorViewer.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/ImageViewer.vue.d.ts +0 -85
- package/dist/src/components/viewer/ImageViewer.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/PDFComponent.vue.d.ts +0 -449
- package/dist/src/components/viewer/PDFComponent.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/PdfSignaturePanel.vue.d.ts +0 -9
- package/dist/src/components/viewer/PdfSignaturePanel.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/VideoPlayer.vue.d.ts +0 -51
- package/dist/src/components/viewer/VideoPlayer.vue.d.ts.map +0 -1
- package/dist/src/components/viewer/lazyPdfComponents.d.ts +0 -442
- package/dist/src/components/viewer/lazyPdfComponents.d.ts.map +0 -1
- package/dist/src/components/views/PredefinedViewsPanel.vue.d.ts +0 -105
- package/dist/src/components/views/PredefinedViewsPanel.vue.d.ts.map +0 -1
- package/dist/src/components/views/ViewList.vue.d.ts +0 -14
- package/dist/src/components/views/ViewList.vue.d.ts.map +0 -1
- package/dist/src/components/workspace/WorkspaceCard.vue.d.ts +0 -184
- package/dist/src/components/workspace/WorkspaceCard.vue.d.ts.map +0 -1
- package/dist/src/components/workspace/WorkspaceList.vue.d.ts +0 -380
- package/dist/src/components/workspace/WorkspaceList.vue.d.ts.map +0 -1
- package/dist/src/composables/collabProtocol.d.ts.map +0 -1
- package/dist/src/composables/useAuth.d.ts.map +0 -1
- package/dist/src/composables/useChatWebSocket.d.ts.map +0 -1
- package/dist/src/composables/useClassificationPlan.d.ts.map +0 -1
- package/dist/src/composables/useCodeMirror.d.ts +0 -57
- package/dist/src/composables/useCodeMirror.d.ts.map +0 -1
- package/dist/src/composables/useCollabEditor.d.ts.map +0 -1
- package/dist/src/composables/useCollabWebSocket.d.ts.map +0 -1
- package/dist/src/composables/useColumnFilter.d.ts.map +0 -1
- package/dist/src/composables/useDragDrop.d.ts.map +0 -1
- package/dist/src/composables/useGhostNodes.d.ts.map +0 -1
- package/dist/src/composables/useGridValidation.d.ts.map +0 -1
- package/dist/src/composables/useLayout.d.ts.map +0 -1
- package/dist/src/composables/useMarkdownPreview.d.ts +0 -44
- package/dist/src/composables/useMarkdownPreview.d.ts.map +0 -1
- package/dist/src/composables/useResize.d.ts.map +0 -1
- package/dist/src/composables/useTheme.d.ts.map +0 -1
- package/dist/src/directives/assert.d.ts.map +0 -1
- package/dist/src/httpClientPatch.d.ts.map +0 -1
- package/dist/src/i18n/index.d.ts +0 -4057
- package/dist/src/i18n/index.d.ts.map +0 -1
- package/dist/src/i18n/locales/index.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -168
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/pages/ErrorPage.vue.d.ts +0 -6
- package/dist/src/pages/ErrorPage.vue.d.ts.map +0 -1
- package/dist/src/pages/LoginPage.vue.d.ts +0 -29
- package/dist/src/pages/LoginPage.vue.d.ts.map +0 -1
- package/dist/src/pages/NotFoundPages.vue.d.ts +0 -50
- package/dist/src/pages/NotFoundPages.vue.d.ts.map +0 -1
- package/dist/src/plugins/KeycloakPlugin.d.ts.map +0 -1
- package/dist/src/services/AftsQueryBuilder.d.ts.map +0 -1
- package/dist/src/services/AlfrescoFileService.d.ts.map +0 -1
- package/dist/src/services/AlfrescoModelService.d.ts.map +0 -1
- package/dist/src/services/AlfrescoNodeService.d.ts.map +0 -1
- package/dist/src/services/AlfrescoPermissionService.d.ts.map +0 -1
- package/dist/src/services/AlfrescoProxyService.d.ts.map +0 -1
- package/dist/src/services/AppSwitcherService.d.ts.map +0 -1
- package/dist/src/services/ArchiveService.d.ts +0 -49
- package/dist/src/services/ArchiveService.d.ts.map +0 -1
- package/dist/src/services/CapabilitiesService.d.ts.map +0 -1
- package/dist/src/services/ChatBackendService.d.ts.map +0 -1
- package/dist/src/services/ClassificationFileService.d.ts +0 -60
- package/dist/src/services/ClassificationFileService.d.ts.map +0 -1
- package/dist/src/services/ClassificationService.d.ts +0 -41
- package/dist/src/services/ClassificationService.d.ts.map +0 -1
- package/dist/src/services/CollabBackupService.d.ts.map +0 -1
- package/dist/src/services/CollabService.d.ts.map +0 -1
- package/dist/src/services/CollaboraAccessService.d.ts.map +0 -1
- package/dist/src/services/ConfigHealthService.d.ts.map +0 -1
- package/dist/src/services/ConfigService.d.ts.map +0 -1
- package/dist/src/services/DashboardService.d.ts +0 -77
- package/dist/src/services/DashboardService.d.ts.map +0 -1
- package/dist/src/services/DiffusionService.d.ts.map +0 -1
- package/dist/src/services/ErrorService.d.ts.map +0 -1
- package/dist/src/services/FavoriteService.d.ts.map +0 -1
- package/dist/src/services/FilingPlanService.d.ts.map +0 -1
- package/dist/src/services/FormatService.d.ts.map +0 -1
- package/dist/src/services/GhostMatcher.d.ts.map +0 -1
- package/dist/src/services/IconeService.d.ts.map +0 -1
- package/dist/src/services/KeyboardShortcutsService.d.ts.map +0 -1
- package/dist/src/services/LibVueActionService.d.ts.map +0 -1
- package/dist/src/services/MenuService.d.ts.map +0 -1
- package/dist/src/services/NodeToMenuItemService.d.ts.map +0 -1
- package/dist/src/services/PdfCommentService.d.ts +0 -30
- package/dist/src/services/PdfCommentService.d.ts.map +0 -1
- package/dist/src/services/PdfConfigService.d.ts.map +0 -1
- package/dist/src/services/PdfFormService.d.ts.map +0 -1
- package/dist/src/services/PdfLinkService.d.ts.map +0 -1
- package/dist/src/services/PdfRedactionService.d.ts.map +0 -1
- package/dist/src/services/PdfSignatureService.d.ts.map +0 -1
- package/dist/src/services/PdfTextService.d.ts.map +0 -1
- package/dist/src/services/PeopleService.d.ts.map +0 -1
- package/dist/src/services/PreviewService.d.ts.map +0 -1
- package/dist/src/services/RocketChatAuthService.d.ts.map +0 -1
- package/dist/src/services/RocketChatService.d.ts.map +0 -1
- package/dist/src/services/TranslationService.d.ts.map +0 -1
- package/dist/src/services/UserViewService.d.ts.map +0 -1
- package/dist/src/services/ViewConfigService.d.ts.map +0 -1
- package/dist/src/services/WorkflowService.d.ts.map +0 -1
- package/dist/src/services/WorkspaceService.d.ts +0 -60
- package/dist/src/services/WorkspaceService.d.ts.map +0 -1
- package/dist/src/services/aliasMap.d.ts.map +0 -1
- package/dist/src/services/auth/KeycloakAuthProvider.d.ts.map +0 -1
- package/dist/src/services/auth/OidcAuthProvider.d.ts.map +0 -1
- package/dist/src/services/auth/__tests__/FakeAuthProvider.d.ts.map +0 -1
- package/dist/src/services/auth/authProvider.d.ts.map +0 -1
- package/dist/src/services/auth/buildOidcSettings.d.ts.map +0 -1
- package/dist/src/services/criteriaLogic.d.ts.map +0 -1
- package/dist/src/services/userSearchQuery.d.ts.map +0 -1
- package/dist/src/stores/chat.d.ts.map +0 -1
- package/dist/src/stores/collab.d.ts.map +0 -1
- package/dist/src/stores/collabora.d.ts.map +0 -1
- package/dist/src/stores/config.d.ts +0 -341
- package/dist/src/stores/config.d.ts.map +0 -1
- package/dist/src/stores/favorites.d.ts.map +0 -1
- package/dist/src/stores/filingPlan.d.ts.map +0 -1
- package/dist/src/stores/menu.d.ts.map +0 -1
- package/dist/src/stores/navigation.d.ts +0 -78
- package/dist/src/stores/navigation.d.ts.map +0 -1
- package/dist/src/stores/paginator.d.ts.map +0 -1
- package/dist/src/stores/screen.d.ts.map +0 -1
- package/dist/src/stores/search.d.ts.map +0 -1
- package/dist/src/stores/selection.d.ts.map +0 -1
- package/dist/src/stores/taskNotification.d.ts.map +0 -1
- package/dist/src/stores/upload.d.ts +0 -92
- package/dist/src/stores/upload.d.ts.map +0 -1
- package/dist/src/stores/user.d.ts +0 -156
- package/dist/src/stores/user.d.ts.map +0 -1
- package/dist/src/stores/userPreferences.d.ts.map +0 -1
- package/dist/src/stores/userView.d.ts.map +0 -1
- package/dist/src/typedef.d.ts.map +0 -1
- package/dist/src/utils/classificationPlanUtils.d.ts +0 -150
- package/dist/src/utils/classificationPlanUtils.d.ts.map +0 -1
- package/dist/src/utils/overflowUtils.d.ts.map +0 -1
- package/dist/src/workers/upload.worker.d.ts.map +0 -1
- /package/dist/{src/components → components}/dashboard/editor/blockDraft.d.ts +0 -0
- /package/dist/{src/components → components}/dashboard/editor/validators.d.ts +0 -0
- /package/dist/{src/composables → composables}/collabProtocol.d.ts +0 -0
- /package/dist/{src/composables → composables}/useAuth.d.ts +0 -0
- /package/dist/{src/composables → composables}/useChatWebSocket.d.ts +0 -0
- /package/dist/{src/composables → composables}/useClassificationPlan.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCollabEditor.d.ts +0 -0
- /package/dist/{src/composables → composables}/useCollabWebSocket.d.ts +0 -0
- /package/dist/{src/composables → composables}/useColumnFilter.d.ts +0 -0
- /package/dist/{src/composables → composables}/useDragDrop.d.ts +0 -0
- /package/dist/{src/composables → composables}/useGhostNodes.d.ts +0 -0
- /package/dist/{src/composables → composables}/useGridValidation.d.ts +0 -0
- /package/dist/{src/composables → composables}/useLayout.d.ts +0 -0
- /package/dist/{src/composables → composables}/useResize.d.ts +0 -0
- /package/dist/{src/composables → composables}/useTheme.d.ts +0 -0
- /package/dist/{src/directives → directives}/assert.d.ts +0 -0
- /package/dist/{src/httpClientPatch.d.ts → httpClientPatch.d.ts} +0 -0
- /package/dist/{src/i18n → i18n}/locales/index.d.ts +0 -0
- /package/dist/{src/plugins → plugins}/KeycloakPlugin.d.ts +0 -0
- /package/dist/{src/services → services}/AftsQueryBuilder.d.ts +0 -0
- /package/dist/{src/services → services}/AlfrescoFileService.d.ts +0 -0
- /package/dist/{src/services → services}/AlfrescoModelService.d.ts +0 -0
- /package/dist/{src/services → services}/AlfrescoNodeService.d.ts +0 -0
- /package/dist/{src/services → services}/AlfrescoPermissionService.d.ts +0 -0
- /package/dist/{src/services → services}/AlfrescoProxyService.d.ts +0 -0
- /package/dist/{src/services → services}/AppSwitcherService.d.ts +0 -0
- /package/dist/{src/services → services}/CapabilitiesService.d.ts +0 -0
- /package/dist/{src/services → services}/ChatBackendService.d.ts +0 -0
- /package/dist/{src/services → services}/CollabBackupService.d.ts +0 -0
- /package/dist/{src/services → services}/CollabService.d.ts +0 -0
- /package/dist/{src/services → services}/CollaboraAccessService.d.ts +0 -0
- /package/dist/{src/services → services}/ConfigHealthService.d.ts +0 -0
- /package/dist/{src/services → services}/ConfigService.d.ts +0 -0
- /package/dist/{src/services → services}/DiffusionService.d.ts +0 -0
- /package/dist/{src/services → services}/ErrorService.d.ts +0 -0
- /package/dist/{src/services → services}/FavoriteService.d.ts +0 -0
- /package/dist/{src/services → services}/FilingPlanService.d.ts +0 -0
- /package/dist/{src/services → services}/FormatService.d.ts +0 -0
- /package/dist/{src/services → services}/GhostMatcher.d.ts +0 -0
- /package/dist/{src/services → services}/IconeService.d.ts +0 -0
- /package/dist/{src/services → services}/KeyboardShortcutsService.d.ts +0 -0
- /package/dist/{src/services → services}/LibVueActionService.d.ts +0 -0
- /package/dist/{src/services → services}/MenuService.d.ts +0 -0
- /package/dist/{src/services → services}/NodeToMenuItemService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfConfigService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfFormService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfLinkService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfRedactionService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfSignatureService.d.ts +0 -0
- /package/dist/{src/services → services}/PdfTextService.d.ts +0 -0
- /package/dist/{src/services → services}/PeopleService.d.ts +0 -0
- /package/dist/{src/services → services}/PreviewService.d.ts +0 -0
- /package/dist/{src/services → services}/RocketChatAuthService.d.ts +0 -0
- /package/dist/{src/services → services}/RocketChatService.d.ts +0 -0
- /package/dist/{src/services → services}/TranslationService.d.ts +0 -0
- /package/dist/{src/services → services}/UserViewService.d.ts +0 -0
- /package/dist/{src/services → services}/ViewConfigService.d.ts +0 -0
- /package/dist/{src/services → services}/WorkflowService.d.ts +0 -0
- /package/dist/{src/services → services}/aliasMap.d.ts +0 -0
- /package/dist/{src/services → services}/auth/KeycloakAuthProvider.d.ts +0 -0
- /package/dist/{src/services → services}/auth/OidcAuthProvider.d.ts +0 -0
- /package/dist/{src/services → services}/auth/__tests__/FakeAuthProvider.d.ts +0 -0
- /package/dist/{src/services → services}/auth/authProvider.d.ts +0 -0
- /package/dist/{src/services → services}/auth/buildOidcSettings.d.ts +0 -0
- /package/dist/{src/services → services}/criteriaLogic.d.ts +0 -0
- /package/dist/{src/services → services}/userSearchQuery.d.ts +0 -0
- /package/dist/{src/stores → stores}/chat.d.ts +0 -0
- /package/dist/{src/stores → stores}/collab.d.ts +0 -0
- /package/dist/{src/stores → stores}/collabora.d.ts +0 -0
- /package/dist/{src/stores → stores}/favorites.d.ts +0 -0
- /package/dist/{src/stores → stores}/filingPlan.d.ts +0 -0
- /package/dist/{src/stores → stores}/menu.d.ts +0 -0
- /package/dist/{src/stores → stores}/paginator.d.ts +0 -0
- /package/dist/{src/stores → stores}/screen.d.ts +0 -0
- /package/dist/{src/stores → stores}/search.d.ts +0 -0
- /package/dist/{src/stores → stores}/selection.d.ts +0 -0
- /package/dist/{src/stores → stores}/taskNotification.d.ts +0 -0
- /package/dist/{src/stores → stores}/userPreferences.d.ts +0 -0
- /package/dist/{src/stores → stores}/userView.d.ts +0 -0
- /package/dist/{src/typedef.d.ts → typedef.d.ts} +0 -0
- /package/dist/{src/utils → utils}/overflowUtils.d.ts +0 -0
- /package/dist/{src/workers → workers}/upload.worker.d.ts +0 -0
|
@@ -0,0 +1,1948 @@
|
|
|
1
|
+
import { ref as v, openBlock as m, createBlock as He, unref as r, withCtx as I, createElementVNode as n, toDisplayString as p, createVNode as i, createElementBlock as b, createCommentVNode as N, computed as Pe, onMounted as Po, watch as xe, onUnmounted as xo, resolveDirective as ko, createTextVNode as te, Fragment as Ze, renderList as Qe, withModifiers as fe, normalizeClass as K, normalizeStyle as it, withDirectives as Le, vModelText as ct, withKeys as dt, nextTick as ut } from "vue";
|
|
2
|
+
import { PDFDocument as V, degrees as Co, rgb as El, RotationTypes as Io, StandardFonts as Pl } from "pdf-lib";
|
|
3
|
+
import { usePDF as vt, VuePDF as el } from "@tato30/vue-pdf";
|
|
4
|
+
import { a as ft } from "./PdfConfigService-9q_fMJP1.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { VueDraggableNext as $o } from "vue-draggable-next";
|
|
7
|
+
import { useI18n as bt } from "vue-i18n";
|
|
8
|
+
import { _ as wt, T as Tt, f as ke, g as xl, i as So, j as Ao, k as _o } from "./index-DJEkd3cy.js";
|
|
9
|
+
import Ue from "primevue/progressspinner";
|
|
10
|
+
import Mo from "primevue/message";
|
|
11
|
+
import w from "primevue/button";
|
|
12
|
+
import Fo from "primevue/checkbox";
|
|
13
|
+
import Be from "primevue/inputtext";
|
|
14
|
+
import pt from "primevue/inputnumber";
|
|
15
|
+
import Ro from "primevue/slider";
|
|
16
|
+
import mt from "primevue/fileupload";
|
|
17
|
+
import gt from "primevue/divider";
|
|
18
|
+
import No from "primevue/select";
|
|
19
|
+
import ol from "primevue/dialog";
|
|
20
|
+
import Do from "primevue/tabs";
|
|
21
|
+
import Lo from "primevue/tablist";
|
|
22
|
+
import ll from "primevue/tab";
|
|
23
|
+
import Uo from "primevue/tabpanels";
|
|
24
|
+
import tl from "primevue/tabpanel";
|
|
25
|
+
import { removeCommentAnnotations as Ho, addCommentAnnotation as Bo, relinkReplies as Vo, readCommentAnnotations as Oo } from "./PdfCommentService-D5m9OkWV.js";
|
|
26
|
+
const zo = { class: "save-as-form" }, Wo = { class: "form-field" }, Go = { for: "filename" }, Xo = { class: "form-field" }, Yo = { for: "location" }, jo = { class: "input-group" }, Ko = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "explorer-container"
|
|
29
|
+
}, qo = {
|
|
30
|
+
__name: "SaveAsPopup",
|
|
31
|
+
props: {
|
|
32
|
+
visible: Boolean,
|
|
33
|
+
defaultFilename: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: null
|
|
36
|
+
},
|
|
37
|
+
parentFolderNode: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: null
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
emits: ["close", "save"],
|
|
43
|
+
setup($, { emit: _ }) {
|
|
44
|
+
const { t: d } = bt(), L = $, k = _, O = v(""), oe = v(null), G = v(!1), U = v(null), y = v(""), H = () => {
|
|
45
|
+
O.value = L.defaultFilename || d("pdfTools.saveAs.defaultFilename"), oe.value = L.parentFolderNode, U.value = L.parentFolderNode?.id, y.value = L.parentFolderNode?.name, G.value = !1;
|
|
46
|
+
}, g = async (h) => {
|
|
47
|
+
if (!(!h || !h.isFolder)) {
|
|
48
|
+
if (h.name === "documentLibrary")
|
|
49
|
+
if (U.value = h.id, h.parentId)
|
|
50
|
+
try {
|
|
51
|
+
const T = await ke.getNode(h.parentId);
|
|
52
|
+
y.value = T.properties["cm:title"] || T.name;
|
|
53
|
+
} catch (T) {
|
|
54
|
+
console.error("Could not fetch parent node name", T), y.value = h.name;
|
|
55
|
+
}
|
|
56
|
+
else
|
|
57
|
+
y.value = h.name;
|
|
58
|
+
else
|
|
59
|
+
U.value = h.id, y.value = h.name;
|
|
60
|
+
G.value = !1;
|
|
61
|
+
}
|
|
62
|
+
}, F = () => {
|
|
63
|
+
U.value && k("save", {
|
|
64
|
+
filename: O.value,
|
|
65
|
+
folderId: U.value
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
return (h, T) => (m(), He(r(ol), {
|
|
69
|
+
visible: $.visible,
|
|
70
|
+
modal: "",
|
|
71
|
+
header: h.$t("pdfTools.saveAs.title"),
|
|
72
|
+
class: "dialog-save-as",
|
|
73
|
+
"onUpdate:visible": T[3] || (T[3] = (q) => h.$emit("close")),
|
|
74
|
+
onShow: H
|
|
75
|
+
}, {
|
|
76
|
+
footer: I(() => [
|
|
77
|
+
i(r(w), {
|
|
78
|
+
label: h.$t("pdfTools.common.cancel"),
|
|
79
|
+
icon: "ri-close-line",
|
|
80
|
+
text: "",
|
|
81
|
+
onClick: T[2] || (T[2] = (q) => h.$emit("close"))
|
|
82
|
+
}, null, 8, ["label"]),
|
|
83
|
+
i(r(w), {
|
|
84
|
+
label: h.$t("pdfTools.common.save"),
|
|
85
|
+
icon: "ri-check-line",
|
|
86
|
+
onClick: F,
|
|
87
|
+
disabled: !O.value || !U.value
|
|
88
|
+
}, null, 8, ["label", "disabled"])
|
|
89
|
+
]),
|
|
90
|
+
default: I(() => [
|
|
91
|
+
n("div", zo, [
|
|
92
|
+
n("div", Wo, [
|
|
93
|
+
n("label", Go, p(h.$t("pdfTools.saveAs.filenameLabel")), 1),
|
|
94
|
+
i(r(Be), {
|
|
95
|
+
id: "filename",
|
|
96
|
+
modelValue: O.value,
|
|
97
|
+
"onUpdate:modelValue": T[0] || (T[0] = (q) => O.value = q)
|
|
98
|
+
}, null, 8, ["modelValue"])
|
|
99
|
+
]),
|
|
100
|
+
n("div", Xo, [
|
|
101
|
+
n("label", Yo, p(h.$t("pdfTools.saveAs.folderLabel")), 1),
|
|
102
|
+
n("div", jo, [
|
|
103
|
+
i(r(Be), {
|
|
104
|
+
id: "location",
|
|
105
|
+
readonly: "",
|
|
106
|
+
value: y.value
|
|
107
|
+
}, null, 8, ["value"]),
|
|
108
|
+
i(r(w), {
|
|
109
|
+
icon: G.value ? "ri-arrow-up-s-line" : "ri-arrow-down-s-line",
|
|
110
|
+
label: h.$t("pdfTools.saveAs.browse"),
|
|
111
|
+
onClick: T[1] || (T[1] = (q) => G.value = !G.value)
|
|
112
|
+
}, null, 8, ["icon", "label"])
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
G.value ? (m(), b("div", Ko, [
|
|
116
|
+
i(Tt, {
|
|
117
|
+
"current-node": oe.value,
|
|
118
|
+
"show-user-home": "",
|
|
119
|
+
"show-files": !1,
|
|
120
|
+
onSelectNode: g
|
|
121
|
+
}, null, 8, ["current-node"])
|
|
122
|
+
])) : N("", !0)
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["visible", "header"]));
|
|
127
|
+
}
|
|
128
|
+
}, Jo = /* @__PURE__ */ wt(qo, [["__scopeId", "data-v-c9e02fa9"]]), yt = ($) => {
|
|
129
|
+
if (!$)
|
|
130
|
+
return null;
|
|
131
|
+
const _ = $.trim();
|
|
132
|
+
if (/^[0-9a-fA-F-]{20,}$/.test(_))
|
|
133
|
+
return _;
|
|
134
|
+
const d = _.match(/workspace:\/\/SpacesStore\/([0-9a-fA-F-]{20,})/);
|
|
135
|
+
if (d && d[1])
|
|
136
|
+
return d[1];
|
|
137
|
+
const L = _.match(
|
|
138
|
+
/\b(nodes|preview|renditions|content)\/?([0-9a-fA-F-]{20,})\b/
|
|
139
|
+
);
|
|
140
|
+
if (L && L[2])
|
|
141
|
+
return L[2];
|
|
142
|
+
const k = _.match(
|
|
143
|
+
/#\/(?:pdf-tools|consultation-pdf|edit-collabora)\/([0-9a-fA-F-]{20,})/
|
|
144
|
+
);
|
|
145
|
+
if (k && k[1])
|
|
146
|
+
return k[1];
|
|
147
|
+
const O = _.match(/([0-9a-fA-F]{20,})/);
|
|
148
|
+
return O && O[1] ? O[1] : null;
|
|
149
|
+
}, Zo = 72, Qo = 200, ea = 16e6, la = async ({
|
|
150
|
+
pdfPage: $,
|
|
151
|
+
redactions: _ = [],
|
|
152
|
+
dpi: d = Qo,
|
|
153
|
+
quality: L = 0.85,
|
|
154
|
+
mimeType: k = "image/jpeg",
|
|
155
|
+
maxPixels: O = ea,
|
|
156
|
+
createCanvas: oe = () => document.createElement("canvas")
|
|
157
|
+
}) => {
|
|
158
|
+
let G = d / Zo;
|
|
159
|
+
const U = $.getViewport({ scale: G }), y = U.width * U.height;
|
|
160
|
+
y > O && (G = Math.floor(G * Math.sqrt(O / y) * 1e4) / 1e4);
|
|
161
|
+
const H = $.getViewport({ scale: G }), g = oe();
|
|
162
|
+
g.width = Math.floor(H.width), g.height = Math.floor(H.height);
|
|
163
|
+
const F = g.getContext("2d");
|
|
164
|
+
if (await $.render({ canvasContext: F, viewport: H }).promise, _.length > 0) {
|
|
165
|
+
F.fillStyle = "#000000";
|
|
166
|
+
for (const h of _)
|
|
167
|
+
F.fillRect(
|
|
168
|
+
h.x * g.width,
|
|
169
|
+
h.y * g.height,
|
|
170
|
+
h.w * g.width,
|
|
171
|
+
h.h * g.height
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
return g.toDataURL(k, L);
|
|
175
|
+
}, al = 1.2, ta = 8, oa = ({ overlayWidth: $, pageWidthPt: _ }) => !_ || !$ ? 1 : $ / _, kl = ($) => String($ ?? "").split(/\r?\n/), aa = ({ lines: $, fontSize: _, measureLine: d }) => {
|
|
176
|
+
const L = $.map((k) => d(k));
|
|
177
|
+
return {
|
|
178
|
+
w: Math.max(ta, ...L),
|
|
179
|
+
h: $.length * _ * al
|
|
180
|
+
};
|
|
181
|
+
}, sa = ({ topY: $, lineIndex: _, fontSize: d, ascentPt: L }) => $ - _ * d * al - L, na = { class: "pdf-tools-page" }, ra = { class: "pdf-tools-header" }, ia = { key: 0 }, ca = {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "loading-container"
|
|
184
|
+
}, da = {
|
|
185
|
+
key: 1,
|
|
186
|
+
class: "error-container"
|
|
187
|
+
}, ua = {
|
|
188
|
+
key: 2,
|
|
189
|
+
class: "pdf-editor-layout"
|
|
190
|
+
}, va = { class: "pdf-tools-sidebar" }, fa = { class: "card" }, pa = { class: "sidebar-form" }, ma = { class: "form-field" }, ga = { class: "form-field form-field--spaced" }, ya = { class: "form-field form-field--spaced" }, ha = { class: "insert-buttons" }, ba = { class: "form-field form-field--spaced" }, wa = { class: "watermark-grid" }, Ta = { class: "pdf-preview-container" }, Ea = ["onClick", "onDblclick"], Pa = { class: "page-selection" }, xa = { class: "page-actions" }, ka = { class: "thumbnail-content" }, Ca = { class: "page-number" }, Ia = { class: "dialog-header" }, $a = { class: "page-editor-toolbar" }, Sa = { class: "zoom-indicator" }, Aa = { class: "editor-layout" }, _a = { class: "tool-group" }, Ma = {
|
|
191
|
+
key: 0,
|
|
192
|
+
class: "text-settings"
|
|
193
|
+
}, Fa = { class: "form-field" }, Ra = { class: "form-label" }, Na = { class: "form-field" }, Da = {
|
|
194
|
+
class: "form-label",
|
|
195
|
+
for: "text-size-slider"
|
|
196
|
+
}, La = { class: "form-field" }, Ua = {
|
|
197
|
+
class: "form-label",
|
|
198
|
+
id: "text-color-label"
|
|
199
|
+
}, Ha = {
|
|
200
|
+
class: "color-swatches",
|
|
201
|
+
role: "group",
|
|
202
|
+
"aria-labelledby": "text-color-label"
|
|
203
|
+
}, Ba = ["aria-label", "aria-pressed", "onClick"], Va = { class: "color-custom" }, Oa = ["aria-label", "placeholder", "onKeydown"], za = { class: "editor-footer" }, Wa = { class: "dialog-header" }, Ga = { class: "signature-pad" }, Xa = { class: "dialog-footer-buttons" }, Ya = { class: "search-input-group" }, ja = {
|
|
204
|
+
key: 0,
|
|
205
|
+
class: "inline-status"
|
|
206
|
+
}, Ka = {
|
|
207
|
+
key: 1,
|
|
208
|
+
class: "text-muted"
|
|
209
|
+
}, qa = {
|
|
210
|
+
key: 2,
|
|
211
|
+
class: "favorites-layout"
|
|
212
|
+
}, Ja = { class: "favorites-list" }, Za = ["onClick"], Qa = { class: "item-content" }, es = { class: "text-ellipsis" }, ls = { class: "favorites-preview" }, ts = {
|
|
213
|
+
key: 0,
|
|
214
|
+
class: "preview-placeholder"
|
|
215
|
+
}, os = { class: "text-muted" }, as = {
|
|
216
|
+
key: 1,
|
|
217
|
+
class: "preview-placeholder"
|
|
218
|
+
}, ss = { class: "text-muted" }, ns = {
|
|
219
|
+
key: 2,
|
|
220
|
+
class: "preview-wrapper"
|
|
221
|
+
}, rs = {
|
|
222
|
+
key: 0,
|
|
223
|
+
class: "preview-controls"
|
|
224
|
+
}, is = { class: "page-info" }, cs = { class: "preview-content" }, ds = {
|
|
225
|
+
key: 0,
|
|
226
|
+
class: "inline-status"
|
|
227
|
+
}, us = {
|
|
228
|
+
key: 1,
|
|
229
|
+
class: "text-muted"
|
|
230
|
+
}, vs = {
|
|
231
|
+
key: 2,
|
|
232
|
+
class: "favorites-layout"
|
|
233
|
+
}, fs = { class: "favorites-list" }, ps = ["onClick"], ms = { class: "item-content" }, gs = { class: "text-ellipsis" }, ys = { class: "favorites-preview" }, hs = {
|
|
234
|
+
key: 0,
|
|
235
|
+
class: "preview-placeholder"
|
|
236
|
+
}, bs = { class: "text-muted" }, ws = {
|
|
237
|
+
key: 1,
|
|
238
|
+
class: "preview-placeholder"
|
|
239
|
+
}, Ts = { class: "text-muted" }, Es = {
|
|
240
|
+
key: 2,
|
|
241
|
+
class: "preview-wrapper"
|
|
242
|
+
}, Ps = {
|
|
243
|
+
key: 0,
|
|
244
|
+
class: "preview-controls"
|
|
245
|
+
}, xs = { class: "page-info" }, ks = { class: "preview-content" }, Cs = { class: "sidebar-form" }, Is = { class: "form-field" }, $s = { for: "alfrescoNodeId" }, Ss = { class: "form-hint" }, As = { class: "insert-footer" }, _s = { class: "insert-footer-info" }, Ms = {
|
|
246
|
+
key: 0,
|
|
247
|
+
class: "selected-info"
|
|
248
|
+
}, Fs = { class: "selected-label" }, Rs = { class: "selected-name" }, Ns = {
|
|
249
|
+
key: 1,
|
|
250
|
+
class: "error-msg"
|
|
251
|
+
}, Ds = { class: "insert-footer-actions" }, ht = 24, Ls = {
|
|
252
|
+
__name: "PdfToolsComponent",
|
|
253
|
+
props: {
|
|
254
|
+
toast: { type: Object, required: !0 },
|
|
255
|
+
id: { type: String, required: !0 },
|
|
256
|
+
// The host application decides where closing leads, so the button is only
|
|
257
|
+
// offered when it opts in and handles the event
|
|
258
|
+
closable: { type: Boolean, default: !1 },
|
|
259
|
+
insertIds: { type: Array, default: () => [] }
|
|
260
|
+
},
|
|
261
|
+
emits: ["close"],
|
|
262
|
+
setup($, { emit: _ }) {
|
|
263
|
+
const { t: d } = bt(), L = () => {
|
|
264
|
+
const e = Ao().person;
|
|
265
|
+
return e?.displayName || e?.id || d("pdfTools.pageEditor.tools.comment");
|
|
266
|
+
}, k = $, O = _, oe = v(!1), G = () => {
|
|
267
|
+
oe.value && !window.confirm(d("pdfTools.closeUnsaved")) || O("close");
|
|
268
|
+
}, U = v(null), y = v(null), H = v([]), g = v(!0), F = v(null), h = v(null), T = v([]), q = v(!1), Y = v(null), ee = v(1), c = {
|
|
269
|
+
SELECT: "select",
|
|
270
|
+
REDACT: "redact",
|
|
271
|
+
HIGHLIGHT: "highlight",
|
|
272
|
+
COMMENT: "comment",
|
|
273
|
+
IMAGE: "image",
|
|
274
|
+
SIGNATURE: "signature",
|
|
275
|
+
TEXT: "text"
|
|
276
|
+
}, x = v(c.SELECT), f = v([]), Ce = v(null), Ie = v(null), Cl = v(null), D = v(null), Il = v(null), C = v({
|
|
277
|
+
visible: !1,
|
|
278
|
+
tool: null,
|
|
279
|
+
x: 0,
|
|
280
|
+
y: 0,
|
|
281
|
+
value: "",
|
|
282
|
+
index: -1
|
|
283
|
+
}), pe = v(!1), me = v(null);
|
|
284
|
+
let sl = !1, Ve = null, ge = !1, ae = null;
|
|
285
|
+
const $e = v(""), nl = v(-45), Se = v(5), Et = [
|
|
286
|
+
{ label: "Helvetica", value: "Helvetica" },
|
|
287
|
+
{ label: "Times New Roman", value: "TimesRoman" },
|
|
288
|
+
{ label: "Courier", value: "Courier" }
|
|
289
|
+
], Pt = [
|
|
290
|
+
{ name: "black", value: "#000000" },
|
|
291
|
+
{ name: "white", value: "#ffffff" },
|
|
292
|
+
{ name: "red", value: "#e53935" },
|
|
293
|
+
{ name: "orange", value: "#fb8c00" },
|
|
294
|
+
{ name: "yellow", value: "#fdd835" },
|
|
295
|
+
{ name: "green", value: "#43a047" },
|
|
296
|
+
{ name: "blue", value: "#1e88e5" },
|
|
297
|
+
{ name: "purple", value: "#8e24aa" }
|
|
298
|
+
], ne = v("Helvetica"), se = v(18), J = v("#000000"), xt = v(null), Oe = v(!1), $l = v(null), Sl = v(""), ze = v(""), We = v(null), Ge = v(null), Ae = v(!1), re = v(""), ie = v(""), B = v(null), kt = Pe(() => re.value && yt(re.value) ? !0 : !!(B.value && B.value.id)), _e = v(""), ye = v([]), rl = v(!1), Al = v(!1), Me = v([]), Xe = v(!1), Ye = v(!1), he = v(null), { pdf: Fe } = vt(ft(he)), X = v(1), j = v(0), be = v(null), { pdf: je, pages: _l } = vt(ft(be));
|
|
299
|
+
Po(() => {
|
|
300
|
+
const e = k.id;
|
|
301
|
+
e ? It(e).then(Lt) : (F.value = d("pdfTools.loadError"), g.value = !1);
|
|
302
|
+
});
|
|
303
|
+
const Ml = (e) => T.value.some((l) => l.pageIndex === e.pageIndex), Ct = (e) => {
|
|
304
|
+
h.value = e;
|
|
305
|
+
const l = T.value.findIndex(
|
|
306
|
+
(o) => o.pageIndex === e.pageIndex
|
|
307
|
+
);
|
|
308
|
+
l > -1 ? T.value.splice(l, 1) : T.value.push(e);
|
|
309
|
+
}, It = async (e) => {
|
|
310
|
+
g.value = !0, F.value = null;
|
|
311
|
+
try {
|
|
312
|
+
const l = await ke.getNode(e);
|
|
313
|
+
We.value = l, xt.value = l.parentId, ze.value = l && (l.name || l.properties && l.properties["cm:name"]) || "";
|
|
314
|
+
const o = xl.getContentUrl(e);
|
|
315
|
+
be.value = o;
|
|
316
|
+
const t = await fetch(o);
|
|
317
|
+
if (!t.ok)
|
|
318
|
+
throw new Error(`HTTP error! status: ${t.status}`);
|
|
319
|
+
const s = await t.arrayBuffer();
|
|
320
|
+
y.value = new Uint8Array(s), await Fl(y.value), H.value.length > 0 && (h.value = H.value[0]);
|
|
321
|
+
} catch (l) {
|
|
322
|
+
console.error("Error loading PDF from Alfresco:", l), F.value = d("pdfTools.loadError");
|
|
323
|
+
} finally {
|
|
324
|
+
g.value = !1;
|
|
325
|
+
}
|
|
326
|
+
}, Fl = async (e) => {
|
|
327
|
+
U.value = await V.load(e);
|
|
328
|
+
const l = U.value.getPageCount();
|
|
329
|
+
H.value = Array.from({ length: l }, (o, t) => ({
|
|
330
|
+
pageIndex: t,
|
|
331
|
+
pageNumber: t + 1
|
|
332
|
+
}));
|
|
333
|
+
}, ce = async (e, { updatePages: l = !0 } = {}) => {
|
|
334
|
+
const o = await e.save();
|
|
335
|
+
y.value = o, oe.value = !0;
|
|
336
|
+
const t = new Blob([o], { type: "application/pdf" });
|
|
337
|
+
be.value && be.value.startsWith("blob:") && URL.revokeObjectURL(be.value), be.value = URL.createObjectURL(t), l && await Fl(o);
|
|
338
|
+
}, $t = async () => {
|
|
339
|
+
if (y.value) {
|
|
340
|
+
g.value = !0;
|
|
341
|
+
try {
|
|
342
|
+
const e = await V.create(), l = H.value.map((s) => s.pageIndex), o = await V.load(y.value);
|
|
343
|
+
(await e.copyPages(o, l)).forEach((s) => e.addPage(s)), await ce(e);
|
|
344
|
+
} catch (e) {
|
|
345
|
+
console.error("Error reordering pages:", e), F.value = d("pdfTools.reorderError");
|
|
346
|
+
} finally {
|
|
347
|
+
g.value = !1;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}, St = async (e) => {
|
|
351
|
+
if (y.value) {
|
|
352
|
+
g.value = !0;
|
|
353
|
+
try {
|
|
354
|
+
const l = await V.load(y.value), o = l.getPage(e.pageIndex), t = o.getRotation().angle;
|
|
355
|
+
o.setRotation({
|
|
356
|
+
type: Io.Degrees,
|
|
357
|
+
angle: (t + 90) % 360
|
|
358
|
+
}), await ce(l, { updatePages: !1 });
|
|
359
|
+
} catch (l) {
|
|
360
|
+
console.error("Error rotating page:", l), F.value = d("pdfTools.rotateError");
|
|
361
|
+
} finally {
|
|
362
|
+
g.value = !1;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}, At = async () => {
|
|
366
|
+
if (T.value.length === 0 || !y.value)
|
|
367
|
+
return null;
|
|
368
|
+
const e = await V.create(), l = await V.load(y.value), o = T.value.map((s) => s.pageIndex).sort((s, a) => s - a);
|
|
369
|
+
return (await e.copyPages(l, o)).forEach((s) => e.addPage(s)), await e.save();
|
|
370
|
+
}, _t = async () => {
|
|
371
|
+
if (!(!y.value || T.value.length === 0)) {
|
|
372
|
+
if (T.value.length === H.value.length) {
|
|
373
|
+
k.toast.add({
|
|
374
|
+
severity: "warn",
|
|
375
|
+
summary: d("pdfTools.common.warning"),
|
|
376
|
+
detail: d("pdfTools.deleteAllPagesWarning"),
|
|
377
|
+
life: 3e3
|
|
378
|
+
});
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
g.value = !0;
|
|
382
|
+
try {
|
|
383
|
+
const e = await V.load(y.value), l = e.getPageCount(), o = new Set(T.value.map((u) => u.pageIndex)), t = [];
|
|
384
|
+
for (let u = 0; u < l; u++)
|
|
385
|
+
o.has(u) || t.push(u);
|
|
386
|
+
const s = await V.create();
|
|
387
|
+
(await s.copyPages(e, t)).forEach((u) => s.addPage(u)), await ce(s), T.value = [], k.toast.add({
|
|
388
|
+
severity: "success",
|
|
389
|
+
summary: d("pdfTools.common.deleted"),
|
|
390
|
+
detail: d("pdfTools.pagesDeletedSuccess"),
|
|
391
|
+
life: 3e3
|
|
392
|
+
});
|
|
393
|
+
} catch (e) {
|
|
394
|
+
console.error("Error deleting pages:", e), F.value = d("pdfTools.deletePagesError");
|
|
395
|
+
} finally {
|
|
396
|
+
g.value = !1;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}, Mt = async () => {
|
|
400
|
+
re.value = "", B.value = null, ie.value = "", Ae.value = !0;
|
|
401
|
+
}, Ft = (e) => {
|
|
402
|
+
e === 2 && Me.value.length === 0 && !Xe.value && Dt();
|
|
403
|
+
}, Rt = async () => {
|
|
404
|
+
let e = null;
|
|
405
|
+
if (B.value?.id ? e = B.value.id : re.value && (e = yt(re.value)), !e) {
|
|
406
|
+
k.toast.add({
|
|
407
|
+
severity: "warn",
|
|
408
|
+
summary: d("pdfTools.common.warning"),
|
|
409
|
+
detail: d("pdfTools.insertFromAlfresco.invalidInput"),
|
|
410
|
+
life: 3e3
|
|
411
|
+
});
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
await Ll(e), Ae.value = !1;
|
|
415
|
+
}, il = async (e) => {
|
|
416
|
+
if (e?.content?.mimeType === "application/pdf" && (B.value = e, ie.value = "", e?.id)) {
|
|
417
|
+
Ye.value = !0, X.value = 1, j.value = 0;
|
|
418
|
+
try {
|
|
419
|
+
const l = xl.getContentUrl(e.id);
|
|
420
|
+
he.value && he.value.startsWith("blob:") && URL.revokeObjectURL(he.value), he.value = l;
|
|
421
|
+
} catch (l) {
|
|
422
|
+
console.error("Error loading PDF preview:", l), he.value = null;
|
|
423
|
+
} finally {
|
|
424
|
+
Ye.value = !1;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}, Rl = () => {
|
|
428
|
+
X.value < j.value && X.value++;
|
|
429
|
+
}, Nl = () => {
|
|
430
|
+
X.value > 1 && X.value--;
|
|
431
|
+
}, Nt = (e) => {
|
|
432
|
+
ie.value = "", e.isFolder ? (B.value = null, ie.value = d(
|
|
433
|
+
"pdfTools.insertFromAlfresco.folderSelectError"
|
|
434
|
+
)) : e.content?.mimeType !== "application/pdf" ? (B.value = null, ie.value = d(
|
|
435
|
+
"pdfTools.insertFromAlfresco.fileTypeNotAllowedError"
|
|
436
|
+
)) : il(e);
|
|
437
|
+
}, Dl = async () => {
|
|
438
|
+
if (Al.value = !0, !_e.value || _e.value.trim().length < 2) {
|
|
439
|
+
ye.value = [];
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
rl.value = !0;
|
|
443
|
+
try {
|
|
444
|
+
const e = So();
|
|
445
|
+
await e.queryStore(_e.value);
|
|
446
|
+
const l = e.entries.map((o) => o.entry || o);
|
|
447
|
+
ye.value = l.filter(
|
|
448
|
+
(o) => o.isFile && o.content?.mimeType === "application/pdf"
|
|
449
|
+
);
|
|
450
|
+
} catch (e) {
|
|
451
|
+
console.error("performSearch", e), ye.value = [];
|
|
452
|
+
} finally {
|
|
453
|
+
rl.value = !1;
|
|
454
|
+
}
|
|
455
|
+
}, Dt = async () => {
|
|
456
|
+
Xe.value = !0;
|
|
457
|
+
try {
|
|
458
|
+
const e = _o();
|
|
459
|
+
await e.loadFavorites(), Me.value = e.fileFavorites.filter(
|
|
460
|
+
(l) => l?.target?.file?.content?.mimeType === "application/pdf"
|
|
461
|
+
).map((l) => l.target.file);
|
|
462
|
+
} catch (e) {
|
|
463
|
+
console.error("loadFavorites error:", e), Me.value = [];
|
|
464
|
+
} finally {
|
|
465
|
+
Xe.value = !1;
|
|
466
|
+
}
|
|
467
|
+
}, Ll = async (e) => {
|
|
468
|
+
if (y.value) {
|
|
469
|
+
g.value = !0;
|
|
470
|
+
try {
|
|
471
|
+
if ((await ke.getNode(e)).content?.mimeType !== "application/pdf")
|
|
472
|
+
throw new Error(d("pdfTools.invalidNodeForInsert"));
|
|
473
|
+
const t = await (await ke.getNodeContent(e)).arrayBuffer(), s = new Uint8Array(t), a = await V.load(y.value), u = await V.load(s), E = u.getPageCount(), P = Array.from({ length: E }, (R, Te) => Te);
|
|
474
|
+
(await a.copyPages(u, P)).forEach((R) => a.addPage(R)), await ce(a), T.value = [], k.toast.add({
|
|
475
|
+
severity: "success",
|
|
476
|
+
summary: d("pdfTools.common.success"),
|
|
477
|
+
detail: d("pdfTools.insertFromPristySuccess", { count: E }),
|
|
478
|
+
life: 3e3
|
|
479
|
+
});
|
|
480
|
+
} catch (l) {
|
|
481
|
+
console.error("Error inserting from Alfresco:", l), F.value = l?.message || d("pdfTools.insertFromPristyError"), k.toast.add({
|
|
482
|
+
severity: "error",
|
|
483
|
+
summary: d("pdfTools.common.error"),
|
|
484
|
+
detail: F.value,
|
|
485
|
+
life: 4e3
|
|
486
|
+
});
|
|
487
|
+
} finally {
|
|
488
|
+
g.value = !1;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}, Lt = async () => {
|
|
492
|
+
for (const e of k.insertIds)
|
|
493
|
+
await Ll(e);
|
|
494
|
+
}, Ut = async (e) => {
|
|
495
|
+
const l = e.files?.[0];
|
|
496
|
+
l && await Ht(l);
|
|
497
|
+
}, Ht = async (e) => {
|
|
498
|
+
if (y.value) {
|
|
499
|
+
g.value = !0;
|
|
500
|
+
try {
|
|
501
|
+
const l = await V.load(y.value), o = new Uint8Array(await e.arrayBuffer()), t = await V.load(o), s = t.getPageCount(), a = Array.from({ length: s }, (E, P) => P);
|
|
502
|
+
(await l.copyPages(t, a)).forEach((E) => l.addPage(E)), await ce(l), T.value = [], k.toast.add({
|
|
503
|
+
severity: "success",
|
|
504
|
+
summary: d("pdfTools.common.success"),
|
|
505
|
+
detail: d("pdfTools.insertFromFileSuccess", { count: s }),
|
|
506
|
+
life: 3e3
|
|
507
|
+
});
|
|
508
|
+
} catch (l) {
|
|
509
|
+
console.error("Error inserting PDF:", l), F.value = d("pdfTools.insertError");
|
|
510
|
+
} finally {
|
|
511
|
+
g.value = !1;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}, Bt = async () => {
|
|
515
|
+
if (!(!$e.value || T.value.length === 0 || !y.value)) {
|
|
516
|
+
g.value = !0;
|
|
517
|
+
try {
|
|
518
|
+
const e = await V.load(y.value), l = T.value.map((o) => o.pageIndex);
|
|
519
|
+
for (const o of l) {
|
|
520
|
+
const t = e.getPage(o), { width: s, height: a } = t.getSize();
|
|
521
|
+
for (let u = 0; u < Se.value; u++)
|
|
522
|
+
t.drawText($e.value, {
|
|
523
|
+
x: s / (Se.value + 1) * (u + 1) - 150,
|
|
524
|
+
y: a / (Se.value + 1) * (u + 1),
|
|
525
|
+
size: 50,
|
|
526
|
+
color: El(0.95, 0.1, 0.1),
|
|
527
|
+
opacity: 0.5,
|
|
528
|
+
rotate: Co(nl.value)
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
await ce(e, { updatePages: !1 });
|
|
532
|
+
} catch (e) {
|
|
533
|
+
console.error("Error adding watermark:", e), F.value = d("pdfTools.watermarkError");
|
|
534
|
+
} finally {
|
|
535
|
+
g.value = !1;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}, Vt = async () => {
|
|
539
|
+
if (y.value) {
|
|
540
|
+
g.value = !0;
|
|
541
|
+
try {
|
|
542
|
+
const e = new Blob([y.value], {
|
|
543
|
+
type: "application/pdf"
|
|
544
|
+
}), l = new File([e], "modified.pdf", { type: "application/pdf" }), o = {
|
|
545
|
+
majorVersion: !0,
|
|
546
|
+
comment: "File modified via Pristy Espaces PDF tools"
|
|
547
|
+
};
|
|
548
|
+
await ke.updateContentNode(k.id, l, o), oe.value = !1, k.toast.add({
|
|
549
|
+
severity: "success",
|
|
550
|
+
summary: d("pdfTools.common.success"),
|
|
551
|
+
detail: d("pdfTools.saveSuccess"),
|
|
552
|
+
life: 3e3
|
|
553
|
+
});
|
|
554
|
+
} catch (e) {
|
|
555
|
+
console.error("Error saving changes:", e), k.toast.add({
|
|
556
|
+
severity: "error",
|
|
557
|
+
summary: d("pdfTools.common.error"),
|
|
558
|
+
detail: d("pdfTools.saveError"),
|
|
559
|
+
life: 3e3
|
|
560
|
+
});
|
|
561
|
+
} finally {
|
|
562
|
+
g.value = !1;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}, Ul = async (e) => {
|
|
566
|
+
if ($l.value = e, Sl.value = d("pdfTools.saveAs.defaultFilename"), We.value && We.value.parentId)
|
|
567
|
+
try {
|
|
568
|
+
Ge.value = await ke.getNode(
|
|
569
|
+
We.value.parentId
|
|
570
|
+
);
|
|
571
|
+
} catch (l) {
|
|
572
|
+
console.error("Could not fetch parent node for Save As dialog", l), Ge.value = null;
|
|
573
|
+
}
|
|
574
|
+
else
|
|
575
|
+
Ge.value = null;
|
|
576
|
+
Oe.value = !0;
|
|
577
|
+
}, Ot = async ({ filename: e, folderId: l }) => {
|
|
578
|
+
Oe.value = !1, g.value = !0;
|
|
579
|
+
try {
|
|
580
|
+
let o;
|
|
581
|
+
if ($l.value === "extract" ? o = await At() : o = y.value, !o)
|
|
582
|
+
throw new Error(d("pdfTools.noContentToSave"));
|
|
583
|
+
const t = new Blob([o], { type: "application/pdf" }), s = new File([t], e, { type: "application/pdf" });
|
|
584
|
+
if (!l)
|
|
585
|
+
throw new Error("No destination folder selected.");
|
|
586
|
+
await xl.uploadFile(l, {}, s), k.toast.add({
|
|
587
|
+
severity: "success",
|
|
588
|
+
summary: d("pdfTools.common.success"),
|
|
589
|
+
detail: d("pdfTools.fileCreatedSuccess", { filename: e }),
|
|
590
|
+
life: 3e3
|
|
591
|
+
});
|
|
592
|
+
} catch (o) {
|
|
593
|
+
console.error('Error during "Save As":', o);
|
|
594
|
+
const t = o.status === 409 ? d("pdfTools.saveAs.conflictError") : d("pdfTools.saveAsError");
|
|
595
|
+
k.toast.add({
|
|
596
|
+
severity: "error",
|
|
597
|
+
summary: d("pdfTools.common.error"),
|
|
598
|
+
detail: t,
|
|
599
|
+
life: 4e3
|
|
600
|
+
});
|
|
601
|
+
} finally {
|
|
602
|
+
g.value = !1;
|
|
603
|
+
}
|
|
604
|
+
}, Hl = async () => {
|
|
605
|
+
const e = Y.value;
|
|
606
|
+
if (f.value = f.value.filter(
|
|
607
|
+
(l) => l.type !== c.COMMENT
|
|
608
|
+
), !y.value || !e) {
|
|
609
|
+
S();
|
|
610
|
+
return;
|
|
611
|
+
}
|
|
612
|
+
try {
|
|
613
|
+
const l = await V.load(y.value), o = Wl(), t = Kt.value;
|
|
614
|
+
for (const s of Oo(l.getPage(e.pageIndex)))
|
|
615
|
+
f.value.push({
|
|
616
|
+
type: c.COMMENT,
|
|
617
|
+
rect: {
|
|
618
|
+
x: s.x * o,
|
|
619
|
+
// PDF coordinates start from the bottom, the overlay from the top
|
|
620
|
+
y: (t - (s.y + s.size)) * o,
|
|
621
|
+
w: s.size * o,
|
|
622
|
+
h: s.size * o
|
|
623
|
+
},
|
|
624
|
+
payload: {
|
|
625
|
+
text: s.text,
|
|
626
|
+
author: s.author,
|
|
627
|
+
creationDate: s.creationDate,
|
|
628
|
+
modificationDate: s.modificationDate,
|
|
629
|
+
sourceRef: s.ref ? String(s.ref) : null,
|
|
630
|
+
inReplyTo: s.inReplyTo ? String(s.inReplyTo) : null
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
} catch (l) {
|
|
634
|
+
console.error("Error reading existing comments:", l);
|
|
635
|
+
}
|
|
636
|
+
S();
|
|
637
|
+
}, Bl = (e) => {
|
|
638
|
+
Y.value = e || h.value, q.value = !0, ee.value = 1, f.value = [], z.value = -1, setTimeout(() => {
|
|
639
|
+
de(), Hl();
|
|
640
|
+
}, 200);
|
|
641
|
+
}, Vl = () => {
|
|
642
|
+
q.value = !1, Y.value = null;
|
|
643
|
+
}, zt = () => {
|
|
644
|
+
ee.value = Math.min(4, ee.value + 0.1);
|
|
645
|
+
}, Wt = () => {
|
|
646
|
+
ee.value = Math.max(0.2, ee.value - 0.1);
|
|
647
|
+
}, Re = (e) => {
|
|
648
|
+
e === c.REDACT ? window.confirm(d("pdfTools.redactWarning")) && (x.value = e) : x.value = e;
|
|
649
|
+
}, Gt = (e) => {
|
|
650
|
+
Ce.value = e.files?.[0] || null, Ce.value && (Ie.value = null, x.value = c.IMAGE);
|
|
651
|
+
}, Xt = () => {
|
|
652
|
+
pe.value = !0;
|
|
653
|
+
}, Yt = () => {
|
|
654
|
+
f.value.pop(), z.value = -1, S();
|
|
655
|
+
}, Ol = async (e) => {
|
|
656
|
+
if (!(!e || e.type !== c.IMAGE || e._loading || e._bitmap)) {
|
|
657
|
+
e._loading = !0;
|
|
658
|
+
try {
|
|
659
|
+
let l = null;
|
|
660
|
+
e.payload?.file ? l = e.payload.file : e.payload?.signature && (l = new Blob([new Uint8Array(e.payload.signature)], {
|
|
661
|
+
type: "image/png"
|
|
662
|
+
})), l && (e._bitmap = await createImageBitmap(l), S());
|
|
663
|
+
} catch (l) {
|
|
664
|
+
console.warn(d("pdfTools.imagePreviewUnavailable"), l);
|
|
665
|
+
} finally {
|
|
666
|
+
e._loading = !1;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}, zl = () => {
|
|
670
|
+
const e = Cl.value;
|
|
671
|
+
if (!e)
|
|
672
|
+
return null;
|
|
673
|
+
const l = Array.from(e.querySelectorAll("canvas"));
|
|
674
|
+
if (l.length === 0)
|
|
675
|
+
return null;
|
|
676
|
+
const o = l.filter(
|
|
677
|
+
(u) => u.offsetParent !== null && u.width > 0 && u.height > 0
|
|
678
|
+
), t = o.length ? o : l;
|
|
679
|
+
let s = t[0], a = 0;
|
|
680
|
+
for (const u of t) {
|
|
681
|
+
const E = u.getBoundingClientRect(), P = Math.max(0, E.width) * Math.max(0, E.height);
|
|
682
|
+
P > a && (s = u, a = P);
|
|
683
|
+
}
|
|
684
|
+
return s;
|
|
685
|
+
}, de = () => {
|
|
686
|
+
const e = zl();
|
|
687
|
+
if (!e || !D.value)
|
|
688
|
+
return;
|
|
689
|
+
const l = e.getBoundingClientRect(), o = window.devicePixelRatio || 1;
|
|
690
|
+
D.value.style.width = l.width + "px", D.value.style.height = l.height + "px", D.value.width = Math.round(l.width * o), D.value.height = Math.round(l.height * o), S();
|
|
691
|
+
}, we = (e) => {
|
|
692
|
+
const l = D.value;
|
|
693
|
+
if (!l)
|
|
694
|
+
return { x: 0, y: 0 };
|
|
695
|
+
const o = l.getBoundingClientRect(), t = window.devicePixelRatio || 1;
|
|
696
|
+
return {
|
|
697
|
+
x: (e.clientX - o.left) * t,
|
|
698
|
+
y: (e.clientY - o.top) * t
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
let Ne = null, Z = null, De = null, ue = null;
|
|
702
|
+
const jt = Pe(() => {
|
|
703
|
+
const e = Y.value || h.value;
|
|
704
|
+
if (!U.value || !e)
|
|
705
|
+
return 0;
|
|
706
|
+
try {
|
|
707
|
+
return U.value.getPage(e.pageIndex).getSize().width;
|
|
708
|
+
} catch {
|
|
709
|
+
return 0;
|
|
710
|
+
}
|
|
711
|
+
}), Kt = Pe(() => {
|
|
712
|
+
const e = Y.value || h.value;
|
|
713
|
+
if (!U.value || !e)
|
|
714
|
+
return 0;
|
|
715
|
+
try {
|
|
716
|
+
return U.value.getPage(e.pageIndex).getSize().height;
|
|
717
|
+
} catch {
|
|
718
|
+
return 0;
|
|
719
|
+
}
|
|
720
|
+
}), Wl = () => oa({
|
|
721
|
+
overlayWidth: D.value?.width || 0,
|
|
722
|
+
pageWidthPt: jt.value
|
|
723
|
+
}), cl = (e) => Math.max(1, (Number(e?.size) || 18) * Wl()), Gl = (e, l) => {
|
|
724
|
+
const o = D.value.getContext("2d"), t = cl(l);
|
|
725
|
+
o.save(), o.font = `${t}px ${l.font || "Helvetica"}`;
|
|
726
|
+
const s = aa({
|
|
727
|
+
lines: kl(e),
|
|
728
|
+
fontSize: t,
|
|
729
|
+
measureLine: (a) => o.measureText(a).width
|
|
730
|
+
});
|
|
731
|
+
return o.restore(), s;
|
|
732
|
+
}, qt = Pe(() => {
|
|
733
|
+
const e = window.devicePixelRatio || 1;
|
|
734
|
+
if (C.value.tool === c.COMMENT)
|
|
735
|
+
return {
|
|
736
|
+
left: `${C.value.x / e}px`,
|
|
737
|
+
top: `${C.value.y / e}px`
|
|
738
|
+
};
|
|
739
|
+
const l = C.value.index >= 0 ? f.value[C.value.index]?.payload : { size: se.value, font: ne.value, color: J.value }, o = cl(l) / e;
|
|
740
|
+
return {
|
|
741
|
+
left: `${C.value.x / e}px`,
|
|
742
|
+
top: `${C.value.y / e}px`,
|
|
743
|
+
font: `${o}px ${l?.font || "Helvetica"}`,
|
|
744
|
+
lineHeight: al,
|
|
745
|
+
color: l?.color || "#000000"
|
|
746
|
+
};
|
|
747
|
+
}), z = v(-1);
|
|
748
|
+
let dl = !1;
|
|
749
|
+
const Jt = Pe(
|
|
750
|
+
() => x.value === c.TEXT || f.value[z.value]?.type === c.TEXT
|
|
751
|
+
), Zt = (e) => {
|
|
752
|
+
z.value = e;
|
|
753
|
+
const l = f.value[e];
|
|
754
|
+
l?.type === c.TEXT && (dl = !0, ne.value = l.payload?.font || "Helvetica", se.value = Number(l.payload?.size) || 18, J.value = l.payload?.color || "#000000", ut(() => {
|
|
755
|
+
dl = !1;
|
|
756
|
+
})), S();
|
|
757
|
+
};
|
|
758
|
+
xe([ne, se, J], () => {
|
|
759
|
+
if (dl)
|
|
760
|
+
return;
|
|
761
|
+
const e = z.value, l = f.value[e];
|
|
762
|
+
if (!l || l.type !== c.TEXT)
|
|
763
|
+
return;
|
|
764
|
+
const o = {
|
|
765
|
+
...l.payload,
|
|
766
|
+
font: ne.value,
|
|
767
|
+
size: se.value,
|
|
768
|
+
color: J.value
|
|
769
|
+
};
|
|
770
|
+
f.value[e] = {
|
|
771
|
+
...l,
|
|
772
|
+
payload: o,
|
|
773
|
+
rect: {
|
|
774
|
+
x: l.rect.x,
|
|
775
|
+
y: l.rect.y,
|
|
776
|
+
...Gl(o.text, o)
|
|
777
|
+
}
|
|
778
|
+
}, S();
|
|
779
|
+
});
|
|
780
|
+
const Xl = () => {
|
|
781
|
+
const e = z.value;
|
|
782
|
+
e < 0 || !f.value[e] || (f.value.splice(e, 1), z.value = -1, S());
|
|
783
|
+
}, ul = (e) => {
|
|
784
|
+
if (e.key === "Escape") {
|
|
785
|
+
C.value.visible && Qt(), z.value = -1, x.value = c.SELECT, S();
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
const l = C.value.visible || ["INPUT", "TEXTAREA", "SELECT"].includes(e.target?.tagName);
|
|
789
|
+
e.key === "Delete" && !l && Xl();
|
|
790
|
+
};
|
|
791
|
+
xe(q, (e) => {
|
|
792
|
+
e ? document.addEventListener("keydown", ul) : document.removeEventListener("keydown", ul);
|
|
793
|
+
}), xo(() => document.removeEventListener("keydown", ul));
|
|
794
|
+
const Yl = Pe(
|
|
795
|
+
() => C.value.tool === c.COMMENT ? {
|
|
796
|
+
label: d("pdfTools.pageEditor.tools.comment"),
|
|
797
|
+
placeholder: d("pdfTools.pageEditor.commentPlaceholder")
|
|
798
|
+
} : {
|
|
799
|
+
label: d("pdfTools.pageEditor.textInputLabel"),
|
|
800
|
+
placeholder: d("pdfTools.pageEditor.textInputPlaceholder")
|
|
801
|
+
}
|
|
802
|
+
), jl = (e, l, o = -1) => {
|
|
803
|
+
const t = o >= 0 ? f.value[o] : null;
|
|
804
|
+
C.value = {
|
|
805
|
+
visible: !0,
|
|
806
|
+
tool: l,
|
|
807
|
+
x: t ? t.rect.x : e.x,
|
|
808
|
+
y: t ? t.rect.y : e.y,
|
|
809
|
+
value: t ? String(t.payload?.text || "") : "",
|
|
810
|
+
index: o
|
|
811
|
+
}, S(), ut(() => Il.value?.focus());
|
|
812
|
+
}, Qt = () => {
|
|
813
|
+
C.value = { ...C.value, visible: !1, index: -1 }, S();
|
|
814
|
+
}, vl = () => {
|
|
815
|
+
if (!C.value.visible)
|
|
816
|
+
return;
|
|
817
|
+
const { value: e, index: l, x: o, y: t, tool: s } = C.value;
|
|
818
|
+
if (C.value = { ...C.value, visible: !1, index: -1 }, !e.trim()) {
|
|
819
|
+
l >= 0 && f.value.splice(l, 1), S();
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
if (s === c.COMMENT) {
|
|
823
|
+
const E = {
|
|
824
|
+
type: c.COMMENT,
|
|
825
|
+
rect: { x: o, y: t, w: ht, h: ht },
|
|
826
|
+
payload: { text: e }
|
|
827
|
+
};
|
|
828
|
+
l >= 0 ? f.value[l] = {
|
|
829
|
+
...f.value[l],
|
|
830
|
+
payload: { ...f.value[l].payload, text: e, edited: !0 }
|
|
831
|
+
} : f.value.push(E), z.value = l >= 0 ? l : f.value.length - 1, S();
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
const a = l >= 0 ? { ...f.value[l].payload, text: e } : {
|
|
835
|
+
text: e,
|
|
836
|
+
font: ne.value,
|
|
837
|
+
size: se.value,
|
|
838
|
+
color: J.value
|
|
839
|
+
}, u = { x: o, y: t, ...Gl(e, a) };
|
|
840
|
+
l >= 0 ? f.value[l] = {
|
|
841
|
+
...f.value[l],
|
|
842
|
+
rect: u,
|
|
843
|
+
payload: a
|
|
844
|
+
} : f.value.push({ type: c.TEXT, rect: u, payload: a }), z.value = l >= 0 ? l : f.value.length - 1, S();
|
|
845
|
+
}, eo = (e) => {
|
|
846
|
+
const l = we(e), o = Kl(l), t = o !== -1 ? f.value[o].type : null;
|
|
847
|
+
(t === c.TEXT || t === c.COMMENT) && jl(l, t, o);
|
|
848
|
+
}, Kl = (e) => {
|
|
849
|
+
for (let l = f.value.length - 1; l >= 0; l--) {
|
|
850
|
+
const o = f.value[l].rect;
|
|
851
|
+
if (e.x >= o.x && e.x <= o.x + o.w && e.y >= o.y && e.y <= o.y + o.h)
|
|
852
|
+
return l;
|
|
853
|
+
}
|
|
854
|
+
return -1;
|
|
855
|
+
}, lo = (e) => {
|
|
856
|
+
const t = 6 * (window.devicePixelRatio || 1) / 2;
|
|
857
|
+
for (let s = f.value.length - 1; s >= 0; s--) {
|
|
858
|
+
const a = f.value[s];
|
|
859
|
+
if (a.type !== c.IMAGE)
|
|
860
|
+
continue;
|
|
861
|
+
const u = a.rect, E = [
|
|
862
|
+
{ key: "tl", x: u.x, y: u.y },
|
|
863
|
+
{ key: "tr", x: u.x + u.w, y: u.y },
|
|
864
|
+
{ key: "bl", x: u.x, y: u.y + u.h },
|
|
865
|
+
{ key: "br", x: u.x + u.w, y: u.y + u.h }
|
|
866
|
+
];
|
|
867
|
+
for (const P of E)
|
|
868
|
+
if (e.x >= P.x - t && e.x <= P.x + t && e.y >= P.y - t && e.y <= P.y + t)
|
|
869
|
+
return { idx: s, corner: P.key };
|
|
870
|
+
}
|
|
871
|
+
return null;
|
|
872
|
+
}, to = (e) => {
|
|
873
|
+
if (C.value.visible && vl(), x.value === c.REDACT || x.value === c.HIGHLIGHT)
|
|
874
|
+
ge = !0, ae = we(e);
|
|
875
|
+
else if (x.value === c.IMAGE || x.value === c.SELECT || x.value === c.TEXT || x.value === c.COMMENT) {
|
|
876
|
+
const l = we(e), o = lo(l);
|
|
877
|
+
if (o) {
|
|
878
|
+
De = o.idx, ue = o.corner, Z = { p: l, rect: { ...f.value[o.idx].rect } }, D.value && (D.value.style.cursor = "nwse-resize");
|
|
879
|
+
return;
|
|
880
|
+
}
|
|
881
|
+
const t = Kl(l);
|
|
882
|
+
if (t !== -1 && (f.value[t].type === c.IMAGE || f.value[t].type === c.TEXT || f.value[t].type === c.COMMENT)) {
|
|
883
|
+
Zt(t), Ne = t, Z = { p: l, rect: { ...f.value[t].rect } }, D.value && (D.value.style.cursor = "move");
|
|
884
|
+
return;
|
|
885
|
+
}
|
|
886
|
+
if (z.value = -1, x.value === c.TEXT || x.value === c.COMMENT) {
|
|
887
|
+
e.preventDefault(), jl(l, x.value);
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
if (x.value === c.IMAGE) {
|
|
891
|
+
if (!Ce.value && !Ie.value)
|
|
892
|
+
return;
|
|
893
|
+
const s = {
|
|
894
|
+
type: c.IMAGE,
|
|
895
|
+
rect: { x: l.x, y: l.y, w: 150, h: 100 },
|
|
896
|
+
payload: {
|
|
897
|
+
file: Ce.value,
|
|
898
|
+
signature: Ie.value
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
f.value.push(s), Ol(s), S(), x.value = c.SELECT, Ce.value = null, Ie.value = null;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}, oo = (e) => {
|
|
905
|
+
if (De !== null && ue) {
|
|
906
|
+
const o = we(e), t = f.value[De];
|
|
907
|
+
if (t) {
|
|
908
|
+
const s = Z.rect;
|
|
909
|
+
let a = s.x, u = s.y, E = s.w, P = s.h;
|
|
910
|
+
const W = o.x - Z.p.x, R = o.y - Z.p.y;
|
|
911
|
+
ue === "br" ? (E = Math.max(10, s.w + W), P = Math.max(10, s.h + R)) : ue === "tr" ? (E = Math.max(10, s.w + W), P = Math.max(10, s.h - R), u = s.y + R) : ue === "bl" ? (E = Math.max(10, s.w - W), a = s.x + W, P = Math.max(10, s.h + R)) : ue === "tl" && (E = Math.max(10, s.w - W), a = s.x + W, P = Math.max(10, s.h - R), u = s.y + R), t.rect.x = a, t.rect.y = u, t.rect.w = E, t.rect.h = P, S();
|
|
912
|
+
}
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
if (Ne !== null) {
|
|
916
|
+
const o = we(e), t = f.value[Ne];
|
|
917
|
+
if (t) {
|
|
918
|
+
const s = o.x - Z.p.x, a = o.y - Z.p.y;
|
|
919
|
+
t.rect.x = Z.rect.x + s, t.rect.y = Z.rect.y + a, S();
|
|
920
|
+
}
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
if (!ge || !ae)
|
|
924
|
+
return;
|
|
925
|
+
const l = we(e);
|
|
926
|
+
ve.value = {
|
|
927
|
+
x: Math.min(ae.x, l.x),
|
|
928
|
+
y: Math.min(ae.y, l.y),
|
|
929
|
+
w: Math.abs(l.x - ae.x),
|
|
930
|
+
h: Math.abs(l.y - ae.y)
|
|
931
|
+
}, S();
|
|
932
|
+
}, ao = () => {
|
|
933
|
+
if (Ne !== null || De !== null) {
|
|
934
|
+
Ne = null, De = null, ue = null, Z = null, D.value && (D.value.style.cursor = "crosshair"), S();
|
|
935
|
+
return;
|
|
936
|
+
}
|
|
937
|
+
ge && ve.value && f.value.push({
|
|
938
|
+
type: x.value,
|
|
939
|
+
rect: { ...ve.value }
|
|
940
|
+
}), ge = !1, ae = null, ve.value = null, S();
|
|
941
|
+
}, so = () => {
|
|
942
|
+
ge && (ge = !1, ae = null, ve.value = null, S());
|
|
943
|
+
}, ve = v(null), S = () => {
|
|
944
|
+
const e = z.value, l = D.value;
|
|
945
|
+
if (!l)
|
|
946
|
+
return;
|
|
947
|
+
const o = l.getContext("2d"), t = window.devicePixelRatio || 1;
|
|
948
|
+
o.clearRect(0, 0, l.width, l.height);
|
|
949
|
+
const s = (a, u) => {
|
|
950
|
+
if (!(C.value.visible && u === C.value.index)) {
|
|
951
|
+
if (a.type === c.REDACT)
|
|
952
|
+
o.fillStyle = "rgba(0,0,0,1)", o.fillRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h), o.strokeStyle = "rgba(0,0,0,1)", o.strokeRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h);
|
|
953
|
+
else if (a.type === c.HIGHLIGHT)
|
|
954
|
+
o.fillStyle = "rgba(255, 235, 59, 0.4)", o.fillRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h), o.strokeStyle = "rgba(255, 193, 7, 0.8)", o.strokeRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h);
|
|
955
|
+
else if (a.type === c.COMMENT)
|
|
956
|
+
ro(o, a.rect.x, a.rect.y, 20 * t), u === e && (o.save(), o.strokeStyle = "#0ea5e9", o.lineWidth = 2 * t, o.setLineDash([4 * t, 4 * t]), o.strokeRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h), o.restore());
|
|
957
|
+
else if (a.type === c.IMAGE) {
|
|
958
|
+
if (Ol(a), a._bitmap && o.drawImage(
|
|
959
|
+
a._bitmap,
|
|
960
|
+
a.rect.x,
|
|
961
|
+
a.rect.y,
|
|
962
|
+
a.rect.w,
|
|
963
|
+
a.rect.h
|
|
964
|
+
), o.strokeStyle = u === e ? "#0ea5e9" : "rgba(33,150,243,0.9)", o.lineWidth = u === e ? 2 * t : 1 * t, o.strokeRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h), u === e) {
|
|
965
|
+
o.fillStyle = "#0ea5e9";
|
|
966
|
+
const E = 6 * t, P = E / 2;
|
|
967
|
+
[
|
|
968
|
+
[a.rect.x, a.rect.y],
|
|
969
|
+
[a.rect.x + a.rect.w, a.rect.y],
|
|
970
|
+
[a.rect.x, a.rect.y + a.rect.h],
|
|
971
|
+
[a.rect.x + a.rect.w, a.rect.y + a.rect.h]
|
|
972
|
+
].forEach(([R, Te]) => {
|
|
973
|
+
o.fillRect(R - P, Te - P, E, E);
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
} else if (a.type === c.TEXT) {
|
|
977
|
+
const E = a.payload || {}, P = cl(E);
|
|
978
|
+
o.save(), o.fillStyle = E.color || "#000", o.font = `${P}px ${E.font || "Helvetica"}`, o.textBaseline = "top";
|
|
979
|
+
let W = a.rect.y;
|
|
980
|
+
for (const R of kl(E.text))
|
|
981
|
+
o.fillText(R, a.rect.x, W), W += P * al;
|
|
982
|
+
o.restore(), o.save(), o.strokeStyle = u === e ? "#0ea5e9" : "rgba(33,150,243,0.5)", o.lineWidth = u === e ? 2 * t : 1 * t, o.setLineDash([4 * t, 4 * t]), o.strokeRect(a.rect.x, a.rect.y, a.rect.w, a.rect.h), o.restore();
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
if (f.value.forEach(s), ve.value) {
|
|
987
|
+
const a = ve.value;
|
|
988
|
+
o.setLineDash([6 * t, 4 * t]), o.strokeStyle = x.value === c.REDACT ? "black" : "goldenrod", o.strokeRect(a.x, a.y, a.w, a.h), o.setLineDash([]);
|
|
989
|
+
}
|
|
990
|
+
}, no = (e) => {
|
|
991
|
+
let l = e.toString().trim();
|
|
992
|
+
l.startsWith("#") && (l = l.slice(1)), l.length === 3 && (l = l.split("").map((u) => u + u).join(""));
|
|
993
|
+
const o = parseInt(l || "000000", 16), t = (o >> 16 & 255) / 255, s = (o >> 8 & 255) / 255, a = (o & 255) / 255;
|
|
994
|
+
return { r: t, g: s, b: a };
|
|
995
|
+
}, ro = (e, l, o, t) => {
|
|
996
|
+
e.save(), e.translate(l, o), e.fillStyle = "#FFEB3B", e.strokeStyle = "#FBC02D", e.lineWidth = 2, e.beginPath(), e.rect(0, 0, t, t), e.fill(), e.stroke(), e.beginPath(), e.moveTo(t * 0.6, 0), e.lineTo(t, t * 0.4), e.lineTo(t * 0.6, t * 0.4), e.closePath(), e.fillStyle = "#FDD835", e.fill(), e.restore();
|
|
997
|
+
}, io = async () => {
|
|
998
|
+
if (!(!y.value || !Y.value)) {
|
|
999
|
+
g.value = !0;
|
|
1000
|
+
try {
|
|
1001
|
+
const e = await V.load(y.value), l = Y.value.pageIndex;
|
|
1002
|
+
let o = e.getPage(l);
|
|
1003
|
+
const { width: t, height: s } = o.getSize(), a = zl();
|
|
1004
|
+
if (!a)
|
|
1005
|
+
throw new Error(d("pdfTools.pdfRenderCanvasNotFound"));
|
|
1006
|
+
if (f.value.some(
|
|
1007
|
+
(M) => M.type === c.REDACT
|
|
1008
|
+
)) {
|
|
1009
|
+
if (!window.confirm(d("pdfTools.redactFlattenConfirm"))) {
|
|
1010
|
+
g.value = !1;
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
const pl = await (await je.value.promise).getPage(l + 1), Ee = D.value, ml = await la({
|
|
1014
|
+
pdfPage: pl,
|
|
1015
|
+
// Masks are converted to page fractions so they no longer depend on
|
|
1016
|
+
// the screen resolution nor on the current zoom level.
|
|
1017
|
+
redactions: f.value.filter((le) => le.type === c.REDACT).map((le) => ({
|
|
1018
|
+
x: le.rect.x / Ee.width,
|
|
1019
|
+
y: le.rect.y / Ee.height,
|
|
1020
|
+
w: le.rect.w / Ee.width,
|
|
1021
|
+
h: le.rect.h / Ee.height
|
|
1022
|
+
}))
|
|
1023
|
+
}), gl = await (await fetch(ml)).arrayBuffer(), yl = await e.embedJpg(gl), Ke = e.insertPage(l + 1, [t, s]);
|
|
1024
|
+
Ke.drawImage(yl, { x: 0, y: 0, width: t, height: s }), o = Ke;
|
|
1025
|
+
}
|
|
1026
|
+
const E = a.getBoundingClientRect(), P = a.width, W = a.height, R = window.devicePixelRatio || 1, Te = P / E.width, et = W / E.height, lt = t / P, tt = s / W;
|
|
1027
|
+
Ho(o);
|
|
1028
|
+
const ot = /* @__PURE__ */ new Map(), at = [];
|
|
1029
|
+
for (const M of f.value) {
|
|
1030
|
+
const nt = M.rect.x / R, pl = M.rect.y / R, Ee = M.rect.w / R, ml = M.rect.h / R, gl = nt * Te, yl = pl * et, Ke = Ee * Te, le = ml * et, hl = Ke * lt, bl = le * tt, qe = gl * lt, Je = s - (yl + le) * tt;
|
|
1031
|
+
if (M.type !== c.REDACT) {
|
|
1032
|
+
if (M.type === c.HIGHLIGHT)
|
|
1033
|
+
o.drawRectangle({
|
|
1034
|
+
x: qe,
|
|
1035
|
+
y: Je,
|
|
1036
|
+
width: hl,
|
|
1037
|
+
height: bl,
|
|
1038
|
+
color: El(1, 0.92, 0.23),
|
|
1039
|
+
opacity: 0.4
|
|
1040
|
+
});
|
|
1041
|
+
else if (M.type === c.COMMENT) {
|
|
1042
|
+
const A = M.payload ?? {}, Q = Bo({
|
|
1043
|
+
doc: e,
|
|
1044
|
+
page: o,
|
|
1045
|
+
rect: { x: qe, y: Je, size: Math.max(14, hl) },
|
|
1046
|
+
text: A.text,
|
|
1047
|
+
title: A.author || L(),
|
|
1048
|
+
creationDate: A.creationDate,
|
|
1049
|
+
modificationDate: A.edited ? null : A.modificationDate
|
|
1050
|
+
});
|
|
1051
|
+
Q && A.sourceRef && ot.set(A.sourceRef, Q), Q && A.inReplyTo && at.push({ ref: Q, inReplyTo: A.inReplyTo });
|
|
1052
|
+
} else if (M.type === c.IMAGE) {
|
|
1053
|
+
let A = null;
|
|
1054
|
+
if (M.payload?.file ? A = await M.payload.file.arrayBuffer() : M.payload?.signature && (A = M.payload.signature), A) {
|
|
1055
|
+
let Q;
|
|
1056
|
+
try {
|
|
1057
|
+
Q = await e.embedPng(A);
|
|
1058
|
+
} catch {
|
|
1059
|
+
Q = await e.embedJpg(A);
|
|
1060
|
+
}
|
|
1061
|
+
o.drawImage(Q, { x: qe, y: Je, width: hl, height: bl, opacity: 0.98 });
|
|
1062
|
+
}
|
|
1063
|
+
} else if (M.type === c.TEXT) {
|
|
1064
|
+
const A = M.payload || {}, Q = A.font === "TimesRoman" ? Pl.TimesRoman : A.font === "Courier" ? Pl.Courier : Pl.Helvetica, wl = await e.embedFont(Q), Tl = Math.max(6, Number(A.size) || 18), {
|
|
1065
|
+
r: yo,
|
|
1066
|
+
g: ho,
|
|
1067
|
+
b: bo
|
|
1068
|
+
} = no(A.color || "#000000"), wo = Je + bl, To = wl.heightAtSize(Tl, { descender: !1 });
|
|
1069
|
+
kl(A.text).forEach((rt, Eo) => {
|
|
1070
|
+
rt && o.drawText(rt, {
|
|
1071
|
+
x: qe,
|
|
1072
|
+
y: sa({
|
|
1073
|
+
topY: wo,
|
|
1074
|
+
lineIndex: Eo,
|
|
1075
|
+
fontSize: Tl,
|
|
1076
|
+
ascentPt: To
|
|
1077
|
+
}),
|
|
1078
|
+
size: Tl,
|
|
1079
|
+
font: wl,
|
|
1080
|
+
color: El(yo, ho, bo)
|
|
1081
|
+
});
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
Vo(e, at, ot);
|
|
1087
|
+
const st = f.value.some(
|
|
1088
|
+
(M) => M.type === c.REDACT
|
|
1089
|
+
);
|
|
1090
|
+
st && e.removePage(l), await ce(e, { updatePages: st }), f.value = [], z.value = -1, await Hl(), k.toast.add({
|
|
1091
|
+
severity: "success",
|
|
1092
|
+
summary: d("pdfTools.common.success"),
|
|
1093
|
+
detail: d("pdfTools.pageEditor.applySuccess"),
|
|
1094
|
+
life: 2e3
|
|
1095
|
+
});
|
|
1096
|
+
} catch (e) {
|
|
1097
|
+
console.error("Error applying overlay edits:", e), k.toast.add({
|
|
1098
|
+
severity: "error",
|
|
1099
|
+
summary: d("pdfTools.common.error"),
|
|
1100
|
+
detail: d("pdfTools.pageEditor.applyError"),
|
|
1101
|
+
life: 3e3
|
|
1102
|
+
});
|
|
1103
|
+
} finally {
|
|
1104
|
+
g.value = !1;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
xe(ee, () => setTimeout(de, 0)), xe(Y, () => setTimeout(de, 0)), typeof window < "u" && window.addEventListener("resize", () => setTimeout(de, 0));
|
|
1109
|
+
const co = () => {
|
|
1110
|
+
ee.value = 1, setTimeout(de, 0);
|
|
1111
|
+
}, uo = () => {
|
|
1112
|
+
const e = me.value;
|
|
1113
|
+
if (!e)
|
|
1114
|
+
return;
|
|
1115
|
+
const l = window.devicePixelRatio || 1, o = 440, t = 180;
|
|
1116
|
+
e.style.width = o + "px", e.style.height = t + "px", e.width = Math.round(o * l), e.height = Math.round(t * l);
|
|
1117
|
+
const s = e.getContext("2d");
|
|
1118
|
+
s.fillStyle = "#fff", s.fillRect(0, 0, e.width, e.height);
|
|
1119
|
+
}, vo = () => {
|
|
1120
|
+
Ql(), pe.value = !1;
|
|
1121
|
+
}, ql = (e) => {
|
|
1122
|
+
sl = !0, Ve = Zl(e);
|
|
1123
|
+
}, Jl = (e) => {
|
|
1124
|
+
if (!sl)
|
|
1125
|
+
return;
|
|
1126
|
+
const l = Zl(e);
|
|
1127
|
+
mo(Ve, l), Ve = l;
|
|
1128
|
+
}, fo = (e) => ql(e.touches[0]), po = (e) => Jl(e.touches[0]), fl = () => {
|
|
1129
|
+
sl = !1, Ve = null;
|
|
1130
|
+
}, Zl = (e) => {
|
|
1131
|
+
const o = me.value.getBoundingClientRect(), t = window.devicePixelRatio || 1, s = e.clientX ?? e.pageX, a = e.clientY ?? e.pageY;
|
|
1132
|
+
return { x: (s - o.left) * t, y: (a - o.top) * t };
|
|
1133
|
+
}, mo = (e, l) => {
|
|
1134
|
+
const t = me.value.getContext("2d");
|
|
1135
|
+
t.strokeStyle = "#111827", t.lineWidth = 3 * (window.devicePixelRatio || 1), t.lineCap = "round", t.beginPath(), t.moveTo(e.x, e.y), t.lineTo(l.x, l.y), t.stroke();
|
|
1136
|
+
}, Ql = () => {
|
|
1137
|
+
const e = me.value;
|
|
1138
|
+
if (!e)
|
|
1139
|
+
return;
|
|
1140
|
+
const l = e.getContext("2d");
|
|
1141
|
+
l.fillStyle = "#fff", l.fillRect(0, 0, e.width, e.height);
|
|
1142
|
+
}, go = () => {
|
|
1143
|
+
const e = me.value;
|
|
1144
|
+
e && e.toBlob(async (l) => {
|
|
1145
|
+
Ie.value = await l.arrayBuffer(), x.value = c.IMAGE, pe.value = !1;
|
|
1146
|
+
});
|
|
1147
|
+
};
|
|
1148
|
+
return xe(pe, (e) => {
|
|
1149
|
+
e && setTimeout(uo, 0);
|
|
1150
|
+
}), xe(Fe, async (e) => {
|
|
1151
|
+
if (!e) {
|
|
1152
|
+
j.value = 0;
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
try {
|
|
1156
|
+
const l = await e;
|
|
1157
|
+
j.value = l.numPages;
|
|
1158
|
+
} catch (l) {
|
|
1159
|
+
console.error("Error loading preview PDF:", l), j.value = 0;
|
|
1160
|
+
}
|
|
1161
|
+
}), (e, l) => {
|
|
1162
|
+
const o = ko("tooltip");
|
|
1163
|
+
return m(), b("div", na, [
|
|
1164
|
+
n("div", ra, [
|
|
1165
|
+
n("h1", null, [
|
|
1166
|
+
te(p(e.$t("pdfTools.title")) + " ", 1),
|
|
1167
|
+
ze.value ? (m(), b("span", ia, "— " + p(ze.value), 1)) : N("", !0)
|
|
1168
|
+
]),
|
|
1169
|
+
$.closable ? (m(), He(r(w), {
|
|
1170
|
+
key: 0,
|
|
1171
|
+
severity: "secondary",
|
|
1172
|
+
class: "flex-shrink-0",
|
|
1173
|
+
icon: "ri-close-line",
|
|
1174
|
+
label: e.$t("pdfTools.closeEditor"),
|
|
1175
|
+
onClick: G
|
|
1176
|
+
}, null, 8, ["label"])) : N("", !0)
|
|
1177
|
+
]),
|
|
1178
|
+
g.value ? (m(), b("div", ca, [
|
|
1179
|
+
i(r(Ue)),
|
|
1180
|
+
n("p", null, p(e.$t("pdfTools.loading")), 1)
|
|
1181
|
+
])) : N("", !0),
|
|
1182
|
+
F.value ? (m(), b("div", da, [
|
|
1183
|
+
i(r(Mo), { severity: "error" }, {
|
|
1184
|
+
default: I(() => [
|
|
1185
|
+
te(p(F.value), 1)
|
|
1186
|
+
]),
|
|
1187
|
+
_: 1
|
|
1188
|
+
})
|
|
1189
|
+
])) : N("", !0),
|
|
1190
|
+
!g.value && !F.value ? (m(), b("div", ua, [
|
|
1191
|
+
n("div", va, [
|
|
1192
|
+
n("div", fa, [
|
|
1193
|
+
n("h2", null, p(e.$t("pdfTools.sidebar.actions")), 1),
|
|
1194
|
+
n("div", pa, [
|
|
1195
|
+
i(r(w), {
|
|
1196
|
+
icon: "ri-save-2-line",
|
|
1197
|
+
label: e.$t("pdfTools.sidebar.saveNewVersion"),
|
|
1198
|
+
onClick: Vt
|
|
1199
|
+
}, null, 8, ["label"]),
|
|
1200
|
+
i(r(w), {
|
|
1201
|
+
severity: "secondary",
|
|
1202
|
+
class: "btn-mt",
|
|
1203
|
+
icon: "ri-file-copy-2-line",
|
|
1204
|
+
label: e.$t("pdfTools.sidebar.saveAs"),
|
|
1205
|
+
onClick: l[0] || (l[0] = (t) => Ul("saveAs"))
|
|
1206
|
+
}, null, 8, ["label"]),
|
|
1207
|
+
i(r(gt)),
|
|
1208
|
+
n("div", ma, [
|
|
1209
|
+
n("h3", null, p(e.$t("pdfTools.sidebar.extractPages")), 1),
|
|
1210
|
+
i(r(w), {
|
|
1211
|
+
disabled: T.value.length === 0,
|
|
1212
|
+
icon: "ri-file-transfer-line",
|
|
1213
|
+
label: e.$t("pdfTools.sidebar.extractAndSave"),
|
|
1214
|
+
onClick: l[1] || (l[1] = (t) => Ul("extract"))
|
|
1215
|
+
}, null, 8, ["disabled", "label"])
|
|
1216
|
+
]),
|
|
1217
|
+
n("div", ga, [
|
|
1218
|
+
n("h3", null, p(e.$t("pdfTools.sidebar.deletePages")), 1),
|
|
1219
|
+
i(r(w), {
|
|
1220
|
+
disabled: T.value.length === 0 || H.value.length === T.value.length,
|
|
1221
|
+
severity: "danger",
|
|
1222
|
+
icon: "ri-delete-bin-line",
|
|
1223
|
+
label: e.$t("pdfTools.sidebar.deleteSelectedPages"),
|
|
1224
|
+
onClick: _t
|
|
1225
|
+
}, null, 8, ["disabled", "label"])
|
|
1226
|
+
]),
|
|
1227
|
+
n("div", ya, [
|
|
1228
|
+
n("h3", null, p(e.$t("pdfTools.sidebar.insertPdf")), 1),
|
|
1229
|
+
n("div", ha, [
|
|
1230
|
+
i(r(mt), {
|
|
1231
|
+
auto: !1,
|
|
1232
|
+
customUpload: !1,
|
|
1233
|
+
showCancelButton: !1,
|
|
1234
|
+
showUploadButton: !1,
|
|
1235
|
+
accept: "application/pdf",
|
|
1236
|
+
"choose-label": e.$t("pdfTools.sidebar.fromComputer"),
|
|
1237
|
+
severity: "secondary",
|
|
1238
|
+
class: "btn-full",
|
|
1239
|
+
mode: "basic",
|
|
1240
|
+
name: "pdfToInsert",
|
|
1241
|
+
onSelect: Ut
|
|
1242
|
+
}, null, 8, ["choose-label"]),
|
|
1243
|
+
i(r(w), {
|
|
1244
|
+
severity: "secondary",
|
|
1245
|
+
icon: "ri-cloud-line",
|
|
1246
|
+
label: e.$t("pdfTools.sidebar.fromPristy"),
|
|
1247
|
+
onClick: Mt
|
|
1248
|
+
}, null, 8, ["label"])
|
|
1249
|
+
])
|
|
1250
|
+
]),
|
|
1251
|
+
n("div", ba, [
|
|
1252
|
+
n("h3", null, p(e.$t("pdfTools.sidebar.addWatermark")), 1),
|
|
1253
|
+
i(r(Be), {
|
|
1254
|
+
modelValue: $e.value,
|
|
1255
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => $e.value = t),
|
|
1256
|
+
placeholder: e.$t("pdfTools.sidebar.watermarkTextPlaceholder"),
|
|
1257
|
+
type: "text"
|
|
1258
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1259
|
+
n("div", wa, [
|
|
1260
|
+
n("div", null, [
|
|
1261
|
+
i(r(pt), {
|
|
1262
|
+
modelValue: nl.value,
|
|
1263
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => nl.value = t),
|
|
1264
|
+
max: 360,
|
|
1265
|
+
min: -360,
|
|
1266
|
+
placeholder: e.$t("pdfTools.sidebar.angle"),
|
|
1267
|
+
suffix: "°"
|
|
1268
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1269
|
+
]),
|
|
1270
|
+
n("div", null, [
|
|
1271
|
+
i(r(pt), {
|
|
1272
|
+
modelValue: Se.value,
|
|
1273
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => Se.value = t),
|
|
1274
|
+
max: 10,
|
|
1275
|
+
min: 1,
|
|
1276
|
+
placeholder: e.$t("pdfTools.sidebar.repetitions")
|
|
1277
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1278
|
+
])
|
|
1279
|
+
]),
|
|
1280
|
+
i(r(w), {
|
|
1281
|
+
disabled: !$e.value || T.value.length === 0,
|
|
1282
|
+
severity: "secondary",
|
|
1283
|
+
class: "btn-mt",
|
|
1284
|
+
icon: "ri-paint-brush-line",
|
|
1285
|
+
label: e.$t("pdfTools.sidebar.addWatermarkButton"),
|
|
1286
|
+
onClick: Bt
|
|
1287
|
+
}, null, 8, ["disabled", "label"])
|
|
1288
|
+
])
|
|
1289
|
+
])
|
|
1290
|
+
])
|
|
1291
|
+
]),
|
|
1292
|
+
n("div", Ta, [
|
|
1293
|
+
n("h2", null, p(e.$t("pdfTools.pagePreview.title")), 1),
|
|
1294
|
+
i(r($o), {
|
|
1295
|
+
modelValue: H.value,
|
|
1296
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => H.value = t),
|
|
1297
|
+
class: "page-grid",
|
|
1298
|
+
"ghost-class": "ghost",
|
|
1299
|
+
"item-key": "pageIndex",
|
|
1300
|
+
onEnd: $t
|
|
1301
|
+
}, {
|
|
1302
|
+
default: I(() => [
|
|
1303
|
+
(m(!0), b(Ze, null, Qe(H.value, (t) => (m(), b("div", {
|
|
1304
|
+
key: t.pageIndex,
|
|
1305
|
+
class: "page-grid-item"
|
|
1306
|
+
}, [
|
|
1307
|
+
n("div", {
|
|
1308
|
+
class: K([{ selected: Ml(t) }, "page-thumbnail"]),
|
|
1309
|
+
onClick: (s) => Ct(t),
|
|
1310
|
+
onDblclick: fe((s) => Bl(t), ["stop"])
|
|
1311
|
+
}, [
|
|
1312
|
+
n("div", Pa, [
|
|
1313
|
+
i(r(Fo), {
|
|
1314
|
+
binary: "",
|
|
1315
|
+
"model-value": Ml(t)
|
|
1316
|
+
}, null, 8, ["model-value"])
|
|
1317
|
+
]),
|
|
1318
|
+
n("div", xa, [
|
|
1319
|
+
i(r(w), {
|
|
1320
|
+
text: "",
|
|
1321
|
+
rounded: "",
|
|
1322
|
+
icon: "ri-clockwise-line",
|
|
1323
|
+
"aria-label": e.$t("pdf.rotationRigth"),
|
|
1324
|
+
onClick: fe((s) => St(t), ["stop"])
|
|
1325
|
+
}, null, 8, ["aria-label", "onClick"]),
|
|
1326
|
+
i(r(w), {
|
|
1327
|
+
"aria-label": e.$t("pdfTools.pagePreview.openPagePreview", {
|
|
1328
|
+
pageNumber: t.pageNumber
|
|
1329
|
+
}),
|
|
1330
|
+
text: "",
|
|
1331
|
+
rounded: "",
|
|
1332
|
+
icon: "ri-edit-box-line",
|
|
1333
|
+
onClick: fe((s) => Bl(t), ["stop"])
|
|
1334
|
+
}, null, 8, ["aria-label", "onClick"])
|
|
1335
|
+
]),
|
|
1336
|
+
n("div", ka, [
|
|
1337
|
+
t.pageNumber <= r(_l) ? (m(), He(r(el), {
|
|
1338
|
+
key: 0,
|
|
1339
|
+
annotations: !1,
|
|
1340
|
+
page: t.pageNumber,
|
|
1341
|
+
pdf: r(je),
|
|
1342
|
+
scale: 0.25,
|
|
1343
|
+
text: !1
|
|
1344
|
+
}, null, 8, ["page", "pdf"])) : N("", !0)
|
|
1345
|
+
]),
|
|
1346
|
+
n("div", Ca, p(t.pageNumber), 1)
|
|
1347
|
+
], 42, Ea)
|
|
1348
|
+
]))), 128))
|
|
1349
|
+
]),
|
|
1350
|
+
_: 1
|
|
1351
|
+
}, 8, ["modelValue"])
|
|
1352
|
+
])
|
|
1353
|
+
])) : N("", !0),
|
|
1354
|
+
i(r(ol), {
|
|
1355
|
+
visible: q.value,
|
|
1356
|
+
"onUpdate:visible": l[15] || (l[15] = (t) => q.value = t),
|
|
1357
|
+
breakpoints: { "960px": "95vw", "640px": "100vw" },
|
|
1358
|
+
closeOnEscape: !1,
|
|
1359
|
+
style: { width: "85vw", maxWidth: "1400px", height: "90vh" },
|
|
1360
|
+
dismissableMask: "",
|
|
1361
|
+
modal: "",
|
|
1362
|
+
class: "dialog-page-editor",
|
|
1363
|
+
"content-class": "page-editor-dialog",
|
|
1364
|
+
onHide: Vl
|
|
1365
|
+
}, {
|
|
1366
|
+
header: I(() => [
|
|
1367
|
+
n("div", Ia, [
|
|
1368
|
+
l[22] || (l[22] = n("i", {
|
|
1369
|
+
class: "ri-file-fill",
|
|
1370
|
+
"aria-hidden": "true"
|
|
1371
|
+
}, null, -1)),
|
|
1372
|
+
n("span", null, p(e.$t("pdfTools.pageEditor.title", {
|
|
1373
|
+
pageNumber: (Y.value || h.value)?.pageNumber || "",
|
|
1374
|
+
filename: ze.value
|
|
1375
|
+
})), 1)
|
|
1376
|
+
])
|
|
1377
|
+
]),
|
|
1378
|
+
footer: I(() => [
|
|
1379
|
+
n("div", za, [
|
|
1380
|
+
n("small", null, p(e.$t("pdfTools.pageEditor.footerHint")), 1)
|
|
1381
|
+
])
|
|
1382
|
+
]),
|
|
1383
|
+
default: I(() => [
|
|
1384
|
+
n("div", $a, [
|
|
1385
|
+
i(r(w), {
|
|
1386
|
+
text: "",
|
|
1387
|
+
icon: "ri-zoom-out-line",
|
|
1388
|
+
"aria-label": e.$t("pdf.dezoom"),
|
|
1389
|
+
onClick: Wt
|
|
1390
|
+
}, null, 8, ["aria-label"]),
|
|
1391
|
+
i(r(w), {
|
|
1392
|
+
text: "",
|
|
1393
|
+
icon: "ri-zoom-in-line",
|
|
1394
|
+
"aria-label": e.$t("pdf.zoom"),
|
|
1395
|
+
onClick: zt
|
|
1396
|
+
}, null, 8, ["aria-label"]),
|
|
1397
|
+
i(r(w), {
|
|
1398
|
+
text: "",
|
|
1399
|
+
label: e.$t("pdfTools.pageEditor.fit"),
|
|
1400
|
+
onClick: co
|
|
1401
|
+
}, null, 8, ["label"]),
|
|
1402
|
+
n("span", Sa, p(Math.round(ee.value * 100)) + "%", 1),
|
|
1403
|
+
l[23] || (l[23] = n("span", { class: "spacer" }, null, -1)),
|
|
1404
|
+
i(r(w), {
|
|
1405
|
+
text: "",
|
|
1406
|
+
icon: "ri-close-line",
|
|
1407
|
+
label: e.$t("pdfTools.pageEditor.close"),
|
|
1408
|
+
onClick: Vl
|
|
1409
|
+
}, null, 8, ["label"])
|
|
1410
|
+
]),
|
|
1411
|
+
n("div", Aa, [
|
|
1412
|
+
n("div", _a, [
|
|
1413
|
+
n("h4", null, p(e.$t("pdfTools.pageEditor.tools.actions")), 1),
|
|
1414
|
+
i(r(w), {
|
|
1415
|
+
text: "",
|
|
1416
|
+
severity: "secondary",
|
|
1417
|
+
class: K({ active: x.value === c.SELECT }),
|
|
1418
|
+
icon: "ri-cursor-line",
|
|
1419
|
+
label: e.$t("pdfTools.pageEditor.tools.select"),
|
|
1420
|
+
onClick: l[6] || (l[6] = (t) => Re(c.SELECT))
|
|
1421
|
+
}, null, 8, ["class", "label"]),
|
|
1422
|
+
i(r(w), {
|
|
1423
|
+
text: "",
|
|
1424
|
+
severity: "secondary",
|
|
1425
|
+
class: K({ active: x.value === c.REDACT }),
|
|
1426
|
+
icon: "ri-eraser-fill",
|
|
1427
|
+
label: e.$t("pdfTools.pageEditor.tools.redact"),
|
|
1428
|
+
onClick: l[7] || (l[7] = (t) => Re(c.REDACT))
|
|
1429
|
+
}, null, 8, ["class", "label"]),
|
|
1430
|
+
i(r(w), {
|
|
1431
|
+
text: "",
|
|
1432
|
+
severity: "secondary",
|
|
1433
|
+
class: K({ active: x.value === c.HIGHLIGHT }),
|
|
1434
|
+
icon: "ri-mark-pen-line",
|
|
1435
|
+
label: e.$t("pdfTools.pageEditor.tools.highlight"),
|
|
1436
|
+
onClick: l[8] || (l[8] = (t) => Re(c.HIGHLIGHT))
|
|
1437
|
+
}, null, 8, ["class", "label"]),
|
|
1438
|
+
i(r(w), {
|
|
1439
|
+
text: "",
|
|
1440
|
+
severity: "secondary",
|
|
1441
|
+
class: K({ active: x.value === c.COMMENT }),
|
|
1442
|
+
icon: "ri-sticky-note-line",
|
|
1443
|
+
label: e.$t("pdfTools.pageEditor.tools.comment"),
|
|
1444
|
+
onClick: l[9] || (l[9] = (t) => Re(c.COMMENT))
|
|
1445
|
+
}, null, 8, ["class", "label"]),
|
|
1446
|
+
i(r(mt), {
|
|
1447
|
+
severity: "secondary",
|
|
1448
|
+
class: K({ active: x.value === c.IMAGE }),
|
|
1449
|
+
accept: "image/*",
|
|
1450
|
+
"choose-label": e.$t("pdfTools.pageEditor.tools.image"),
|
|
1451
|
+
mode: "basic",
|
|
1452
|
+
name: "image",
|
|
1453
|
+
onSelect: Gt
|
|
1454
|
+
}, null, 8, ["class", "choose-label"]),
|
|
1455
|
+
i(r(w), {
|
|
1456
|
+
text: "",
|
|
1457
|
+
severity: "secondary",
|
|
1458
|
+
class: K({ active: x.value === c.SIGNATURE }),
|
|
1459
|
+
icon: "ri-ball-pen-line",
|
|
1460
|
+
label: e.$t("pdfTools.pageEditor.tools.signature"),
|
|
1461
|
+
onClick: Xt
|
|
1462
|
+
}, null, 8, ["class", "label"]),
|
|
1463
|
+
i(r(w), {
|
|
1464
|
+
text: "",
|
|
1465
|
+
severity: "secondary",
|
|
1466
|
+
class: K({ active: x.value === c.TEXT }),
|
|
1467
|
+
icon: "ri-font-size",
|
|
1468
|
+
label: e.$t("pdfTools.pageEditor.tools.text"),
|
|
1469
|
+
onClick: l[10] || (l[10] = (t) => Re(c.TEXT))
|
|
1470
|
+
}, null, 8, ["class", "label"]),
|
|
1471
|
+
Jt.value ? (m(), b("div", Ma, [
|
|
1472
|
+
n("div", Fa, [
|
|
1473
|
+
n("label", Ra, p(e.$t("pdfTools.pageEditor.tools.font")), 1),
|
|
1474
|
+
i(r(No), {
|
|
1475
|
+
modelValue: ne.value,
|
|
1476
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => ne.value = t),
|
|
1477
|
+
options: Et,
|
|
1478
|
+
class: "input-full",
|
|
1479
|
+
optionLabel: "label",
|
|
1480
|
+
optionValue: "value"
|
|
1481
|
+
}, null, 8, ["modelValue"])
|
|
1482
|
+
]),
|
|
1483
|
+
n("div", Na, [
|
|
1484
|
+
n("label", Da, p(e.$t("pdfTools.pageEditor.tools.size")) + " : " + p(se.value), 1),
|
|
1485
|
+
i(r(Ro), {
|
|
1486
|
+
id: "text-size-slider",
|
|
1487
|
+
modelValue: se.value,
|
|
1488
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => se.value = t),
|
|
1489
|
+
max: 144,
|
|
1490
|
+
min: 6,
|
|
1491
|
+
class: "input-full"
|
|
1492
|
+
}, null, 8, ["modelValue"])
|
|
1493
|
+
]),
|
|
1494
|
+
n("div", La, [
|
|
1495
|
+
n("label", Ua, p(e.$t("pdfTools.pageEditor.tools.color")), 1),
|
|
1496
|
+
n("div", Ha, [
|
|
1497
|
+
(m(), b(Ze, null, Qe(Pt, (t) => n("button", {
|
|
1498
|
+
key: t.value,
|
|
1499
|
+
type: "button",
|
|
1500
|
+
class: K(["color-swatch", { selected: J.value === t.value }]),
|
|
1501
|
+
style: it({ backgroundColor: t.value }),
|
|
1502
|
+
"aria-label": e.$t(`pdfTools.pageEditor.colors.${t.name}`),
|
|
1503
|
+
"aria-pressed": J.value === t.value,
|
|
1504
|
+
onClick: (s) => J.value = t.value
|
|
1505
|
+
}, null, 14, Ba)), 64))
|
|
1506
|
+
]),
|
|
1507
|
+
n("label", Va, [
|
|
1508
|
+
Le(n("input", {
|
|
1509
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => J.value = t),
|
|
1510
|
+
type: "color",
|
|
1511
|
+
class: "color-custom-input"
|
|
1512
|
+
}, null, 512), [
|
|
1513
|
+
[ct, J.value]
|
|
1514
|
+
]),
|
|
1515
|
+
n("span", null, p(e.$t("pdfTools.pageEditor.colors.custom")), 1)
|
|
1516
|
+
])
|
|
1517
|
+
])
|
|
1518
|
+
])) : N("", !0),
|
|
1519
|
+
i(r(gt)),
|
|
1520
|
+
i(r(w), {
|
|
1521
|
+
disabled: f.value.length === 0,
|
|
1522
|
+
severity: "info",
|
|
1523
|
+
class: "btn-full btn-mt-auto",
|
|
1524
|
+
icon: "ri-check-line",
|
|
1525
|
+
label: e.$t("pdfTools.pageEditor.apply"),
|
|
1526
|
+
onClick: io
|
|
1527
|
+
}, null, 8, ["disabled", "label"]),
|
|
1528
|
+
i(r(w), {
|
|
1529
|
+
disabled: f.value.length === 0,
|
|
1530
|
+
severity: "warn",
|
|
1531
|
+
class: "btn-full btn-mt-sm",
|
|
1532
|
+
icon: "ri-arrow-go-back-line",
|
|
1533
|
+
label: e.$t("pdfTools.pageEditor.cancel"),
|
|
1534
|
+
onClick: Yt
|
|
1535
|
+
}, null, 8, ["disabled", "label"]),
|
|
1536
|
+
z.value >= 0 ? (m(), He(r(w), {
|
|
1537
|
+
key: 1,
|
|
1538
|
+
severity: "danger",
|
|
1539
|
+
class: "btn-full btn-mt-sm",
|
|
1540
|
+
icon: "ri-delete-bin-line",
|
|
1541
|
+
label: e.$t("pdfTools.pageEditor.deleteSelected"),
|
|
1542
|
+
onClick: Xl
|
|
1543
|
+
}, null, 8, ["label"])) : N("", !0)
|
|
1544
|
+
]),
|
|
1545
|
+
n("div", {
|
|
1546
|
+
class: "page-editor-canvas",
|
|
1547
|
+
onWheelPassive: de,
|
|
1548
|
+
onScrollPassive: de
|
|
1549
|
+
}, [
|
|
1550
|
+
n("div", {
|
|
1551
|
+
ref_key: "pdfCanvasWrapper",
|
|
1552
|
+
ref: Cl,
|
|
1553
|
+
class: "pdf-canvas-wrapper"
|
|
1554
|
+
}, [
|
|
1555
|
+
r(je) && (Y.value || h.value) && (Y.value || h.value).pageNumber <= r(_l) ? (m(), He(r(el), {
|
|
1556
|
+
key: 0,
|
|
1557
|
+
annotations: "",
|
|
1558
|
+
page: (Y.value || h.value).pageNumber,
|
|
1559
|
+
pdf: r(je),
|
|
1560
|
+
scale: ee.value,
|
|
1561
|
+
text: !1,
|
|
1562
|
+
class: "pdf-canvas-absolute"
|
|
1563
|
+
}, null, 8, ["page", "pdf", "scale"])) : N("", !0),
|
|
1564
|
+
n("canvas", {
|
|
1565
|
+
ref_key: "overlayCanvas",
|
|
1566
|
+
ref: D,
|
|
1567
|
+
class: "overlay-canvas",
|
|
1568
|
+
onDblclick: eo,
|
|
1569
|
+
onMousedown: to,
|
|
1570
|
+
onMouseleave: so,
|
|
1571
|
+
onMousemove: oo,
|
|
1572
|
+
onMouseup: ao
|
|
1573
|
+
}, null, 544),
|
|
1574
|
+
C.value.visible ? Le((m(), b("textarea", {
|
|
1575
|
+
key: 1,
|
|
1576
|
+
ref_key: "textEditorInput",
|
|
1577
|
+
ref: Il,
|
|
1578
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => C.value.value = t),
|
|
1579
|
+
"aria-label": Yl.value.label,
|
|
1580
|
+
placeholder: Yl.value.placeholder,
|
|
1581
|
+
style: it(qt.value),
|
|
1582
|
+
class: "text-editor-input",
|
|
1583
|
+
onBlur: vl,
|
|
1584
|
+
onKeydown: dt(fe(vl, ["ctrl", "prevent"]), ["enter"])
|
|
1585
|
+
}, null, 44, Oa)), [
|
|
1586
|
+
[ct, C.value.value]
|
|
1587
|
+
]) : N("", !0)
|
|
1588
|
+
], 512)
|
|
1589
|
+
], 32)
|
|
1590
|
+
])
|
|
1591
|
+
]),
|
|
1592
|
+
_: 1
|
|
1593
|
+
}, 8, ["visible"]),
|
|
1594
|
+
i(r(ol), {
|
|
1595
|
+
visible: pe.value,
|
|
1596
|
+
"onUpdate:visible": l[16] || (l[16] = (t) => pe.value = t),
|
|
1597
|
+
modal: "",
|
|
1598
|
+
class: "dialog-signature-pad",
|
|
1599
|
+
onHide: vo
|
|
1600
|
+
}, {
|
|
1601
|
+
header: I(() => [
|
|
1602
|
+
n("div", Wa, [
|
|
1603
|
+
l[24] || (l[24] = n("i", {
|
|
1604
|
+
class: "ri-ball-pen-line",
|
|
1605
|
+
"aria-hidden": "true"
|
|
1606
|
+
}, null, -1)),
|
|
1607
|
+
n("span", null, p(e.$t("pdfTools.signaturePad.title")), 1)
|
|
1608
|
+
])
|
|
1609
|
+
]),
|
|
1610
|
+
footer: I(() => [
|
|
1611
|
+
n("div", Xa, [
|
|
1612
|
+
i(r(w), {
|
|
1613
|
+
text: "",
|
|
1614
|
+
label: e.$t("pdfTools.signaturePad.clear"),
|
|
1615
|
+
onClick: Ql
|
|
1616
|
+
}, null, 8, ["label"]),
|
|
1617
|
+
i(r(w), {
|
|
1618
|
+
text: "",
|
|
1619
|
+
label: e.$t("pdfTools.signaturePad.use"),
|
|
1620
|
+
onClick: go
|
|
1621
|
+
}, null, 8, ["label"])
|
|
1622
|
+
])
|
|
1623
|
+
]),
|
|
1624
|
+
default: I(() => [
|
|
1625
|
+
n("div", Ga, [
|
|
1626
|
+
n("canvas", {
|
|
1627
|
+
ref_key: "signaturePadCanvas",
|
|
1628
|
+
ref: me,
|
|
1629
|
+
class: "signature-canvas",
|
|
1630
|
+
onMousedown: ql,
|
|
1631
|
+
onMouseleave: fl,
|
|
1632
|
+
onMousemove: Jl,
|
|
1633
|
+
onMouseup: fl,
|
|
1634
|
+
onTouchstart: fe(fo, ["prevent"]),
|
|
1635
|
+
onTouchmove: fe(po, ["prevent"]),
|
|
1636
|
+
onTouchend: fe(fl, ["prevent"])
|
|
1637
|
+
}, null, 544)
|
|
1638
|
+
])
|
|
1639
|
+
]),
|
|
1640
|
+
_: 1
|
|
1641
|
+
}, 8, ["visible"]),
|
|
1642
|
+
i(Jo, {
|
|
1643
|
+
"default-filename": Sl.value,
|
|
1644
|
+
visible: Oe.value,
|
|
1645
|
+
"parent-folder-node": Ge.value,
|
|
1646
|
+
onClose: l[17] || (l[17] = (t) => Oe.value = !1),
|
|
1647
|
+
onSave: Ot
|
|
1648
|
+
}, null, 8, ["default-filename", "visible", "parent-folder-node"]),
|
|
1649
|
+
i(r(ol), {
|
|
1650
|
+
visible: Ae.value,
|
|
1651
|
+
modal: "",
|
|
1652
|
+
header: e.$t("pdfTools.insertFromAlfresco.title"),
|
|
1653
|
+
class: "dialog-insert-pdf",
|
|
1654
|
+
"onUpdate:visible": l[21] || (l[21] = (t) => Ae.value = !1)
|
|
1655
|
+
}, {
|
|
1656
|
+
footer: I(() => [
|
|
1657
|
+
n("div", As, [
|
|
1658
|
+
n("div", _s, [
|
|
1659
|
+
B.value ? (m(), b("div", Ms, [
|
|
1660
|
+
n("span", Fs, p(e.$t("pdfTools.insertFromAlfresco.selected")), 1),
|
|
1661
|
+
Le((m(), b("span", Rs, [
|
|
1662
|
+
te(p(B.value?.name), 1)
|
|
1663
|
+
])), [
|
|
1664
|
+
[
|
|
1665
|
+
o,
|
|
1666
|
+
B.value?.name,
|
|
1667
|
+
void 0,
|
|
1668
|
+
{ top: !0 }
|
|
1669
|
+
]
|
|
1670
|
+
])
|
|
1671
|
+
])) : N("", !0),
|
|
1672
|
+
ie.value ? (m(), b("div", Ns, p(ie.value), 1)) : N("", !0)
|
|
1673
|
+
]),
|
|
1674
|
+
n("div", Ds, [
|
|
1675
|
+
i(r(w), {
|
|
1676
|
+
label: e.$t("pdfTools.insertFromAlfresco.cancel"),
|
|
1677
|
+
text: "",
|
|
1678
|
+
onClick: l[20] || (l[20] = (t) => Ae.value = !1)
|
|
1679
|
+
}, null, 8, ["label"]),
|
|
1680
|
+
i(r(w), {
|
|
1681
|
+
disabled: !kt.value,
|
|
1682
|
+
label: e.$t("pdfTools.insertFromAlfresco.insert"),
|
|
1683
|
+
icon: "ri-add-line",
|
|
1684
|
+
onClick: Rt
|
|
1685
|
+
}, null, 8, ["disabled", "label"])
|
|
1686
|
+
])
|
|
1687
|
+
])
|
|
1688
|
+
]),
|
|
1689
|
+
default: I(() => [
|
|
1690
|
+
i(r(Do), {
|
|
1691
|
+
value: 0,
|
|
1692
|
+
"onUpdate:value": Ft
|
|
1693
|
+
}, {
|
|
1694
|
+
default: I(() => [
|
|
1695
|
+
i(r(Lo), null, {
|
|
1696
|
+
default: I(() => [
|
|
1697
|
+
i(r(ll), { value: 0 }, {
|
|
1698
|
+
default: I(() => [
|
|
1699
|
+
te(p(e.$t("pdfTools.insertFromAlfresco.browse")), 1)
|
|
1700
|
+
]),
|
|
1701
|
+
_: 1
|
|
1702
|
+
}),
|
|
1703
|
+
i(r(ll), { value: 1 }, {
|
|
1704
|
+
default: I(() => [
|
|
1705
|
+
te(p(e.$t("pdfTools.insertFromAlfresco.search")), 1)
|
|
1706
|
+
]),
|
|
1707
|
+
_: 1
|
|
1708
|
+
}),
|
|
1709
|
+
i(r(ll), { value: 2 }, {
|
|
1710
|
+
default: I(() => [
|
|
1711
|
+
te(p(e.$t("pdfTools.insertFromAlfresco.favorites")), 1)
|
|
1712
|
+
]),
|
|
1713
|
+
_: 1
|
|
1714
|
+
}),
|
|
1715
|
+
i(r(ll), { value: 3 }, {
|
|
1716
|
+
default: I(() => [
|
|
1717
|
+
te(p(e.$t("pdfTools.insertFromAlfresco.linkOrId")), 1)
|
|
1718
|
+
]),
|
|
1719
|
+
_: 1
|
|
1720
|
+
})
|
|
1721
|
+
]),
|
|
1722
|
+
_: 1
|
|
1723
|
+
}),
|
|
1724
|
+
i(r(Uo), null, {
|
|
1725
|
+
default: I(() => [
|
|
1726
|
+
i(r(tl), { value: 0 }, {
|
|
1727
|
+
default: I(() => [
|
|
1728
|
+
i(Tt, {
|
|
1729
|
+
showUserHome: "",
|
|
1730
|
+
showFiles: "",
|
|
1731
|
+
onSelectNode: Nt
|
|
1732
|
+
})
|
|
1733
|
+
]),
|
|
1734
|
+
_: 1
|
|
1735
|
+
}),
|
|
1736
|
+
i(r(tl), { value: 1 }, {
|
|
1737
|
+
default: I(() => [
|
|
1738
|
+
n("div", Ya, [
|
|
1739
|
+
i(r(Be), {
|
|
1740
|
+
modelValue: _e.value,
|
|
1741
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => _e.value = t),
|
|
1742
|
+
placeholder: e.$t("pdfTools.insertFromAlfresco.searchPlaceholder"),
|
|
1743
|
+
onKeyup: dt(Dl, ["enter"])
|
|
1744
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1745
|
+
i(r(w), {
|
|
1746
|
+
icon: "ri-search-line",
|
|
1747
|
+
"aria-label": e.$t("search"),
|
|
1748
|
+
onClick: Dl
|
|
1749
|
+
}, null, 8, ["aria-label"])
|
|
1750
|
+
]),
|
|
1751
|
+
rl.value ? (m(), b("div", ja, [
|
|
1752
|
+
i(r(Ue), {
|
|
1753
|
+
class: "spinner-sm",
|
|
1754
|
+
strokeWidth: "8"
|
|
1755
|
+
}),
|
|
1756
|
+
n("span", null, p(e.$t("pdfTools.insertFromAlfresco.searching")), 1)
|
|
1757
|
+
])) : !ye.value.length && Al.value ? (m(), b("div", Ka, p(e.$t("pdfTools.insertFromAlfresco.noPdfFound")), 1)) : ye.value.length ? (m(), b("div", qa, [
|
|
1758
|
+
n("div", Ja, [
|
|
1759
|
+
(m(!0), b(Ze, null, Qe(ye.value, (t) => (m(), b("div", {
|
|
1760
|
+
key: t.id,
|
|
1761
|
+
class: K(["favorite-item", {
|
|
1762
|
+
"favorite-item-selected": B.value?.id === t.id
|
|
1763
|
+
}]),
|
|
1764
|
+
onClick: (s) => il(t)
|
|
1765
|
+
}, [
|
|
1766
|
+
n("div", Qa, [
|
|
1767
|
+
l[25] || (l[25] = n("i", {
|
|
1768
|
+
class: "ri-file-pdf-line",
|
|
1769
|
+
"aria-hidden": "true"
|
|
1770
|
+
}, null, -1)),
|
|
1771
|
+
Le((m(), b("span", es, [
|
|
1772
|
+
te(p(t.name), 1)
|
|
1773
|
+
])), [
|
|
1774
|
+
[
|
|
1775
|
+
o,
|
|
1776
|
+
t.name,
|
|
1777
|
+
void 0,
|
|
1778
|
+
{ top: !0 }
|
|
1779
|
+
]
|
|
1780
|
+
])
|
|
1781
|
+
])
|
|
1782
|
+
], 10, Za))), 128))
|
|
1783
|
+
]),
|
|
1784
|
+
n("div", ls, [
|
|
1785
|
+
B.value ? Ye.value ? (m(), b("div", as, [
|
|
1786
|
+
i(r(Ue), {
|
|
1787
|
+
class: "spinner-md",
|
|
1788
|
+
strokeWidth: "6"
|
|
1789
|
+
}),
|
|
1790
|
+
n("p", ss, p(e.$t("pdfTools.insertFromAlfresco.loadingPreview")), 1)
|
|
1791
|
+
])) : r(Fe) ? (m(), b("div", ns, [
|
|
1792
|
+
j.value > 0 ? (m(), b("div", rs, [
|
|
1793
|
+
i(r(w), {
|
|
1794
|
+
icon: "ri-arrow-left-s-line",
|
|
1795
|
+
"aria-label": e.$t("pdf.previousPage"),
|
|
1796
|
+
text: "",
|
|
1797
|
+
size: "small",
|
|
1798
|
+
disabled: X.value <= 1,
|
|
1799
|
+
onClick: Nl
|
|
1800
|
+
}, null, 8, ["aria-label", "disabled"]),
|
|
1801
|
+
n("span", is, p(X.value) + " / " + p(j.value), 1),
|
|
1802
|
+
i(r(w), {
|
|
1803
|
+
icon: "ri-arrow-right-s-line",
|
|
1804
|
+
"aria-label": e.$t("pdf.nextPage"),
|
|
1805
|
+
text: "",
|
|
1806
|
+
size: "small",
|
|
1807
|
+
disabled: X.value >= j.value,
|
|
1808
|
+
onClick: Rl
|
|
1809
|
+
}, null, 8, ["aria-label", "disabled"])
|
|
1810
|
+
])) : N("", !0),
|
|
1811
|
+
n("div", cs, [
|
|
1812
|
+
i(r(el), {
|
|
1813
|
+
pdf: r(Fe),
|
|
1814
|
+
page: X.value,
|
|
1815
|
+
scale: 0.6,
|
|
1816
|
+
annotations: !1,
|
|
1817
|
+
text: !1
|
|
1818
|
+
}, null, 8, ["pdf", "page"])
|
|
1819
|
+
])
|
|
1820
|
+
])) : N("", !0) : (m(), b("div", ts, [
|
|
1821
|
+
l[26] || (l[26] = n("i", {
|
|
1822
|
+
class: "ri-file-pdf-line preview-icon",
|
|
1823
|
+
"aria-hidden": "true"
|
|
1824
|
+
}, null, -1)),
|
|
1825
|
+
n("p", os, p(e.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")), 1)
|
|
1826
|
+
]))
|
|
1827
|
+
])
|
|
1828
|
+
])) : N("", !0)
|
|
1829
|
+
]),
|
|
1830
|
+
_: 1
|
|
1831
|
+
}),
|
|
1832
|
+
i(r(tl), { value: 2 }, {
|
|
1833
|
+
default: I(() => [
|
|
1834
|
+
Xe.value ? (m(), b("div", ds, [
|
|
1835
|
+
i(r(Ue), {
|
|
1836
|
+
class: "spinner-sm",
|
|
1837
|
+
strokeWidth: "8"
|
|
1838
|
+
}),
|
|
1839
|
+
n("span", null, p(e.$t("pdfTools.insertFromAlfresco.loading")), 1)
|
|
1840
|
+
])) : Me.value.length ? (m(), b("div", vs, [
|
|
1841
|
+
n("div", fs, [
|
|
1842
|
+
(m(!0), b(Ze, null, Qe(Me.value, (t) => (m(), b("div", {
|
|
1843
|
+
key: t.id,
|
|
1844
|
+
class: K(["favorite-item", {
|
|
1845
|
+
"favorite-item-selected": B.value?.id === t.id
|
|
1846
|
+
}]),
|
|
1847
|
+
onClick: (s) => il(t)
|
|
1848
|
+
}, [
|
|
1849
|
+
n("div", ms, [
|
|
1850
|
+
l[27] || (l[27] = n("i", {
|
|
1851
|
+
class: "ri-file-pdf-line",
|
|
1852
|
+
"aria-hidden": "true"
|
|
1853
|
+
}, null, -1)),
|
|
1854
|
+
Le((m(), b("span", gs, [
|
|
1855
|
+
te(p(t.name), 1)
|
|
1856
|
+
])), [
|
|
1857
|
+
[
|
|
1858
|
+
o,
|
|
1859
|
+
t.name,
|
|
1860
|
+
void 0,
|
|
1861
|
+
{ top: !0 }
|
|
1862
|
+
]
|
|
1863
|
+
])
|
|
1864
|
+
])
|
|
1865
|
+
], 10, ps))), 128))
|
|
1866
|
+
]),
|
|
1867
|
+
n("div", ys, [
|
|
1868
|
+
B.value ? Ye.value ? (m(), b("div", ws, [
|
|
1869
|
+
i(r(Ue), {
|
|
1870
|
+
class: "spinner-md",
|
|
1871
|
+
strokeWidth: "6"
|
|
1872
|
+
}),
|
|
1873
|
+
n("p", Ts, p(e.$t("pdfTools.insertFromAlfresco.loadingPreview")), 1)
|
|
1874
|
+
])) : r(Fe) ? (m(), b("div", Es, [
|
|
1875
|
+
j.value > 0 ? (m(), b("div", Ps, [
|
|
1876
|
+
i(r(w), {
|
|
1877
|
+
icon: "ri-arrow-left-s-line",
|
|
1878
|
+
"aria-label": e.$t("pdf.previousPage"),
|
|
1879
|
+
text: "",
|
|
1880
|
+
size: "small",
|
|
1881
|
+
disabled: X.value <= 1,
|
|
1882
|
+
onClick: Nl
|
|
1883
|
+
}, null, 8, ["aria-label", "disabled"]),
|
|
1884
|
+
n("span", xs, p(X.value) + " / " + p(j.value), 1),
|
|
1885
|
+
i(r(w), {
|
|
1886
|
+
icon: "ri-arrow-right-s-line",
|
|
1887
|
+
"aria-label": e.$t("pdf.nextPage"),
|
|
1888
|
+
text: "",
|
|
1889
|
+
size: "small",
|
|
1890
|
+
disabled: X.value >= j.value,
|
|
1891
|
+
onClick: Rl
|
|
1892
|
+
}, null, 8, ["aria-label", "disabled"])
|
|
1893
|
+
])) : N("", !0),
|
|
1894
|
+
n("div", ks, [
|
|
1895
|
+
i(r(el), {
|
|
1896
|
+
pdf: r(Fe),
|
|
1897
|
+
page: X.value,
|
|
1898
|
+
scale: 0.6,
|
|
1899
|
+
annotations: !1,
|
|
1900
|
+
text: !1
|
|
1901
|
+
}, null, 8, ["pdf", "page"])
|
|
1902
|
+
])
|
|
1903
|
+
])) : N("", !0) : (m(), b("div", hs, [
|
|
1904
|
+
l[28] || (l[28] = n("i", {
|
|
1905
|
+
class: "ri-file-pdf-line preview-icon",
|
|
1906
|
+
"aria-hidden": "true"
|
|
1907
|
+
}, null, -1)),
|
|
1908
|
+
n("p", bs, p(e.$t("pdfTools.insertFromAlfresco.selectPdfToPreview")), 1)
|
|
1909
|
+
]))
|
|
1910
|
+
])
|
|
1911
|
+
])) : (m(), b("div", us, p(e.$t("pdfTools.insertFromAlfresco.noPdfFavorite")), 1))
|
|
1912
|
+
]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
}),
|
|
1915
|
+
i(r(tl), { value: 3 }, {
|
|
1916
|
+
default: I(() => [
|
|
1917
|
+
n("div", Cs, [
|
|
1918
|
+
n("div", Is, [
|
|
1919
|
+
n("label", $s, p(e.$t("pdfTools.insertFromAlfresco.alfrescoIdUrl")), 1),
|
|
1920
|
+
i(r(Be), {
|
|
1921
|
+
id: "alfrescoNodeId",
|
|
1922
|
+
modelValue: re.value,
|
|
1923
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => re.value = t),
|
|
1924
|
+
placeholder: e.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")
|
|
1925
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1926
|
+
n("small", Ss, p(e.$t("pdfTools.insertFromAlfresco.alfrescoIdUrlHint")), 1)
|
|
1927
|
+
])
|
|
1928
|
+
])
|
|
1929
|
+
]),
|
|
1930
|
+
_: 1
|
|
1931
|
+
})
|
|
1932
|
+
]),
|
|
1933
|
+
_: 1
|
|
1934
|
+
})
|
|
1935
|
+
]),
|
|
1936
|
+
_: 1
|
|
1937
|
+
})
|
|
1938
|
+
]),
|
|
1939
|
+
_: 1
|
|
1940
|
+
}, 8, ["visible", "header"])
|
|
1941
|
+
]);
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
}, dn = /* @__PURE__ */ wt(Ls, [["__scopeId", "data-v-baa89411"]]);
|
|
1945
|
+
export {
|
|
1946
|
+
dn as default
|
|
1947
|
+
};
|
|
1948
|
+
//# sourceMappingURL=PdfToolsComponent-nHHo5LtF.js.map
|