@ember-eui/core 7.1.3 → 7.1.5
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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@searchMessage={{@searchMessage}}
|
|
10
10
|
@noMatchesMessage={{@noMatchesMessage}}
|
|
11
11
|
@matchTriggerWidth={{@matchTriggerWidth}}
|
|
12
|
-
@options={{
|
|
12
|
+
@options={{this.options}}
|
|
13
13
|
@selected={{@selectedOptions}}
|
|
14
14
|
@closeOnSelect={{@closeOnSelect}}
|
|
15
15
|
@defaultHighlighted={{@defaultHighlighted}}
|
|
@@ -3,6 +3,7 @@ import { action } from '@ember/object';
|
|
|
3
3
|
import { tracked, cached } from '@glimmer/tracking';
|
|
4
4
|
import { emberPowerSelectIsGroup } from 'ember-power-select/helpers/ember-power-select-is-group';
|
|
5
5
|
import { isEqual } from '@ember/utils';
|
|
6
|
+
import { isArray } from '@ember/array';
|
|
6
7
|
|
|
7
8
|
interface PromiseProxy<T> extends Promise<T> {
|
|
8
9
|
content: any;
|
|
@@ -27,7 +28,7 @@ interface Sliceable<T> {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
const isSliceable = <T>(coll: any): coll is Sliceable<T> => {
|
|
30
|
-
return
|
|
31
|
+
return isArray(coll);
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
export const toPlainArray = <T>(collection: T[] | Sliceable<T>): T[] => {
|
|
@@ -52,7 +53,6 @@ export default class EuiComboBoxComponent extends Component<EuiComboBoxArgs> {
|
|
|
52
53
|
//This is to allow scrolling between virtualized groups
|
|
53
54
|
@cached
|
|
54
55
|
get opts() {
|
|
55
|
-
//@ts-ignore
|
|
56
56
|
return this.results.reduce((acc, curr) => {
|
|
57
57
|
if (emberPowerSelectIsGroup([curr])) {
|
|
58
58
|
acc.push(curr, ...curr.options);
|
|
@@ -1,7 +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
3
|
import config from 'ember-get-config';
|
|
4
|
-
import { toPlainArray } from '..';
|
|
5
4
|
|
|
6
5
|
export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions {
|
|
7
6
|
_optionsCache = [];
|
|
@@ -23,7 +22,7 @@ export default class EuiComboBoxOptionsComponent extends EmberPowerSelectOptions
|
|
|
23
22
|
|
|
24
23
|
_optionFromIndex(index) {
|
|
25
24
|
let parts = index.split('.');
|
|
26
|
-
let option =
|
|
25
|
+
let option = this.flattedOptions.at?.(parseInt(parts[0], 10));
|
|
27
26
|
for (let i = 1; i < parts.length; i++) {
|
|
28
27
|
option = option.options[parseInt(parts[i], 10)];
|
|
29
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.5",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@elastic/datemath": "^5.0.3",
|
|
56
56
|
"@ember/render-modifiers": "^2.0.4",
|
|
57
|
-
"@html-next/vertical-collection": "4.0.0",
|
|
57
|
+
"@html-next/vertical-collection": "^4.0.0",
|
|
58
58
|
"@types/chroma-js": "^2.4.0",
|
|
59
59
|
"@types/lodash-es": "^4.17.4",
|
|
60
60
|
"@types/refractor": "^3.0.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"ember-element-helper": "^0.8.5",
|
|
70
70
|
"ember-event-helpers": "^0.1.1",
|
|
71
71
|
"ember-in-element-polyfill": "^1.0.0",
|
|
72
|
-
"ember-keyboard": "^
|
|
72
|
+
"ember-keyboard": "^8.2.1",
|
|
73
73
|
"ember-math-helpers": "^2.15.0",
|
|
74
74
|
"ember-modifier": "^4.1.0",
|
|
75
75
|
"ember-named-blocks-polyfill": "^0.2.3",
|
|
@@ -125,7 +125,6 @@
|
|
|
125
125
|
"@types/ember__string": "^3.0.9",
|
|
126
126
|
"@types/ember__template": "^4.0.0",
|
|
127
127
|
"@types/ember__test": "^4.0.0",
|
|
128
|
-
"@types/ember__test-helpers": "^2.6.1",
|
|
129
128
|
"@types/ember__utils": "^4.0.0",
|
|
130
129
|
"@types/htmlbars-inline-precompile": "^3.0.0",
|
|
131
130
|
"@types/qunit": "^2.11.3",
|
|
@@ -186,5 +185,5 @@
|
|
|
186
185
|
"volta": {
|
|
187
186
|
"extends": "../../package.json"
|
|
188
187
|
},
|
|
189
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "3f2111a93c8afa11a1fad3623e33acefdcad68a5"
|
|
190
189
|
}
|