@knime/kds-components 0.23.0 → 0.23.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.
Files changed (140) hide show
  1. package/dist/index.css +183 -115
  2. package/dist/index.js +249 -95
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/accessories/DonutChart/KdsDonutChart.vue.d.ts +4 -0
  5. package/dist/src/accessories/DonutChart/KdsDonutChart.vue.d.ts.map +1 -0
  6. package/dist/src/accessories/DonutChart/index.d.ts +3 -0
  7. package/dist/src/accessories/DonutChart/index.d.ts.map +1 -0
  8. package/dist/src/accessories/DonutChart/types.d.ts +27 -0
  9. package/dist/src/accessories/DonutChart/types.d.ts.map +1 -0
  10. package/dist/src/accessories/index.d.ts +2 -0
  11. package/dist/src/accessories/index.d.ts.map +1 -1
  12. package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +6 -6
  13. package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
  14. package/dist/src/buttons/KdsMenuButton/types.d.ts +2 -2
  15. package/dist/src/buttons/KdsMenuButton/types.d.ts.map +1 -1
  16. package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +6 -6
  17. package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
  18. package/dist/src/buttons/links/KdsLink/KdsLink.vue.d.ts.map +1 -1
  19. package/dist/src/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts.map +1 -1
  20. package/dist/src/buttons/links/linkUtils.d.ts +2 -0
  21. package/dist/src/buttons/links/linkUtils.d.ts.map +1 -0
  22. package/dist/src/containers/ListContainer/KdsListContainer.vue.d.ts.map +1 -0
  23. package/dist/src/containers/ListContainer/enums.d.ts.map +1 -0
  24. package/dist/src/containers/ListContainer/index.d.ts.map +1 -0
  25. package/dist/src/{forms/_helper/List → containers}/ListContainer/types.d.ts +3 -3
  26. package/dist/src/containers/ListContainer/types.d.ts.map +1 -0
  27. package/dist/src/containers/ListItem/KdsListItem/KdsListItem.vue.d.ts.map +1 -0
  28. package/dist/src/containers/ListItem/KdsListItem/demo-accessories.d.ts.map +1 -0
  29. package/dist/src/containers/ListItem/KdsListItem/enums.d.ts.map +1 -0
  30. package/dist/src/containers/ListItem/KdsListItem/index.d.ts.map +1 -0
  31. package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItem/types.d.ts +2 -2
  32. package/dist/src/containers/ListItem/KdsListItem/types.d.ts.map +1 -0
  33. package/dist/src/containers/ListItem/KdsListItemButton/KdsListItemButton.vue.d.ts.map +1 -0
  34. package/dist/src/containers/ListItem/KdsListItemButton/index.d.ts.map +1 -0
  35. package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItemButton/types.d.ts +1 -1
  36. package/dist/src/containers/ListItem/KdsListItemButton/types.d.ts.map +1 -0
  37. package/dist/src/containers/ListItem/ListItemAccessory/ListItemAccessory.vue.d.ts.map +1 -0
  38. package/dist/src/containers/ListItem/ListItemAccessory/enums.d.ts.map +1 -0
  39. package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemAccessory/types.d.ts +1 -1
  40. package/dist/src/containers/ListItem/ListItemAccessory/types.d.ts.map +1 -0
  41. package/dist/src/containers/ListItem/ListItemDivider/ListItemDivider.vue.d.ts.map +1 -0
  42. package/dist/src/containers/ListItem/ListItemDivider/index.d.ts.map +1 -0
  43. package/dist/src/containers/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -0
  44. package/dist/src/containers/ListItem/ListItemSectionTitle/index.d.ts.map +1 -0
  45. package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemSectionTitle/types.d.ts +1 -1
  46. package/dist/src/containers/ListItem/ListItemSectionTitle/types.d.ts.map +1 -0
  47. package/dist/src/{forms/_helper → containers}/MenuContainer/KdsMenuContainer.vue.d.ts +2 -2
  48. package/dist/src/containers/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -0
  49. package/dist/src/containers/MenuContainer/index.d.ts +3 -0
  50. package/dist/src/containers/MenuContainer/index.d.ts.map +1 -0
  51. package/dist/src/{forms/_helper → containers}/MenuContainer/types.d.ts +2 -2
  52. package/dist/src/containers/MenuContainer/types.d.ts.map +1 -0
  53. package/dist/src/containers/index.d.ts +5 -0
  54. package/dist/src/containers/index.d.ts.map +1 -0
  55. package/dist/src/forms/RadioButton/KdsValueSwitch.vue.d.ts +1 -1
  56. package/dist/src/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +1 -1
  57. package/dist/src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts +4 -4
  58. package/dist/src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -1
  59. package/dist/src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts +4 -4
  60. package/dist/src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -1
  61. package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts +2 -2
  62. package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -1
  63. package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts +4 -4
  64. package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +1 -1
  65. package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts +2 -2
  66. package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -1
  67. package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts +2 -2
  68. package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts.map +1 -1
  69. package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts +2 -2
  70. package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +1 -1
  71. package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts +2 -2
  72. package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +1 -1
  73. package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +6 -6
  74. package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
  75. package/dist/src/forms/inputs/SearchInput/types.d.ts +1 -1
  76. package/dist/src/forms/inputs/SearchInput/types.d.ts.map +1 -1
  77. package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts +6 -6
  78. package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -1
  79. package/dist/src/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts +2 -2
  80. package/dist/src/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts.map +1 -1
  81. package/dist/src/forms/selects/Dropdown/DropdownContainer.vue.d.ts +4 -4
  82. package/dist/src/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -1
  83. package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts +6 -6
  84. package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -1
  85. package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts +6 -6
  86. package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts.map +1 -1
  87. package/dist/src/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts +4 -4
  88. package/dist/src/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts.map +1 -1
  89. package/dist/src/forms/selects/Dropdown/types.d.ts +1 -1
  90. package/dist/src/forms/selects/Dropdown/types.d.ts.map +1 -1
  91. package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +1 -1
  92. package/dist/src/forms/selects/MultiSelectListBox/types.d.ts +1 -1
  93. package/dist/src/forms/selects/MultiSelectListBox/types.d.ts.map +1 -1
  94. package/dist/src/forms/selects/TwinList/types.d.ts +1 -1
  95. package/dist/src/forms/selects/TwinList/types.d.ts.map +1 -1
  96. package/dist/src/layouts/EmptyState/KdsEmptyState.vue.d.ts +36 -3
  97. package/dist/src/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +1 -1
  98. package/dist/src/layouts/EmptyState/types.d.ts +27 -2
  99. package/dist/src/layouts/EmptyState/types.d.ts.map +1 -1
  100. package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts +3 -3
  101. package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +6 -6
  102. package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -1
  103. package/package.json +8 -8
  104. package/dist/src/forms/_helper/List/KdsListItem/KdsListItem.vue.d.ts.map +0 -1
  105. package/dist/src/forms/_helper/List/KdsListItem/demo-accessories.d.ts.map +0 -1
  106. package/dist/src/forms/_helper/List/KdsListItem/enums.d.ts.map +0 -1
  107. package/dist/src/forms/_helper/List/KdsListItem/index.d.ts.map +0 -1
  108. package/dist/src/forms/_helper/List/KdsListItem/types.d.ts.map +0 -1
  109. package/dist/src/forms/_helper/List/KdsListItemButton/KdsListItemButton.vue.d.ts.map +0 -1
  110. package/dist/src/forms/_helper/List/KdsListItemButton/index.d.ts.map +0 -1
  111. package/dist/src/forms/_helper/List/KdsListItemButton/types.d.ts.map +0 -1
  112. package/dist/src/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts.map +0 -1
  113. package/dist/src/forms/_helper/List/ListContainer/enums.d.ts.map +0 -1
  114. package/dist/src/forms/_helper/List/ListContainer/index.d.ts.map +0 -1
  115. package/dist/src/forms/_helper/List/ListContainer/types.d.ts.map +0 -1
  116. package/dist/src/forms/_helper/List/ListItemAccessory/ListItemAccessory.vue.d.ts.map +0 -1
  117. package/dist/src/forms/_helper/List/ListItemAccessory/enums.d.ts.map +0 -1
  118. package/dist/src/forms/_helper/List/ListItemAccessory/types.d.ts.map +0 -1
  119. package/dist/src/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts.map +0 -1
  120. package/dist/src/forms/_helper/List/ListItemDivider/index.d.ts.map +0 -1
  121. package/dist/src/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +0 -1
  122. package/dist/src/forms/_helper/List/ListItemSectionTitle/index.d.ts.map +0 -1
  123. package/dist/src/forms/_helper/List/ListItemSectionTitle/types.d.ts.map +0 -1
  124. package/dist/src/forms/_helper/MenuContainer/KdsMenuContainer.vue.d.ts.map +0 -1
  125. package/dist/src/forms/_helper/MenuContainer/types.d.ts.map +0 -1
  126. /package/dist/src/{forms/_helper/List → containers}/ListContainer/KdsListContainer.vue.d.ts +0 -0
  127. /package/dist/src/{forms/_helper/List → containers}/ListContainer/enums.d.ts +0 -0
  128. /package/dist/src/{forms/_helper/List → containers}/ListContainer/index.d.ts +0 -0
  129. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItem/KdsListItem.vue.d.ts +0 -0
  130. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItem/demo-accessories.d.ts +0 -0
  131. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItem/enums.d.ts +0 -0
  132. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItem/index.d.ts +0 -0
  133. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItemButton/KdsListItemButton.vue.d.ts +0 -0
  134. /package/dist/src/{forms/_helper/List → containers/ListItem}/KdsListItemButton/index.d.ts +0 -0
  135. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemAccessory/ListItemAccessory.vue.d.ts +0 -0
  136. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemAccessory/enums.d.ts +0 -0
  137. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemDivider/ListItemDivider.vue.d.ts +0 -0
  138. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemDivider/index.d.ts +0 -0
  139. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts +0 -0
  140. /package/dist/src/{forms/_helper/List → containers/ListItem}/ListItemSectionTitle/index.d.ts +0 -0
