@knime/kds-components 0.28.1 → 0.28.3

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/dist/index.js CHANGED
@@ -1033,7 +1033,7 @@ const _hoisted_2$y = ["height", "width", "viewBox"];
1033
1033
  const _hoisted_3$q = ["r", "stroke-width"];
1034
1034
  const _hoisted_4$l = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
1035
1035
  const _hoisted_5$b = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
1036
- const _hoisted_6$9 = {
1036
+ const _hoisted_6$a = {
1037
1037
  key: 0,
1038
1038
  class: "donut-text"
1039
1039
  };
@@ -1044,7 +1044,6 @@ const _hoisted_8$3 = {
1044
1044
  };
1045
1045
  const radius = 22;
1046
1046
  const innerRadius = 10;
1047
- const backgroundStrokeOffset = 0.5;
1048
1047
  const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1049
1048
  __name: "KdsDonutChart",
1050
1049
  props: {
@@ -1066,10 +1065,6 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1066
1065
  return __props.acceptValuesLargerThanMax ? clipValue : Math.min(clipValue, __props.maxValue);
1067
1066
  });
1068
1067
  const strokeWidth = computed(() => radius - innerRadius);
1069
- const backgroundStrokeWidth = computed(
1070
- // to account for rendering inaccuracies the background stroke is slightly smaller than the wedge stroke
1071
- () => strokeWidth.value - backgroundStrokeOffset
1072
- );
1073
1068
  const r = computed(() => radius - strokeWidth.value / 2);
1074
1069
  const diameter = computed(() => 2 * radius);
1075
1070
  const viewBox = computed(() => `0 0 ${diameter.value} ${diameter.value}`);
@@ -1105,7 +1100,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1105
1100
  cx: radius,
1106
1101
  cy: radius,
1107
1102
  r: r.value,
1108
- "stroke-width": backgroundStrokeWidth.value,
1103
+ "stroke-width": strokeWidth.value,
1109
1104
  fill: "transparent"
1110
1105
  }, null, 8, _hoisted_3$q),
1111
1106
  __props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
@@ -1133,7 +1128,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1133
1128
  transform: transformWedge.value
1134
1129
  }, null, 10, _hoisted_5$b)) : createCommentVNode("", true)
1135
1130
  ], 8, _hoisted_2$y)),
1136
- __props.title ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
1131
+ __props.title ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
1137
1132
  createElementVNode("div", _hoisted_7$3, toDisplayString(__props.title), 1),
1138
1133
  __props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
1139
1134
  ])) : createCommentVNode("", true)
@@ -1142,7 +1137,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
1142
1137
  }
1143
1138
  });
1144
1139
 
1145
- const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-c5a5b387"]]);
1140
+ const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-f5faf61c"]]);
1146
1141
 
1147
1142
  const _sfc_main$1n = { };
1148
1143
 
@@ -2043,7 +2038,7 @@ const _hoisted_5$a = {
2043
2038
  key: 0,
2044
2039
  class: "prefix"
2045
2040
  };
2046
- const _hoisted_6$8 = ["title"];
2041
+ const _hoisted_6$9 = ["title"];
2047
2042
  const _hoisted_7$2 = { class: "trailing-item" };
2048
2043
  const _hoisted_8$2 = {
2049
2044
  key: 0,
@@ -2136,7 +2131,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
2136
2131
  ref: subtextEl,
2137
2132
  class: "subtext",
2138
2133
  title: unref(isSubtextTruncated) ? props.subText : void 0
2139
- }, toDisplayString(props.subText), 9, _hoisted_6$8)) : createCommentVNode("", true)
2134
+ }, toDisplayString(props.subText), 9, _hoisted_6$9)) : createCommentVNode("", true)
2140
2135
  ]),
