2022-03-18 06:37:49 +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.
|
|
|
|
//
|
|
|
|
|
2022-09-21 08:08:25 +00:00
|
|
|
import { TxViewlet } from '@hcengineering/activity'
|
|
|
|
import { calendarId } from '@hcengineering/calendar'
|
|
|
|
import calendar from '@hcengineering/calendar-resources/src/plugin'
|
|
|
|
import { Ref } from '@hcengineering/core'
|
2023-04-25 08:34:38 +00:00
|
|
|
import { NotificationGroup } from '@hcengineering/notification'
|
2022-09-21 08:08:25 +00:00
|
|
|
import type { IntlString } from '@hcengineering/platform'
|
|
|
|
import { mergeIds } from '@hcengineering/platform'
|
|
|
|
import { AnyComponent } from '@hcengineering/ui'
|
|
|
|
import { Action, ActionCategory, ViewAction, Viewlet, ViewletDescriptor } from '@hcengineering/view'
|
2022-03-18 06:37:49 +00:00
|
|
|
|
|
|
|
export default mergeIds(calendarId, calendar, {
|
|
|
|
component: {
|
2023-07-10 15:50:29 +00:00
|
|
|
IntegrationConnect: '' as AnyComponent,
|
2022-03-18 16:07:42 +00:00
|
|
|
CreateCalendar: '' as AnyComponent,
|
2023-07-10 15:50:29 +00:00
|
|
|
EventPresenter: '' as AnyComponent,
|
2023-08-07 12:39:04 +00:00
|
|
|
CalendarIntegrationIcon: '' as AnyComponent,
|
2023-08-14 12:35:07 +00:00
|
|
|
CalendarEventPresenter: '' as AnyComponent,
|
|
|
|
IntegrationConfigure: '' as AnyComponent
|
2022-03-26 17:34:06 +00:00
|
|
|
},
|
|
|
|
action: {
|
2023-07-10 15:50:29 +00:00
|
|
|
SaveEventReminder: '' as Ref<Action>,
|
|
|
|
DeleteRecEvent: '' as Ref<Action>
|
2022-03-26 17:34:06 +00:00
|
|
|
},
|
2022-05-04 08:08:12 +00:00
|
|
|
category: {
|
|
|
|
Calendar: '' as Ref<ActionCategory>
|
|
|
|
},
|
2022-03-26 17:34:06 +00:00
|
|
|
actionImpl: {
|
2023-07-10 15:50:29 +00:00
|
|
|
SaveEventReminder: '' as ViewAction,
|
|
|
|
DeleteRecEvent: '' as ViewAction
|
2022-03-18 06:37:49 +00:00
|
|
|
},
|
|
|
|
string: {
|
2022-03-18 16:07:42 +00:00
|
|
|
ApplicationLabelCalendar: '' as IntlString,
|
2022-03-26 17:34:06 +00:00
|
|
|
Event: '' as IntlString,
|
|
|
|
Reminder: '' as IntlString,
|
|
|
|
Shift: '' as IntlString,
|
|
|
|
State: '' as IntlString,
|
2023-04-25 07:34:10 +00:00
|
|
|
CreatedReminder: '' as IntlString,
|
|
|
|
ConfigLabel: '' as IntlString,
|
2023-07-10 15:50:29 +00:00
|
|
|
ConfigDescription: '' as IntlString,
|
|
|
|
IntegrationDescr: '' as IntlString
|
2022-03-18 06:37:49 +00:00
|
|
|
},
|
2022-03-18 16:07:42 +00:00
|
|
|
viewlet: {
|
2022-06-15 12:00:32 +00:00
|
|
|
Calendar: '' as Ref<ViewletDescriptor>,
|
|
|
|
CalendarEvent: '' as Ref<Viewlet>
|
2022-03-26 17:34:06 +00:00
|
|
|
},
|
|
|
|
ids: {
|
2023-04-25 08:34:38 +00:00
|
|
|
ReminderViewlet: '' as Ref<TxViewlet>,
|
|
|
|
CalendarNotificationGroup: '' as Ref<NotificationGroup>
|
2022-03-18 06:37:49 +00:00
|
|
|
}
|
|
|
|
})
|