package/dist/index.js CHANGED
@@ -9,14 +9,14 @@ import './index.css';const kdsAvatarSize = {
9
9
  };
10
10
  const kdsAvatarSizes = Object.values(kdsAvatarSize);
11
11
 
12
- const _hoisted_1$P = ["role", "title", "aria-hidden", "aria-label"];
13
- const _hoisted_2$t = ["src"];
14
- const _hoisted_3$j = {
12
+ const _hoisted_1$Q = ["role", "title", "aria-hidden", "aria-label"];
13
+ const _hoisted_2$u = ["src"];
14
+ const _hoisted_3$k = {
15
15
  key: 1,
16
16
  class: "kds-avatar-initials",
17
17
  "aria-hidden": "true"
18
18
  };
19
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
19
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
20
20
  __name: "KdsAvatar",
21
21
  props: {
22
22
  initials: {},
@@ -59,10 +59,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
59
59
  alt: "",
60
60
  "aria-hidden": "true",
61
61
  onError: onImageError
62
- }, null, 40, _hoisted_2$t)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
62
+ }, null, 40, _hoisted_2$u)) : (openBlock(), createElementBlock("div", _hoisted_3$k, [
63
63
  createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
64
64
  ]))
65
- ], 10, _hoisted_1$P);
65
+ ], 10, _hoisted_1$Q);
66
66
  };
67
67
  }
68
68
  });
