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.
|
|
|
|
//
|
|
|
|
|
2022-04-19 09:38:31 +00:00
|
|
|
import type { Ref, Space } from '@anticrm/core'
|
|
|
|
import { ObjectSearchCategory, ObjectSearchFactory } from '@anticrm/model-presentation'
|
2021-12-15 09:04:43 +00:00
|
|
|
import type { IntlString, Resource } from '@anticrm/platform'
|
2021-08-07 14:49:14 +00:00
|
|
|
import { mergeIds } from '@anticrm/platform'
|
2022-01-19 09:09:08 +00:00
|
|
|
import { KanbanTemplate, taskId } from '@anticrm/task'
|
|
|
|
import task from '@anticrm/task-resources/src/plugin'
|
2021-11-30 15:39:08 +00:00
|
|
|
import type { AnyComponent } from '@anticrm/ui'
|
2022-05-04 08:08:12 +00:00
|
|
|
import type { Action, ActionCategory, ViewAction } from '@anticrm/view'
|
2021-08-07 14:49:14 +00:00
|
|
|
|
|
|
|
export default mergeIds(taskId, task, {
|
2021-12-15 09:04:43 +00:00
|
|
|
action: {
|
2021-12-20 10:18:29 +00:00
|
|
|
EditStatuses: '' as Ref<Action>,
|
2021-12-21 09:08:22 +00:00
|
|
|
ArchiveSpace: '' as Ref<Action>,
|
2022-05-17 08:36:11 +00:00
|
|
|
UnarchiveSpace: '' as Ref<Action>,
|
|
|
|
Move: '' as Ref<Action>
|
2021-12-15 09:04:43 +00:00
|
|
|
},
|
|
|
|
actionImpl: {
|
2022-04-19 09:38:31 +00:00
|
|
|
EditStatuses: '' as ViewAction,
|
|
|
|
TodoItemMarkDone: '' as ViewAction,
|
|
|
|
TodoItemMarkUnDone: '' as ViewAction,
|
|
|
|
ArchiveSpace: '' as ViewAction,
|
|
|
|
UnarchiveSpace: '' as ViewAction
|
2021-12-15 09:04:43 +00:00
|
|
|
},
|
2022-05-04 08:08:12 +00:00
|
|
|
category: {
|
|
|
|
Task: '' as Ref<ActionCategory>
|
|
|
|
},
|
2021-08-07 14:49:14 +00:00
|
|
|
component: {
|
|
|
|
ProjectView: '' as AnyComponent,
|
|
|
|
CreateProject: '' 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,
|
2022-01-31 09:07:56 +00:00
|
|
|
DoneStateEditor: '' 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,
|
2022-01-18 10:21:32 +00:00
|
|
|
StatusTableView: '' as AnyComponent,
|
|
|
|
TaskHeader: '' as AnyComponent
|
2021-08-07 14:49:14 +00:00
|
|
|
},
|
|
|
|
string: {
|
2022-01-19 09:09:08 +00:00
|
|
|
TaskState: '' as IntlString,
|
|
|
|
TaskStateTitle: '' as IntlString,
|
|
|
|
TaskStateDone: '' as IntlString,
|
|
|
|
TaskNumber: '' as IntlString,
|
|
|
|
Todo: '' as IntlString,
|
|
|
|
TaskDone: '' as IntlString,
|
|
|
|
TaskDueTo: '' as IntlString,
|
|
|
|
TaskParent: '' as IntlString,
|
|
|
|
IssueName: '' as IntlString,
|
|
|
|
TaskComments: '' as IntlString,
|
|
|
|
TaskLabels: '' as IntlString,
|
|
|
|
StateTemplateTitle: '' as IntlString,
|
|
|
|
StateTemplateColor: '' as IntlString,
|
|
|
|
KanbanTemplateTitle: '' as IntlString,
|
|
|
|
Rank: '' as IntlString,
|
|
|
|
EditStates: '' as IntlString,
|
|
|
|
MarkAsDone: '' as IntlString,
|
|
|
|
MarkAsUndone: '' as IntlString,
|
|
|
|
Kanban: '' as IntlString,
|
2021-08-07 14:49:14 +00:00
|
|
|
ApplicationLabelTask: '' as IntlString,
|
2022-01-21 09:05:55 +00:00
|
|
|
Projects: '' as IntlString,
|
2022-02-23 16:10:11 +00:00
|
|
|
SearchTask: '' as IntlString,
|
|
|
|
ManageProjectStatues: '' 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>
|
2022-01-21 09:05:55 +00:00
|
|
|
},
|
|
|
|
completion: {
|
|
|
|
IssueQuery: '' as Resource<ObjectSearchFactory>,
|
|
|
|
IssueCategory: '' as Ref<ObjectSearchCategory>
|
2021-08-07 14:49:14 +00:00
|
|
|
}
|
|
|
|
})
|