2141
2136
  createElementVNode("span", _hoisted_7$2, [
2142
2137
  props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_8$2, toDisplayString(props.shortcut), 1)) : props.badge ? (openBlock(), createBlock(KdsBadge, {
@@ -2956,7 +2951,7 @@ const _hoisted_2$r = { class: "kds-preview-list-title-row" };
2956
2951
  const _hoisted_3$m = { class: "kds-preview-list-content" };
2957
2952
  const _hoisted_4$i = { class: "kds-preview-list-headline" };
2958
2953
  const _hoisted_5$9 = ["aria-label"];
2959
- const _hoisted_6$7 = { class: "kds-preview-list-show-hide" };
2954
+ const _hoisted_6$8 = { class: "kds-preview-list-show-hide" };
2960
2955
  const DEFAULT_MAX_VISIBLE_ITEMS = 6;
2961
2956
  const _sfc_main$14 = /* @__PURE__ */ defineComponent({
2962
2957
  __name: "KdsPreviewList",
@@ -3043,7 +3038,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3043
3038
  ], 512), [
3044
3039
  [vShow, expanded.value]
3045
3040
  ]),
3046
- createElementVNode("footer", _hoisted_6$7, [
3041
+ createElementVNode("footer", _hoisted_6$8, [
3047
3042
  createVNode(_sfc_main$1l, {
3048
3043
  class: "kds-preview-list-toggle",
3049
3044
  label: expanded.value ? "Hide all" : "Show all",
@@ -3151,7 +3146,7 @@ const _hoisted_3$l = {
3151
3146
  };
3152
3147
  const _hoisted_4$h = { class: "label" };
3153
3148
  const _hoisted_5$8 = ["id"];
3154
- const _hoisted_6$6 = {
3149
+ const _hoisted_6$7 = {
3155
3150
  key: 0,
3156
3151
  class: "subtext-wrapper"
3157
3152
  };
@@ -3245,7 +3240,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3245
3240
  }, toDisplayString(props.helperText), 9, _hoisted_5$8)) : createCommentVNode("", true)
3246
3241
  ])) : createCommentVNode("", true)
3247
3242
  ], 10, _hoisted_1$F),
3248
- props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
3243
+ props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
3249
3244
  createVNode(KdsSubText, {
3250
3245
  id: unref(descriptionId),
3251
3246
  "sub-text": props.subText,
@@ -3470,7 +3465,7 @@ const _hoisted_3$j = {
3470
3465
  };
3471
3466
  const _hoisted_4$f = { class: "content" };
3472
3467
  const _hoisted_5$7 = { class: "label" };
3473
- const _hoisted_6$5 = ["id"];
3468
+ const _hoisted_6$6 = ["id"];
3474
3469
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3475
3470
  __name: "KdsRadioButton",
3476
3471
  props: /* @__PURE__ */ mergeModels({
@@ -3526,7 +3521,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
3526
3521
  key: 0,
3527
3522
  id: `${unref(id)}-helper`,
3528
3523
  class: "helper-text"
3529
- }, toDisplayString(props.helperText), 9, _hoisted_6$5)) : createCommentVNode("", true)
3524
+ }, toDisplayString(props.helperText), 9, _hoisted_6$6)) : createCommentVNode("", true)
3530
3525
  ])
3531
3526
  ], 10, _hoisted_1$D);
3532
3527
  };
@@ -4694,7 +4689,7 @@ const _hoisted_5$6 = {
4694
4689
  key: 4,
4695
4690
  class: "trailing-slot"
4696
4691
  };
4697
- const _hoisted_6$4 = {
4692
+ const _hoisted_6$5 = {
4698
4693
  key: 5,
4699
4694
  class: "icon-wrapper trailing"
4700
4695
  };
@@ -4923,7 +4918,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
4923
4918
  _ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
4924
4919
  renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
4925
4920
  ])) : createCommentVNode("", true),
