@ouestfrance/sipa-bms-ui 8.23.1 → 8.23.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/dist/sipa-bms-ui.css +7 -7
- package/dist/sipa-bms-ui.es.js +5 -3
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +5 -3
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/form/RawAutocomplete.vue +4 -2
- package/src/showroom/server.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouestfrance/sipa-bms-ui",
|
|
3
|
-
"version": "8.23.
|
|
3
|
+
"version": "8.23.3",
|
|
4
4
|
"author": "Ouest-France BMS",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"scripts": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"lodash": "4.17.21",
|
|
62
62
|
"lucide-vue-next": "0.562.0",
|
|
63
63
|
"msw": "^2.12.4",
|
|
64
|
-
"msw-storybook-addon": "^2.0.
|
|
64
|
+
"msw-storybook-addon": "^2.0.3",
|
|
65
65
|
"normalize.css": "8.0.1",
|
|
66
66
|
"path": "0.12.7",
|
|
67
67
|
"prettier": "3.7.4",
|
|
@@ -166,11 +166,13 @@ const onClick = () => {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
const onInput = () => {
|
|
170
|
-
openDatalist();
|
|
169
|
+
const onInput = ($event: InputEvent) => {
|
|
171
170
|
if (inputText.value === '') {
|
|
172
171
|
clearInput();
|
|
172
|
+
} else {
|
|
173
|
+
emits('input', $event);
|
|
173
174
|
}
|
|
175
|
+
openDatalist();
|
|
174
176
|
};
|
|
175
177
|
|
|
176
178
|
const setFocus = () => {
|
package/src/showroom/server.js
CHANGED
|
@@ -9,7 +9,7 @@ app.use(cors());
|
|
|
9
9
|
const port = 3000;
|
|
10
10
|
|
|
11
11
|
app.get('/pokemon-types', (req, res) => {
|
|
12
|
-
|
|
12
|
+
let types = [
|
|
13
13
|
{ label: 'Grass', value: 'Grass' },
|
|
14
14
|
{ label: 'Poison', value: 'Poison' },
|
|
15
15
|
{ label: 'Fire', value: 'Fire' },
|
|
@@ -27,7 +27,15 @@ app.get('/pokemon-types', (req, res) => {
|
|
|
27
27
|
{ label: 'Ice', value: 'Ice' },
|
|
28
28
|
{ label: 'Ghost', value: 'Ghost' },
|
|
29
29
|
{ label: 'Dragon', value: 'Dragon' },
|
|
30
|
-
]
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
if (req.query.search) {
|
|
33
|
+
types = types.filter((type) =>
|
|
34
|
+
type.label.toLowerCase().includes(req.query.search.toLowerCase()),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
res.send(types);
|
|
31
39
|
});
|
|
32
40
|
|
|
33
41
|
app.get('/pokemons', (req, res) => {
|