@knime/kds-table 7.2.0 → 7.2.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/CHANGELOG.md +23 -0
- package/dist/index.css +24 -24
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/src/components/layout/CellRenderer.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 7.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c4826f2]
|
|
8
|
+
- @knime/kds-components@7.2.2
|
|
9
|
+
- @knime/kds-styles@7.2.2
|
|
10
|
+
|
|
11
|
+
## 7.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- ec43060: - `TableUI`:
|
|
16
|
+
- a cell now only shows a tooltip when its content is truncated, instead of
|
|
17
|
+
repeating content that already fits into the cell. Missing value cells keep
|
|
18
|
+
their tooltip explaining the missing value.
|
|
19
|
+
- hovering a column header no longer reserves room for a sort button the
|
|
20
|
+
column does not have, which was truncating the column name in narrow
|
|
21
|
+
columns of tables without sorting.
|
|
22
|
+
- Updated dependencies [ec43060]
|
|
23
|
+
- @knime/kds-components@7.2.1
|
|
24
|
+
- @knime/kds-styles@7.2.1
|
|
25
|
+
|
|
3
26
|
## 7.2.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -284,7 +284,7 @@ tr {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.column-header {
|
|
287
|
-
&[data-v-
|
|
287
|
+
&[data-v-2bbac71d] {
|
|
288
288
|
/* Need to set position relative here to position the resize handle absolutely within the header cell */
|
|
289
289
|
position: relative;
|
|
290
290
|
display: flex;
|
|
@@ -298,10 +298,10 @@ tr {
|
|
|
298
298
|
text-align: left;
|
|
299
299
|
white-space: nowrap;
|
|
300
300
|
}
|
|
301
|
-
&.header-focused[data-v-
|
|
301
|
+
&.header-focused[data-v-2bbac71d] {
|
|
302
302
|
background-color: var(--kds-color-focus-background);
|
|
303
303
|
}
|
|
304
|
-
&.colored-header[data-v-
|
|
304
|
+
&.colored-header[data-v-2bbac71d] {
|
|
305
305
|
/* stylelint-disable no-unknown-custom-properties -- runtime variable set via inline :style */
|
|
306
306
|
background-image: linear-gradient(
|
|
307
307
|
90deg,
|
|
@@ -313,7 +313,7 @@ tr {
|
|
|
313
313
|
background-size: var(--kds-spacing-container-0-25x);
|
|
314
314
|
}
|
|
315
315
|
& .column-header-content {
|
|
316
|
-
&[data-v-
|
|
316
|
+
&[data-v-2bbac71d] {
|
|
317
317
|
display: flex;
|
|
318
318
|
flex-shrink: 1;
|
|
319
319
|
flex-direction: column;
|
|
@@ -325,20 +325,20 @@ tr {
|
|
|
325
325
|
disappears) instead of pushing the header-action buttons outside. */
|
|
326
326
|
min-width: 0;
|
|
327
327
|
}
|
|
328
|
-
&[data-v-
|
|
328
|
+
&[data-v-2bbac71d]:focus {
|
|
329
329
|
outline: none;
|
|
330
330
|
}
|
|
331
|
-
&.with-button-in-header[data-v-
|
|
331
|
+
&.with-button-in-header[data-v-2bbac71d] {
|
|
332
332
|
width: calc(
|
|
333
333
|
100% - var(--kds-dimension-component-width-1-5x)
|
|
334
334
|
); /* due to .sub-menu-select-header / .delete-column-button: width */
|
|
335
335
|
}
|
|
336
336
|
& .main-header {
|
|
337
|
-
&[data-v-
|
|
337
|
+
&[data-v-2bbac71d] {
|
|
338
338
|
display: flex;
|
|
339
339
|
min-width: 0;
|
|
340
340
|
}
|
|
341
|
-
& .header-text-container[data-v-
|
|
341
|
+
& .header-text-container[data-v-2bbac71d] {
|
|
342
342
|
min-width: 0;
|
|
343
343
|
max-width: 100%;
|
|
344
344
|
overflow: hidden;
|
|
@@ -346,37 +346,37 @@ tr {
|
|
|
346
346
|
font: var(--kds-font-base-title-medium-strong);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
& .sub-header-text-container[data-v-
|
|
349
|
+
& .sub-header-text-container[data-v-2bbac71d] {
|
|
350
350
|
overflow: hidden;
|
|
351
351
|
text-overflow: ellipsis;
|
|
352
352
|
font: var(--kds-font-base-subtext-small);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
& .header-action-button {
|
|
356
|
-
&[data-v-
|
|
356
|
+
&[data-v-2bbac71d] {
|
|
357
357
|
flex-shrink: 0;
|
|
358
358
|
|
|
359
359
|
/* Collapsed to zero width by default so it reserves no space in the
|
|
360
360
|
header; it only claims room once hovered/focused (or sorted), at
|
|
361
361
|
which point the column name shrinks/truncates to make room for it. */
|
|
362
362
|
}
|
|
363
|
-
& + .header-action-button[data-v-
|
|
363
|
+
& + .header-action-button[data-v-2bbac71d] {
|
|
364
364
|
margin-left: var(--kds-spacing-container-0-12x);
|
|
365
365
|
}
|
|
366
|
-
&.action-button-hidden[data-v-
|
|
366
|
+
&.action-button-hidden[data-v-2bbac71d] {
|
|
367
367
|
width: 0;
|
|
368
368
|
overflow: hidden;
|
|
369
369
|
pointer-events: none;
|
|
370
370
|
opacity: 0;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
& .delete-column-button[data-v-
|
|
373
|
+
& .delete-column-button[data-v-2bbac71d] {
|
|
374
374
|
display: flex;
|
|
375
375
|
align-items: center;
|
|
376
376
|
width: var(--kds-dimension-component-width-2x);
|
|
377
377
|
}
|
|
378
378
|
& .resize-handle-area {
|
|
379
|
-
&[data-v-
|
|
379
|
+
&[data-v-2bbac71d] {
|
|
380
380
|
position: absolute;
|
|
381
381
|
|
|
382
382
|
/* resize handle should range into top border */
|
|
@@ -402,14 +402,14 @@ tr {
|
|
|
402
402
|
cursor: col-resize;
|
|
403
403
|
opacity: 0;
|
|
404
404
|
}
|
|
405
|
-
& .resize-handle[data-v-
|
|
405
|
+
& .resize-handle[data-v-2bbac71d] {
|
|
406
406
|
border-right: var(--kds-border-resize-handle-hover);
|
|
407
407
|
border-radius: var(--kds-border-radius-container-0-25x);
|
|
408
408
|
}
|
|
409
|
-
&.hover[data-v-
|
|
409
|
+
&.hover[data-v-2bbac71d] {
|
|
410
410
|
opacity: 1;
|
|
411
411
|
}
|
|
412
|
-
&.drag[data-v-
|
|
412
|
+
&.drag[data-v-2bbac71d] {
|
|
413
413
|
opacity: 1;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -526,7 +526,7 @@ thead {
|
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
.data-cell {
|
|
529
|
-
&[data-v-
|
|
529
|
+
&[data-v-fa1401e0] {
|
|
530
530
|
display: flex;
|
|
531
531
|
font: var(--kds-font-base-interactive-small);
|
|
532
532
|
color: var(--kds-color-text-and-icon-neutral);
|
|
@@ -534,10 +534,10 @@ thead {
|
|
|
534
534
|
user-select: none;
|
|
535
535
|
background-clip: border-box;
|
|
536
536
|
}
|
|
537
|
-
&.in-cell-selection[data-v-
|
|
537
|
+
&.in-cell-selection[data-v-fa1401e0] {
|
|
538
538
|
background-color: var(--kds-color-focus-background);
|
|
539
539
|
}
|
|
540
|
-
&.colored-cell[data-v-
|
|
540
|
+
&.colored-cell[data-v-fa1401e0] {
|
|
541
541
|
/* stylelint-disable no-unknown-custom-properties -- runtime variable set via inline :style */
|
|
542
542
|
background-image: linear-gradient(
|
|
543
543
|
90deg,
|
|
@@ -549,7 +549,7 @@ thead {
|
|
|
549
549
|
background-size: var(--kds-spacing-container-0-25x);
|
|
550
550
|
}
|
|
551
551
|
& .cell-content {
|
|
552
|
-
&[data-v-
|
|
552
|
+
&[data-v-fa1401e0] {
|
|
553
553
|
position: relative;
|
|
554
554
|
display: flex;
|
|
555
555
|
gap: var(--kds-spacing-container-0-25x);
|
|
@@ -560,13 +560,13 @@ thead {
|
|
|
560
560
|
/* Anchored at the same height as the buttons of padded (non-slotted)
|
|
561
561
|
cells, so it lines up with the other columns' buttons in the row. */
|
|
562
562
|
}
|
|
563
|
-
& > .overlaid[data-v-
|
|
563
|
+
& > .overlaid[data-v-fa1401e0] {
|
|
564
564
|
position: absolute;
|
|
565
|
-
top: var(--
|
|
565
|
+
top: var(--v092faed6);
|
|
566
566
|
right: 0;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
& .cell-content .cell-text[data-v-
|
|
569
|
+
& .cell-content .cell-text[data-v-fa1401e0] {
|
|
570
570
|
flex: 0 1 auto;
|
|
571
571
|
min-width: 0;
|
|
572
572
|
overflow: hidden;
|
package/dist/index.js
CHANGED
|
@@ -6016,8 +6016,7 @@ var Header_vue_vue_type_script_lang_default = {
|
|
|
6016
6016
|
const showMenuButton = computed(() => {
|
|
6017
6017
|
return props.additionalMenuItems?.length && (headerHovered.value || menuOpen.value || nativeFocusInsideHeader.value) && !dragging.value;
|
|
6018
6018
|
});
|
|
6019
|
-
|
|
6020
|
-
const sortButtonVisible = computed(() => (headerHovered.value || nativeFocusInsideHeader.value || isSorted.value) && !dragging.value);
|
|
6019
|
+
const sortButtonVisible = computed(() => showSortButton.value && (headerHovered.value || nativeFocusInsideHeader.value || isSorted.value) && !dragging.value);
|
|
6021
6020
|
__expose({
|
|
6022
6021
|
getHeaderCellWidth,
|
|
6023
6022
|
focus,
|
|
@@ -6133,7 +6132,7 @@ var Header_vue_vue_type_script_lang_default = {
|
|
|
6133
6132
|
], 38);
|
|
6134
6133
|
};
|
|
6135
6134
|
}
|
|
6136
|
-
}), [["__scopeId", "data-v-
|
|
6135
|
+
}), [["__scopeId", "data-v-2bbac71d"]])
|
|
6137
6136
|
},
|
|
6138
6137
|
props: {
|
|
6139
6138
|
tableConfig: {
|
|
@@ -6541,7 +6540,7 @@ var CellRenderer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
6541
6540
|
"select"
|
|
6542
6541
|
],
|
|
6543
6542
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
6544
|
-
useCssVars((_ctx) => ({ "
|
|
6543
|
+
useCssVars((_ctx) => ({ "v092faed6": `${_ctx.defaultTopBottomPadding}px` }));
|
|
6545
6544
|
const emit = __emit;
|
|
6546
6545
|
const props = __props;
|
|
6547
6546
|
const dataCellColorStyle = computed(() => {
|
|
@@ -6652,16 +6651,20 @@ var CellRenderer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
6652
6651
|
}, [createElementVNode("div", _hoisted_1$1, [__props.isEditing ? renderSlot(_ctx.$slots, "editable-cell", { cellElement: _ctx.$el }, void 0, true, 0) : __props.isMissing ? (openBlock(), createBlock(unref(KdsMissingValueIcon), {
|
|
6653
6652
|
key: 1,
|
|
6654
6653
|
size: "small"
|
|
6655
|
-
})) : __props.isSlotted ? renderSlot(_ctx.$slots, "default", { width: __props.size - props.defaultLeftRightPadding * 2 - (showCellExpandButton.value && !__props.overlayExpandButton ? unref(EXPAND_BUTTON_WIDTH) : 0) }, void 0, true, 2) : (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(__props.text), 1))
|
|
6654
|
+
})) : __props.isSlotted ? renderSlot(_ctx.$slots, "default", { width: __props.size - props.defaultLeftRightPadding * 2 - (showCellExpandButton.value && !__props.overlayExpandButton ? unref(EXPAND_BUTTON_WIDTH) : 0) }, void 0, true, 2) : withDirectives((openBlock(), createElementBlock("span", _hoisted_2$1, [createTextVNode(toDisplayString(__props.text), 1)])), [[
|
|
6655
|
+
unref(vKdsTooltip),
|
|
6656
|
+
props.tooltip,
|
|
6657
|
+
"truncated"
|
|
6658
|
+
]]), showCellExpandButton.value ? (openBlock(), createBlock(CellExpandButton_default, {
|
|
6656
6659
|
key: 4,
|
|
6657
6660
|
class: normalizeClass({ overlaid: __props.overlayExpandButton }),
|
|
6658
6661
|
toggled: isExpanded.value,
|
|
6659
6662
|
onPointerdown: onExpandButtonPointerDown,
|
|
6660
6663
|
onClick: onExpandButtonClick
|
|
6661
|
-
}, null, 8, ["class", "toggled"])) : createCommentVNode("", true)], 512)], 38)), [[unref(vKdsTooltip),
|
|
6664
|
+
}, null, 8, ["class", "toggled"])) : createCommentVNode("", true)], 512)], 38)), [[unref(vKdsTooltip), __props.isMissing ? props.tooltip : void 0]]);
|
|
6662
6665
|
};
|
|
6663
6666
|
}
|
|
6664
|
-
}), [["__scopeId", "data-v-
|
|
6667
|
+
}), [["__scopeId", "data-v-fa1401e0"]]);
|
|
6665
6668
|
//#endregion
|
|
6666
6669
|
//#region src/components/layout/Cell.vue
|
|
6667
6670
|
var Cell_default = /* @__PURE__ */ defineComponent({
|