@projectcaluma/ember-form-builder 11.0.3 → 11.1.1

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.
@@ -397,6 +397,7 @@
397
397
  @optionLabelPath="label"
398
398
  @options={{this.availableOverrides}}
399
399
  @prompt={{t "caluma.form-builder.question.no-selection"}}
400
+ @promptIsSelectable={{true}}
400
401
  />
401
402
 
402
403
  <f.input
@@ -10,6 +10,7 @@ import validateOptions from "../validators/options";
10
10
  import and from "@projectcaluma/ember-form-builder/utils/and";
11
11
  import or from "@projectcaluma/ember-form-builder/utils/or";
12
12
  import validateJexl from "@projectcaluma/ember-form-builder/validators/jexl";
13
+ import validateMeta from "@projectcaluma/ember-form-builder/validators/meta";
13
14
  import validateSlug from "@projectcaluma/ember-form-builder/validators/slug";
14
15
  import validateType from "@projectcaluma/ember-form-builder/validators/type";
15
16
 
@@ -85,4 +86,5 @@ export default {
85
86
  ),
86
87
  isHidden: validateJexl(),
87
88
  isRequired: validateJexl(),
89
+ meta: validateMeta(),
88
90
  };
@@ -0,0 +1,13 @@
1
+ export default function validateMeta() {
2
+ return (key, newValue) => {
3
+ // only allow objects {}
4
+ if (
5
+ typeof newValue === "object" &&
6
+ !Array.isArray(newValue) &&
7
+ newValue !== null
8
+ ) {
9
+ return true;
10
+ }
11
+ return "Meta is not a valid JSON object";
12
+ };
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form-builder",
3
- "version": "11.0.3",
3
+ "version": "11.1.1",
4
4
  "description": "Ember engine for building Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -25,9 +25,9 @@
25
25
  "@embroider/macros": "^1.10.0",
26
26
  "@glimmer/component": "^1.1.2",
27
27
  "@glimmer/tracking": "^1.1.2",
28
- "@projectcaluma/ember-core": "^11.0.3",
29
- "@projectcaluma/ember-form": "^11.0.3",
30
- "codejar": "^3.6.0",
28
+ "@projectcaluma/ember-core": "^11.1.1",
29
+ "@projectcaluma/ember-form": "^11.1.1",
30
+ "codejar": "^3.7.0",
31
31
  "ember-apollo-client": "~4.0.2",
32
32
  "ember-auto-import": "^2.6.1",
33
33
  "ember-changeset": "^4.1.2",
@@ -63,7 +63,7 @@
63
63
  "@ember/test-helpers": "2.7.0",
64
64
  "@embroider/test-setup": "2.1.1",
65
65
  "@faker-js/faker": "7.6.0",
66
- "@projectcaluma/ember-testing": "11.0.3",
66
+ "@projectcaluma/ember-testing": "11.1.1",
67
67
  "broccoli-asset-rev": "3.0.0",
68
68
  "concurrently": "7.6.0",
69
69
  "ember-autoresize-modifier": "^0.7.0",
@@ -86,7 +86,7 @@
86
86
  "miragejs": "0.1.47",
87
87
  "qunit": "2.19.4",
88
88
  "qunit-dom": "2.0.0",
89
- "webpack": "5.75.0"
89
+ "webpack": "5.76.2"
90
90
  },
91
91
  "engines": {
92
92
  "node": "14.* || 16.* || >= 18"