@ditojs/admin 2.5.1 → 2.5.2

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.5.1",
3
+ "version": "2.5.2",
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",
@@ -33,7 +33,7 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.5.1",
36
+ "@ditojs/ui": "^2.5.2",
37
37
  "@ditojs/utils": "^2.5.0",
38
38
  "@kyvg/vue3-notification": "^2.9.0",
39
39
  "@lk77/vue3-color": "^3.0.6",
@@ -83,7 +83,7 @@
83
83
  "vite": "^4.3.4"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "18658b99dbb5f508c9d76811194831fb243f66ad",
86
+ "gitHead": "8c5737b77ba43617cd95ba65fbabcdc2941542a8",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -249,22 +249,16 @@ export default {
249
249
 
250
250
  // @overridable
251
251
  focusElement() {
252
- const { element = this } = this.$refs
253
- if (element.focus) {
254
- element.focus()
255
- } else {
256
- element.$el?.focus?.()
257
- }
252
+ let { element = this } = this.$refs
253
+ element = element.focus ? element : element.$el
254
+ element?.focus?.()
258
255
  },
259
256
 
260
257
  // @overridable
261
258
  blurElement() {
262
- const { element = this } = this.$refs
263
- if (element.blur) {
264
- element.blur()
265
- } else {
266
- element.$el?.blur?.()
267
- }
259
+ let { element = this } = this.$refs
260
+ element = element.blur ? element : element.$el
261
+ element?.blur?.()
268
262
  },
269
263
 
270
264
  async focusSchema() {
@@ -143,19 +143,6 @@ export default DitoTypeComponent.register('color', {
143
143
  '#00000000'
144
144
  ]
145
145
  })
146
- },
147
-
148
- watch: {
149
- focused(focused) {
150
- if (!focused && this.convertedHexValue) {
151
- const color = tinycolor(`#${this.convertedHexValue}`)
152
- if (color?.isValid()) {
153
- this.value = color.toString(this.colorFormat)
154
- // TODO: Emit 'input' here instead, and 'change' in blur, like others.
155
- this.onChange()
156
- }
157
- }
158
- }
159
146
  }
160
147
  })
161
148
  </script>