ember-validated-form 6.1.0 → 6.1.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [6.1.2](https://github.com/adfinis/ember-validated-form/compare/v6.1.1...v6.1.2) (2022-09-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **label:** only show requiredness indicator if a label is given ([72c212d](https://github.com/adfinis/ember-validated-form/commit/72c212dc036c643dca43e1c22a7ec43384f70ab5))
7
+
8
+ ## [6.1.1](https://github.com/adfinis/ember-validated-form/compare/v6.1.0...v6.1.1) (2022-09-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **bootstrap:** make sure error feedback is always visible ([1722144](https://github.com/adfinis/ember-validated-form/commit/17221448567a4fb6dc53c39c3f42eb8eb66bdc3d))
14
+ * **checkbox-group:** fix multiple selection in checkbox group ([6bb902b](https://github.com/adfinis/ember-validated-form/commit/6bb902b0577c68671f09f9cda65b5f16ac1b8fcb))
15
+
1
16
  # [6.1.0](https://github.com/adfinis/ember-validated-form/compare/v6.0.2...v6.1.0) (2022-09-16)
2
17
 
3
18
 
@@ -6,7 +6,7 @@
6
6
  <span
7
7
  class={{if
8
8
  (macroCondition (macroGetOwnConfig "isBootstrap"))
9
- "invalid-feedback"
9
+ "d-block invalid-feedback"
10
10
  }}
11
11
  ...attributes
12
12
  >
@@ -3,5 +3,5 @@
3
3
  for={{@inputId}}
4
4
  ...attributes
5
5
  >
6
- {{yield}}{{@label}}{{if @required " *"}}
6
+ {{yield}}{{@label}}{{if (and @label @required) " *"}}
7
7
  </label>
@@ -6,16 +6,11 @@ export default class CheckboxGroupComponent extends Component {
6
6
  onUpdate(key, event) {
7
7
  event.preventDefault();
8
8
 
9
- const value = this.value || [];
10
- const index = value.indexOf(key);
9
+ const value = new Set(this.args.value || []);
11
10
 
12
- if (index > -1) {
13
- value.splice(index, 1);
14
- } else {
15
- value.push(key);
16
- }
11
+ value.delete(key) || value.add(key);
17
12
 
18
- this.args.update(value);
13
+ this.args.update([...value]);
19
14
  this.args.setDirty();
20
15
  }
21
16
  }
@@ -53,6 +53,7 @@
53
53
  @multiple={{@multiple}}
54
54
  @update={{this.update}}
55
55
  @setDirty={{this.setDirty}}
56
+ @submitted={{@submitted}}
56
57
  @labelComponent={{component
57
58
  (ensure-safe-component this.labelComponent)
58
59
  label=@label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-validated-form",
3
- "version": "6.1.0",
3
+ "version": "6.1.2",
4
4
  "description": "Easily create forms with client-side validations",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -40,7 +40,7 @@
40
40
  "ember-changeset": "^4.1.1",
41
41
  "ember-changeset-validations": "^4.1.0",
42
42
  "ember-cli-babel": "^7.26.11",
43
- "ember-cli-htmlbars": "^6.1.0",
43
+ "ember-cli-htmlbars": "^6.1.1",
44
44
  "ember-truth-helpers": "^3.1.1"
45
45
  },
46
46
  "devDependencies": {
@@ -65,7 +65,7 @@
65
65
  "ember-cli-sri": "2.1.1",
66
66
  "ember-cli-terser": "4.0.2",
67
67
  "ember-cli-test-loader": "3.0.0",
68
- "ember-concurrency": "2.3.6",
68
+ "ember-concurrency": "2.3.7",
69
69
  "ember-data": "4.4.1",
70
70
  "ember-disable-prototype-extensions": "1.1.3",
71
71
  "ember-flatpickr": "3.2.3",