@ditojs/admin 2.94.1 → 2.95.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.94.1",
3
+ "version": "2.95.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/main/packages/admin",
@@ -24,6 +24,12 @@
24
24
  "dist/",
25
25
  "types/"
26
26
  ],
27
+ "scripts": {
28
+ "build": "vite build",
29
+ "watch": "pnpm run build --mode 'development' --watch",
30
+ "prepare": "pnpm run build",
31
+ "types": "tsc --noEmit types/index.d.ts"
32
+ },
27
33
  "engines": {
28
34
  "node": ">= 24.0.0"
29
35
  },
@@ -34,8 +40,8 @@
34
40
  "not ie_mob > 0"
35
41
  ],
36
42
  "dependencies": {
37
- "@ditojs/ui": "^2.94.0",
38
- "@ditojs/utils": "^2.94.0"
43
+ "@ditojs/ui": "^2.95.0",
44
+ "@ditojs/utils": "^2.95.0"
39
45
  },
40
46
  "peerDependencies": {
41
47
  "@kyvg/vue3-notification": "^3.4.2",
@@ -83,14 +89,9 @@
83
89
  "vue-upload-component": "^3.1.17"
84
90
  },
85
91
  "devDependencies": {
86
- "@ditojs/build": "^2.94.0",
92
+ "@ditojs/build": "^2.95.0",
87
93
  "typescript": "^6.0.2",
88
- "vite": "^8.0.3"
94
+ "vite": "^8.0.8"
89
95
  },
90
- "gitHead": "7bb40e9e490632e20ceaf92907b4ff7b27484e26",
91
- "scripts": {
92
- "build": "vite build",
93
- "watch": "pnpm run build --mode 'development' --watch",
94
- "types": "tsc --noEmit types/index.d.ts"
95
- }
96
- }
96
+ "gitHead": "0cd76446659c5d30c18df8091bedb20cd84fb330"
97
+ }
@@ -321,8 +321,14 @@ export default DitoComponent.component('DitoTreeItem', {
321
321
  --chevron-indent: #{$chevron-indent};
322
322
 
323
323
  overflow: hidden;
324
+ padding: 0 $input-padding-hor;
325
+ margin: 0 (-$input-padding-hor);
324
326
 
325
327
  > .dito-tree-header {
328
+ // Extend header into item padding so active background reaches the edge:
329
+ margin: 0 (-$input-padding-hor);
330
+ padding: 0 $input-padding-hor;
331
+
326
332
  > .dito-tree-branch,
327
333
  > .dito-tree-leaf {
328
334
  // Use `--level` CSS variable to calculated the accumulated indent
@@ -356,8 +362,13 @@ export default DitoComponent.component('DitoTreeItem', {
356
362
  display: flex;
357
363
  align-items: baseline;
358
364
  gap: 0.25em;
359
- overflow: hidden;
365
+ min-width: 0;
360
366
  white-space: nowrap;
367
+
368
+ > :first-child {
369
+ overflow: hidden;
370
+ text-overflow: ellipsis;
371
+ }
361
372
  }
362
373
 
363
374
  .dito-tree-info {
@@ -395,8 +406,6 @@ export default DitoComponent.component('DitoTreeItem', {
395
406
  &--active {
396
407
  > .dito-tree-header {
397
408
  background: $color-active;
398
- padding: 0 $input-padding-hor;
399
- margin: 0 (-$input-padding-hor);
400
409
 
401
410
  > .dito-tree-branch {
402
411
  > .dito-chevron::before {