@jskit-ai/http-web 0.2.24 → 0.2.26

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,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - `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
+ - `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
+
5
8
  - A record's form keeps its null values: editing a record whose `type: "id"` link is null and saving it sends null back. `applyCrudPayloadToForm` put "" in the form for every null field except booleans and lookups, and `buildCrudFormPayload` sent that "" back, which the id cast refused with a raw "Value could not be cast…"; a nullable string or select also came back as "" instead of null. A nullable field now keeps null in the form, and an `id` field is saved like a lookup: trimmed, null when a nullable one is cleared, and not sent when a required one is empty, so the server names it as missing. Numbers, dates, times and booleans already round-tripped their nulls and are unchanged.
6
9
  - A list record's overflow menu (`CrudListRecordActionMenu`, on cards and table rows) is exposed as a menu: its list has `role="menu"`, named after its button ("Actions for {title}"), and Open, Edit and each row action are `role="menuitem"`, with `aria-disabled="true"` on an unavailable action, as Material 3 menus and shell-web's page-actions menu are. Before, it was Vuetify's default list of links and list items, so assistive technology heard no menu and a browser test looking for its menu items found none. Nothing changes visually.
7
10
  - CRUD screens take a CRUD contract from `@jskit-ai/resource-crud-core`'s `defineCrudContract`; the crud-screen-set pattern's pages use the books example's `bookCrud`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/http-web",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -47,20 +47,20 @@
47
47
  "./locales/en.json": "./locales/en.json"
48
48
  },
49
49
  "dependencies": {
50
- "@jskit-ai/resource-crud-core": "0.1.206"
50
+ "@jskit-ai/resource-crud-core": "0.1.208"
51
51
  },
52
52
  "peerDependencies": {
53
- "@jskit-ai/http-runtime": "0.2.15",
54
- "@jskit-ai/kernel": "0.2.15",
55
- "@jskit-ai/realtime": "0.2.22",
56
- "@jskit-ai/shell-web": "0.2.19",
53
+ "@jskit-ai/http-runtime": "0.2.17",
54
+ "@jskit-ai/kernel": "0.2.17",
55
+ "@jskit-ai/realtime": "0.2.24",
56
+ "@jskit-ai/shell-web": "0.2.21",
57
57
  "@tanstack/vue-query": "^5.90.5",
58
58
  "vue": "^3.5.13",
59
59
  "vue-router": "^5.0.4",
60
60
  "vuetify": "^4.3.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@jskit-ai/material-web": "0.1.4"
63
+ "@jskit-ai/material-web": "0.1.5"
64
64
  },
65
65
  "description": "Neutral Vue request, command, resource, and CRUD UI runtime for JSKIT web applications.",
66
66
  "jskit": {
@@ -130,6 +130,13 @@
130
130
  },
131
131
  "client": {
132
132
  "singleton": true
133
+ },
134
+ "ui": {
135
+ "removedProps": {
136
+ "CrudViewScreen": {
137
+ "resourcePluralTitle": "Its \"Back to\" button is gone: the shell's Up arrow returns to the list. Remove the prop."
138
+ }
139
+ }
133
140
  }
134
141
  }
135
142
  }
@@ -112,7 +112,9 @@ useShellPageClose({ label: () => t("jskit.http.actions.cancel"), close: cancel }
112
112
  </div>
113
113
  <v-skeleton-loader v-else-if="formRuntime.showFormSkeleton" type="text@2, article" />
114
114
  <v-form v-else @submit.prevent="addEdit.submit" novalidate>
115
- <v-row class="crud-add-edit-form__fields">
115
+ <!-- Rows sit 16px apart: below a field's own supporting-text line, or below a field without one (hide-details, a
116
+ switch or checkbox, a section heading). -->
117
+ <v-row class="crud-add-edit-form__fields" :gap="[24, 16]">
116
118
  <slot
117
119
  name="fields"
118
120
  :mode="mode"