-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ilya Vinogradov
committed
Sep 8, 2023
1 parent
7016a9c
commit 1ad989c
Showing
24 changed files
with
112 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/devextreme/js/renovation/ui/scheduler/appointment_tooltip/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/devextreme/js/renovation/ui/scheduler/appointment_tooltip/utils/default_functions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { FormattedContent } from '../types'; | ||
/* eslint-disable-next-line import/named */ | ||
import { dxSchedulerAppointment } from '../../../../../ui/scheduler'; | ||
import type { dxSchedulerAppointment } from '../../../../../ui/scheduler'; | ||
|
||
export const defaultGetTextAndFormatDate = (): FormattedContent => ({ text: '', formatDate: '' }); | ||
export const defaultGetSingleAppointment = (): dxSchedulerAppointment => ({}); |
2 changes: 1 addition & 1 deletion
2
...vextreme/js/renovation/ui/scheduler/appointment_tooltip/utils/get_current_appointment.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/devextreme/js/renovation/ui/scheduler/model/__tests__/appointments.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
packages/devextreme/js/renovation/ui/scheduler/model/utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { ViewType } from '../types'; | ||
|
||
export const getAppointmentRenderingStrategyName = (viewType: ViewType): string => { | ||
const appointmentRenderingStrategyMap: Record<ViewType, { renderingStrategy: string }> = { | ||
day: { | ||
renderingStrategy: 'vertical', | ||
}, | ||
week: { | ||
renderingStrategy: 'week', | ||
}, | ||
workWeek: { | ||
renderingStrategy: 'week', | ||
}, | ||
month: { | ||
renderingStrategy: 'horizontalMonth', | ||
}, | ||
timelineDay: { | ||
renderingStrategy: 'horizontal', | ||
}, | ||
timelineWeek: { | ||
renderingStrategy: 'horizontal', | ||
}, | ||
timelineWorkWeek: { | ||
renderingStrategy: 'horizontal', | ||
}, | ||
timelineMonth: { | ||
renderingStrategy: 'horizontalMonthLine', | ||
}, | ||
agenda: { | ||
renderingStrategy: 'agenda', | ||
}, | ||
}; | ||
|
||
const { renderingStrategy } = appointmentRenderingStrategyMap[viewType]; | ||
|
||
return renderingStrategy; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/devextreme/js/renovation/ui/scheduler/timeZoneCalculator/createTimeZoneCalculator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/devextreme/js/renovation/ui/scheduler/utils/recurrence/excludeFromRecurrence.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/devextreme/js/renovation/ui/scheduler/view_model/to_test/views/utils/timeline_week.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.