@ditojs/admin 2.11.3 → 2.12.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": "2.11.3",
3
+ "version": "2.12.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",
@@ -33,57 +33,57 @@
33
33
  "not ie_mob > 0"
34
34
  ],
35
35
  "dependencies": {
36
- "@ditojs/ui": "^2.11.3",
37
- "@ditojs/utils": "^2.11.1",
38
- "@kyvg/vue3-notification": "^2.9.1",
36
+ "@ditojs/ui": "^2.12.0",
37
+ "@ditojs/utils": "^2.12.0",
38
+ "@kyvg/vue3-notification": "^3.0.1",
39
39
  "@lk77/vue3-color": "^3.0.6",
40
- "@tiptap/core": "^2.0.4",
41
- "@tiptap/extension-blockquote": "^2.0.4",
42
- "@tiptap/extension-bold": "^2.0.4",
43
- "@tiptap/extension-bullet-list": "^2.0.4",
44
- "@tiptap/extension-code": "^2.0.4",
45
- "@tiptap/extension-code-block": "^2.0.4",
46
- "@tiptap/extension-document": "^2.0.4",
47
- "@tiptap/extension-hard-break": "^2.0.4",
48
- "@tiptap/extension-heading": "^2.0.4",
49
- "@tiptap/extension-history": "^2.0.4",
50
- "@tiptap/extension-horizontal-rule": "^2.0.4",
51
- "@tiptap/extension-italic": "^2.0.4",
52
- "@tiptap/extension-link": "^2.0.4",
53
- "@tiptap/extension-list-item": "^2.0.4",
54
- "@tiptap/extension-ordered-list": "^2.0.4",
55
- "@tiptap/extension-paragraph": "^2.0.4",
56
- "@tiptap/extension-strike": "^2.0.4",
57
- "@tiptap/extension-text": "^2.0.4",
58
- "@tiptap/extension-underline": "^2.0.4",
59
- "@tiptap/pm": "^2.0.4",
60
- "@tiptap/vue-3": "^2.0.4",
61
- "@vueuse/integrations": "^10.3.0",
40
+ "@tiptap/core": "^2.1.7",
41
+ "@tiptap/extension-blockquote": "^2.1.7",
42
+ "@tiptap/extension-bold": "^2.1.7",
43
+ "@tiptap/extension-bullet-list": "^2.1.7",
44
+ "@tiptap/extension-code": "^2.1.7",
45
+ "@tiptap/extension-code-block": "^2.1.7",
46
+ "@tiptap/extension-document": "^2.1.7",
47
+ "@tiptap/extension-hard-break": "^2.1.7",
48
+ "@tiptap/extension-heading": "^2.1.7",
49
+ "@tiptap/extension-history": "^2.1.7",
50
+ "@tiptap/extension-horizontal-rule": "^2.1.7",
51
+ "@tiptap/extension-italic": "^2.1.7",
52
+ "@tiptap/extension-link": "^2.1.7",
53
+ "@tiptap/extension-list-item": "^2.1.7",
54
+ "@tiptap/extension-ordered-list": "^2.1.7",
55
+ "@tiptap/extension-paragraph": "^2.1.7",
56
+ "@tiptap/extension-strike": "^2.1.7",
57
+ "@tiptap/extension-text": "^2.1.7",
58
+ "@tiptap/extension-underline": "^2.1.7",
59
+ "@tiptap/pm": "^2.1.7",
60
+ "@tiptap/vue-3": "^2.1.7",
61
+ "@vueuse/integrations": "^10.4.1",
62
62
  "codeflask": "^1.4.1",
63
- "filesize": "^10.0.8",
63
+ "filesize": "^10.0.12",
64
64
  "filesize-parser": "^1.5.0",
65
65
  "focus-trap": "^7.5.2",
66
66
  "nanoid": "^4.0.2",
67
67
  "sortablejs": "^1.15.0",
68
68
  "tinycolor2": "^1.6.0",
69
69
  "tippy.js": "^6.3.7",
70
- "type-fest": "^4.1.0",
70
+ "type-fest": "^4.3.1",
71
71
  "vue": "^3.3.4",
72
72
  "vue-multiselect": "^3.0.0-beta.2",
73
73
  "vue-router": "^4.2.4",
74
74
  "vue-upload-component": "^3.1.8"
75
75
  },
