@knime/kds-components 6.12.2 → 7.1.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/index.css +103 -103
  3. package/dist/index.js +829 -649
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts +29 -2
  6. package/dist/src/components/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
  7. package/dist/src/components/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -1
  8. package/dist/src/components/accessories/Avatar/nameInitials.d.ts +9 -0
  9. package/dist/src/components/accessories/Avatar/nameInitials.d.ts.map +1 -0
  10. package/dist/src/components/accessories/Avatar/types.d.ts +28 -7
  11. package/dist/src/components/accessories/Avatar/types.d.ts.map +1 -1
  12. package/dist/src/components/accessories/Badge/enums.d.ts +1 -1
  13. package/dist/src/components/accessories/_Accessory/_Accessory.vue.d.ts.map +1 -1
  14. package/dist/src/components/accessories/_Accessory/types.d.ts +7 -5
  15. package/dist/src/components/accessories/_Accessory/types.d.ts.map +1 -1
  16. package/dist/src/components/buttons/BaseButton.vue.d.ts +10 -24
  17. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
  18. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +4 -24
  19. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts.map +1 -1
  20. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +12 -72
  21. package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
  22. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts +12 -20
  23. package/dist/src/components/buttons/KdsMultiSelectButton/KdsMultiSelectButton.vue.d.ts.map +1 -1
  24. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts +30 -2
  25. package/dist/src/components/buttons/KdsMultiSelectButton/types.d.ts.map +1 -1
  26. package/dist/src/components/buttons/KdsProgressButton/enums.d.ts +1 -1
  27. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts +8 -20
  28. package/dist/src/components/buttons/KdsSelectButton/KdsSelectButton.vue.d.ts.map +1 -1
  29. package/dist/src/components/buttons/KdsSelectButton/types.d.ts +19 -2
  30. package/dist/src/components/buttons/KdsSelectButton/types.d.ts.map +1 -1
  31. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -24
  32. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
  33. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +4 -24
  34. package/dist/src/components/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts.map +1 -1
  35. package/dist/src/components/buttons/index.d.ts +1 -1
  36. package/dist/src/components/buttons/index.d.ts.map +1 -1
  37. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -24
  38. package/dist/src/components/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -1
  39. package/dist/src/components/buttons/types.d.ts +8 -3
  40. package/dist/src/components/buttons/types.d.ts.map +1 -1
  41. package/dist/src/components/feedback/enums.d.ts +1 -1
  42. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts +4 -0
  43. package/dist/src/components/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -1
  44. package/dist/src/components/forms/Checkbox/KdsCheckboxGroup.vue.d.ts.map +1 -1
  45. package/dist/src/components/forms/Checkbox/types.d.ts +5 -0
  46. package/dist/src/components/forms/Checkbox/types.d.ts.map +1 -1
  47. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts +15 -0
  48. package/dist/src/components/forms/Checkbox/useCheckboxRovingFocus.d.ts.map +1 -0
  49. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts +2 -8
  50. package/dist/src/components/forms/RadioButton/useRadioSelection.d.ts.map +1 -1
  51. package/dist/src/components/forms/_helper/useRovingFocus.d.ts +35 -0
  52. package/dist/src/components/forms/_helper/useRovingFocus.d.ts.map +1 -0
  53. package/dist/src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -1
  54. package/dist/src/components/forms/selects/Dropdown/types.d.ts +19 -0
  55. package/dist/src/components/forms/selects/Dropdown/types.d.ts.map +1 -1
  56. package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
  57. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
  58. package/dist/src/components/lists/MenuContainer/types.d.ts +12 -0
  59. package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -1
  60. package/dist/src/layouts/cards/CardHeader.vue.d.ts.map +1 -1
  61. package/dist/src/util/useKdsDarkMode.d.ts +5 -0
  62. package/dist/src/util/useKdsDarkMode.d.ts.map +1 -1
  63. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,89 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @knime/kds-styles@7.1.0
