@saltcorn/builder 1.0.0-beta.17 → 1.0.0-beta.19
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/builder",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.19",
|
|
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.0.0-beta.
|
|
23
|
+
"@saltcorn/common-code": "1.0.0-beta.19",
|
|
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",
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
setAPropGen,
|
|
15
15
|
buildOptions,
|
|
16
16
|
ConfigForm,
|
|
17
|
+
HelpTopicLink,
|
|
17
18
|
} from "./utils";
|
|
18
19
|
|
|
19
20
|
export /**
|
|
@@ -215,7 +216,16 @@ const AggregationSettings = () => {
|
|
|
215
216
|
</tr>
|
|
216
217
|
<tr>
|
|
217
218
|
<td>
|
|
218
|
-
<label>
|
|
219
|
+
<label>
|
|
220
|
+
Where
|
|
221
|
+
<HelpTopicLink
|
|
222
|
+
topic="Aggregation where formula"
|
|
223
|
+
table_name={options.tableName}
|
|
224
|
+
mode={options.mode}
|
|
225
|
+
agg_relation={agg_relation}
|
|
226
|
+
agg_field={agg_field}
|
|
227
|
+
></HelpTopicLink>
|
|
228
|
+
</label>
|
|
219
229
|
</td>
|
|
220
230
|
<td>
|
|
221
231
|
<input
|
|
@@ -677,7 +677,7 @@ const ConfigForm = ({
|
|
|
677
677
|
if (noshow) return null;
|
|
678
678
|
}
|
|
679
679
|
return (
|
|
680
|
-
<div key={ix} className="builder-config-field">
|
|
680
|
+
<div key={ix} className="builder-config-field" data-field-name={f.name}>
|
|
681
681
|
{!isCheckbox(f) ? (
|
|
682
682
|
<label>
|
|
683
683
|
{f.label || f.name}
|
|
@@ -783,7 +783,7 @@ const ConfigField = ({
|
|
|
783
783
|
field.options =
|
|
784
784
|
typeof field.attributes?.options === "string"
|
|
785
785
|
? field.attributes?.options.split(",").map((s) => s.trim())
|
|
786
|
-
: field.attributes?.options;
|
|
786
|
+
: [...field.attributes?.options];
|
|
787
787
|
if (!field.required && field.options) field.options.unshift("");
|
|
788
788
|
}
|
|
789
789
|
const field_type = field.input_type || field.type.name || field.type;
|