@projectcaluma/ember-form 12.7.0 → 12.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,4 +22,10 @@
22
22
  {{option.label}}
23
23
  {{/if}}
24
24
  </label>
25
- {{/each}}
25
+ {{/each}}
26
+ {{#if (and @field.optional @field.answer.value)}}
27
+ <br />
28
+ <a href="" data-test-radio-reset {{on "click" this.reset}}>
29
+ {{t "caluma.form.power-select.reset"}}
30
+ </a>
31
+ {{/if}}
@@ -0,0 +1,11 @@
1
+ import { action } from "@ember/object";
2
+ import Component from "@glimmer/component";
3
+
4
+ export default class CfFieldInpuRadio extends Component {
5
+ @action
6
+ reset(event) {
7
+ event.preventDefault();
8
+
9
+ this.args.onSave(null);
10
+ }
11
+ }
@@ -20,6 +20,7 @@ module.exports = {
20
20
  { name: "ember-flatpickr" },
21
21
  { name: "ember-in-viewport" },
22
22
  { name: "ember-math-helpers" },
23
+ { name: "ember-truth-helpers" },
23
24
  { name: "ember-power-select" },
24
25
  ],
25
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "12.7.0",
3
+ "version": "12.8.0",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -11,12 +11,12 @@
11
11
  "dependencies": {
12
12
  "@babel/core": "^7.23.6",
13
13
  "@ember/string": "^3.1.1",
14
- "@embroider/macros": "^1.13.3",
14
+ "@embroider/macros": "^1.13.4",
15
15
  "@embroider/util": "^1.12.1",
16
16
  "@glimmer/component": "^1.1.2",
17
17
  "@glimmer/tracking": "^1.1.2",
18
18
  "ember-apollo-client": "~4.0.2",
19
- "ember-auto-import": "^2.7.0",
19
+ "ember-auto-import": "^2.7.1",
20
20
  "ember-autoresize-modifier": "^0.7.0",
21
21
  "ember-cli-babel": "^8.2.0",
22
22
  "ember-cli-htmlbars": "^6.3.0",
@@ -30,6 +30,7 @@
30
30
  "ember-math-helpers": "^4.0.0",
31
31
  "ember-power-select": "^7.2.0",
32
32
  "ember-resources": "^6.4.2",
33
+ "ember-truth-helpers": "^4.0.3",
33
34
  "ember-uikit": "^9.0.0",
34
35
  "ember-validators": "^4.1.2",
35
36
  "graphql": "^15.8.0",
@@ -37,7 +38,7 @@
37
38
  "lodash.isequal": "^4.5.0",
38
39
  "luxon": "^3.4.4",
39
40
  "tracked-toolbox": "^2.0.0",
40
- "@projectcaluma/ember-core": "^12.7.0"
41
+ "@projectcaluma/ember-core": "^12.8.0"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@ember/optional-features": "2.0.0",
@@ -66,12 +67,12 @@
66
67
  "uikit": "3.17.11",
67
68
  "uuid": "9.0.1",
68
69
  "webpack": "5.89.0",
69
- "@projectcaluma/ember-workflow": "12.7.0",
70
- "@projectcaluma/ember-testing": "12.7.0"
70
+ "@projectcaluma/ember-testing": "12.8.0",
71
+ "@projectcaluma/ember-workflow": "12.8.0"
71
72
  },
72
73
  "peerDependencies": {
73
74
  "ember-source": "^4.0.0",
74
- "@projectcaluma/ember-workflow": "^12.7.0"
75
+ "@projectcaluma/ember-workflow": "^12.8.0"
75
76
  },
76
77
  "dependenciesMeta": {
77
78
  "@projectcaluma/ember-core": {
@@ -40,6 +40,7 @@ caluma:
40
40
  options-empty: "Keine Optionen vorhanden"
41
41
  search-placeholder: "Hier tippen um zu suchen"
42
42
  search-empty: "Keine Optionen gefunden"
43
+ reset: "Zurücksetzen"
43
44
 
44
45
  validation:
45
46
  blank: "Dieses Feld darf nicht leer gelassen werden"
@@ -40,6 +40,7 @@ caluma:
40
40
  options-empty: "No options available"
41
41
  search-placeholder: "Type here to search options"
42
42
  search-empty: "Search didn't match any options"
43
+ reset: "Reset"
43
44
 
44
45
  validation:
45
46
  blank: "This field can't be blank"
@@ -40,6 +40,7 @@ caluma:
40
40
  options-empty: "Pas d'options disponibles"
41
41
  search-placeholder: "Tapez ici pour rechercher"
42
42
  search-empty: "Pas d'options trouvées"
43
+ reset: "Réinitialiser"
43
44
 
44
45
  validation:
45
46
  blank: "Ce champ ne doit pas être laissé vide"