Skip to content

Commit

Permalink
Scheduler: Fix QUnit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Vinogradov committed Sep 8, 2023
1 parent 1ad989c commit 51d8f5b
Show file tree
Hide file tree
Showing 36 changed files with 76 additions and 74 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from 'jquery';
import SchedulerAgenda from 'ui/scheduler/workspaces/ui.scheduler.agenda';
import SchedulerAgenda from '__internal/scheduler/workspaces/m_agenda';
import dateLocalization from 'localization/date';
import { AppointmentDataProvider } from '__internal/scheduler/appointments/data_provider/m_appointment_data_provider';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import typeUtils from 'core/utils/type';
import { Deferred } from 'core/utils/deferred';
import fx from 'animation/fx';
import 'ui/scheduler/ui.scheduler';
import { ExpressionUtils } from 'ui/scheduler/expressionUtils';
import { ExpressionUtils } from '__internal/scheduler/m_expression_utils';
import { createExpressions } from '__internal/scheduler/resources/m_utils';

const { testStart, module, test } = QUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pointerMock from '../../helpers/pointerMock.js';
import keyboardMock from '../../helpers/keyboardMock.js';

import $ from 'jquery';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import '__internal/scheduler/workspaces/m_work_space_week';
import VerticalAppointmentsStrategy from '__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical';
import HorizontalMonthAppointmentsStrategy from '__internal/scheduler/appointments/rendering_strategies/m_strategy_horizontal_month';
import SchedulerAppointments from '__internal/scheduler/appointments/m_appointment_collection';
Expand All @@ -19,7 +19,7 @@ import config from 'core/config';
import Resizable from 'ui/resizable';
import fx from 'animation/fx';
import { DataSource } from 'data/data_source/data_source';
import { ExpressionUtils } from 'ui/scheduler/expressionUtils';
import { ExpressionUtils } from '__internal/scheduler/m_expression_utils';
import { Deferred } from 'core/utils/deferred';
import { createExpressions } from '__internal/scheduler/resources/m_utils';
import { AppointmentDataProvider } from '__internal/scheduler/appointments/data_provider/m_appointment_data_provider.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Deferred } from 'core/utils/deferred';
import fx from 'animation/fx';

import 'ui/scheduler/ui.scheduler';
import { ExpressionUtils } from 'ui/scheduler/expressionUtils';
import { ExpressionUtils } from '__internal/scheduler/m_expression_utils';
import { createExpressions } from '__internal/scheduler/resources/m_utils';

const { module, test, testStart } = QUnit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cache } from 'ui/scheduler/workspaces/cache';
import { Cache } from '__internal/scheduler/workspaces/m_cache';

const {
test,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CellsSelectionState from 'ui/scheduler/workspaces/cells_selection_state';
import CellsSelectionState from '__internal/scheduler/workspaces/m_cells_selection_state';

const { test, module } = QUnit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DataSource } from 'data/data_source/data_source';

import { triggerHidingEvent, triggerShownEvent } from 'events/visibility_change';
import $ from 'jquery';
import dxSchedulerWorkSpaceDay from 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import dxSchedulerWorkSpaceDay from '__internal/scheduler/workspaces/m_work_space_day';
import errors from 'ui/widget/ui.errors';
import keyboardMock from '../../helpers/keyboardMock.js';
import pointerMock from '../../helpers/pointerMock.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const SCHEDULER_DATE_TIME_INDICATOR_CLASS = 'dx-scheduler-date-time-indicator';

import 'generic_light.css!';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_day';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_week';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_work_week';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_month';
import '__internal/scheduler/workspaces/m_work_space_day';
import '__internal/scheduler/workspaces/m_work_space_week';
import '__internal/scheduler/workspaces/m_timeline_day';
import '__internal/scheduler/workspaces/m_timeline_week';
import '__internal/scheduler/workspaces/m_timeline_work_week';
import '__internal/scheduler/workspaces/m_timeline_month';

