@knime/kds-table 2.9.0 → 4.0.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 +22 -0
- package/dist/index.css +17 -18
- package/dist/index.js +33 -24
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e2b5bfe]
|
|
8
|
+
- Updated dependencies [bd4a10e]
|
|
9
|
+
- @knime/kds-components@4.0.0
|
|
10
|
+
- @knime/kds-styles@4.0.0
|
|
11
|
+
|
|
12
|
+
## 3.0.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 2037f86: KDS-962: Remove table border-top
|
|
17
|
+
- Updated dependencies [13cbb42]
|
|
18
|
+
- Updated dependencies [356af93]
|
|
19
|
+
- Updated dependencies [356af93]
|
|
20
|
+
- Updated dependencies [e366f77]
|
|
21
|
+
- Updated dependencies [e26e15d]
|
|
22
|
+
- @knime/kds-styles@3.0.0
|
|
23
|
+
- @knime/kds-components@3.0.0
|
|
24
|
+
|
|
3
25
|
## 2.9.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -186,33 +186,33 @@ tr {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.kds-table-action-bar {
|
|
189
|
-
&[data-v-
|
|
189
|
+
&[data-v-6538127c] {
|
|
190
190
|
display: flex;
|
|
191
191
|
align-items: center;
|
|
192
192
|
justify-content: space-between;
|
|
193
193
|
min-height: var(--kds-dimension-component-height-2-5x);
|
|
194
194
|
padding-right: var(--kds-spacing-container-0-25x);
|
|
195
195
|
padding-left: var(--kds-spacing-container-0-5x);
|
|
196
|
-
border-
|
|
196
|
+
border-bottom: var(--kds-border-base-subtle);
|
|
197
197
|
}
|
|
198
|
-
&.temporary-view[data-v-
|
|
198
|
+
&.temporary-view[data-v-6538127c] {
|
|
199
199
|
background-color: var(--kds-color-background-static-info-muted);
|
|
200
200
|
}
|
|
201
201
|
& .left {
|
|
202
|
-
&[data-v-
|
|
202
|
+
&[data-v-6538127c] {
|
|
203
203
|
display: flex;
|
|
204
204
|
flex: 1 0 0;
|
|
205
205
|
gap: var(--kds-spacing-container-0-5x);
|
|
206
206
|
align-items: center;
|
|
207
207
|
padding: var(--kds-spacing-container-0-12x) 0;
|
|
208
208
|
}
|
|
209
|
-
& .dimension[data-v-
|
|
209
|
+
& .dimension[data-v-6538127c] {
|
|
210
210
|
font: var(--kds-font-base-title-small);
|
|
211
211
|
color: var(--kds-color-text-and-icon-muted);
|
|
212
212
|
white-space: pre;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
& .right[data-v-
|
|
215
|
+
& .right[data-v-6538127c] {
|
|
216
216
|
display: flex;
|
|
217
217
|
gap: var(--kds-spacing-container-0-25x);
|
|
218
218
|
align-items: center;
|
|
@@ -332,15 +332,14 @@ tr {
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
thead {
|
|
335
|
-
&[data-v-
|
|
335
|
+
&[data-v-5ec89e0d] {
|
|
336
336
|
/* TODO SLEEK-376 handle background color */
|
|
337
337
|
/* stylelint-disable-next-line no-unknown-custom-properties */
|
|
338
338
|
background-color: var(--knime-white);
|
|
339
|
-
border-top: var(--kds-border-base-subtle);
|
|
340
339
|
border-bottom: var(--kds-border-base-subtle);
|
|
341
340
|
}
|
|
342
341
|
& tr {
|
|
343
|
-
&[data-v-
|
|
342
|
+
&[data-v-5ec89e0d] {
|
|
344
343
|
display: flex;
|
|
345
344
|
height: 100%;
|
|
346
345
|
transition:
|
|
@@ -348,51 +347,51 @@ thead {
|
|
|
348
347
|
box-shadow 0.15s;
|
|
349
348
|
}
|
|
350
349
|
& th {
|
|
351
|
-
&[data-v-
|
|
350
|
+
&[data-v-5ec89e0d] {
|
|
352
351
|
min-height: var(--kds-dimension-component-height-2-5x);
|
|
353
352
|
max-height: var(--kds-dimension-component-height-5x);
|
|
354
353
|
text-align: left;
|
|
355
354
|
white-space: nowrap;
|
|
356
355
|
}
|
|
357
|
-
&.deletion-cell-spacer[data-v-
|
|
356
|
+
&.deletion-cell-spacer[data-v-5ec89e0d] {
|
|
358
357
|
width: var(--kds-dimension-component-width-2x);
|
|
359
358
|
}
|
|
360
359
|
&.select-cell {
|
|
361
|
-
&[data-v-
|
|
360
|
+
&[data-v-5ec89e0d] {
|
|
362
361
|
display: flex;
|
|
363
362
|
justify-content: center;
|
|
364
363
|
width: var(--kds-dimension-component-width-2x);
|
|
365
364
|
padding: var(--kds-spacing-container-0-75x);
|
|
366
365
|
}
|
|
367
|
-
& .select-checkbox[data-v-
|
|
366
|
+
& .select-checkbox[data-v-5ec89e0d] {
|
|
368
367
|
/* With this added padding the checkbox appears centered initially */
|
|
369
368
|
padding: var(--kds-spacing-container-0-10x);
|
|
370
369
|
}
|
|
371
370
|
}
|
|
372
|
-
&.new-column-head[data-v-
|
|
371
|
+
&.new-column-head[data-v-5ec89e0d] {
|
|
373
372
|
display: flex;
|
|
374
373
|
flex-direction: column;
|
|
375
374
|
justify-content: center;
|
|
376
375
|
padding: var(--kds-spacing-container-0-5x);
|
|
377
376
|
}
|
|
378
377
|
}
|
|
379
|
-
&[data-v-
|
|
378
|
+
&[data-v-5ec89e0d]:hover {
|
|
380
379
|
outline: none;
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
|
-
&.sub-menu-active tr[data-v-
|
|
382
|
+
&.sub-menu-active tr[data-v-5ec89e0d] {
|
|
384
383
|
padding-right: var(--kds-dimension-component-width-2x);
|
|
385
384
|
}
|
|
386
385
|
}
|
|
387
386
|
.header-selection-overlay {
|
|
388
|
-
&[data-v-
|
|
387
|
+
&[data-v-5ec89e0d] {
|
|
389
388
|
position: absolute;
|
|
390
389
|
top: 0;
|
|
391
390
|
height: 100%;
|
|
392
391
|
pointer-events: none;
|
|
393
392
|
border: var(--kds-border-action-selected-accent);
|
|
394
393
|
}
|
|
395
|
-
&.header-focused[data-v-
|
|
394
|
+
&.header-focused[data-v-5ec89e0d] {
|
|
396
395
|
border: var(--kds-border-action-focused);
|
|
397
396
|
}
|
|
398
397
|
}
|
package/dist/index.js
CHANGED
|
@@ -1121,14 +1121,32 @@ var dimension = {
|
|
|
1121
1121
|
*/
|
|
1122
1122
|
var spacing = {
|
|
1123
1123
|
container: {
|
|
1124
|
-
negative: {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1124
|
+
negative: {
|
|
1125
|
+
"0.25x": {
|
|
1126
|
+
value: -4,
|
|
1127
|
+
unit: "px",
|
|
1128
|
+
css: {
|
|
1129
|
+
value: "-4px",
|
|
1130
|
+
variable: "var(--kds-spacing-container-negative-0-25x)"
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"0.375x": {
|
|
1134
|
+
value: -6,
|
|
1135
|
+
unit: "px",
|
|
1136
|
+
css: {
|
|
1137
|
+
value: "-6px",
|
|
1138
|
+
variable: "var(--kds-spacing-container-negative-0-375x)"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"0.5x": {
|
|
1142
|
+
value: -8,
|
|
1143
|
+
unit: "px",
|
|
1144
|
+
css: {
|
|
1145
|
+
value: "-8px",
|
|
1146
|
+
variable: "var(--kds-spacing-container-negative-0-5x)"
|
|
1147
|
+
}
|
|
1130
1148
|
}
|
|
1131
|
-
}
|
|
1149
|
+
},
|
|
1132
1150
|
none: {
|
|
1133
1151
|
value: 0,
|
|
1134
1152
|
unit: "px",
|
|
@@ -1317,7 +1335,7 @@ var getMissingValueMessage = (cellData) => {
|
|
|
1317
1335
|
};
|
|
1318
1336
|
var getPropertiesFromColumns = (columnConfigs, key) => columnConfigs.map((colConfig) => colConfig[key]);
|
|
1319
1337
|
//#endregion
|
|
1320
|
-
//#region ../../node_modules/.pnpm/@knime+vue-headless-virtual-scroller@0.2.0_vue@3.5.
|
|
1338
|
+
//#region ../../node_modules/.pnpm/@knime+vue-headless-virtual-scroller@0.2.0_vue@3.5.40_typescript@6.0.3_/node_modules/@knime/vue-headless-virtual-scroller/dist/vue-headless-virtual-scrolling.js
|
|
1321
1339
|
var $ = Object.defineProperty;
|
|
1322
1340
|
var P = (t, e, r) => e in t ? $(t, e, {
|
|
1323
1341
|
enumerable: !0,
|
|
@@ -4212,10 +4230,7 @@ var VirtualRow_default = /* @__PURE__ */ defineComponent({
|
|
|
4212
4230
|
return __props.dataItem ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.dataItem.dots ? (openBlock(), createBlock(PlaceholderRow_default, {
|
|
4213
4231
|
key: 0,
|
|
4214
4232
|
height: __props.rowHeight
|
|
4215
|
-
}, null, 8, ["height"])) : renderSlot(_ctx.$slots, "default", {
|
|
4216
|
-
key: 1,
|
|
4217
|
-
row: __props.dataItem.data
|
|
4218
|
-
})], 64)) : (openBlock(), createBlock(EmptyRow_default, {
|
|
4233
|
+
}, null, 8, ["height"])) : renderSlot(_ctx.$slots, "default", { row: __props.dataItem.data }, void 0, void 0, 1)], 64)) : (openBlock(), createBlock(EmptyRow_default, {
|
|
4219
4234
|
key: 1,
|
|
4220
4235
|
height: __props.rowHeight,
|
|
4221
4236
|
compact: __props.compact,
|
|
@@ -5448,7 +5463,7 @@ var TableActionBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
5448
5463
|
])], 2)) : createCommentVNode("", true);
|
|
5449
5464
|
};
|
|
5450
5465
|
}
|
|
5451
|
-
}), [["__scopeId", "data-v-
|
|
5466
|
+
}), [["__scopeId", "data-v-6538127c"]]);
|
|
5452
5467
|
//#endregion
|
|
5453
5468
|
//#region src/components/composables/useHeaderMenuItems.ts
|
|
5454
5469
|
var useHeaderMenuItems = ({ enableSorting, sortDirection, sortTexts, additionalMenuItems, onColumnSort }) => {
|
|
@@ -5491,7 +5506,7 @@ var useHeaderMenuItems = ({ enableSorting, sortDirection, sortTexts, additionalM
|
|
|
5491
5506
|
return menuItems.length ? menuItems : void 0;
|
|
5492
5507
|
};
|
|
5493
5508
|
//#endregion
|
|
5494
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.
|
|
5509
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
5495
5510
|
/**
|
|
5496
5511
|
* Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
|
|
5497
5512
|
*
|
|
@@ -5507,7 +5522,7 @@ function tryOnScopeDispose(fn, failSilently) {
|
|
|
5507
5522
|
var isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
5508
5523
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
5509
5524
|
//#endregion
|
|
5510
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.
|
|
5525
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.40_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
5511
5526
|
var defaultWindow = isClient ? window : void 0;
|
|
5512
5527
|
isClient && window.document;
|
|
5513
5528
|
isClient && window.navigator;
|
|
@@ -6191,7 +6206,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6191
6206
|
style: normalizeStyle($options.headerSelectionOverlayStyle)
|
|
6192
6207
|
}, null, 6)) : createCommentVNode("", true)]);
|
|
6193
6208
|
}
|
|
6194
|
-
var Header_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Header_vue_vue_type_script_lang_default, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
6209
|
+
var Header_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Header_vue_vue_type_script_lang_default, [["render", _sfc_render$2], ["__scopeId", "data-v-5ec89e0d"]]);
|
|
6195
6210
|
//#endregion
|
|
6196
6211
|
//#region src/components/layout/NewRowButton.vue?vue&type=script&setup=true&lang.ts
|
|
6197
6212
|
var _hoisted_1$3 = { class: "sticky-container" };
|
|
@@ -6390,16 +6405,10 @@ var CellRenderer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
6390
6405
|
value: val,
|
|
6391
6406
|
cell: _ctx.$el
|
|
6392
6407
|
}))
|
|
6393
|
-
}, [createElementVNode("div", _hoisted_1$2, [__props.isEditing ? renderSlot(_ctx.$slots, "editable-cell", {
|
|
6394
|
-
key: 0,
|
|
6395
|
-
cellElement: _ctx.$el
|
|
6396
|
-
}, void 0, true) : __props.isMissing ? (openBlock(), createBlock(unref(KdsMissingValueIcon), {
|
|
6408
|
+
}, [createElementVNode("div", _hoisted_1$2, [__props.isEditing ? renderSlot(_ctx.$slots, "editable-cell", { cellElement: _ctx.$el }, void 0, true, 0) : __props.isMissing ? (openBlock(), createBlock(unref(KdsMissingValueIcon), {
|
|
6397
6409
|
key: 1,
|
|
6398
6410
|
size: "small"
|
|
6399
|
-
})) : __props.isSlotted ? renderSlot(_ctx.$slots, "default", {
|
|
6400
|
-
key: 2,
|
|
6401
|
-
width: __props.size - props.defaultLeftRightPadding * 2 - (showCellExpandButton.value && !__props.overlayExpandButton ? unref(EXPAND_BUTTON_WIDTH) : 0)
|
|
6402
|
-
}, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(__props.text), 1)), showCellExpandButton.value ? (openBlock(), createBlock(CellExpandButton_default, {
|
|
6411
|
+
})) : __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)), showCellExpandButton.value ? (openBlock(), createBlock(CellExpandButton_default, {
|
|
6403
6412
|
key: 4,
|
|
6404
6413
|
class: normalizeClass({ overlaid: __props.overlayExpandButton }),
|
|
6405
6414
|
toggled: isExpanded.value,
|