@knime/kds-table 0.7.0 → 0.8.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 +13 -0
- package/README.md +28 -1
- package/dist/index.css +19 -8
- package/dist/index.js +8217 -7454
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableBodyNavigatable.vue.d.ts +10 -13
- package/dist/src/components/TableBodyNavigatable.vue.d.ts.map +1 -1
- package/dist/src/components/TableCore.vue.d.ts +20 -249
- package/dist/src/components/TableCore.vue.d.ts.map +1 -1
- package/dist/src/components/TableCoreVirtual.vue.d.ts +19 -24
- package/dist/src/components/TableCoreVirtual.vue.d.ts.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts +168 -953
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +203 -2192
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/dist/src/components/VirtualRow.vue.d.ts +9 -13
- package/dist/src/components/VirtualRow.vue.d.ts.map +1 -1
- package/dist/src/components/control/PageControls.vue.d.ts +65 -222
- package/dist/src/components/control/PageControls.vue.d.ts.map +1 -1
- package/dist/src/components/control/PageNavigation.vue.d.ts +3 -2
- package/dist/src/components/control/PageNavigation.vue.d.ts.map +1 -1
- package/dist/src/components/control/PageRowRange.vue.d.ts +2 -1
- package/dist/src/components/control/PageRowRange.vue.d.ts.map +1 -1
- package/dist/src/components/control/TableActionBar.vue.d.ts +7 -11
- package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/PopoverContainer.vue.d.ts +9 -12
- package/dist/src/components/control/actionbar/PopoverContainer.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts +3 -139
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Cell.vue.d.ts +6 -203
- package/dist/src/components/layout/Cell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellRenderer.vue.d.ts +14 -21
- package/dist/src/components/layout/CellRenderer.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellRendererProps.d.ts +5 -0
- package/dist/src/components/layout/CellRendererProps.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts +21 -79
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/dist/src/components/layout/HeaderCell.vue.d.ts +10 -132
- package/dist/src/components/layout/HeaderCell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/NewRowButton.vue.d.ts +3 -2
- package/dist/src/components/layout/NewRowButton.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Row.vue.d.ts +19 -241
- package/dist/src/components/layout/Row.vue.d.ts.map +1 -1
- package/dist/src/components/ui/CellExpandButton.vue.d.ts +3 -2
- package/dist/src/components/ui/CellExpandButton.vue.d.ts.map +1 -1
- package/dist/src/components/ui/CellSelectionOverlay.vue.d.ts +3 -4
- package/dist/src/components/ui/CellSelectionOverlay.vue.d.ts.map +1 -1
- package/dist/src/components/ui/EmptyRow.vue.d.ts +2 -1
- package/dist/src/components/ui/EmptyRow.vue.d.ts.map +1 -1
- package/dist/src/components/ui/PlaceholderRow.vue.d.ts +2 -1
- package/dist/src/components/ui/PlaceholderRow.vue.d.ts.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/types/ColumnConfig.d.ts +6 -0
- package/dist/src/types/ColumnConfig.d.ts.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f171bc8: `TableUI`: added optional `overlayDataValueViewButton` flag to `ColumnConfig` that overlays the data value view button on top of the cell content instead of reserving space next to it, so slotted content (e.g. images) does not shrink when the button appears on hover.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1f991d6]
|
|
12
|
+
- Updated dependencies [3e20664]
|
|
13
|
+
- @knime/kds-components@2.6.1
|
|
14
|
+
- @knime/kds-styles@2.6.1
|
|
15
|
+
|
|
3
16
|
## 0.7.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# KNIME® Design System – Table Component
|
|
2
2
|
|
|
3
|
-
This is part of the [KNIME Design System](../README.md)
|
|
3
|
+
This is part of the [KNIME Design System](../README.md).
|
|
4
4
|
|
|
5
5
|
This package contains the table component used by e.g. the TableView of KNIME Analytics Platform and KNIME Hub. It is based on the [Vue] JavaScript framework and built on the KNIME Design System tokens.
|
|
6
6
|
|
|
@@ -105,6 +105,33 @@ Use in Template
|
|
|
105
105
|
</template>
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
### Using with Vitest, Nuxt, or Vite SSR
|
|
109
|
+
|
|
110
|
+
The published JavaScript imports its CSS as a side effect (e.g.
|
|
111
|
+
`import "./index.css"`), which bundlers handle automatically. When the package
|
|
112
|
+
is instead evaluated by Node's native ESM loader — as **Vitest** and
|
|
113
|
+
**Vite/Nuxt SSR** do by default, since they externalize `node_modules` — Node
|
|
114
|
+
has no `.css` loader and throws `Unknown file extension ".css"`. Configure the
|
|
115
|
+
consuming project once so `@knime/*` packages are processed instead of
|
|
116
|
+
externalized:
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
// Vitest — vitest.config.ts
|
|
120
|
+
export default defineConfig({
|
|
121
|
+
test: { server: { deps: { inline: [/@knime\//] } } },
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
```ts
|
|
126
|
+
// Vite SSR — vite.config.ts
|
|
127
|
+
export default defineConfig({ ssr: { noExternal: [/@knime\//] } });
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
// Nuxt — nuxt.config.ts
|
|
132
|
+
export default defineNuxtConfig({ build: { transpile: [/@knime\//] } });
|
|
133
|
+
```
|
|
134
|
+
|
|
108
135
|
### Requirements
|
|
109
136
|
|
|
110
137
|
The KNIME-Table expects that the embedding app provides the following:
|
package/dist/index.css
CHANGED
|
@@ -169,17 +169,17 @@ tr {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.sort-popover[data-v-
|
|
172
|
+
.sort-popover[data-v-97a272c8] {
|
|
173
173
|
position-try-order: most-inline-size;
|
|
174
174
|
}
|
|
175
175
|
.popover-container {
|
|
176
176
|
.body {
|
|
177
|
-
&[data-v-
|
|
177
|
+
&[data-v-97a272c8] {
|
|
178
178
|
display: grid;
|
|
179
179
|
grid-template-columns: 1fr 1fr;
|
|
180
180
|
gap: var(--kds-spacing-container-0-5x);
|
|
181
181
|
}
|
|
182
|
-
&[data-v-
|
|
182
|
+
&[data-v-97a272c8] > * {
|
|
183
183
|
min-width: 0;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -445,7 +445,7 @@ thead {
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.data-cell {
|
|
448
|
-
&[data-v-
|
|
448
|
+
&[data-v-a7720ed9] {
|
|
449
449
|
display: flex;
|
|
450
450
|
font: var(--kds-font-base-interactive-small);
|
|
451
451
|
color: var(--kds-color-text-and-icon-neutral);
|
|
@@ -453,10 +453,10 @@ thead {
|
|
|
453
453
|
user-select: none;
|
|
454
454
|
background-clip: border-box;
|
|
455
455
|
}
|
|
456
|
-
&.in-cell-selection[data-v-
|
|
456
|
+
&.in-cell-selection[data-v-a7720ed9] {
|
|
457
457
|
background-color: var(--kds-color-focus-background);
|
|
458
458
|
}
|
|
459
|
-
&.colored-cell[data-v-
|
|
459
|
+
&.colored-cell[data-v-a7720ed9] {
|
|
460
460
|
/* stylelint-disable no-unknown-custom-properties -- runtime variable set via inline :style */
|
|
461
461
|
background-image: linear-gradient(
|
|
462
462
|
90deg,
|
|
@@ -467,14 +467,25 @@ thead {
|
|
|
467
467
|
background-repeat: no-repeat;
|
|
468
468
|
background-size: var(--kds-spacing-container-0-25x);
|
|
469
469
|
}
|
|
470
|
-
& .cell-content
|
|
470
|
+
& .cell-content {
|
|
471
|
+
&[data-v-a7720ed9] {
|
|
472
|
+
position: relative;
|
|
471
473
|
display: flex;
|
|
472
474
|
gap: var(--kds-spacing-container-0-25x);
|
|
473
475
|
align-self: flex-start;
|
|
474
476
|
justify-content: space-between;
|
|
475
477
|
width: 100%;
|
|
478
|
+
|
|
479
|
+
/* Anchored at the same height as the buttons of padded (non-slotted)
|
|
480
|
+
cells, so it lines up with the other columns' buttons in the row. */
|
|
481
|
+
}
|
|
482
|
+
& > .overlaid[data-v-a7720ed9] {
|
|
483
|
+
position: absolute;
|
|
484
|
+
top: var(--ceb68c32);
|
|
485
|
+
right: 0;
|
|
486
|
+
}
|
|
476
487
|
}
|
|
477
|
-
& .cell-content .cell-text[data-v-
|
|
488
|
+
& .cell-content .cell-text[data-v-a7720ed9] {
|
|
478
489
|
flex: 0 1 auto;
|
|
479
490
|
min-width: 0;
|
|
480
491
|
overflow: hidden;
|