QUnit.testStart(function() {
$('#qunit-fixture').html('<div class="dx-scheduler"><div id="scheduler-work-space-rtl"></div><div id="scheduler-work-space"></div></div>');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DataSource } from 'data/data_source/data_source';
import ArrayStore from 'data/array_store';
import fx from 'animation/fx';
import translator from 'animation/translator';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';
import CustomStore from 'data/custom_store';
import { noop } from 'core/utils/common';
import pointerMock from '../../helpers/pointerMock.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { DataSource } from 'data/data_source/data_source';
import CustomStore from 'data/custom_store';
import dataUtils from 'core/element_data';
import { createWrapper, SchedulerTestWrapper, initTestMarkup } from '../../helpers/scheduler/helpers.js';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';

const {
module,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import translator from 'animation/translator';
import fx from 'animation/fx';
import { createWrapper } from '../../helpers/scheduler/helpers.js';
import themes from 'ui/themes';
import { CompactAppointmentsHelper } from 'ui/scheduler/compactAppointmentsHelper';
import { CompactAppointmentsHelper } from '__internal/scheduler/m_compact_appointments_helper';
import Widget from 'ui/widget/ui.widget';
import Color from 'color';
import { DataSource } from 'data/data_source/data_source';
import CustomStore from 'data/custom_store';
import AppointmentAdapter from 'ui/scheduler/appointmentAdapter';
import AppointmentAdapter from '__internal/scheduler/m_appointment_adapter';

import 'ui/scheduler/ui.scheduler';
import 'generic_light.css!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import fx from 'animation/fx';
import pointerMock from '../../helpers/pointerMock.js';
import { DataSource } from 'data/data_source/data_source';
import dataUtils from 'core/element_data';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';

import 'generic_light.css!';
import 'ui/scheduler/ui.scheduler';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { initTestMarkup, createWrapper } from '../../helpers/scheduler/helpers.j
import dateLocalization from 'localization/date';
import fx from 'animation/fx';
import { dateToMilliseconds as toMs } from 'core/utils/date';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';
import 'ui/scheduler/ui.scheduler';

import 'generic_light.css!';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
supportedScrollingModes
} from '../../helpers/scheduler/helpers.js';
import dateUtils from 'core/utils/date';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';

import 'generic_light.css!';
import 'ui/scheduler/ui.scheduler';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import keyboardMock from '../../helpers/keyboardMock.js';
import pointerMock from '../../helpers/pointerMock.js';
import translator from 'animation/translator';

import AppointmentLayoutManager from 'ui/scheduler/appointments.layout_manager';
import AppointmentLayoutManager from '__internal/scheduler/m_appointments_layout_manager';
import BaseAppointmentsStrategy from '__internal/scheduler/appointments/rendering_strategies/m_strategy_base';
import VerticalAppointmentStrategy from '__internal/scheduler/appointments/rendering_strategies/m_strategy_vertical';
import HorizontalAppointmentsStrategy from '__internal/scheduler/appointments/rendering_strategies/m_strategy_horizontal';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const $ = require('jquery');
const loading = require('ui/scheduler/loading');
const loading = require('__internal/scheduler/m_loading');
const viewPort = require('core/utils/view_port').value;
const fx = require('animation/fx');
const LoadPanel = require('ui/load_panel');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { initTestMarkup, createWrapper, isDesktopEnvironment, CLASSES } from '../../helpers/scheduler/helpers.js';
import pointerMock from '../../helpers/pointerMock.js';
import fx from 'animation/fx';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import { getRecurrenceProcessor } from 'ui/scheduler/recurrence';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';
import { getRecurrenceProcessor } from '__internal/scheduler/m_recurrence';

import 'ui/scheduler/ui.scheduler';
import 'generic_light.css!';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getRecurrenceProcessor } from 'ui/scheduler/recurrence';
import { getRecurrenceProcessor } from '__internal/scheduler/m_recurrence';