4926
- props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
4921
+ props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$5, [
4927
4922
  createVNode(KdsIcon, {
4928
4923
  name: props.trailingIcon
4929
4924
  }, null, 8, ["name"])
@@ -11016,7 +11011,7 @@ const _hoisted_4$c = {
11016
11011
  "aria-live": "polite"
11017
11012
  };
11018
11013
  const _hoisted_5$5 = { class: "kds-date-picker-nav-block" };
11019
- const _hoisted_6$3 = { class: "kds-date-picker-body" };
11014
+ const _hoisted_6$4 = { class: "kds-date-picker-body" };
11020
11015
  const MONTHS_PER_YEAR = 12;
11021
11016
  const YEAR_PAGE_SIZE = 15;
11022
11017
  const REFERENCE_YEAR = 2024;
@@ -11265,7 +11260,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11265
11260
  }, null, 8, ["disabled"])) : createCommentVNode("", true)
11266
11261
  ])
11267
11262
  ]),
11268
- createElementVNode("div", _hoisted_6$3, [
11263
+ createElementVNode("div", _hoisted_6$4, [
11269
11264
  view.value === "day" ? (openBlock(), createBlock(DatePickerDayGrid, {
11270
11265
  key: 0,
11271
11266
  ref_key: "dayGridRef",
@@ -12262,7 +12257,7 @@ const _hoisted_5$4 = {
12262
12257
  key: 1,
12263
12258
  class: "kds-time-picker-actions"
12264
12259
  };
12265
- const _hoisted_6$2 = {
12260
+ const _hoisted_6$3 = {
12266
12261
  key: 2,
12267
12262
  class: "kds-time-picker-actions"
12268
12263
  };
@@ -12434,7 +12429,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
12434
12429
  onClick: addMilliseconds
12435
12430
  })
12436
12431
  ])) : createCommentVNode("", true)
12437
- ], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
12432
+ ], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
12438
12433
  createVNode(_sfc_main$1l, {
12439
12434
  variant: "outlined",
12440
12435
  size: "small",
@@ -14829,7 +14824,7 @@ const _hoisted_4$7 = {
14829
14824
  class: "kds-list-count"
14830
14825
  };
14831
14826
  const _hoisted_5$3 = { class: "kds-button-column" };
14832
- const _hoisted_6$1 = { class: "kds-list-column" };
14827
+ const _hoisted_6$2 = { class: "kds-list-column" };
14833
14828
  const _hoisted_7$1 = { class: "kds-list-header" };
14834
14829
  const _hoisted_8$1 = { class: "kds-list-label" };
14835
14830
  const _hoisted_9$1 = {
@@ -15077,7 +15072,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
15077
15072
  ]))
15078
15073
  }, null, 8, ["disabled"])
15079
15074
  ]),
