UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

35 lines (34 loc) 1.15 kB
/** * DevExtreme (esm/__internal/scheduler/r1/components/templates/public_template.js) * Version: 26.1.4 * Build date: Fri Jul 24 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { createFragment } from "inferno"; import { equalByValue } from "../../../../../core/utils/common"; import { getTemplate } from "../../../../core/r1/utils/index"; export const PublicTemplate = _ref => { let { template: template, templateProps: templateProps, renderOptions: renderOptions } = _ref; if (void 0 === template) { return createFragment() } const templateFn = getTemplate(template); const templatePropsWithComparer = Object.assign({}, templateProps, { data: Object.assign({}, templateProps.data ?? {}, { isEqual: (null === renderOptions || void 0 === renderOptions ? void 0 : renderOptions.propsComparer) ?? equalByValue }) }); return null === templateFn || void 0 === templateFn ? void 0 : templateFn(templatePropsWithComparer) };