@@ -75,7 +75,7 @@ const _export_sfc$1 = (sfc, props) => {
75
75
  return target;
76
76
  };
77
77
 
78
- const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["__scopeId", "data-v-c90668bf"]]);
78
+ const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["__scopeId", "data-v-c90668bf"]]);
79
79
 
80
80
  const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
81
81
  const v = glob$1[path$13];
@@ -117,7 +117,7 @@ function useIcon({
117
117
  return iconComponent;
118
118
  }
119
119
 
120
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
120
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
121
121
  __name: "KdsIcon",
122
122
  props: {
123
123
  name: {},
@@ -146,7 +146,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
146
146
  }
147
147
  });
148
148
 
149
- const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["__scopeId", "data-v-fb124eb6"]]);
149
+ const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["__scopeId", "data-v-fb124eb6"]]);
150
150
 
151
151
  const ID_TO_ICON_MAP = {
152
152
  // Flow Variables
@@ -483,8 +483,8 @@ const kdsDataTypeSize = {
483
483
  };
484
484
  const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
485
485
 
486
- const _hoisted_1$O = ["title"];
487
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
486
+ const _hoisted_1$P = ["title"];
487
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
488
488
  __name: "KdsDataType",
489
489
  props: {
490
490
  iconName: { default: "unknown-datatype" },
@@ -524,12 +524,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
524
524
  "aria-hidden": "true",
525
525
  focusable: "false"
526
526
  }, null, 8, ["class"]))
527
- ], 10, _hoisted_1$O);
527
+ ], 10, _hoisted_1$P);
528
528
  };
529
529
  }
530
530
  });
531
531
 
532
- const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__scopeId", "data-v-3b8ebdbd"]]);
532
+ const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["__scopeId", "data-v-3b8ebdbd"]]);
533
533
 
534
534
  const kdsBadgeVariant = {
535
535
  NEUTRAL: "neutral",
@@ -546,8 +546,8 @@ const kdsBadgeSize = {
546
546
  };
547
547
  const kdsBadgeSizes = Object.values(kdsBadgeSize);
548
548
 
549
- const _hoisted_1$N = { class: "label-wrapper" };
550
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
549
+ const _hoisted_1$O = { class: "label-wrapper" };
550
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
551
551
  __name: "KdsBadge",
552
552
  props: {
553
553
  label: {},
@@ -569,13 +569,13 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
569
569
  name: __props.leadingIcon,
570
570
  size: sizeToIconSize[__props.size]
571
571
  }, null, 8, ["name", "size"])) : createCommentVNode("", true),
572
- createElementVNode("span", _hoisted_1$N, toDisplayString(__props.label), 1)
572
+ createElementVNode("span", _hoisted_1$O, toDisplayString(__props.label), 1)
573
573
  ], 2);
574
574
  };
575
575
  }
576
576
  });
577
577
 
578
- const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["__scopeId", "data-v-df64f7cf"]]);
578
+ const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__scopeId", "data-v-df64f7cf"]]);
579
579
 
580
580
  const kdsColorSwatchType = {
581
581
  LEARNER: "learner",
@@ -594,14 +594,14 @@ const kdsColorSwatchSize = {
594
594
  };
595
595
  const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
596
596
 
597
- const _hoisted_1$M = ["role", "title", "aria-hidden", "aria-label"];
597
+ const _hoisted_1$N = ["role", "title", "aria-hidden", "aria-label"];
598
598
  const RGBA_SHORT_HEX_LENGTH = 4;
599
599
  const RGBA_LONG_HEX_LENGTH = 8;
600
600
  const ALPHA_NIBBLE_INDEX = 3;
601
601
  const ALPHA_BYTE_START = 6;
602
602
  const RGB_SHORT_HEX_LENGTH = 3;
603
603
  const RGB_LONG_HEX_LENGTH = 6;
604
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
604
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
605
605
  __name: "KdsColorSwatch",
606
606
  props: {
607
607
  color: {},
@@ -676,12 +676,12 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
676
676
  style: normalizeStyle(swatchStyle.value),
677
677
  "aria-hidden": hasTitle.value ? void 0 : "true",
678
678
  "aria-label": hasTitle.value ? accessibleTitle.value : void 0
679
- }, null, 14, _hoisted_1$M);
679
+ }, null, 14, _hoisted_1$N);
680
680
  };
681
681
  }
682
682
  });
683
683
 
684
- const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["__scopeId", "data-v-91e0130d"]]);
684
+ const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["__scopeId", "data-v-91e0130d"]]);
685
685
 
686
686
  const kdsDarkModeType = {
687
687
  LIGHT: "light",
@@ -801,9 +801,9 @@ function useKdsIsTruncated(elementRef) {
801
801
  return { isTruncated };
802
802
  }
803
803
 
804
- const _hoisted_1$L = ["title", "aria-label"];
805
- const _hoisted_2$s = ["title"];
806
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
804
+ const _hoisted_1$M = ["title", "aria-label"];
805
+ const _hoisted_2$t = ["title"];
806
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
807
807
  __name: "KdsLiveStatus",
808
808
  props: {
809
809
  status: { default: "red" },
@@ -832,13 +832,13 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
832
832
  ref: labelEl,
833
833
  class: "label",
834
834
  title: unref(isTruncated) ? __props.label : void 0
835
- }, toDisplayString(__props.label), 9, _hoisted_2$s)) : createCommentVNode("", true)
836
- ], 10, _hoisted_1$L);
835
+ }, toDisplayString(__props.label), 9, _hoisted_2$t)) : createCommentVNode("", true)
836
+ ], 10, _hoisted_1$M);
837
837
  };
838
838
  }
839
839
  });
840
840
 
841
- const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["__scopeId", "data-v-01555495"]]);
841
+ const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["__scopeId", "data-v-01555495"]]);
842
842
 
