@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.
- package/addon/components/eui-badge-group/badge-group-item/index.hbs +1 -1
- package/addon/components/eui-combo-box/options/index.js +2 -2
- package/addon/components/eui-icon/index.ts +2 -3
- package/addon/helpers/arg-or-default.ts +2 -3
- package/package.json +4 -3
- package/addon/initializers/eui-config.ts +0 -12
- package/addon/utils/eui-config.ts +0 -12
- package/addon/version.ts +0 -5
- package/app/initializers/eui-config.js +0 -1
- package/app/utils/eui-config.js +0 -1
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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.
|
|
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": "
|
|
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": "
|
|
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
|
-
};
|
package/addon/version.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, initialize } from '@ember-eui/core/initializers/eui-config';
|
package/app/utils/eui-config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@ember-eui/core/utils/eui-config';
|