15080
- createElementVNode("div", _hoisted_6$1, [
15075
+ createElementVNode("div", _hoisted_6$2, [
15081
15076
  createElementVNode("div", _hoisted_7$1, [
15082
15077
  createElementVNode("span", _hoisted_8$1, toDisplayString(__props.includeLabel), 1),
15083
15078
  !__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_9$1, toDisplayString(rightOptions.value.length) + " of " + toDisplayString(includedItems.value.length), 1)) : createCommentVNode("", true)
@@ -15845,10 +15840,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
15845
15840
  const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b6d29842"]]);
15846
15841
 
15847
15842
  const _hoisted_1$c = { class: "kds-accordion" };
15848
- const _hoisted_2$7 = ["id", "aria-expanded", "aria-controls", "disabled", "onClick", "onKeydown"];
15849
- const _hoisted_3$7 = { class: "kds-accordion-headline-container" };
15850
- const _hoisted_4$5 = { class: "kds-accordion-headline" };
15851
- const _hoisted_5$2 = ["id", "aria-labelledby", "hidden"];
15843
+ const _hoisted_2$7 = ["name", "open", "onToggle"];
15844
+ const _hoisted_3$7 = ["aria-disabled", "tabindex", "onClick", "onKeydown"];
15845
+ const _hoisted_4$5 = { class: "kds-accordion-headline-container" };
15846
+ const _hoisted_5$2 = { class: "kds-accordion-headline" };
15847
+ const _hoisted_6$1 = { class: "kds-accordion-content" };
15852
15848
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
15853
15849
  __name: "KdsAccordion",
15854
15850
  props: /* @__PURE__ */ mergeModels({
@@ -15893,19 +15889,35 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15893
15889
  );
15894
15890
  const expandedItems = computed(() => normalizedModelExpandedItems.value);
15895
15891
  const isItemExpanded = (itemId) => expandedItems.value.includes(itemId);
15896
- const toggleItem = (item) => {
15892
+ const onSummaryClick = (event, item) => {
15893
+ if (item.disabled) {
15894
+ event.preventDefault();
15895
+ }
15896
+ };
15897
+ const onDetailsToggle = (event, item) => {
15898
+ const detailsEl = event.currentTarget;
15899
+ if (!(detailsEl instanceof HTMLDetailsElement)) {
15900
+ return;
15901
+ }
15902
+ const isOpen = detailsEl.open;
15897
15903
  if (item.disabled) {
15904
+ if (isOpen !== isItemExpanded(item.id)) {
15905
+ detailsEl.open = isItemExpanded(item.id);
15906
+ }
15898
15907
  return;
15899
15908
  }
15900
- if (isItemExpanded(item.id)) {
15901
- setExpandedItems(expandedItems.value.filter((id) => id !== item.id));
15909
+ if (isOpen === isItemExpanded(item.id)) {
15902
15910
  return;
15903
15911
  }
15904
- if (__props.singleExpand) {
15905
- setExpandedItems([item.id]);
15912
+ if (isOpen) {
15913
+ if (__props.singleExpand) {
15914
+ setExpandedItems([item.id]);
15915
+ return;
15916
+ }
15917
+ setExpandedItems([...expandedItems.value, item.id]);
15906
15918
  return;
15907
15919
  }
15908
- setExpandedItems([...expandedItems.value, item.id]);
15920
+ setExpandedItems(expandedItems.value.filter((id) => id !== item.id));
15909
15921
  };
15910
15922
  const triggerRefs = ref({});
15911
15923
  const setTriggerRef = (itemId, triggerEl) => {
@@ -15915,7 +15927,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15915
15927
  } else if (triggerEl) {
15916
15928
  element = triggerEl.$el;
15917
15929
  }
15918
- if (element instanceof HTMLButtonElement) {
15930
+ if (element instanceof HTMLElement) {
15919
15931
  triggerRefs.value[itemId] = element;
15920
15932
  return;
15921
15933
  }
@@ -15954,58 +15966,53 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15954
15966
  }
15955
15967
  };
15956
15968
  const accordionId = useId();
15957
- const getItemTriggerId = (itemId) => `${accordionId}-trigger-${itemId}`;
15958
- const getItemContentId = (itemId) => `${accordionId}-content-${itemId}`;
15969
+ const exclusiveGroupName = computed(
15970
+ () => __props.singleExpand ? `kds-accordion-${accordionId}` : void 0
15971
+ );
15959
15972
  return (_ctx, _cache) => {
15960
15973
  return openBlock(), createElementBlock("div", _hoisted_1$c, [
15961
15974
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
15962
- return openBlock(), createElementBlock("div", {
15975
+ return openBlock(), createElementBlock("details", {
15963
15976
  key: item.id,
15964
- class: "kds-accordion-item"
15977
+ class: "kds-accordion-item",
15978
+ name: exclusiveGroupName.value,
15979
+ open: isItemExpanded(item.id),
15980
+ onToggle: ($event) => onDetailsToggle($event, item)
15965
15981
  }, [
15966
- createElementVNode("button", {
15967
- id: getItemTriggerId(item.id),
15982
+ createElementVNode("summary", {
15968
15983
  ref_for: true,
15969
15984
  ref: (triggerEl) => setTriggerRef(item.id, triggerEl),
15970
15985
  class: "kds-accordion-header",
15971
- type: "button",
15972
- "aria-expanded": isItemExpanded(item.id),
15973
- "aria-controls": getItemContentId(item.id),
15974
- disabled: item.disabled,
15975
- onClick: ($event) => toggleItem(item),
15986
+ "aria-disabled": item.disabled || void 0,
15987
+ tabindex: item.disabled ? -1 : void 0,
15988
+ onClick: ($event) => onSummaryClick($event, item),
15976
15989
  onKeydown: ($event) => handleTriggerKeydown($event, item)
15977
15990
  }, [
15978
- createElementVNode("span", _hoisted_3$7, [
15991
+ createElementVNode("span", _hoisted_4$5, [
15979
15992
  item.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
15980
15993
  key: 0,
15981
15994
  name: item.leadingIcon,
15982
15995
  size: "small",
15983
15996
  disabled: item.disabled
15984
15997
  }, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
15985
- createElementVNode("span", _hoisted_4$5, toDisplayString(item.headline), 1)
15998
+ createElementVNode("span", _hoisted_5$2, toDisplayString(item.headline), 1)
15986
15999
  ]),
15987
16000
  createVNode(KdsIcon, {
15988
16001
  name: isItemExpanded(item.id) ? "chevron-up" : "chevron-down",
15989
16002
  size: "small"
15990
16003
  }, null, 8, ["name"])
15991
- ], 40, _hoisted_2$7),
15992
- createElementVNode("div", {
15993
- id: getItemContentId(item.id),
15994
- class: "kds-accordion-content",
15995
- role: "group",
15996
- "aria-labelledby": getItemTriggerId(item.id),
15997
- hidden: !isItemExpanded(item.id)
15998
- }, [
16004
+ ], 40, _hoisted_3$7),
16005
+ createElementVNode("div", _hoisted_6$1, [
15999
16006
  renderSlot(_ctx.$slots, item.id, { item }, void 0, true)
16000
- ], 8, _hoisted_5$2)
16001
- ]);
16007
+ ])
16008
+ ], 40, _hoisted_2$7);
16002
16009
  }), 128))
16003
16010
  ]);
16004
16011
  };
16005
16012
  }
16006
16013
  });
16007
16014
 
16008
- const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-66485734"]]);
16015
+ const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0beea165"]]);
16009
16016
 
16010
16017
  const _hoisted_1$b = { class: "kds-card-header" };
16011
16018
  const _hoisted_2$6 = {
@@ -16038,7 +16045,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16038
16045
  }
16039
16046
  });
