@knime/kds-table 0.6.1 → 0.6.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 +9 -0
- package/dist/index.css +48 -48
- package/dist/index.js +40 -38
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableUI.vue.d.ts +124 -60
- package/dist/src/components/TableUI.vue.d.ts.map +1 -1
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +292 -74
- package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
- package/dist/src/components/control/PageControls.vue.d.ts +40 -14
- package/dist/src/components/control/PageControls.vue.d.ts.map +1 -1
- package/dist/src/components/control/TableActionBar.vue.d.ts +8 -2
- package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts +8 -2
- package/dist/src/components/control/actionbar/FilterControl.vue.d.ts.map +1 -1
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts +8 -2
- package/dist/src/components/control/actionbar/SortControl.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Cell.vue.d.ts +2 -2
- package/dist/src/components/layout/Cell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellRenderer.vue.d.ts.map +1 -1
- package/dist/src/components/layout/CellRendererProps.d.ts +1 -1
- package/dist/src/components/layout/CellRendererProps.d.ts.map +1 -1
- package/dist/src/components/layout/Header.vue.d.ts +20 -12
- package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
- package/dist/src/components/layout/HeaderCell.vue.d.ts +8 -8
- package/dist/src/components/layout/HeaderCell.vue.d.ts.map +1 -1
- package/dist/src/components/layout/Row.vue.d.ts +32 -16
- package/dist/src/components/layout/Row.vue.d.ts.map +1 -1
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 0.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bc85a76: Migrate native `title` attribute usages to the accessible `v-kds-tooltip` directive across table components.
|
|
8
|
+
- Updated dependencies [bc85a76]
|
|
9
|
+
- @knime/kds-components@1.2.0
|
|
10
|
+
- @knime/kds-styles@1.2.0
|
|
11
|
+
|
|
3
12
|
## 0.6.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -10,26 +10,26 @@ tbody[data-v-70f2c330] {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
tr {
|
|
13
|
-
&[data-v-
|
|
13
|
+
&[data-v-f722e2bf] {
|
|
14
14
|
display: flex;
|
|
15
15
|
border-bottom: var(--kds-border-base-subtle);
|
|
16
16
|
}
|
|
17
17
|
& td {
|
|
18
|
-
&.deletion-cell-spacer[data-v-
|
|
18
|
+
&.deletion-cell-spacer[data-v-f722e2bf] {
|
|
19
19
|
width: var(--kds-dimension-component-width-2x);
|
|
20
20
|
min-width: var(--kds-dimension-component-width-2x);
|
|
21
21
|
}
|
|
22
|
-
& .skeleton[data-v-
|
|
22
|
+
& .skeleton[data-v-f722e2bf] {
|
|
23
23
|
padding: var(--kds-spacing-container-0-12x) 0;
|
|
24
24
|
}
|
|
25
25
|
&.select-cell {
|
|
26
|
-
&[data-v-
|
|
26
|
+
&[data-v-f722e2bf] {
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
29
29
|
width: var(--kds-dimension-component-width-2x);
|
|
30
30
|
min-width: var(--kds-dimension-component-width-2x);
|
|
31
31
|
}
|
|
32
|
-
& .select-checkbox[data-v-
|
|
32
|
+
& .select-checkbox[data-v-f722e2bf] {
|
|
33
33
|
/* With this added padding the checkbox appears centered initially */
|
|
34
34
|
padding: var(--kds-spacing-container-0-10x);
|
|
35
35
|
}
|
|
@@ -243,7 +243,7 @@ tr {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
.column-header {
|
|
246
|
-
&[data-v-
|
|
246
|
+
&[data-v-6fb1af81] {
|
|
247
247
|
/* Need to set position relative here to position the resize handle absolutely within the header cell */
|
|
248
248
|
position: relative;
|
|
249
249
|
display: flex;
|
|
@@ -257,10 +257,10 @@ tr {
|
|
|
257
257
|
text-align: left;
|
|
258
258
|
white-space: nowrap;
|
|
259
259
|
}
|
|
260
|
-
&.header-focused[data-v-
|
|
260
|
+
&.header-focused[data-v-6fb1af81] {
|
|
261
261
|
background-color: var(--kds-color-focus-background);
|
|
262
262
|
}
|
|
263
|
-
&.colored-header[data-v-
|
|
263
|
+
&.colored-header[data-v-6fb1af81] {
|
|
264
264
|
/* stylelint-disable csstools/value-no-unknown-custom-properties -- runtime variable set via inline :style */
|
|
265
265
|
background-image: linear-gradient(
|
|
266
266
|
90deg,
|
|
@@ -272,48 +272,48 @@ tr {
|
|
|
272
272
|
background-size: var(--kds-spacing-container-0-25x);
|
|
273
273
|
}
|
|
274
274
|
& .column-header-content {
|
|
275
|
-
&[data-v-
|
|
275
|
+
&[data-v-6fb1af81] {
|
|
276
276
|
display: flex;
|
|
277
277
|
flex-direction: column;
|
|
278
278
|
justify-content: center;
|
|
279
279
|
width: 100%;
|
|
280
280
|
}
|
|
281
|
-
&[data-v-
|
|
281
|
+
&[data-v-6fb1af81]:focus {
|
|
282
282
|
outline: none;
|
|
283
283
|
}
|
|
284
|
-
&.with-button-in-header[data-v-
|
|
284
|
+
&.with-button-in-header[data-v-6fb1af81] {
|
|
285
285
|
width: calc(
|
|
286
286
|
100% - var(--kds-dimension-component-width-1-5x)
|
|
287
287
|
); /* due to .sub-menu-select-header / .delete-column-button: width */
|
|
288
288
|
}
|
|
289
289
|
& .main-header {
|
|
290
|
-
&[data-v-
|
|
290
|
+
&[data-v-6fb1af81] {
|
|
291
291
|
display: flex;
|
|
292
292
|
}
|
|
293
|
-
& .header-text-container[data-v-
|
|
293
|
+
& .header-text-container[data-v-6fb1af81] {
|
|
294
294
|
max-width: 100%;
|
|
295
295
|
overflow: hidden;
|
|
296
296
|
text-overflow: ellipsis;
|
|
297
297
|
font: var(--kds-font-base-title-medium-strong);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
& .sub-header-text-container[data-v-
|
|
300
|
+
& .sub-header-text-container[data-v-6fb1af81] {
|
|
301
301
|
overflow: hidden;
|
|
302
302
|
text-overflow: ellipsis;
|
|
303
303
|
font: var(--kds-font-base-subtext-small);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
& .menu-button-hidden[data-v-
|
|
306
|
+
& .menu-button-hidden[data-v-6fb1af81] {
|
|
307
307
|
pointer-events: none;
|
|
308
308
|
opacity: 0;
|
|
309
309
|
}
|
|
310
|
-
& .delete-column-button[data-v-
|
|
310
|
+
& .delete-column-button[data-v-6fb1af81] {
|
|
311
311
|
display: flex;
|
|
312
312
|
align-items: center;
|
|
313
313
|
width: var(--kds-dimension-component-width-2x);
|
|
314
314
|
}
|
|
315
315
|
& .resize-handle-area {
|
|
316
|
-
&[data-v-
|
|
316
|
+
&[data-v-6fb1af81] {
|
|
317
317
|
position: absolute;
|
|
318
318
|
|
|
319
319
|
/* resize handle should range into top border */
|
|
@@ -339,28 +339,28 @@ tr {
|
|
|
339
339
|
cursor: col-resize;
|
|
340
340
|
opacity: 0;
|
|
341
341
|
}
|
|
342
|
-
& .resize-handle[data-v-
|
|
342
|
+
& .resize-handle[data-v-6fb1af81] {
|
|
343
343
|
border-right: var(--kds-border-resize-handle-hover);
|
|
344
344
|
border-radius: var(--kds-border-radius-container-0-25x);
|
|
345
345
|
}
|
|
346
|
-
&.hover[data-v-
|
|
346
|
+
&.hover[data-v-6fb1af81] {
|
|
347
347
|
opacity: 1;
|
|
348
348
|
}
|
|
349
|
-
&.drag[data-v-
|
|
349
|
+
&.drag[data-v-6fb1af81] {
|
|
350
350
|
opacity: 1;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
thead {
|
|
356
|
-
&[data-v-
|
|
356
|
+
&[data-v-302dfb0e] {
|
|
357
357
|
/* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
|
|
358
358
|
background-color: var(--knime-white);
|
|
359
359
|
border-top: var(--kds-border-base-subtle);
|
|
360
360
|
border-bottom: var(--kds-border-base-subtle);
|
|
361
361
|
}
|
|
362
362
|
& tr {
|
|
363
|
-
&[data-v-
|
|
363
|
+
&[data-v-302dfb0e] {
|
|
364
364
|
display: flex;
|
|
365
365
|
height: 100%;
|
|
366
366
|
transition:
|
|
@@ -368,51 +368,51 @@ thead {
|
|
|
368
368
|
box-shadow 0.15s;
|
|
369
369
|
}
|
|
370
370
|
& th {
|
|
371
|
-
&[data-v-
|
|
371
|
+
&[data-v-302dfb0e] {
|
|
372
372
|
min-height: var(--kds-dimension-component-height-2-5x);
|
|
373
373
|
max-height: var(--kds-dimension-component-height-5x);
|
|
374
374
|
text-align: left;
|
|
375
375
|
white-space: nowrap;
|
|
376
376
|
}
|
|
377
|
-
&.deletion-cell-spacer[data-v-
|
|
377
|
+
&.deletion-cell-spacer[data-v-302dfb0e] {
|
|
378
378
|
width: var(--kds-dimension-component-width-2x);
|
|
379
379
|
}
|
|
380
380
|
&.select-cell {
|
|
381
|
-
&[data-v-
|
|
381
|
+
&[data-v-302dfb0e] {
|
|
382
382
|
display: flex;
|
|
383
383
|
justify-content: center;
|
|
384
384
|
width: var(--kds-dimension-component-width-2x);
|
|
385
385
|
padding: var(--kds-spacing-container-0-75x);
|
|
386
386
|
}
|
|
387
|
-
& .select-checkbox[data-v-
|
|
387
|
+
& .select-checkbox[data-v-302dfb0e] {
|
|
388
388
|
/* With this added padding the checkbox appears centered initially */
|
|
389
389
|
padding: var(--kds-spacing-container-0-10x);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
&.new-column-head[data-v-
|
|
392
|
+
&.new-column-head[data-v-302dfb0e] {
|
|
393
393
|
display: flex;
|
|
394
394
|
flex-direction: column;
|
|
395
395
|
justify-content: center;
|
|
396
396
|
padding: var(--kds-spacing-container-0-5x);
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
&[data-v-
|
|
399
|
+
&[data-v-302dfb0e]:hover {
|
|
400
400
|
outline: none;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
&.sub-menu-active tr[data-v-
|
|
403
|
+
&.sub-menu-active tr[data-v-302dfb0e] {
|
|
404
404
|
padding-right: var(--kds-dimension-component-width-2x);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
.header-selection-overlay {
|
|
408
|
-
&[data-v-
|
|
408
|
+
&[data-v-302dfb0e] {
|
|
409
409
|
position: absolute;
|
|
410
410
|
top: 0;
|
|
411
411
|
height: 100%;
|
|
412
412
|
pointer-events: none;
|
|
413
413
|
border: var(--kds-border-action-selected-accent);
|
|
414
414
|
}
|
|
415
|
-
&.header-focused[data-v-
|
|
415
|
+
&.header-focused[data-v-302dfb0e] {
|
|
416
416
|
border: var(--kds-border-action-focused);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
@@ -465,7 +465,7 @@ thead {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.data-cell {
|
|
468
|
-
&[data-v-
|
|
468
|
+
&[data-v-2b17463f] {
|
|
469
469
|
display: flex;
|
|
470
470
|
font: var(--kds-font-base-interactive-small);
|
|
471
471
|
color: var(--kds-color-text-and-icon-neutral);
|
|
@@ -473,10 +473,10 @@ thead {
|
|
|
473
473
|
user-select: none;
|
|
474
474
|
background-clip: border-box;
|
|
475
475
|
}
|
|
476
|
-
&.in-cell-selection[data-v-
|
|
476
|
+
&.in-cell-selection[data-v-2b17463f] {
|
|
477
477
|
background-color: var(--kds-color-focus-background);
|
|
478
478
|
}
|
|
479
|
-
&.colored-cell[data-v-
|
|
479
|
+
&.colored-cell[data-v-2b17463f] {
|
|
480
480
|
/* stylelint-disable csstools/value-no-unknown-custom-properties -- runtime variable set via inline :style */
|
|
481
481
|
background-image: linear-gradient(
|
|
482
482
|
90deg,
|
|
@@ -487,14 +487,14 @@ thead {
|
|
|
487
487
|
background-repeat: no-repeat;
|
|
488
488
|
background-size: var(--kds-spacing-container-0-25x);
|
|
489
489
|
}
|
|
490
|
-
& .cell-content[data-v-
|
|
490
|
+
& .cell-content[data-v-2b17463f] {
|
|
491
491
|
display: flex;
|
|
492
492
|
gap: var(--kds-spacing-container-0-25x);
|
|
493
493
|
align-self: flex-start;
|
|
494
494
|
justify-content: space-between;
|
|
495
495
|
width: 100%;
|
|
496
496
|
}
|
|
497
|
-
& .cell-content .cell-text[data-v-
|
|
497
|
+
& .cell-content .cell-text[data-v-2b17463f] {
|
|
498
498
|
flex: 0 1 auto;
|
|
499
499
|
min-width: 0;
|
|
500
500
|
overflow: hidden;
|
|
@@ -503,33 +503,33 @@ thead {
|
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
-
tr[data-v-
|
|
506
|
+
tr[data-v-52ed7e13] {
|
|
507
507
|
display: flex;
|
|
508
508
|
}
|
|
509
509
|
tr.row {
|
|
510
|
-
&[data-v-
|
|
510
|
+
&[data-v-52ed7e13] {
|
|
511
511
|
border-bottom: var(--kds-border-base-subtle);
|
|
512
512
|
}
|
|
513
513
|
& td {
|
|
514
|
-
&[data-v-
|
|
514
|
+
&[data-v-52ed7e13] {
|
|
515
515
|
padding: 0;
|
|
516
516
|
overflow: hidden;
|
|
517
517
|
text-overflow: ellipsis;
|
|
518
518
|
}
|
|
519
519
|
&.select-cell {
|
|
520
|
-
&[data-v-
|
|
520
|
+
&[data-v-52ed7e13] {
|
|
521
521
|
display: flex;
|
|
522
522
|
justify-content: center;
|
|
523
523
|
width: var(--kds-dimension-component-width-2x);
|
|
524
524
|
min-width: var(--kds-dimension-component-width-2x);
|
|
525
525
|
}
|
|
526
|
-
& .select-checkbox[data-v-
|
|
526
|
+
& .select-checkbox[data-v-52ed7e13] {
|
|
527
527
|
/* With this added padding the checkbox appears centered initially */
|
|
528
528
|
padding: var(--kds-spacing-container-0-10x);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
&.deletion-cell {
|
|
532
|
-
&[data-v-
|
|
532
|
+
&[data-v-52ed7e13] {
|
|
533
533
|
display: flex;
|
|
534
534
|
align-items: center;
|
|
535
535
|
justify-content: center;
|
|
@@ -537,11 +537,11 @@ tr.row {
|
|
|
537
537
|
min-width: var(--kds-dimension-component-width-2x);
|
|
538
538
|
opacity: 0;
|
|
539
539
|
}
|
|
540
|
-
&[data-v-
|
|
540
|
+
&[data-v-52ed7e13]:focus-within {
|
|
541
541
|
opacity: 1;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
&.action[data-v-
|
|
544
|
+
&.action[data-v-52ed7e13] {
|
|
545
545
|
display: flex;
|
|
546
546
|
align-items: center;
|
|
547
547
|
justify-content: center;
|
|
@@ -550,21 +550,21 @@ tr.row {
|
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
&:hover {
|
|
553
|
-
&[data-v-
|
|
553
|
+
&[data-v-52ed7e13] {
|
|
554
554
|
outline: none;
|
|
555
555
|
background-color: var(--kds-color-background-neutral-hover);
|
|
556
556
|
|
|
557
557
|
/* stylelint-disable-next-line no-descending-specificity -- hover needs lower specificity but must come after base rule */
|
|
558
558
|
}
|
|
559
|
-
& .deletion-cell[data-v-
|
|
559
|
+
& .deletion-cell[data-v-52ed7e13] {
|
|
560
560
|
opacity: 1;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
& a[data-v-
|
|
563
|
+
& a[data-v-52ed7e13] {
|
|
564
564
|
outline: none;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
.row-drag-handle[data-v-
|
|
567
|
+
.row-drag-handle[data-v-52ed7e13] {
|
|
568
568
|
position: relative;
|
|
569
569
|
bottom: var(--kds-spacing-container-0-37x);
|
|
570
570
|
height: var(--kds-spacing-container-0-37x);
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, unref, watch, ref, isRef, watchEffect, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, inject, provide, defineComponent, openBlock, createElementBlock, withModifiers, renderSlot, toRef, normalizeStyle, normalizeClass, createCommentVNode, createVNode, Fragment, renderList, createElementVNode, createBlock, nextTick, withCtx, onBeforeUnmount, reactive, onUnmounted, toDisplayString, resolveComponent, useTemplateRef, createTextVNode, shallowRef, toValue, shallowReadonly, withKeys, mergeProps, useSlots, createSlots, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
-
import { KdsCheckbox, KdsLoadingSkeleton, KdsButton, KdsMenuButton, KdsDropdown, KdsTextInput, KdsMultiSelectDropdown, KdsToggleButton, KdsPopover, KdsIcon, KdsSearchInput, KdsMissingValueIcon } from '@knime/kds-components';
|
|
1
|
+
import { computed, unref, watch, ref, isRef, watchEffect, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, inject, provide, defineComponent, openBlock, createElementBlock, withModifiers, renderSlot, toRef, normalizeStyle, normalizeClass, createCommentVNode, createVNode, Fragment, renderList, createElementVNode, createBlock, nextTick, withCtx, onBeforeUnmount, reactive, onUnmounted, toDisplayString, resolveComponent, useTemplateRef, createTextVNode, shallowRef, toValue, shallowReadonly, withKeys, withDirectives, mergeProps, useSlots, createSlots, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
+
import { KdsCheckbox, KdsLoadingSkeleton, KdsButton, KdsMenuButton, KdsDropdown, KdsTextInput, KdsMultiSelectDropdown, KdsToggleButton, KdsPopover, KdsIcon, KdsSearchInput, vKdsTooltip, KdsMissingValueIcon } from '@knime/kds-components';
|
|
3
3
|
|
|
4
4
|
import './index.css';const defaultPageSize = 10;
|
|
5
5
|
const filterComponents = {
|
|
@@ -666,7 +666,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
666
666
|
})
|
|
667
667
|
}, [
|
|
668
668
|
createVNode(unref(KdsCheckbox), {
|
|
669
|
-
|
|
669
|
+
tooltip: "Selection",
|
|
670
670
|
disabled: "",
|
|
671
671
|
class: "select-checkbox"
|
|
672
672
|
})
|
|
@@ -690,7 +690,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
690
690
|
}
|
|
691
691
|
});
|
|
692
692
|
|
|
693
|
-
const EmptyRow = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
693
|
+
const EmptyRow = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-f722e2bf"]]);
|
|
694
694
|
|
|
695
695
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
696
696
|
__name: "PlaceholderRow",
|
|
@@ -1581,7 +1581,7 @@ const createEditingCellKeydownHandler = ({
|
|
|
1581
1581
|
|
|
1582
1582
|
const _hoisted_1$c = { class: "page-navigation" };
|
|
1583
1583
|
const _hoisted_2$8 = { class: "navigation-buttons" };
|
|
1584
|
-
const _hoisted_3$
|
|
1584
|
+
const _hoisted_3$4 = { class: "page-count" };
|
|
1585
1585
|
const _hoisted_4$2 = { class: "navigation-buttons" };
|
|
1586
1586
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1587
1587
|
__name: "PageNavigation",
|
|
@@ -1618,7 +1618,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1618
1618
|
onClick: _cache[1] || (_cache[1] = ($event) => onPageChange(__props.currentPage - 1))
|
|
1619
1619
|
}, null, 8, ["disabled"])
|
|
1620
1620
|
]),
|
|
1621
|
-
createElementVNode("span", _hoisted_3$
|
|
1621
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString(__props.currentPage) + " of " + toDisplayString(__props.totalPages), 1),
|
|
1622
1622
|
createElementVNode("div", _hoisted_4$2, [
|
|
1623
1623
|
createVNode(unref(KdsButton), {
|
|
1624
1624
|
variant: "transparent",
|
|
@@ -1652,7 +1652,7 @@ const _hoisted_2$7 = {
|
|
|
1652
1652
|
key: 1,
|
|
1653
1653
|
class: "row-range-container"
|
|
1654
1654
|
};
|
|
1655
|
-
const _hoisted_3$
|
|
1655
|
+
const _hoisted_3$3 = { class: "subtle" };
|
|
1656
1656
|
const _hoisted_4$1 = {
|
|
1657
1657
|
key: 0,
|
|
1658
1658
|
class: "muted"
|
|
@@ -1681,7 +1681,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1681
1681
|
);
|
|
1682
1682
|
return (_ctx, _cache) => {
|
|
1683
1683
|
return __props.showTableSize && __props.currentItems === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$b, "No data")) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
1684
|
-
createElementVNode("span", _hoisted_3$
|
|
1684
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(__props.rowLabel) + ":", 1),
|
|
1685
1685
|
hasMultiplePages.value && __props.currentItems ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(pageRangeStart.value) + "–" + toDisplayString(pageRangeEnd.value), 1)) : createCommentVNode("", true),
|
|
1686
1686
|
createElementVNode("span", _hoisted_5, toDisplayString(rowCountText.value), 1)
|
|
1687
1687
|
]));
|
|
@@ -2050,14 +2050,14 @@ const _sfc_main$d = { };
|
|
|
2050
2050
|
|
|
2051
2051
|
const _hoisted_1$8 = { class: "popover" };
|
|
2052
2052
|
const _hoisted_2$4 = { class: "header" };
|
|
2053
|
-
const _hoisted_3$
|
|
2053
|
+
const _hoisted_3$2 = { class: "body" };
|
|
2054
2054
|
|
|
2055
2055
|
function _sfc_render$3(_ctx, _cache) {
|
|
2056
2056
|
return (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
2057
2057
|
createElementVNode("span", _hoisted_2$4, [
|
|
2058
2058
|
renderSlot(_ctx.$slots, "header", {}, undefined, true)
|
|
2059
2059
|
]),
|
|
2060
|
-
createElementVNode("div", _hoisted_3$
|
|
2060
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
2061
2061
|
renderSlot(_ctx.$slots, "body", {}, undefined, true)
|
|
2062
2062
|
])
|
|
2063
2063
|
]))
|
|
@@ -2313,7 +2313,7 @@ const _hoisted_2$3 = {
|
|
|
2313
2313
|
key: 0,
|
|
2314
2314
|
class: "dimension"
|
|
2315
2315
|
};
|
|
2316
|
-
const _hoisted_3$
|
|
2316
|
+
const _hoisted_3$1 = { class: "right" };
|
|
2317
2317
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2318
2318
|
__name: "TableActionBar",
|
|
2319
2319
|
props: {
|
|
@@ -2392,7 +2392,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2392
2392
|
onColumnFilter: _cache[1] || (_cache[1] = (colInd, value) => emit("columnFilter", colInd, value))
|
|
2393
2393
|
}, null, 8, ["columns", "col-filter-values"])) : createCommentVNode("", true)
|
|
2394
2394
|
]),
|
|
2395
|
-
createElementVNode("div", _hoisted_3$
|
|
2395
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
2396
2396
|
__props.actionConfig.enableSearch ? (openBlock(), createBlock(unref(KdsSearchInput), {
|
|
2397
2397
|
key: 0,
|
|
2398
2398
|
ariaLabel: "Search table",
|
|
@@ -2647,8 +2647,8 @@ const useAutoScrollOnRightEdge = ({
|
|
|
2647
2647
|
};
|
|
2648
2648
|
|
|
2649
2649
|
const _hoisted_1$5 = ["tabindex"];
|
|
2650
|
-
const _hoisted_2$2 =
|
|
2651
|
-
const _hoisted_3
|
|
2650
|
+
const _hoisted_2$2 = { class: "header-text-container" };
|
|
2651
|
+
const _hoisted_3 = {
|
|
2652
2652
|
key: 0,
|
|
2653
2653
|
class: "sub-header-text-container"
|
|
2654
2654
|
};
|
|
@@ -2850,17 +2850,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2850
2850
|
ref: mainHeader,
|
|
2851
2851
|
class: "main-header"
|
|
2852
2852
|
}, [
|
|
2853
|
-
|
|
2854
|
-
class: "header-text-container",
|
|
2855
|
-
title: __props.column.header
|
|
2856
|
-
}, [
|
|
2853
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
2857
2854
|
createElementVNode("span", {
|
|
2858
2855
|
ref_key: "headerText",
|
|
2859
2856
|
ref: headerText
|
|
2860
2857
|
}, toDisplayString(__props.column.header), 513)
|
|
2861
|
-
],
|
|
2858
|
+
])), [
|
|
2859
|
+
[unref(vKdsTooltip), __props.column.header, "truncated"]
|
|
2860
|
+
])
|
|
2862
2861
|
], 512),
|
|
2863
|
-
__props.column.subHeader ? (openBlock(), createElementBlock("div", _hoisted_3
|
|
2862
|
+
__props.column.subHeader ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
2864
2863
|
renderSlot(_ctx.$slots, "subHeader", {
|
|
2865
2864
|
subHeader: __props.column.subHeader
|
|
2866
2865
|
}, () => [
|
|
@@ -2921,7 +2920,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2921
2920
|
}
|
|
2922
2921
|
});
|
|
2923
2922
|
|
|
2924
|
-
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
2923
|
+
const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6fb1af81"]]);
|
|
2925
2924
|
|
|
2926
2925
|
const _sfc_main$8 = {
|
|
2927
2926
|
components: {
|
|
@@ -3188,7 +3187,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3188
3187
|
createVNode(_component_KdsCheckbox, {
|
|
3189
3188
|
ref: "selection-checkbox",
|
|
3190
3189
|
class: "select-checkbox",
|
|
3191
|
-
|
|
3190
|
+
tooltip: "Select all rows",
|
|
3192
3191
|
"model-value": $props.isSelected,
|
|
3193
3192
|
disabled: $props.tableConfig.disableSelection,
|
|
3194
3193
|
"onUpdate:modelValue": $options.onSelect
|
|
@@ -3260,7 +3259,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3260
3259
|
}, null, 6)) : createCommentVNode("", true)
|
|
3261
3260
|
]);
|
|
3262
3261
|
}
|
|
3263
|
-
const Header = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
3262
|
+
const Header = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2], ["__scopeId", "data-v-302dfb0e"]]);
|
|
3264
3263
|
|
|
3265
3264
|
const _hoisted_1$3 = { class: "sticky-container" };
|
|
3266
3265
|
const buttonRef = "button";
|
|
@@ -3319,12 +3318,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3319
3318
|
|
|
3320
3319
|
const CellExpandButton = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f204ddf3"]]);
|
|
3321
3320
|
|
|
3322
|
-
const _hoisted_1$2 =
|
|
3323
|
-
const _hoisted_2$1 = {
|
|
3321
|
+
const _hoisted_1$2 = {
|
|
3324
3322
|
ref: "cell-content",
|
|
3325
3323
|
class: "cell-content"
|
|
3326
3324
|
};
|
|
3327
|
-
const
|
|
3325
|
+
const _hoisted_2$1 = {
|
|
3328
3326
|
key: 3,
|
|
3329
3327
|
class: "cell-text"
|
|
3330
3328
|
};
|
|
@@ -3339,7 +3337,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3339
3337
|
noPaddingTopBottom: { type: Boolean },
|
|
3340
3338
|
noPaddingLeftRight: { type: Boolean },
|
|
3341
3339
|
text: {},
|
|
3342
|
-
|
|
3340
|
+
tooltip: {},
|
|
3343
3341
|
color: {},
|
|
3344
3342
|
selectOnMove: { type: Boolean },
|
|
3345
3343
|
colSizeCssVar: {},
|
|
@@ -3460,7 +3458,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3460
3458
|
watch(() => props.isToBeExpanded, changeExpandedCellViewIfNecessary);
|
|
3461
3459
|
onMounted(changeExpandedCellViewIfNecessary);
|
|
3462
3460
|
return (_ctx, _cache) => {
|
|
3463
|
-
return openBlock(), createElementBlock("td", {
|
|
3461
|
+
return withDirectives((openBlock(), createElementBlock("td", {
|
|
3464
3462
|
class: normalizeClass([
|
|
3465
3463
|
"data-cell",
|
|
3466
3464
|
{
|
|
@@ -3477,7 +3475,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3477
3475
|
...paddingTopBottom.value,
|
|
3478
3476
|
...dataCellColorStyle.value
|
|
3479
3477
|
}),
|
|
3480
|
-
title: __props.title === null || __props.isSlotted && !__props.isMissing ? void 0 : __props.title,
|
|
3481
3478
|
onDblclick: _cache[0] || (_cache[0] = (event) => __props.enableExpand && expandAndSelect(event)),
|
|
3482
3479
|
onPointerenter: _cache[1] || (_cache[1] = ($event) => isHovered.value = true),
|
|
3483
3480
|
onPointerleave: _cache[2] || (_cache[2] = ($event) => isHovered.value = false),
|
|
@@ -3486,7 +3483,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3486
3483
|
onPointerdown: onPointerDown,
|
|
3487
3484
|
onInput: _cache[4] || (_cache[4] = (val) => emit("input", { value: val, cell: _ctx.$el }))
|
|
3488
3485
|
}, [
|
|
3489
|
-
createElementVNode("div",
|
|
3486
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
3490
3487
|
__props.isEditing ? renderSlot(_ctx.$slots, "editable-cell", {
|
|
3491
3488
|
key: 0,
|
|
3492
3489
|
cellElement: _ctx.$el
|
|
@@ -3496,7 +3493,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3496
3493
|
})) : __props.isSlotted ? renderSlot(_ctx.$slots, "default", {
|
|
3497
3494
|
key: 2,
|
|
3498
3495
|
width: __props.size - props.defaultLeftRightPadding * 2 - (showCellExpandButton.value ? unref(EXPAND_BUTTON_WIDTH) : 0)
|
|
3499
|
-
}, void 0, true) : (openBlock(), createElementBlock("span",
|
|
3496
|
+
}, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(__props.text), 1)),
|
|
3500
3497
|
showCellExpandButton.value ? (openBlock(), createBlock(CellExpandButton, {
|
|
3501
3498
|
key: 4,
|
|
3502
3499
|
toggled: isExpanded.value,
|
|
@@ -3504,12 +3501,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3504
3501
|
onClick: onExpandButtonClick
|
|
3505
3502
|
}, null, 8, ["toggled"])) : createCommentVNode("", true)
|
|
3506
3503
|
], 512)
|
|
3507
|
-
],
|
|
3504
|
+
], 38)), [
|
|
3505
|
+
[
|
|
3506
|
+
unref(vKdsTooltip),
|
|
3507
|
+
props.tooltip === null || __props.isSlotted && !__props.isMissing ? void 0 : props.tooltip
|
|
3508
|
+
]
|
|
3509
|
+
]);
|
|
3508
3510
|
};
|
|
3509
3511
|
}
|
|
3510
3512
|
});
|
|
3511
3513
|
|
|
3512
|
-
const CellRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
3514
|
+
const CellRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2b17463f"]]);
|
|
3513
3515
|
|
|
3514
3516
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3515
3517
|
__name: "Cell",
|
|
@@ -3536,7 +3538,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3536
3538
|
const unpackedValue = computed(
|
|
3537
3539
|
() => unpackObjectRepresentation(props.cellData)
|
|
3538
3540
|
);
|
|
3539
|
-
const
|
|
3541
|
+
const tooltip = computed(() => {
|
|
3540
3542
|
const { cellData } = props;
|
|
3541
3543
|
if (isMissingValue(cellData)) {
|
|
3542
3544
|
return getMissingValueMessage(cellData);
|
|
@@ -3561,7 +3563,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3561
3563
|
"is-missing": isMissing.value,
|
|
3562
3564
|
"is-slotted": __props.column.hasSlotContent ?? false,
|
|
3563
3565
|
text: unpackedValue.value,
|
|
3564
|
-
|
|
3566
|
+
tooltip: tooltip.value,
|
|
3565
3567
|
color: color.value,
|
|
3566
3568
|
"select-on-move": __props.selectOnMove,
|
|
3567
3569
|
"default-top-bottom-padding": __props.defaultTopBottomPadding,
|
|
@@ -3588,7 +3590,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3588
3590
|
])
|
|
3589
3591
|
};
|
|
3590
3592
|
})
|
|
3591
|
-
]), 1032, ["is-missing", "is-slotted", "text", "
|
|
3593
|
+
]), 1032, ["is-missing", "is-slotted", "text", "tooltip", "color", "select-on-move", "default-top-bottom-padding", "default-left-right-padding", "no-padding-left-right", "no-padding-top-bottom", "col-size-css-var", "size", "enable-expand", "is-selected", "is-in-cell-selection", "is-to-be-expanded", "is-editing"]);
|
|
3592
3594
|
};
|
|
3593
3595
|
}
|
|
3594
3596
|
});
|
|
@@ -3814,7 +3816,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3814
3816
|
createVNode(unref(KdsCheckbox), {
|
|
3815
3817
|
ref_key: "selectionCheckbox",
|
|
3816
3818
|
ref: selectionCheckbox,
|
|
3817
|
-
|
|
3819
|
+
tooltip: "Select row",
|
|
3818
3820
|
class: "select-checkbox",
|
|
3819
3821
|
"model-value": __props.isSelected,
|
|
3820
3822
|
disabled: __props.tableConfig.disableSelection,
|
|
@@ -3903,7 +3905,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3903
3905
|
}
|
|
3904
3906
|
});
|
|
3905
3907
|
|
|
3906
|
-
const Row = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
3908
|
+
const Row = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-52ed7e13"]]);
|
|
3907
3909
|
|
|
3908
3910
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
3909
3911
|
__name: "CellSelectionOverlay",
|