843
843
  const kdsLiveStatusStatus = {
844
844
  RED: "red",
@@ -854,8 +854,8 @@ const kdsLiveStatusSize = {
854
854
  };
855
855
  const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
856
856
 
857
- const _hoisted_1$K = ["data-style"];
858
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
857
+ const _hoisted_1$L = ["data-style"];
858
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
859
859
  __name: "KdsLoadingSpinner",
860
860
  props: {
861
861
  size: { default: "medium" },
@@ -880,12 +880,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
880
880
  cy: "60",
881
881
  r: "50"
882
882
  }, null, -1)
883
- ])], 10, _hoisted_1$K);
883
+ ])], 10, _hoisted_1$L);
884
884
  };
885
885
  }
886
886
  });
887
887
 
888
- const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$17, [["__scopeId", "data-v-54835dc0"]]);
888
+ const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["__scopeId", "data-v-54835dc0"]]);
889
889
 
890
890
  const kdsLoadingSpinnerVariant = {
891
891
  ON_PRIMARY: "onPrimary",
@@ -895,14 +895,14 @@ const kdsLoadingSpinnerVariants = Object.values(
895
895
  kdsLoadingSpinnerVariant
896
896
  );
897
897
 
898
- const _hoisted_1$J = ["role"];
899
- const _hoisted_2$r = { class: "header" };
900
- const _hoisted_3$i = { class: "headline" };
901
- const _hoisted_4$e = {
898
+ const _hoisted_1$K = ["role"];
899
+ const _hoisted_2$s = { class: "header" };
900
+ const _hoisted_3$j = { class: "headline" };
901
+ const _hoisted_4$f = {
902
902
  key: 0,
903
903
  class: "body"
904
904
  };
905
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
905
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
906
906
  __name: "KdsInlineMessage",
907
907
  props: {
908
908
  headline: {},
@@ -933,21 +933,21 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
933
933
  class: normalizeClass(classes.value),
934
934
  role: role.value
935
935
  }, [
936
- createElementVNode("div", _hoisted_2$r, [
936
+ createElementVNode("div", _hoisted_2$s, [
937
937
  createVNode(KdsIcon, {
938
938
  class: "icon",
939
939
  name: iconName.value,
940
940
  size: "small"
941
941
  }, null, 8, ["name"]),
942
- createElementVNode("div", _hoisted_3$i, toDisplayString(props.headline), 1)
942
+ createElementVNode("div", _hoisted_3$j, toDisplayString(props.headline), 1)
943
943
  ]),
944
- props.description ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(props.description), 1)) : createCommentVNode("", true)
945
- ], 10, _hoisted_1$J);
944
+ props.description ? (openBlock(), createElementBlock("div", _hoisted_4$f, toDisplayString(props.description), 1)) : createCommentVNode("", true)
945
+ ], 10, _hoisted_1$K);
946
946
  };
947
947
  }
948
948
  });
949
949
 
950
- const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$16, [["__scopeId", "data-v-af14056f"]]);
950
+ const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$17, [["__scopeId", "data-v-af14056f"]]);
951
951
 
