@ditojs/admin 2.79.0 → 2.81.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.79.0",
3
+ "version": "2.81.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/master/packages/admin",
@@ -42,8 +42,8 @@
42
42
  "not ie_mob > 0"
43
43
  ],
44
44
  "dependencies": {
45
- "@ditojs/ui": "^2.79.0",
46
- "@ditojs/utils": "^2.79.0",
45
+ "@ditojs/ui": "^2.81.0",
46
+ "@ditojs/utils": "^2.81.0",
47
47
  "@kyvg/vue3-notification": "^3.4.2",
48
48
  "@lk77/vue3-color": "^3.0.6",
49
49
  "@tiptap/core": "^3.17.1",
@@ -89,9 +89,9 @@
89
89
  "vue-upload-component": "^3.1.17"
90
90
  },
91
91
  "devDependencies": {
92
- "@ditojs/build": "^2.79.0",
92
+ "@ditojs/build": "^2.81.0",
93
93
  "typescript": "^5.9.3",
94
94
  "vite": "^7.3.1"
95
95
  },
96
- "gitHead": "f87ce5ce121a30830776774cd447014afef5b8ec"
96
+ "gitHead": "13502bffe56e6c570a96092c692b9178789e3f62"
97
97
  }
@@ -27,11 +27,9 @@ export default {
27
27
  stepValue() {
28
28
  // Don't show steps if the input is also clearable, since the step buttons
29
29
  // would collide with the clear button.
30
- return this.clearable
31
- ? null
32
- : this.step == null && !this.isInteger
33
- ? 'any'
34
- : this.step
30
+ return this.step == null && !this.isInteger
31
+ ? 'any'
32
+ : this.step
35
33
  },
36
34
 
37
35
  decimals: getSchemaAccessor('decimals', {
@@ -207,6 +207,7 @@ export default DitoTypeComponent.register('markup', {
207
207
  },
208
208
 
209
209
  created() {
210
+ let changed = false
210
211
  let ignoreWatch = false
211
212
 
212
213
  const onFocus = () => this.onFocus()
@@ -232,10 +233,12 @@ export default DitoTypeComponent.register('markup', {
232
233
  ? content.replace(/^<p>(.*?)<\/p>$/s, '$1')
233
234
  : content
234
235
  if (value !== this.value) {
236
+ changed = true
235
237
  this.value = value
236
- if (!this.focused) {
237
- this.onChange()
238
- }
238
+ }
239
+ if (!this.focused && changed) {
240
+ this.onChange()
241
+ changed = false
239
242
  }
240
243
  }
241
244