@saltcorn/builder 1.5.0-beta.6 → 1.5.0-beta.8
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 +2 -2
- package/src/components/Toolbox.js +1 -0
- package/src/components/elements/Aggregation.js +1 -0
- package/src/components/elements/Container.js +1 -0
- package/src/components/elements/View.js +1 -0
- package/src/components/elements/ViewLink.js +1 -1
- package/src/components/elements/utils.js +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/builder",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.8",
|
|
4
4
|
"description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"homepage": "https://saltcorn.com",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@babel/preset-react": "7.24.7",
|
|
21
21
|
"@craftjs/core": "0.1.0-beta.20",
|
|
22
22
|
"@craftjs/utils": "0.1.0-beta.20",
|
|
23
|
-
"@saltcorn/common-code": "1.5.0-beta.
|
|
23
|
+
"@saltcorn/common-code": "1.5.0-beta.8",
|
|
24
24
|
"saltcorn-craft-layers-noeye": "0.1.0-beta.22",
|
|
25
25
|
"@fonticonpicker/react-fonticonpicker": "1.2.0",
|
|
26
26
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
@@ -233,6 +233,7 @@ const AggregationSettings = () => {
|
|
|
233
233
|
type="text"
|
|
234
234
|
className="form-control"
|
|
235
235
|
value={aggwhere}
|
|
236
|
+
placeholder="Example: x === y"
|
|
236
237
|
spellCheck={false}
|
|
237
238
|
onChange={setAProp("aggwhere")}
|
|
238
239
|
onInput={(e) => validate_expression_elem($(e.target))}
|
|
@@ -313,6 +313,7 @@ const ViewLinkSettings = () => {
|
|
|
313
313
|
</label>
|
|
314
314
|
<input
|
|
315
315
|
type="text"
|
|
316
|
+
placeholder="Example: {x: y}"
|
|
316
317
|
className="viewlink-label form-control"
|
|
317
318
|
value={extra_state_fml}
|
|
318
319
|
onChange={setAProp("extra_state_fml")}
|
|
@@ -362,7 +363,6 @@ const ViewLinkSettings = () => {
|
|
|
362
363
|
<TextStyleSetting textStyle={textStyle} setProp={setProp} />
|
|
363
364
|
<table>
|
|
364
365
|
<tbody>
|
|
365
|
-
<MinRoleSettingRow minRole={minRole} setProp={setProp} />
|
|
366
366
|
{use_view_name ? (
|
|
367
367
|
<tr>
|
|
368
368
|
<td colSpan="2">
|
|
@@ -981,8 +981,7 @@ const ConfigField = ({
|
|
|
981
981
|
))}
|
|
982
982
|
</select>
|
|
983
983
|
);
|
|
984
|
-
}
|
|
985
|
-
else if (field.attributes?.calcOptions) {
|
|
984
|
+
} else if (field.attributes?.calcOptions) {
|
|
986
985
|
return (
|
|
987
986
|
<select
|
|
988
987
|
className={`field-${field?.name} form-control form-select`}
|
|
@@ -993,18 +992,18 @@ const ConfigField = ({
|
|
|
993
992
|
data-calc-options={encodeURIComponent(
|
|
994
993
|
JSON.stringify(field.attributes.calcOptions)
|
|
995
994
|
)}
|
|
996
|
-
autocomplete=
|
|
995
|
+
autocomplete={"off"}
|
|
997
996
|
data-fieldname={field?.name}
|
|
998
997
|
>
|
|
999
998
|
<option value=""></option>
|
|
1000
999
|
</select>
|
|
1001
1000
|
);
|
|
1002
|
-
}
|
|
1003
|
-
else
|
|
1001
|
+
} else
|
|
1004
1002
|
return (
|
|
1005
1003
|
<input
|
|
1006
1004
|
type="text"
|
|
1007
1005
|
name={field?.name}
|
|
1006
|
+
placeholder={field.attributes?.placeholder || ""}
|
|
1008
1007
|
className={`field-${field?.name} form-control`}
|
|
1009
1008
|
value={value || ""}
|
|
1010
1009
|
spellCheck={false}
|