952
952
  const kdsInlineMessageVariant = {
953
953
  ERROR: "error",
@@ -957,6 +957,122 @@ const kdsInlineMessageVariant = {
957
957
  };
958
958
  const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
959
959
 
960
+ const _hoisted_1$J = { class: "donut-container" };
961
+ const _hoisted_2$r = ["height", "width", "viewBox"];
962
+ const _hoisted_3$i = ["r", "stroke-width"];
963
+ const _hoisted_4$e = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
964
+ const _hoisted_5$8 = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
965
+ const _hoisted_6$6 = {
966
+ key: 0,
967
+ class: "donut-text"
968
+ };
969
+ const _hoisted_7$2 = { class: "title" };
970
+ const _hoisted_8$2 = {
971
+ key: 0,
972
+ class: "sub-text"
973
+ };
974
+ const radius = 22;
975
+ const innerRadius = 10;
976
+ const backgroundStrokeOffset = 0.5;
977
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
978
+ __name: "KdsDonutChart",
979
+ props: {
980
+ value: {},
981
+ secondaryValue: { default: 0 },
982
+ maxValue: {},
983
+ acceptValuesLargerThanMax: { type: Boolean, default: false },
984
+ animate: { type: Boolean, default: true },
985
+ title: {},
986
+ subText: {}
987
+ },
988
+ setup(__props) {
989
+ const clippedValue = computed(() => {
990
+ const clipValue = Math.max(0, __props.value);
991
+ return __props.acceptValuesLargerThanMax ? clipValue : Math.min(clipValue, __props.maxValue);
992
+ });
993
+ const secondaryClippedValue = computed(() => {
994
+ const clipValue = Math.max(0, __props.secondaryValue + clippedValue.value);
995
+ return __props.acceptValuesLargerThanMax ? clipValue : Math.min(clipValue, __props.maxValue);
996
+ });
997
+ const strokeWidth = computed(() => radius - innerRadius);
998
+ const backgroundStrokeWidth = computed(
999
+ // to account for rendering inaccuracies the background stroke is slightly smaller than the wedge stroke
1000
+ () => strokeWidth.value - backgroundStrokeOffset
1001
+ );
1002
+ const r = computed(() => radius - strokeWidth.value / 2);
1003
+ const diameter = computed(() => 2 * radius);
1004
+ const viewBox = computed(() => `0 0 ${diameter.value} ${diameter.value}`);
1005
+ const circumference = computed(() => 2 * Math.PI * r.value);
1006
+ const calcStrokeDashOffset = (value) => {
1007
+ if (__props.maxValue <= 0 || !Number.isFinite(__props.maxValue)) {
1008
+ return circumference.value;
1009
+ }
1010
+ const strokeDiff = Math.min(
1011
+ value / __props.maxValue * circumference.value,
1012
+ circumference.value
1013
+ );
1014
+ return Math.max(circumference.value - strokeDiff, 0);
1015
+ };
1016
+ const strokeDashOffset = computed(
1017
+ () => calcStrokeDashOffset(clippedValue.value)
1018
+ );
1019
+ const secondaryStrokeDashOffset = computed(
1020
+ () => calcStrokeDashOffset(secondaryClippedValue.value)
1021
+ );
1022
+ const transformWedge = computed(() => `rotate(-90, ${radius}, ${radius})`);
1023
+ const disabled = computed(() => !Number.isFinite(__props.maxValue));
1024
+ return (_ctx, _cache) => {
1025
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
1026
+ (openBlock(), createElementBlock("svg", {
1027
+ height: diameter.value,
1028
+ width: diameter.value,
1029
+ viewBox: viewBox.value,
1030
+ class: "donut-chart"
1031
+ }, [
1032
+ createElementVNode("circle", {
1033
+ class: "background-circle",
1034
+ cx: radius,
1035
+ cy: radius,
1036
+ r: r.value,
1037
+ "stroke-width": backgroundStrokeWidth.value,
1038
+ fill: "transparent"
1039
+ }, null, 8, _hoisted_3$i),
1040
+ __props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
1041
+ key: 0,
1042
+ class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
1043
+ cx: radius,
1044
+ cy: radius,
1045
+ r: r.value,
1046
+ "stroke-width": strokeWidth.value,
1047
+ "stroke-dasharray": circumference.value,
1048
+ "stroke-dashoffset": secondaryStrokeDashOffset.value,
1049
+ fill: "transparent",
1050
+ transform: transformWedge.value
1051
+ }, null, 10, _hoisted_4$e)) : createCommentVNode("", true),
1052
+ !disabled.value ? (openBlock(), createElementBlock("circle", {
1053
+ key: 1,
1054
+ class: normalizeClass(["value-wedge", "primary-circle", { animate: __props.animate }]),
1055
+ cx: radius,
1056
+ cy: radius,
1057
+ r: r.value,
1058
+ "stroke-width": strokeWidth.value,
1059
+ "stroke-dasharray": circumference.value,
1060
+ "stroke-dashoffset": strokeDashOffset.value,
1061
+ fill: "transparent",
1062
+ transform: transformWedge.value
1063
+ }, null, 10, _hoisted_5$8)) : createCommentVNode("", true)
1064
+ ], 8, _hoisted_2$r)),
1065
+ __props.title ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
1066
+ createElementVNode("div", _hoisted_7$2, toDisplayString(__props.title), 1),
1067
+ __props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$2, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
1068
+ ])) : createCommentVNode("", true)
1069
+ ]);
1070
+ };
1071
+ }
1072
+ });
1073
+
1074
+ const KdsDonutChart = /* @__PURE__ */ _export_sfc$1(_sfc_main$16, [["__scopeId", "data-v-66e88c70"]]);
1075
+
960
1076
  const _hoisted_1$I = {
961
1077
  key: 0,
962
1078
  class: "label"
@@ -1091,11 +1207,22 @@ const resolveNuxtLinkComponent = () => {
1091
1207
  return fallbackComponent;
1092
1208
  };
1093
1209
 
1210
+ function isExternalUrl(url) {
1211
+ const normalized = url.trim();
1212
+ if (!normalized) {
1213
+ return false;
1214
+ }
1215
+ if (normalized.startsWith("#") || normalized.startsWith("/") && !normalized.startsWith("//") || normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("?")) {
1216
+ return false;
1217
+ }
1218
+ return true;
1219
+ }
1220
+
1094
1221
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1095
1222
  __name: "KdsLinkButton",
1096
1223
  props: {
1097
1224
  size: {},
1098
- disabled: { type: Boolean },
1225
+ disabled: { type: Boolean, default: false },
1099
1226
  title: {},
1100
1227
  variant: { default: "filled" },
1101
1228
  label: {},
@@ -1110,23 +1237,33 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1110
1237
  },
1111
1238
  emits: ["click"],
1112
1239
  setup(__props, { emit: __emit }) {
1113
- const props = createPropsRestProxy(__props, ["variant", "download", "rel", "target"]);
1240
+ const rawProps = createPropsRestProxy(__props, ["variant", "disabled", "download", "rel", "target"]);
1241
+ const props = computed(() => {
1242
+ if (isExternalUrl(rawProps.to)) {
1243
+ return {
1244
+ ...rawProps,
1245
+ trailingIcon: "external-link"
1246
+ };
1247
+ }
1248
+ return rawProps;
1249
+ });
1114
1250
  const component = computed(() => {
1115
- if (props.disabled) {
1251
+ if (__props.disabled) {
1116
1252
  return "button";
1117
1253
  }
1118
1254
  return resolveNuxtLinkComponent();
1119
1255
  });
1120
1256
  const emit = __emit;
1121
1257
  return (_ctx, _cache) => {
1122
- return openBlock(), createBlock(BaseButton, mergeProps(props, {
1258
+ return openBlock(), createBlock(BaseButton, mergeProps(props.value, {
1123
1259
  variant: __props.variant,
1260
+ disabled: __props.disabled,
1124
1261
  download: __props.download,
1125
1262
  rel: __props.rel,
1126
1263
  target: __props.target,
1127
1264
  component: component.value,
1128
1265
  onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event))
1129
- }), null, 16, ["variant", "download", "rel", "target", "component"]);
1266
+ }), null, 16, ["variant", "disabled", "download", "rel", "target", "component"]);
1130
1267
  };
1131
1268
  }
1132
1269
  });
