-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
3,083 additions
and
3,089 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,44 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
exports["default"] = void 0; | ||
|
||
var _extends = Object.assign || 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; }; | ||
/** | ||
* Created by steve on 20/09/15. | ||
*/ | ||
var _react = _interopRequireDefault(require("react")); | ||
|
||
var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox")); | ||
|
||
var _react = require("react"); | ||
var _FormGroup = _interopRequireDefault(require("@material-ui/core/FormGroup")); | ||
|
||
var _react2 = _interopRequireDefault(_react); | ||
var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel")); | ||
|
||
var _Checkbox = require("@material-ui/core/Checkbox"); | ||
var _ComposedComponent = _interopRequireDefault(require("./ComposedComponent")); | ||
|
||
var _Checkbox2 = _interopRequireDefault(_Checkbox); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
|
||
var _FormGroup = require("@material-ui/core/FormGroup"); | ||
|
||
var _FormGroup2 = _interopRequireDefault(_FormGroup); | ||
|
||
var _FormControlLabel = require("@material-ui/core/FormControlLabel"); | ||
|
||
var _FormControlLabel2 = _interopRequireDefault(_FormControlLabel); | ||
|
||
var _ComposedComponent = require("./ComposedComponent"); | ||
|
||
var _ComposedComponent2 = _interopRequireDefault(_ComposedComponent); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || 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 FormCheckbox = function FormCheckbox(_ref) { | ||
var form = _ref.form, | ||
value = _ref.value, | ||
getLocalizedString = _ref.localization.getLocalizedString, | ||
onChangeValidate = _ref.onChangeValidate; | ||
return _react2.default.createElement( | ||
_FormGroup2.default, | ||
{ row: true }, | ||
_react2.default.createElement(_FormControlLabel2.default, _extends({ | ||
className: form.className, | ||
label: form.title && getLocalizedString(form.title), | ||
control: _react2.default.createElement(_Checkbox2.default, { | ||
name: form.key.slice(-1)[0], | ||
value: form.key.slice(-1)[0], | ||
checked: value || false, | ||
disabled: form.readonly, | ||
onChange: onChangeValidate | ||
}) | ||
}, form.otherProps)) | ||
); | ||
var form = _ref.form, | ||
value = _ref.value, | ||
getLocalizedString = _ref.localization.getLocalizedString, | ||
onChangeValidate = _ref.onChangeValidate; | ||
return _react["default"].createElement(_FormGroup["default"], { | ||
row: true | ||
}, _react["default"].createElement(_FormControlLabel["default"], _extends({ | ||
className: form.className, | ||
label: form.title && getLocalizedString(form.title), | ||
control: _react["default"].createElement(_Checkbox["default"], { | ||
name: form.key.slice(-1)[0], | ||
value: form.key.slice(-1)[0], | ||
checked: value || false, | ||
disabled: form.readonly, | ||
onChange: onChangeValidate | ||
}) | ||
}, form.otherProps))); | ||
}; | ||
|
||
exports.default = (0, _ComposedComponent2.default)(FormCheckbox); | ||
var _default = (0, _ComposedComponent["default"])(FormCheckbox); | ||
|
||
exports["default"] = _default; |
Oops, something went wrong.