2021-08-07 06:17:42 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020 Anticrm Platform Contributors.
|
|
|
|
//
|
|
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License. You may
|
|
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
//
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
|
2024-05-22 15:14:24 +00:00
|
|
|
import { type Blob, type Doc, type Ref } from '@hcengineering/core'
|
2024-03-27 08:49:36 +00:00
|
|
|
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
2023-11-20 15:22:42 +00:00
|
|
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
2023-11-20 10:01:43 +00:00
|
|
|
import { type FilterFunction, type ViewAction, type ViewCategoryAction, viewId } from '@hcengineering/view'
|
2024-07-17 09:39:03 +00:00
|
|
|
import { type BlobMetadata, type FileOrBlob, type FilePreviewExtension } from '@hcengineering/presentation'
|
2023-11-20 15:22:42 +00:00
|
|
|
import { type PresentationMiddlewareFactory } from '@hcengineering/presentation/src/pipeline'
|
2022-09-21 08:08:25 +00:00
|
|
|
import view from '@hcengineering/view-resources/src/plugin'
|
2021-08-07 06:17:42 +00:00
|
|
|
|
|
|
|
export default mergeIds(viewId, view, {
|
2021-09-25 16:48:22 +00:00
|
|
|
actionImpl: {
|
2023-05-10 11:41:21 +00:00
|
|
|
Archive: '' as ViewAction,
|
2024-09-12 07:06:05 +00:00
|
|
|
UnArchive: '' as ViewAction,
|
2024-05-10 11:54:34 +00:00
|
|
|
Join: '' as ViewAction,
|
|
|
|
Leave: '' as ViewAction,
|
2022-04-19 09:38:31 +00:00
|
|
|
Move: '' as ViewAction,
|
|
|
|
MoveLeft: '' as ViewAction,
|
|
|
|
MoveRight: '' as ViewAction,
|
|
|
|
MoveUp: '' as ViewAction,
|
|
|
|
MoveDown: '' as ViewAction,
|
|
|
|
|
|
|
|
SelectItem: '' as ViewAction,
|
|
|
|
SelectItemAll: '' as ViewAction,
|
|
|
|
SelectItemNone: '' as ViewAction,
|
|
|
|
SelectUp: '' as ViewAction,
|
|
|
|
SelectDown: '' as ViewAction,
|
|
|
|
|
|
|
|
ShowPreview: '' as ViewAction,
|
2022-04-22 06:30:34 +00:00
|
|
|
ShowActions: '' as ViewAction,
|
2023-03-29 04:25:26 +00:00
|
|
|
Preview: '' as ViewAction,
|
2022-04-22 06:30:34 +00:00
|
|
|
|
2024-01-30 11:08:28 +00:00
|
|
|
Open: '' as ViewAction,
|
|
|
|
OpenInNewTab: '' as ViewAction
|
2021-09-25 16:48:22 +00:00
|
|
|
},
|
2021-08-07 06:17:42 +00:00
|
|
|
component: {
|
|
|
|
StringEditor: '' as AnyComponent,
|
2022-05-28 07:33:11 +00:00
|
|
|
StringEditorPopup: '' as AnyComponent,
|
2021-08-07 06:17:42 +00:00
|
|
|
StringPresenter: '' as AnyComponent,
|
2022-11-04 06:07:27 +00:00
|
|
|
HyperlinkPresenter: '' as AnyComponent,
|
2023-07-19 12:46:03 +00:00
|
|
|
HyperlinkEditor: '' as AnyComponent,
|
|
|
|
HyperlinkEditorPopup: '' as AnyComponent,
|
2022-03-18 06:37:49 +00:00
|
|
|
IntlStringPresenter: '' as AnyComponent,
|
2024-06-21 09:36:01 +00:00
|
|
|
FileSizePresenter: '' as AnyComponent,
|
2022-02-16 09:02:31 +00:00
|
|
|
NumberEditor: '' as AnyComponent,
|
|
|
|
NumberPresenter: '' as AnyComponent,
|
2023-04-27 10:09:46 +00:00
|
|
|
MarkupDiffPresenter: '' as AnyComponent,
|
2023-01-12 19:56:35 +00:00
|
|
|
MarkupPresenter: '' as AnyComponent,
|
2021-11-22 10:55:52 +00:00
|
|
|
BooleanPresenter: '' as AnyComponent,
|
2021-10-04 19:18:23 +00:00
|
|
|
BooleanEditor: '' as AnyComponent,
|
2021-10-05 14:34:52 +00:00
|
|
|
TimestampPresenter: '' as AnyComponent,
|
2021-12-02 09:09:37 +00:00
|
|
|
DateEditor: '' as AnyComponent,
|
|
|
|
DatePresenter: '' as AnyComponent,
|
2022-05-13 06:38:54 +00:00
|
|
|
TableBrowser: '' as AnyComponent,
|
2022-04-28 10:05:28 +00:00
|
|
|
RolePresenter: '' as AnyComponent,
|
|
|
|
YoutubePresenter: '' as AnyComponent,
|
2022-05-05 14:50:28 +00:00
|
|
|
GithubPresenter: '' as AnyComponent,
|
2022-05-29 04:56:06 +00:00
|
|
|
ClassPresenter: '' as AnyComponent,
|
2023-01-14 10:54:54 +00:00
|
|
|
ClassRefPresenter: '' as AnyComponent,
|
2022-08-30 05:54:03 +00:00
|
|
|
EnumEditor: '' as AnyComponent,
|
2023-02-01 11:24:21 +00:00
|
|
|
EnumArrayEditor: '' as AnyComponent,
|
2023-01-12 19:56:35 +00:00
|
|
|
HTMLEditor: '' as AnyComponent,
|
2023-12-25 09:49:08 +00:00
|
|
|
CollaborativeHTMLEditor: '' as AnyComponent,
|
2024-02-22 11:39:50 +00:00
|
|
|
CollaborativeDocEditor: '' as AnyComponent,
|
2023-01-12 19:56:35 +00:00
|
|
|
MarkupEditor: '' as AnyComponent,
|
2023-01-14 10:54:54 +00:00
|
|
|
MarkupEditorPopup: '' as AnyComponent,
|
2023-01-24 13:42:47 +00:00
|
|
|
ListView: '' as AnyComponent,
|
2023-01-31 17:18:07 +00:00
|
|
|
IndexedDocumentPreview: '' as AnyComponent,
|
2023-02-07 04:52:34 +00:00
|
|
|
SpaceRefPresenter: '' as AnyComponent,
|
2023-04-04 06:11:49 +00:00
|
|
|
EnumPresenter: '' as AnyComponent,
|
|
|
|
StatusPresenter: '' as AnyComponent,
|
2023-05-18 16:17:34 +00:00
|
|
|
StatusRefPresenter: '' as AnyComponent,
|
|
|
|
DateFilterPresenter: '' as AnyComponent,
|
2024-05-22 15:14:24 +00:00
|
|
|
StringFilterPresenter: '' as AnyComponent,
|
|
|
|
AudioViewer: '' as AnyComponent,
|
|
|
|
ImageViewer: '' as AnyComponent,
|
|
|
|
VideoViewer: '' as AnyComponent,
|
2024-09-19 12:19:09 +00:00
|
|
|
PDFViewer: '' as AnyComponent,
|
|
|
|
TextViewer: '' as AnyComponent
|
2022-02-23 16:10:11 +00:00
|
|
|
},
|
|
|
|
string: {
|
|
|
|
Table: '' as IntlString,
|
2022-04-19 09:38:31 +00:00
|
|
|
Role: '' as IntlString,
|
|
|
|
// Keybaord actions
|
|
|
|
MoveUp: '' as IntlString,
|
|
|
|
MoveDown: '' as IntlString,
|
|
|
|
MoveLeft: '' as IntlString,
|
|
|
|
MoveRight: '' as IntlString,
|
|
|
|
SelectItem: '' as IntlString,
|
|
|
|
SelectItemAll: '' as IntlString,
|
|
|
|
SelectItemNone: '' as IntlString,
|
|
|
|
SelectUp: '' as IntlString,
|
|
|
|
SelectDown: '' as IntlString,
|
|
|
|
ShowPreview: '' as IntlString,
|
2022-04-22 06:30:34 +00:00
|
|
|
ShowActions: '' as IntlString,
|
2022-05-04 08:08:12 +00:00
|
|
|
// Action categories
|
|
|
|
General: '' as IntlString,
|
|
|
|
Navigation: '' as IntlString,
|
|
|
|
Editor: '' as IntlString,
|
2024-04-21 15:48:28 +00:00
|
|
|
MarkdownFormatting: '' as IntlString
|
2022-06-03 16:12:18 +00:00
|
|
|
},
|
|
|
|
function: {
|
2023-05-31 18:46:24 +00:00
|
|
|
FilterArrayAllResult: '' as FilterFunction,
|
|
|
|
FilterArrayAnyResult: '' as FilterFunction,
|
2023-02-08 06:42:26 +00:00
|
|
|
FilterObjectInResult: '' as FilterFunction,
|
|
|
|
FilterObjectNinResult: '' as FilterFunction,
|
|
|
|
FilterValueInResult: '' as FilterFunction,
|
|
|
|
FilterValueNinResult: '' as FilterFunction,
|
|
|
|
FilterBeforeResult: '' as FilterFunction,
|
|
|
|
FilterAfterResult: '' as FilterFunction,
|
2023-05-12 05:43:58 +00:00
|
|
|
FilterContainsResult: '' as FilterFunction,
|
2023-02-08 06:42:26 +00:00
|
|
|
FilterNestedMatchResult: '' as FilterFunction,
|
|
|
|
FilterNestedDontMatchResult: '' as FilterFunction,
|
2023-05-08 15:52:49 +00:00
|
|
|
FilterDateOutdated: '' as FilterFunction,
|
|
|
|
FilterDateToday: '' as FilterFunction,
|
2023-05-16 07:01:59 +00:00
|
|
|
FilterDateYesterday: '' as FilterFunction,
|
2023-05-08 15:52:49 +00:00
|
|
|
FilterDateWeek: '' as FilterFunction,
|
|
|
|
FilterDateNextWeek: '' as FilterFunction,
|
|
|
|
FilterDateMonth: '' as FilterFunction,
|
|
|
|
FilterDateNextMonth: '' as FilterFunction,
|
|
|
|
FilterDateNotSpecified: '' as FilterFunction,
|
|
|
|
FilterDateCustom: '' as FilterFunction,
|
2024-03-27 08:49:36 +00:00
|
|
|
ShowEmptyGroups: '' as ViewCategoryAction,
|
2024-05-04 13:49:24 +00:00
|
|
|
CanDeleteObject: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
|
|
|
CanEditSpace: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
|
|
|
CanArchiveSpace: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
2024-05-10 11:54:34 +00:00
|
|
|
CanDeleteSpace: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
|
|
|
CanJoinSpace: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
2024-05-22 15:14:24 +00:00
|
|
|
CanLeaveSpace: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
2024-09-20 15:08:22 +00:00
|
|
|
IsClipboardAvailable: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
|
2024-07-17 09:39:03 +00:00
|
|
|
BlobImageMetadata: '' as Resource<(file: FileOrBlob, blob: Ref<Blob>) => Promise<BlobMetadata | undefined>>,
|
|
|
|
BlobVideoMetadata: '' as Resource<(file: FileOrBlob, blob: Ref<Blob>) => Promise<BlobMetadata | undefined>>
|
2023-06-06 10:06:32 +00:00
|
|
|
},
|
|
|
|
pipeline: {
|
2024-02-15 15:19:33 +00:00
|
|
|
PresentationMiddleware: '' as Ref<PresentationMiddlewareFactory>,
|
|
|
|
AnalyticsMiddleware: '' as Ref<PresentationMiddlewareFactory>
|
2024-05-22 15:14:24 +00:00
|
|
|
},
|
|
|
|
extension: {
|
|
|
|
Audio: '' as Ref<FilePreviewExtension>,
|
|
|
|
Image: '' as Ref<FilePreviewExtension>,
|
|
|
|
Video: '' as Ref<FilePreviewExtension>,
|
2024-09-19 12:19:09 +00:00
|
|
|
PDF: '' as Ref<FilePreviewExtension>,
|
|
|
|
Text: '' as Ref<FilePreviewExtension>
|
2021-08-07 06:17:42 +00:00
|
|
|
}
|
|
|
|
})
|