9
+
10
+ ## 7.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - 3ddf326: - `KdsAvatar`:
15
+ - add an optional `name` prop; the displayed initials and the tooltip are derived from it, while `initials` and `tooltip` stay available as explicit overrides.
16
+ - warn when neither `name` nor `initials` is provided.
17
+ - `KdsAvatarCounter`: entries of `avatars` accept `name` as well.
18
+ - `KdsAvatarAccessory`: accepts `name` (and `initials` is no longer mandatory), so accessory-based avatars can derive their initials too.
19
+
20
+ BREAKING CHANGES:
21
+
22
+ - `KdsAvatar`: either `name` or `initials` is now required (`tooltip` stays optional) — an avatar that previously passed neither, e.g. an image-only one, has to set one of them. The same requirement applies to the `avatars` entries of `KdsAvatarCounter` and to `KdsAvatarAccessory`.
23
+
24
+ - 6c94688: - `KdsRadioButtonGroup` / `KdsValueSwitch`: fix a group whose selected option is
25
+ `disabled` having no tab stop at all, which made it unreachable by keyboard.
26
+ The tab stop now falls back to the first enabled option.
27
+
28
+ BREAKING CHANGES:
29
+
30
+ - `KdsCheckboxGroup`: the group is now a single tab stop (roving tabindex)
31
+ instead of one tab stop per option. `Tab` moves into and out of the group as a
32
+ unit; the arrow keys (plus `Home` / `End`) move focus between options and skip
33
+ disabled ones. This deviates from the ARIA APG Checkbox pattern — where each
34
+ checkbox is individually tabbable — to match `KdsRadioButtonGroup` and
35
+ `KdsValueSwitch`, so keyboard behaviour is consistent across KDS option
36
+ groups. Note that the arrow-key navigation is not announced to assistive
37
+ technology: a `fieldset` exposes `role="group"`, which is not a composite
38
+ role. To adapt, replace any `Tab` step between two options in a keyboard flow
39
+ or test with an `ArrowDown` / `ArrowRight` press.
40
+
41
+ - 16a64c0: - `KdsMenuContainer` (and the menus built on it — `KdsMenu`, `KdsMenuButton`, `KdsContextMenu`, `KdsSplitButton`): keep an open submenu open when the menu item that opens it is clicked.
42
+
43
+ BREAKING CHANGES:
44
+
45
+ - `KdsMenuContainer`: `Escape` now closes only the deepest open submenu and keeps the menu itself open. While a submenu is open the key press is consumed by the menu, so it no longer also closes a surrounding popover or dialog; once no submenu is open, `Escape` closes the menu as before.
46
+ - `KdsSplitButton`: `Escape` follows that behaviour too, instead of always closing the whole menu at once.
47
+
48
+ ### Minor Changes
49
+
50
+ - f9928f3: `useKdsDarkMode`: added a `lightDark` helper that resolves a `KdsColor` to its current `KdsColorValue` (light or dark) based on the effective dark-mode state.
51
+ - c2d1454: Improve the `KdsSelectButton` and `KdsMultiSelectButton` selection triggers.
52
+
53
+ - `KdsSelectButton` / `KdsMultiSelectButton`:
54
+ - Both now render a `BaseButton` directly (in its toggled/active state)
55
+ instead of wrapping a `KdsToggleButton`, and show a trailing `KdsBadge` with
56
+ the number of selected values while a selection exists. The badge is
57
+ decorative (`aria-hidden`), so it does not change the button's accessible
58
+ name; selection state stays conveyed through `aria-pressed` and the dropdown
59
+ options.
60
+ - The count badge takes the place of the trailing icon: while the badge is
61
+ shown, a configured `trailingIcon` is not rendered.
62
+ - Like `trailingIcon`, the count badge requires a visible label — icon-only
63
+ buttons show their icon alone. `showCount` is typed as unavailable when no
64
+ `label` is set, and the badge is not rendered there.
65
+ - Both accept a `showCount` prop to toggle the trailing count badge. It
66
+ defaults to `true` on `KdsMultiSelectButton` and to `false` on
67
+ `KdsSelectButton`, where the badge always reads "1" since only one value
68
+ can be selected.
69
+ - `KdsMultiSelectButton`:
70
+ - Accepts `hideSelectAll` (default `false`). When `true`, the dropdown footer
71
+ "Select all" action is hidden, while the "Clear all" action stays available
72
+ so a selection can always be cleared.
73
+ - The dropdown footer "Clear all" action is now automatically hidden when
74
+ `minimumSelectedOptions` is greater than 0, since clearing all would drop
75
+ below the required minimum. The footer holds a single action that flips
76
+ between "Select all" and "Clear all" depending on the selection, so with a
77
+ minimum set no footer action is offered while at least one listed option is
78
+ selected; "Select all" reappears once the search narrows the list down to
79
+ unselected options.
80
+
81
+ ### Patch Changes
82
+
83
+ - 2270bce: `KdsCard`: render the header headline as a `div` instead of an `h6` to avoid emitting an out-of-order heading; visual appearance is unchanged.
84
+ - Updated dependencies [f9928f3]
85
+ - @knime/kds-styles@7.0.0
86
+
3
87
  ## 6.12.2
4
88
 
5
89
  ### Patch Changes