@ember-eui/core 1.1.0 → 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,32 @@
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
+
16
+ ### 1.2.2
17
+ 🐛 Bug / Fixes
18
+ `@ember-eui/core`
19
+ - add styling for fake input
20
+
21
+ ### 1.2.1
22
+ 🐛 Bug / Fixes
23
+ `@ember-eui/core`
24
+ - add tabindex to fake input for `<EuiComboBox />`
25
+
26
+ ### 1.2.0
27
+ 🚀 Enhancements
28
+ `@ember-eui/core`
29
+ - add fake input for html form validation to combobox
30
+
31
+
6
32
  ### 1.1.0
7
33
  🚀 Enhancements
8
34
  `@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
@@ -86,10 +73,15 @@
86
73
  {{/if}}
87
74
  <div
88
75
  class="euiComboBox__input"
89
- style="font-size: 14px; display: inline-block;"
76
+ style="font-size: 14px; display: inline-block; position: relative;"
90
77
  >
91
78
  <input
79
+ tabindex="-1"
80
+ style="opacity: 0px; width:0px; height:0px; position: absolute; top: 40%; border:solid 1px transparent !important; margin:0px !important;"
81
+ class="fake-input-for-html-form-validity"
92
82
  {{validatable-control @isInvalid}}
83
+ />
84
+ <input
93
85
  class="ember-power-select-trigger-multiple-input euiComboBox__input"
94
86
  autocomplete="off"
95
87
  autocorrect="off"
@@ -101,7 +93,7 @@
101
93
  style={{this.triggerMultipleInputStyle}}
102
94
  disabled={{@select.disabled}}
103
95
  tabindex={{@tabindex}}
104
- form="euiComboBox-input--fakeForm"
96
+ form="power-select-fake-form"
105
97
  {{on "focus" @onFocus}}
106
98
  {{on "blur" @onBlur}}
107
99
  {{on "input" this.handleInput}}
@@ -120,15 +112,4 @@
120
112
  {{/if}}
121
113
  </ul>
122
114
  </:field>
123
- {{!-- <:append as |classes|>
124
- {{#if @extra.appendTriggerInputComponent}}
125
- {{#let
126
- (component
127
- @extra.appendTriggerInputComponent
128
- ) as |AppendTriggerInputComponent|
129
- }}
130
- <AppendTriggerInputComponent class={{classes}} />
131
- {{/let}}
132
- {{/if}}
133
- </:append> --}}
134
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.1.0",
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": "5a91d057bfdde9cd20385c93d6395de24cc4a5f2"
144
+ "gitHead": "237b2b1b7e237ad49d035e4b72c590e3c43bd611"
145
145
  }