76
76
  "devDependencies": {
77
- "@ditojs/build": "^2.11.0",
78
- "@vitejs/plugin-vue": "^4.2.3",
77
+ "@ditojs/build": "^2.12.0",
78
+ "@vitejs/plugin-vue": "^4.3.4",
79
79
  "@vue/compiler-sfc": "^3.3.4",
80
80
  "pug": "^3.0.2",
81
- "sass": "1.64.2",
82
- "typescript": "^5.1.6",
81
+ "sass": "1.66.1",
82
+ "typescript": "^5.2.2",
83
83
  "vite": "^4.4.9"
84
84
  },
85
85
  "types": "types",
86
- "gitHead": "9a5406b3ce9575128e9432dfbe6a6d3177d96c3d",
86
+ "gitHead": "8fd13e75795f65ef5991263d6b385d2f2fb99f08",
87
87
  "scripts": {
88
88
  "build": "vite build",
89
89
  "watch": "yarn build --mode 'development' --watch",
@@ -59,7 +59,7 @@ export default DitoComponent.component('DitoErrors', {
59
59
  interactive: true,
60
60
  hideOnClick: false,
61
61
  offset: [3, 3], // 1/2 form-spacing
62
- zIndex: ''
62
+ zIndex: 1
63
63
  })
64
64
  tip.popper.addEventListener('mousedown', () => tip.hide())
65
65
  tip.show()
@@ -6,6 +6,7 @@
6
6
  VueNotifications(
7
7
  ref="notifications"
8
8
  classes="dito-notification"
9
+ :dangerouslySetInnerHTML="true"
9
10
  position=""
10
11
  width=""
11
12
  )
@@ -123,7 +123,7 @@ export default DitoComponent.component('DitoRoot', {
123
123
  animation: 'shift-away-subtle',
124
124
  interactive: true,
125
125
  delay: 250,
126
- zIndex: '',
126
+ zIndex: 1,
127
127
  onCreate(instance) {
128
128
  instance.setContent(instance.reference.dataset.info)
129
129
  }
@@ -603,20 +603,16 @@ export default {
603
603
  }
604
604
  // Inlined forms don't need to actually add routes.
605
605
  if (hasFormSchema(schema) && !inlined) {
606
- const getPathWithParam = (path, param) =>
607
- param
608
- ? path
609
- ? `${path}/:${param}`
610
- : `:${param}`
611
- : path
612
-
613
606
  // Lists in single-component-views (level === 0) use their view's path,
614
607
  // while all others need their path prefixed with the parent's path:
615
608
  const sourcePath = level === 0 ? '' : schema.path
616
609
  const formRoute = {
617
- // Object sources don't need id params in their form paths, as they
618
- // directly edit one object.
619
- path: getPathWithParam(sourcePath, isListSource(schema) && param),
610
+ path: getPathWithParam(
611
+ sourcePath,
612
+ // Object sources don't need id params in their form paths, as they
613
+ // directly edit one object.
614
+ isListSource(schema) ? param : null
615
+ ),
620
616
  component: DitoComponent.component(
621
617
  nested ? 'DitoFormNested' : 'DitoForm'
622
618
  ),
@@ -672,3 +668,11 @@ export default {
672
668
  return value
673
669
  }
674
670
  }
671
+
672
+ function getPathWithParam(path, param) {
673
+ return param
674
+ ? path
675
+ ? `${path}/:${param}`
676
+ : `:${param}`
677
+ : path
678
+ }