@knime/kds-components 0.28.1 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +15 -12
- package/dist/index.js +53 -14
- package/dist/index.js.map +1 -1
- package/dist/src/layouts/Panel/KdsPanel.vue.d.ts +8 -2
- package/dist/src/layouts/Panel/KdsPanel.vue.d.ts.map +1 -1
- package/dist/src/layouts/Panel/enums.d.ts +12 -0
- package/dist/src/layouts/Panel/enums.d.ts.map +1 -0
- package/dist/src/layouts/Panel/index.d.ts +1 -0
- package/dist/src/layouts/Panel/index.d.ts.map +1 -1
- package/dist/src/layouts/Panel/types.d.ts +30 -3
- package/dist/src/layouts/Panel/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -3257,7 +3257,7 @@ textarea[data-v-8e5a54cf]::-webkit-scrollbar {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
|
|
3259
3259
|
.kds-panel {
|
|
3260
|
-
&[data-v-
|
|
3260
|
+
&[data-v-b56ad38d] {
|
|
3261
3261
|
display: flex;
|
|
3262
3262
|
flex-direction: column;
|
|
3263
3263
|
width: 100%;
|
|
@@ -3265,7 +3265,7 @@ textarea[data-v-8e5a54cf]::-webkit-scrollbar {
|
|
|
3265
3265
|
min-height: 0;
|
|
3266
3266
|
background-color: var(--kds-color-surface-default);
|
|
3267
3267
|
}
|
|
3268
|
-
.kds-panel-header[data-v-
|
|
3268
|
+
.kds-panel-header[data-v-b56ad38d] {
|
|
3269
3269
|
display: flex;
|
|
3270
3270
|
flex: 0 0 auto;
|
|
3271
3271
|
gap: var(--kds-spacing-container-0-25x);
|
|
@@ -3275,13 +3275,13 @@ textarea[data-v-8e5a54cf]::-webkit-scrollbar {
|
|
|
3275
3275
|
calc(var(--kds-spacing-container-0-5x) - var(--kds-core-border-width-xs));
|
|
3276
3276
|
border-bottom: var(--kds-border-base-subtle);
|
|
3277
3277
|
}
|
|
3278
|
-
.kds-panel-headline[data-v-
|
|
3278
|
+
.kds-panel-headline[data-v-b56ad38d] {
|
|
3279
3279
|
display: flex;
|
|
3280
3280
|
flex: 1 1 auto;
|
|
3281
3281
|
align-items: center;
|
|
3282
3282
|
min-width: 0;
|
|
3283
3283
|
}
|
|
3284
|
-
.kds-panel-headline-text[data-v-
|
|
3284
|
+
.kds-panel-headline-text[data-v-b56ad38d] {
|
|
3285
3285
|
flex: 1 1 auto;
|
|
3286
3286
|
min-width: 0;
|
|
3287
3287
|
margin: 0;
|
|
@@ -3290,26 +3290,29 @@ textarea[data-v-8e5a54cf]::-webkit-scrollbar {
|
|
|
3290
3290
|
font: var(--kds-font-base-title-medium-strong);
|
|
3291
3291
|
white-space: nowrap;
|
|
3292
3292
|
}
|
|
3293
|
-
.kds-panel-header-trailing[data-v-
|
|
3293
|
+
.kds-panel-header-trailing[data-v-b56ad38d] {
|
|
3294
3294
|
display: flex;
|
|
3295
3295
|
flex: 0 0 auto;
|
|
3296
3296
|
gap: var(--kds-spacing-container-0-25x);
|
|
3297
3297
|
align-items: center;
|
|
3298
|
+
margin-left: auto;
|
|
3298
3299
|
}
|
|
3299
3300
|
.kds-panel-body {
|
|
3300
|
-
&[data-v-
|
|
3301
|
+
&[data-v-b56ad38d] {
|
|
3301
3302
|
flex: 1 1 auto;
|
|
3302
3303
|
min-height: 0;
|
|
3303
|
-
|
|
3304
|
-
|
|
3304
|
+
overflow: var(--cd61c39a);
|
|
3305
|
+
}
|
|
3306
|
+
&[data-variant="padded"][data-v-b56ad38d] {
|
|
3307
|
+
padding: var(--kds-spacing-container-0-75x);
|
|
3305
3308
|
}
|
|
3306
|
-
&[data-v-
|
|
3309
|
+
&[tabindex="0"][data-v-b56ad38d]:focus-visible {
|
|
3307
3310
|
outline: var(--kds-border-action-focused);
|
|
3308
3311
|
outline-offset: var(--kds-spacing-offset-focus);
|
|
3309
3312
|
border-radius: var(--kds-border-radius-container-0-31x);
|
|
3310
3313
|
}
|
|
3311
3314
|
}
|
|
3312
|
-
.kds-panel-footer[data-v-
|
|
3315
|
+
.kds-panel-footer[data-v-b56ad38d] {
|
|
3313
3316
|
display: flex;
|
|
3314
3317
|
flex: 0 0 auto;
|
|
3315
3318
|
gap: var(--kds-spacing-container-0-25x);
|
|
@@ -3320,8 +3323,8 @@ textarea[data-v-8e5a54cf]::-webkit-scrollbar {
|
|
|
3320
3323
|
var(--kds-spacing-container-0-5x) var(--kds-spacing-container-0-5x);
|
|
3321
3324
|
border-top: var(--kds-border-base-subtle);
|
|
3322
3325
|
}
|
|
3323
|
-
.kds-panel-footer-leading[data-v-
|
|
3324
|
-
.kds-panel-footer-trailing[data-v-
|
|
3326
|
+
.kds-panel-footer-leading[data-v-b56ad38d],
|
|
3327
|
+
.kds-panel-footer-trailing[data-v-b56ad38d] {
|
|
3325
3328
|
display: flex;
|
|
3326
3329
|
gap: var(--kds-spacing-container-0-25x);
|
|
3327
3330
|
align-items: center;
|
package/dist/index.js
CHANGED
|
@@ -16320,20 +16320,35 @@ const kdsCardVariant = {
|
|
|
16320
16320
|
};
|
|
16321
16321
|
const kdsCardVariants = Object.values(kdsCardVariant);
|
|
16322
16322
|
|
|
16323
|
+
const kdsPanelBodyOverflow = {
|
|
16324
|
+
AUTO: "auto",
|
|
16325
|
+
HIDDEN: "hidden",
|
|
16326
|
+
VISIBLE: "visible"
|
|
16327
|
+
};
|
|
16328
|
+
const kdsPanelBodyOverflows = Object.values(kdsPanelBodyOverflow);
|
|
16329
|
+
const kdsPanelBodyVariant = {
|
|
16330
|
+
PADDED: "padded",
|
|
16331
|
+
PLAIN: "plain"
|
|
16332
|
+
};
|
|
16333
|
+
const kdsPanelBodyVariants = Object.values(kdsPanelBodyVariant);
|
|
16334
|
+
|
|
16323
16335
|
const _hoisted_1$8 = { class: "kds-panel" };
|
|
16324
|
-
const _hoisted_2$5 = {
|
|
16336
|
+
const _hoisted_2$5 = {
|
|
16337
|
+
key: 0,
|
|
16338
|
+
class: "kds-panel-header"
|
|
16339
|
+
};
|
|
16325
16340
|
const _hoisted_3$5 = ["id"];
|
|
16326
16341
|
const _hoisted_4$3 = {
|
|
16327
16342
|
key: 0,
|
|
16328
16343
|
class: "kds-panel-headline-text"
|
|
16329
16344
|
};
|
|
16330
16345
|
const _hoisted_5$1 = {
|
|
16331
|
-
key:
|
|
16346
|
+
key: 1,
|
|
16332
16347
|
class: "kds-panel-header-trailing"
|
|
16333
16348
|
};
|
|
16334
|
-
const _hoisted_6 = ["aria-labelledby"];
|
|
16349
|
+
const _hoisted_6 = ["data-variant", "tabindex", "aria-labelledby", "aria-label"];
|
|
16335
16350
|
const _hoisted_7 = {
|
|
16336
|
-
key:
|
|
16351
|
+
key: 1,
|
|
16337
16352
|
class: "kds-panel-footer"
|
|
16338
16353
|
};
|
|
16339
16354
|
const _hoisted_8 = { class: "kds-panel-footer-leading" };
|
|
@@ -16344,14 +16359,36 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16344
16359
|
headline: {},
|
|
16345
16360
|
headlineTrailingActions: {},
|
|
16346
16361
|
footerLeadingActions: {},
|
|
16347
|
-
footerTrailingActions: {}
|
|
16362
|
+
footerTrailingActions: {},
|
|
16363
|
+
ariaLabel: {},
|
|
16364
|
+
bodyOverflow: { default: () => kdsPanelBodyOverflow.AUTO },
|
|
16365
|
+
bodyVariant: { default: () => kdsPanelBodyVariant.PADDED }
|
|
16348
16366
|
},
|
|
16349
16367
|
setup(__props) {
|
|
16368
|
+
useCssVars((_ctx) => ({
|
|
16369
|
+
"cd61c39a": _ctx.bodyOverflow
|
|
16370
|
+
}));
|
|
16350
16371
|
const headlineId = useId();
|
|
16372
|
+
const hasHeader = computed(
|
|
16373
|
+
() => Boolean(__props.headline) || Boolean(__props.headlineTrailingActions?.length)
|
|
16374
|
+
);
|
|
16375
|
+
const isBodyKeyboardFocusable = computed(
|
|
16376
|
+
() => __props.bodyOverflow !== kdsPanelBodyOverflow.HIDDEN
|
|
16377
|
+
);
|
|
16378
|
+
const bodyAriaLabel = computed(
|
|
16379
|
+
() => isBodyKeyboardFocusable.value && __props.ariaLabel ? __props.ariaLabel : void 0
|
|
16380
|
+
);
|
|
16381
|
+
const slotHeadlineId = computed(
|
|
16382
|
+
() => typeof __props.headline === "string" ? headlineId : void 0
|
|
16383
|
+
);
|
|
16384
|
+
const bodyAriaLabelledBy = computed(
|
|
16385
|
+
() => isBodyKeyboardFocusable.value && !bodyAriaLabel.value ? slotHeadlineId.value : void 0
|
|
16386
|
+
);
|
|
16351
16387
|
return (_ctx, _cache) => {
|
|
16352
16388
|
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
16353
|
-
|
|
16354
|
-
|
|
16389
|
+
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
16390
|
+
__props.headline ? (openBlock(), createElementBlock("div", {
|
|
16391
|
+
key: 0,
|
|
16355
16392
|
id: unref(headlineId),
|
|
16356
16393
|
class: "kds-panel-headline"
|
|
16357
16394
|
}, [
|
|
@@ -16362,7 +16399,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16362
16399
|
size: "small",
|
|
16363
16400
|
onItemClick: __props.headline.onItemClick
|
|
16364
16401
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
16365
|
-
], 8, _hoisted_3$5),
|
|
16402
|
+
], 8, _hoisted_3$5)) : createCommentVNode("", true),
|
|
16366
16403
|
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
16367
16404
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
16368
16405
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
@@ -16394,13 +16431,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16394
16431
|
], 64);
|
|
16395
16432
|
}), 128))
|
|
16396
16433
|
])) : createCommentVNode("", true)
|
|
16397
|
-
]),
|
|
16434
|
+
])) : createCommentVNode("", true),
|
|
16398
16435
|
createElementVNode("div", {
|
|
16399
16436
|
class: "kds-panel-body",
|
|
16400
|
-
|
|
16401
|
-
|
|
16437
|
+
"data-variant": __props.bodyVariant,
|
|
16438
|
+
tabindex: isBodyKeyboardFocusable.value ? 0 : void 0,
|
|
16439
|
+
"aria-labelledby": bodyAriaLabelledBy.value,
|
|
16440
|
+
"aria-label": bodyAriaLabel.value
|
|
16402
16441
|
}, [
|
|
16403
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16442
|
+
renderSlot(_ctx.$slots, "default", { headlineId: slotHeadlineId.value }, void 0, true)
|
|
16404
16443
|
], 8, _hoisted_6),
|
|
16405
16444
|
__props.footerLeadingActions?.length || __props.footerTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
16406
16445
|
createElementVNode("div", _hoisted_8, [
|
|
@@ -16429,7 +16468,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16429
16468
|
}
|
|
16430
16469
|
});
|
|
16431
16470
|
|
|
16432
|
-
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
16471
|
+
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b56ad38d"]]);
|
|
16433
16472
|
|
|
16434
16473
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
16435
16474
|
__name: "TabBarItemAccessory",
|
|
@@ -17584,5 +17623,5 @@ const kdsResponsiveButtonGroupAlignments = Object.values(
|
|
|
17584
17623
|
kdsResponsiveButtonGroupAlignment
|
|
17585
17624
|
);
|
|
17586
17625
|
|
|
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 };
|
|
17626
|
+
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
17627
|
//# sourceMappingURL=index.js.map
|