@keenmate/svelte-treeview 3.1.1 → 3.1.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/dist/Branch.svelte +1 -1
- package/dist/TreeView.svelte +6 -11
- package/dist/tree-styles.scss +8 -12
- package/package.json +1 -1
package/dist/Branch.svelte
CHANGED
|
@@ -116,9 +116,9 @@ function onContextMenu(ev, node) {
|
|
|
116
116
|
{#if node.hasChildren}
|
|
117
117
|
<button
|
|
118
118
|
class="expansion-button arrow"
|
|
119
|
-
onclick={() => setExpansion(node, !expanded)}
|
|
120
119
|
type="button"
|
|
121
120
|
tabindex="-1"
|
|
121
|
+
onclick={() => setExpansion(node, !expanded)}
|
|
122
122
|
>
|
|
123
123
|
<i class="fixed-icon arrow {expanded ? classes.collapseIcon : classes.expandIcon}"></i>
|
|
124
124
|
</button>
|
package/dist/TreeView.svelte
CHANGED
|
@@ -374,16 +374,6 @@ function debugLog(...data) {
|
|
|
374
374
|
bottom: 0;
|
|
375
375
|
left: 0;
|
|
376
376
|
}
|
|
377
|
-
:global(.treeview-parent) :global(.treeview) :global(ul) :global(li:before) {
|
|
378
|
-
content: "";
|
|
379
|
-
display: block;
|
|
380
|
-
width: 10px;
|
|
381
|
-
height: 0;
|
|
382
|
-
margin-top: -1px;
|
|
383
|
-
position: absolute;
|
|
384
|
-
top: 0.8em;
|
|
385
|
-
left: 0;
|
|
386
|
-
}
|
|
387
377
|
:global(.treeview-parent) :global(.treeview) :global(ul) :global(li:not(.has-children):before) {
|
|
388
378
|
width: 26px;
|
|
389
379
|
}
|
|
@@ -406,6 +396,9 @@ function debugLog(...data) {
|
|
|
406
396
|
align-items: center;
|
|
407
397
|
padding: 4px 0;
|
|
408
398
|
}
|
|
399
|
+
:global(.treeview-parent) :global(.treeview) :global(.tree-item) + :global(.child-menu) {
|
|
400
|
+
margin-left: var(--treeview-children-offset, 1.25em);
|
|
401
|
+
}
|
|
409
402
|
:global(.treeview-parent) :global(.treeview) :global(.no-arrow) {
|
|
410
403
|
padding-left: 0.5rem;
|
|
411
404
|
}
|
|
@@ -457,5 +450,7 @@ function debugLog(...data) {
|
|
|
457
450
|
:global(.treeview-parent) :global(.treeview) :global(.fixed-icon) {
|
|
458
451
|
text-align: center;
|
|
459
452
|
width: 1.25em;
|
|
460
|
-
|
|
453
|
+
}
|
|
454
|
+
:global(.treeview-parent) :global(.treeview) :global(.tree-item) > :global(.child-offset) {
|
|
455
|
+
width: 1.25em;
|
|
461
456
|
}</style>
|
package/dist/tree-styles.scss
CHANGED
|
@@ -40,16 +40,6 @@ $treeview-lines: solid black 1px;
|
|
|
40
40
|
left: 0;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
li:before {
|
|
44
|
-
content: "";
|
|
45
|
-
display: block;
|
|
46
|
-
width: 10px;
|
|
47
|
-
height: 0;
|
|
48
|
-
margin-top: -1px;
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0.8em;
|
|
51
|
-
left: 0;
|
|
52
|
-
}
|
|
53
43
|
|
|
54
44
|
li:not(.has-children):before {
|
|
55
45
|
width: 26px;
|
|
@@ -76,6 +66,9 @@ $treeview-lines: solid black 1px;
|
|
|
76
66
|
column-gap: 0.4em;
|
|
77
67
|
align-items: center;
|
|
78
68
|
padding: 4px 0;
|
|
69
|
+
& + .child-menu {
|
|
70
|
+
margin-left: var(--treeview-children-offset, 1.25em);
|
|
71
|
+
}
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
.no-arrow {
|
|
@@ -144,8 +137,11 @@ $treeview-lines: solid black 1px;
|
|
|
144
137
|
.fixed-icon {
|
|
145
138
|
text-align: center;
|
|
146
139
|
width: 1.25em;
|
|
147
|
-
// fix deformation on small screens
|
|
148
|
-
min-width: 1.25em;
|
|
149
140
|
}
|
|
150
141
|
|
|
142
|
+
.tree-item {
|
|
143
|
+
& > .child-offset {
|
|
144
|
+
width: 1.25em;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
151
147
|
}
|