@knime/kds-components 14.1.0 → 14.2.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 +167 -18
- package/dist/index.js +826 -284
- package/dist/index.js.map +1 -1
- package/dist/src/components/forms/Slider/KdsSlider.vue.d.ts +104 -0
- package/dist/src/components/forms/Slider/KdsSlider.vue.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/enums.d.ts +10 -0
- package/dist/src/components/forms/Slider/enums.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/index.d.ts +4 -0
- package/dist/src/components/forms/Slider/index.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/sliderUtils.d.ts +59 -0
- package/dist/src/components/forms/Slider/sliderUtils.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/types.d.ts +70 -0
- package/dist/src/components/forms/Slider/types.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/useSliderInteraction.d.ts +20 -0
- package/dist/src/components/forms/Slider/useSliderInteraction.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/useSliderScale.d.ts +36 -0
- package/dist/src/components/forms/Slider/useSliderScale.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/useSliderTicks.d.ts +21 -0
- package/dist/src/components/forms/Slider/useSliderTicks.d.ts.map +1 -0
- package/dist/src/components/forms/Slider/useSliderTooltip.d.ts +16 -0
- package/dist/src/components/forms/Slider/useSliderTooltip.d.ts.map +1 -0
- package/dist/src/components/forms/index.d.ts +2 -0
- package/dist/src/components/forms/index.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/NumberInput/numberParser.d.ts.map +1 -1
- package/dist/src/components/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
- package/dist/src/util/countFractionDigits.d.ts +6 -0
- package/dist/src/util/countFractionDigits.d.ts.map +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @knime/kds-components
|
|
2
2
|
|
|
3
|
+
## 14.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 19a480b: - `KdsSlider`: add a slider for selecting a single numeric value between a
|
|
8
|
+
minimum and a maximum, on a continuous or a stepped (`step`) scale.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 53de24c: `KdsDropdown` and `KdsSelectButton`: render options with the `large` list item variant when any option has a `subText`.
|
|
13
|
+
- Updated dependencies [5c14e1a]
|
|
14
|
+
- @knime/utils@4.0.0
|
|
15
|
+
- @knime/kds-styles@14.2.0
|
|
16
|
+
|
|
17
|
+
## 14.1.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- fd99132: `KdsFileExplorer`: keep keys typed in the rename modal from reaching `keydown` listeners on the explorer, so a Backspace or Delete shortcut bound there no longer fires while renaming.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @knime/kds-styles@14.1.1
|
|
24
|
+
|
|
3
25
|
## 14.1.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/index.css
CHANGED
|
@@ -1913,7 +1913,7 @@ to {
|
|
|
1913
1913
|
border-top: var(--kds-border-base-subtle);
|
|
1914
1914
|
}
|
|
1915
1915
|
|
|
1916
|
-
.kds-dropdown-container[data-v-
|
|
1916
|
+
.kds-dropdown-container[data-v-a4e7217f] {
|
|
1917
1917
|
display: flex;
|
|
1918
1918
|
flex-direction: column;
|
|
1919
1919
|
min-width: var(--kds-dimension-component-width-12x);
|
|
@@ -1921,16 +1921,16 @@ to {
|
|
|
1921
1921
|
border-radius: var(--kds-border-radius-container-0-50x);
|
|
1922
1922
|
box-shadow: var(--kds-elevation-level-3);
|
|
1923
1923
|
}
|
|
1924
|
-
.kds-dropdown-container-sticky-top[data-v-
|
|
1924
|
+
.kds-dropdown-container-sticky-top[data-v-a4e7217f] {
|
|
1925
1925
|
padding: var(--kds-spacing-container-0-25x);
|
|
1926
1926
|
background-color: var(--kds-color-surface-default);
|
|
1927
1927
|
border-bottom: var(--kds-border-base-subtle);
|
|
1928
1928
|
}
|
|
1929
1929
|
.kds-dropdown-container-list {
|
|
1930
|
-
&[data-v-
|
|
1930
|
+
&[data-v-a4e7217f] {
|
|
1931
1931
|
max-height: var(--kds-dimension-component-height-12x);
|
|
1932
1932
|
}
|
|
1933
|
-
&.multiline[data-v-
|
|
1933
|
+
&.multiline[data-v-a4e7217f] {
|
|
1934
1934
|
max-height: var(--kds-dimension-component-height-20x);
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
@@ -3032,6 +3032,155 @@ to {
|
|
|
3032
3032
|
flex-direction: column;
|
|
3033
3033
|
}
|
|
3034
3034
|
|
|
3035
|
+
.kds-slider {
|
|
3036
|
+
&[data-v-13ddffa9] {
|
|
3037
|
+
--knob-size: var(--kds-dimension-component-height-1-25x);
|
|
3038
|
+
--knob-radius: calc(var(--knob-size) / 2);
|
|
3039
|
+
--hit-size: var(--kds-dimension-component-height-1-5x);
|
|
3040
|
+
--rail-height: var(--kds-dimension-component-height-0-25x);
|
|
3041
|
+
|
|
3042
|
+
/* vertical room above the rail for the always-visible tooltip, leaving a 4px
|
|
3043
|
+
gap above the knob so the focus outline does not touch the tooltip */
|
|
3044
|
+
--tooltip-zone: calc(
|
|
3045
|
+
var(--kds-dimension-component-height-2-25x) +
|
|
3046
|
+
var(--kds-dimension-component-height-0-125x)
|
|
3047
|
+
);
|
|
3048
|
+
--rail-color: var(--kds-color-surface-subtle);
|
|
3049
|
+
--knob-color: var(--kds-color-toggle-switch-knob-initial);
|
|
3050
|
+
--knob-border: var(--kds-border-action-input);
|
|
3051
|
+
--knob-cursor: pointer;
|
|
3052
|
+
--tick-color: var(--kds-color-surface-subtle);
|
|
3053
|
+
--label-color: var(--kds-color-text-and-icon-muted);
|
|
3054
|
+
|
|
3055
|
+
display: flex;
|
|
3056
|
+
flex-direction: column;
|
|
3057
|
+
min-inline-size: var(--kds-dimension-component-width-12x);
|
|
3058
|
+
width: 100%;
|
|
3059
|
+
}
|
|
3060
|
+
&.disabled[data-v-13ddffa9] {
|
|
3061
|
+
--knob-color: var(--kds-color-toggle-switch-knob-disabled);
|
|
3062
|
+
--knob-border: var(--kds-border-action-disabled);
|
|
3063
|
+
--knob-cursor: default;
|
|
3064
|
+
}
|
|
3065
|
+
&.error[data-v-13ddffa9] {
|
|
3066
|
+
--knob-border: var(--kds-border-action-error);
|
|
3067
|
+
}
|
|
3068
|
+
.kds-slider-track[data-v-13ddffa9] {
|
|
3069
|
+
position: relative;
|
|
3070
|
+
padding-block: var(--tooltip-zone)
|
|
3071
|
+
var(--kds-dimension-component-height-2-5x);
|
|
3072
|
+
margin-inline: var(--knob-radius);
|
|
3073
|
+
}
|
|
3074
|
+
.kds-slider-hit-area[data-v-13ddffa9] {
|
|
3075
|
+
position: relative;
|
|
3076
|
+
display: flex;
|
|
3077
|
+
align-items: center;
|
|
3078
|
+
height: var(--hit-size);
|
|
3079
|
+
margin-block: calc((var(--rail-height) - var(--hit-size)) / 2);
|
|
3080
|
+
touch-action: pan-y;
|
|
3081
|
+
}
|
|
3082
|
+
.kds-slider-rail[data-v-13ddffa9] {
|
|
3083
|
+
width: 100%;
|
|
3084
|
+
height: var(--rail-height);
|
|
3085
|
+
background-color: var(--rail-color);
|
|
3086
|
+
border-radius: var(--kds-border-radius-container-pill);
|
|
3087
|
+
}
|
|
3088
|
+
.kds-slider-knob-dot[data-v-13ddffa9] {
|
|
3089
|
+
box-sizing: border-box;
|
|
3090
|
+
width: var(--knob-size);
|
|
3091
|
+
height: var(--knob-size);
|
|
3092
|
+
background-color: var(--knob-color);
|
|
3093
|
+
border: var(--knob-border);
|
|
3094
|
+
border-radius: var(--kds-border-radius-container-pill);
|
|
3095
|
+
box-shadow: var(--kds-box-shadow-knob);
|
|
3096
|
+
transition: border-color 0.1s ease;
|
|
3097
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3098
|
+
transition: none;
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
.kds-slider-knob {
|
|
3102
|
+
&[data-v-13ddffa9] {
|
|
3103
|
+
position: absolute;
|
|
3104
|
+
top: 50%;
|
|
3105
|
+
display: flex;
|
|
3106
|
+
align-items: center;
|
|
3107
|
+
justify-content: center;
|
|
3108
|
+
width: var(--hit-size);
|
|
3109
|
+
height: var(--hit-size);
|
|
3110
|
+
cursor: var(--knob-cursor);
|
|
3111
|
+
outline: none;
|
|
3112
|
+
transform: translate(-50%, -50%);
|
|
3113
|
+
|
|
3114
|
+
/* the focus outline replaces the knob border */
|
|
3115
|
+
}
|
|
3116
|
+
&:focus-visible:not(.suppress-focus-ring) .kds-slider-knob-dot[data-v-13ddffa9] {
|
|
3117
|
+
--knob-border: none;
|
|
3118
|
+
|
|
3119
|
+
outline: var(--kds-border-action-focused);
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
.kds-slider-tooltip[data-v-13ddffa9] {
|
|
3123
|
+
position: absolute;
|
|
3124
|
+
top: 0;
|
|
3125
|
+
|
|
3126
|
+
/* centred on the knob, but shifted inwards at the edges to prevent clipping */
|
|
3127
|
+
left: clamp(
|
|
3128
|
+
calc(var(--cc3be15a) / 2 - var(--knob-radius)),
|
|
3129
|
+
var(--ffe9c730),
|
|
3130
|
+
calc(100% + var(--knob-radius) - var(--cc3be15a) / 2)
|
|
3131
|
+
);
|
|
3132
|
+
padding: var(--kds-spacing-container-0-37x)
|
|
3133
|
+
var(--kds-spacing-container-0-5x);
|
|
3134
|
+
font: var(--kds-font-base-subtext-medium);
|
|
3135
|
+
color: var(--kds-color-tooltip-text-and-icon-neutral);
|
|
3136
|
+
white-space: nowrap;
|
|
3137
|
+
background-color: var(--kds-color-tooltip-background-default);
|
|
3138
|
+
border-radius: var(--kds-border-radius-container-0-37x);
|
|
3139
|
+
transform: translateX(-50%);
|
|
3140
|
+
}
|
|
3141
|
+
.kds-slider-ticks[data-v-13ddffa9] {
|
|
3142
|
+
position: absolute;
|
|
3143
|
+
inset-inline: 0;
|
|
3144
|
+
top: calc(
|
|
3145
|
+
var(--tooltip-zone) + var(--rail-height) +
|
|
3146
|
+
var(--kds-spacing-container-0-5x)
|
|
3147
|
+
);
|
|
3148
|
+
height: var(--kds-dimension-component-height-1x);
|
|
3149
|
+
}
|
|
3150
|
+
.kds-slider-tick {
|
|
3151
|
+
&[data-v-13ddffa9] {
|
|
3152
|
+
position: absolute;
|
|
3153
|
+
top: 0;
|
|
3154
|
+
width: var(--kds-core-border-width-xs);
|
|
3155
|
+
height: var(--kds-dimension-component-height-0-25x);
|
|
3156
|
+
background-color: var(--tick-color);
|
|
3157
|
+
transform: translateX(-50%);
|
|
3158
|
+
}
|
|
3159
|
+
&.major[data-v-13ddffa9] {
|
|
3160
|
+
height: var(--kds-dimension-component-height-0-5x);
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
.kds-slider-tick-label {
|
|
3164
|
+
&[data-v-13ddffa9] {
|
|
3165
|
+
position: absolute;
|
|
3166
|
+
top: calc(
|
|
3167
|
+
var(--kds-dimension-component-height-0-5x) +
|
|
3168
|
+
var(--kds-spacing-container-0-5x)
|
|
3169
|
+
);
|
|
3170
|
+
font: var(--kds-font-base-subtext-medium);
|
|
3171
|
+
color: var(--label-color);
|
|
3172
|
+
white-space: nowrap;
|
|
3173
|
+
transform: translateX(-50%);
|
|
3174
|
+
}
|
|
3175
|
+
&.is-first[data-v-13ddffa9] {
|
|
3176
|
+
transform: none;
|
|
3177
|
+
}
|
|
3178
|
+
&.is-last[data-v-13ddffa9] {
|
|
3179
|
+
transform: translateX(-100%);
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
|
|
3035
3184
|
.kds-text-input-suggestions[data-v-20d4bafb] {
|
|
3036
3185
|
max-height: var(--kds-dimension-component-height-12x);
|
|
3037
3186
|
background-color: var(--kds-color-surface-default);
|
|
@@ -4785,7 +4934,7 @@ td {
|
|
|
4785
4934
|
cursor: pointer;
|
|
4786
4935
|
}
|
|
4787
4936
|
|
|
4788
|
-
.file-explorer[data-v-
|
|
4937
|
+
.file-explorer[data-v-150ca2aa] {
|
|
4789
4938
|
display: flex;
|
|
4790
4939
|
flex: 1 0 0%;
|
|
4791
4940
|
flex-direction: column;
|
|
@@ -4794,10 +4943,10 @@ td {
|
|
|
4794
4943
|
/* needed so that the virtualization container can size the wrapper properly */
|
|
4795
4944
|
min-height: 0;
|
|
4796
4945
|
}
|
|
4797
|
-
.file-explorer-item[data-v-
|
|
4798
|
-
height: var(--
|
|
4946
|
+
.file-explorer-item[data-v-150ca2aa] {
|
|
4947
|
+
height: var(--b9b67f4a);
|
|
4799
4948
|
}
|
|
4800
|
-
thead[data-v-
|
|
4949
|
+
thead[data-v-150ca2aa] {
|
|
4801
4950
|
/* Hide table head for better readability but keeping it for a11y reasons */
|
|
4802
4951
|
position: absolute;
|
|
4803
4952
|
|
|
@@ -4808,7 +4957,7 @@ thead[data-v-1dd4e671] {
|
|
|
4808
4957
|
overflow: hidden;
|
|
4809
4958
|
white-space: nowrap; /* added line */
|
|
4810
4959
|
}
|
|
4811
|
-
table[data-v-
|
|
4960
|
+
table[data-v-150ca2aa] {
|
|
4812
4961
|
height: 100%;
|
|
4813
4962
|
overflow: hidden auto;
|
|
4814
4963
|
scrollbar-gutter: stable;
|
|
@@ -4819,19 +4968,19 @@ table[data-v-1dd4e671] {
|
|
|
4819
4968
|
}
|
|
4820
4969
|
table,
|
|
4821
4970
|
tbody {
|
|
4822
|
-
&[data-v-
|
|
4971
|
+
&[data-v-150ca2aa] {
|
|
4823
4972
|
width: 100%;
|
|
4824
4973
|
border-spacing: 0;
|
|
4825
4974
|
}
|
|
4826
|
-
&[data-v-
|
|
4975
|
+
&[data-v-150ca2aa]:not(:has(.empty)) {
|
|
4827
4976
|
display: block;
|
|
4828
4977
|
}
|
|
4829
4978
|
}
|
|
4830
4979
|
table:focus {
|
|
4831
|
-
&[data-v-
|
|
4980
|
+
&[data-v-150ca2aa] {
|
|
4832
4981
|
outline: none;
|
|
4833
4982
|
}
|
|
4834
|
-
&.keyboard-focus[data-v-
|
|
4983
|
+
&.keyboard-focus[data-v-150ca2aa] {
|
|
4835
4984
|
outline: 2px solid var(--kds-color-focus-outline);
|
|
4836
4985
|
border-radius: var(--kds-border-radius-container-0-25x);
|
|
4837
4986
|
}
|
|
@@ -4845,7 +4994,7 @@ table:focus {
|
|
|
4845
4994
|
* CSS table instead distributed the single short row inconsistently
|
|
4846
4995
|
* (Chrome centers it, Firefox keeps it at the top).
|
|
4847
4996
|
*/
|
|
4848
|
-
table[data-v-
|
|
4997
|
+
table[data-v-150ca2aa]:has(.empty) {
|
|
4849
4998
|
display: flex;
|
|
4850
4999
|
flex-direction: column;
|
|
4851
5000
|
|
|
@@ -4853,7 +5002,7 @@ table[data-v-1dd4e671]:has(.empty) {
|
|
|
4853
5002
|
* message when the surrounding container is only as tall as its content. */
|
|
4854
5003
|
min-height: var(--kds-dimension-component-height-12-5x);
|
|
4855
5004
|
}
|
|
4856
|
-
tbody[data-v-
|
|
5005
|
+
tbody[data-v-150ca2aa]:has(.empty) {
|
|
4857
5006
|
display: flex;
|
|
4858
5007
|
flex: 1 0 0;
|
|
4859
5008
|
flex-direction: column;
|
|
@@ -4861,11 +5010,11 @@ tbody[data-v-1dd4e671]:has(.empty) {
|
|
|
4861
5010
|
min-height: max-content;
|
|
4862
5011
|
padding-top: var(--kds-spacing-container-4x);
|
|
4863
5012
|
}
|
|
4864
|
-
.empty[data-v-
|
|
4865
|
-
.empty td[data-v-
|
|
5013
|
+
.empty[data-v-150ca2aa],
|
|
5014
|
+
.empty td[data-v-150ca2aa] {
|
|
4866
5015
|
display: block;
|
|
4867
5016
|
}
|
|
4868
|
-
.custom-preview[data-v-
|
|
5017
|
+
.custom-preview[data-v-150ca2aa] {
|
|
4869
5018
|
position: fixed;
|
|
4870
5019
|
top: 0;
|
|
4871
5020
|
left: 0;
|