@ember-eui/core 5.12.0 → 5.12.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.
@@ -1,3 +1,3 @@
1
1
  <span class="euiBadgeGroup__item">
2
2
  {{yield}}
3
- </span>
3
+ </span>
@@ -1,6 +1,6 @@
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
- import euiConfig from '@ember-eui/core/utils/eui-config';
3
+ import config from 'ember-get-config';
4
4
 
5
5
  export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions {
6
6
  _optionsCache = [];
@@ -30,7 +30,7 @@ export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions
30
30
  }
31
31
 
32
32
  get configRowHeight() {
33
- return euiConfig?.['@ember-eui/core']?.euiComboBoxOptionsHeight || 29;
33
+ return config?.['@ember-eui/core']?.euiComboBoxOptionsHeight || 29;
34
34
  }
35
35
 
36
36
  get rowHeight() {
@@ -8,8 +8,7 @@ import {
8
8
  } from '../../utils/css-mappings/eui-icon';
9
9
  import { guidFor } from '@ember/object/internals';
10
10
  import { htmlSafe } from '@ember/template';
11
- //@ts-ignore
12
- import euiConfig from '@ember-eui/core/utils/eui-config';
11
+ import config from 'ember-get-config';
13
12
 
14
13
  export const TYPES = keysOf(typeToPathMap);
15
14
 
@@ -91,7 +90,7 @@ export default class EuiIcon extends Component<EuiIconArgs> {
91
90
  get useSvg(): boolean {
92
91
  return (
93
92
  this.args.useSvg ??
94
- euiConfig?.['@ember-eui/core']?.['eui-icon']?.useSvg ??
93
+ config?.['@ember-eui/core']?.['euiIcon']?.useSvg ??
95
94
  false
96
95
  );
97
96
  }
@@ -1,7 +1,6 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
  import { assert } from '@ember/debug';
3
- //@ts-ignore
4
- import euiConfigs from '@ember-eui/core/utils/eui-config';
3
+ import config from 'ember-get-config';
5
4
  import { get } from '@ember/object';
6
5
 
7
6
  /**
@@ -18,7 +17,7 @@ export function argOrDefault(
18
17
  assert('`defaultValue` must be provided', defaultValue !== undefined);
19
18
  let configValue;
20
19
  if (configKey) {
21
- configValue = get(euiConfigs, configKey);
20
+ configValue = get(config, configKey);
22
21
  }
23
22
  return value !== undefined ? value : configValue || defaultValue;
24
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.12.0",
3
+ "version": "5.12.3",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -55,7 +55,7 @@
55
55
  "@elastic/datemath": "^5.0.3",
56
56
  "@elastic/eui": "41.4.0",
57
57
  "@ember/render-modifiers": "^2.0.4",
58
- "@html-next/vertical-collection": "3.0.0",
58
+ "@html-next/vertical-collection": "4.0.0",
59
59
  "@types/lodash-es": "^4.17.4",
60
60
  "@types/refractor": "^3.0.0",
61
61
  "chroma-js": "^2.1.0",
@@ -143,6 +143,7 @@
143
143
  "ember-disable-prototype-extensions": "^1.1.3",
144
144
  "ember-export-application-global": "^2.0.1",
145
145
  "ember-focus-trap": "^1.0.1",
146
+ "ember-get-config": "^2.1.1",
146
147
  "ember-load-initializers": "^2.1.2",
147
148
  "ember-page-title": "^7.0.0",
148
149
  "ember-qunit": "^5.1.5",
@@ -185,5 +186,5 @@
185
186
  "volta": {
186
187
  "extends": "../../package.json"
187
188
  },
188
- "gitHead": "71a46f9fbaf5152cb42b71e0338e718408478dcc"
189
+ "gitHead": "0bdb99977c97be197cfa96ca66760ee0c3923986"
189
190
  }
@@ -1,12 +0,0 @@
1
- //@ts-ignore
2
- import { registerLibrary } from '@ember-eui/core/version';
3
- // import 'ember-basic-dropdown/vendor/ember-basic-dropdown.css';
4
- // import '@elastic/eui/dist/eui_theme_amsterdam_light.css';
5
-
6
- export function initialize(): void {
7
- registerLibrary();
8
- }
9
-
10
- export default {
11
- initialize
12
- };
@@ -1,12 +0,0 @@
1
- export default {
2
- '@ember-eui/core': {
3
- euiButtonIcon: {
4
- size: 'xs'
5
- },
6
- '@ember-eui/core': {
7
- 'eui-icon': {
8
- useSvg: false
9
- }
10
- }
11
- }
12
- };
package/addon/version.ts DELETED
@@ -1,5 +0,0 @@
1
- // import Ember from 'ember';
2
-
3
- export function registerLibrary() {
4
- // Ember.libraries.register('@ember-eui/core', config.version);
5
- }
@@ -1 +0,0 @@
1
- export { default, initialize } from '@ember-eui/core/initializers/eui-config';
@@ -1 +0,0 @@
1
- export { default } from '@ember-eui/core/utils/eui-config';