UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

75 lines (71 loc) 3.01 kB
/** * DevExtreme (cjs/__internal/scheduler/r1/components/base/group_panel_horizontal_row.js) * Version: 23.2.6 * Build date: Wed May 01 2024 * * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupPanelHorizontalRow = void 0; var _inferno = require("inferno"); var _inferno2 = require("@devextreme/runtime/inferno"); var _index = require("../../../../core/r1/utils/index"); var _group_panel_horizontal_cell = require("./group_panel_horizontal_cell"); var _group_panel_props = require("./group_panel_props"); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass) } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, p) { o.__proto__ = p; return o }; return _setPrototypeOf(o, p) } let GroupPanelHorizontalRow = function(_BaseInfernoComponent) { _inheritsLoose(GroupPanelHorizontalRow, _BaseInfernoComponent); function GroupPanelHorizontalRow() { return _BaseInfernoComponent.apply(this, arguments) || this } var _proto = GroupPanelHorizontalRow.prototype; _proto.render = function() { const { cellTemplate: cellTemplate, className: className, groupItems: groupItems } = this.props; const CellTemplateComponent = (0, _index.getTemplate)(cellTemplate); return (0, _inferno.createVNode)(1, "tr", "dx-scheduler-group-row ".concat(className), groupItems.map((_ref, index) => { let { colSpan: colSpan, color: color, data: data, id: id, isFirstGroupCell: isFirstGroupCell, isLastGroupCell: isLastGroupCell, key: key, text: text } = _ref; return (0, _inferno.createComponentVNode)(2, _group_panel_horizontal_cell.GroupPanelHorizontalCell, { text: text, id: id, data: data, index: index, color: color, colSpan: null !== colSpan && void 0 !== colSpan ? colSpan : _group_panel_horizontal_cell.GroupPanelHorizontalCellDefaultProps.colSpan, isFirstGroupCell: !!isFirstGroupCell, isLastGroupCell: !!isLastGroupCell, cellTemplate: CellTemplateComponent }, key) }), 0) }; return GroupPanelHorizontalRow }(_inferno2.BaseInfernoComponent); exports.GroupPanelHorizontalRow = GroupPanelHorizontalRow; GroupPanelHorizontalRow.defaultProps = _group_panel_props.GroupPanelRowDefaultProps;