@ember-eui/core 5.2.1 → 5.3.0

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.
@@ -1,4 +1,6 @@
1
- {{#let (component (ensure-safe-component @groupComponent)) as |Group|}}
1
+ {{#let
2
+ (component (ensure-safe-component @groupComponent))
3
+ as |Group|}}
2
4
  {{#if @select.loading}}
3
5
  <EuiText @size="xs" class="euiComboBoxOptionsList__empty">
4
6
  <EuiFlexGroup @gutterSize="s" @justifyContent="center">
@@ -15,7 +17,7 @@
15
17
  <VerticalCollection
16
18
  @items={{this.flattedOptions}}
17
19
  @tagName="div"
18
- @estimateHeight={{arg-or-default @rowHeight 29}}
20
+ @estimateHeight={{this.rowHeight}}
19
21
  @staticHeight={{true}}
20
22
  @bufferSize={{3}}
21
23
  style="max-height: 200px; overflow-y: auto;"
@@ -34,14 +36,14 @@
34
36
  @select={{@select}}
35
37
  @extra={{@extra}}
36
38
  style={{html-safe
37
- (concat "height:" (arg-or-default @rowHeight 29) "px;")
39
+ (concat "height:" this.rowHeight "px;")
38
40
  }}
39
41
  data-option-index="{{index}}"
40
42
  />
41
43
  {{else}}
42
44
  <li
43
45
  style={{html-safe
44
- (concat "height:" (arg-or-default @rowHeight 29) "px;")
46
+ (concat "height:" this.rowHeight "px;")
45
47
  }}
46
48
  class="euiFilterSelectItem
47
49
  {{if
@@ -1,7 +1,9 @@
1
1
  import EmberPowerSelectOptions from 'ember-power-select/components/power-select/options';
2
2
  import { emberPowerSelectIsGroup } from 'ember-power-select/helpers/ember-power-select-is-group';
3
3
  import { tracked } from '@glimmer/tracking';
4
+ import config from 'ember-get-config';
4
5
 
6
+ const rowHeight = config['@ember-eui/core']?.euiComboBoxOptionsHeight || 29;
5
7
  export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions {
6
8
  @tracked flattedOptions = [];
7
9
  _optionsCache = [];
@@ -34,4 +36,8 @@ export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions
34
36
  }
35
37
  return option;
36
38
  }
39
+
40
+ get rowHeight() {
41
+ return this.args.rowHeight ?? rowHeight
42
+ }
37
43
  }
@@ -117,7 +117,7 @@ export default class EuiIcon extends Component<EuiIconArgs> {
117
117
  }
118
118
 
119
119
  getEuiIconSvgPath(type: EuiIconType): string {
120
- return typeToPathMap[type].replace('tokens/', '');
120
+ return typeToPathMap[type];
121
121
  }
122
122
 
123
123
  get isAppIcon(): string | boolean {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.2.1",
3
+ "version": "5.3.0",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -182,5 +182,5 @@
182
182
  "volta": {
183
183
  "extends": "../../package.json"
184
184
  },
185
- "gitHead": "cc647f4d348a453cb10765f4d4df2b95511a2d70"
185
+ "gitHead": "b151365ce78116337b791addc3d3244c2e1fc3b8"
186
186
  }