@ditojs/admin 2.96.0 → 2.97.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/admin",
3
- "version": "2.96.0",
3
+ "version": "2.97.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/main/packages/admin",
@@ -40,8 +40,8 @@
40
40
  "not ie_mob > 0"
41
41
  ],
42
42
  "dependencies": {
43
- "@ditojs/ui": "^2.96.0",
44
- "@ditojs/utils": "^2.96.0"
43
+ "@ditojs/ui": "^2.97.0",
44
+ "@ditojs/utils": "^2.97.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@kyvg/vue3-notification": "^3.4.2",
@@ -89,9 +89,9 @@
89
89
  "vue-upload-component": "^3.1.17"
90
90
  },
91
91
  "devDependencies": {
92
- "@ditojs/build": "^2.96.0",
92
+ "@ditojs/build": "^2.97.0",
93
93
  "typescript": "^6.0.3",
94
94
  "vite": "^8.0.10"
95
95
  },
96
- "gitHead": "689f4d061088500884114c5ced79d68209717bc5"
96
+ "gitHead": "a15b3aa1474b88b4dbefd114491605b5715a6526"
97
97
  }
@@ -24,7 +24,7 @@ const contexts = new WeakMap()
24
24
  function toObject(context) {
25
25
  const rawStart = toRaw(context)
26
26
  let raw = rawStart
27
- let object = null
27
+ let object
28
28
  // In case `DitoContext.extend()` was used, we need to find the actual context
29
29
  // object from the object's the inheritance chain:
30
30
  do {
@@ -122,9 +122,7 @@ export default {
122
122
  // Always use extended style when auto-generating labels from index/id:
123
123
  extended = true
124
124
  text =
125
- isListSource(sourceSchema) && index !== null
126
- ? (text = `${index + 1}`)
127
- : ''
125
+ isListSource(sourceSchema) && index !== null ? `${index + 1}` : ''
128
126
  }
129
127
  if (extended) {
130
128
  const formLabel = getFormLabel()