@knime/kds-table 6.3.1 → 6.5.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @knime/kds-table
2
2
 
3
+ ## 6.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e89e10c: - `TableUI`:
8
+ - Show a "Preview" label in the action bar when `actionState.viewType` is `PREVIEW`, with an info button opening a popover that shows the new optional `actionState.previewDescription`.
9
+ - Render the action bar whenever `actionState.viewType` is `TEMP_VIEW` or `PREVIEW`, even when no action bar feature is enabled via `actionConfig`.
10
+
11
+ ### Patch Changes
12
+
13
+ - @knime/kds-components@6.5.0
14
+ - @knime/kds-styles@6.5.0
15
+
16
+ ## 6.4.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 641d886: - `TableUI`:
21
+ - added an empty state — set `empty-state` prop to show a `KdsEmptyState` in the body area (the column headers stay visible), shown when no data are given.
22
+ - added `actionConfig.hideSortingButton` to hide the action bar's sorting button without affecting sorting from the column headers.
23
+ - changed the reset button's label from "Reset to Nodeoutput" to "Reset table".
24
+ - use the `--kds-color-page-default` token for the header background instead of a hard-coded white.
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [21c714b]
29
+ - @knime/kds-components@6.4.0
30
+ - @knime/kds-styles@6.4.0
31
+
3
32
  ## 6.3.1
4
33
 
5
34
  ### Patch Changes
package/dist/index.css CHANGED
@@ -186,39 +186,52 @@ tr {
186
186
  }
187
187
 
