@ember-eui/core 4.0.3 → 4.0.6
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 +17 -0
- package/addon/components/eui-card/index.hbs +1 -1
- package/addon/modifiers/focus-tab.ts +11 -2
- package/blueprints/{ember-eui → ember-eui-core}/index.js +4 -4
- package/docs/editors/code/code-block-demo/demo1.md +12 -17
- package/docs/forms/form-controls/form-control-layout-demo/demo1.md +8 -8
- package/docs/utilities/mutation-observer-demo/demo1.md +1 -1
- package/package.json +11 -8
- package/blueprints/ember-eui/files/app/styles/app.scss +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
### Master
|
|
4
4
|
|
|
5
|
+
### 4.0.6
|
|
6
|
+
🐛 Bug / Fixes
|
|
7
|
+
`@ember-eui/core`
|
|
8
|
+
- Fix named blocks version
|
|
9
|
+
|
|
10
|
+
### 4.0.5
|
|
11
|
+
🐛 Bug / Fixes
|
|
12
|
+
`@ember-eui/core`
|
|
13
|
+
- Add ember-named-blocks-polyfill back
|
|
14
|
+
|
|
15
|
+
### 4.0.4
|
|
16
|
+
🐛 Bug / Fixes
|
|
17
|
+
`@ember-eui/core`
|
|
18
|
+
- Fixes some dependencies issues with 4.x breakings
|
|
19
|
+
- Adds a blueprint to install ember-focus-trap in host
|
|
20
|
+
- Fixes `<EuiPikaday />`
|
|
21
|
+
|
|
5
22
|
### 4.0.0
|
|
6
23
|
💥 Breaking change
|
|
7
24
|
`@ember-eui/*`
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
(if (and (eq @display "plain") (not @selectable)) "euiCard--plain")
|
|
11
11
|
(if @isDisabled "euiCard-isDisabled")
|
|
12
12
|
(if (has-block) "euiCard--hasChildren")
|
|
13
|
-
(if @icon "euiCard--hasIcon" (if has-block "icon" "euiCard--hasIcon"))
|
|
13
|
+
(if @icon "euiCard--hasIcon" (if (has-block) "icon" "euiCard--hasIcon"))
|
|
14
14
|
(if @betaBadgeLabel "euiCard--hasBetaBadge")
|
|
15
15
|
(if
|
|
16
16
|
(or titleId (and @selectable (not @selectable.isDisabled)))
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { scheduleOnce } from '@ember/runloop';
|
|
1
2
|
import { modifier } from 'ember-modifier';
|
|
2
3
|
|
|
3
4
|
export default modifier(function focusTab(
|
|
4
5
|
_element: HTMLElement,
|
|
5
|
-
[selectedTabId, isDisabled, focusFn]: [
|
|
6
|
+
[selectedTabId, isDisabled, focusFn]: [
|
|
7
|
+
Tab,
|
|
8
|
+
boolean,
|
|
9
|
+
(...args: unknown[]) => void,
|
|
10
|
+
boolean
|
|
11
|
+
]
|
|
6
12
|
) {
|
|
7
13
|
if (selectedTabId === undefined && !isDisabled) {
|
|
8
|
-
|
|
14
|
+
const fn = () => {
|
|
15
|
+
focusFn();
|
|
16
|
+
};
|
|
17
|
+
scheduleOnce('afterRender', null, fn);
|
|
9
18
|
}
|
|
10
19
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
description: 'Installs ember-
|
|
4
|
+
description: 'Installs ember-focus-trap',
|
|
5
5
|
|
|
6
6
|
normalizeEntityName() {
|
|
7
7
|
// this prevents an error when the entityName is
|
|
@@ -9,6 +9,6 @@ module.exports = {
|
|
|
9
9
|
},
|
|
10
10
|
|
|
11
11
|
afterInstall() {
|
|
12
|
-
return this.addAddonToProject('ember-
|
|
12
|
+
return this.addAddonToProject('ember-focus-trap');
|
|
13
13
|
}
|
|
14
|
-
};
|
|
14
|
+
};
|
|
@@ -18,24 +18,19 @@ order: 1
|
|
|
18
18
|
@value={{this.htmlCode}}
|
|
19
19
|
{{on 'input' (pick 'target.value' (set this 'htmlCode'))}}
|
|
20
20
|
/>
|
|
21
|
+
<EuiFormRow @label='Choose a Language'>
|
|
22
|
+
<EuiSelect
|
|
23
|
+
@value={{this.language}}
|
|
24
|
+
@hasNoInitialSelection={{true}}
|
|
25
|
+
@options={{array
|
|
26
|
+
(hash value='javascript' text='javascript')
|
|
27
|
+
(hash value='html' text='html')
|
|
28
|
+
(hash value='golang' text='golang')
|
|
29
|
+
}}
|
|
30
|
+
{{on 'change' (pick 'target.value' (set this 'language'))}}
|
|
31
|
+
/>
|
|
21
32
|
|
|
22
|
-
|
|
23
|
-
@value={{this.language}}
|
|
24
|
-
@hasNoInitialSelection={{true}}
|
|
25
|
-
@options={{array
|
|
26
|
-
(hash value='javascript' text='javascript')
|
|
27
|
-
(hash value='html' text='html')
|
|
28
|
-
(hash value='golang' text='golang')
|
|
29
|
-
}}
|
|
30
|
-
@id={{selectId}}
|
|
31
|
-
{{on 'change' (pick 'target.value' (set this 'language'))}}
|
|
32
|
-
>
|
|
33
|
-
<:prepend as |classes|>
|
|
34
|
-
<EuiFormLabel class={{classes}} for={{selectId}}>
|
|
35
|
-
Choose a language
|
|
36
|
-
</EuiFormLabel>
|
|
37
|
-
</:prepend>
|
|
38
|
-
</EuiSelect>
|
|
33
|
+
</EuiFormRow>
|
|
39
34
|
```
|
|
40
35
|
|
|
41
36
|
```javascript component
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/>
|
|
18
18
|
</EuiFormControlLayout>
|
|
19
19
|
<EuiSpacer @size="m" />
|
|
20
|
-
<EuiFormControlLayout @clear={{optional}}>
|
|
20
|
+
<EuiFormControlLayout @clear={{(optional)}}>
|
|
21
21
|
<input
|
|
22
22
|
type="text"
|
|
23
23
|
class="euiFieldText"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/>
|
|
26
26
|
</EuiFormControlLayout>
|
|
27
27
|
<EuiSpacer size="m" />
|
|
28
|
-
<EuiFormControlLayout @isLoading={{true}} @clear={{optional}}>
|
|
28
|
+
<EuiFormControlLayout @isLoading={{true}} @clear={{(optional)}}>
|
|
29
29
|
<input
|
|
30
30
|
type="text"
|
|
31
31
|
class="euiFieldText"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
/>
|
|
50
50
|
</EuiFormControlLayout>
|
|
51
51
|
<EuiSpacer size="m" />
|
|
52
|
-
<EuiFormControlLayout @clear={{optional}} @icon="search">
|
|
52
|
+
<EuiFormControlLayout @clear={{(optional)}} @icon="search">
|
|
53
53
|
<input
|
|
54
54
|
type="text"
|
|
55
55
|
class="euiFieldText"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/>
|
|
58
58
|
</EuiFormControlLayout>
|
|
59
59
|
<EuiSpacer size="m" />
|
|
60
|
-
<EuiFormControlLayout @clear={{optional}} @icon="arrowDown" @iconSide="right">
|
|
60
|
+
<EuiFormControlLayout @clear={{(optional)}} @icon="arrowDown" @iconSide="right">
|
|
61
61
|
<input
|
|
62
62
|
type="text"
|
|
63
63
|
class="euiFieldText"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
/>
|
|
66
66
|
</EuiFormControlLayout>
|
|
67
67
|
<EuiSpacer @size="m" />
|
|
68
|
-
<EuiFormControlLayout @isLoading={{true}} @clear={{optional}} @icon="search">
|
|
68
|
+
<EuiFormControlLayout @isLoading={{true}} @clear={{(optional)}} @icon="search">
|
|
69
69
|
<input
|
|
70
70
|
type="text"
|
|
71
71
|
class="euiFieldText"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
/>
|
|
74
74
|
</EuiFormControlLayout>
|
|
75
75
|
<EuiSpacer @size="m" />
|
|
76
|
-
<EuiFormControlLayout @isLoading={{true}} @clear={{optional}} @icon="arrowDown" @iconSide="right">
|
|
76
|
+
<EuiFormControlLayout @isLoading={{true}} @clear={{(optional)}} @icon="arrowDown" @iconSide="right">
|
|
77
77
|
<input
|
|
78
78
|
type="text"
|
|
79
79
|
class="euiFieldText"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
/>
|
|
82
82
|
</EuiFormControlLayout>
|
|
83
83
|
<EuiSpacer @size="m" />
|
|
84
|
-
<EuiFormControlLayout @isLoading={{true}} @clear={{optional}} @icon="search">
|
|
84
|
+
<EuiFormControlLayout @isLoading={{true}} @clear={{(optional)}} @icon="search">
|
|
85
85
|
<input
|
|
86
86
|
type="text"
|
|
87
87
|
class="euiFieldText"
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</:field>
|
|
129
129
|
</EuiFormControlLayout>
|
|
130
130
|
<EuiSpacer @size="m" />
|
|
131
|
-
<EuiFormControlLayout @isLoading={{true}} @clear={{optional}}>
|
|
131
|
+
<EuiFormControlLayout @isLoading={{true}} @clear={{(optional)}}>
|
|
132
132
|
<:prepend as |classes|>
|
|
133
133
|
<EuiButtonEmpty @size="xs" @iconType="arrowDown" @iconSide="right" class={{classes}}>
|
|
134
134
|
Button
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -62,17 +62,15 @@
|
|
|
62
62
|
"ember-cli-htmlbars": "^6.0.1",
|
|
63
63
|
"ember-cli-typescript": "4.2.1",
|
|
64
64
|
"ember-composable-helpers": "^4.4.1",
|
|
65
|
-
"ember-element-helper": "^0.
|
|
66
|
-
"ember-focus-trap": "^0.7.0",
|
|
67
|
-
"ember-in-element-polyfill": "^1.0.0",
|
|
65
|
+
"ember-element-helper": "^0.6.0",
|
|
68
66
|
"ember-keyboard": "^7.0.1",
|
|
69
67
|
"ember-math-helpers": "^2.15.0",
|
|
70
|
-
"ember-modifier": "^
|
|
68
|
+
"ember-modifier": "^3.1.0",
|
|
71
69
|
"ember-named-blocks-polyfill": "^0.2.3",
|
|
72
70
|
"ember-power-select": "^5.0.2",
|
|
73
71
|
"ember-set-body-class": "^1.0.2",
|
|
74
72
|
"ember-set-helper": "^2.0.1",
|
|
75
|
-
"ember-style-modifier": "^0.
|
|
73
|
+
"ember-style-modifier": "^0.7.0",
|
|
76
74
|
"ember-svg-jar": "^2.3.4",
|
|
77
75
|
"ember-truth-helpers": "^3.0.0",
|
|
78
76
|
"highlight.js": "^9.18.5",
|
|
@@ -90,6 +88,9 @@
|
|
|
90
88
|
"unified": "^9.2.0",
|
|
91
89
|
"vfile": "^4.2.0"
|
|
92
90
|
},
|
|
91
|
+
"peerDependencies": {
|
|
92
|
+
"ember-focus-trap": "^1.0.1"
|
|
93
|
+
},
|
|
93
94
|
"devDependencies": {
|
|
94
95
|
"@ember/optional-features": "^2.0.0",
|
|
95
96
|
"@ember/test-helpers": "^2.6.0",
|
|
@@ -132,6 +133,7 @@
|
|
|
132
133
|
"ember-cli-typescript-blueprints": "^3.0.0",
|
|
133
134
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
134
135
|
"ember-export-application-global": "^2.0.1",
|
|
136
|
+
"ember-focus-trap": "^1.0.1",
|
|
135
137
|
"ember-get-config": "~1.0.2",
|
|
136
138
|
"ember-load-initializers": "^2.1.2",
|
|
137
139
|
"ember-page-title": "^7.0.0",
|
|
@@ -167,10 +169,11 @@
|
|
|
167
169
|
"edition": "octane"
|
|
168
170
|
},
|
|
169
171
|
"ember-addon": {
|
|
170
|
-
"configPath": "tests/dummy/config"
|
|
172
|
+
"configPath": "tests/dummy/config",
|
|
173
|
+
"defaultBluerprint": "ember-eui-core"
|
|
171
174
|
},
|
|
172
175
|
"volta": {
|
|
173
176
|
"extends": "../../package.json"
|
|
174
177
|
},
|
|
175
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "b7eba2d9048d5846189c4cfb44d9473cbf9792c7"
|
|
176
179
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'ember-eui';
|