@projectcaluma/ember-form 11.0.0-beta.22 → 11.0.0-beta.25

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [@projectcaluma/ember-form-v11.0.0-beta.23](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.22...@projectcaluma/ember-form-v11.0.0-beta.23) (2022-08-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **files:** disable delete button when field is disabled ([#2086](https://github.com/projectcaluma/ember-caluma/issues/2086)) ([2055c53](https://github.com/projectcaluma/ember-caluma/commit/2055c53cbcfe07fbdcfa46e6042a763b4b643d65))
7
+ * **form:** allow deselecting disabled multiple choice options ([0dd663e](https://github.com/projectcaluma/ember-caluma/commit/0dd663e467b66f0f8742d667630c28255e03e161))
8
+
1
9
  # [@projectcaluma/ember-form-v11.0.0-beta.22](https://github.com/projectcaluma/ember-caluma/compare/@projectcaluma/ember-form-v11.0.0-beta.21...@projectcaluma/ember-form-v11.0.0-beta.22) (2022-08-05)
2
10
 
3
11
 
@@ -10,7 +10,7 @@
10
10
  name={{@field.pk}}
11
11
  value={{option.slug}}
12
12
  checked={{includes option.slug @field.answer.value}}
13
- disabled={{or option.disabled @disabled}}
13
+ disabled={{@disabled}}
14
14
  {{on "change" this.update}}
15
15
  />
16
16
  {{#if (and option.disabled (not @disabled))}}
@@ -23,12 +23,15 @@
23
23
  >
24
24
  {{file.name}}
25
25
  </UkButton>
26
- <UkIcon
27
- class="uk-icon-button uk-margin-small-left"
28
- role="button"
29
- @icon="trash"
30
- {{on "click" (fn this.delete file.id)}}
31
- />
26
+ {{#unless @disabled}}
27
+ <UkIcon
28
+ data-test-delete={{file.id}}
29
+ class="uk-icon-button uk-margin-small-left"
30
+ role="button"
31
+ @icon="trash"
32
+ {{on "click" (fn this.delete file.id)}}
33
+ />
34
+ {{/unless}}
32
35
  </li>
33
36
  {{/each}}
34
37
  </ul>
@@ -43,6 +43,8 @@ export default class CalumaStoreService extends Service {
43
43
  clear() {
44
44
  this._store.forEach((obj) => obj.destroy());
45
45
 
46
+ // `this._store` is not an ember array but a native map
47
+ // eslint-disable-next-line ember/no-array-prototype-extensions
46
48
  this._store.clear();
47
49
  }
48
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-form",
3
- "version": "11.0.0-beta.22",
3
+ "version": "11.0.0-beta.25",
4
4
  "description": "Ember addon for rendering Caluma forms.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -19,7 +19,7 @@
19
19
  "@embroider/util": "^1.8.3",
20
20
  "@glimmer/component": "^1.1.2",
21
21
  "@glimmer/tracking": "^1.1.2",
22
- "@projectcaluma/ember-core": "^11.0.0-beta.9",
22
+ "@projectcaluma/ember-core": "^11.0.0-beta.25",
23
23
  "ember-apollo-client": "~4.0.2",
24
24
  "ember-auto-import": "^2.4.2",
25
25
  "ember-autoresize-modifier": "^0.5.0",
@@ -27,29 +27,29 @@
27
27
  "ember-cli-htmlbars": "^6.1.0",
28
28
  "ember-cli-showdown": "^6.0.1",
29
29
  "ember-composable-helpers": "^5.0.0",
30
- "ember-concurrency": "^2.2.1",
31
- "ember-fetch": "^8.1.1",
30
+ "ember-concurrency": "^2.3.2",
31
+ "ember-fetch": "^8.1.2",
32
32
  "ember-in-viewport": "^4.0.2",
33
33
  "ember-intl": "^5.7.2",
34
34
  "ember-math-helpers": "^2.18.2",
35
35
  "ember-pikaday": "^4.0.0",
36
- "ember-power-select": "^5.0.4",
37
- "ember-resources": "^5.1.1",
38
- "ember-uikit": "^5.1.3",
36
+ "ember-power-select": "^6.0.1",
37
+ "ember-resources": "^5.3.0",
38
+ "ember-uikit": "^6.0.0",
39
39
  "ember-validators": "^4.1.2",
40
40
  "graphql": "^15.8.0",
41
41
  "jexl": "^2.3.0",
42
42
  "lodash.isequal": "^4.5.0",
43
- "luxon": "^3.0.1",
43
+ "luxon": "^3.0.2",
44
44
  "tracked-toolbox": "^1.2.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@ember/optional-features": "2.0.0",
48
48
  "@ember/test-helpers": "2.8.1",
49
49
  "@embroider/test-setup": "1.8.3",
50
- "@faker-js/faker": "7.3.0",
51
- "@projectcaluma/ember-testing": "11.0.0-beta.10",
52
- "@projectcaluma/ember-workflow": "^11.0.0-beta.7",
50
+ "@faker-js/faker": "7.4.0",
51
+ "@projectcaluma/ember-testing": "11.0.0-beta.25",
52
+ "@projectcaluma/ember-workflow": "^11.0.0-beta.25",
53
53
  "broccoli-asset-rev": "3.0.0",
54
54
  "ember-cli": "3.28.5",
55
55
  "ember-cli-code-coverage": "1.0.3",
@@ -76,7 +76,7 @@
76
76
  "webpack": "5.74.0"
77
77
  },
78
78
  "peerDependencies": {
79
- "@projectcaluma/ember-workflow": "^11.0.0-beta.7"
79
+ "@projectcaluma/ember-workflow": "^11.0.0-beta.25"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "@projectcaluma/ember-workflow": {