@ditojs/admin 2.21.0 → 2.22.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.21.0",
3
+ "version": "2.22.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",
@@ -33,57 +33,57 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.21.0",
37
- "@ditojs/utils": "^2.21.0",
36
+ "@ditojs/ui": "^2.22.0",
37
+ "@ditojs/utils": "^2.22.0",
38
38
  "@kyvg/vue3-notification": "^3.1.3",
39
39
  "@lk77/vue3-color": "^3.0.6",
40
- "@tiptap/core": "^2.1.13",
41
- "@tiptap/extension-blockquote": "^2.1.13",
42
- "@tiptap/extension-bold": "^2.1.13",
43
- "@tiptap/extension-bullet-list": "^2.1.13",
44
- "@tiptap/extension-code": "^2.1.13",
45
- "@tiptap/extension-code-block": "^2.1.13",
46
- "@tiptap/extension-document": "^2.1.13",
47
- "@tiptap/extension-hard-break": "^2.1.13",
48
- "@tiptap/extension-heading": "^2.1.13",
49
- "@tiptap/extension-history": "^2.1.13",
50
- "@tiptap/extension-horizontal-rule": "^2.1.13",
51
- "@tiptap/extension-italic": "^2.1.13",
52
- "@tiptap/extension-link": "^2.1.13",
53
- "@tiptap/extension-list-item": "^2.1.13",
54
- "@tiptap/extension-ordered-list": "^2.1.13",
55
- "@tiptap/extension-paragraph": "^2.1.13",
56
- "@tiptap/extension-strike": "^2.1.13",
57
- "@tiptap/extension-text": "^2.1.13",
58
- "@tiptap/extension-underline": "^2.1.13",
59
- "@tiptap/pm": "^2.1.13",
60
- "@tiptap/vue-3": "^2.1.13",
61
- "@vueuse/integrations": "^10.7.1",
40
+ "@tiptap/core": "^2.1.16",
41
+ "@tiptap/extension-blockquote": "^2.1.16",
42
+ "@tiptap/extension-bold": "^2.1.16",
43
+ "@tiptap/extension-bullet-list": "^2.1.16",
44
+ "@tiptap/extension-code": "^2.1.16",
45
+ "@tiptap/extension-code-block": "^2.1.16",
46
+ "@tiptap/extension-document": "^2.1.16",
47
+ "@tiptap/extension-hard-break": "^2.1.16",
48
+ "@tiptap/extension-heading": "^2.1.16",
49
+ "@tiptap/extension-history": "^2.1.16",
50
+ "@tiptap/extension-horizontal-rule": "^2.1.16",
51
+ "@tiptap/extension-italic": "^2.1.16",
52
+ "@tiptap/extension-link": "^2.1.16",
53
+ "@tiptap/extension-list-item": "^2.1.16",
54
+ "@tiptap/extension-ordered-list": "^2.1.16",
55
+ "@tiptap/extension-paragraph": "^2.1.16",
56
+ "@tiptap/extension-strike": "^2.1.16",
57
+ "@tiptap/extension-text": "^2.1.16",
58
+ "@tiptap/extension-underline": "^2.1.16",
59
+ "@tiptap/pm": "^2.1.16",
60
+ "@tiptap/vue-3": "^2.1.16",
61
+ "@vueuse/integrations": "^10.7.2",
62
62
  "codeflask": "^1.4.1",
63
63
  "filesize": "^10.1.0",
64
64
  "filesize-parser": "^1.5.0",
65
65
  "focus-trap": "^7.5.4",
66
66
  "nanoid": "^5.0.4",
67
- "sortablejs": "^1.15.1",
67
+ "sortablejs": "^1.15.2",
68
68
  "tinycolor2": "^1.6.0",
69
69
  "tippy.js": "^6.3.7",
70
70
  "type-fest": "^4.9.0",
71
- "vue": "~3.4.5",
71
+ "vue": "~3.4.14",
72
72
  "vue-multiselect": "^3.0.0-beta.3",
73
73
  "vue-router": "^4.2.5",
74
74
  "vue-upload-component": "^3.1.8"
75
75
  },
76
76
  "devDependencies": {
77
- "@ditojs/build": "^2.21.0",
78
- "@vitejs/plugin-vue": "^5.0.2",
79
- "@vue/compiler-sfc": "~3.4.5",
77
+ "@ditojs/build": "^2.22.0",
78
+ "@vitejs/plugin-vue": "^5.0.3",
79
+ "@vue/compiler-sfc": "~3.4.14",
80
80
  "pug": "^3.0.2",
81
81
  "sass": "1.69.7",
82
82
  "typescript": "^5.3.3",
83
83
  "vite": "^5.0.11"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "4f5dfe7ff3112bb3f796c598a947de3b705592f0",
86
+ "gitHead": "4ed01ff089e5983d52b70fa39d9dc17b99e8d115",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -166,7 +166,7 @@ export default DitoComponent.component('DitoSchema', {
166
166
  ? data(this.context)
167
167
  : data
168
168
  ),
169
- currentTab: null,
169
+ selectedTab: null,
170
170
  componentsRegistry: {},
171
171
  panesRegistry: {},
172
172
  panelsRegistry: {},
@@ -195,16 +195,6 @@ export default DitoComponent.component('DitoSchema', {
195
195
  return getNamedSchemas(this.schema.tabs)
196
196
  },
197
197
 
198
- selectedTab: {
199
- get() {
200
- return this.currentTab || this.defaultTab || null
201
- },
202
-
203
- set(selectedTab) {
204
- this.currentTab = selectedTab
205
- }
206
- },
207
-
208
198
  defaultTab() {
209
199
  let first = null
210
200
  if (this.tabs) {
@@ -376,7 +366,7 @@ export default DitoComponent.component('DitoSchema', {
376
366
  // handled, but remove the trailing `/create` or `/:id` from it so that
377
367
  // tabs informs that stay open after creation still work.
378
368
  if (this.hasRootTabs) {
379
- this.currentTab = hash?.slice(1) || null
369
+ this.selectedTab = hash?.slice(1) || null
380
370
  }
381
371
  }
382
372
  },
@@ -412,6 +402,10 @@ export default DitoComponent.component('DitoSchema', {
412
402
  }
413
403
  },
414
404
 
405
+ mounted() {
406
+ this.selectedTab = this.defaultTab
407
+ },
408
+
415
409
  unmounted() {
416
410
  this.emitEvent('destroy')
417
411
  this._register(false)
@@ -151,6 +151,10 @@ export default {
151
151
  }
152
152
  }),
153
153
 
154
+ maxLength: getSchemaAccessor('maxLength', {
155
+ type: Number
156
+ }),
157
+
154
158
  placeholder: getSchemaAccessor('placeholder', {
155
159
  type: String
156
160
  }),
@@ -189,6 +193,7 @@ export default {
189
193
  attributes.readonly = this.readonly
190
194
  attributes.autofocus = this.autofocus
191
195
  if (textField) {
196
+ attributes.maxlength = this.maxLength
192
197
  attributes.placeholder = this.placeholder
193
198
  attributes.autocomplete = this.autocomplete
194
199
  }