@saltcorn/builder 0.9.1-beta.4 → 0.9.1-beta.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/package.json
CHANGED
|
@@ -733,10 +733,10 @@ const ContainerSettings = () => {
|
|
|
733
733
|
</table>
|
|
734
734
|
<table className="w-100" accordiontitle="Show if...">
|
|
735
735
|
<tbody>
|
|
736
|
-
{["show", "edit"].includes(options.mode) && (
|
|
736
|
+
{["show", "edit", "filter"].includes(options.mode) && (
|
|
737
737
|
<SettingsSectionHeaderRow title="Formula - show if true" />
|
|
738
738
|
)}
|
|
739
|
-
{["show", "edit"].includes(options.mode) && (
|
|
739
|
+
{["show", "edit", "filter"].includes(options.mode) && (
|
|
740
740
|
<tr>
|
|
741
741
|
<td>
|
|
742
742
|
<input
|
|
@@ -176,6 +176,7 @@ const TabsSettings = () => {
|
|
|
176
176
|
independent: node.data.props.independent,
|
|
177
177
|
startClosed: node.data.props.startClosed,
|
|
178
178
|
deeplink: node.data.props.deeplink,
|
|
179
|
+
disable_inactive: node.data.props.disable_inactive,
|
|
179
180
|
serverRendered: node.data.props.serverRendered,
|
|
180
181
|
tabId: node.data.props.tabId,
|
|
181
182
|
titles: node.data.props.titles,
|
|
@@ -186,6 +187,7 @@ const TabsSettings = () => {
|
|
|
186
187
|
titles,
|
|
187
188
|
tabsStyle,
|
|
188
189
|
deeplink,
|
|
190
|
+
disable_inactive,
|
|
189
191
|
independent,
|
|
190
192
|
startClosed,
|
|
191
193
|
ntabs,
|
|
@@ -379,6 +381,24 @@ const TabsSettings = () => {
|
|
|
379
381
|
</td>
|
|
380
382
|
</tr>
|
|
381
383
|
) : null}
|
|
384
|
+
{options.mode === "edit" && !serverRendered ? (
|
|
385
|
+
<tr>
|
|
386
|
+
<td colSpan="2">
|
|
387
|
+
<div className="form-check">
|
|
388
|
+
<input
|
|
389
|
+
className="form-check-input"
|
|
390
|
+
name="block"
|
|
391
|
+
type="checkbox"
|
|
392
|
+
checked={disable_inactive}
|
|
393
|
+
onChange={setAProp("disable_inactive", { checked: true })}
|
|
394
|
+
/>
|
|
395
|
+
<label className="form-check-label">
|
|
396
|
+
Disable inactive inputs
|
|
397
|
+
</label>
|
|
398
|
+
</div>
|
|
399
|
+
</td>
|
|
400
|
+
</tr>
|
|
401
|
+
) : null}
|
|
382
402
|
</Fragment>
|
|
383
403
|
)}
|
|
384
404
|
</tbody>
|
|
@@ -397,6 +417,7 @@ Tabs.craft = {
|
|
|
397
417
|
independent: false,
|
|
398
418
|
startClosed: false,
|
|
399
419
|
deeplink: true,
|
|
420
|
+
disable_inactive: false,
|
|
400
421
|
serverRendered: false,
|
|
401
422
|
tabId: "",
|
|
402
423
|
},
|
|
@@ -248,6 +248,7 @@ const layoutToNodes = (layout, query, actions, parent = "ROOT") => {
|
|
|
248
248
|
independent={segment.independent}
|
|
249
249
|
startClosed={segment.startClosed}
|
|
250
250
|
deeplink={segment.deeplink}
|
|
251
|
+
disable_inactive={segment.disable_inactive}
|
|
251
252
|
serverRendered={segment.serverRendered}
|
|
252
253
|
tabId={segment.tabId}
|
|
253
254
|
field={segment.field}
|
|
@@ -515,6 +516,7 @@ const craftToSaltcorn = (nodes, startFrom = "ROOT") => {
|
|
|
515
516
|
independent: node.props.independent,
|
|
516
517
|
startClosed: node.props.startClosed,
|
|
517
518
|
deeplink: node.props.deeplink,
|
|
519
|
+
disable_inactive: node.props.disable_inactive,
|
|
518
520
|
serverRendered: node.props.serverRendered,
|
|
519
521
|
tabId: node.props.tabId,
|
|
520
522
|
ntabs: node.props.ntabs,
|