devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
33 lines (31 loc) • 1.17 kB
JavaScript
/**
* DevExtreme (cjs/renovation/ui/scheduler/resources/utils.js)
* Version: 22.1.9
* Build date: Tue Apr 18 2023
*
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.getAppointmentColor = void 0;
var _utils = require("../../../../ui/scheduler/resources/utils");
function _extends() {
_extends = Object.assign ? Object.assign.bind() : function(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key]
}
}
}
return target
};
return _extends.apply(this, arguments)
}
var getAppointmentColor = function(resourceConfig, appointmentConfig) {
return (0, _utils.getAppointmentColor)(_extends({}, resourceConfig, {
dataAccessors: resourceConfig.resourcesDataAccessors
}), appointmentConfig)
};
exports.getAppointmentColor = getAppointmentColor;