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.
|
|
|
|
//
|
|
|
|
|
|
|
|
import { mergeIds } from '@anticrm/platform'
|
2021-09-25 16:48:22 +00:00
|
|
|
import type { Ref, Doc } from '@anticrm/core'
|
|
|
|
import type { Resource } from '@anticrm/platform'
|
2021-08-07 06:17:42 +00:00
|
|
|
import type { AnyComponent } from '@anticrm/ui'
|
2021-09-25 16:48:22 +00:00
|
|
|
import view, { viewId, Action } from '@anticrm/view'
|
2021-08-07 06:17:42 +00:00
|
|
|
|
|
|
|
export default mergeIds(viewId, view, {
|
2021-09-25 16:48:22 +00:00
|
|
|
action: {
|
2021-12-13 09:05:46 +00:00
|
|
|
Delete: '' as Ref<Action>,
|
|
|
|
Move: '' as Ref<Action>
|
2021-09-25 16:48:22 +00:00
|
|
|
},
|
|
|
|
actionImpl: {
|
2021-12-13 09:05:46 +00:00
|
|
|
Delete: '' as Resource<(doc: Doc) => Promise<void>>,
|
|
|
|
Move: '' as Resource<(doc: Doc) => Promise<void>>
|
2021-09-25 16:48:22 +00:00
|
|
|
},
|
2021-08-07 06:17:42 +00:00
|
|
|
component: {
|
|
|
|
StringEditor: '' as AnyComponent,
|
|
|
|
StringPresenter: '' as AnyComponent,
|
2022-02-16 09:02:31 +00:00
|
|
|
NumberEditor: '' as AnyComponent,
|
|
|
|
NumberPresenter: '' as AnyComponent,
|
2022-02-07 09:21:32 +00:00
|
|
|
HTMLPresenter: '' 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-01-18 10:21:32 +00:00
|
|
|
TableView: '' as AnyComponent,
|
|
|
|
RolePresenter: '' as AnyComponent
|
2021-08-07 06:17:42 +00:00
|
|
|
}
|
|
|
|
})
|