@saltcorn/builder 0.8.3-beta.3 → 0.8.5-beta.0
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/package.json
CHANGED
|
@@ -94,11 +94,13 @@ const FieldSettings = () => {
|
|
|
94
94
|
inline,
|
|
95
95
|
configuration,
|
|
96
96
|
node_id,
|
|
97
|
+
click_to_edit,
|
|
97
98
|
textStyle,
|
|
98
99
|
} = useNode((node) => ({
|
|
99
100
|
name: node.data.props.name,
|
|
100
101
|
fieldview: node.data.props.fieldview,
|
|
101
102
|
block: node.data.props.block,
|
|
103
|
+
click_to_edit: node.data.props.click_to_edit,
|
|
102
104
|
inline: node.data.props.inline,
|
|
103
105
|
textStyle: node.data.props.textStyle,
|
|
104
106
|
configuration: node.data.props.configuration,
|
|
@@ -189,6 +191,27 @@ const FieldSettings = () => {
|
|
|
189
191
|
</td>
|
|
190
192
|
</tr>
|
|
191
193
|
)}
|
|
194
|
+
<tr>
|
|
195
|
+
<td></td>
|
|
196
|
+
<td>
|
|
197
|
+
<div className="form-check">
|
|
198
|
+
<input
|
|
199
|
+
className="form-check-input"
|
|
200
|
+
name="inline"
|
|
201
|
+
type="checkbox"
|
|
202
|
+
checked={click_to_edit}
|
|
203
|
+
onChange={(e) => {
|
|
204
|
+
if (e && e.target) {
|
|
205
|
+
const target_value = e.target.checked;
|
|
206
|
+
setProp((prop) => (prop.click_to_edit = target_value));
|
|
207
|
+
}
|
|
208
|
+
}}
|
|
209
|
+
/>
|
|
210
|
+
<label className="form-check-label">Click to edit?</label>
|
|
211
|
+
</div>
|
|
212
|
+
</td>
|
|
213
|
+
</tr>
|
|
214
|
+
|
|
192
215
|
{!(blockDisplay && blockDisplay.includes(fieldview)) && (
|
|
193
216
|
<tr>
|
|
194
217
|
<td></td>
|
|
@@ -234,6 +257,7 @@ Field.craft = {
|
|
|
234
257
|
"textStyle",
|
|
235
258
|
"block",
|
|
236
259
|
"inline",
|
|
260
|
+
"click_to_edit",
|
|
237
261
|
{ name: "configuration", default: {} },
|
|
238
262
|
],
|
|
239
263
|
},
|