@projectcaluma/ember-form-builder 13.2.2 → 14.0.0

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.
@@ -212,6 +212,14 @@
212
212
  step="any"
213
213
  />
214
214
  </div>
215
+ <div>
216
+ <f.input
217
+ @type="number"
218
+ @name="floatStep"
219
+ @label={{t "caluma.form-builder.question.step"}}
220
+ step="any"
221
+ />
222
+ </div>
215
223
  </div>
216
224
  {{/if}}
217
225
 
@@ -97,6 +97,7 @@ export default class CfbFormEditorQuestion extends Component {
97
97
  integerMaxValue: null,
98
98
  floatMinValue: null,
99
99
  floatMaxValue: null,
100
+ floatStep: null,
100
101
  minLength: null,
101
102
  maxLength: null,
102
103
  defaultAnswer: null,
@@ -253,6 +254,7 @@ export default class CfbFormEditorQuestion extends Component {
253
254
  return {
254
255
  minValue: parseFloat(changeset.get("floatMinValue")),
255
256
  maxValue: parseFloat(changeset.get("floatMaxValue")),
257
+ step: parseFloat(changeset.get("floatStep")),
256
258
  placeholder: changeset.get("placeholder"),
257
259
  hintText: changeset.get("hintText"),
258
260
  };
@@ -8,6 +8,7 @@ mutation SaveFloatQuestion($input: SaveFloatQuestionInput!) {
8
8
  ... on FloatQuestion {
9
9
  floatMinValue: minValue
10
10
  floatMaxValue: maxValue
11
+ floatStep: step
11
12
  hintText
12
13
  }
13
14
  }
@@ -20,6 +20,7 @@ query FormEditorQuestion($slug: String!) {
20
20
  ... on FloatQuestion {
21
21
  floatMaxValue: maxValue
22
22
  floatMinValue: minValue
23
+ floatStep: step
23
24
  placeholder
24
25
  hintText
25
26
  defaultAnswer {
@@ -53,6 +53,10 @@ export default {
53
53
  validateGtLt({ gt: "floatMinValue", allowNone: true }),
54
54
  ),
55
55
  ),
56
+ floatStep: or(
57
+ validateType("FloatQuestion", false),
58
+ validateNumber({ gt: 0, allowBlank: true }),
59
+ ),
56
60
 
57
61
  minLength: or(
58
62
  and(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form-builder",
3
- "version": "13.2.2",
3
+ "version": "14.0.0",
4
4
  "description": "Ember engine for building Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -48,8 +48,8 @@
48
48
  "lodash.isequal": "^4.5.0",
49
49
  "reactiveweb": "^1.3.0",
50
50
  "uikit": "^3.22.0",
51
- "@projectcaluma/ember-core": "^13.2.2",
52
- "@projectcaluma/ember-form": "^13.2.2"
51
+ "@projectcaluma/ember-core": "^14.0.0",
52
+ "@projectcaluma/ember-form": "^14.0.0"
53
53
  },
54
54
  "//": [
55
55
  "TODO: remove obsolete dependency to `ember-data` which is only necessary",
@@ -85,7 +85,7 @@
85
85
  "qunit-dom": "3.4.0",
86
86
  "sinon": "19.0.2",
87
87
  "webpack": "5.97.1",
88
- "@projectcaluma/ember-testing": "13.2.2"
88
+ "@projectcaluma/ember-testing": "14.0.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "ember-engines": "^0.11.0",
@@ -72,6 +72,7 @@ caluma:
72
72
  max-value: "Maximaler Wert"
73
73
  min-length: "Minimale Länge"
74
74
  max-length: "Maximale Länge"
75
+ step: "Schritte"
75
76
  rowForm: "Formular für Tabelleneinträge"
76
77
  subForm: "Formular für Einträge"
77
78
  no-selection: "Keine Auswahl"
@@ -72,6 +72,7 @@ caluma:
72
72
  max-value: "Maximum value"
73
73
  min-length: "Minimum length"
74
74
  max-length: "Maximum length"
75
+ step: "Steps"
75
76
  rowForm: "Form to use for rows"
76
77
  subForm: "Form to use for entries"
77
78
  no-selection: "No selection"
@@ -72,6 +72,7 @@ caluma:
72
72
  max-value: "Valeur maximale"
73
73
  min-length: "Longueur minimale"
74
74
  max-length: "Longueur maximale"
75
+ step: "Étapes"
75
76
  rowForm: "Formulaire pour les entrées de tableau"
76
77
  subForm: "Formulaire pour les entrées"
77
78
  no-selection: "Aucune sélection"
@@ -72,6 +72,7 @@ caluma:
72
72
  max-value: "Valore massimo"
73
73
  min-length: "Lunghezza minima"
74
74
  max-length: "Lunghezza massima"
75
+ step: "Passi"
75
76
  rowForm: "Modulo per righe delle tabelle"
76
77
  subForm: "Modulo per voci"
77
78
  no-selection: "Nessuna selezione"