@knime/kds-table 6.9.0 → 6.11.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/CHANGELOG.md +20 -0
- package/dist/index.css +43 -21
- package/dist/index.js +412 -317
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableCore.vue.d.ts +3 -1
- package/dist/src/components/TableCore.vue.d.ts.map +1 -1
- package/dist/src/components/TableCoreVirtual.vue.d.ts +3 -1
- package/dist/src/components/TableCoreVirtual.vue.d.ts.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts +8 -6
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +8 -6
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 6.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 780a0b9: `TableUI`: the `emptyState` prop no longer defaults to a "No data" message - omitting it now shows nothing at all. An empty table is not necessarily worth a message; one is only helpful when the table is empty because of something the user did and can undo, e.g. a filter that excludes every row. Pass an `emptyState` to keep showing a message.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 780a0b9: `TableUI`: place the empty state into the area the rows would have occupied instead of below the body. It is now centered in that area (at most 80px below the header) rather than collapsed against the column headers or pushed to the bottom edge, the horizontal scrollbar stays at the bottom of the table, and it no longer scrolls away horizontally.
|
|
12
|
+
- @knime/kds-components@6.11.0
|
|
13
|
+
- @knime/kds-styles@6.11.0
|
|
14
|
+
|
|
15
|
+
## 6.10.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [6d050de]
|
|
20
|
+
- @knime/kds-components@6.10.0
|
|
21
|
+
- @knime/kds-styles@6.10.0
|
|
22
|
+
|
|
3
23
|
## 6.9.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/dist/index.css
CHANGED
|
@@ -54,13 +54,13 @@ tr {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.container {
|
|
57
|
-
&[data-v-
|
|
57
|
+
&[data-v-188dbeca] {
|
|
58
58
|
flex: 1 1 0;
|
|
59
59
|
}
|
|
60
|
-
&.fit-content[data-v-
|
|
60
|
+
&.fit-content[data-v-188dbeca] {
|
|
61
61
|
flex: 0 0 auto;
|
|
62
62
|
}
|
|
63
|
-
& .header-container[data-v-
|
|
63
|
+
& .header-container[data-v-188dbeca] {
|
|
64
64
|
position: sticky;
|
|
65
65
|
top: 0;
|
|
66
66
|
z-index: var(--z-index-sticky-header);
|
|
@@ -68,7 +68,7 @@ tr {
|
|
|
68
68
|
flex: 1;
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
}
|
|
71
|
-
& tbody[data-v-
|
|
71
|
+
& tbody[data-v-188dbeca] {
|
|
72
72
|
/**
|
|
73
73
|
* Necessary for the absolutely placed elements inside of it (e.g. cell selection overlay)
|
|
74
74
|
* to scroll with the body.
|
|
@@ -86,12 +86,41 @@ tr {
|
|
|
86
86
|
width: fit-content;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
.empty-state-container {
|
|
90
|
+
&[data-v-188dbeca] {
|
|
91
|
+
position: sticky;
|
|
92
|
+
left: 0;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
align-items: center;
|
|
96
|
+
width: 100%;
|
|
97
|
+
|
|
98
|
+
/*
|
|
99
|
+
The two spacers share the space around the empty state equally, i.e. they
|
|
100
|
+
center it - but the upper one is capped, so with plenty of space the message
|
|
101
|
+
stays close to the header instead of drifting into the middle of the table.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/* Rather overflow than squeeze the message when the space gets tight. */
|
|
105
|
+
}
|
|
106
|
+
&[data-v-188dbeca]::before,
|
|
107
|
+
&[data-v-188dbeca]::after {
|
|
108
|
+
flex: 1 1 0;
|
|
109
|
+
content: "";
|
|
110
|
+
}
|
|
111
|
+
&[data-v-188dbeca]::before {
|
|
112
|
+
max-height: var(--kds-spacing-container-5x);
|
|
113
|
+
}
|
|
114
|
+
&[data-v-188dbeca] > * {
|
|
115
|
+
flex: 0 0 auto;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
89
118
|
.resize-scroll-spacer {
|
|
90
|
-
&[data-v-
|
|
119
|
+
&[data-v-188dbeca] {
|
|
91
120
|
/* Only animate when collapsing back after a resize ends; while resizing the width
|
|
92
121
|
tracks the growing column and must update instantly. */
|
|
93
122
|
}
|
|
94
|
-
&.collapsing[data-v-
|
|
123
|
+
&.collapsing[data-v-188dbeca] {
|
|
95
124
|
transition: width 0.2s ease;
|
|
96
125
|
}
|
|
97
126
|
}
|
|
@@ -607,7 +636,7 @@ tr.row {
|
|
|
607
636
|
}
|
|
608
637
|
}
|
|
609
638
|
|
|
610
|
-
.wrapper[data-v-
|
|
639
|
+
.wrapper[data-v-83bc03a3] {
|
|
611
640
|
display: flex;
|
|
612
641
|
flex-direction: column;
|
|
613
642
|
width: 100%;
|
|
@@ -617,7 +646,7 @@ tr.row {
|
|
|
617
646
|
}
|
|
618
647
|
}
|
|
619
648
|
table {
|
|
620
|
-
&[data-v-
|
|
649
|
+
&[data-v-83bc03a3] {
|
|
621
650
|
position: relative;
|
|
622
651
|
display: flex;
|
|
623
652
|
flex-grow: 1;
|
|
@@ -625,24 +654,17 @@ table {
|
|
|
625
654
|
width: 100%;
|
|
626
655
|
min-height: 0;
|
|
627
656
|
}
|
|
628
|
-
&[data-v-
|
|
657
|
+
&[data-v-83bc03a3]:focus {
|
|
629
658
|
outline: none;
|
|
630
659
|
}
|
|
631
|
-
& .new-row-footer[data-v-
|
|
660
|
+
& .new-row-footer[data-v-83bc03a3] {
|
|
632
661
|
width: 100%;
|
|
633
662
|
}
|
|
634
663
|
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
justify-content: center;
|
|
640
|
-
width: 100%;
|
|
641
|
-
}
|
|
642
|
-
& .empty-state[data-v-1941898e] {
|
|
643
|
-
width: 100%;
|
|
644
|
-
max-width: 100%;
|
|
645
|
-
}
|
|
664
|
+
|
|
665
|
+
/* The empty state is placed into the rows' area by TableCoreVirtual. */
|
|
666
|
+
.empty-state[data-v-83bc03a3] {
|
|
667
|
+
max-width: 100%;
|
|
646
668
|
}
|
|
647
669
|
|
|
648
670
|
.table-column-size-calculation[data-v-f3ef2f4b] {
|