@@ -1331,21 +1468,11 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1331
1468
  setup(__props, { emit: __emit }) {
1332
1469
  const emit = __emit;
1333
1470
  const linkComponent = resolveNuxtLinkComponent();
1334
- function inferVariantFromTo(to) {
1335
- const normalized = to.trim();
1336
- if (!normalized) {
1337
- return "internal";
1338
- }
1339
- if (normalized.startsWith("#") || normalized.startsWith("/") && !normalized.startsWith("//") || normalized.startsWith("./") || normalized.startsWith("../") || normalized.startsWith("?")) {
1340
- return "internal";
1341
- }
1342
- return "external";
1343
- }
1344
1471
  const variant = computed(() => {
1345
1472
  if (__props.download || __props.fileSize !== void 0) {
1346
1473
  return "document";
1347
1474
  }
1348
- return inferVariantFromTo(__props.to);
1475
+ return isExternalUrl(__props.to) ? "external" : "internal";
1349
1476
  });
1350
1477
  const effectiveTarget = computed(
1351
1478
  () => __props.target ?? (variant.value === "external" ? "_blank" : void 0)
@@ -1429,7 +1556,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1429
1556
  }
1430
1557
  });
1431
1558
 
1432
- const KdsLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["__scopeId", "data-v-65e776f1"]]);
1559
+ const KdsLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["__scopeId", "data-v-56e748a8"]]);
1433
1560
 
1434
1561
  const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1435
1562
  __name: "KdsToggleButton",
@@ -1558,7 +1685,7 @@ const kdsProgressButtonState = {
1558
1685
  };
1559
1686
  const kdsProgressButtonStates = Object.values(kdsProgressButtonState);
1560
1687
 
1561
- const _hoisted_1$F = { class: "kds-empty-state" };
1688
+ const _hoisted_1$F = ["aria-disabled"];
1562
1689
  const _hoisted_2$o = { class: "kds-empty-state-headline" };
1563
1690
  const _hoisted_3$h = {
1564
1691
  key: 1,
@@ -1573,12 +1700,14 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1573
1700
  props: {
1574
1701
  headline: {},
1575
1702
  description: {},
1703
+ loadingSpinner: { type: Boolean },
1704
+ disabled: { type: Boolean, default: false },
1576
1705
  button: {},
1577
- loadingSpinner: { type: Boolean }
1706
+ secondaryButton: {}
1578
1707
  },
1579
- emits: ["buttonClick"],
1708
+ emits: ["buttonClick", "secondaryButtonClick"],
1580
1709
  setup(__props, { emit: __emit }) {
1581
- const props = __props;
1710
+ const props = createPropsRestProxy(__props, ["disabled"]);
1582
1711
  const emit = __emit;
1583
1712
  const isLinkButton = computed(
1584
1713
  () => props.button && "to" in props.button && props.button.to !== void 0
@@ -1586,8 +1715,17 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1586
1715
  const buttonComponent = computed(
1587
1716
  () => isLinkButton.value ? _sfc_main$13 : _sfc_main$14
1588
1717
  );
1718
+ const isSecondaryLinkButton = computed(
1719
+ () => props.secondaryButton && "to" in props.secondaryButton && props.secondaryButton.to !== void 0
1720
+ );
1721
+ const secondaryButtonComponent = computed(
1722
+ () => isSecondaryLinkButton.value ? _sfc_main$13 : _sfc_main$14
1723
+ );
1589
1724
  return (_ctx, _cache) => {
1590
- return openBlock(), createElementBlock("div", _hoisted_1$F, [
1725
+ return openBlock(), createElementBlock("div", {
1726
+ class: normalizeClass(["kds-empty-state", { disabled: __props.disabled }]),
1727
+ "aria-disabled": __props.disabled || void 0
1728
+ }, [
1591
1729
  props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
1592
1730
  key: 0,
1593
1731
  "data-testid": "loading-spinner",
@@ -1599,15 +1737,20 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
1599
1737
  props.description ? (openBlock(), createElementBlock("p", _hoisted_3$h, toDisplayString(props.description), 1)) : createCommentVNode("", true),
1600
1738
  props.button ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
1601
1739
  (openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
1602
- onClick: _cache[0] || (_cache[0] = ($event) => emit("buttonClick", $event))
1603
- }), null, 16))
1740
+ disabled: props.button?.disabled || __props.disabled,
1741
+ onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("buttonClick", $event))
1742
+ }), null, 16, ["disabled"])),
1743
+ props.secondaryButton ? (openBlock(), createBlock(resolveDynamicComponent(secondaryButtonComponent.value), mergeProps({ key: 0 }, props.secondaryButton, {
1744
+ disabled: props.secondaryButton?.disabled || __props.disabled,
1745
+ onClick: _cache[1] || (_cache[1] = ($event) => !__props.disabled && emit("secondaryButtonClick", $event))
1746
+ }), null, 16, ["disabled"])) : createCommentVNode("", true)
1604
1747
  ])) : createCommentVNode("", true)
1605
- ]);
1748
+ ], 10, _hoisted_1$F);
1606
1749
  };
1607
1750
  }
1608
1751
  });
1609
1752
 
1610
- const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__scopeId", "data-v-5da4d570"]]);
1753
+ const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__scopeId", "data-v-e913660a"]]);
1611
1754
 
1612
1755
  const _sfc_main$_ = /* @__PURE__ */ defineComponent({
1613
1756
  __name: "ListItemAccessory",
@@ -1775,7 +1918,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
1775
1918
  }
1776
1919
  });
1777
1920
 
1778
- const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-822789ec"]]);
1921
+ const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-3bdbc9c1"]]);
1779
1922
 
1780
1923
  const _sfc_main$Y = { };
1781
1924
 
@@ -1784,7 +1927,7 @@ const _hoisted_1$D = { class: "kds-list-item-divider" };
1784
1927
  function _sfc_render$8(_ctx, _cache) {
1785
1928
  return (openBlock(), createElementBlock("hr", _hoisted_1$D))
1786
1929
  }
