react-form-builder-more-flexibility 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -130,6 +130,7 @@ var FormElementsEdit = exports["default"] = /*#__PURE__*/function (_React$Compon
|
|
|
130
130
|
}
|
|
131
131
|
var this_checked = this.props.element.hasOwnProperty('required') ? this.props.element.required : false;
|
|
132
132
|
var this_default_checked = this.props.element.hasOwnProperty('defaultChecked') ? this.props.element.defaultChecked : false;
|
|
133
|
+
var this_has_popup = this.props.element.hasOwnProperty('hasPopUp') ? this.props.element.hasPopUp : false;
|
|
133
134
|
var this_read_only = this.props.element.hasOwnProperty('readOnly') ? this.props.element.readOnly : false;
|
|
134
135
|
var this_default_today = this.props.element.hasOwnProperty('defaultToday') ? this.props.element.defaultToday : false;
|
|
135
136
|
var this_show_time_select = this.props.element.hasOwnProperty('showTimeSelect') ? this.props.element.showTimeSelect : false;
|
|
@@ -278,6 +279,20 @@ var FormElementsEdit = exports["default"] = /*#__PURE__*/function (_React$Compon
|
|
|
278
279
|
htmlFor: "display-horizontal"
|
|
279
280
|
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
280
281
|
id: "default-checked"
|
|
282
|
+
}))), ['Checkbox'].indexOf(this.state.element.element) !== -1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
283
|
+
className: "custom-control custom-checkbox"
|
|
284
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
285
|
+
id: "input-has-popup",
|
|
286
|
+
className: "custom-control-input",
|
|
287
|
+
type: "checkbox",
|
|
288
|
+
checked: this_has_popup,
|
|
289
|
+
value: true,
|
|
290
|
+
onChange: this.editElementProp.bind(this, 'hasPopUp', 'checked')
|
|
291
|
+
}), /*#__PURE__*/_react["default"].createElement("label", {
|
|
292
|
+
className: "custom-control-label",
|
|
293
|
+
htmlFor: "input-has-popup"
|
|
294
|
+
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
295
|
+
id: "checkbox-has-popup"
|
|
281
296
|
}))), (this.state.element.element === 'RadioButtons' || this.state.element.element === 'Checkboxes') && canHaveDisplayHorizontal && /*#__PURE__*/_react["default"].createElement("div", {
|
|
282
297
|
className: "custom-control custom-checkbox"
|
|
283
298
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
@@ -304,6 +319,16 @@ var FormElementsEdit = exports["default"] = /*#__PURE__*/function (_React$Compon
|
|
|
304
319
|
onBlur: this.updateElement.bind(this),
|
|
305
320
|
onEditorStateChange: this.onEditorStateChange.bind(this, 0, 'boxLabel'),
|
|
306
321
|
stripPastedStyles: true
|
|
322
|
+
})), this_has_popup && /*#__PURE__*/_react["default"].createElement("div", {
|
|
323
|
+
className: "form-group"
|
|
324
|
+
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
325
|
+
className: "control-label"
|
|
326
|
+
}, "Pop Up Body:"), /*#__PURE__*/_react["default"].createElement(_reactDraftWysiwyg.Editor, {
|
|
327
|
+
toolbar: toolbar,
|
|
328
|
+
defaultEditorState: secondaryEditorState,
|
|
329
|
+
onBlur: this.updateElement.bind(this),
|
|
330
|
+
onEditorStateChange: this.onEditorStateChange.bind(this, 0, 'popUpBody'),
|
|
331
|
+
stripPastedStyles: true
|
|
307
332
|
})), this.props.element.hasOwnProperty('src') && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
308
333
|
className: "form-group"
|
|
309
334
|
}, /*#__PURE__*/_react["default"].createElement("label", {
|