Skip to content

Commit 67bf5c6

Browse files
committed
refactor: rename files
1 parent 7a14ff2 commit 67bf5c6

29 files changed

Lines changed: 234 additions & 68 deletions

packages/devextreme/js/__internal/scheduler/__tests__/workspace.base.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import {
44
import { logger } from '@ts/core/utils/m_console';
55

66
import { getResourceManagerMock } from '../__mock__/resource_manager.mock';
7-
import SchedulerTimelineDay from '../workspaces/m_timeline_day';
8-
import SchedulerTimelineMonth from '../workspaces/m_timeline_month';
9-
import SchedulerTimelineWeek from '../workspaces/m_timeline_week';
107
import type SchedulerWorkSpace from '../workspaces/m_work_space';
11-
import SchedulerWorkSpaceDay from '../workspaces/m_work_space_day';
12-
import SchedulerWorkSpaceMonth from '../workspaces/m_work_space_month';
13-
import SchedulerWorkSpaceWeek from '../workspaces/m_work_space_week';
8+
import SchedulerTimelineDay from '../workspaces/timeline_day';
9+
import SchedulerTimelineMonth from '../workspaces/timeline_month';
10+
import SchedulerTimelineWeek from '../workspaces/timeline_week';
11+
import SchedulerWorkSpaceDay from '../workspaces/work_space_day';
12+
import SchedulerWorkSpaceMonth from '../workspaces/work_space_month';
13+
import SchedulerWorkSpaceWeek from '../workspaces/work_space_week';
1414
import { setupSchedulerTestEnvironment } from './__mock__/m_mock_scheduler';
1515

1616
jest.mock('@ts/core/m_devices', () => {

packages/devextreme/js/__internal/scheduler/m_scheduler.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ import { ResourceManager } from './utils/resource_manager/resource_manager';
8686
import AppointmentLayoutManager from './view_model/appointments_layout_manager';
8787
import { AppointmentDataSource } from './view_model/m_appointment_data_source';
8888
import type { AppointmentViewModelPlain } from './view_model/types';
89-
import SchedulerAgenda from './workspaces/m_agenda';
90-
import SchedulerTimelineDay from './workspaces/m_timeline_day';
91-
import SchedulerTimelineMonth from './workspaces/m_timeline_month';
92-
import SchedulerTimelineWeek from './workspaces/m_timeline_week';
93-
import SchedulerWorkSpaceDay from './workspaces/m_work_space_day';
94-
import SchedulerWorkSpaceMonth from './workspaces/m_work_space_month';
95-
import SchedulerWorkSpaceWeek from './workspaces/m_work_space_week';
89+
import SchedulerAgenda from './workspaces/agenda';
90+
import SchedulerTimelineDay from './workspaces/timeline_day';
91+
import SchedulerTimelineMonth from './workspaces/timeline_month';
92+
import SchedulerTimelineWeek from './workspaces/timeline_week';
93+
import SchedulerWorkSpaceDay from './workspaces/work_space_day';
94+
import SchedulerWorkSpaceMonth from './workspaces/work_space_month';
95+
import SchedulerWorkSpaceWeek from './workspaces/work_space_week';
9696

9797
const toMs = dateUtils.dateToMilliseconds;
9898

@@ -171,12 +171,12 @@ class Scheduler extends SchedulerOptionsBaseWidget {
171171

172172
private a11yStatus!: dxElementWrapper;
173173

174-
// TODO: used externally in m_appointment_drag_behavior.ts, m_subscribes.ts, workspaces/m_work_space.ts
174+
// TODO: used externally in m_appointment_drag_behavior.ts, m_subscribes.ts, workspaces/work_space.ts
175175
_workSpace: any;
176176

177177
private header?: SchedulerHeader;
178178

179-
// TODO: used externally in m_appointment_drag_behavior.ts, m_subscribes.ts, workspaces/m_work_space.ts
179+
// TODO: used externally in m_appointment_drag_behavior.ts, m_subscribes.ts, workspaces/work_space.ts
180180
_appointments: any;
181181

182182
private appointmentDragController!: AppointmentDragController;
@@ -540,6 +540,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
540540
this.updateOption('workSpace', name, value);
541541
this.repaint();
542542
break;
543+
// @ts-expect-error
543544
case 'skippedDays':
544545
break;
545546
case 'indicatorTime':

packages/devextreme/js/__internal/scheduler/workspaces/m_agenda.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/agenda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class SchedulerAgenda extends WorkSpace {
200200

201201
private renderNoData(): void {
202202
this.$noDataContainer = $('<div>').addClass(NODATA_CONTAINER_CLASS)
203-
.html(this.option('noDataText') as string);
203+
.html(this.option('noDataText'));
204204

205205
this.$dateTableScrollable.$content().append(this.$noDataContainer);
206206
}

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_month.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { formatWeekday, monthUtils } from '@ts/scheduler/r1/utils/index';
99
import { utils } from '../m_utils';
1010
import { VIEWS } from '../utils/options/constants_view';
1111
import type { ViewDateGenerationOptions } from './m_work_space';
12-
import SchedulerWorkSpace from './m_work_space_indicator';
12+
import SchedulerWorkSpace from './work_space_indicator';
1313

1414
const MONTH_CLASS = 'dx-scheduler-work-space-month';
1515

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_vertical.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { formatWeekdayAndDay } from '@ts/scheduler/r1/utils/index';
22

3-
import SchedulerWorkSpaceIndicator from './m_work_space_indicator';
3+
import SchedulerWorkSpaceIndicator from './work_space_indicator';
44

55
class SchedulerWorkspaceVertical extends SchedulerWorkSpaceIndicator {
66
protected override getFormat() {

packages/devextreme/js/__internal/scheduler/workspaces/m_timeline.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/timeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import timezoneUtils from '../m_utils_time_zone';
2020
import HorizontalShader from '../shaders/current_time_shader_horizontal';
2121
import { getFirstVisibleDate } from '../utils/skipped_days';
2222
import type { WorkspaceDateTableScrollableConfig, WorkspaceHeaderScrollableConfig } from './m_work_space';
23-
import SchedulerWorkSpace, { type WorkSpaceIndicatorDefaultOptions } from './m_work_space_indicator';
2423
import type { ViewDataProviderOptions } from './view_model/m_types';
24+
import SchedulerWorkSpace, { type WorkSpaceIndicatorDefaultOptions } from './work_space_indicator';
2525

2626
const { tableCreator } = tableCreatorModule;
2727

packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_day.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/timeline_day.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import registerComponent from '@js/core/component_registrator';
22

33
import { VIEWS } from '../utils/options/constants_view';
4-
import SchedulerTimeline from './m_timeline';
4+
import SchedulerTimeline from './timeline';
55

66
const TIMELINE_CLASS = 'dx-scheduler-timeline-day';
77

packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_month.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/timeline_month.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { HeaderPanelComponent } from '@ts/scheduler/r1/components/index';
55
import { formatWeekdayAndDay, monthUtils } from '@ts/scheduler/r1/utils/index';
66

77
import { VIEWS } from '../utils/options/constants_view';
8-
import SchedulerTimeline from './m_timeline';
8+
import SchedulerTimeline from './timeline';
99
import type { ViewDataProviderOptions } from './view_model/m_types';
1010

1111
const TIMELINE_CLASS = 'dx-scheduler-timeline-month';

packages/devextreme/js/__internal/scheduler/workspaces/m_timeline_week.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/timeline_week.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import registerComponent from '@js/core/component_registrator';
22

33
import { VIEWS } from '../utils/options/constants_view';
4-
import SchedulerTimeline from './m_timeline';
4+
import SchedulerTimeline from './timeline';
55

66
const TIMELINE_CLASS = 'dx-scheduler-timeline-week';
77
const TIMELINE_WORK_WEEK_CLASS = 'dx-scheduler-timeline-work-week';

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space_day.ts renamed to packages/devextreme/js/__internal/scheduler/workspaces/work_space_day.ts

File renamed without changes.

0 commit comments

Comments
 (0)