1787
- const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$Y, [['render',_sfc_render$8],['__scopeId',"data-v-3ee92695"]]);
1930
+ const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$Y, [['render',_sfc_render$8],['__scopeId',"data-v-7f982d9e"]]);
1788
1931
 
1789
1932
  const _hoisted_1$C = { class: "kds-list-item-section-title" };
1790
1933
  const _hoisted_2$m = {
@@ -1821,7 +1964,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
1821
1964
  }
1822
1965
  });
1823
1966
 
1824
- const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["__scopeId", "data-v-53382531"]]);
1967
+ const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["__scopeId", "data-v-5eeb1226"]]);
1825
1968
 
1826
1969
  const _hoisted_1$B = ["role", "aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
1827
1970
  const _hoisted_2$l = ["role"];
@@ -2102,7 +2245,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
2102
2245
  }
2103
2246
  });
2104
2247
 
2105
- const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["__scopeId", "data-v-d8750fc1"]]);
2248
+ const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["__scopeId", "data-v-9359aaf4"]]);
2106
2249
 
2107
2250
  const KdsListContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2108
2251
  __proto__: null,
@@ -2135,7 +2278,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2135
2278
  });
2136
2279
  return (_ctx, _cache) => {
2137
2280
  return openBlock(), createElementBlock("div", _hoisted_1$A, [
2138
- createVNode(KdsListContainer, {
2281
+ createVNode(unref(KdsListContainer), {
2139
2282
  id: props.id,
2140
2283
  ref_key: "listContainerEl",
2141
2284
  ref: listContainerEl,
@@ -2151,7 +2294,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
2151
2294
  }
2152
2295
  });
2153
2296
 
2154
- const KdsMenuContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["__scopeId", "data-v-d87656d8"]]);
2297
+ const KdsMenuContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["__scopeId", "data-v-7a0323dd"]]);
2155
2298
 
2156
2299
  const _hoisted_1$z = ["id", "popover", "role"];
2157
2300
  const _hoisted_2$k = {
@@ -2386,7 +2529,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
2386
2529
  }
2387
2530
  });
2388
2531
 
2389
- const KdsSplitButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["__scopeId", "data-v-f72917bd"]]);
2532
+ const KdsSplitButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["__scopeId", "data-v-8f48b87a"]]);
2390
2533
 
2391
2534
  const kdsButtonSize = {
2392
2535
  XSMALL: "xsmall",
@@ -4078,7 +4221,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
4078
4221
  }
4079
4222
  });
4080
4223
 
4081
- const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-1740ce83"]]);
4224
+ const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-c9f1be40"]]);
4082
4225
 
4083
4226
  const HEX_RADIX = 16;
4084
4227
  const RGB_MAX = 255;
@@ -15254,7 +15397,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
15254
15397
  }
15255
15398
  });
15256
15399
 
15257
- const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-f75ebe1b"]]);
15400
+ const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-8c697d02"]]);
15258
15401
 
15259
15402
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
15260
15403
  __name: "KdsDateTimeFormatInput",
@@ -15664,7 +15807,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15664
15807
  }
15665
15808
  });
15666
15809
 
15667
- const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-b1809b6d"]]);
15810
+ const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-3094963a"]]);
15668
15811
 
15669
15812
  const _hoisted_1$n = ["rows", "placeholder", "disabled", "autocomplete"];
15670
15813
  const DEFAULT_ROWS = 3;
@@ -15848,7 +15991,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15848
15991
  }
15849
15992
  });
15850
15993
 
15851
- const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-cf3becf9"]]);
15994
+ const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-0f4de8fb"]]);
15852
15995
 
15853
15996
  const DROPDOWN_SEARCH_THRESHOLD = 12;
15854
15997
 
@@ -15973,7 +16116,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15973
16116
  }
15974
16117
  });
15975
16118
 
15976
- const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-db105594"]]);
16119
+ const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-e61a9cf9"]]);
15977
16120
 
15978
16121
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
15979
16122
  __name: "KdsDropdown",
@@ -16106,12 +16249,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16106
16249
  }
16107
16250
  });
16108
16251
 
16109
- const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-13945d12"]]);
16252
+ const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-21fb5571"]]);
16110
16253
 
16111
16254
  const _hoisted_1$j = { class: "kds-multi-select-dropdown-options" };
16112
- const _hoisted_2$8 = { class: "kds-multi-select-dropdown-search" };
16113
- const _hoisted_3$7 = {
16255
+ const _hoisted_2$8 = {
16114
16256
  key: 0,
16257
+ class: "kds-multi-select-dropdown-search"
16258
+ };
16259
+ const _hoisted_3$7 = {
16260
+ key: 1,
16115
16261
  class: "kds-multi-select-dropdown-footer"
16116
16262
  };
16117
16263
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
@@ -16150,6 +16296,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16150
16296
  (option) => option.text.toLowerCase().includes(normalizedQuery)
16151
16297
  );
16152
16298
  });