const days = ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import $ from 'jquery';
import dateUtils from 'core/utils/date';
import RecurrenceEditor from 'ui/scheduler/recurrence_editor';
import RecurrenceEditor from '__internal/scheduler/m_recurrence_editor';
import SelectBox from 'ui/select_box';
import NumberBox from 'ui/number_box';
import RadioGroup from 'ui/radio_group';
import ButtonGroup from 'ui/button_group';
import DateBox from 'ui/date_box';
import { getRecurrenceProcessor } from 'ui/scheduler/recurrence';
import { getRecurrenceProcessor } from '__internal/scheduler/m_recurrence';
import { createTimeZoneCalculator } from 'renovation/ui/scheduler/timeZoneCalculator/createTimeZoneCalculator';
import dateLocalization from 'localization/date';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'generic_light.css!';
import 'ui/scheduler/subscribes';
import '__internal/scheduler/m_subscribes';
import 'ui/scheduler/ui.scheduler';
import {
DateGeneratorBaseStrategy,
Expand All @@ -11,7 +11,7 @@ import fx from 'animation/fx';
import dateUtils from 'core/utils/date';
import config from 'core/config';

import { ExpressionUtils } from 'ui/scheduler/expressionUtils';
import { ExpressionUtils } from '__internal/scheduler/m_expression_utils';
import { createWrapper } from '../../helpers/scheduler/helpers.js';

import { getAppointmentColor, createExpressions } from '__internal/scheduler/resources/m_utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { tableCreator } from 'ui/scheduler/table_creator';
import tableCreatorModule from '__internal/scheduler/m_table_creator';

const { tableCreator } = tableCreatorModule;

const FIXTURE_DATA = [{
title: 'o1',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import $ from 'jquery';
import SchedulerTimeline from 'ui/scheduler/workspaces/ui.scheduler.timeline';
import SchedulerTimelineDay from 'ui/scheduler/workspaces/ui.scheduler.timeline_day';
import SchedulerTimelineWeek from 'ui/scheduler/workspaces/ui.scheduler.timeline_week';
import SchedulerTimelineWorkWeek from 'ui/scheduler/workspaces/ui.scheduler.timeline_work_week';
import SchedulerTimelineMonth from 'ui/scheduler/workspaces/ui.scheduler.timeline_month';
import SchedulerTimeline from '__internal/scheduler/workspaces/m_timeline';
import SchedulerTimelineDay from '__internal/scheduler/workspaces/m_timeline_day';
import SchedulerTimelineWeek from '__internal/scheduler/workspaces/m_timeline_week';
import SchedulerTimelineWorkWeek from '__internal/scheduler/workspaces/m_timeline_work_week';
import SchedulerTimelineMonth from '__internal/scheduler/workspaces/m_timeline_month';
import dataUtils from 'core/element_data';
import dateLocalization from 'localization/date';
import SchedulerWorkSpaceVerticalStrategy from 'ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.vertical';
import SchedulerWorkSpaceHorizontalStrategy from 'ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.horizontal';
import SchedulerWorkSpaceVerticalStrategy from '__internal/scheduler/workspaces/m_work_space_grouped_strategy_vertical';
import SchedulerWorkSpaceHorizontalStrategy from '__internal/scheduler/workspaces/m_work_space_grouped_strategy_horizontal';
import 'ui/scheduler/ui.scheduler';

QUnit.testStart(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import resizeCallbacks from 'core/utils/resize_callbacks';
import { triggerHidingEvent, triggerShownEvent } from 'events/visibility_change';
import 'generic_light.css!';
import $ from 'jquery';
import 'ui/scheduler/workspaces/ui.scheduler.timeline';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_day';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_month';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_week';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_work_week';
import '__internal/scheduler/workspaces/m_timeline';
import '__internal/scheduler/workspaces/m_timeline_day';
import '__internal/scheduler/workspaces/m_timeline_month';
import '__internal/scheduler/workspaces/m_timeline_week';
import '__internal/scheduler/workspaces/m_timeline_work_week';
import keyboardMock from '../../helpers/keyboardMock.js';
import pointerMock from '../../helpers/pointerMock.js';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import tooltip from 'ui/tooltip/ui.tooltip';
import { DataSource } from 'data/data_source/data_source';
import ArrayStore from 'data/array_store';
import dragEvents from 'events/drag';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';

const { testStart, test, module } = QUnit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import timeZoneUtils from '__internal/scheduler/m_utils_time_zone';
import timeZoneDataUtils from '__internal/scheduler/timezones/m_utils_timezones_data';
import { utils } from 'ui/scheduler/utils';
import { utils } from '__internal/scheduler/m_utils';
import { replaceWrongEndDate } from '__internal/scheduler/appointments/data_provider/m_utils';

const { test, module } = QUnit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ViewDataProvider from 'ui/scheduler/workspaces/view_model/view_data_provider';
import ViewDataProvider from '__internal/scheduler/workspaces/view_model/m_view_data_provider';
import { supportedViews } from '../../helpers/scheduler/helpers.js';

const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from 'jquery';
import { VirtualScrollingDispatcher } from 'ui/scheduler/workspaces/ui.scheduler.virtual_scrolling';
import { VirtualScrollingDispatcher } from '__internal/scheduler/workspaces/m_virtual_scrolling';
import domAdapter from 'core/dom_adapter';
import eventsEngine from 'events/core/events_engine';
import { addNamespace } from 'events/utils/index';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'generic_light.css!';
import $ from 'jquery';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_month';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import '__internal/scheduler/workspaces/m_work_space_month';
import '__internal/scheduler/workspaces/m_work_space_week';

const {
test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import 'generic_light.css!';
import $ from 'jquery';
import dateLocalization from 'localization/date';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_month';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_day';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_week';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_month';
import '__internal/scheduler/workspaces/m_work_space_day';
import '__internal/scheduler/workspaces/m_work_space_week';
import '__internal/scheduler/workspaces/m_work_space_month';
import '__internal/scheduler/workspaces/m_timeline_day';
import '__internal/scheduler/workspaces/m_timeline_week';
import '__internal/scheduler/workspaces/m_timeline_month';

const {
test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import resizeCallbacks from 'core/utils/resize_callbacks';
import 'generic_light.css!';
import $ from 'jquery';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import '__internal/scheduler/workspaces/m_work_space_week';

const {
test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import $ from 'jquery';
import resizeCallbacks from 'core/utils/resize_callbacks';
import dateLocalization from 'localization/date';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import '__internal/scheduler/workspaces/m_work_space_day';
const CELL_CLASS = 'dx-scheduler-date-table-cell';
const DROPPABLE_CELL_CLASS = 'dx-scheduler-date-table-droppable-cell';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import $ from 'jquery';
import SchedulerWorkSpace from 'ui/scheduler/workspaces/ui.scheduler.work_space';
import SchedulerWorkSpaceHorizontalStrategy from 'ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.horizontal';
import SchedulerWorkSpaceVerticalStrategy from 'ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.vertical';
import SchedulerWorkSpace from '__internal/scheduler/workspaces/m_work_space';
import SchedulerWorkSpaceHorizontalStrategy from '__internal/scheduler/workspaces/m_work_space_grouped_strategy_horizontal';
import SchedulerWorkSpaceVerticalStrategy from '__internal/scheduler/workspaces/m_work_space_grouped_strategy_vertical';
import dateLocalization from 'localization/date';
import devices from 'core/devices';
import 'ui/scheduler/ui.scheduler';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import resizeCallbacks from 'core/utils/resize_callbacks';
import 'generic_light.css!';
import $ from 'jquery';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_month';
import { getGroupWidth } from 'ui/scheduler/workspaces/helpers/positionHelper';
import '__internal/scheduler/workspaces/m_work_space_month';
import { getGroupWidth } from '__internal/scheduler/workspaces/helpers/m_position_helper';

const CELL_CLASS = 'dx-scheduler-date-table-cell';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { isRenderer } from 'core/utils/type';
import 'generic_light.css!';
import $ from 'jquery';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_month';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_work_week';
import '__internal/scheduler/workspaces/m_work_space_day';
import '__internal/scheduler/workspaces/m_work_space_month';
import '__internal/scheduler/workspaces/m_work_space_work_week';

import keyboardMock from '../../helpers/keyboardMock.js';
import memoryLeaksHelper from '../../helpers/memoryLeaksHelper.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import $ from 'jquery';

import { supportedScrollingModes } from '../../helpers/scheduler/helpers.js';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_day';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_month';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import '__internal/scheduler/workspaces/m_work_space_day';
import '__internal/scheduler/workspaces/m_work_space_month';
import '__internal/scheduler/workspaces/m_work_space_week';

import 'ui/scheduler/workspaces/ui.scheduler.timeline_day';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_month';
import 'ui/scheduler/workspaces/ui.scheduler.timeline_week';
import '__internal/scheduler/workspaces/m_timeline_day';
import '__internal/scheduler/workspaces/m_timeline_month';
import '__internal/scheduler/workspaces/m_timeline_week';

import keyboardMock from '../../helpers/keyboardMock.js';
import { extend } from 'core/utils/extend';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { triggerShownEvent } from 'events/visibility_change';
import 'generic_light.css!';
import $ from 'jquery';

import 'ui/scheduler/workspaces/ui.scheduler.work_space_week';
import 'ui/scheduler/workspaces/ui.scheduler.work_space_work_week';
import '__internal/scheduler/workspaces/m_work_space_week';
import '__internal/scheduler/workspaces/m_work_space_work_week';

const CELL_CLASS = 'dx-scheduler-date-table-cell';

Expand Down

0 comments on commit 51d8f5b

Please sign in to comment.