@saltcorn/builder 0.9.4-beta.21 → 0.9.4-beta.23

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": "0.9.4-beta.21",
3
+ "version": "0.9.4-beta.23",
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.9.4",
21
21
  "@craftjs/core": "0.1.0-beta.20",
22
22
  "@craftjs/utils": "0.1.0-beta.20",
23
- "@saltcorn/common-code": "0.9.4-beta.21",
23
+ "@saltcorn/common-code": "0.9.4-beta.23",
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",
@@ -113,7 +113,6 @@ const AggregationSettings = () => {
113
113
  })
114
114
  .then(setFetchedCfgFields);
115
115
  }, [outcomeType, agg_fieldview]);
116
-
117
116
  return (
118
117
  <Fragment>
119
118
  <table>
@@ -189,15 +188,21 @@ const AggregationSettings = () => {
189
188
  ],
190
189
  { valAttr: true }
191
190
  )}
192
- {options.fields
193
- .filter((f) => f.type === "Date" || f.type.name === "Date")
191
+ {targetFieldType === "Bool" ? (
192
+ <option value={`Percent true`}>Percent true</option>
193
+ ) : null}
194
+ {targetFieldType === "Bool" ? (
195
+ <option value={`Percent false`}>Percent false</option>
196
+ ) : null}
197
+ {(options.agg_field_opts[agg_relation] || [])
198
+ .filter((f) => f.ftype === "Date")
194
199
  .map((f, ix) => (
195
200
  <option key={ix} value={`Latest ${f.name}`}>
196
201
  Latest {f.name}
197
202
  </option>
198
203
  ))}
199
- {options.fields
200
- .filter((f) => f.type === "Date" || f.type.name === "Date")
204
+ {(options.agg_field_opts[agg_relation] || [])
205
+ .filter((f) => f.ftype === "Date")
201
206
  .map((f, ix) => (
202
207
  <option key={ix} value={`Earliest ${f.name}`}>
203
208
  Earliest {f.name}
@@ -300,12 +300,6 @@ const ViewSettings = () => {
300
300
  prop.view = target_value;
301
301
  });
302
302
  }}
303
- onBlur={(e) => {
304
- const target_value = e?.target?.value || e?.value;
305
- setProp((prop) => {
306
- prop.view = target_value;
307
- });
308
- }}
309
303
  menuPortalTarget={document.body}
310
304
  styles={{ menuPortal: (base) => ({ ...base, zIndex: 19999 }) }}
311
305
  ></Select>
@@ -1294,9 +1294,12 @@ const ButtonOrLinkSettingsRows = ({
1294
1294
  <option value={addBtnClass("btn-outline-secondary")}>
1295
1295
  Secondary outline button
1296
1296
  </option>
1297
+ <option value={addBtnClass("btn-outline-danger")}>
1298
+ Danger outline button
1299
+ </option>
1297
1300
  <option value={addBtnClass("btn-outline-warning")}>
1298
1301
  Warning outline button
1299
- </option>{" "}
1302
+ </option>
1300
1303
  <option value={addBtnClass("btn-outline-info")}>
1301
1304
  Info outline button
1302
1305
  </option>