@ember-eui/core 1.2.2 → 1.2.3

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
@@ -3,6 +3,16 @@
3
3
  ### Master
4
4
 
5
5
 
6
+ ### 1.3.0
7
+ 🏠 Internal
8
+ `@ember-eui/core`
9
+ - update ember-power-select in order to be able to pass attributes to trigger
10
+
11
+ ### 1.3.0
12
+ 🚀 Enhancements
13
+ `@ember-eui/core`
14
+ - add errorMessage for validatable-control for i18n or so
15
+
6
16
  ### 1.2.2
7
17
  🐛 Bug / Fixes
8
18
  `@ember-eui/core`
@@ -6,20 +6,7 @@
6
6
  @readOnly={{@readOnly}}
7
7
  @clear={{if (and @select.selected @onClear) @onClear}}
8
8
  @disabled={{@select.disabled}}
9
- {{!-- @useGroup={{or @extra.prependTriggerComponent @extra.appendTriggerComponent}} --}}
10
- {{!-- @isLoading={{@isLoading}} --}}
11
9
  >
12
- {{!-- <:prepend as |classes|>
13
- {{#if @extra.prependTriggerComponent}}
14
- {{#let
15
- (component
16
- @extra.prependTriggerComponent
17
- ) as |PrependTriggerInputComponent|
18
- }}
19
- <PrependTriggerInputComponent class={{classes}} />
20
- {{/let}}
21
- {{/if}}
22
- </:prepend> --}}
23
10
  <:field>
24
11
  {{! template-lint-disable }}
25
12
  <ul
@@ -125,15 +112,4 @@
125
112
  {{/if}}
126
113
  </ul>
127
114
  </:field>
128
- {{!-- <:append as |classes|>
129
- {{#if @extra.appendTriggerInputComponent}}
130
- {{#let
131
- (component
132
- @extra.appendTriggerInputComponent
133
- ) as |AppendTriggerInputComponent|
134
- }}
135
- <AppendTriggerInputComponent class={{classes}} />
136
- {{/let}}
137
- {{/if}}
138
- </:append> --}}
139
115
  </EuiFormControlLayout>
@@ -3,13 +3,13 @@ import { typeOf } from '@ember/utils';
3
3
 
4
4
  export default modifier(function validatableControl(
5
5
  element: HTMLObjectElement,
6
- [isInvalid]: [boolean]
6
+ [isInvalid, errorMessage]: [boolean, string]
7
7
  ) {
8
8
  if (typeOf(element.setCustomValidity) !== 'function') {
9
9
  return;
10
10
  }
11
11
  if (isInvalid) {
12
- element.setCustomValidity('Invalid');
12
+ element.setCustomValidity(errorMessage || 'Invalid');
13
13
  } else {
14
14
  element.setCustomValidity('');
15
15
  }
package/index.js CHANGED
@@ -15,7 +15,7 @@ module.exports = {
15
15
  }
16
16
  },
17
17
 
18
- inDevelopingAddon() {
18
+ isDevelopingAddon() {
19
19
  return true;
20
20
  },
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -71,7 +71,7 @@
71
71
  "ember-math-helpers": "^2.15.0",
72
72
  "ember-modifier": "^2.1.1",
73
73
  "ember-named-blocks-polyfill": "^0.2.3",
74
- "ember-power-select": "^4.1.5",
74
+ "ember-power-select": "^5.0.2",
75
75
  "ember-set-body-class": "^1.0.2",
76
76
  "ember-set-helper": "^2.0.0",
77
77
  "ember-style-modifier": "^0.6.0",
@@ -141,5 +141,5 @@
141
141
  "volta": {
142
142
  "node": "12.22.1"
143
143
  },
144
- "gitHead": "7f353f05ae48d7d207520067c02cb9b084ee6409"
144
+ "gitHead": "237b2b1b7e237ad49d035e4b72c590e3c43bd611"
145
145
  }