16299
+ const searchable = computed(() => {
16300
+ return __props.allowNewValues || props.possibleValues.length >= DROPDOWN_SEARCH_THRESHOLD;
16301
+ });
16153
16302
  const canAddNewValue = computed(() => {
16154
16303
  const trimmed = searchValue.value.trim();
16155
16304
  if (!__props.allowNewValues || trimmed.length === 0) {
@@ -16226,19 +16375,23 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16226
16375
  __expose({
16227
16376
  focus: () => {
16228
16377
  initialSelectedIds.value = new Set(modelValue.value);
16229
- searchEl.value?.focus();
16378
+ if (searchable.value) {
16379
+ searchEl.value?.focus();
16380
+ } else {
16381
+ listContainerRef.value?.focus();
16382
+ }
16230
16383
  }
16231
16384
  });
16232
16385
  return (_ctx, _cache) => {
16233
16386
  return openBlock(), createElementBlock("div", _hoisted_1$j, [
16234
- createElementVNode("div", _hoisted_2$8, [
16387
+ searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
16235
16388
  createVNode(BaseInput, {
16236
16389
  ref_key: "searchEl",
16237
16390
  ref: searchEl,
16238
16391
  modelValue: searchValue.value,
16239
16392
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchValue.value = $event),
16240
16393
  type: "search",
16241
- placeholder: "Search",
16394
+ placeholder: __props.allowNewValues ? "Search or add new" : "Search",
16242
16395
  "aria-label": "Filter options",
16243
16396
  "aria-activedescendant": listContainerRef.value?.activeDescendant,
16244
16397
  "leading-icon": "search",
@@ -16246,8 +16399,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16246
16399
  onKeydown: _cache[1] || (_cache[1] = ($event) => listContainerRef.value?.handleKeydown($event)),
16247
16400
  onFocus: _cache[2] || (_cache[2] = ($event) => listContainerRef.value?.handleFocus()),
16248
16401
  onBlur: _cache[3] || (_cache[3] = ($event) => listContainerRef.value?.handleBlur())
16249
- }, null, 8, ["modelValue", "aria-activedescendant"])
16250
- ]),
16402
+ }, null, 8, ["modelValue", "placeholder", "aria-activedescendant"])
16403
+ ])) : createCommentVNode("", true),
16251
16404
  createVNode(unref(KdsListContainer), {
16252
16405
  ref: "listContainer",
16253
16406
  class: normalizeClass(["kds-multi-select-dropdown-list", {
@@ -16256,10 +16409,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16256
16409
  "possible-values": __props.loading ? [] : listOptions.value,
16257
16410
  loading: __props.loading,
16258
16411
  "empty-text": props.emptyText,
16259
- "controlled-externally": "",
16412
+ "controlled-externally": searchable.value,
16260
16413
  "aria-label": "Dropdown options",
16261
16414
  onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
16262
- }, null, 8, ["class", "possible-values", "loading", "empty-text"]),
16415
+ }, null, 8, ["class", "possible-values", "loading", "empty-text", "controlled-externally"]),
16263
16416
  !__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
16264
16417
  createVNode(unref(KdsListItemButton), {
16265
16418
  label: anyVisibleSelected.value ? "Clear all" : "Select all",
@@ -16273,7 +16426,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16273
16426
  }
16274
16427
  });
16275
16428
 
16276
- const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-9b631765"]]);
16429
+ const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-68fe366f"]]);
16277
16430
 
16278
16431
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
16279
16432
  __name: "KdsMultiSelectDropdown",
@@ -17137,8 +17290,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
17137
17290
  visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
17138
17291
  createVNode(KdsEmptyState, {
17139
17292
  headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
17140
- "loading-spinner": __props.loading
17141
- }, null, 8, ["headline", "loading-spinner"])
17293
+ "loading-spinner": __props.loading,
17294
+ disabled: __props.disabled
17295
+ }, null, 8, ["headline", "loading-spinner", "disabled"])
17142
17296
  ])) : createCommentVNode("", true)
17143
17297
  ], 6)
17144
17298
  ]),
@@ -17151,7 +17305,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
17151
17305
  }
17152
17306
  });
17153
17307
 
17154
- const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-24af1af0"]]);
17308
+ const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-ee1c7bd0"]]);
17155
17309
 
17156
17310
  const _hoisted_1$f = { class: "kds-list-column" };
17157
17311
  const _hoisted_2$5 = { class: "kds-list-header" };
@@ -17439,7 +17593,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
17439
17593
  }
17440
17594
  });
17441
17595
 
17442
- const TwinListBody = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-8a9e1b15"]]);
17596
+ const TwinListBody = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-11062d8e"]]);
17443
17597
 
17444
17598
  const kdsTwinListSearchMode = {
17445
17599
  MANUAL: "manual",
@@ -19283,5 +19437,5 @@ const kdsResponsiveButtonGroupAlignments = Object.values(
19283
19437
  kdsResponsiveButtonGroupAlignment
19284
19438
  );
19285
19439
 
19286
- export { KdsAvatar, KdsBadge, _sfc_main$14 as KdsButton, KdsCardClickable, _sfc_main$O as KdsCheckbox, KdsCheckboxGroup, _sfc_main$B as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$x as KdsDateInput, _sfc_main$v as KdsDateTimeFormatInput, _sfc_main$p as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, KdsLink, _sfc_main$13 as KdsLinkButton, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$T as KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$m as KdsMultiSelectDropdown, _sfc_main$F as KdsNumberInput, KdsPanelButtonBar, KdsPanelHeader, _sfc_main$A as KdsPasswordInput, _sfc_main$u as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$11 as KdsToggleButton, KdsTwinList, _sfc_main$z as KdsUsernameInput, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsDateFormatCategories, kdsDateFormatCategory, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSkeletonVariant, kdsLoadingSkeletonVariants, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
19440
+ export { KdsAvatar, KdsBadge, _sfc_main$14 as KdsButton, KdsCardClickable, _sfc_main$O as KdsCheckbox, KdsCheckboxGroup, _sfc_main$B as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$x as KdsDateInput, _sfc_main$v as KdsDateTimeFormatInput, KdsDonutChart, _sfc_main$p as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, KdsLink, _sfc_main$13 as KdsLinkButton, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$T as KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$m as KdsMultiSelectDropdown, _sfc_main$F as KdsNumberInput, KdsPanelButtonBar, KdsPanelHeader, _sfc_main$A as KdsPasswordInput, _sfc_main$u as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$11 as KdsToggleButton, KdsTwinList, _sfc_main$z as KdsUsernameInput, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsDateFormatCategories, kdsDateFormatCategory, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSkeletonVariant, kdsLoadingSkeletonVariants, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
19287
19441
  //# sourceMappingURL=index.js.map