@ditojs/admin 1.9.1 → 1.10.1

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": "1.9.1",
3
+ "version": "1.10.1",
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",
@@ -35,8 +35,8 @@
35
35
  "not ie_mob > 0"
36
36
  ],
37
37
  "dependencies": {
38
- "@ditojs/ui": "^1.9.1",
39
- "@ditojs/utils": "^1.9.0",
38
+ "@ditojs/ui": "^1.10.1",
39
+ "@ditojs/utils": "^1.10.1",
40
40
  "axios": "^0.27.2",
41
41
  "codeflask": "^1.4.1",
42
42
  "filesize": "^9.0.11",
@@ -47,23 +47,23 @@
47
47
  "tiptap-commands": "^1.17.1",
48
48
  "tiptap-extensions": "^1.35.2",
49
49
  "to-pascal-case": "^1.0.0",
50
- "vue": "^2.7.8",
50
+ "vue": "^2.7.13",
51
51
  "vue-color": "^2.8.1",
52
- "vue-js-modal": "^1.3.35",
52
+ "vue-js-modal": "^2.0.1",
53
53
  "vue-multiselect": "^2.1.6",
54
54
  "vue-notification": "^1.3.20",
55
- "vue-router": "^3.5.4",
55
+ "vue-router": "^3.6.5",
56
56
  "vue-spinner": "^1.0.4",
57
- "vue-template-compiler": "^2.7.8",
57
+ "vue-template-compiler": "^2.7.13",
58
58
  "vue-upload-component": "^2.8.22",
59
59
  "vuedraggable": "^2.24.3"
60
60
  },
61
61
  "devDependencies": {
62
- "@ditojs/build": "^1.8.0",
62
+ "@ditojs/build": "^1.10.1",
63
63
  "pug": "^3.0.2",
64
- "sass": "1.53.0",
65
- "vite": "^3.0.2",
64
+ "sass": "1.55.0",
65
+ "vite": "^3.2.2",
66
66
  "vite-plugin-vue2": "^2.0.2"
67
67
  },
68
- "gitHead": "36ad7c74fedaf7ea7c94eb5bb7ecb4b2dca3a0ba"
68
+ "gitHead": "2a5658aeeef2666b0a5ddd37ce6fbdb1d9eab3c3"
69
69
  }
@@ -67,23 +67,22 @@ export default DitoComponent.component('dito-dialog', {
67
67
  },
68
68
 
69
69
  buttonSchemas() {
70
- return Object.entries(getButtonSchemas(this.buttons)).reduce(
71
- // Process the button schemas to add default click events
72
- // for both 'submit' and 'cancel' buttons:
73
- (schemas, [key, schema]) => {
74
- const { events } = schema
75
- if (key === 'cancel' && !events) {
76
- schema = {
77
- ...schema,
78
- events: {
79
- click: () => this.cancel()
70
+ return Object.fromEntries(
71
+ Object.entries(getButtonSchemas(this.buttons)).map(
72
+ // Process the button schemas to add default click events
73
+ // for both 'submit' and 'cancel' buttons:
74
+ ([key, schema]) => {
75
+ if (key === 'cancel' && !schema.events) {
76
+ schema = {
77
+ ...schema,
78
+ events: {
79
+ click: () => this.cancel()
80
+ }
80
81
  }
81
82
  }
83
+ return [key, schema]
82
84
  }
83
- schemas[key] = schema
84
- return schemas
85
- },
86
- {}
85
+ )
87
86
  )
88
87
  },
89
88
 
@@ -1,6 +1,5 @@
1
1
  <template lang="pug">
2
2
  .dito-root
3
- modals-container
4
3
  notifications.dito-notifications(
5
4
  ref="notifications"
6
5
  position="top right"