mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-20 03:15:41 +02:00
* feat: Ability to select multiple docs and to export to pdf Signed-off-by: Artem Savchenko <armisav@gmail.com> * Add loading indicator Signed-off-by: Artem Savchenko <armisav@gmail.com> * Fix layout Signed-off-by: Artem Savchenko <armisav@gmail.com> * Add scroller Signed-off-by: Artem Savchenko <armisav@gmail.com> --------- Signed-off-by: Artem Savchenko <armisav@gmail.com>
36 lines
924 B
TypeScript
36 lines
924 B
TypeScript
//
|
|
// Copyright © 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import { type Doc } from '@hcengineering/core'
|
|
import { type IntlString, type Metadata, type Plugin, plugin, type Asset, type Resource } from '@hcengineering/platform'
|
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
|
|
|
export const printId = 'print' as Plugin
|
|
|
|
export const print = plugin(printId, {
|
|
string: {
|
|
PrintToPDF: '' as IntlString,
|
|
PrintingDocumentOf: '' as IntlString,
|
|
DownloadAll: '' as IntlString,
|
|
PrintFailed: '' as IntlString
|
|
},
|
|
component: {
|
|
PrintToPDF: '' as AnyComponent,
|
|
PrintBulkToPDF: '' as AnyComponent,
|
|
DOCXViewer: '' as AnyComponent
|
|
},
|
|
icon: {
|
|
Print: '' as Asset
|
|
},
|
|
metadata: {
|
|
PrintURL: '' as Metadata<string>
|
|
},
|
|
function: {
|
|
CanPrint: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
|
CanConvert: '' as Resource<() => Promise<boolean>>
|
|
}
|
|
})
|
|
|
|
export default print
|