@jskit-ai/http-web 0.2.26 → 0.2.27
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- `SelectField` imports `VSelect` and `VAutocomplete` from their own paths, `vuetify/components/VSelect` and `vuetify/components/VAutocomplete`, instead of the `vuetify/components` barrel, so a test that mocks Vuetify's per-component paths renders it too. The crud-screen-set pattern names the lint rule `jskit/selection-field` (`@jskit-ai/config-eslint`), which reports a raw `v-select`, `v-autocomplete` or `v-combobox` whose items are not fixed and a `SelectField` over loaded items without `loading`.
|
|
5
6
|
- `jskit.metadata.ui.removedProps` lists `CrudViewScreen`'s `resourcePluralTitle`, removed in this release, so `jskit check` fails an app that still passes it (`ui/removed-prop`) instead of Vue passing it on as an attribute.
|
|
6
7
|
- `CrudAddEditScreen`'s field rows are 16px apart, below each field's supporting-text line, which fields keep now that `@jskit-ai/material-web` no longer sets `hideDetails: "auto"`: a server's field error appears in that line instead of pushing the rest of the form down. Two text fields are 38px apart (16px plus the line), where they were 24px; a field without the line (`hide-details`, a switch or checkbox, a section heading) has 16px below it. Columns side by side stay 24px apart. Upgrading: a form that set its own margins between fields drops them.
|
|
7
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/http-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"./locales/en.json": "./locales/en.json"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
50
|
+
"@jskit-ai/resource-crud-core": "0.1.209"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
54
|
-
"@jskit-ai/kernel": "0.2.
|
|
55
|
-
"@jskit-ai/realtime": "0.2.
|
|
56
|
-
"@jskit-ai/shell-web": "0.2.
|
|
53
|
+
"@jskit-ai/http-runtime": "0.2.18",
|
|
54
|
+
"@jskit-ai/kernel": "0.2.18",
|
|
55
|
+
"@jskit-ai/realtime": "0.2.25",
|
|
56
|
+
"@jskit-ai/shell-web": "0.2.22",
|
|
57
57
|
"@tanstack/vue-query": "^5.90.5",
|
|
58
58
|
"vue": "^3.5.13",
|
|
59
59
|
"vue-router": "^5.0.4",
|
|
@@ -143,7 +143,9 @@ arrive. `SelectField` hides an unresolved value while `loading` is true, shows
|
|
|
143
143
|
"Unavailable option" once the options settle, and remembers titles it has seen
|
|
144
144
|
so a narrowing search does not blank a chosen value. Display never changes the
|
|
145
145
|
stored value. `searchable` renders an autocomplete; other props and slots pass
|
|
146
|
-
through to Vuetify.
|
|
146
|
+
through to Vuetify. The lint rule `jskit/selection-field` reports a raw
|
|
147
|
+
selection whose items are not fixed, and a `SelectField` over loaded items
|
|
148
|
+
without `loading`.
|
|
147
149
|
|
|
148
150
|
```vue
|
|
149
151
|
<CrudAddEditScreen :screen="screen" v-bind="lookups">
|
|
@@ -53,6 +53,7 @@ function placeholder(filter = {}, fallbackKey = "") {
|
|
|
53
53
|
hide-details
|
|
54
54
|
class="crud-list-filter-surface__control"
|
|
55
55
|
/>
|
|
56
|
+
<!-- readable-check: allow selection-field - data: an enum or presence filter lists its options in its definition, so nothing loads -->
|
|
56
57
|
<v-select
|
|
57
58
|
v-else-if="filter.type === 'enum' || filter.type === 'enumMany' || filter.type === 'presence'"
|
|
58
59
|
v-model="runtimeValues[filter.key]"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, ref } from "vue";
|
|
3
|
-
import { VAutocomplete
|
|
3
|
+
import { VAutocomplete } from "vuetify/components/VAutocomplete";
|
|
4
|
+
import { VSelect } from "vuetify/components/VSelect";
|
|
4
5
|
import { optionTitle, optionValue, selectionFieldState } from "../support/selectFieldSupport.js";
|
|
5
6
|
|
|
6
7
|
// A v-select / v-autocomplete that never shows a stored id as text (see selectFieldSupport.js).
|