@ember-eui/core 1.2.0 → 1.2.4
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
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
### Master
|
|
4
4
|
|
|
5
|
+
### 1.2.4
|
|
6
|
+
🏠 Internal
|
|
7
|
+
`@ember-eui/changeset-form`,`@ember-eui/validated-form`
|
|
8
|
+
- Pass down isCleareable to wrapped component
|
|
9
|
+
|
|
10
|
+
### 1.2.3
|
|
11
|
+
🚀 Enhancements
|
|
12
|
+
`@ember-eui/core`
|
|
13
|
+
- add errorMessage for validatable-control for i18n or so
|
|
14
|
+
🏠 Internal
|
|
15
|
+
`@ember-eui/core`
|
|
16
|
+
- update ember-power-select in order to be able to pass attributes to trigger
|
|
17
|
+
|
|
18
|
+
### 1.2.2
|
|
19
|
+
🐛 Bug / Fixes
|
|
20
|
+
`@ember-eui/core`
|
|
21
|
+
- add styling for fake input
|
|
22
|
+
|
|
23
|
+
### 1.2.1
|
|
24
|
+
🐛 Bug / Fixes
|
|
25
|
+
`@ember-eui/core`
|
|
26
|
+
- add tabindex to fake input for `<EuiComboBox />`
|
|
5
27
|
|
|
6
28
|
### 1.2.0
|
|
7
29
|
🚀 Enhancements
|
|
@@ -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
|
|
@@ -89,7 +76,8 @@
|
|
|
89
76
|
style="font-size: 14px; display: inline-block; position: relative;"
|
|
90
77
|
>
|
|
91
78
|
<input
|
|
92
|
-
|
|
79
|
+
tabindex="-1"
|
|
80
|
+
style="opacity: 0px; width:0px; height:0px; position: absolute; top: 40%; border:solid 1px transparent !important; margin:0px !important;"
|
|
93
81
|
class="fake-input-for-html-form-validity"
|
|
94
82
|
{{validatable-control @isInvalid}}
|
|
95
83
|
/>
|
|
@@ -124,15 +112,4 @@
|
|
|
124
112
|
{{/if}}
|
|
125
113
|
</ul>
|
|
126
114
|
</:field>
|
|
127
|
-
{{!-- <:append as |classes|>
|
|
128
|
-
{{#if @extra.appendTriggerInputComponent}}
|
|
129
|
-
{{#let
|
|
130
|
-
(component
|
|
131
|
-
@extra.appendTriggerInputComponent
|
|
132
|
-
) as |AppendTriggerInputComponent|
|
|
133
|
-
}}
|
|
134
|
-
<AppendTriggerInputComponent class={{classes}} />
|
|
135
|
-
{{/let}}
|
|
136
|
-
{{/if}}
|
|
137
|
-
</:append> --}}
|
|
138
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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": "^
|
|
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": "
|
|
144
|
+
"gitHead": "592f96d628da79922566ffe9c9f62bc74cf7aec7"
|
|
145
145
|
}
|