16040
16047
 
16041
- const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-9be14436"]]);
16048
+ const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-09093cc0"]]);
16042
16049
 
16043
16050
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
16044
16051
  __name: "BaseCard",
@@ -16320,20 +16327,35 @@ const kdsCardVariant = {
16320
16327
  };
16321
16328
  const kdsCardVariants = Object.values(kdsCardVariant);
16322
16329
 
16330
+ const kdsPanelBodyOverflow = {
16331
+ AUTO: "auto",
16332
+ HIDDEN: "hidden",
16333
+ VISIBLE: "visible"
16334
+ };
16335
+ const kdsPanelBodyOverflows = Object.values(kdsPanelBodyOverflow);
16336
+ const kdsPanelBodyVariant = {
16337
+ PADDED: "padded",
16338
+ PLAIN: "plain"
16339
+ };
16340
+ const kdsPanelBodyVariants = Object.values(kdsPanelBodyVariant);
16341
+
16323
16342
  const _hoisted_1$8 = { class: "kds-panel" };
16324
- const _hoisted_2$5 = { class: "kds-panel-header" };
16343
+ const _hoisted_2$5 = {
16344
+ key: 0,
16345
+ class: "kds-panel-header"
16346
+ };
16325
16347
  const _hoisted_3$5 = ["id"];