188
188
  .kds-table-action-bar {
189
- &[data-v-6538127c] {
190
- display: flex;
191
- align-items: center;
192
- justify-content: space-between;
189
+ &[data-v-c9fae4f1] {
190
+ display: grid;
191
+ grid-template-columns: 1fr 1fr 1fr;
193
192
  min-height: var(--kds-dimension-component-height-2-5x);
194
193
  padding-right: var(--kds-spacing-container-0-25x);
195
194
  padding-left: var(--kds-spacing-container-0-5x);
196
195
  border-bottom: var(--kds-border-base-subtle);
197
196
  }
198
- &.temporary-view[data-v-6538127c] {
197
+ &.temporary-view[data-v-c9fae4f1] {
199
198
  background-color: var(--kds-color-background-static-info-muted);
200
199
  }
201
- & .left {
202
- &[data-v-6538127c] {
200
+ & .dimension[data-v-c9fae4f1] {
201
+ font: var(--kds-font-base-title-small);
202
+ color: var(--kds-color-text-and-icon-muted);
203
+ white-space: pre;
204
+ }
205
+ & .preview {
206
+ &[data-v-c9fae4f1] {
203
207
  display: flex;
204
- flex: 1 0 0;
205
- gap: var(--kds-spacing-container-0-5x);
208
+ gap: var(--kds-spacing-container-0-12x);
206
209
  align-items: center;
207
- padding: var(--kds-spacing-container-0-12x) 0;
208
210
  }
209
- & .dimension[data-v-6538127c] {
210
- font: var(--kds-font-base-title-small);
211
- color: var(--kds-color-text-and-icon-muted);
212
- white-space: pre;
211
+ & .preview-label[data-v-c9fae4f1] {
212
+ font: var(--kds-font-base-title-small-strong);
213
+ color: var(--kds-color-text-and-icon-neutral);
213
214
  }
214
215
  }
215
- & .right[data-v-6538127c] {
216
+ & .left[data-v-c9fae4f1],
217
+ & .center[data-v-c9fae4f1],
218
+ & .right[data-v-c9fae4f1] {
216
219
  display: flex;
217
- gap: var(--kds-spacing-container-0-25x);
220
+ flex: 1;
218
221
  align-items: center;
219
- justify-content: flex-end;
222
+ min-width: 0;
220
223
  padding: var(--kds-spacing-container-0-12x) 0;
221
224
  }
225
+ & .left[data-v-c9fae4f1] {
226
+ gap: var(--kds-spacing-container-0-5x);
227
+ }
228
+ & .center[data-v-c9fae4f1] {
229
+ justify-content: center;
230
+ }
231
+ & .right[data-v-c9fae4f1] {
232
+ gap: var(--kds-spacing-container-0-25x);
233
+ justify-content: flex-end;
234
+ }
222
235
  }
223
236
 
224
237
  .column-header {
@@ -332,14 +345,12 @@ tr {
332
345
  }
333
346
 
334
347
  thead {
335
- &[data-v-5ec89e0d] {
336
- /* TODO SLEEK-376 handle background color */
337
- /* stylelint-disable-next-line no-unknown-custom-properties */
338
- background-color: var(--knime-white);
348
+ &[data-v-fc0a0ecb] {
349
+ background-color: var(--kds-color-page-default);
339
350
  border-bottom: var(--kds-border-base-subtle);
340
351
  }
341
352
  & tr {
342
- &[data-v-5ec89e0d] {
353
+ &[data-v-fc0a0ecb] {
343
354
  display: flex;
344
355
  height: 100%;
345
356
  transition:
@@ -347,51 +358,51 @@ thead {
347
358
  box-shadow 0.15s;
348
359
  }
349
360
  & th {
350
- &[data-v-5ec89e0d] {
361
+ &[data-v-fc0a0ecb] {
351
362
  min-height: var(--kds-dimension-component-height-2-5x);
352
363
  max-height: var(--kds-dimension-component-height-5x);
353
364
  text-align: left;
354
365
  white-space: nowrap;
355
366
  }
356
- &.deletion-cell-spacer[data-v-5ec89e0d] {
367
+ &.deletion-cell-spacer[data-v-fc0a0ecb] {
357
368
  width: var(--kds-dimension-component-width-2x);
358
369
  }
359
370
  &.select-cell {
360
- &[data-v-5ec89e0d] {
371
+ &[data-v-fc0a0ecb] {
361
372
  display: flex;
362
373
  justify-content: center;
363
374
  width: var(--kds-dimension-component-width-2x);
364
375
  padding: var(--kds-spacing-container-0-75x);
365
376
  }
366
- & .select-checkbox[data-v-5ec89e0d] {
377
+ & .select-checkbox[data-v-fc0a0ecb] {
367
378
  /* With this added padding the checkbox appears centered initially */
368
379
  padding: var(--kds-spacing-container-0-10x);
369
380
  }
370
381
  }
371
- &.new-column-head[data-v-5ec89e0d] {
382
+ &.new-column-head[data-v-fc0a0ecb] {
372
383
  display: flex;
373
384
  flex-direction: column;
374
385
  justify-content: center;
375
386
  padding: var(--kds-spacing-container-0-5x);
376
387
  }
377
388
  }
378
- &[data-v-5ec89e0d]:hover {
389
+ &[data-v-fc0a0ecb]:hover {
379
390
  outline: none;
380
391
  }
381
392
  }
382
- &.sub-menu-active tr[data-v-5ec89e0d] {
393
+ &.sub-menu-active tr[data-v-fc0a0ecb] {
383
394
  padding-right: var(--kds-dimension-component-width-2x);
384
395
  }
385
396
  }
386
397
  .header-selection-overlay {
387
- &[data-v-5ec89e0d] {
398
+ &[data-v-fc0a0ecb] {
388
399
  position: absolute;
389
400
  top: 0;
390
401
  height: 100%;
391
402
  pointer-events: none;
392
403
  border: var(--kds-border-action-selected-accent);
393
404
  }
394
- &.header-focused[data-v-5ec89e0d] {
405
+ &.header-focused[data-v-fc0a0ecb] {
395
406
  border: var(--kds-border-action-focused);
396
407
  }
397
408
  }
@@ -573,7 +584,7 @@ tr.row {
573
584
  }
574
585
  }
575
586
 
576
- .wrapper[data-v-d531fa0a] {
587
+ .wrapper[data-v-1941898e] {
577
588
  display: flex;
578
589
  flex-direction: column;
579
590
  width: 100%;
@@ -583,7 +594,7 @@ tr.row {
583
594
  }
584
595
  }
585
596
  table {
586
- &[data-v-d531fa0a] {
597
+ &[data-v-1941898e] {
587
598
  position: relative;
588
599
  display: flex;
589
600
  flex-grow: 1;
@@ -591,11 +602,23 @@ table {
591
602
  width: 100%;
592
603
  min-height: 0;
593
604
  }
594
- &[data-v-d531fa0a]:focus {
605
+ &[data-v-1941898e]:focus {
595
606
  outline: none;
596
607
  }
597
- & .new-row-footer[data-v-d531fa0a] {
608
+ & .new-row-footer[data-v-1941898e] {
609
+ width: 100%;
610
+ }
611
+ }
612
+ .empty-state-overlay {
613
+ &[data-v-1941898e] {
614
+ display: flex;
615
+ align-items: center;
616
+ justify-content: center;
617
+ width: 100%;
618
+ }
619
+ & .empty-state[data-v-1941898e] {
598
620
  width: 100%;
621
+ max-width: 100%;
599
622
  }
600
623
  }
601
624