2021-08-07 14:49:14 +00:00
|
|
|
//
|
|
|
|
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
|
|
|
// Copyright © 2021 Hardcore Engineering Inc.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
2021-12-15 09:04:43 +00:00
|
|
|
import type { Doc, Ref, Space } from '@anticrm/core'
|
|
|
|
import type { IntlString, Resource } from '@anticrm/platform'
|
2021-08-07 14:49:14 +00:00
|
|
|
import { mergeIds } from '@anticrm/platform'
|
2021-12-22 09:04:07 +00:00
|
|
|
import task, { KanbanTemplate, taskId } from '@anticrm/task'
|
2021-11-30 15:39:08 +00:00
|
|
|
import type { AnyComponent } from '@anticrm/ui'
|
|
|
|
import { Application } from '@anticrm/workbench'
|
2021-12-15 09:04:43 +00:00
|
|
|
import type { Action } from '@anticrm/view'
|
2021-08-07 14:49:14 +00:00
|
|
|
|
|
|
|
export default mergeIds(taskId, task, {
|
2021-11-30 15:39:08 +00:00
|
|
|
app: {
|
|
|
|
Tasks: '' as Ref<Application>
|
|
|
|
},
|
2021-12-15 09:04:43 +00:00
|
|
|
action: {
|
|
|
|
CreateTask: '' as Ref<Action>,
|
2021-12-20 10:18:29 +00:00
|
|
|
EditStatuses: '' as Ref<Action>,
|
|
|
|
TodoItemMarkDone: '' as Ref<Action>,
|
2021-12-21 09:08:22 +00:00
|
|
|
TodoItemMarkUnDone: '' as Ref<Action>,
|
|
|
|
ArchiveSpace: '' as Ref<Action>,
|
|
|
|
UnarchiveSpace: '' as Ref<Action>
|
2021-12-15 09:04:43 +00:00
|
|
|
},
|
|
|
|
actionImpl: {
|
|
|
|
CreateTask: '' as Resource<(object: Doc) => Promise<void>>,
|
2021-12-20 10:18:29 +00:00
|
|
|
EditStatuses: '' as Resource<(object: Doc) => Promise<void>>,
|
|
|
|
TodoItemMarkDone: '' as Resource<(object: Doc) => Promise<void>>,
|
2021-12-21 09:08:22 +00:00
|
|
|
TodoItemMarkUnDone: '' as Resource<(object: Doc) => Promise<void>>,
|
|
|
|
ArchiveSpace: '' as Resource<(object: Doc) => Promise<void>>,
|
|
|
|
UnarchiveSpace: '' as Resource<(object: Doc) => Promise<void>>
|
2021-12-15 09:04:43 +00:00
|
|
|
},
|
2021-08-07 14:49:14 +00:00
|
|
|
component: {
|
|
|
|
ProjectView: '' as AnyComponent,
|
|
|
|
CreateProject: '' as AnyComponent,
|
2021-11-30 15:39:08 +00:00
|
|
|
CreateTask: '' as AnyComponent,
|
|
|
|
EditTask: '' as AnyComponent,
|
2021-12-17 09:04:49 +00:00
|
|
|
EditIssue: '' as AnyComponent,
|
2021-12-02 13:12:16 +00:00
|
|
|
TaskPresenter: '' as AnyComponent,
|
2021-12-14 09:24:14 +00:00
|
|
|
KanbanCard: '' as AnyComponent,
|
2021-12-15 09:04:43 +00:00
|
|
|
TemplatesIcon: '' as AnyComponent,
|
|
|
|
StatePresenter: '' as AnyComponent,
|
2021-12-17 10:00:18 +00:00
|
|
|
DoneStatePresenter: '' as AnyComponent,
|
2021-12-15 09:04:43 +00:00
|
|
|
StateEditor: '' as AnyComponent,
|
2021-12-20 10:18:29 +00:00
|
|
|
KanbanView: '' as AnyComponent,
|
|
|
|
Todos: '' as AnyComponent,
|
2021-12-21 09:36:50 +00:00
|
|
|
TodoItemPresenter: '' as AnyComponent,
|
|
|
|
StatusTableView: '' as AnyComponent
|
2021-08-07 14:49:14 +00:00
|
|
|
},
|
|
|
|
string: {
|
2021-11-30 15:39:08 +00:00
|
|
|
Task: '' as IntlString,
|
2021-08-07 14:49:14 +00:00
|
|
|
ApplicationLabelTask: '' as IntlString,
|
|
|
|
Projects: '' as IntlString,
|
|
|
|
CreateProject: '' as IntlString
|
2021-11-30 15:39:08 +00:00
|
|
|
},
|
|
|
|
space: {
|
|
|
|
TasksPublic: '' as Ref<Space>
|
2021-12-22 09:04:07 +00:00
|
|
|
},
|
|
|
|
template: {
|
|
|
|
DefaultProject: '' as Ref<KanbanTemplate>
|
2021-08-07 14:49:14 +00:00
|
|
|
}
|
|
|
|
})
|