16326
16348
  const _hoisted_4$3 = {
16327
16349
  key: 0,
16328
16350
  class: "kds-panel-headline-text"
16329
16351
  };
16330
16352
  const _hoisted_5$1 = {
16331
- key: 0,
16353
+ key: 1,
16332
16354
  class: "kds-panel-header-trailing"
16333
16355
  };
16334
- const _hoisted_6 = ["aria-labelledby"];
16356
+ const _hoisted_6 = ["data-variant", "tabindex", "aria-labelledby", "aria-label"];
16335
16357
  const _hoisted_7 = {
16336
- key: 0,
16358
+ key: 1,
16337
16359
  class: "kds-panel-footer"
16338
16360
  };
16339
16361
  const _hoisted_8 = { class: "kds-panel-footer-leading" };
@@ -16344,14 +16366,36 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16344
16366
  headline: {},
16345
16367
  headlineTrailingActions: {},
16346
16368
  footerLeadingActions: {},
16347
- footerTrailingActions: {}
16369
+ footerTrailingActions: {},
16370
+ ariaLabel: {},
16371
+ bodyOverflow: { default: () => kdsPanelBodyOverflow.AUTO },
16372
+ bodyVariant: { default: () => kdsPanelBodyVariant.PADDED }
16348
16373
  },
16349
16374
  setup(__props) {
16375
+ useCssVars((_ctx) => ({
16376
+ "cd61c39a": _ctx.bodyOverflow
16377
+ }));
16350
16378
  const headlineId = useId();
16379
+ const hasHeader = computed(
16380
+ () => Boolean(__props.headline) || Boolean(__props.headlineTrailingActions?.length)
16381
+ );
16382
+ const isBodyKeyboardFocusable = computed(
16383
+ () => __props.bodyOverflow !== kdsPanelBodyOverflow.HIDDEN
16384
+ );
16385
+ const bodyAriaLabel = computed(
16386
+ () => isBodyKeyboardFocusable.value && __props.ariaLabel ? __props.ariaLabel : void 0
16387
+ );
16388
+ const slotHeadlineId = computed(
16389
+ () => typeof __props.headline === "string" ? headlineId : void 0
16390
+ );
16391
+ const bodyAriaLabelledBy = computed(
16392
+ () => isBodyKeyboardFocusable.value && !bodyAriaLabel.value ? slotHeadlineId.value : void 0
16393
+ );
16351
16394
  return (_ctx, _cache) => {
16352
16395
  return openBlock(), createElementBlock("div", _hoisted_1$8, [
16353
- createElementVNode("div", _hoisted_2$5, [
16354
- createElementVNode("div", {
16396
+ hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
16397
+ __props.headline ? (openBlock(), createElementBlock("div", {
16398
+ key: 0,
16355
16399
  id: unref(headlineId),
16356
16400
  class: "kds-panel-headline"
16357
16401
  }, [
@@ -16362,7 +16406,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16362
16406
  size: "small",
16363
16407
  onItemClick: __props.headline.onItemClick
16364
16408
  }), null, 16, ["onItemClick"])) : createCommentVNode("", true)
16365
- ], 8, _hoisted_3$5),
16409
+ ], 8, _hoisted_3$5)) : createCommentVNode("", true),
16366
16410
  __props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
16367
16411
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
16368
16412
  return openBlock(), createElementBlock(Fragment, { key: index }, [
@@ -16394,13 +16438,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16394
16438
  ], 64);
16395
16439
  }), 128))
16396
16440
  ])) : createCommentVNode("", true)
16397
- ]),
16441
+ ])) : createCommentVNode("", true),
16398
16442
  createElementVNode("div", {
16399
16443
  class: "kds-panel-body",
16400
- tabindex: "0",
16401
- "aria-labelledby": unref(headlineId)
16444
+ "data-variant": __props.bodyVariant,
16445
+ tabindex: isBodyKeyboardFocusable.value ? 0 : void 0,
16446
+ "aria-labelledby": bodyAriaLabelledBy.value,
16447
+ "aria-label": bodyAriaLabel.value
16402
16448
  }, [
16403
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
16449
+ renderSlot(_ctx.$slots, "default", { headlineId: slotHeadlineId.value }, void 0, true)
16404
16450
  ], 8, _hoisted_6),
