@heroku/ember-hk-components 0.21.0 → 0.21.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
+ ## 0.21.2 (2023-02-22)
2
+
3
+ #### :bug: Bug Fix
4
+ * [#241](https://github.com/heroku/ember-hk-components/pull/241) Pass disabled as proper argument ([@eablack](https://github.com/eablack))
5
+
6
+ #### Committers: 1
7
+ - Eric ([@eablack](https://github.com/eablack))
8
+ ## 0.21.1 (2023-02-20)
9
+
10
+ #### :bug: Bug Fix
11
+ * [#239](https://github.com/heroku/ember-hk-components/pull/239) Updates to hk-select ([@eablack](https://github.com/eablack))
12
+
13
+ #### Committers: 1
14
+ - Eric ([@eablack](https://github.com/eablack))
15
+
1
16
  ## 0.21.0 (2023-01-27)
2
17
 
3
18
  #### :boom: Breaking Change
@@ -5,13 +5,7 @@ import { computed } from '@ember/object';
5
5
  export default Component.extend({
6
6
  layout,
7
7
  tagName: '',
8
- initialSelected: computed('options', 'selected', function () {
9
- if (this.selected) {
10
- return this.selected;
11
- } else if (this.options) {
12
- return this.options[0];
13
- }
14
- }),
8
+
15
9
  selectClassNames: computed(function () {
16
10
  let classNames = 'hk-select';
17
11
  if (this.isValid) {
@@ -1,6 +1,6 @@
1
1
  {{yield (hash
2
2
  value=value
3
3
  label=(component 'hk-label' for=groupId isRequired=isRequired data-test-target=(concat 'form-group-label-' property))
4
- field=(component fieldType id=groupId value=value isValid=isValid isInvalid=isInvalid isValidating=isValidating onChange=onChange options=options aria-describedby=(concat groupId '-errors-list') data-test-target=(concat 'form-group-field-' property))
4
+ field=(component fieldType id=groupId value=value isValid=isValid isInvalid=isInvalid isValidating=isValidating onChange=onChange options=options selected=selected aria-describedby=(concat groupId '-errors-list') data-test-target=(concat 'form-group-field-' property))
5
5
  errorsList=(component 'hk-validation-errors-list' validationErrors=validationErrors property=property errorsListId=errorsListId)
6
6
  )}}
@@ -3,10 +3,11 @@
3
3
  id={{this.id}}
4
4
  class={{this.selectClassNames}}
5
5
  readonly={{this.readonly}}
6
- disabled={{this.disabled}}
7
6
  aria-label="select-dropdown"
7
+ @disabled={{this.disabled}}
8
+ @renderInPlace={{true}}
8
9
  @options={{this.options}}
9
- @selected={{this.initialSelected}}
10
+ @selected={{this.selected}}
10
11
  @onChange={{this.onChange}} as |option|>
11
12
  {{yield option}}
12
13
  </PowerSelect>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/ember-hk-components",
3
- "version": "0.21.0",
3
+ "version": "0.21.2",
4
4
  "description": "Ember HK Components",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -27,7 +27,7 @@
27
27
  "@heroku/ember-malibu-icon": "^1.6.0",
28
28
  "body-scroll-lock": "^3.1.5",
29
29
  "ember-auto-import": "^2.6.0",
30
- "ember-changeset": "^2.2.4",
30
+ "ember-changeset": "4.0.0",
31
31
  "ember-changeset-validations": "^2.2.1",
32
32
  "ember-cli-babel": "^7.26.11",
33
33
  "ember-cli-htmlbars": "^6.1.1",