@ember-eui/core 4.0.3 → 4.0.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,13 @@
2
2
 
3
3
  ### Master
4
4
 
5
+ ### 4.0.4
6
+ 🐛 Bug / Fixes
7
+ `@ember-eui/core`
8
+ - Fixes some dependencies issues with 4.x breakings
9
+ - Adds a blueprint to install ember-focus-trap in host
10
+ - Fixes `<EuiPikaday />`
11
+
5
12
  ### 4.0.0
6
13
  💥 Breaking change
7
14
  `@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]: [Tab, boolean, (...args: unknown[]) => void, boolean]
6
+ [selectedTabId, isDisabled, focusFn]: [
7
+ Tab,
8
+ boolean,
9
+ (...args: unknown[]) => void,
10
+ boolean
11
+ ]
6
12
  ) {
7
13
  if (selectedTabId === undefined && !isDisabled) {
8
- focusFn();
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-cli-sass',
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-cli-sass');
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
- <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
- @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
@@ -20,7 +20,7 @@
20
20
  <EuiFlexItem @grow={{false}}>
21
21
  <EuiPanel @grow={{false}}>
22
22
  <ul>
23
- {{#each items as |item|}}
23
+ {{#each this.items as |item|}}
24
24
  <li>
25
25
  {{item}}
26
26
  </li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -62,17 +62,14 @@
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.5.5",
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": "^2.1.2",
71
- "ember-named-blocks-polyfill": "^0.2.3",
68
+ "ember-modifier": "^3.1.0",
72
69
  "ember-power-select": "^5.0.2",
73
70
  "ember-set-body-class": "^1.0.2",
74
71
  "ember-set-helper": "^2.0.1",
75
- "ember-style-modifier": "^0.6.0",
72
+ "ember-style-modifier": "^0.7.0",
76
73
  "ember-svg-jar": "^2.3.4",
77
74
  "ember-truth-helpers": "^3.0.0",
78
75
  "highlight.js": "^9.18.5",
@@ -90,6 +87,9 @@
90
87
  "unified": "^9.2.0",
91
88
  "vfile": "^4.2.0"
92
89
  },
90
+ "peerDependencies": {
91
+ "ember-focus-trap": "^1.0.1"
92
+ },
93
93
  "devDependencies": {
94
94
  "@ember/optional-features": "^2.0.0",
95
95
  "@ember/test-helpers": "^2.6.0",
@@ -132,6 +132,7 @@
132
132
  "ember-cli-typescript-blueprints": "^3.0.0",
133
133
  "ember-disable-prototype-extensions": "^1.1.3",
134
134
  "ember-export-application-global": "^2.0.1",
135
+ "ember-focus-trap": "^1.0.1",
135
136
  "ember-get-config": "~1.0.2",
136
137
  "ember-load-initializers": "^2.1.2",
137
138
  "ember-page-title": "^7.0.0",
@@ -167,10 +168,11 @@
167
168
  "edition": "octane"
168
169
  },
169
170
  "ember-addon": {
170
- "configPath": "tests/dummy/config"
171
+ "configPath": "tests/dummy/config",
172
+ "defaultBluerprint": "ember-eui-core"
171
173
  },
172
174
  "volta": {
173
175
  "extends": "../../package.json"
174
176
  },
175
- "gitHead": "62474e13f2a8273b9a9b58285b9aa30086b5071a"
177
+ "gitHead": "d0007138cff1b49a85ad28a59bc4080d57042990"
176
178
  }
@@ -1 +0,0 @@
1
- @import 'ember-eui';