react-form-builder-more-flexibility 1.0.3 → 1.0.5
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.
- package/dist/1.app.js +1 -1
- package/dist/app.js +2 -2
- package/lib/form-elements/index.js +5 -2
- package/lib/form-elements-edit.js +15 -1
- package/lib/language-provider/locales/en-us.json +1 -0
- package/lib/language-provider/locales/vi-vn.json +1 -0
- package/lib/toolbar.js +1 -0
- package/package.json +1 -1
|
@@ -639,8 +639,11 @@ var Checkbox = /*#__PURE__*/function (_React$Component14) {
|
|
|
639
639
|
className: "custom-control-input"
|
|
640
640
|
}, props)), /*#__PURE__*/_react["default"].createElement("label", {
|
|
641
641
|
className: "custom-control-label",
|
|
642
|
-
htmlFor: this.props.data.field_name
|
|
643
|
-
|
|
642
|
+
htmlFor: this.props.data.field_name,
|
|
643
|
+
dangerouslySetInnerHTML: {
|
|
644
|
+
__html: this.props.data.boxLabel
|
|
645
|
+
}
|
|
646
|
+
}))));
|
|
644
647
|
}
|
|
645
648
|
}]);
|
|
646
649
|
return Checkbox;
|
|
@@ -619,13 +619,27 @@ var FormElementsEdit = /*#__PURE__*/function (_React$Component) {
|
|
|
619
619
|
htmlFor: "placeholder"
|
|
620
620
|
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
621
621
|
id: "place-holder-text-label"
|
|
622
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
622
|
+
})), /*#__PURE__*/_react["default"].createElement("input", {
|
|
623
623
|
type: "text",
|
|
624
624
|
className: "form-control",
|
|
625
625
|
id: "placeholder",
|
|
626
626
|
defaultValue: this.props.element.placeholder,
|
|
627
627
|
onBlur: this.updateElement.bind(this),
|
|
628
628
|
onChange: this.editElementProp.bind(this, 'placeholder', 'value')
|
|
629
|
+
})), this.props.element.show_custom_name && /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
|
+
className: "form-group"
|
|
631
|
+
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
632
|
+
className: "control-label",
|
|
633
|
+
htmlFor: "custom_name"
|
|
634
|
+
}, /*#__PURE__*/_react["default"].createElement(_IntlMessages["default"], {
|
|
635
|
+
id: "custom-name-label"
|
|
636
|
+
})), /*#__PURE__*/_react["default"].createElement("input", {
|
|
637
|
+
type: "text",
|
|
638
|
+
className: "form-control",
|
|
639
|
+
id: "custom_name",
|
|
640
|
+
defaultValue: this.props.element.custom_name,
|
|
641
|
+
onBlur: this.updateElement.bind(this),
|
|
642
|
+
onChange: this.editElementProp.bind(this, 'custom_name', 'value')
|
|
629
643
|
})), this.props.element.showDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
630
644
|
className: "form-group"
|
|
631
645
|
}, /*#__PURE__*/_react["default"].createElement("label", {
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"easy": "Easy",
|
|
92
92
|
"difficult": "Difficult",
|
|
93
93
|
"drop-zone": "Dropzone",
|
|
94
|
+
"custom-name-label": "A Name To Give This Input That Will Show Up In Data Retrieval",
|
|
94
95
|
|
|
95
96
|
"message.is-required": "is required",
|
|
96
97
|
"message.was-answered-incorrectly": "was answered incorrectly",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"difficult": "Difficult",
|
|
80
80
|
|
|
81
81
|
"drop-zone": "Khu vực kéo thả",
|
|
82
|
+
"custom-name-label": "A Name To Give This Input That Will Show Up In Data Retrieval",
|
|
82
83
|
|
|
83
84
|
"message.is-required": "không được bỏ trống",
|
|
84
85
|
"message.was-answered incorrectly": "đã trả lời sai",
|
package/lib/toolbar.js
CHANGED
|
@@ -465,6 +465,7 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
465
465
|
elementOptions.bold = false;
|
|
466
466
|
elementOptions.italic = false;
|
|
467
467
|
}
|
|
468
|
+
elementOptions.show_custom_name = item.show_custom_name;
|
|
468
469
|
elementOptions.custom_name = item.custom_name;
|
|
469
470
|
if (item.canHaveAnswer) {
|
|
470
471
|
elementOptions.canHaveAnswer = item.canHaveAnswer;
|