UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

53 lines (52 loc) 2.02 kB
/** * DevExtreme (esm/__internal/ui/check_box/wrappers/validation_message.js) * Version: 25.2.5 * Build date: Fri Feb 20 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; const _excluded = ["accessKey", "activeStateEnabled", "boundary", "className", "contentId", "disabled", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "mode", "offset", "onClick", "onKeyDown", "positionSide", "rtlEnabled", "tabIndex", "target", "validationErrors", "visible", "visualContainer", "width"]; import { createComponentVNode, normalizeProps } from "inferno"; import LegacyValidationMessage from "../../../../ui/validation_message"; import { BaseWidgetDefaultProps } from "../../../core/r1/base_props"; import { DomComponentWrapper } from "../../../core/r1/dom_component_wrapper"; import { BaseInfernoComponent } from "../../../core/r1/runtime/inferno/index"; export const defaultValidationMessageProps = Object.assign({}, BaseWidgetDefaultProps, { mode: "auto", positionSide: "top", offset: Object.freeze({ h: 0, v: 0 }), isReactComponentWrapper: true }); export class ValidationMessage extends BaseInfernoComponent { constructor(props) { super(props); this.state = {} } get restAttributes() { const _this$props = this.props, restProps = _objectWithoutPropertiesLoose(_this$props, _excluded); return restProps } render() { return normalizeProps(createComponentVNode(2, DomComponentWrapper, Object.assign({ componentType: LegacyValidationMessage, componentProps: this.props, templateNames: [] }, this.restAttributes))) } } ValidationMessage.defaultProps = defaultValidationMessageProps;