UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

61 lines (59 loc) 2.42 kB
/** * DevExtreme (cjs/__internal/ui/check_box/generated_wrapper.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 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.default = void 0; var _component_registrator = _interopRequireDefault(require("../../../core/component_registrator")); var _check_box = require("./check_box"); var _wrapper = _interopRequireDefault(require("./wrapper")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e } } class CheckBox extends _wrapper.default { getProps() { const props = super.getProps(); props.onKeyDown = this._wrapKeyDownHandler(props.onKeyDown); return props } focus() { var _this$viewRef; return null === (_this$viewRef = this.viewRef) || void 0 === _this$viewRef ? void 0 : _this$viewRef.focus(...arguments) } blur() { var _this$viewRef2; return null === (_this$viewRef2 = this.viewRef) || void 0 === _this$viewRef2 ? void 0 : _this$viewRef2.blur(...arguments) } _getActionConfigs() { return { onFocusIn: {}, onClick: {} } } get _propsInfo() { return { twoWay: [ ["value", "defaultValue", "valueChange"] ], allowNull: ["defaultValue", "validationError", "validationErrors", "value"], elements: [], templates: [], props: ["text", "iconSize", "enableThreeStateBehavior", "activeStateEnabled", "hoverStateEnabled", "focusStateEnabled", "saveValueChangeEvent", "defaultValue", "valueChange", "readOnly", "name", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "isValid", "isDirty", "inputAttr", "onFocusIn", "className", "accessKey", "disabled", "height", "hint", "onClick", "onKeyDown", "rtlEnabled", "tabIndex", "visible", "width", "aria", "value"] } } get _viewComponent() { return _check_box.CheckBox } } exports.default = CheckBox; (0, _component_registrator.default)("dxCheckBox", CheckBox); CheckBox.defaultOptions = _check_box.defaultOptions;