@grucloud/bau-ui 0.59.0 → 0.60.1
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.
|
@@ -115,7 +115,6 @@ export default function (context, componentOptions = {}) {
|
|
|
115
115
|
const dialogClose = () => {
|
|
116
116
|
popoverEl.closeDialog();
|
|
117
117
|
openState.val = false;
|
|
118
|
-
inputState.val = "";
|
|
119
118
|
itemIndexActive.val = 0;
|
|
120
119
|
};
|
|
121
120
|
|
|
@@ -135,10 +134,15 @@ export default function (context, componentOptions = {}) {
|
|
|
135
134
|
popoverEl.open ? dialogClose() : dialogOpen();
|
|
136
135
|
};
|
|
137
136
|
|
|
137
|
+
const saveOption = (option) => {
|
|
138
|
+
selectedState.val = option;
|
|
139
|
+
inputShadowEl.value = getOptionValue(option);
|
|
140
|
+
};
|
|
141
|
+
|
|
138
142
|
const onclickItem =
|
|
139
143
|
({ option, index }) =>
|
|
140
144
|
(event) => {
|
|
141
|
-
|
|
145
|
+
saveOption(option);
|
|
142
146
|
itemIndexActive.val = index;
|
|
143
147
|
dialogClose();
|
|
144
148
|
};
|
|
@@ -173,8 +177,7 @@ export default function (context, componentOptions = {}) {
|
|
|
173
177
|
break;
|
|
174
178
|
case "Enter":
|
|
175
179
|
if (popoverEl.open) {
|
|
176
|
-
|
|
177
|
-
inputState.val = "";
|
|
180
|
+
saveOption(optionsFilteredState.val[itemIndexActive.val]);
|
|
178
181
|
dialogClose();
|
|
179
182
|
} else {
|
|
180
183
|
dialogOpen();
|
|
@@ -227,7 +230,7 @@ export default function (context, componentOptions = {}) {
|
|
|
227
230
|
position: absolute;
|
|
228
231
|
`,
|
|
229
232
|
tabindex: -1,
|
|
230
|
-
|
|
233
|
+
defaultValue: defaultOption && getOptionValue(defaultOption),
|
|
231
234
|
required,
|
|
232
235
|
name,
|
|
233
236
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grucloud/bau-ui",
|
|
3
3
|
"description": "Components library built with Bau",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.60.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BSD",
|
|
7
7
|
"keywords": [
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"directory": "bau-ui"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@grucloud/bau": "^0.
|
|
24
|
-
"@grucloud/bau-css": "^0.
|
|
23
|
+
"@grucloud/bau": "^0.60.1",
|
|
24
|
+
"@grucloud/bau-css": "^0.60.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typedoc": "0.24.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c8eda767c9b8dd6dfd707191a62fa375261c20c2"
|
|
30
30
|
}
|