devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
35 lines (34 loc) • 1.63 kB
JavaScript
/**
* DevExtreme (renovation/ui/scheduler/utils/filter.js)
* Version: 21.2.4
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.getFilterStrategy = void 0;
var _appointmentFilter = require("../../../../ui/scheduler/appointments/dataProvider/appointmentFilter");
var getFilterStrategy = function(resources, startDayHour, endDayHour, cellDurationInMinutes, showAllDayPanel, supportAllDayRow, firstDayOfWeek, viewType, dateRange, groupCount, loadedResources, isVirtualScrolling, timeZoneCalculator, dataAccessors, viewDataProvider) {
var filterOptions = {
resources: resources,
startDayHour: startDayHour,
endDayHour: endDayHour,
appointmentDuration: cellDurationInMinutes,
showAllDayPanel: showAllDayPanel,
supportAllDayRow: supportAllDayRow,
firstDayOfWeek: firstDayOfWeek,
viewType: viewType,
viewDirection: "vertical",
dateRange: dateRange,
groupCount: groupCount,
loadedResources: loadedResources,
isVirtualScrolling: isVirtualScrolling,
timeZoneCalculator: timeZoneCalculator,
dataSource: void 0,
dataAccessors: dataAccessors,
viewDataProvider: viewDataProvider
};
return isVirtualScrolling ? new _appointmentFilter.AppointmentFilterVirtualStrategy(filterOptions) : new _appointmentFilter.AppointmentFilterBaseStrategy(filterOptions)
};
exports.getFilterStrategy = getFilterStrategy;