@saltcorn/builder 1.5.0-beta.5 → 1.5.0-beta.7

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.5.0-beta.5",
3
+ "version": "1.5.0-beta.7",
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.5",
23
+ "@saltcorn/common-code": "1.5.0-beta.7",
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",
@@ -467,6 +467,7 @@ const ActionElem = ({ connectors, options }) => (
467
467
  block={false}
468
468
  minRole={100}
469
469
  confirm={false}
470
+ spinner={true}
470
471
  action_label={""}
471
472
  isFormula={{}}
472
473
  rndid={rand_ident()}
@@ -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))}
@@ -949,6 +949,7 @@ const ContainerSettings = () => {
949
949
  <td colSpan={2}>
950
950
  <input
951
951
  type="text"
952
+ placeholder="Example: x === y"
952
953
  className="form-control text-to-display"
953
954
  value={showIfFormula}
954
955
  spellCheck={false}
@@ -383,6 +383,7 @@ const ViewSettings = () => {
383
383
  </label>
384
384
  <input
385
385
  type="text"
386
+ placeholder="Example: {x: y}"
386
387
  className="viewlink-label form-control"
387
388
  value={extra_state_fml}
388
389
  onChange={setAProp("extra_state_fml")}
@@ -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= {"off"}
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}