16405
16451
  __props.footerLeadingActions?.length || __props.footerTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
16406
16452
  createElementVNode("div", _hoisted_8, [
@@ -16429,7 +16475,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
16429
16475
  }
16430
16476
  });
16431
16477
 
16432
- const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-c55a379c"]]);
16478
+ const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b56ad38d"]]);
16433
16479
 
16434
16480
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
16435
16481
  __name: "TabBarItemAccessory",
@@ -17584,5 +17630,5 @@ const kdsResponsiveButtonGroupAlignments = Object.values(
17584
17630
  kdsResponsiveButtonGroupAlignment
17585
17631
  );
17586
17632
 
17587
- export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, _sfc_main$1l as KdsButton, _sfc_main$e as KdsCard, _sfc_main$10 as KdsCheckbox, KdsCheckboxGroup, KdsClickableCard, _sfc_main$P as KdsColorInput, KdsColorSwatch, _sfc_main$15 as KdsContextMenu, KdsDataType, _sfc_main$I as KdsDateInput, _sfc_main$G as KdsDateTimeFormatInput, KdsDivider, KdsDonutChart, _sfc_main$w as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, _sfc_main$z as KdsIntervalInput, KdsLabel, KdsLink, _sfc_main$1k as KdsLinkButton, KdsLinkCard, KdsListContainer, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$16 as KdsMenu, _sfc_main$1a as KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$t as KdsMultiSelectDropdown, KdsNavItem, KdsNavigation, _sfc_main$T as KdsNumberInput, KdsPanel, _sfc_main$O as KdsPasswordInput, _sfc_main$F as KdsPatternInput, KdsPreviewList, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSelectableCard, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$B as KdsTimeInput, _sfc_main$1i as KdsToggleButton, KdsTwinList, _sfc_main$N 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, kdsIntervalDirectionalities, kdsIntervalDirectionality, kdsIntervalInputFormat, kdsIntervalInputFormats, 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, kdsTimeInputGranularities, kdsTimeInputGranularity, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
17633
+ export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, _sfc_main$1l as KdsButton, _sfc_main$e as KdsCard, _sfc_main$10 as KdsCheckbox, KdsCheckboxGroup, KdsClickableCard, _sfc_main$P as KdsColorInput, KdsColorSwatch, _sfc_main$15 as KdsContextMenu, KdsDataType, _sfc_main$I as KdsDateInput, _sfc_main$G as KdsDateTimeFormatInput, KdsDivider, KdsDonutChart, _sfc_main$w as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, _sfc_main$z as KdsIntervalInput, KdsLabel, KdsLink, _sfc_main$1k as KdsLinkButton, KdsLinkCard, KdsListContainer, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$16 as KdsMenu, _sfc_main$1a as KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$t as KdsMultiSelectDropdown, KdsNavItem, KdsNavigation, _sfc_main$T as KdsNumberInput, KdsPanel, _sfc_main$O as KdsPasswordInput, _sfc_main$F as KdsPatternInput, KdsPreviewList, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSelectableCard, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$B as KdsTimeInput, _sfc_main$1i as KdsToggleButton, KdsTwinList, _sfc_main$N 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, kdsIntervalDirectionalities, kdsIntervalDirectionality, kdsIntervalInputFormat, kdsIntervalInputFormats, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSkeletonVariant, kdsLoadingSkeletonVariants, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPanelBodyOverflow, kdsPanelBodyOverflows, kdsPanelBodyVariant, kdsPanelBodyVariants, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsTimeInputGranularities, kdsTimeInputGranularity, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
17588
17634
  //# sourceMappingURL=index.js.map