@knime/kds-components 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.css +200 -152
- package/dist/index.js +1103 -1032
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/Icon/types.d.ts +3 -5
- package/dist/src/accessories/Icon/types.d.ts.map +1 -1
- package/dist/src/accessories/index.d.ts +0 -2
- package/dist/src/accessories/index.d.ts.map +1 -1
- package/dist/src/buttons/ActionButton/ActionButton.vue.d.ts +34 -0
- package/dist/src/buttons/ActionButton/ActionButton.vue.d.ts.map +1 -0
- package/dist/src/buttons/ActionButton/enums.d.ts +6 -0
- package/dist/src/buttons/ActionButton/enums.d.ts.map +1 -0
- package/dist/src/buttons/ActionButton/index.d.ts +3 -0
- package/dist/src/buttons/ActionButton/index.d.ts.map +1 -0
- package/dist/src/buttons/ActionButton/types.d.ts +17 -0
- package/dist/src/buttons/ActionButton/types.d.ts.map +1 -0
- package/dist/src/{patterns → buttons}/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +34 -34
- package/dist/src/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -0
- package/dist/src/buttons/ResponsiveButtonGroup/enums.d.ts.map +1 -0
- package/dist/src/buttons/ResponsiveButtonGroup/index.d.ts.map +1 -0
- package/dist/src/{patterns → buttons}/ResponsiveButtonGroup/mapping.d.ts +19 -19
- package/dist/src/buttons/ResponsiveButtonGroup/mapping.d.ts.map +1 -0
- package/dist/src/{patterns → buttons}/ResponsiveButtonGroup/types.d.ts +2 -2
- package/dist/src/buttons/ResponsiveButtonGroup/types.d.ts.map +1 -0
- package/dist/src/buttons/index.d.ts +4 -0
- package/dist/src/buttons/index.d.ts.map +1 -1
- package/dist/src/forms/_helper/BaseFieldsetWrapper.vue.d.ts.map +1 -1
- package/dist/src/forms/inputs/BaseInput.vue.d.ts.map +1 -1
- package/dist/src/forms/inputs/DateInput/useDateInputMask.d.ts.map +1 -1
- package/dist/src/forms/inputs/TimeInput/useTimeInputMask.d.ts.map +1 -1
- package/dist/src/forms/inputs/useInputSegments.d.ts +0 -1
- package/dist/src/forms/inputs/useInputSegments.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/layouts/InlineMessage/KdsInlineMessage.vue.d.ts +4 -0
- package/dist/src/layouts/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -0
- package/dist/src/layouts/InlineMessage/enums.d.ts.map +1 -0
- package/dist/src/layouts/InlineMessage/index.d.ts.map +1 -0
- package/dist/src/{accessories → layouts}/InlineMessage/types.d.ts +4 -1
- package/dist/src/layouts/InlineMessage/types.d.ts.map +1 -0
- package/dist/src/layouts/index.d.ts +2 -0
- package/dist/src/layouts/index.d.ts.map +1 -1
- package/dist/src/overlays/Modal/KdsModal.vue.d.ts +1 -1
- package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts +3 -3
- package/dist/src/{accessories/InlineMessage/KdsInlineMessage.vue.d.ts → overlays/SideDrawer/KdsSideDrawer.vue.d.ts} +8 -4
- package/dist/src/overlays/SideDrawer/KdsSideDrawer.vue.d.ts.map +1 -0
- package/dist/src/overlays/SideDrawer/enums.d.ts +6 -0
- package/dist/src/overlays/SideDrawer/enums.d.ts.map +1 -0
- package/dist/src/overlays/SideDrawer/index.d.ts +3 -0
- package/dist/src/overlays/SideDrawer/index.d.ts.map +1 -0
- package/dist/src/overlays/SideDrawer/types.d.ts +15 -0
- package/dist/src/overlays/SideDrawer/types.d.ts.map +1 -0
- package/dist/src/overlays/index.d.ts +2 -0
- package/dist/src/overlays/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/src/accessories/InlineMessage/KdsInlineMessage.vue.d.ts.map +0 -1
- package/dist/src/accessories/InlineMessage/enums.d.ts.map +0 -1
- package/dist/src/accessories/InlineMessage/index.d.ts.map +0 -1
- package/dist/src/accessories/InlineMessage/types.d.ts.map +0 -1
- package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +0 -1
- package/dist/src/patterns/ResponsiveButtonGroup/enums.d.ts.map +0 -1
- package/dist/src/patterns/ResponsiveButtonGroup/index.d.ts.map +0 -1
- package/dist/src/patterns/ResponsiveButtonGroup/mapping.d.ts.map +0 -1
- package/dist/src/patterns/ResponsiveButtonGroup/types.d.ts.map +0 -1
- package/dist/src/patterns/index.d.ts +0 -3
- package/dist/src/patterns/index.d.ts.map +0 -1
- /package/dist/src/{patterns → buttons}/ResponsiveButtonGroup/enums.d.ts +0 -0
- /package/dist/src/{patterns → buttons}/ResponsiveButtonGroup/index.d.ts +0 -0
- /package/dist/src/{accessories → layouts}/InlineMessage/enums.d.ts +0 -0
- /package/dist/src/{accessories → layouts}/InlineMessage/index.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, markRaw, readonly, toRef, unref, resolveDynamicComponent, mergeProps, useTemplateRef,
|
|
2
|
-
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, onClickOutside, useVirtualList,
|
|
1
|
+
import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, markRaw, readonly, toRef, unref, resolveDynamicComponent, mergeProps, useTemplateRef, withCtx, renderSlot, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, createVNode, onMounted, onUnmounted, nextTick, useId, withModifiers, inject, provide, resolveComponent, withKeys, watchEffect, useAttrs, defineAsyncComponent, toRefs, useCssVars, normalizeProps, guardReactiveProps, createSlots, withDirectives, vShow, onBeforeUpdate, onBeforeUnmount, isRef, vModelText, createTextVNode, effectScope } from 'vue';
|
|
2
|
+
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, useElementSize, onClickOutside, useVirtualList, useMousePressed, useTemplateRefsList, useEventListener } from '@vueuse/core';
|
|
3
3
|
|
|
4
4
|
import './index.css';const kdsAvatarSize = {
|
|
5
5
|
SMALL: "small",
|
|
@@ -9,14 +9,14 @@ import './index.css';const kdsAvatarSize = {
|
|
|
9
9
|
};
|
|
10
10
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
11
11
|
|
|
12
|
-
const _hoisted_1$
|
|
12
|
+
const _hoisted_1$19 = ["role", "title", "aria-hidden", "aria-label", "data-color"];
|
|
13
13
|
const _hoisted_2$J = ["src"];
|
|
14
14
|
const _hoisted_3$v = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "kds-avatar-initials",
|
|
17
17
|
"aria-hidden": "true"
|
|
18
18
|
};
|
|
19
|
-
const _sfc_main$
|
|
19
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "KdsAvatar",
|
|
21
21
|
props: {
|
|
22
22
|
initials: {},
|
|
@@ -83,7 +83,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
}, null, 40, _hoisted_2$J)) : (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
84
84
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
85
85
|
]))
|
|
86
|
-
], 10, _hoisted_1$
|
|
86
|
+
], 10, _hoisted_1$19);
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
});
|
|
@@ -96,16 +96,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
96
96
|
return target;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
99
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["__scopeId", "data-v-4ce13db9"]]);
|
|
100
100
|
|
|
101
|
-
const _hoisted_1$
|
|
101
|
+
const _hoisted_1$18 = ["aria-label"];
|
|
102
102
|
const _hoisted_2$I = { class: "avatars" };
|
|
103
103
|
const _hoisted_3$u = {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "more-count",
|
|
106
106
|
"aria-hidden": "true"
|
|
107
107
|
};
|
|
108
|
-
const _sfc_main$
|
|
108
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
109
109
|
__name: "KdsAvatarCounter",
|
|
110
110
|
props: {
|
|
111
111
|
moreCount: { default: 0 },
|
|
@@ -140,12 +140,12 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
140
140
|
}), 128))
|
|
141
141
|
]),
|
|
142
142
|
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$u, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)
|
|
143
|
-
], 8, _hoisted_1$
|
|
143
|
+
], 8, _hoisted_1$18);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
const KdsAvatarCounter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
148
|
+
const KdsAvatarCounter = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__scopeId", "data-v-1aef516d"]]);
|
|
149
149
|
|
|
150
150
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
151
151
|
const v = glob$1[path$13];
|
|
@@ -202,7 +202,7 @@ function useIcon({
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
const _sfc_main$
|
|
205
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
206
206
|
__name: "KdsIcon",
|
|
207
207
|
props: {
|
|
208
208
|
name: {},
|
|
@@ -232,7 +232,7 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
235
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["__scopeId", "data-v-bff4f419"]]);
|
|
236
236
|
|
|
237
237
|
const ID_TO_ICON_MAP = {
|
|
238
238
|
// Flow Variables
|
|
@@ -585,8 +585,8 @@ const kdsDataTypeSize = {
|
|
|
585
585
|
};
|
|
586
586
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
587
587
|
|
|
588
|
-
const _hoisted_1$
|
|
589
|
-
const _sfc_main$
|
|
588
|
+
const _hoisted_1$17 = ["title"];
|
|
589
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
590
590
|
__name: "KdsDataType",
|
|
591
591
|
props: {
|
|
592
592
|
iconName: { default: "unknown-datatype" },
|
|
@@ -627,12 +627,12 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
627
627
|
"aria-hidden": "true",
|
|
628
628
|
focusable: "false"
|
|
629
629
|
}, null, 8, ["class"]))
|
|
630
|
-
], 10, _hoisted_1$
|
|
630
|
+
], 10, _hoisted_1$17);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
634
|
|
|
635
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
635
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["__scopeId", "data-v-38e9537f"]]);
|
|
636
636
|
|
|
637
637
|
const kdsBadgeVariant = {
|
|
638
638
|
NEUTRAL: "neutral",
|
|
@@ -649,8 +649,8 @@ const kdsBadgeSize = {
|
|
|
649
649
|
};
|
|
650
650
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
651
651
|
|
|
652
|
-
const _hoisted_1$
|
|
653
|
-
const _sfc_main$
|
|
652
|
+
const _hoisted_1$16 = { class: "label-wrapper" };
|
|
653
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
654
654
|
__name: "KdsBadge",
|
|
655
655
|
props: {
|
|
656
656
|
label: {},
|
|
@@ -672,13 +672,13 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
672
672
|
name: __props.leadingIcon,
|
|
673
673
|
size: sizeToIconSize[__props.size]
|
|
674
674
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
675
|
-
createElementVNode("span", _hoisted_1$
|
|
675
|
+
createElementVNode("span", _hoisted_1$16, toDisplayString(__props.label), 1)
|
|
676
676
|
], 2);
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
679
|
});
|
|
680
680
|
|
|
681
|
-
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
681
|
+
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["__scopeId", "data-v-df64f7cf"]]);
|
|
682
682
|
|
|
683
683
|
const kdsProgressBarSize = {
|
|
684
684
|
MEDIUM: "medium",
|
|
@@ -686,13 +686,13 @@ const kdsProgressBarSize = {
|
|
|
686
686
|
};
|
|
687
687
|
const kdsProgressBarSizes = Object.values(kdsProgressBarSize);
|
|
688
688
|
|
|
689
|
-
const _hoisted_1$
|
|
689
|
+
const _hoisted_1$15 = ["title", "aria-label"];
|
|
690
690
|
const _hoisted_2$H = {
|
|
691
691
|
key: 0,
|
|
692
692
|
class: "indeterminate-bar",
|
|
693
693
|
"aria-hidden": "true"
|
|
694
694
|
};
|
|
695
|
-
const _sfc_main$
|
|
695
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
696
696
|
__name: "KdsProgressBar",
|
|
697
697
|
props: {
|
|
698
698
|
size: { default: () => kdsProgressBarSize.MEDIUM },
|
|
@@ -728,14 +728,14 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
728
728
|
title: title.value,
|
|
729
729
|
"aria-label": title.value,
|
|
730
730
|
class: "progress"
|
|
731
|
-
}, __props.indeterminate ? {} : { value: progressValue.value, max: 100 }), null, 16, _hoisted_1$
|
|
731
|
+
}, __props.indeterminate ? {} : { value: progressValue.value, max: 100 }), null, 16, _hoisted_1$15),
|
|
732
732
|
__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_2$H)) : createCommentVNode("", true)
|
|
733
733
|
], 2);
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
737
|
|
|
738
|
-
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
738
|
+
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-884d689a"]]);
|
|
739
739
|
|
|
740
740
|
const kdsColorSwatchType = {
|
|
741
741
|
LEARNER: "learner",
|
|
@@ -754,14 +754,14 @@ const kdsColorSwatchSize = {
|
|
|
754
754
|
};
|
|
755
755
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
756
756
|
|
|
757
|
-
const _hoisted_1$
|
|
757
|
+
const _hoisted_1$14 = ["role", "title", "aria-hidden", "aria-label"];
|
|
758
758
|
const RGBA_SHORT_HEX_LENGTH = 4;
|
|
759
759
|
const RGBA_LONG_HEX_LENGTH = 8;
|
|
760
760
|
const ALPHA_NIBBLE_INDEX = 3;
|
|
761
761
|
const ALPHA_BYTE_START = 6;
|
|
762
762
|
const RGB_SHORT_HEX_LENGTH = 3;
|
|
763
763
|
const RGB_LONG_HEX_LENGTH = 6;
|
|
764
|
-
const _sfc_main$
|
|
764
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
765
765
|
__name: "KdsColorSwatch",
|
|
766
766
|
props: {
|
|
767
767
|
color: {},
|
|
@@ -836,12 +836,12 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
836
836
|
style: normalizeStyle(swatchStyle.value),
|
|
837
837
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
838
838
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
839
|
-
}, null, 14, _hoisted_1$
|
|
839
|
+
}, null, 14, _hoisted_1$14);
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
|
|
844
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
844
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["__scopeId", "data-v-91e0130d"]]);
|
|
845
845
|
|
|
846
846
|
const kdsDarkModeType = {
|
|
847
847
|
LIGHT: "light",
|
|
@@ -961,9 +961,9 @@ function useKdsIsTruncated(elementRef) {
|
|
|
961
961
|
return { isTruncated };
|
|
962
962
|
}
|
|
963
963
|
|
|
964
|
-
const _hoisted_1$
|
|
964
|
+
const _hoisted_1$13 = ["title", "aria-label"];
|
|
965
965
|
const _hoisted_2$G = ["title"];
|
|
966
|
-
const _sfc_main$
|
|
966
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
967
967
|
__name: "KdsLiveStatus",
|
|
968
968
|
props: {
|
|
969
969
|
status: { default: "red" },
|
|
@@ -993,12 +993,12 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
993
993
|
class: "label",
|
|
994
994
|
title: unref(isTruncated) ? __props.label : void 0
|
|
995
995
|
}, toDisplayString(__props.label), 9, _hoisted_2$G)) : createCommentVNode("", true)
|
|
996
|
-
], 10, _hoisted_1$
|
|
996
|
+
], 10, _hoisted_1$13);
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
1000
|
|
|
1001
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1001
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["__scopeId", "data-v-f20c5c00"]]);
|
|
1002
1002
|
|
|
1003
1003
|
const kdsLiveStatusStatus = {
|
|
1004
1004
|
RED: "red",
|
|
@@ -1014,8 +1014,8 @@ const kdsLiveStatusSize = {
|
|
|
1014
1014
|
};
|
|
1015
1015
|
const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
1016
1016
|
|
|
1017
|
-
const _hoisted_1$
|
|
1018
|
-
const _sfc_main$
|
|
1017
|
+
const _hoisted_1$12 = ["data-style"];
|
|
1018
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
1019
1019
|
__name: "KdsLoadingSpinner",
|
|
1020
1020
|
props: {
|
|
1021
1021
|
size: { default: "medium" },
|
|
@@ -1040,12 +1040,12 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
1040
1040
|
cy: "60",
|
|
1041
1041
|
r: "50"
|
|
1042
1042
|
}, null, -1)
|
|
1043
|
-
])], 10, _hoisted_1$
|
|
1043
|
+
])], 10, _hoisted_1$12);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
|
|
1048
|
-
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1048
|
+
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["__scopeId", "data-v-54835dc0"]]);
|
|
1049
1049
|
|
|
1050
1050
|
const kdsLoadingSpinnerVariant = {
|
|
1051
1051
|
ON_PRIMARY: "onPrimary",
|
|
@@ -1055,73 +1055,7 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
1055
1055
|
kdsLoadingSpinnerVariant
|
|
1056
1056
|
);
|
|
1057
1057
|
|
|
1058
|
-
const
|
|
1059
|
-
const _hoisted_2$F = { class: "header" };
|
|
1060
|
-
const _hoisted_3$t = { class: "headline" };
|
|
1061
|
-
const _hoisted_4$p = {
|
|
1062
|
-
key: 0,
|
|
1063
|
-
class: "body"
|
|
1064
|
-
};
|
|
1065
|
-
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
1066
|
-
__name: "KdsInlineMessage",
|
|
1067
|
-
props: {
|
|
1068
|
-
headline: {},
|
|
1069
|
-
description: {},
|
|
1070
|
-
variant: { default: "info" }
|
|
1071
|
-
},
|
|
1072
|
-
setup(__props) {
|
|
1073
|
-
const props = createPropsRestProxy(__props, ["variant"]);
|
|
1074
|
-
const classes = computed(() => ["kds-inline-message", __props.variant]);
|
|
1075
|
-
const iconName = computed(() => {
|
|
1076
|
-
switch (__props.variant) {
|
|
1077
|
-
case "success":
|
|
1078
|
-
return "circle-success";
|
|
1079
|
-
case "error":
|
|
1080
|
-
return "circle-error";
|
|
1081
|
-
case "warning":
|
|
1082
|
-
return "warning";
|
|
1083
|
-
case "info":
|
|
1084
|
-
default:
|
|
1085
|
-
return "circle-info";
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
|
-
const role = computed(
|
|
1089
|
-
() => __props.variant === "warning" || __props.variant === "error" ? "alert" : "status"
|
|
1090
|
-
);
|
|
1091
|
-
return (_ctx, _cache) => {
|
|
1092
|
-
return openBlock(), createElementBlock("div", {
|
|
1093
|
-
class: normalizeClass(classes.value),
|
|
1094
|
-
role: role.value
|
|
1095
|
-
}, [
|
|
1096
|
-
createElementVNode("div", _hoisted_2$F, [
|
|
1097
|
-
createVNode(KdsIcon, {
|
|
1098
|
-
class: "icon",
|
|
1099
|
-
name: iconName.value,
|
|
1100
|
-
size: "small"
|
|
1101
|
-
}, null, 8, ["name"]),
|
|
1102
|
-
createElementVNode("div", _hoisted_3$t, toDisplayString(props.headline), 1)
|
|
1103
|
-
]),
|
|
1104
|
-
props.description || _ctx.$slots.default ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
1105
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1106
|
-
createTextVNode(toDisplayString(props.description), 1)
|
|
1107
|
-
], true)
|
|
1108
|
-
])) : createCommentVNode("", true)
|
|
1109
|
-
], 10, _hoisted_1$10);
|
|
1110
|
-
};
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
|
|
1114
|
-
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-c54ea4b4"]]);
|
|
1115
|
-
|
|
1116
|
-
const kdsInlineMessageVariant = {
|
|
1117
|
-
ERROR: "error",
|
|
1118
|
-
INFO: "info",
|
|
1119
|
-
SUCCESS: "success",
|
|
1120
|
-
WARNING: "warning"
|
|
1121
|
-
};
|
|
1122
|
-
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
1123
|
-
|
|
1124
|
-
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
1058
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
1125
1059
|
__name: "KdsMissingValueIcon",
|
|
1126
1060
|
props: {
|
|
1127
1061
|
size: {}
|
|
@@ -1137,13 +1071,13 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1137
1071
|
}
|
|
1138
1072
|
});
|
|
1139
1073
|
|
|
1140
|
-
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1074
|
+
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-df682150"]]);
|
|
1141
1075
|
|
|
1142
|
-
const _hoisted_1
|
|
1143
|
-
const _hoisted_2$
|
|
1144
|
-
const _hoisted_3$
|
|
1145
|
-
const _hoisted_4$
|
|
1146
|
-
const _hoisted_5$
|
|
1076
|
+
const _hoisted_1$11 = { class: "donut-container" };
|
|
1077
|
+
const _hoisted_2$F = ["height", "width", "viewBox"];
|
|
1078
|
+
const _hoisted_3$t = ["r", "stroke-width"];
|
|
1079
|
+
const _hoisted_4$p = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1080
|
+
const _hoisted_5$f = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1147
1081
|
const _hoisted_6$b = {
|
|
1148
1082
|
key: 0,
|
|
1149
1083
|
class: "donut-text"
|
|
@@ -1155,7 +1089,7 @@ const _hoisted_8$3 = {
|
|
|
1155
1089
|
};
|
|
1156
1090
|
const radius = 22;
|
|
1157
1091
|
const innerRadius = 10;
|
|
1158
|
-
const _sfc_main$
|
|
1092
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
1159
1093
|
__name: "KdsDonutChart",
|
|
1160
1094
|
props: {
|
|
1161
1095
|
value: {},
|
|
@@ -1199,7 +1133,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1199
1133
|
const transformWedge = computed(() => `rotate(-90, ${radius}, ${radius})`);
|
|
1200
1134
|
const disabled = computed(() => !Number.isFinite(__props.maxValue));
|
|
1201
1135
|
return (_ctx, _cache) => {
|
|
1202
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
1136
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [
|
|
1203
1137
|
(openBlock(), createElementBlock("svg", {
|
|
1204
1138
|
height: diameter.value,
|
|
1205
1139
|
width: diameter.value,
|
|
@@ -1213,7 +1147,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1213
1147
|
r: r.value,
|
|
1214
1148
|
"stroke-width": strokeWidth.value,
|
|
1215
1149
|
fill: "transparent"
|
|
1216
|
-
}, null, 8, _hoisted_3$
|
|
1150
|
+
}, null, 8, _hoisted_3$t),
|
|
1217
1151
|
__props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1218
1152
|
key: 0,
|
|
1219
1153
|
class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
|
|
@@ -1225,7 +1159,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1225
1159
|
"stroke-dashoffset": secondaryStrokeDashOffset.value,
|
|
1226
1160
|
fill: "transparent",
|
|
1227
1161
|
transform: transformWedge.value
|
|
1228
|
-
}, null, 10, _hoisted_4$
|
|
1162
|
+
}, null, 10, _hoisted_4$p)) : createCommentVNode("", true),
|
|
1229
1163
|
!disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1230
1164
|
key: 1,
|
|
1231
1165
|
class: normalizeClass(["value-wedge", "primary-circle", { animate: __props.animate }]),
|
|
@@ -1237,8 +1171,8 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1237
1171
|
"stroke-dashoffset": strokeDashOffset.value,
|
|
1238
1172
|
fill: "transparent",
|
|
1239
1173
|
transform: transformWedge.value
|
|
1240
|
-
}, null, 10, _hoisted_5$
|
|
1241
|
-
], 8, _hoisted_2$
|
|
1174
|
+
}, null, 10, _hoisted_5$f)) : createCommentVNode("", true)
|
|
1175
|
+
], 8, _hoisted_2$F)),
|
|
1242
1176
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
1243
1177
|
createElementVNode("div", _hoisted_7$4, toDisplayString(__props.title), 1),
|
|
1244
1178
|
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
|
|
@@ -1248,22 +1182,22 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1248
1182
|
}
|
|
1249
1183
|
});
|
|
1250
1184
|
|
|
1251
|
-
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1185
|
+
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-f5faf61c"]]);
|
|
1252
1186
|
|
|
1253
|
-
const _sfc_main$
|
|
1187
|
+
const _sfc_main$1A = { };
|
|
1254
1188
|
|
|
1255
|
-
const _hoisted_1$
|
|
1189
|
+
const _hoisted_1$10 = { class: "kds-divider" };
|
|
1256
1190
|
|
|
1257
1191
|
function _sfc_render$1(_ctx, _cache) {
|
|
1258
|
-
return (openBlock(), createElementBlock("hr", _hoisted_1$
|
|
1192
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$10))
|
|
1259
1193
|
}
|
|
1260
|
-
const KdsDivider = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1194
|
+
const KdsDivider = /*#__PURE__*/_export_sfc(_sfc_main$1A, [['render',_sfc_render$1],['__scopeId',"data-v-4d059bd3"]]);
|
|
1261
1195
|
|
|
1262
|
-
const _hoisted_1
|
|
1196
|
+
const _hoisted_1$$ = {
|
|
1263
1197
|
key: 0,
|
|
1264
1198
|
class: "label"
|
|
1265
1199
|
};
|
|
1266
|
-
const _sfc_main$
|
|
1200
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
1267
1201
|
__name: "BaseButton",
|
|
1268
1202
|
props: {
|
|
1269
1203
|
dataTestId: {},
|
|
@@ -1327,7 +1261,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1327
1261
|
size: iconSize.value
|
|
1328
1262
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1329
1263
|
], true),
|
|
1330
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1
|
|
1264
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$$, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
1331
1265
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
1332
1266
|
key: 1,
|
|
1333
1267
|
name: props.trailingIcon,
|
|
@@ -1340,9 +1274,9 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1340
1274
|
}
|
|
1341
1275
|
});
|
|
1342
1276
|
|
|
1343
|
-
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1277
|
+
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-24ade73a"]]);
|
|
1344
1278
|
|
|
1345
|
-
const _sfc_main$
|
|
1279
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
1346
1280
|
__name: "KdsButton",
|
|
1347
1281
|
props: {
|
|
1348
1282
|
dataTestId: {},
|
|
@@ -1408,7 +1342,7 @@ function isExternalUrl(url) {
|
|
|
1408
1342
|
return true;
|
|
1409
1343
|
}
|
|
1410
1344
|
|
|
1411
|
-
const _sfc_main$
|
|
1345
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
1412
1346
|
__name: "KdsLinkButton",
|
|
1413
1347
|
props: {
|
|
1414
1348
|
dataTestId: {},
|
|
@@ -1638,12 +1572,12 @@ function prettyBytes(number, options) {
|
|
|
1638
1572
|
return applyFixedWidth(result, options.fixedWidth);
|
|
1639
1573
|
}
|
|
1640
1574
|
|
|
1641
|
-
const _hoisted_1$
|
|
1642
|
-
const _hoisted_2$
|
|
1575
|
+
const _hoisted_1$_ = { class: "label" };
|
|
1576
|
+
const _hoisted_2$E = {
|
|
1643
1577
|
key: 1,
|
|
1644
1578
|
class: "file-size"
|
|
1645
1579
|
};
|
|
1646
|
-
const _sfc_main$
|
|
1580
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
1647
1581
|
__name: "KdsLink",
|
|
1648
1582
|
props: {
|
|
1649
1583
|
to: {},
|
|
@@ -1733,13 +1667,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1733
1667
|
onClick
|
|
1734
1668
|
}, {
|
|
1735
1669
|
default: withCtx(() => [
|
|
1736
|
-
createElementVNode("span", _hoisted_1$
|
|
1670
|
+
createElementVNode("span", _hoisted_1$_, toDisplayString(__props.label), 1),
|
|
1737
1671
|
variant.value === "external" ? (openBlock(), createBlock(KdsIcon, {
|
|
1738
1672
|
key: 0,
|
|
1739
1673
|
name: "external-link",
|
|
1740
1674
|
size: "xsmall"
|
|
1741
1675
|
})) : createCommentVNode("", true),
|
|
1742
|
-
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1676
|
+
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
1743
1677
|
]),
|
|
1744
1678
|
_: 1
|
|
1745
1679
|
}, 8, ["class", "to", "download", "target", "rel", "title", "aria-disabled"]);
|
|
@@ -1747,9 +1681,9 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1747
1681
|
}
|
|
1748
1682
|
});
|
|
1749
1683
|
|
|
1750
|
-
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1684
|
+
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-56e748a8"]]);
|
|
1751
1685
|
|
|
1752
|
-
const _sfc_main$
|
|
1686
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
1753
1687
|
__name: "KdsToggleButton",
|
|
1754
1688
|
props: /* @__PURE__ */ mergeModels({
|
|
1755
1689
|
dataTestId: {},
|
|
@@ -1786,9 +1720,9 @@ const kdsToggleButtonVariant = {
|
|
|
1786
1720
|
};
|
|
1787
1721
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1788
1722
|
|
|
1789
|
-
const _hoisted_1$
|
|
1790
|
-
const _hoisted_2$
|
|
1791
|
-
const _sfc_main$
|
|
1723
|
+
const _hoisted_1$Z = ["data-visible"];
|
|
1724
|
+
const _hoisted_2$D = ["data-visible"];
|
|
1725
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
1792
1726
|
__name: "KdsProgressButton",
|
|
1793
1727
|
props: /* @__PURE__ */ mergeModels({
|
|
1794
1728
|
dataTestId: {},
|
|
@@ -1850,7 +1784,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
1850
1784
|
name: props.leadingIcon,
|
|
1851
1785
|
size: iconSize.value
|
|
1852
1786
|
}, null, 8, ["name", "size"])
|
|
1853
|
-
], 8, _hoisted_1$
|
|
1787
|
+
], 8, _hoisted_1$Z),
|
|
1854
1788
|
createElementVNode("span", {
|
|
1855
1789
|
class: "spinner",
|
|
1856
1790
|
"data-visible": state.value === "progress"
|
|
@@ -1859,7 +1793,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
1859
1793
|
size: iconSize.value,
|
|
1860
1794
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
1861
1795
|
}, null, 8, ["size", "variant"])
|
|
1862
|
-
], 8, _hoisted_2$
|
|
1796
|
+
], 8, _hoisted_2$D)
|
|
1863
1797
|
], 2)
|
|
1864
1798
|
]),
|
|
1865
1799
|
_: 1
|
|
@@ -1868,7 +1802,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
1868
1802
|
}
|
|
1869
1803
|
});
|
|
1870
1804
|
|
|
1871
|
-
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1805
|
+
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-d38d7ade"]]);
|
|
1872
1806
|
|
|
1873
1807
|
const kdsProgressButtonState = {
|
|
1874
1808
|
DEFAULT: "default",
|
|
@@ -2104,7 +2038,7 @@ const useStableItemIds = (options) => {
|
|
|
2104
2038
|
return { itemsWithPrefix, idPrefix, toUnprefixedId };
|
|
2105
2039
|
};
|
|
2106
2040
|
|
|
2107
|
-
const _sfc_main$
|
|
2041
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
2108
2042
|
__name: "ListItemAccessory",
|
|
2109
2043
|
props: {
|
|
2110
2044
|
accessory: {},
|
|
@@ -2150,14 +2084,14 @@ const kdsListItemAccessorySize = {
|
|
|
2150
2084
|
LARGE: "large"
|
|
2151
2085
|
};
|
|
2152
2086
|
|
|
2153
|
-
const _hoisted_1$
|
|
2154
|
-
const _hoisted_2$
|
|
2087
|
+
const _hoisted_1$Y = ["id", "role", "aria-selected", "aria-disabled"];
|
|
2088
|
+
const _hoisted_2$C = {
|
|
2155
2089
|
key: 0,
|
|
2156
2090
|
class: "accessory"
|
|
2157
2091
|
};
|
|
2158
|
-
const _hoisted_3$
|
|
2159
|
-
const _hoisted_4$
|
|
2160
|
-
const _hoisted_5$
|
|
2092
|
+
const _hoisted_3$s = { class: "content" };
|
|
2093
|
+
const _hoisted_4$o = ["title"];
|
|
2094
|
+
const _hoisted_5$e = {
|
|
2161
2095
|
key: 0,
|
|
2162
2096
|
class: "prefix"
|
|
2163
2097
|
};
|
|
@@ -2171,7 +2105,7 @@ const _hoisted_9$2 = {
|
|
|
2171
2105
|
key: 3,
|
|
2172
2106
|
class: "trailing-item-reserve-space"
|
|
2173
2107
|
};
|
|
2174
|
-
const _sfc_main$
|
|
2108
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
2175
2109
|
__name: "KdsListItem",
|
|
2176
2110
|
props: {
|
|
2177
2111
|
id: {},
|
|
@@ -2229,25 +2163,25 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2229
2163
|
]),
|
|
2230
2164
|
onClick
|
|
2231
2165
|
}, [
|
|
2232
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2233
|
-
createVNode(_sfc_main$
|
|
2166
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$C, [
|
|
2167
|
+
createVNode(_sfc_main$1t, {
|
|
2234
2168
|
accessory: props.accessory,
|
|
2235
2169
|
size: accessorySize.value,
|
|
2236
2170
|
disabled: __props.disabled
|
|
2237
2171
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
2238
2172
|
])) : createCommentVNode("", true),
|
|
2239
|
-
createElementVNode("span", _hoisted_3$
|
|
2173
|
+
createElementVNode("span", _hoisted_3$s, [
|
|
2240
2174
|
createElementVNode("span", {
|
|
2241
2175
|
ref_key: "labelEl",
|
|
2242
2176
|
ref: labelEl,
|
|
2243
2177
|
class: "label",
|
|
2244
2178
|
title: unref(isLabelTruncated) ? props.text : void 0
|
|
2245
2179
|
}, [
|
|
2246
|
-
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$
|
|
2180
|
+
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$e, "(Missing) ")) : createCommentVNode("", true),
|
|
2247
2181
|
createElementVNode("span", {
|
|
2248
2182
|
class: normalizeClass({ special: __props.special })
|
|
2249
2183
|
}, toDisplayString(props.text), 3)
|
|
2250
|
-
], 8, _hoisted_4$
|
|
2184
|
+
], 8, _hoisted_4$o),
|
|
2251
2185
|
props.subText ? (openBlock(), createElementBlock("span", {
|
|
2252
2186
|
key: 0,
|
|
2253
2187
|
ref_key: "subtextEl",
|
|
@@ -2270,20 +2204,20 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2270
2204
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2271
2205
|
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span", _hoisted_9$2)) : createCommentVNode("", true)
|
|
2272
2206
|
])
|
|
2273
|
-
], 10, _hoisted_1$
|
|
2207
|
+
], 10, _hoisted_1$Y);
|
|
2274
2208
|
};
|
|
2275
2209
|
}
|
|
2276
2210
|
});
|
|
2277
2211
|
|
|
2278
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2212
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["__scopeId", "data-v-a582a5cb"]]);
|
|
2279
2213
|
|
|
2280
|
-
const _hoisted_1$
|
|
2281
|
-
const _hoisted_2$
|
|
2214
|
+
const _hoisted_1$X = { class: "kds-list-item-section-title" };
|
|
2215
|
+
const _hoisted_2$B = {
|
|
2282
2216
|
key: 0,
|
|
2283
2217
|
class: "icon"
|
|
2284
2218
|
};
|
|
2285
|
-
const _hoisted_3$
|
|
2286
|
-
const _sfc_main$
|
|
2219
|
+
const _hoisted_3$r = ["title"];
|
|
2220
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
2287
2221
|
__name: "ListItemSectionTitle",
|
|
2288
2222
|
props: {
|
|
2289
2223
|
label: {},
|
|
@@ -2294,8 +2228,8 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
2294
2228
|
const labelEl = useTemplateRef("labelEl");
|
|
2295
2229
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
2296
2230
|
return (_ctx, _cache) => {
|
|
2297
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2298
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2231
|
+
return openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
2232
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$B, [
|
|
2299
2233
|
createVNode(KdsIcon, {
|
|
2300
2234
|
name: props.leadingIcon,
|
|
2301
2235
|
size: "small"
|
|
@@ -2306,15 +2240,15 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
2306
2240
|
ref: labelEl,
|
|
2307
2241
|
class: "label",
|
|
2308
2242
|
title: unref(isTruncated) ? props.label : void 0
|
|
2309
|
-
}, toDisplayString(props.label), 9, _hoisted_3$
|
|
2243
|
+
}, toDisplayString(props.label), 9, _hoisted_3$r)
|
|
2310
2244
|
]);
|
|
2311
2245
|
};
|
|
2312
2246
|
}
|
|
2313
2247
|
});
|
|
2314
2248
|
|
|
2315
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2249
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-5eeb1226"]]);
|
|
2316
2250
|
|
|
2317
|
-
const _sfc_main$
|
|
2251
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
2318
2252
|
__name: "KdsMenuItem",
|
|
2319
2253
|
props: {
|
|
2320
2254
|
item: {},
|
|
@@ -2484,14 +2418,14 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
2484
2418
|
}
|
|
2485
2419
|
});
|
|
2486
2420
|
|
|
2487
|
-
const KdsMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2421
|
+
const KdsMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-96d9cfba"]]);
|
|
2488
2422
|
|
|
2489
2423
|
const ContainerDepthKey = /* @__PURE__ */ Symbol("ContainerDepth");
|
|
2490
2424
|
const ChildItemKey = /* @__PURE__ */ Symbol("ChildItem");
|
|
2491
2425
|
|
|
2492
|
-
const _hoisted_1$
|
|
2493
|
-
const _hoisted_2$
|
|
2494
|
-
const _sfc_main$
|
|
2426
|
+
const _hoisted_1$W = ["id", "aria-label", "aria-activedescendant"];
|
|
2427
|
+
const _hoisted_2$A = ["id"];
|
|
2428
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
2495
2429
|
__name: "KdsMenuContainer",
|
|
2496
2430
|
props: {
|
|
2497
2431
|
id: {},
|
|
@@ -2717,17 +2651,17 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
2717
2651
|
items: item.children ?? [],
|
|
2718
2652
|
onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event))
|
|
2719
2653
|
}, null, 8, ["id", "ariaLabel", "items"])
|
|
2720
|
-
], 44, _hoisted_2$
|
|
2654
|
+
], 44, _hoisted_2$A)
|
|
2721
2655
|
]),
|
|
2722
2656
|
_: 2
|
|
2723
2657
|
}, 1032, ["item", "is-last", "active-id", "variant", "onClick", "onMouseenter"]);
|
|
2724
2658
|
}), 128))
|
|
2725
|
-
], 44, _hoisted_1$
|
|
2659
|
+
], 44, _hoisted_1$W);
|
|
2726
2660
|
};
|
|
2727
2661
|
}
|
|
2728
2662
|
});
|
|
2729
2663
|
|
|
2730
|
-
const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2664
|
+
const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-ae4f1dab"]]);
|
|
2731
2665
|
|
|
2732
2666
|
const kdsPopoverPlacement = {
|
|
2733
2667
|
TOP_LEFT: "top-left",
|
|
@@ -2751,12 +2685,12 @@ const kdsPopoverType = {
|
|
|
2751
2685
|
};
|
|
2752
2686
|
const kdsPopoverTypes = Object.values(kdsPopoverType);
|
|
2753
2687
|
|
|
2754
|
-
const _hoisted_1$
|
|
2755
|
-
const _hoisted_2$
|
|
2688
|
+
const _hoisted_1$V = ["id", "popover", "role"];
|
|
2689
|
+
const _hoisted_2$z = {
|
|
2756
2690
|
key: 0,
|
|
2757
2691
|
class: "kds-popover-default-content"
|
|
2758
2692
|
};
|
|
2759
|
-
const _sfc_main$
|
|
2693
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
2760
2694
|
__name: "KdsPopover",
|
|
2761
2695
|
props: /* @__PURE__ */ mergeModels({
|
|
2762
2696
|
role: {},
|
|
@@ -2814,21 +2748,21 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
2814
2748
|
onToggle
|
|
2815
2749
|
}, [
|
|
2816
2750
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2817
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2751
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$z, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
2818
2752
|
], true)
|
|
2819
|
-
], 46, _hoisted_1$
|
|
2753
|
+
], 46, _hoisted_1$V);
|
|
2820
2754
|
};
|
|
2821
2755
|
}
|
|
2822
2756
|
});
|
|
2823
2757
|
|
|
2824
|
-
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2758
|
+
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-f41f0af7"]]);
|
|
2825
2759
|
|
|
2826
2760
|
const KdsPopover$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2827
2761
|
__proto__: null,
|
|
2828
2762
|
default: KdsPopover
|
|
2829
2763
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2830
2764
|
|
|
2831
|
-
const _sfc_main$
|
|
2765
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
2832
2766
|
...{
|
|
2833
2767
|
inheritAttrs: false
|
|
2834
2768
|
},
|
|
@@ -2892,7 +2826,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
2892
2826
|
__expose({ menuButtonEl });
|
|
2893
2827
|
return (_ctx, _cache) => {
|
|
2894
2828
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2895
|
-
createVNode(_sfc_main$
|
|
2829
|
+
createVNode(_sfc_main$1v, mergeProps({ ref: "menuButton" }, toggleButtonProps.value, {
|
|
2896
2830
|
modelValue: isMenuOpen.value,
|
|
2897
2831
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event),
|
|
2898
2832
|
"aria-haspopup": "menu",
|
|
@@ -2924,7 +2858,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
2924
2858
|
}
|
|
2925
2859
|
});
|
|
2926
2860
|
|
|
2927
|
-
const _sfc_main$
|
|
2861
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
2928
2862
|
__name: "KdsSplitButton",
|
|
2929
2863
|
props: {
|
|
2930
2864
|
dataTestId: {},
|
|
@@ -3025,73 +2959,391 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
3025
2959
|
}
|
|
3026
2960
|
});
|
|
3027
2961
|
|
|
3028
|
-
const KdsSplitButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2962
|
+
const KdsSplitButton = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-ebc30e66"]]);
|
|
3029
2963
|
|
|
3030
|
-
const
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
MEDIUM: "medium",
|
|
3034
|
-
LARGE: "large"
|
|
3035
|
-
};
|
|
3036
|
-
const kdsButtonSizes = Object.values(kdsButtonSize);
|
|
3037
|
-
const kdsButtonVariant = {
|
|
3038
|
-
FILLED: "filled",
|
|
3039
|
-
OUTLINED: "outlined",
|
|
3040
|
-
TRANSPARENT: "transparent"
|
|
2964
|
+
const kdsActionButtonType = {
|
|
2965
|
+
BUTTON: "button",
|
|
2966
|
+
LINK_BUTTON: "linkButton"
|
|
3041
2967
|
};
|
|
3042
|
-
const
|
|
2968
|
+
const kdsActionButtonTypes = Object.values(kdsActionButtonType);
|
|
3043
2969
|
|
|
3044
|
-
const
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
2970
|
+
const typeToComponent = {
|
|
2971
|
+
KdsButton: _sfc_main$1y,
|
|
2972
|
+
KdsLinkButton: _sfc_main$1x,
|
|
2973
|
+
KdsSplitButton,
|
|
2974
|
+
KdsMenuButton: _sfc_main$1n,
|
|
2975
|
+
KdsProgressButton,
|
|
2976
|
+
KdsToggleButton: _sfc_main$1v
|
|
3049
2977
|
};
|
|
3050
|
-
const
|
|
3051
|
-
|
|
3052
|
-
|
|
2978
|
+
const fullBindings = (entry) => ({
|
|
2979
|
+
...entry.meta
|
|
2980
|
+
});
|
|
2981
|
+
const iconOnlyBindings = (entry, leadingIcon, ariaLabel) => {
|
|
2982
|
+
const {
|
|
2983
|
+
label: _label,
|
|
2984
|
+
trailingIcon: _trailingIcon,
|
|
2985
|
+
ariaLabel: _ariaLabel,
|
|
2986
|
+
title,
|
|
2987
|
+
leadingIcon: _leadingIcon,
|
|
2988
|
+
...rest
|
|
2989
|
+
} = entry.meta;
|
|
2990
|
+
return {
|
|
2991
|
+
...rest,
|
|
2992
|
+
leadingIcon,
|
|
2993
|
+
ariaLabel,
|
|
2994
|
+
title: title ?? ariaLabel
|
|
2995
|
+
};
|
|
3053
2996
|
};
|
|
3054
|
-
const
|
|
3055
|
-
|
|
2997
|
+
const hasLeadingIcon = (entry) => "leadingIcon" in entry.meta && Boolean(entry.meta.leadingIcon);
|
|
2998
|
+
const isIconCapable = (entry) => entry.canBeIconOnly !== false && hasLeadingIcon(entry);
|
|
2999
|
+
const accessoryFor = (entry) => "leadingIcon" in entry.meta && entry.meta.leadingIcon ? { type: "icon", name: entry.meta.leadingIcon } : void 0;
|
|
3000
|
+
const toMenuItem = (entry) => {
|
|
3001
|
+
switch (entry.type) {
|
|
3002
|
+
case "KdsButton":
|
|
3003
|
+
return {
|
|
3004
|
+
id: entry.id,
|
|
3005
|
+
text: entry.meta.label,
|
|
3006
|
+
disabled: entry.meta.disabled,
|
|
3007
|
+
accessory: accessoryFor(entry),
|
|
3008
|
+
handler: (_item, ev) => entry.handler(entry, ev)
|
|
3009
|
+
};
|
|
3010
|
+
case "KdsProgressButton":
|
|
3011
|
+
return {
|
|
3012
|
+
id: entry.id,
|
|
3013
|
+
text: entry.meta.label,
|
|
3014
|
+
disabled: entry.meta.disabled,
|
|
3015
|
+
accessory: accessoryFor(entry),
|
|
3016
|
+
handler: (_item, ev) => entry.handler(entry, ev)
|
|
3017
|
+
};
|
|
3018
|
+
case "KdsToggleButton":
|
|
3019
|
+
return {
|
|
3020
|
+
id: entry.id,
|
|
3021
|
+
text: entry.meta.label,
|
|
3022
|
+
disabled: entry.meta.disabled,
|
|
3023
|
+
accessory: accessoryFor(entry),
|
|
3024
|
+
trailingIcon: entry.meta.modelValue ? "checkmark" : void 0,
|
|
3025
|
+
handler: () => entry.handler(entry, !entry.meta.modelValue)
|
|
3026
|
+
};
|
|
3027
|
+
case "KdsLinkButton":
|
|
3028
|
+
return {
|
|
3029
|
+
id: entry.id,
|
|
3030
|
+
text: entry.meta.label,
|
|
3031
|
+
disabled: entry.meta.disabled,
|
|
3032
|
+
accessory: accessoryFor(entry),
|
|
3033
|
+
to: entry.meta.to,
|
|
3034
|
+
target: entry.meta.target,
|
|
3035
|
+
rel: entry.meta.rel,
|
|
3036
|
+
download: entry.meta.download
|
|
3037
|
+
};
|
|
3038
|
+
case "KdsSplitButton":
|
|
3039
|
+
return {
|
|
3040
|
+
id: entry.id,
|
|
3041
|
+
text: entry.meta.label,
|
|
3042
|
+
disabled: entry.meta.disabled,
|
|
3043
|
+
accessory: accessoryFor(entry),
|
|
3044
|
+
children: [
|
|
3045
|
+
{
|
|
3046
|
+
id: `${entry.id}__primary`,
|
|
3047
|
+
text: entry.meta.label,
|
|
3048
|
+
accessory: accessoryFor(entry),
|
|
3049
|
+
separator: true,
|
|
3050
|
+
handler: (_item, ev) => entry.handler(entry, ev)
|
|
3051
|
+
},
|
|
3052
|
+
...entry.meta.items
|
|
3053
|
+
]
|
|
3054
|
+
};
|
|
3055
|
+
case "KdsMenuButton":
|
|
3056
|
+
return {
|
|
3057
|
+
id: entry.id,
|
|
3058
|
+
text: entry.meta.label,
|
|
3059
|
+
disabled: entry.meta.disabled,
|
|
3060
|
+
accessory: accessoryFor(entry),
|
|
3061
|
+
children: entry.meta.items
|
|
3062
|
+
};
|
|
3063
|
+
default: {
|
|
3064
|
+
const _exhaustive = entry;
|
|
3065
|
+
return _exhaustive;
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3070
|
+
const _hoisted_1$U = {
|
|
3071
|
+
ref: "measureContainer",
|
|
3072
|
+
class: "kds-button-group-measure",
|
|
3073
|
+
"aria-hidden": "true",
|
|
3074
|
+
inert: ""
|
|
3075
|
+
};
|
|
3076
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
3077
|
+
...{ inheritAttrs: false },
|
|
3078
|
+
__name: "KdsResponsiveButtonGroup",
|
|
3056
3079
|
props: {
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
loadingSpinner: { type: Boolean },
|
|
3060
|
-
disabled: { type: Boolean, default: false },
|
|
3061
|
-
button: {},
|
|
3062
|
-
secondaryButton: {}
|
|
3080
|
+
buttons: {},
|
|
3081
|
+
alignment: { default: "left" }
|
|
3063
3082
|
},
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
const
|
|
3067
|
-
const
|
|
3068
|
-
const
|
|
3069
|
-
|
|
3070
|
-
);
|
|
3071
|
-
const
|
|
3072
|
-
|
|
3073
|
-
);
|
|
3074
|
-
const
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3083
|
+
setup(__props) {
|
|
3084
|
+
const measureContainerEl = useTemplateRef("measureContainer");
|
|
3085
|
+
const measureFullEls = useTemplateRef("measureFullEntry");
|
|
3086
|
+
const measureIconEls = useTemplateRef("measureIconEntry");
|
|
3087
|
+
const measureMenuButtonEl = useTemplateRef("measureMenuButton");
|
|
3088
|
+
const buttonsContainerEl = useTemplateRef("buttonsContainer");
|
|
3089
|
+
const { width: containerWidth } = useElementSize(buttonsContainerEl);
|
|
3090
|
+
const gap = ref(0);
|
|
3091
|
+
const fullWidths = ref([]);
|
|
3092
|
+
const iconOnlyWidths = ref([]);
|
|
3093
|
+
const menuButtonWidth = ref(0);
|
|
3094
|
+
const iconOnlyEligibleEntries = computed(() => {
|
|
3095
|
+
const result = [];
|
|
3096
|
+
__props.buttons.forEach((entry, index) => {
|
|
3097
|
+
if (!isIconCapable(entry)) {
|
|
3098
|
+
return;
|
|
3099
|
+
}
|
|
3100
|
+
const meta = entry.meta;
|
|
3101
|
+
if (!meta.leadingIcon) {
|
|
3102
|
+
return;
|
|
3103
|
+
}
|
|
3104
|
+
result.push({
|
|
3105
|
+
entry,
|
|
3106
|
+
index,
|
|
3107
|
+
leadingIcon: meta.leadingIcon,
|
|
3108
|
+
label: meta.label
|
|
3109
|
+
});
|
|
3110
|
+
});
|
|
3111
|
+
return result;
|
|
3112
|
+
});
|
|
3113
|
+
const layout = computed(() => {
|
|
3114
|
+
const available = containerWidth.value;
|
|
3115
|
+
const n = __props.buttons.length;
|
|
3116
|
+
if (n === 0) {
|
|
3117
|
+
return { mode: "full", inMenu: /* @__PURE__ */ new Set() };
|
|
3118
|
+
}
|
|
3119
|
+
const gapTotal = (count) => gap.value * Math.max(0, count - 1);
|
|
3120
|
+
const sumFull = fullWidths.value.reduce((acc, w) => acc + (w ?? 0), 0) + gapTotal(n);
|
|
3121
|
+
if (!available || sumFull <= available) {
|
|
3122
|
+
return { mode: "full", inMenu: /* @__PURE__ */ new Set() };
|
|
3123
|
+
}
|
|
3124
|
+
const effectiveWidths = __props.buttons.map(
|
|
3125
|
+
(entry, i) => isIconCapable(entry) ? iconOnlyWidths.value[i] ?? fullWidths.value[i] ?? 0 : fullWidths.value[i] ?? 0
|
|
3126
|
+
);
|
|
3127
|
+
const sumCollapsed = effectiveWidths.reduce((acc, w) => acc + w, 0) + gapTotal(n);
|
|
3128
|
+
if (sumCollapsed <= available) {
|
|
3129
|
+
return { mode: "icon-only", inMenu: /* @__PURE__ */ new Set() };
|
|
3130
|
+
}
|
|
3131
|
+
const inMenu = /* @__PURE__ */ new Set();
|
|
3132
|
+
for (let i = n - 1; i >= 0; i--) {
|
|
3133
|
+
if (__props.buttons[i].canMoveToMenu === false) {
|
|
3134
|
+
continue;
|
|
3135
|
+
}
|
|
3136
|
+
inMenu.add(i);
|
|
3137
|
+
let visibleSum = 0;
|
|
3138
|
+
let visibleCount = 0;
|
|
3139
|
+
for (let j = 0; j < n; j++) {
|
|
3140
|
+
if (inMenu.has(j)) {
|
|
3141
|
+
continue;
|
|
3142
|
+
}
|
|
3143
|
+
visibleSum += effectiveWidths[j];
|
|
3144
|
+
visibleCount++;
|
|
3145
|
+
}
|
|
3146
|
+
const width = visibleSum + gapTotal(visibleCount) + menuButtonWidth.value + (visibleCount > 0 ? gap.value : 0);
|
|
3147
|
+
if (width <= available) {
|
|
3148
|
+
return { mode: "partial", inMenu };
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
return { mode: "overflow", inMenu };
|
|
3152
|
+
});
|
|
3153
|
+
const visibleEntries = computed(() => {
|
|
3154
|
+
const collapseIcons = layout.value.mode !== "full";
|
|
3155
|
+
const result = [];
|
|
3156
|
+
__props.buttons.forEach((entry, index) => {
|
|
3157
|
+
if (layout.value.inMenu.has(index)) {
|
|
3158
|
+
return;
|
|
3159
|
+
}
|
|
3160
|
+
const meta = entry.meta;
|
|
3161
|
+
const iconOnly = collapseIcons && isIconCapable(entry) && meta.leadingIcon ? { leadingIcon: meta.leadingIcon, ariaLabel: meta.label } : void 0;
|
|
3162
|
+
result.push({ entry, iconOnly });
|
|
3163
|
+
});
|
|
3164
|
+
return result;
|
|
3165
|
+
});
|
|
3166
|
+
const overflowMenuItems = computed(() => {
|
|
3167
|
+
const indices = Array.from(layout.value.inMenu).sort((a, b) => a - b);
|
|
3168
|
+
return indices.map((i) => toMenuItem(__props.buttons[i]));
|
|
3169
|
+
});
|
|
3170
|
+
const refOffsetWidth = (instance) => {
|
|
3171
|
+
if (!instance) {
|
|
3172
|
+
return 0;
|
|
3173
|
+
}
|
|
3174
|
+
if (instance.menuButtonEl?.$el) {
|
|
3175
|
+
return instance.menuButtonEl.$el.offsetWidth ?? 0;
|
|
3176
|
+
}
|
|
3177
|
+
return instance.$el?.offsetWidth ?? 0;
|
|
3178
|
+
};
|
|
3179
|
+
const measureButtons = async () => {
|
|
3180
|
+
await nextTick();
|
|
3181
|
+
if (!measureContainerEl.value) {
|
|
3182
|
+
return;
|
|
3183
|
+
}
|
|
3184
|
+
fullWidths.value = Array.from(measureFullEls.value ?? []).map(refOffsetWidth);
|
|
3185
|
+
const iconWidthByIndex = new Array(__props.buttons.length);
|
|
3186
|
+
const eligibleIndices = iconOnlyEligibleEntries.value.map((e) => e.index);
|
|
3187
|
+
const iconRefs = Array.from(measureIconEls.value ?? []);
|
|
3188
|
+
eligibleIndices.forEach((buttonIndex, measureIndex) => {
|
|
3189
|
+
iconWidthByIndex[buttonIndex] = refOffsetWidth(iconRefs[measureIndex]);
|
|
3190
|
+
});
|
|
3191
|
+
iconOnlyWidths.value = iconWidthByIndex;
|
|
3192
|
+
menuButtonWidth.value = refOffsetWidth(measureMenuButtonEl.value);
|
|
3193
|
+
};
|
|
3194
|
+
const visibleBindings = (visible) => {
|
|
3195
|
+
const base = visible.iconOnly ? iconOnlyBindings(
|
|
3196
|
+
visible.entry,
|
|
3197
|
+
visible.iconOnly.leadingIcon,
|
|
3198
|
+
visible.iconOnly.ariaLabel
|
|
3199
|
+
) : fullBindings(visible.entry);
|
|
3200
|
+
const entry = visible.entry;
|
|
3201
|
+
if (entry.type === "KdsToggleButton") {
|
|
3202
|
+
return {
|
|
3203
|
+
...base,
|
|
3204
|
+
"onUpdate:modelValue": (next) => entry.handler(entry, next)
|
|
3205
|
+
};
|
|
3206
|
+
}
|
|
3207
|
+
if ("handler" in entry && typeof entry.handler === "function") {
|
|
3208
|
+
const handler = entry.handler;
|
|
3209
|
+
return {
|
|
3210
|
+
...base,
|
|
3211
|
+
onClick: (ev) => handler(entry, ev)
|
|
3212
|
+
};
|
|
3213
|
+
}
|
|
3214
|
+
return base;
|
|
3215
|
+
};
|
|
3216
|
+
watch(() => __props.buttons, measureButtons, { deep: true });
|
|
3217
|
+
onMounted(() => {
|
|
3218
|
+
if (buttonsContainerEl.value) {
|
|
3219
|
+
gap.value = Number.parseFloat(getComputedStyle(buttonsContainerEl.value).gap) || 0;
|
|
3220
|
+
}
|
|
3221
|
+
measureButtons();
|
|
3222
|
+
});
|
|
3223
|
+
return (_ctx, _cache) => {
|
|
3224
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
3225
|
+
createElementVNode("div", _hoisted_1$U, [
|
|
3226
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (button) => {
|
|
3227
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[button.type]), mergeProps({
|
|
3228
|
+
key: `full-${button.id}`,
|
|
3229
|
+
ref_for: true,
|
|
3230
|
+
ref: "measureFullEntry"
|
|
3231
|
+
}, { ref_for: true }, unref(fullBindings)(button)), null, 16);
|
|
3232
|
+
}), 128)),
|
|
3233
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(iconOnlyEligibleEntries.value, (iconItem) => {
|
|
3234
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[iconItem.entry.type]), mergeProps(
|
|
3235
|
+
{
|
|
3236
|
+
key: `icon-${iconItem.entry.id}`,
|
|
3237
|
+
ref_for: true,
|
|
3238
|
+
ref: "measureIconEntry"
|
|
3239
|
+
},
|
|
3240
|
+
{ ref_for: true },
|
|
3241
|
+
unref(iconOnlyBindings)(iconItem.entry, iconItem.leadingIcon, iconItem.label)
|
|
3242
|
+
), null, 16);
|
|
3243
|
+
}), 128)),
|
|
3244
|
+
createVNode(_sfc_main$1n, {
|
|
3245
|
+
ref: "measureMenuButton",
|
|
3246
|
+
"leading-icon": "more-actions",
|
|
3247
|
+
ariaLabel: "More actions",
|
|
3248
|
+
items: [{ id: "_", text: "_" }]
|
|
3249
|
+
}, null, 512)
|
|
3250
|
+
], 512),
|
|
3251
|
+
createElementVNode("div", mergeProps({ ref: "buttonsContainer" }, _ctx.$attrs, {
|
|
3252
|
+
class: ["kds-button-group", __props.alignment]
|
|
3253
|
+
}), [
|
|
3254
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleEntries.value, (visible) => {
|
|
3255
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[visible.entry.type]), mergeProps({
|
|
3256
|
+
key: visible.entry.id
|
|
3257
|
+
}, { ref_for: true }, visibleBindings(visible)), null, 16);
|
|
3258
|
+
}), 128)),
|
|
3259
|
+
overflowMenuItems.value.length ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
3260
|
+
key: 0,
|
|
3261
|
+
"leading-icon": "more-actions",
|
|
3262
|
+
ariaLabel: "More actions",
|
|
3263
|
+
items: overflowMenuItems.value
|
|
3264
|
+
}, null, 8, ["items"])) : createCommentVNode("", true)
|
|
3265
|
+
], 16)
|
|
3266
|
+
], 64);
|
|
3267
|
+
};
|
|
3268
|
+
}
|
|
3269
|
+
});
|
|
3270
|
+
|
|
3271
|
+
const KdsResponsiveButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-59d058df"]]);
|
|
3272
|
+
|
|
3273
|
+
const kdsResponsiveButtonGroupAlignment = {
|
|
3274
|
+
LEFT: "left",
|
|
3275
|
+
RIGHT: "right",
|
|
3276
|
+
MIDDLE: "middle"
|
|
3277
|
+
};
|
|
3278
|
+
const kdsResponsiveButtonGroupAlignments = Object.values(
|
|
3279
|
+
kdsResponsiveButtonGroupAlignment
|
|
3280
|
+
);
|
|
3281
|
+
|
|
3282
|
+
const kdsButtonSize = {
|
|
3283
|
+
XSMALL: "xsmall",
|
|
3284
|
+
SMALL: "small",
|
|
3285
|
+
MEDIUM: "medium",
|
|
3286
|
+
LARGE: "large"
|
|
3287
|
+
};
|
|
3288
|
+
const kdsButtonSizes = Object.values(kdsButtonSize);
|
|
3289
|
+
const kdsButtonVariant = {
|
|
3290
|
+
FILLED: "filled",
|
|
3291
|
+
OUTLINED: "outlined",
|
|
3292
|
+
TRANSPARENT: "transparent"
|
|
3293
|
+
};
|
|
3294
|
+
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
3295
|
+
|
|
3296
|
+
const _hoisted_1$T = ["aria-disabled"];
|
|
3297
|
+
const _hoisted_2$y = { class: "kds-empty-state-headline" };
|
|
3298
|
+
const _hoisted_3$q = {
|
|
3299
|
+
key: 1,
|
|
3300
|
+
class: "kds-empty-state-description"
|
|
3301
|
+
};
|
|
3302
|
+
const _hoisted_4$n = {
|
|
3303
|
+
key: 2,
|
|
3304
|
+
class: "kds-empty-state-action"
|
|
3305
|
+
};
|
|
3306
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
3307
|
+
__name: "KdsEmptyState",
|
|
3308
|
+
props: {
|
|
3309
|
+
headline: {},
|
|
3310
|
+
description: {},
|
|
3311
|
+
loadingSpinner: { type: Boolean },
|
|
3312
|
+
disabled: { type: Boolean, default: false },
|
|
3313
|
+
button: {},
|
|
3314
|
+
secondaryButton: {}
|
|
3315
|
+
},
|
|
3316
|
+
emits: ["buttonClick", "secondaryButtonClick"],
|
|
3317
|
+
setup(__props, { emit: __emit }) {
|
|
3318
|
+
const props = createPropsRestProxy(__props, ["disabled"]);
|
|
3319
|
+
const emit = __emit;
|
|
3320
|
+
const isLinkButton = computed(
|
|
3321
|
+
() => props.button && "to" in props.button && props.button.to !== void 0
|
|
3322
|
+
);
|
|
3323
|
+
const buttonComponent = computed(
|
|
3324
|
+
() => isLinkButton.value ? _sfc_main$1x : _sfc_main$1y
|
|
3325
|
+
);
|
|
3326
|
+
const isSecondaryLinkButton = computed(
|
|
3327
|
+
() => props.secondaryButton && "to" in props.secondaryButton && props.secondaryButton.to !== void 0
|
|
3328
|
+
);
|
|
3329
|
+
const secondaryButtonComponent = computed(
|
|
3330
|
+
() => isSecondaryLinkButton.value ? _sfc_main$1x : _sfc_main$1y
|
|
3331
|
+
);
|
|
3332
|
+
return (_ctx, _cache) => {
|
|
3333
|
+
return openBlock(), createElementBlock("div", {
|
|
3334
|
+
class: normalizeClass(["kds-empty-state", { disabled: __props.disabled }]),
|
|
3335
|
+
"aria-disabled": __props.disabled || void 0
|
|
3336
|
+
}, [
|
|
3337
|
+
props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
3338
|
+
key: 0,
|
|
3339
|
+
"data-testid": "loading-spinner",
|
|
3340
|
+
size: "large",
|
|
3341
|
+
variant: "onSurface",
|
|
3342
|
+
"aria-hidden": "true"
|
|
3343
|
+
})) : createCommentVNode("", true),
|
|
3344
|
+
createElementVNode("p", _hoisted_2$y, toDisplayString(props.headline), 1),
|
|
3345
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$q, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
3346
|
+
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
3095
3347
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
3096
3348
|
disabled: props.button?.disabled || __props.disabled,
|
|
3097
3349
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("buttonClick", $event))
|
|
@@ -3101,16 +3353,16 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3101
3353
|
onClick: _cache[1] || (_cache[1] = ($event) => !__props.disabled && emit("secondaryButtonClick", $event))
|
|
3102
3354
|
}), null, 16, ["disabled"])) : createCommentVNode("", true)
|
|
3103
3355
|
])) : createCommentVNode("", true)
|
|
3104
|
-
], 10, _hoisted_1$
|
|
3356
|
+
], 10, _hoisted_1$T);
|
|
3105
3357
|
};
|
|
3106
3358
|
}
|
|
3107
3359
|
});
|
|
3108
3360
|
|
|
3109
|
-
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3361
|
+
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-e913660a"]]);
|
|
3110
3362
|
|
|
3111
|
-
const _hoisted_1$
|
|
3363
|
+
const _hoisted_1$S = ["aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
3112
3364
|
const loadingStateText = "Loading entries";
|
|
3113
|
-
const _sfc_main$
|
|
3365
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
3114
3366
|
__name: "KdsListContainer",
|
|
3115
3367
|
props: {
|
|
3116
3368
|
possibleValues: {},
|
|
@@ -3233,19 +3485,19 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
3233
3485
|
"loading-spinner": __props.loading
|
|
3234
3486
|
}, null, 8, ["headline", "loading-spinner"])
|
|
3235
3487
|
])) : createCommentVNode("", true)
|
|
3236
|
-
], 16, _hoisted_1$
|
|
3488
|
+
], 16, _hoisted_1$S);
|
|
3237
3489
|
};
|
|
3238
3490
|
}
|
|
3239
3491
|
});
|
|
3240
3492
|
|
|
3241
|
-
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3493
|
+
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-118706ad"]]);
|
|
3242
3494
|
|
|
3243
3495
|
const KdsListContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3244
3496
|
__proto__: null,
|
|
3245
3497
|
default: KdsListContainer
|
|
3246
3498
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3247
3499
|
|
|
3248
|
-
const _sfc_main$
|
|
3500
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
3249
3501
|
...{ inheritAttrs: false },
|
|
3250
3502
|
__name: "KdsMenu",
|
|
3251
3503
|
props: {
|
|
@@ -3345,7 +3597,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
3345
3597
|
}
|
|
3346
3598
|
});
|
|
3347
3599
|
|
|
3348
|
-
const _sfc_main$
|
|
3600
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
3349
3601
|
...{ inheritAttrs: false },
|
|
3350
3602
|
__name: "KdsContextMenu",
|
|
3351
3603
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -3445,9 +3697,9 @@ const kdsDimensionComponentHeight2p25x = 36;
|
|
|
3445
3697
|
const kdsSpacingContainer0p10x = 1;
|
|
3446
3698
|
const kdsSpacingContainer0p25x = 4;
|
|
3447
3699
|
|
|
3448
|
-
const _hoisted_1$
|
|
3449
|
-
const _hoisted_2$
|
|
3450
|
-
const _sfc_main$
|
|
3700
|
+
const _hoisted_1$R = { class: "kds-label-wrapper" };
|
|
3701
|
+
const _hoisted_2$x = ["id", "for", "title"];
|
|
3702
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
3451
3703
|
__name: "KdsLabel",
|
|
3452
3704
|
props: {
|
|
3453
3705
|
label: {},
|
|
@@ -3464,7 +3716,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3464
3716
|
const labelEl = useTemplateRef("labelEl");
|
|
3465
3717
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
3466
3718
|
return (_ctx, _cache) => {
|
|
3467
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3719
|
+
return openBlock(), createElementBlock("div", _hoisted_1$R, [
|
|
3468
3720
|
createElementVNode("label", {
|
|
3469
3721
|
id: props.id,
|
|
3470
3722
|
ref_key: "labelEl",
|
|
@@ -3472,7 +3724,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3472
3724
|
for: props.for,
|
|
3473
3725
|
class: "label",
|
|
3474
3726
|
title: unref(isTruncated) ? props.label : void 0
|
|
3475
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
3727
|
+
}, toDisplayString(props.label), 9, _hoisted_2$x),
|
|
3476
3728
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
3477
3729
|
key: 0,
|
|
3478
3730
|
content: props.description,
|
|
@@ -3483,11 +3735,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3483
3735
|
}
|
|
3484
3736
|
});
|
|
3485
3737
|
|
|
3486
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3738
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-efe3313e"]]);
|
|
3487
3739
|
|
|
3488
|
-
const _hoisted_1$
|
|
3489
|
-
const _hoisted_2$
|
|
3490
|
-
const _sfc_main$
|
|
3740
|
+
const _hoisted_1$Q = ["id"];
|
|
3741
|
+
const _hoisted_2$w = { class: "subtext-text" };
|
|
3742
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
3491
3743
|
__name: "KdsSubText",
|
|
3492
3744
|
props: {
|
|
3493
3745
|
id: {},
|
|
@@ -3518,15 +3770,15 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
3518
3770
|
variant: "onSurface",
|
|
3519
3771
|
"aria-hidden": "true"
|
|
3520
3772
|
})) : createCommentVNode("", true),
|
|
3521
|
-
createElementVNode("span", _hoisted_2$
|
|
3522
|
-
], 10, _hoisted_1$
|
|
3773
|
+
createElementVNode("span", _hoisted_2$w, toDisplayString(props.subText), 1)
|
|
3774
|
+
], 10, _hoisted_1$Q)) : createCommentVNode("", true);
|
|
3523
3775
|
};
|
|
3524
3776
|
}
|
|
3525
3777
|
});
|
|
3526
3778
|
|
|
3527
|
-
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3779
|
+
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-2e6ba10c"]]);
|
|
3528
3780
|
|
|
3529
|
-
const _sfc_main$
|
|
3781
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
3530
3782
|
__name: "BaseFormFieldWrapper",
|
|
3531
3783
|
props: {
|
|
3532
3784
|
id: {},
|
|
@@ -3578,7 +3830,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
3578
3830
|
}
|
|
3579
3831
|
});
|
|
3580
3832
|
|
|
3581
|
-
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3833
|
+
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5d99c134"]]);
|
|
3582
3834
|
|
|
3583
3835
|
const MIN_SEGMENT_INDEX = 0;
|
|
3584
3836
|
const LARGE_STEP = 10;
|
|
@@ -4258,17 +4510,17 @@ const useInputSegments = (modelValue, getInputElement, configRef) => {
|
|
|
4258
4510
|
};
|
|
4259
4511
|
};
|
|
4260
4512
|
|
|
4261
|
-
const _hoisted_1$
|
|
4513
|
+
const _hoisted_1$P = {
|
|
4262
4514
|
key: 0,
|
|
4263
4515
|
class: "icon-wrapper leading"
|
|
4264
4516
|
};
|
|
4265
|
-
const _hoisted_2$
|
|
4517
|
+
const _hoisted_2$v = {
|
|
4266
4518
|
key: 1,
|
|
4267
4519
|
class: "leading-slot"
|
|
4268
4520
|
};
|
|
4269
|
-
const _hoisted_3$
|
|
4270
|
-
const _hoisted_4$
|
|
4271
|
-
const _hoisted_5$
|
|
4521
|
+
const _hoisted_3$p = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "pattern", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant", "aria-haspopup", "aria-controls", "aria-expanded", "aria-autocomplete"];
|
|
4522
|
+
const _hoisted_4$m = ["aria-disabled"];
|
|
4523
|
+
const _hoisted_5$d = {
|
|
4272
4524
|
key: 4,
|
|
4273
4525
|
class: "trailing-slot"
|
|
4274
4526
|
};
|
|
@@ -4276,7 +4528,7 @@ const _hoisted_6$9 = {
|
|
|
4276
4528
|
key: 5,
|
|
4277
4529
|
class: "icon-wrapper trailing"
|
|
4278
4530
|
};
|
|
4279
|
-
const _sfc_main$
|
|
4531
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
4280
4532
|
__name: "BaseInput",
|
|
4281
4533
|
props: /* @__PURE__ */ mergeModels({
|
|
4282
4534
|
id: {},
|
|
@@ -4427,13 +4679,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4427
4679
|
}),
|
|
4428
4680
|
onClick: handleContainerClick
|
|
4429
4681
|
}, [
|
|
4430
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4682
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
4431
4683
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
4432
4684
|
key: 0,
|
|
4433
4685
|
name: props.leadingIcon
|
|
4434
4686
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
4435
4687
|
])) : createCommentVNode("", true),
|
|
4436
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4688
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
4437
4689
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
4438
4690
|
])) : createCommentVNode("", true),
|
|
4439
4691
|
createElementVNode("input", {
|
|
@@ -4478,7 +4730,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4478
4730
|
onCut: handleInputCut,
|
|
4479
4731
|
onDrop: handleInputDrop,
|
|
4480
4732
|
onDragend: handleInputDragEnd
|
|
4481
|
-
}, null, 42, _hoisted_3$
|
|
4733
|
+
}, null, 42, _hoisted_3$p),
|
|
4482
4734
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
4483
4735
|
key: 2,
|
|
4484
4736
|
class: normalizeClass({
|
|
@@ -4487,8 +4739,8 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4487
4739
|
disabled: __props.disabled
|
|
4488
4740
|
}),
|
|
4489
4741
|
"aria-disabled": __props.disabled || void 0
|
|
4490
|
-
}, toDisplayString(props.unit), 11, _hoisted_4$
|
|
4491
|
-
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$
|
|
4742
|
+
}, toDisplayString(props.unit), 11, _hoisted_4$m)) : createCommentVNode("", true),
|
|
4743
|
+
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$1y, {
|
|
4492
4744
|
key: 3,
|
|
4493
4745
|
class: "clear-button",
|
|
4494
4746
|
size: "xsmall",
|
|
@@ -4498,7 +4750,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4498
4750
|
title: "Clear",
|
|
4499
4751
|
onClick: withModifiers(clearAndFocusInput, ["stop"])
|
|
4500
4752
|
})) : createCommentVNode("", true),
|
|
4501
|
-
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4753
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
4502
4754
|
renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
|
|
4503
4755
|
])) : createCommentVNode("", true),
|
|
4504
4756
|
props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
@@ -4511,9 +4763,9 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4511
4763
|
}
|
|
4512
4764
|
});
|
|
4513
4765
|
|
|
4514
|
-
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4766
|
+
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-2e12b7e4"]]);
|
|
4515
4767
|
|
|
4516
|
-
const _sfc_main$
|
|
4768
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
4517
4769
|
__name: "KdsTextInput",
|
|
4518
4770
|
props: /* @__PURE__ */ mergeModels({
|
|
4519
4771
|
description: {},
|
|
@@ -4681,9 +4933,9 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
4681
4933
|
}
|
|
4682
4934
|
});
|
|
4683
4935
|
|
|
4684
|
-
const KdsTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4936
|
+
const KdsTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-dd35e2a4"]]);
|
|
4685
4937
|
|
|
4686
|
-
const _sfc_main$
|
|
4938
|
+
const _sfc_main$1b = defineComponent({
|
|
4687
4939
|
name: "FileExplorerItemBase",
|
|
4688
4940
|
props: {
|
|
4689
4941
|
isSelected: {
|
|
@@ -4701,7 +4953,7 @@ const _sfc_main$19 = defineComponent({
|
|
|
4701
4953
|
}
|
|
4702
4954
|
});
|
|
4703
4955
|
|
|
4704
|
-
const _hoisted_1$
|
|
4956
|
+
const _hoisted_1$O = ["aria-disabled"];
|
|
4705
4957
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4706
4958
|
return openBlock(), createElementBlock("tr", {
|
|
4707
4959
|
class: normalizeClass(["file-explorer-item-base", {
|
|
@@ -4714,9 +4966,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4714
4966
|
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
4715
4967
|
}, [
|
|
4716
4968
|
renderSlot(_ctx.$slots, "default")
|
|
4717
|
-
], 10, _hoisted_1$
|
|
4969
|
+
], 10, _hoisted_1$O);
|
|
4718
4970
|
}
|
|
4719
|
-
const FileExplorerItemBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4971
|
+
const FileExplorerItemBase = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render], ["__scopeId", "data-v-aad38d13"]]);
|
|
4720
4972
|
|
|
4721
4973
|
const INVALID_NAME_CHARACTERS = /[*?#:";<>%~|/\\]/;
|
|
4722
4974
|
const NAME_CHAR_LIMIT = 255;
|
|
@@ -4765,17 +5017,17 @@ const filterSlotsForDynamicColumns = (slots) => {
|
|
|
4765
5017
|
return result;
|
|
4766
5018
|
};
|
|
4767
5019
|
|
|
4768
|
-
const _hoisted_1$
|
|
4769
|
-
const _hoisted_2$
|
|
5020
|
+
const _hoisted_1$N = { class: "item-icon" };
|
|
5021
|
+
const _hoisted_2$u = {
|
|
4770
5022
|
key: 0,
|
|
4771
5023
|
class: "open-indicator"
|
|
4772
5024
|
};
|
|
4773
|
-
const _hoisted_3$
|
|
4774
|
-
const _hoisted_4$
|
|
5025
|
+
const _hoisted_3$o = ["title"];
|
|
5026
|
+
const _hoisted_4$l = {
|
|
4775
5027
|
key: 0,
|
|
4776
5028
|
class: "inner"
|
|
4777
5029
|
};
|
|
4778
|
-
const _hoisted_5$
|
|
5030
|
+
const _hoisted_5$c = {
|
|
4779
5031
|
key: 0,
|
|
4780
5032
|
class: "item-error"
|
|
4781
5033
|
};
|
|
@@ -4784,7 +5036,7 @@ const _hoisted_7$2 = {
|
|
|
4784
5036
|
key: 0,
|
|
4785
5037
|
class: /* @__PURE__ */ normalizeClass(["column"])
|
|
4786
5038
|
};
|
|
4787
|
-
const _sfc_main$
|
|
5039
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
4788
5040
|
__name: "FileExplorerItem",
|
|
4789
5041
|
props: {
|
|
4790
5042
|
blacklistedNames: {},
|
|
@@ -4885,8 +5137,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4885
5137
|
onDblclick: _cache[11] || (_cache[11] = ($event) => !unref(isRenameActive) && emit("dblclick", $event))
|
|
4886
5138
|
}, {
|
|
4887
5139
|
default: withCtx(() => [
|
|
4888
|
-
createElementVNode("td", _hoisted_1$
|
|
4889
|
-
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5140
|
+
createElementVNode("td", _hoisted_1$N, [
|
|
5141
|
+
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$u)) : createCommentVNode("", true),
|
|
4890
5142
|
createVNode(KdsIcon, {
|
|
4891
5143
|
name: __props.item.icon || (__props.item.isDirectory ? "folder" : "file"),
|
|
4892
5144
|
size: "small"
|
|
@@ -4900,7 +5152,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4900
5152
|
"data-test-id": "item-name",
|
|
4901
5153
|
title: __props.item.name
|
|
4902
5154
|
}, [
|
|
4903
|
-
!unref(isRenameActive) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
5155
|
+
!unref(isRenameActive) ? (openBlock(), createElementBlock("div", _hoisted_4$l, toDisplayString(__props.item.name), 1)) : (openBlock(), createElementBlock("div", {
|
|
4904
5156
|
key: 1,
|
|
4905
5157
|
ref_key: "renameInputContainer",
|
|
4906
5158
|
ref: renameInputContainer,
|
|
@@ -4918,11 +5170,11 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4918
5170
|
error: !unref(isValid),
|
|
4919
5171
|
onKeydown: _cache[1] || (_cache[1] = withModifiers(($event) => onRenameSubmit($event), ["stop"]))
|
|
4920
5172
|
}, null, 8, ["modelValue", "error"]),
|
|
4921
|
-
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
5173
|
+
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
4922
5174
|
createElementVNode("span", null, toDisplayString(unref(errorMessage)), 1)
|
|
4923
5175
|
])) : createCommentVNode("", true)
|
|
4924
5176
|
], 512))
|
|
4925
|
-
], 10, _hoisted_3$
|
|
5177
|
+
], 10, _hoisted_3$o),
|
|
4926
5178
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dynamicColumnSlotNames.value, (name) => {
|
|
4927
5179
|
return openBlock(), createElementBlock("td", {
|
|
4928
5180
|
key: `dynamicColumn-${name}`,
|
|
@@ -4946,9 +5198,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
4946
5198
|
}
|
|
4947
5199
|
});
|
|
4948
5200
|
|
|
4949
|
-
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5201
|
+
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-91cbcaae"]]);
|
|
4950
5202
|
|
|
4951
|
-
const _sfc_main$
|
|
5203
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
4952
5204
|
__name: "FileExplorerItemBack",
|
|
4953
5205
|
props: {
|
|
4954
5206
|
isDragging: { type: Boolean }
|
|
@@ -4976,7 +5228,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
4976
5228
|
}
|
|
4977
5229
|
});
|
|
4978
5230
|
|
|
4979
|
-
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5231
|
+
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-a5de970a"]]);
|
|
4980
5232
|
|
|
4981
5233
|
const getInitialState = () => ({
|
|
4982
5234
|
anchorHistory: [],
|
|
@@ -11872,12 +12124,12 @@ const popoverAnchor = {
|
|
|
11872
12124
|
remove
|
|
11873
12125
|
};
|
|
11874
12126
|
|
|
11875
|
-
const _hoisted_1$
|
|
11876
|
-
const _hoisted_2$
|
|
12127
|
+
const _hoisted_1$M = { class: "file-explorer" };
|
|
12128
|
+
const _hoisted_2$t = {
|
|
11877
12129
|
key: 0,
|
|
11878
12130
|
class: "empty"
|
|
11879
12131
|
};
|
|
11880
|
-
const _sfc_main$
|
|
12132
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
11881
12133
|
__name: "KdsFileExplorer",
|
|
11882
12134
|
props: /* @__PURE__ */ mergeModels({
|
|
11883
12135
|
size: { default: "large" },
|
|
@@ -12206,7 +12458,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12206
12458
|
() => Object.keys(filterSlotsForDynamicColumns(slots))
|
|
12207
12459
|
);
|
|
12208
12460
|
return (_ctx, _cache) => {
|
|
12209
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12461
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
12210
12462
|
createElementVNode("table", mergeProps({
|
|
12211
12463
|
tabindex: "0",
|
|
12212
12464
|
class: ["scroll-container", { "keyboard-focus": unref(keyPressedUntilMouseClick) }],
|
|
@@ -12277,7 +12529,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12277
12529
|
hasOptionsMenu.value ? {
|
|
12278
12530
|
name: "optionsMenu",
|
|
12279
12531
|
fn: withCtx(() => [
|
|
12280
|
-
createVNode(_sfc_main$
|
|
12532
|
+
createVNode(_sfc_main$1v, {
|
|
12281
12533
|
tabindex: "-1",
|
|
12282
12534
|
"model-value": contextMenuAnchor.value?.item.id === item.id && contextMenuAnchor.value.openedBy === "optionsMenu",
|
|
12283
12535
|
size: __props.size === "small" ? "xsmall" : "small",
|
|
@@ -12303,7 +12555,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12303
12555
|
} : void 0
|
|
12304
12556
|
]), 1032, ["class", "disabled", "item", "is-dragging", "is-selected", "is-rename-active", "blacklisted-names", "is-dragging-enabled", "has-options-menu", "onDragstart", "onDragenter", "onDragleave", "onDragend", "onDrag", "onClick", "onContextmenu", "onKeydown", "onDrop", "onDblclick"]);
|
|
12305
12557
|
}), 128)),
|
|
12306
|
-
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$
|
|
12558
|
+
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$t, [
|
|
12307
12559
|
createElementVNode("td", null, [
|
|
12308
12560
|
createVNode(KdsEmptyState, mergeProps({
|
|
12309
12561
|
headline: __props.emptyState?.headline ?? "Folder is empty"
|
|
@@ -12355,7 +12607,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12355
12607
|
}
|
|
12356
12608
|
});
|
|
12357
12609
|
|
|
12358
|
-
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12610
|
+
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-da0e6dab"]]);
|
|
12359
12611
|
|
|
12360
12612
|
const kdsFileExplorerSize = {
|
|
12361
12613
|
SMALL: "small",
|
|
@@ -12371,14 +12623,14 @@ const kdsFileExplorerDraggingAnimationModes = Object.values(
|
|
|
12371
12623
|
kdsFileExplorerDraggingAnimationMode
|
|
12372
12624
|
);
|
|
12373
12625
|
|
|
12374
|
-
const _hoisted_1$
|
|
12375
|
-
const _hoisted_2$
|
|
12376
|
-
const _hoisted_3$
|
|
12377
|
-
const _hoisted_4$
|
|
12378
|
-
const _hoisted_5$
|
|
12626
|
+
const _hoisted_1$L = { class: "kds-preview-list" };
|
|
12627
|
+
const _hoisted_2$s = { class: "kds-preview-list-title-row" };
|
|
12628
|
+
const _hoisted_3$n = { class: "kds-preview-list-content" };
|
|
12629
|
+
const _hoisted_4$k = { class: "kds-preview-list-headline" };
|
|
12630
|
+
const _hoisted_5$b = ["aria-label"];
|
|
12379
12631
|
const _hoisted_6$7 = { class: "kds-preview-list-show-hide" };
|
|
12380
12632
|
const DEFAULT_MAX_VISIBLE_ITEMS = 6;
|
|
12381
|
-
const _sfc_main$
|
|
12633
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
12382
12634
|
__name: "KdsPreviewList",
|
|
12383
12635
|
props: /* @__PURE__ */ mergeModels({
|
|
12384
12636
|
headline: {},
|
|
@@ -12412,8 +12664,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12412
12664
|
})
|
|
12413
12665
|
);
|
|
12414
12666
|
return (_ctx, _cache) => {
|
|
12415
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
12416
|
-
createElementVNode("header", _hoisted_2$
|
|
12667
|
+
return openBlock(), createElementBlock("section", _hoisted_1$L, [
|
|
12668
|
+
createElementVNode("header", _hoisted_2$s, [
|
|
12417
12669
|
__props.loading && !expanded.value ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
12418
12670
|
key: 0,
|
|
12419
12671
|
size: "small",
|
|
@@ -12423,10 +12675,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12423
12675
|
name: __props.leadingIcon,
|
|
12424
12676
|
size: "small"
|
|
12425
12677
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
12426
|
-
createElementVNode("div", _hoisted_3$
|
|
12427
|
-
createElementVNode("span", _hoisted_4$
|
|
12678
|
+
createElementVNode("div", _hoisted_3$n, [
|
|
12679
|
+
createElementVNode("span", _hoisted_4$k, toDisplayString(props.headline), 1)
|
|
12428
12680
|
]),
|
|
12429
|
-
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$
|
|
12681
|
+
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$1y, normalizeProps(mergeProps({ key: 2 }, trailingButtonProps.value)), null, 16)) : createCommentVNode("", true)
|
|
12430
12682
|
]),
|
|
12431
12683
|
withDirectives(createElementVNode("div", {
|
|
12432
12684
|
id: bodyId,
|
|
@@ -12459,12 +12711,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12459
12711
|
}, ["stop"]))
|
|
12460
12712
|
}, null, 8, ["id", "text", "accessory"]);
|
|
12461
12713
|
}), 128))
|
|
12462
|
-
], 8, _hoisted_5$
|
|
12714
|
+
], 8, _hoisted_5$b)) : createCommentVNode("", true)
|
|
12463
12715
|
], 512), [
|
|
12464
12716
|
[vShow, expanded.value]
|
|
12465
12717
|
]),
|
|
12466
12718
|
createElementVNode("footer", _hoisted_6$7, [
|
|
12467
|
-
createVNode(_sfc_main$
|
|
12719
|
+
createVNode(_sfc_main$1y, {
|
|
12468
12720
|
class: "kds-preview-list-toggle",
|
|
12469
12721
|
label: expanded.value ? "Hide all" : "Show all",
|
|
12470
12722
|
"trailing-icon": expanded.value ? "chevron-up" : "chevron-down",
|
|
@@ -12480,21 +12732,21 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12480
12732
|
}
|
|
12481
12733
|
});
|
|
12482
12734
|
|
|
12483
|
-
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12735
|
+
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-a11103f6"]]);
|
|
12484
12736
|
|
|
12485
|
-
const _hoisted_1$
|
|
12486
|
-
const _hoisted_2$
|
|
12487
|
-
const _hoisted_3$
|
|
12737
|
+
const _hoisted_1$K = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
12738
|
+
const _hoisted_2$r = { class: "control" };
|
|
12739
|
+
const _hoisted_3$m = {
|
|
12488
12740
|
key: 0,
|
|
12489
12741
|
class: "content"
|
|
12490
12742
|
};
|
|
12491
|
-
const _hoisted_4$
|
|
12492
|
-
const _hoisted_5$
|
|
12743
|
+
const _hoisted_4$j = { class: "label" };
|
|
12744
|
+
const _hoisted_5$a = ["id"];
|
|
12493
12745
|
const _hoisted_6$6 = {
|
|
12494
12746
|
key: 0,
|
|
12495
12747
|
class: "subtext-wrapper"
|
|
12496
12748
|
};
|
|
12497
|
-
const _sfc_main$
|
|
12749
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
12498
12750
|
__name: "BaseCheckbox",
|
|
12499
12751
|
props: /* @__PURE__ */ mergeModels({
|
|
12500
12752
|
disabled: { type: Boolean, default: false },
|
|
@@ -12567,7 +12819,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12567
12819
|
role: "checkbox",
|
|
12568
12820
|
onClick: handleClick
|
|
12569
12821
|
}, [
|
|
12570
|
-
createElementVNode("div", _hoisted_2$
|
|
12822
|
+
createElementVNode("div", _hoisted_2$r, [
|
|
12571
12823
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
12572
12824
|
key: 0,
|
|
12573
12825
|
name: icon.value,
|
|
@@ -12575,15 +12827,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12575
12827
|
size: "xsmall"
|
|
12576
12828
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
12577
12829
|
]),
|
|
12578
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12579
|
-
createElementVNode("div", _hoisted_4$
|
|
12830
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
|
|
12831
|
+
createElementVNode("div", _hoisted_4$j, toDisplayString(props.label), 1),
|
|
12580
12832
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
12581
12833
|
key: 0,
|
|
12582
12834
|
id: unref(helperId),
|
|
12583
12835
|
class: "helper-text"
|
|
12584
|
-
}, toDisplayString(props.helperText), 9, _hoisted_5$
|
|
12836
|
+
}, toDisplayString(props.helperText), 9, _hoisted_5$a)) : createCommentVNode("", true)
|
|
12585
12837
|
])) : createCommentVNode("", true)
|
|
12586
|
-
], 10, _hoisted_1$
|
|
12838
|
+
], 10, _hoisted_1$K),
|
|
12587
12839
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
12588
12840
|
createVNode(KdsSubText, {
|
|
12589
12841
|
id: unref(descriptionId),
|
|
@@ -12597,9 +12849,9 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12597
12849
|
}
|
|
12598
12850
|
});
|
|
12599
12851
|
|
|
12600
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12852
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-0bec87ad"]]);
|
|
12601
12853
|
|
|
12602
|
-
const _sfc_main$
|
|
12854
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
12603
12855
|
__name: "KdsCheckbox",
|
|
12604
12856
|
props: /* @__PURE__ */ mergeModels({
|
|
12605
12857
|
disabled: { type: Boolean, default: false },
|
|
@@ -12629,11 +12881,11 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
12629
12881
|
}
|
|
12630
12882
|
});
|
|
12631
12883
|
|
|
12632
|
-
const _hoisted_1$
|
|
12633
|
-
const _hoisted_2$
|
|
12634
|
-
const _hoisted_3$
|
|
12635
|
-
const _hoisted_4$
|
|
12636
|
-
const _sfc_main$
|
|
12884
|
+
const _hoisted_1$J = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
12885
|
+
const _hoisted_2$q = ["id"];
|
|
12886
|
+
const _hoisted_3$l = ["title"];
|
|
12887
|
+
const _hoisted_4$i = { class: "kds-fieldset-content" };
|
|
12888
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
12637
12889
|
__name: "BaseFieldsetWrapper",
|
|
12638
12890
|
props: {
|
|
12639
12891
|
id: {},
|
|
@@ -12679,14 +12931,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12679
12931
|
ref: legendTextEl,
|
|
12680
12932
|
class: "legend-text",
|
|
12681
12933
|
title: unref(isTruncated) ? props.label : void 0
|
|
12682
|
-
}, toDisplayString(props.label), 9, _hoisted_3$
|
|
12934
|
+
}, toDisplayString(props.label), 9, _hoisted_3$l),
|
|
12683
12935
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
12684
12936
|
key: 0,
|
|
12685
12937
|
content: props.description,
|
|
12686
12938
|
hidden: !isHovered.value
|
|
12687
12939
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
12688
|
-
], 8, _hoisted_2$
|
|
12689
|
-
createElementVNode("div", _hoisted_4$
|
|
12940
|
+
], 8, _hoisted_2$q)) : createCommentVNode("", true),
|
|
12941
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
12690
12942
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12691
12943
|
]),
|
|
12692
12944
|
createVNode(KdsSubText, {
|
|
@@ -12696,14 +12948,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12696
12948
|
validating: props.validating,
|
|
12697
12949
|
"preserve-sub-text-space": props.preserveSubTextSpace
|
|
12698
12950
|
}, null, 8, ["id", "sub-text", "error", "validating", "preserve-sub-text-space"])
|
|
12699
|
-
], 40, _hoisted_1$
|
|
12951
|
+
], 40, _hoisted_1$J);
|
|
12700
12952
|
};
|
|
12701
12953
|
}
|
|
12702
12954
|
});
|
|
12703
12955
|
|
|
12704
|
-
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12956
|
+
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-4aa1ba9a"]]);
|
|
12705
12957
|
|
|
12706
|
-
const _sfc_main$
|
|
12958
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
12707
12959
|
__name: "KdsCheckboxGroup",
|
|
12708
12960
|
props: /* @__PURE__ */ mergeModels({
|
|
12709
12961
|
id: {},
|
|
@@ -12782,7 +13034,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
12782
13034
|
}
|
|
12783
13035
|
});
|
|
12784
13036
|
|
|
12785
|
-
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13037
|
+
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-c6536296"]]);
|
|
12786
13038
|
|
|
12787
13039
|
const kdsCheckboxGroupAlignment = {
|
|
12788
13040
|
VERTICAL: "vertical",
|
|
@@ -12811,18 +13063,18 @@ const kdsToggleSwitchLabelPositions = Object.values(
|
|
|
12811
13063
|
kdsToggleSwitchLabelPosition
|
|
12812
13064
|
);
|
|
12813
13065
|
|
|
12814
|
-
const _hoisted_1$
|
|
12815
|
-
const _hoisted_2$
|
|
12816
|
-
const _hoisted_3$
|
|
13066
|
+
const _hoisted_1$I = ["disabled", "aria-label", "aria-checked"];
|
|
13067
|
+
const _hoisted_2$p = { class: "control" };
|
|
13068
|
+
const _hoisted_3$k = {
|
|
12817
13069
|
class: "knob",
|
|
12818
13070
|
"aria-hidden": "true"
|
|
12819
13071
|
};
|
|
12820
|
-
const _hoisted_4$
|
|
13072
|
+
const _hoisted_4$h = {
|
|
12821
13073
|
key: 0,
|
|
12822
13074
|
class: "content"
|
|
12823
13075
|
};
|
|
12824
|
-
const _hoisted_5$
|
|
12825
|
-
const _sfc_main$
|
|
13076
|
+
const _hoisted_5$9 = { class: "label" };
|
|
13077
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
12826
13078
|
__name: "KdsToggleSwitch",
|
|
12827
13079
|
props: /* @__PURE__ */ mergeModels({
|
|
12828
13080
|
disabled: { type: Boolean, default: false },
|
|
@@ -12861,37 +13113,37 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
12861
13113
|
role: "switch",
|
|
12862
13114
|
onClick: handleClick
|
|
12863
13115
|
}, [
|
|
12864
|
-
createElementVNode("div", _hoisted_2$
|
|
12865
|
-
createElementVNode("div", _hoisted_3$
|
|
13116
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
13117
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
12866
13118
|
createVNode(KdsIcon, {
|
|
12867
13119
|
name: isChecked.value ? "checkmark" : "x-close",
|
|
12868
13120
|
size: __props.size === "small" ? "xsmall" : "small"
|
|
12869
13121
|
}, null, 8, ["name", "size"])
|
|
12870
13122
|
])
|
|
12871
13123
|
]),
|
|
12872
|
-
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
12873
|
-
createElementVNode("span", _hoisted_5$
|
|
13124
|
+
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$h, [
|
|
13125
|
+
createElementVNode("span", _hoisted_5$9, toDisplayString(props.label), 1)
|
|
12874
13126
|
])) : createCommentVNode("", true)
|
|
12875
|
-
], 10, _hoisted_1$
|
|
13127
|
+
], 10, _hoisted_1$I);
|
|
12876
13128
|
};
|
|
12877
13129
|
}
|
|
12878
13130
|
});
|
|
12879
13131
|
|
|
12880
|
-
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13132
|
+
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-417fc16d"]]);
|
|
12881
13133
|
|
|
12882
|
-
const _hoisted_1$
|
|
12883
|
-
const _hoisted_2$
|
|
12884
|
-
const _hoisted_3$
|
|
13134
|
+
const _hoisted_1$H = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
13135
|
+
const _hoisted_2$o = { class: "control" };
|
|
13136
|
+
const _hoisted_3$j = {
|
|
12885
13137
|
key: 0,
|
|
12886
13138
|
class: "dot",
|
|
12887
13139
|
viewBox: "0 0 2 2",
|
|
12888
13140
|
"aria-hidden": "true",
|
|
12889
13141
|
focusable: "false"
|
|
12890
13142
|
};
|
|
12891
|
-
const _hoisted_4$
|
|
12892
|
-
const _hoisted_5$
|
|
13143
|
+
const _hoisted_4$g = { class: "content" };
|
|
13144
|
+
const _hoisted_5$8 = { class: "label" };
|
|
12893
13145
|
const _hoisted_6$5 = ["id"];
|
|
12894
|
-
const _sfc_main
|
|
13146
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
12895
13147
|
__name: "KdsRadioButton",
|
|
12896
13148
|
props: /* @__PURE__ */ mergeModels({
|
|
12897
13149
|
text: {},
|
|
@@ -12931,8 +13183,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
12931
13183
|
type: "button",
|
|
12932
13184
|
onClick: handleClick
|
|
12933
13185
|
}, [
|
|
12934
|
-
createElementVNode("div", _hoisted_2$
|
|
12935
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
13186
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
13187
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$j, [..._cache[0] || (_cache[0] = [
|
|
12936
13188
|
createElementVNode("circle", {
|
|
12937
13189
|
cx: "1",
|
|
12938
13190
|
cy: "1",
|
|
@@ -12940,20 +13192,20 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
12940
13192
|
}, null, -1)
|
|
12941
13193
|
])])) : createCommentVNode("", true)
|
|
12942
13194
|
]),
|
|
12943
|
-
createElementVNode("div", _hoisted_4$
|
|
12944
|
-
createElementVNode("div", _hoisted_5$
|
|
13195
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
13196
|
+
createElementVNode("div", _hoisted_5$8, toDisplayString(props.text), 1),
|
|
12945
13197
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
12946
13198
|
key: 0,
|
|
12947
13199
|
id: `${unref(id)}-helper`,
|
|
12948
13200
|
class: "helper-text"
|
|
12949
13201
|
}, toDisplayString(props.helperText), 9, _hoisted_6$5)) : createCommentVNode("", true)
|
|
12950
13202
|
])
|
|
12951
|
-
], 10, _hoisted_1$
|
|
13203
|
+
], 10, _hoisted_1$H);
|
|
12952
13204
|
};
|
|
12953
13205
|
}
|
|
12954
13206
|
});
|
|
12955
13207
|
|
|
12956
|
-
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
13208
|
+
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-f4f6392a"]]);
|
|
12957
13209
|
|
|
12958
13210
|
const useRadioSelection = ({
|
|
12959
13211
|
selectedId,
|
|
@@ -13075,7 +13327,7 @@ const useRadioSelection = ({
|
|
|
13075
13327
|
};
|
|
13076
13328
|
};
|
|
13077
13329
|
|
|
13078
|
-
const _sfc_main$
|
|
13330
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
13079
13331
|
__name: "KdsRadioButtonGroup",
|
|
13080
13332
|
props: /* @__PURE__ */ mergeModels({
|
|
13081
13333
|
id: {},
|
|
@@ -13150,10 +13402,10 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
13150
13402
|
}
|
|
13151
13403
|
});
|
|
13152
13404
|
|
|
13153
|
-
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13405
|
+
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-d78ed4a2"]]);
|
|
13154
13406
|
|
|
13155
|
-
const _hoisted_1$
|
|
13156
|
-
const _sfc_main
|
|
13407
|
+
const _hoisted_1$G = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
13408
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
13157
13409
|
__name: "ValueSwitchItem",
|
|
13158
13410
|
props: {
|
|
13159
13411
|
selected: { type: Boolean },
|
|
@@ -13203,12 +13455,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13203
13455
|
name: props.trailingIcon,
|
|
13204
13456
|
size: __props.size
|
|
13205
13457
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
13206
|
-
], 10, _hoisted_1$
|
|
13458
|
+
], 10, _hoisted_1$G);
|
|
13207
13459
|
};
|
|
13208
13460
|
}
|
|
13209
13461
|
});
|
|
13210
13462
|
|
|
13211
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
13463
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-5c6f0f1f"]]);
|
|
13212
13464
|
|
|
13213
13465
|
const useValueSwitchIconHiding = ({
|
|
13214
13466
|
width,
|
|
@@ -13259,7 +13511,7 @@ const useValueSwitchIconHiding = ({
|
|
|
13259
13511
|
};
|
|
13260
13512
|
};
|
|
13261
13513
|
|
|
13262
|
-
const _sfc_main$
|
|
13514
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
13263
13515
|
__name: "KdsValueSwitch",
|
|
13264
13516
|
props: /* @__PURE__ */ mergeModels({
|
|
13265
13517
|
id: {},
|
|
@@ -13348,7 +13600,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
13348
13600
|
}
|
|
13349
13601
|
});
|
|
13350
13602
|
|
|
13351
|
-
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13603
|
+
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-f6d51795"]]);
|
|
13352
13604
|
|
|
13353
13605
|
const kdsRadioButtonGroupAlignment = {
|
|
13354
13606
|
VERTICAL: "vertical",
|
|
@@ -13539,7 +13791,7 @@ const createKdsNumberParser = (params) => {
|
|
|
13539
13791
|
|
|
13540
13792
|
const REPEAT_INITIAL_DELAY_MS = 400;
|
|
13541
13793
|
const REPEAT_INTERVAL_MS = 100;
|
|
13542
|
-
const _sfc_main$
|
|
13794
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
13543
13795
|
__name: "KdsNumberInput",
|
|
13544
13796
|
props: /* @__PURE__ */ mergeModels({
|
|
13545
13797
|
description: {},
|
|
@@ -13725,7 +13977,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
13725
13977
|
onBlur: handleBlur
|
|
13726
13978
|
}), {
|
|
13727
13979
|
trailing: withCtx(() => [
|
|
13728
|
-
createVNode(_sfc_main$
|
|
13980
|
+
createVNode(_sfc_main$1y, {
|
|
13729
13981
|
size: "xsmall",
|
|
13730
13982
|
variant: "outlined",
|
|
13731
13983
|
"leading-icon": "minus",
|
|
@@ -13737,7 +13989,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
13737
13989
|
onPointerleave: stopRepeating,
|
|
13738
13990
|
onPointercancel: stopRepeating
|
|
13739
13991
|
}, null, 8, ["ariaLabel", "disabled"]),
|
|
13740
|
-
createVNode(_sfc_main$
|
|
13992
|
+
createVNode(_sfc_main$1y, {
|
|
13741
13993
|
size: "xsmall",
|
|
13742
13994
|
variant: "outlined",
|
|
13743
13995
|
"leading-icon": "plus",
|
|
@@ -13904,8 +14156,8 @@ const removeAlphaFromHexInput = (next) => {
|
|
|
13904
14156
|
return next;
|
|
13905
14157
|
};
|
|
13906
14158
|
|
|
13907
|
-
const _hoisted_1$
|
|
13908
|
-
const _sfc_main$
|
|
14159
|
+
const _hoisted_1$F = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"];
|
|
14160
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
13909
14161
|
__name: "ColorPickerSlider",
|
|
13910
14162
|
props: /* @__PURE__ */ mergeModels({
|
|
13911
14163
|
label: {},
|
|
@@ -13989,16 +14241,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
13989
14241
|
onKeydown: onKeyDown
|
|
13990
14242
|
}, [..._cache[5] || (_cache[5] = [
|
|
13991
14243
|
createElementVNode("div", { class: "handle" }, null, -1)
|
|
13992
|
-
])], 40, _hoisted_1$
|
|
14244
|
+
])], 40, _hoisted_1$F);
|
|
13993
14245
|
};
|
|
13994
14246
|
}
|
|
13995
14247
|
});
|
|
13996
14248
|
|
|
13997
|
-
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14249
|
+
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
13998
14250
|
|
|
13999
|
-
const _hoisted_1$
|
|
14000
|
-
const _hoisted_2$
|
|
14001
|
-
const _hoisted_3$
|
|
14251
|
+
const _hoisted_1$E = { class: "kds-color-picker" };
|
|
14252
|
+
const _hoisted_2$n = ["aria-valuetext"];
|
|
14253
|
+
const _hoisted_3$i = { class: "value-inputs" };
|
|
14002
14254
|
const DEFAULT_HUE_DEG = 270;
|
|
14003
14255
|
const DEFAULT_SATURATION = 0.8;
|
|
14004
14256
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -14012,7 +14264,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
|
|
|
14012
14264
|
const HUE_KEYBOARD_STEP_DEG = 1;
|
|
14013
14265
|
const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
|
|
14014
14266
|
const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
|
|
14015
|
-
const _sfc_main$
|
|
14267
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
14016
14268
|
__name: "ColorPicker",
|
|
14017
14269
|
props: {
|
|
14018
14270
|
"modelValue": { default: "" },
|
|
@@ -14160,7 +14412,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14160
14412
|
}
|
|
14161
14413
|
};
|
|
14162
14414
|
return (_ctx, _cache) => {
|
|
14163
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14415
|
+
return openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
14164
14416
|
createElementVNode("div", {
|
|
14165
14417
|
ref_key: "colorspaceEl",
|
|
14166
14418
|
ref: colorspaceEl,
|
|
@@ -14188,7 +14440,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14188
14440
|
class: "handle",
|
|
14189
14441
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
14190
14442
|
}, null, 4)
|
|
14191
|
-
], 44, _hoisted_2$
|
|
14443
|
+
], 44, _hoisted_2$n),
|
|
14192
14444
|
createVNode(ColorPickerSlider, {
|
|
14193
14445
|
modelValue: hue.value,
|
|
14194
14446
|
"onUpdate:modelValue": [
|
|
@@ -14223,7 +14475,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14223
14475
|
step: KEYBOARD_STEP,
|
|
14224
14476
|
"large-step": KEYBOARD_LARGE_STEP
|
|
14225
14477
|
}, null, 8, ["modelValue", "value-now", "value-text"]),
|
|
14226
|
-
createElementVNode("div", _hoisted_3$
|
|
14478
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
14227
14479
|
createVNode(KdsTextInput, {
|
|
14228
14480
|
"model-value": hexInputValue.value,
|
|
14229
14481
|
ariaLabel: "Color hex value",
|
|
@@ -14231,7 +14483,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14231
14483
|
"onUpdate:modelValue": updateFromTextValue,
|
|
14232
14484
|
onFocusout: onHexInputFocusOut
|
|
14233
14485
|
}, null, 8, ["model-value"]),
|
|
14234
|
-
createVNode(_sfc_main$
|
|
14486
|
+
createVNode(_sfc_main$Z, {
|
|
14235
14487
|
"model-value": alphaPercent.value,
|
|
14236
14488
|
ariaLabel: "Alpha percentage",
|
|
14237
14489
|
min: 0,
|
|
@@ -14246,7 +14498,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14246
14498
|
}
|
|
14247
14499
|
});
|
|
14248
14500
|
|
|
14249
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14501
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-2daeaa68"]]);
|
|
14250
14502
|
|
|
14251
14503
|
const HEX_LENGTH_1 = 1;
|
|
14252
14504
|
const HEX_LENGTH_2 = 2;
|
|
@@ -14320,7 +14572,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
|
|
|
14320
14572
|
return { handleFocusOut };
|
|
14321
14573
|
};
|
|
14322
14574
|
|
|
14323
|
-
const _sfc_main$
|
|
14575
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
14324
14576
|
__name: "KdsColorInput",
|
|
14325
14577
|
props: /* @__PURE__ */ mergeModels({
|
|
14326
14578
|
description: {},
|
|
@@ -14383,7 +14635,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14383
14635
|
}, null, 8, ["color", "style"])
|
|
14384
14636
|
]),
|
|
14385
14637
|
trailing: withCtx(() => [
|
|
14386
|
-
createVNode(unref(_sfc_main$
|
|
14638
|
+
createVNode(unref(_sfc_main$1v), {
|
|
14387
14639
|
modelValue: open.value,
|
|
14388
14640
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
14389
14641
|
size: "xsmall",
|
|
@@ -14424,7 +14676,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
14424
14676
|
}
|
|
14425
14677
|
});
|
|
14426
14678
|
|
|
14427
|
-
const _sfc_main$
|
|
14679
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
14428
14680
|
__name: "KdsPasswordInput",
|
|
14429
14681
|
props: /* @__PURE__ */ mergeModels({
|
|
14430
14682
|
description: {},
|
|
@@ -14485,7 +14737,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
14485
14737
|
onBlur: handleBlur
|
|
14486
14738
|
}), {
|
|
14487
14739
|
trailing: withCtx(() => [
|
|
14488
|
-
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$
|
|
14740
|
+
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$1v, {
|
|
14489
14741
|
key: 0,
|
|
14490
14742
|
modelValue: showValue.value,
|
|
14491
14743
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showValue.value = $event),
|
|
@@ -14525,7 +14777,7 @@ const kdsPasswordInputAutocompletes = Object.values(
|
|
|
14525
14777
|
kdsPasswordInputAutocomplete
|
|
14526
14778
|
);
|
|
14527
14779
|
|
|
14528
|
-
const _sfc_main$
|
|
14780
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
14529
14781
|
__name: "KdsUsernameInput",
|
|
14530
14782
|
props: /* @__PURE__ */ mergeModels({
|
|
14531
14783
|
description: {},
|
|
@@ -18536,17 +18788,17 @@ const sn = /*@__PURE__*/ new WeakMap, cn = /*@__PURE__*/ sn.get.bind(sn), un = /
|
|
|
18536
18788
|
DateTimeFormat: Xn
|
|
18537
18789
|
}));
|
|
18538
18790
|
|
|
18539
|
-
const _hoisted_1$
|
|
18791
|
+
const _hoisted_1$D = {
|
|
18540
18792
|
role: "row",
|
|
18541
18793
|
class: "kds-date-picker-header-row"
|
|
18542
18794
|
};
|
|
18543
|
-
const _hoisted_2$
|
|
18544
|
-
const _hoisted_3$
|
|
18545
|
-
const _hoisted_4$
|
|
18795
|
+
const _hoisted_2$m = ["aria-label"];
|
|
18796
|
+
const _hoisted_3$h = { class: "kds-date-picker-day-grid" };
|
|
18797
|
+
const _hoisted_4$f = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onFocus"];
|
|
18546
18798
|
const REFERENCE_YEAR$2 = 2024;
|
|
18547
18799
|
const DAYS_PER_WEEK = 7;
|
|
18548
18800
|
const TOTAL_CELLS = 42;
|
|
18549
|
-
const _sfc_main$
|
|
18801
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
18550
18802
|
__name: "DatePickerDayGrid",
|
|
18551
18803
|
props: {
|
|
18552
18804
|
modelValue: {},
|
|
@@ -18841,17 +19093,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
18841
19093
|
role: "grid",
|
|
18842
19094
|
"aria-label": "Calendar"
|
|
18843
19095
|
}, [
|
|
18844
|
-
createElementVNode("div", _hoisted_1$
|
|
19096
|
+
createElementVNode("div", _hoisted_1$D, [
|
|
18845
19097
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(DAY_LABELS), (day, i) => {
|
|
18846
19098
|
return openBlock(), createElementBlock("div", {
|
|
18847
19099
|
key: day,
|
|
18848
19100
|
role: "columnheader",
|
|
18849
19101
|
"aria-label": unref(DAY_FULL_LABELS)[i],
|
|
18850
19102
|
class: "kds-date-picker-weekday"
|
|
18851
|
-
}, toDisplayString(day), 9, _hoisted_2$
|
|
19103
|
+
}, toDisplayString(day), 9, _hoisted_2$m);
|
|
18852
19104
|
}), 128))
|
|
18853
19105
|
]),
|
|
18854
|
-
createElementVNode("div", _hoisted_3$
|
|
19106
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
18855
19107
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, wi) => {
|
|
18856
19108
|
return openBlock(), createElementBlock("div", {
|
|
18857
19109
|
key: wi,
|
|
@@ -18880,7 +19132,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
18880
19132
|
onClick: ($event) => selectDate(day),
|
|
18881
19133
|
onKeydown: onDayKeydown,
|
|
18882
19134
|
onFocus: ($event) => onDayFocus(day)
|
|
18883
|
-
}, toDisplayString(day.day), 43, _hoisted_4$
|
|
19135
|
+
}, toDisplayString(day.day), 43, _hoisted_4$f);
|
|
18884
19136
|
}), 128))
|
|
18885
19137
|
]);
|
|
18886
19138
|
}), 128))
|
|
@@ -18890,13 +19142,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
18890
19142
|
}
|
|
18891
19143
|
});
|
|
18892
19144
|
|
|
18893
|
-
const DatePickerDayGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19145
|
+
const DatePickerDayGrid = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-51807b35"]]);
|
|
18894
19146
|
|
|
18895
|
-
const _hoisted_1$
|
|
19147
|
+
const _hoisted_1$C = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
18896
19148
|
const REFERENCE_YEAR$1 = 2024;
|
|
18897
19149
|
const MONTHS_PER_YEAR$1 = 12;
|
|
18898
19150
|
const MONTH_GRID_COLS = 3;
|
|
18899
|
-
const _sfc_main$
|
|
19151
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
18900
19152
|
__name: "DatePickerMonthGrid",
|
|
18901
19153
|
props: {
|
|
18902
19154
|
modelValue: {},
|
|
@@ -19086,7 +19338,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
19086
19338
|
onClick: ($event) => selectMonth(cell.month),
|
|
19087
19339
|
onKeydown: ($event) => onKeydown($event, cell.month),
|
|
19088
19340
|
onFocus: ($event) => focusedCell.value = cell.month
|
|
19089
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
19341
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$C);
|
|
19090
19342
|
}), 128))
|
|
19091
19343
|
]);
|
|
19092
19344
|
}), 128))
|
|
@@ -19095,12 +19347,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
19095
19347
|
}
|
|
19096
19348
|
});
|
|
19097
19349
|
|
|
19098
|
-
const DatePickerMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19350
|
+
const DatePickerMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-63d96e84"]]);
|
|
19099
19351
|
|
|
19100
|
-
const _hoisted_1$
|
|
19352
|
+
const _hoisted_1$B = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
19101
19353
|
const YEAR_PAGE_SIZE$1 = 15;
|
|
19102
19354
|
const YEAR_GRID_COLS = 3;
|
|
19103
|
-
const _sfc_main$
|
|
19355
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
19104
19356
|
__name: "DatePickerYearGrid",
|
|
19105
19357
|
props: {
|
|
19106
19358
|
modelValue: {},
|
|
@@ -19258,7 +19510,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
19258
19510
|
onClick: ($event) => selectYear(cell.year),
|
|
19259
19511
|
onKeydown: ($event) => onKeydown($event, cell.year),
|
|
19260
19512
|
onFocus: ($event) => focusedCell.value = cell.year
|
|
19261
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
19513
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$B);
|
|
19262
19514
|
}), 128))
|
|
19263
19515
|
]);
|
|
19264
19516
|
}), 128))
|
|
@@ -19267,22 +19519,22 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
19267
19519
|
}
|
|
19268
19520
|
});
|
|
19269
19521
|
|
|
19270
|
-
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19522
|
+
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-270d55b9"]]);
|
|
19271
19523
|
|
|
19272
|
-
const _hoisted_1$
|
|
19273
|
-
const _hoisted_2$
|
|
19274
|
-
const _hoisted_3$
|
|
19275
|
-
const _hoisted_4$
|
|
19524
|
+
const _hoisted_1$A = { class: "kds-date-picker" };
|
|
19525
|
+
const _hoisted_2$l = { class: "kds-date-picker-header" };
|
|
19526
|
+
const _hoisted_3$g = { class: "kds-date-picker-nav-block" };
|
|
19527
|
+
const _hoisted_4$e = {
|
|
19276
19528
|
key: 1,
|
|
19277
19529
|
class: "kds-date-picker-header-static-label",
|
|
19278
19530
|
"aria-live": "polite"
|
|
19279
19531
|
};
|
|
19280
|
-
const _hoisted_5$
|
|
19532
|
+
const _hoisted_5$7 = { class: "kds-date-picker-nav-block" };
|
|
19281
19533
|
const _hoisted_6$4 = { class: "kds-date-picker-body" };
|
|
19282
19534
|
const MONTHS_PER_YEAR = 12;
|
|
19283
19535
|
const YEAR_PAGE_SIZE = 15;
|
|
19284
19536
|
const REFERENCE_YEAR = 2024;
|
|
19285
|
-
const _sfc_main$
|
|
19537
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
19286
19538
|
__name: "KdsDatePicker",
|
|
19287
19539
|
props: /* @__PURE__ */ mergeModels({
|
|
19288
19540
|
minDate: {},
|
|
@@ -19478,10 +19730,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19478
19730
|
});
|
|
19479
19731
|
__expose({ focus });
|
|
19480
19732
|
return (_ctx, _cache) => {
|
|
19481
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19482
|
-
createElementVNode("div", _hoisted_2$
|
|
19483
|
-
createElementVNode("div", _hoisted_3$
|
|
19484
|
-
view.value === "day" ? (openBlock(), createBlock(_sfc_main$
|
|
19733
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
19734
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
19735
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
19736
|
+
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1y, {
|
|
19485
19737
|
key: 0,
|
|
19486
19738
|
variant: "transparent",
|
|
19487
19739
|
size: "small",
|
|
@@ -19490,7 +19742,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19490
19742
|
disabled: prevYearDisabled.value,
|
|
19491
19743
|
onClick: onPrevYear
|
|
19492
19744
|
}, null, 8, ["disabled"])) : createCommentVNode("", true),
|
|
19493
|
-
createVNode(_sfc_main$
|
|
19745
|
+
createVNode(_sfc_main$1y, {
|
|
19494
19746
|
variant: "transparent",
|
|
19495
19747
|
size: "small",
|
|
19496
19748
|
"leading-icon": "chevron-left",
|
|
@@ -19499,16 +19751,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19499
19751
|
onClick: onPrev
|
|
19500
19752
|
}, null, 8, ["ariaLabel", "disabled"])
|
|
19501
19753
|
]),
|
|
19502
|
-
view.value !== "year" ? (openBlock(), createBlock(_sfc_main$
|
|
19754
|
+
view.value !== "year" ? (openBlock(), createBlock(_sfc_main$1y, {
|
|
19503
19755
|
key: 0,
|
|
19504
19756
|
class: "kds-date-picker-header-label",
|
|
19505
19757
|
variant: "transparent",
|
|
19506
19758
|
size: "small",
|
|
19507
19759
|
label: headerLabel.value,
|
|
19508
19760
|
onClick: onHeaderLabelClick
|
|
19509
|
-
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19510
|
-
createElementVNode("div", _hoisted_5$
|
|
19511
|
-
createVNode(_sfc_main$
|
|
19761
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(headerLabel.value), 1)),
|
|
19762
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
19763
|
+
createVNode(_sfc_main$1y, {
|
|
19512
19764
|
variant: "transparent",
|
|
19513
19765
|
size: "small",
|
|
19514
19766
|
"leading-icon": "chevron-right",
|
|
@@ -19516,7 +19768,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19516
19768
|
disabled: nextDisabled.value,
|
|
19517
19769
|
onClick: onNext
|
|
19518
19770
|
}, null, 8, ["ariaLabel", "disabled"]),
|
|
19519
|
-
view.value === "day" ? (openBlock(), createBlock(_sfc_main$
|
|
19771
|
+
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1y, {
|
|
19520
19772
|
key: 0,
|
|
19521
19773
|
variant: "transparent",
|
|
19522
19774
|
size: "small",
|
|
@@ -19568,7 +19820,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19568
19820
|
}
|
|
19569
19821
|
});
|
|
19570
19822
|
|
|
19571
|
-
const KdsDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19823
|
+
const KdsDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-e46d7e18"]]);
|
|
19572
19824
|
|
|
19573
19825
|
const YEAR_END_INDEX = 4;
|
|
19574
19826
|
const MONTH_START_INDEX = 4;
|
|
@@ -19671,7 +19923,7 @@ const useDateInputMask = (modelValue) => {
|
|
|
19671
19923
|
|
|
19672
19924
|
const incompleteDateMessage = "Invalid date format. Please provide year (YYYY), month (MM), and day (DD).";
|
|
19673
19925
|
const MONTH_NAME_SAMPLE_YEAR = 2001;
|
|
19674
|
-
const _sfc_main$
|
|
19926
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
19675
19927
|
__name: "KdsDateInput",
|
|
19676
19928
|
props: /* @__PURE__ */ mergeModels({
|
|
19677
19929
|
description: {},
|
|
@@ -19800,7 +20052,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
19800
20052
|
onBlur: onTextInputBlur
|
|
19801
20053
|
}), {
|
|
19802
20054
|
trailing: withCtx(() => [
|
|
19803
|
-
createVNode(_sfc_main$
|
|
20055
|
+
createVNode(_sfc_main$1v, {
|
|
19804
20056
|
modelValue: popoverIsVisible.value,
|
|
19805
20057
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
19806
20058
|
size: "xsmall",
|
|
@@ -19849,8 +20101,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
19849
20101
|
}
|
|
19850
20102
|
});
|
|
19851
20103
|
|
|
19852
|
-
const _hoisted_1$
|
|
19853
|
-
const _sfc_main$
|
|
20104
|
+
const _hoisted_1$z = { class: "kds-date-time-format-popover" };
|
|
20105
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
19854
20106
|
__name: "DateTimeFormatPopover",
|
|
19855
20107
|
props: /* @__PURE__ */ mergeModels({
|
|
19856
20108
|
allDefaultFormats: {},
|
|
@@ -19988,7 +20240,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
19988
20240
|
}));
|
|
19989
20241
|
});
|
|
19990
20242
|
return (_ctx, _cache) => {
|
|
19991
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20243
|
+
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
19992
20244
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch, {
|
|
19993
20245
|
key: 0,
|
|
19994
20246
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -20020,9 +20272,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
20020
20272
|
}
|
|
20021
20273
|
});
|
|
20022
20274
|
|
|
20023
|
-
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20275
|
+
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-8c697d02"]]);
|
|
20024
20276
|
|
|
20025
|
-
const _sfc_main$
|
|
20277
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
20026
20278
|
__name: "KdsDateTimeFormatInput",
|
|
20027
20279
|
props: /* @__PURE__ */ mergeModels({
|
|
20028
20280
|
description: {},
|
|
@@ -20069,7 +20321,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
20069
20321
|
autocomplete: props.autocomplete
|
|
20070
20322
|
}), {
|
|
20071
20323
|
trailing: withCtx(() => [
|
|
20072
|
-
createVNode(unref(_sfc_main$
|
|
20324
|
+
createVNode(unref(_sfc_main$1v), {
|
|
20073
20325
|
modelValue: open.value,
|
|
20074
20326
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
20075
20327
|
size: "xsmall",
|
|
@@ -20156,7 +20408,7 @@ const buildRegexFromPatternInput = (input, options) => {
|
|
|
20156
20408
|
return `^(?!.*${withCase}).*$`;
|
|
20157
20409
|
};
|
|
20158
20410
|
|
|
20159
|
-
const _sfc_main$
|
|
20411
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
20160
20412
|
__name: "KdsPatternInput",
|
|
20161
20413
|
props: /* @__PURE__ */ mergeModels({
|
|
20162
20414
|
description: {},
|
|
@@ -20239,7 +20491,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20239
20491
|
clearable: ""
|
|
20240
20492
|
}), {
|
|
20241
20493
|
trailing: withCtx(() => [
|
|
20242
|
-
createVNode(_sfc_main$
|
|
20494
|
+
createVNode(_sfc_main$1v, {
|
|
20243
20495
|
modelValue: caseSensitive.value,
|
|
20244
20496
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
|
|
20245
20497
|
size: "xsmall",
|
|
@@ -20249,7 +20501,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20249
20501
|
ariaLabel: "Case sensitivity",
|
|
20250
20502
|
disabled: __props.disabled
|
|
20251
20503
|
}, null, 8, ["modelValue", "title", "disabled"]),
|
|
20252
|
-
createVNode(_sfc_main$
|
|
20504
|
+
createVNode(_sfc_main$1v, {
|
|
20253
20505
|
modelValue: excludeMatches.value,
|
|
20254
20506
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
|
|
20255
20507
|
size: "xsmall",
|
|
@@ -20259,7 +20511,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20259
20511
|
ariaLabel: "Exclude matches",
|
|
20260
20512
|
disabled: __props.disabled
|
|
20261
20513
|
}, null, 8, ["modelValue", "title", "disabled"]),
|
|
20262
|
-
createVNode(_sfc_main$
|
|
20514
|
+
createVNode(_sfc_main$1v, {
|
|
20263
20515
|
modelValue: useRegex.value,
|
|
20264
20516
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
|
|
20265
20517
|
size: "xsmall",
|
|
@@ -20279,7 +20531,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
20279
20531
|
}
|
|
20280
20532
|
});
|
|
20281
20533
|
|
|
20282
|
-
const _sfc_main$
|
|
20534
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
20283
20535
|
__name: "KdsSearchInput",
|
|
20284
20536
|
props: /* @__PURE__ */ mergeModels({
|
|
20285
20537
|
description: {},
|
|
@@ -20432,11 +20684,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20432
20684
|
}
|
|
20433
20685
|
});
|
|
20434
20686
|
|
|
20435
|
-
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20687
|
+
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f7236e9c"]]);
|
|
20436
20688
|
|
|
20437
|
-
const _hoisted_1$
|
|
20689
|
+
const _hoisted_1$y = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
20438
20690
|
const DEFAULT_ROWS = 3;
|
|
20439
|
-
const _sfc_main$
|
|
20691
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
20440
20692
|
__name: "KdsTextarea",
|
|
20441
20693
|
props: /* @__PURE__ */ mergeModels({
|
|
20442
20694
|
description: {},
|
|
@@ -20502,7 +20754,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20502
20754
|
placeholder: __props.placeholder,
|
|
20503
20755
|
disabled: __props.disabled,
|
|
20504
20756
|
autocomplete: props.autocomplete
|
|
20505
|
-
}), null, 16, _hoisted_1$
|
|
20757
|
+
}), null, 16, _hoisted_1$y), [
|
|
20506
20758
|
[vModelText, modelValue.value]
|
|
20507
20759
|
])
|
|
20508
20760
|
]),
|
|
@@ -20512,16 +20764,16 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20512
20764
|
}
|
|
20513
20765
|
});
|
|
20514
20766
|
|
|
20515
|
-
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20767
|
+
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-36211819"]]);
|
|
20516
20768
|
|
|
20517
|
-
const _hoisted_1$
|
|
20518
|
-
const _hoisted_2$
|
|
20519
|
-
const _hoisted_3$
|
|
20520
|
-
const _hoisted_4$
|
|
20769
|
+
const _hoisted_1$x = { class: "kds-time-picker" };
|
|
20770
|
+
const _hoisted_2$k = { class: "kds-time-picker-fields" };
|
|
20771
|
+
const _hoisted_3$f = { class: "kds-time-picker-fields" };
|
|
20772
|
+
const _hoisted_4$d = {
|
|
20521
20773
|
key: 0,
|
|
20522
20774
|
class: "kds-time-picker-fields"
|
|
20523
20775
|
};
|
|
20524
|
-
const _hoisted_5$
|
|
20776
|
+
const _hoisted_5$6 = {
|
|
20525
20777
|
key: 1,
|
|
20526
20778
|
class: "kds-time-picker-actions"
|
|
20527
20779
|
};
|
|
@@ -20533,7 +20785,7 @@ const MAX_HOUR = 23;
|
|
|
20533
20785
|
const MAX_MINUTE = 59;
|
|
20534
20786
|
const MAX_SECOND = 59;
|
|
20535
20787
|
const MAX_MILLISECOND = 999;
|
|
20536
|
-
const _sfc_main$
|
|
20788
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
20537
20789
|
__name: "TimePicker",
|
|
20538
20790
|
props: /* @__PURE__ */ mergeModels({
|
|
20539
20791
|
maxGranularity: {}
|
|
@@ -20619,9 +20871,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20619
20871
|
};
|
|
20620
20872
|
__expose({ focus });
|
|
20621
20873
|
return (_ctx, _cache) => {
|
|
20622
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
20623
|
-
createElementVNode("div", _hoisted_2$
|
|
20624
|
-
createVNode(_sfc_main$
|
|
20874
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
20875
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
20876
|
+
createVNode(_sfc_main$Z, {
|
|
20625
20877
|
ref: "hourInput",
|
|
20626
20878
|
modelValue: hour.value,
|
|
20627
20879
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hour.value = $event),
|
|
@@ -20631,7 +20883,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20631
20883
|
max: MAX_HOUR,
|
|
20632
20884
|
step: 1
|
|
20633
20885
|
}, null, 8, ["modelValue"]),
|
|
20634
|
-
createVNode(_sfc_main$
|
|
20886
|
+
createVNode(_sfc_main$Z, {
|
|
20635
20887
|
modelValue: minute.value,
|
|
20636
20888
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => minute.value = $event),
|
|
20637
20889
|
class: "kds-time-picker-field",
|
|
@@ -20646,8 +20898,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20646
20898
|
class: "kds-time-picker-divider"
|
|
20647
20899
|
})) : createCommentVNode("", true),
|
|
20648
20900
|
showSecondInput.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20649
|
-
createElementVNode("div", _hoisted_3$
|
|
20650
|
-
createVNode(_sfc_main$
|
|
20901
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
20902
|
+
createVNode(_sfc_main$Z, {
|
|
20651
20903
|
ref: "secondInput",
|
|
20652
20904
|
modelValue: second.value,
|
|
20653
20905
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => second.value = $event),
|
|
@@ -20657,7 +20909,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20657
20909
|
max: MAX_SECOND,
|
|
20658
20910
|
step: 1
|
|
20659
20911
|
}, null, 8, ["modelValue"]),
|
|
20660
|
-
createVNode(_sfc_main$
|
|
20912
|
+
createVNode(_sfc_main$1y, {
|
|
20661
20913
|
class: "kds-time-picker-field-trash",
|
|
20662
20914
|
variant: "transparent",
|
|
20663
20915
|
"leading-icon": "trash",
|
|
@@ -20666,8 +20918,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20666
20918
|
onClick: removeSeconds
|
|
20667
20919
|
})
|
|
20668
20920
|
]),
|
|
20669
|
-
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20670
|
-
createVNode(_sfc_main$
|
|
20921
|
+
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
20922
|
+
createVNode(_sfc_main$Z, {
|
|
20671
20923
|
ref: "millisecondInput",
|
|
20672
20924
|
modelValue: millisecond.value,
|
|
20673
20925
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => millisecond.value = $event),
|
|
@@ -20680,7 +20932,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20680
20932
|
max: MAX_MILLISECOND,
|
|
20681
20933
|
step: 1
|
|
20682
20934
|
}, null, 8, ["modelValue"]),
|
|
20683
|
-
createVNode(_sfc_main$
|
|
20935
|
+
createVNode(_sfc_main$1y, {
|
|
20684
20936
|
class: "kds-time-picker-field-trash",
|
|
20685
20937
|
variant: "transparent",
|
|
20686
20938
|
"leading-icon": "trash",
|
|
@@ -20688,8 +20940,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20688
20940
|
title: "Remove milliseconds",
|
|
20689
20941
|
onClick: removeMilliseconds
|
|
20690
20942
|
})
|
|
20691
|
-
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20692
|
-
createVNode(_sfc_main$
|
|
20943
|
+
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
20944
|
+
createVNode(_sfc_main$1y, {
|
|
20693
20945
|
variant: "outlined",
|
|
20694
20946
|
size: "small",
|
|
20695
20947
|
"leading-icon": "plus",
|
|
@@ -20698,7 +20950,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20698
20950
|
})
|
|
20699
20951
|
])) : createCommentVNode("", true)
|
|
20700
20952
|
], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
20701
|
-
createVNode(_sfc_main$
|
|
20953
|
+
createVNode(_sfc_main$1y, {
|
|
20702
20954
|
variant: "outlined",
|
|
20703
20955
|
size: "small",
|
|
20704
20956
|
"leading-icon": "plus",
|
|
@@ -20711,7 +20963,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20711
20963
|
}
|
|
20712
20964
|
});
|
|
20713
20965
|
|
|
20714
|
-
const TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20966
|
+
const TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-c2bc1234"]]);
|
|
20715
20967
|
|
|
20716
20968
|
const HOURS_END_INDEX = 2;
|
|
20717
20969
|
const MINUTES_START_INDEX = 2;
|
|
@@ -20921,7 +21173,7 @@ const useTimeInputMask = (modelValue, granularityRef) => {
|
|
|
20921
21173
|
};
|
|
20922
21174
|
|
|
20923
21175
|
const invalidTimeMessage = "The entered time is invalid.";
|
|
20924
|
-
const _sfc_main$
|
|
21176
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
20925
21177
|
__name: "KdsTimeInput",
|
|
20926
21178
|
props: /* @__PURE__ */ mergeModels({
|
|
20927
21179
|
description: {},
|
|
@@ -21036,7 +21288,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
21036
21288
|
onBlur: onTextInputBlur
|
|
21037
21289
|
}), {
|
|
21038
21290
|
trailing: withCtx(() => [
|
|
21039
|
-
createVNode(_sfc_main$
|
|
21291
|
+
createVNode(_sfc_main$1v, {
|
|
21040
21292
|
modelValue: popoverIsVisible.value,
|
|
21041
21293
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
21042
21294
|
size: "xsmall",
|
|
@@ -21298,11 +21550,11 @@ const stripInactiveFields = (duration, usedFormat) => {
|
|
|
21298
21550
|
};
|
|
21299
21551
|
const toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
21300
21552
|
|
|
21301
|
-
const _hoisted_1$
|
|
21302
|
-
const _hoisted_2$
|
|
21303
|
-
const _hoisted_3$
|
|
21304
|
-
const _hoisted_4$
|
|
21305
|
-
const _sfc_main$
|
|
21553
|
+
const _hoisted_1$w = { class: "kds-interval-popover" };
|
|
21554
|
+
const _hoisted_2$j = { class: "kds-interval-popover-header" };
|
|
21555
|
+
const _hoisted_3$e = { class: "kds-interval-popover-content" };
|
|
21556
|
+
const _hoisted_4$c = { class: "kds-interval-popover-grid" };
|
|
21557
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
21306
21558
|
__name: "IntervalInputPopover",
|
|
21307
21559
|
props: /* @__PURE__ */ mergeModels({
|
|
21308
21560
|
format: {},
|
|
@@ -21396,8 +21648,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21396
21648
|
}
|
|
21397
21649
|
});
|
|
21398
21650
|
return (_ctx, _cache) => {
|
|
21399
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21400
|
-
createElementVNode("div", _hoisted_2$
|
|
21651
|
+
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
21652
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
21401
21653
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)),
|
|
21402
21654
|
props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21403
21655
|
key: 0,
|
|
@@ -21409,7 +21661,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21409
21661
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
21410
21662
|
]),
|
|
21411
21663
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "kds-interval-popover-divider" }, null, -1)),
|
|
21412
|
-
createElementVNode("div", _hoisted_3$
|
|
21664
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
21413
21665
|
props.allowDescending ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21414
21666
|
key: 0,
|
|
21415
21667
|
modelValue: direction.value,
|
|
@@ -21419,9 +21671,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21419
21671
|
variant: "muted",
|
|
21420
21672
|
"possible-values": directionOptions
|
|
21421
21673
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
21422
|
-
createElementVNode("div", _hoisted_4$
|
|
21674
|
+
createElementVNode("div", _hoisted_4$c, [
|
|
21423
21675
|
mode.value === unref(kdsIntervalInputFormat).DATE ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(periodNumericKeys), (key) => {
|
|
21424
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
21676
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
21425
21677
|
key,
|
|
21426
21678
|
"model-value": activeFields.value[key],
|
|
21427
21679
|
label: fieldLabels[key] ?? unref(toTitleCase)(key),
|
|
@@ -21431,7 +21683,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21431
21683
|
"onUpdate:modelValue": ($event) => updateField(key, $event)
|
|
21432
21684
|
}, null, 8, ["model-value", "label", "max", "onUpdate:modelValue"]);
|
|
21433
21685
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(durationNumericKeys), (key) => {
|
|
21434
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
21686
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
21435
21687
|
key,
|
|
21436
21688
|
"model-value": activeFields.value[key],
|
|
21437
21689
|
label: fieldLabels[key] ?? unref(toTitleCase)(key),
|
|
@@ -21448,9 +21700,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21448
21700
|
}
|
|
21449
21701
|
});
|
|
21450
21702
|
|
|
21451
|
-
const IntervalInputPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
21703
|
+
const IntervalInputPopover = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-02541fd1"]]);
|
|
21452
21704
|
|
|
21453
|
-
const _sfc_main$
|
|
21705
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21454
21706
|
__name: "KdsIntervalInput",
|
|
21455
21707
|
props: /* @__PURE__ */ mergeModels({
|
|
21456
21708
|
description: {},
|
|
@@ -21612,7 +21864,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21612
21864
|
onKeydown: withKeys(withModifiers(commitTypedInput, ["prevent"]), ["enter"])
|
|
21613
21865
|
}), {
|
|
21614
21866
|
trailing: withCtx(() => [
|
|
21615
|
-
createVNode(unref(_sfc_main$
|
|
21867
|
+
createVNode(unref(_sfc_main$1v), {
|
|
21616
21868
|
modelValue: isPopoverOpen.value,
|
|
21617
21869
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isPopoverOpen.value = $event),
|
|
21618
21870
|
size: "xsmall",
|
|
@@ -21661,8 +21913,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21661
21913
|
}
|
|
21662
21914
|
});
|
|
21663
21915
|
|
|
21664
|
-
const _hoisted_1$
|
|
21665
|
-
const _sfc_main$
|
|
21916
|
+
const _hoisted_1$v = { class: "kds-date-time-input" };
|
|
21917
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21666
21918
|
__name: "KdsDateTimeInput",
|
|
21667
21919
|
props: /* @__PURE__ */ mergeModels({
|
|
21668
21920
|
id: {},
|
|
@@ -21734,8 +21986,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21734
21986
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
21735
21987
|
}, {
|
|
21736
21988
|
default: withCtx(() => [
|
|
21737
|
-
createElementVNode("div", _hoisted_1$
|
|
21738
|
-
createVNode(_sfc_main$
|
|
21989
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
21990
|
+
createVNode(_sfc_main$P, {
|
|
21739
21991
|
ref_key: "dateInput",
|
|
21740
21992
|
ref: dateInput,
|
|
21741
21993
|
"aria-label": "Date",
|
|
@@ -21746,7 +21998,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21746
21998
|
"max-date": __props.maxDate,
|
|
21747
21999
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => datePart.value = $event)
|
|
21748
22000
|
}, null, 8, ["model-value", "disabled", "error", "min-date", "max-date"]),
|
|
21749
|
-
createVNode(_sfc_main$
|
|
22001
|
+
createVNode(_sfc_main$I, {
|
|
21750
22002
|
ref_key: "timeInput",
|
|
21751
22003
|
ref: timeInput,
|
|
21752
22004
|
"aria-label": "Time",
|
|
@@ -21766,21 +22018,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21766
22018
|
}
|
|
21767
22019
|
});
|
|
21768
22020
|
|
|
21769
|
-
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22021
|
+
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f2ad3cef"]]);
|
|
21770
22022
|
|
|
21771
|
-
const _hoisted_1$
|
|
21772
|
-
const _hoisted_2$
|
|
22023
|
+
const _hoisted_1$u = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
22024
|
+
const _hoisted_2$i = {
|
|
21773
22025
|
key: 0,
|
|
21774
22026
|
class: "leading",
|
|
21775
22027
|
"aria-hidden": "true"
|
|
21776
22028
|
};
|
|
21777
|
-
const _hoisted_3$
|
|
21778
|
-
const _hoisted_4$
|
|
22029
|
+
const _hoisted_3$d = ["id"];
|
|
22030
|
+
const _hoisted_4$b = {
|
|
21779
22031
|
class: "trailing",
|
|
21780
22032
|
"aria-hidden": "true"
|
|
21781
22033
|
};
|
|
21782
22034
|
const TRIGGER_REF = "triggerEl";
|
|
21783
|
-
const _sfc_main$
|
|
22035
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
21784
22036
|
__name: "BaseDropdown",
|
|
21785
22037
|
props: /* @__PURE__ */ mergeModels({
|
|
21786
22038
|
text: {},
|
|
@@ -21860,8 +22112,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
21860
22112
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
21861
22113
|
onKeydown
|
|
21862
22114
|
}, [
|
|
21863
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
21864
|
-
createVNode(_sfc_main$
|
|
22115
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
|
|
22116
|
+
createVNode(_sfc_main$1t, {
|
|
21865
22117
|
accessory: props.accessory,
|
|
21866
22118
|
size: "medium"
|
|
21867
22119
|
}, null, 8, ["accessory"])
|
|
@@ -21872,28 +22124,28 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
21872
22124
|
placeholder: !props.text && !__props.disabled,
|
|
21873
22125
|
missing: __props.missing
|
|
21874
22126
|
}])
|
|
21875
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
21876
|
-
createElementVNode("span", _hoisted_4$
|
|
22127
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$d),
|
|
22128
|
+
createElementVNode("span", _hoisted_4$b, [
|
|
21877
22129
|
createVNode(KdsIcon, {
|
|
21878
22130
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
21879
22131
|
size: "small"
|
|
21880
22132
|
}, null, 8, ["name"])
|
|
21881
22133
|
])
|
|
21882
|
-
], 42, _hoisted_1$
|
|
22134
|
+
], 42, _hoisted_1$u);
|
|
21883
22135
|
};
|
|
21884
22136
|
}
|
|
21885
22137
|
});
|
|
21886
22138
|
|
|
21887
|
-
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22139
|
+
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1bb2d375"]]);
|
|
21888
22140
|
|
|
21889
22141
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
21890
22142
|
|
|
21891
|
-
const _hoisted_1$
|
|
21892
|
-
const _hoisted_2$
|
|
22143
|
+
const _hoisted_1$t = { class: "kds-dropdown-container" };
|
|
22144
|
+
const _hoisted_2$h = {
|
|
21893
22145
|
key: 0,
|
|
21894
22146
|
class: "kds-dropdown-container-sticky-top"
|
|
21895
22147
|
};
|
|
21896
|
-
const _sfc_main$
|
|
22148
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
21897
22149
|
__name: "DropdownContainer",
|
|
21898
22150
|
props: /* @__PURE__ */ mergeModels({
|
|
21899
22151
|
emptyText: {},
|
|
@@ -21977,8 +22229,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
21977
22229
|
}
|
|
21978
22230
|
});
|
|
21979
22231
|
return (_ctx, _cache) => {
|
|
21980
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21981
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22232
|
+
return openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
22233
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
21982
22234
|
createVNode(BaseInput, {
|
|
21983
22235
|
ref_key: "searchEl",
|
|
21984
22236
|
ref: searchEl,
|
|
@@ -22010,9 +22262,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22010
22262
|
}
|
|
22011
22263
|
});
|
|
22012
22264
|
|
|
22013
|
-
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22265
|
+
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0a6ce241"]]);
|
|
22014
22266
|
|
|
22015
|
-
const _sfc_main$
|
|
22267
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
22016
22268
|
__name: "KdsDropdown",
|
|
22017
22269
|
props: /* @__PURE__ */ mergeModels({
|
|
22018
22270
|
placeholder: { default: "Select" },
|
|
@@ -22127,9 +22379,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
22127
22379
|
}
|
|
22128
22380
|
});
|
|
22129
22381
|
|
|
22130
|
-
const _hoisted_1$
|
|
22131
|
-
const _hoisted_2$
|
|
22132
|
-
const _sfc_main$
|
|
22382
|
+
const _hoisted_1$s = { class: "kds-zoned-date-time-input" };
|
|
22383
|
+
const _hoisted_2$g = { class: "date-time-row" };
|
|
22384
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
22133
22385
|
__name: "KdsZonedDateTimeInput",
|
|
22134
22386
|
props: /* @__PURE__ */ mergeModels({
|
|
22135
22387
|
id: {},
|
|
@@ -22238,9 +22490,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22238
22490
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
22239
22491
|
}, {
|
|
22240
22492
|
default: withCtx(() => [
|
|
22241
|
-
createElementVNode("div", _hoisted_1$
|
|
22242
|
-
createElementVNode("div", _hoisted_2$
|
|
22243
|
-
createVNode(_sfc_main$
|
|
22493
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
22494
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
22495
|
+
createVNode(_sfc_main$P, {
|
|
22244
22496
|
ref_key: "dateInput",
|
|
22245
22497
|
ref: dateInput,
|
|
22246
22498
|
"aria-label": "Date",
|
|
@@ -22249,7 +22501,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22249
22501
|
error: __props.error,
|
|
22250
22502
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => datePart.value = $event)
|
|
22251
22503
|
}, null, 8, ["model-value", "disabled", "error"]),
|
|
22252
|
-
createVNode(_sfc_main$
|
|
22504
|
+
createVNode(_sfc_main$I, {
|
|
22253
22505
|
ref_key: "timeInput",
|
|
22254
22506
|
ref: timeInput,
|
|
22255
22507
|
"aria-label": "Time",
|
|
@@ -22262,7 +22514,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22262
22514
|
"onUpdate:granularity": _cache[2] || (_cache[2] = ($event) => granularity.value = $event)
|
|
22263
22515
|
}, null, 8, ["model-value", "granularity", "max-granularity", "disabled", "error"])
|
|
22264
22516
|
]),
|
|
22265
|
-
createVNode(_sfc_main$
|
|
22517
|
+
createVNode(_sfc_main$C, {
|
|
22266
22518
|
modelValue: timeZonePart.value,
|
|
22267
22519
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => timeZonePart.value = $event),
|
|
22268
22520
|
"possible-values": __props.possibleValues ?? [],
|
|
@@ -22278,11 +22530,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22278
22530
|
}
|
|
22279
22531
|
});
|
|
22280
22532
|
|
|
22281
|
-
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22533
|
+
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7dcebccd"]]);
|
|
22282
22534
|
|
|
22283
|
-
const _hoisted_1$
|
|
22284
|
-
const _hoisted_2$
|
|
22285
|
-
const _sfc_main$
|
|
22535
|
+
const _hoisted_1$r = ["disabled"];
|
|
22536
|
+
const _hoisted_2$f = ["title"];
|
|
22537
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
22286
22538
|
__name: "KdsListItemButton",
|
|
22287
22539
|
props: {
|
|
22288
22540
|
label: {},
|
|
@@ -22312,24 +22564,24 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22312
22564
|
ref: labelEl,
|
|
22313
22565
|
class: "label",
|
|
22314
22566
|
title: unref(isLabelTruncated) ? props.label : void 0
|
|
22315
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
22316
|
-
], 8, _hoisted_1$
|
|
22567
|
+
}, toDisplayString(props.label), 9, _hoisted_2$f)
|
|
22568
|
+
], 8, _hoisted_1$r);
|
|
22317
22569
|
};
|
|
22318
22570
|
}
|
|
22319
22571
|
});
|
|
22320
22572
|
|
|
22321
|
-
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22573
|
+
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-21fb5571"]]);
|
|
22322
22574
|
|
|
22323
|
-
const _hoisted_1$
|
|
22324
|
-
const _hoisted_2$
|
|
22575
|
+
const _hoisted_1$q = { class: "kds-multi-select-dropdown-options" };
|
|
22576
|
+
const _hoisted_2$e = {
|
|
22325
22577
|
key: 0,
|
|
22326
22578
|
class: "kds-multi-select-dropdown-search"
|
|
22327
22579
|
};
|
|
22328
|
-
const _hoisted_3$
|
|
22580
|
+
const _hoisted_3$c = {
|
|
22329
22581
|
key: 1,
|
|
22330
22582
|
class: "kds-multi-select-dropdown-footer"
|
|
22331
22583
|
};
|
|
22332
|
-
const _sfc_main$
|
|
22584
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
22333
22585
|
__name: "MultiSelectDropdownContainer",
|
|
22334
22586
|
props: /* @__PURE__ */ mergeModels({
|
|
22335
22587
|
emptyText: {},
|
|
@@ -22452,8 +22704,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22452
22704
|
}
|
|
22453
22705
|
});
|
|
22454
22706
|
return (_ctx, _cache) => {
|
|
22455
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22456
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
22707
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
22708
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
|
|
22457
22709
|
createVNode(BaseInput, {
|
|
22458
22710
|
ref_key: "searchEl",
|
|
22459
22711
|
ref: searchEl,
|
|
@@ -22482,7 +22734,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22482
22734
|
"aria-label": "Dropdown options",
|
|
22483
22735
|
onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
|
|
22484
22736
|
}, null, 8, ["class", "possible-values", "loading", "empty-text", "controlled-externally"]),
|
|
22485
|
-
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22737
|
+
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
22486
22738
|
createVNode(unref(KdsListItemButton), {
|
|
22487
22739
|
label: anyVisibleSelected.value ? "Clear all" : "Select all",
|
|
22488
22740
|
"leading-icon": anyVisibleSelected.value ? "trash" : "checkmark",
|
|
@@ -22495,9 +22747,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22495
22747
|
}
|
|
22496
22748
|
});
|
|
22497
22749
|
|
|
22498
|
-
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22750
|
+
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-68fe366f"]]);
|
|
22499
22751
|
|
|
22500
|
-
const _sfc_main$
|
|
22752
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
22501
22753
|
__name: "KdsMultiSelectDropdown",
|
|
22502
22754
|
props: /* @__PURE__ */ mergeModels({
|
|
22503
22755
|
placeholder: { default: "Select" },
|
|
@@ -22640,9 +22892,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
22640
22892
|
}
|
|
22641
22893
|
});
|
|
22642
22894
|
|
|
22643
|
-
const _hoisted_1$
|
|
22644
|
-
const _hoisted_2$
|
|
22645
|
-
const _sfc_main$
|
|
22895
|
+
const _hoisted_1$p = { class: "kds-resize-handle-area" };
|
|
22896
|
+
const _hoisted_2$d = ["aria-label"];
|
|
22897
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
22646
22898
|
__name: "ResizeHandle",
|
|
22647
22899
|
props: {
|
|
22648
22900
|
numberOfHandles: { default: 1 },
|
|
@@ -22664,7 +22916,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
22664
22916
|
return `calc((100% - ${n - 1} * ${gap}) / ${2 * n})`;
|
|
22665
22917
|
});
|
|
22666
22918
|
return (_ctx, _cache) => {
|
|
22667
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22919
|
+
return openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
22668
22920
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedNumberOfHandles.value, (i) => {
|
|
22669
22921
|
return openBlock(), createElementBlock("button", {
|
|
22670
22922
|
key: i,
|
|
@@ -22673,22 +22925,22 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
22673
22925
|
type: "button"
|
|
22674
22926
|
}, [..._cache[0] || (_cache[0] = [
|
|
22675
22927
|
createElementVNode("span", { class: "kds-resize-handle-line" }, null, -1)
|
|
22676
|
-
])], 8, _hoisted_2$
|
|
22928
|
+
])], 8, _hoisted_2$d);
|
|
22677
22929
|
}), 128))
|
|
22678
22930
|
]);
|
|
22679
22931
|
};
|
|
22680
22932
|
}
|
|
22681
22933
|
});
|
|
22682
22934
|
|
|
22683
|
-
const ResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22935
|
+
const ResizeHandle = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-df3803d4"]]);
|
|
22684
22936
|
|
|
22685
|
-
const _hoisted_1$
|
|
22937
|
+
const _hoisted_1$o = {
|
|
22686
22938
|
ref: "content",
|
|
22687
22939
|
class: "kds-resize-container-content"
|
|
22688
22940
|
};
|
|
22689
22941
|
const DEFAULT_INITIAL_HEIGHT = 200;
|
|
22690
22942
|
const KEYBOARD_RESIZE_STEP = 10;
|
|
22691
|
-
const _sfc_main$
|
|
22943
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
22692
22944
|
__name: "KdsResizeContainer",
|
|
22693
22945
|
props: {
|
|
22694
22946
|
height: { default: () => DEFAULT_INITIAL_HEIGHT },
|
|
@@ -22751,7 +23003,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
22751
23003
|
return openBlock(), createElementBlock("div", {
|
|
22752
23004
|
class: normalizeClass(["kds-resize-container", { dragging: unref(activePointerId) !== null }])
|
|
22753
23005
|
}, [
|
|
22754
|
-
createElementVNode("div", _hoisted_1$
|
|
23006
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
22755
23007
|
renderSlot(_ctx.$slots, "default", { contentStyle: contentStyle.value }, void 0, true)
|
|
22756
23008
|
], 512),
|
|
22757
23009
|
createVNode(ResizeHandle, {
|
|
@@ -22769,7 +23021,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
22769
23021
|
}
|
|
22770
23022
|
});
|
|
22771
23023
|
|
|
22772
|
-
const KdsResizeContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23024
|
+
const KdsResizeContainer = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-46b33b01"]]);
|
|
22773
23025
|
|
|
22774
23026
|
const CLICK_META_KEY_TIMEOUT = 250;
|
|
22775
23027
|
const useMultiSelectListBoxSelection = ({
|
|
@@ -23061,17 +23313,17 @@ const useMultiSelectListBoxSelection = ({
|
|
|
23061
23313
|
};
|
|
23062
23314
|
};
|
|
23063
23315
|
|
|
23064
|
-
const _hoisted_1$
|
|
23065
|
-
const _hoisted_2$
|
|
23066
|
-
const _hoisted_3$
|
|
23316
|
+
const _hoisted_1$n = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
23317
|
+
const _hoisted_2$c = { class: "kds-multiselect-list-box-content-grid" };
|
|
23318
|
+
const _hoisted_3$b = {
|
|
23067
23319
|
key: 0,
|
|
23068
23320
|
class: "kds-multiselect-sticky-bottom"
|
|
23069
23321
|
};
|
|
23070
|
-
const _hoisted_4$
|
|
23322
|
+
const _hoisted_4$a = {
|
|
23071
23323
|
key: 0,
|
|
23072
23324
|
class: "kds-multiselect-empty"
|
|
23073
23325
|
};
|
|
23074
|
-
const _sfc_main$
|
|
23326
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23075
23327
|
__name: "KdsMultiSelectListBox",
|
|
23076
23328
|
props: /* @__PURE__ */ mergeModels({
|
|
23077
23329
|
description: {},
|
|
@@ -23324,7 +23576,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23324
23576
|
onBlur: _cache[17] || (_cache[17] = //@ts-ignore
|
|
23325
23577
|
(...args) => unref(onBlur) && unref(onBlur)(...args))
|
|
23326
23578
|
}), [
|
|
23327
|
-
createElementVNode("div", _hoisted_2$
|
|
23579
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
23328
23580
|
createElementVNode("div", mergeProps({ class: "kds-multiselect-list-box-content" }, unref(wrapperProps)), [
|
|
23329
23581
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(virtualList), ({ data: item, index }) => {
|
|
23330
23582
|
return openBlock(), createBlock(unref(KdsListItem), {
|
|
@@ -23351,7 +23603,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23351
23603
|
}, null, 8, ["id", "class", "text", "accessory", "missing", "special", "data-option-index", "selected", "disabled", "active", "trailing-icon", "onDblclick", "onClick"]);
|
|
23352
23604
|
}), 128))
|
|
23353
23605
|
], 16),
|
|
23354
|
-
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23606
|
+
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
23355
23607
|
createVNode(unref(KdsListItem), {
|
|
23356
23608
|
id: generateOptionId(visibleBottomValue.value.id),
|
|
23357
23609
|
text: visibleBottomValue.value.text,
|
|
@@ -23371,8 +23623,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23371
23623
|
}, null, 8, ["id", "text", "accessory", "missing", "data-option-index", "selected", "disabled", "active", "trailing-icon"])
|
|
23372
23624
|
])) : createCommentVNode("", true)
|
|
23373
23625
|
])
|
|
23374
|
-
], 16, _hoisted_1$
|
|
23375
|
-
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23626
|
+
], 16, _hoisted_1$n),
|
|
23627
|
+
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
23376
23628
|
createVNode(KdsEmptyState, {
|
|
23377
23629
|
headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
|
|
23378
23630
|
"loading-spinner": __props.loading,
|
|
@@ -23390,16 +23642,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23390
23642
|
}
|
|
23391
23643
|
});
|
|
23392
23644
|
|
|
23393
|
-
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23645
|
+
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-2c5e2dda"]]);
|
|
23394
23646
|
|
|
23395
|
-
const _hoisted_1$
|
|
23396
|
-
const _hoisted_2$
|
|
23397
|
-
const _hoisted_3$
|
|
23398
|
-
const _hoisted_4$
|
|
23647
|
+
const _hoisted_1$m = { class: "kds-list-column" };
|
|
23648
|
+
const _hoisted_2$b = { class: "kds-list-header" };
|
|
23649
|
+
const _hoisted_3$a = { class: "kds-list-label" };
|
|
23650
|
+
const _hoisted_4$9 = {
|
|
23399
23651
|
key: 0,
|
|
23400
23652
|
class: "kds-list-count"
|
|
23401
23653
|
};
|
|
23402
|
-
const _hoisted_5$
|
|
23654
|
+
const _hoisted_5$5 = { class: "kds-button-column" };
|
|
23403
23655
|
const _hoisted_6$2 = { class: "kds-list-column" };
|
|
23404
23656
|
const _hoisted_7$1 = { class: "kds-list-header" };
|
|
23405
23657
|
const _hoisted_8$1 = { class: "kds-list-label" };
|
|
@@ -23408,7 +23660,7 @@ const _hoisted_9$1 = {
|
|
|
23408
23660
|
class: "kds-list-count"
|
|
23409
23661
|
};
|
|
23410
23662
|
const UNKNOWN_VALUE_ID = "__unknown-value-option__";
|
|
23411
|
-
const _sfc_main$
|
|
23663
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23412
23664
|
__name: "TwinListBody",
|
|
23413
23665
|
props: /* @__PURE__ */ mergeModels({
|
|
23414
23666
|
disabled: { type: Boolean, default: false },
|
|
@@ -23582,10 +23834,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23582
23834
|
class: "kds-twin-list-body",
|
|
23583
23835
|
style: normalizeStyle(contentStyle)
|
|
23584
23836
|
}, [
|
|
23585
|
-
createElementVNode("div", _hoisted_1$
|
|
23586
|
-
createElementVNode("div", _hoisted_2$
|
|
23587
|
-
createElementVNode("span", _hoisted_3$
|
|
23588
|
-
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23837
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
23838
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
23839
|
+
createElementVNode("span", _hoisted_3$a, toDisplayString(__props.excludeLabel), 1),
|
|
23840
|
+
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$9, toDisplayString(leftOptions.value.length) + " of " + toDisplayString(excludedItems.value.length), 1)) : createCommentVNode("", true)
|
|
23589
23841
|
]),
|
|
23590
23842
|
createVNode(unref(KdsMultiSelectListBox), {
|
|
23591
23843
|
modelValue: leftSelected.value,
|
|
@@ -23604,8 +23856,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23604
23856
|
onKeyEnter: moveRight
|
|
23605
23857
|
}, null, 8, ["modelValue", "possible-values", "ariaLabel", "disabled", "error", "loading", "empty-state-label", "bottom-value"])
|
|
23606
23858
|
]),
|
|
23607
|
-
createElementVNode("div", _hoisted_5$
|
|
23608
|
-
createVNode(unref(_sfc_main$
|
|
23859
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
23860
|
+
createVNode(unref(_sfc_main$1y), {
|
|
23609
23861
|
"leading-icon": "chevron-right",
|
|
23610
23862
|
ariaLabel: "Move selected values right",
|
|
23611
23863
|
title: "Move selected values right",
|
|
@@ -23614,7 +23866,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23614
23866
|
disabled: effectiveDisabled.value || leftSelected.value.length === 0,
|
|
23615
23867
|
onClick: _cache[2] || (_cache[2] = ($event) => moveRight(leftSelected.value))
|
|
23616
23868
|
}, null, 8, ["disabled"]),
|
|
23617
|
-
createVNode(unref(_sfc_main$
|
|
23869
|
+
createVNode(unref(_sfc_main$1y), {
|
|
23618
23870
|
"leading-icon": "chevron-right-double",
|
|
23619
23871
|
ariaLabel: "Move all values right",
|
|
23620
23872
|
title: "Move all values right",
|
|
@@ -23626,7 +23878,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23626
23878
|
...showUnknownValues.value && !modelValue.value.includeUnknownValues ? [UNKNOWN_VALUE_ID] : []
|
|
23627
23879
|
]))
|
|
23628
23880
|
}, null, 8, ["disabled"]),
|
|
23629
|
-
createVNode(unref(_sfc_main$
|
|
23881
|
+
createVNode(unref(_sfc_main$1y), {
|
|
23630
23882
|
"leading-icon": "chevron-left",
|
|
23631
23883
|
ariaLabel: "Move selected values left",
|
|
23632
23884
|
title: "Move selected values left",
|
|
@@ -23635,7 +23887,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23635
23887
|
disabled: effectiveDisabled.value || rightSelected.value.length === 0,
|
|
23636
23888
|
onClick: _cache[4] || (_cache[4] = ($event) => moveLeft(rightSelected.value))
|
|
23637
23889
|
}, null, 8, ["disabled"]),
|
|
23638
|
-
createVNode(unref(_sfc_main$
|
|
23890
|
+
createVNode(unref(_sfc_main$1y), {
|
|
23639
23891
|
"leading-icon": "chevron-left-double",
|
|
23640
23892
|
ariaLabel: "Move all values left",
|
|
23641
23893
|
title: "Move all values left",
|
|
@@ -23678,7 +23930,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23678
23930
|
}
|
|
23679
23931
|
});
|
|
23680
23932
|
|
|
23681
|
-
const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23933
|
+
const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-eb1bc043"]]);
|
|
23682
23934
|
|
|
23683
23935
|
const kdsTwinListSearchMode = {
|
|
23684
23936
|
MANUAL: "manual",
|
|
@@ -23687,7 +23939,7 @@ const kdsTwinListSearchMode = {
|
|
|
23687
23939
|
};
|
|
23688
23940
|
const kdsTwinListSearchModes = Object.values(kdsTwinListSearchMode);
|
|
23689
23941
|
|
|
23690
|
-
const _sfc_main$
|
|
23942
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23691
23943
|
__name: "TwinListHeader",
|
|
23692
23944
|
props: /* @__PURE__ */ mergeModels({
|
|
23693
23945
|
filterTypes: { default: () => void 0 },
|
|
@@ -23763,7 +24015,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23763
24015
|
ariaLabel: "Search values",
|
|
23764
24016
|
placeholder: "Search",
|
|
23765
24017
|
disabled: __props.disabled
|
|
23766
|
-
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$
|
|
24018
|
+
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$M), {
|
|
23767
24019
|
key: 2,
|
|
23768
24020
|
modelValue: pattern.value,
|
|
23769
24021
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pattern.value = $event),
|
|
@@ -23777,7 +24029,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23777
24029
|
placeholder: "Pattern",
|
|
23778
24030
|
disabled: __props.disabled,
|
|
23779
24031
|
"onUpdate:regex": _cache[6] || (_cache[6] = ($event) => emit("update:regex", $event))
|
|
23780
|
-
}, null, 8, ["modelValue", "case-sensitive", "exclude-matches", "use-regex", "disabled"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
24032
|
+
}, null, 8, ["modelValue", "case-sensitive", "exclude-matches", "use-regex", "disabled"])) : (openBlock(), createBlock(unref(_sfc_main$y), {
|
|
23781
24033
|
key: 3,
|
|
23782
24034
|
modelValue: selectedTypes.value,
|
|
23783
24035
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => selectedTypes.value = $event),
|
|
@@ -23791,8 +24043,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23791
24043
|
}
|
|
23792
24044
|
});
|
|
23793
24045
|
|
|
23794
|
-
const _hoisted_1$
|
|
23795
|
-
const _sfc_main$
|
|
24046
|
+
const _hoisted_1$l = { class: "kds-twin-list" };
|
|
24047
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23796
24048
|
__name: "KdsTwinList",
|
|
23797
24049
|
props: /* @__PURE__ */ mergeModels({
|
|
23798
24050
|
description: {},
|
|
@@ -23923,8 +24175,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23923
24175
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
23924
24176
|
}, {
|
|
23925
24177
|
default: withCtx(() => [
|
|
23926
|
-
createElementVNode("div", _hoisted_1$
|
|
23927
|
-
createVNode(_sfc_main$
|
|
24178
|
+
createElementVNode("div", _hoisted_1$l, [
|
|
24179
|
+
createVNode(_sfc_main$t, {
|
|
23928
24180
|
mode: mode.value,
|
|
23929
24181
|
"onUpdate:mode": _cache[0] || (_cache[0] = ($event) => mode.value = $event),
|
|
23930
24182
|
pattern: pattern.value,
|
|
@@ -23965,7 +24217,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23965
24217
|
}
|
|
23966
24218
|
});
|
|
23967
24219
|
|
|
23968
|
-
const KdsTwinList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24220
|
+
const KdsTwinList = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1a9327b5"]]);
|
|
23969
24221
|
|
|
23970
24222
|
const useSortableListBoxReorder = ({
|
|
23971
24223
|
orderedIds,
|
|
@@ -24024,11 +24276,11 @@ const useSortableListBoxReorder = ({
|
|
|
24024
24276
|
};
|
|
24025
24277
|
};
|
|
24026
24278
|
|
|
24027
|
-
const _hoisted_1$
|
|
24028
|
-
const _hoisted_2$
|
|
24029
|
-
const _hoisted_3$
|
|
24030
|
-
const _hoisted_4$
|
|
24031
|
-
const _sfc_main$
|
|
24279
|
+
const _hoisted_1$k = { class: "kds-sortable-list-box-wrapper" };
|
|
24280
|
+
const _hoisted_2$a = { class: "kds-sortable-top-buttons" };
|
|
24281
|
+
const _hoisted_3$9 = { class: "kds-sortable-top-buttons-left" };
|
|
24282
|
+
const _hoisted_4$8 = { class: "kds-sortable-footer-buttons" };
|
|
24283
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
24032
24284
|
__name: "KdsSortableListBox",
|
|
24033
24285
|
props: /* @__PURE__ */ mergeModels({
|
|
24034
24286
|
possibleValues: {},
|
|
@@ -24085,10 +24337,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24085
24337
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
24086
24338
|
}), {
|
|
24087
24339
|
default: withCtx(() => [
|
|
24088
|
-
createElementVNode("div", _hoisted_1$
|
|
24089
|
-
createElementVNode("div", _hoisted_2$
|
|
24090
|
-
createElementVNode("div", _hoisted_3$
|
|
24091
|
-
createVNode(_sfc_main$
|
|
24340
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
24341
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
24342
|
+
createElementVNode("div", _hoisted_3$9, [
|
|
24343
|
+
createVNode(_sfc_main$1y, {
|
|
24092
24344
|
size: "small",
|
|
24093
24345
|
variant: "transparent",
|
|
24094
24346
|
"leading-icon": "sort-descending",
|
|
@@ -24096,7 +24348,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24096
24348
|
disabled: __props.disabled,
|
|
24097
24349
|
onClick: _cache[0] || (_cache[0] = ($event) => applyReorder(unref(sortByText)(true, optionLookup.value)))
|
|
24098
24350
|
}, null, 8, ["disabled"]),
|
|
24099
|
-
createVNode(_sfc_main$
|
|
24351
|
+
createVNode(_sfc_main$1y, {
|
|
24100
24352
|
size: "small",
|
|
24101
24353
|
variant: "transparent",
|
|
24102
24354
|
"leading-icon": "sort-ascending",
|
|
@@ -24105,7 +24357,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24105
24357
|
onClick: _cache[1] || (_cache[1] = ($event) => applyReorder(unref(sortByText)(false, optionLookup.value)))
|
|
24106
24358
|
}, null, 8, ["disabled"])
|
|
24107
24359
|
]),
|
|
24108
|
-
createVNode(_sfc_main$
|
|
24360
|
+
createVNode(_sfc_main$1y, {
|
|
24109
24361
|
size: "small",
|
|
24110
24362
|
variant: "transparent",
|
|
24111
24363
|
destructive: "",
|
|
@@ -24126,8 +24378,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24126
24378
|
ariaLabel: formFieldProps.label ?? formFieldProps.ariaLabel ?? ""
|
|
24127
24379
|
/* fallback only for TS */
|
|
24128
24380
|
}, null, 8, ["modelValue", "possible-values", "disabled", "error", "ariaLabel"]),
|
|
24129
|
-
createElementVNode("div", _hoisted_4$
|
|
24130
|
-
createVNode(_sfc_main$
|
|
24381
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
24382
|
+
createVNode(_sfc_main$1y, {
|
|
24131
24383
|
size: "small",
|
|
24132
24384
|
variant: "transparent",
|
|
24133
24385
|
"leading-icon": "to-top",
|
|
@@ -24136,7 +24388,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24136
24388
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
24137
24389
|
onClick: moveToTop
|
|
24138
24390
|
}, null, 8, ["disabled"]),
|
|
24139
|
-
createVNode(_sfc_main$
|
|
24391
|
+
createVNode(_sfc_main$1y, {
|
|
24140
24392
|
size: "small",
|
|
24141
24393
|
variant: "transparent",
|
|
24142
24394
|
"leading-icon": "to-bottom",
|
|
@@ -24145,7 +24397,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24145
24397
|
disabled: __props.disabled || !unref(canMoveDown),
|
|
24146
24398
|
onClick: moveToBottom
|
|
24147
24399
|
}, null, 8, ["disabled"]),
|
|
24148
|
-
createVNode(_sfc_main$
|
|
24400
|
+
createVNode(_sfc_main$1y, {
|
|
24149
24401
|
size: "small",
|
|
24150
24402
|
variant: "transparent",
|
|
24151
24403
|
"leading-icon": "arrow-up",
|
|
@@ -24154,7 +24406,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24154
24406
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
24155
24407
|
onClick: moveUp
|
|
24156
24408
|
}, null, 8, ["disabled"]),
|
|
24157
|
-
createVNode(_sfc_main$
|
|
24409
|
+
createVNode(_sfc_main$1y, {
|
|
24158
24410
|
size: "small",
|
|
24159
24411
|
variant: "transparent",
|
|
24160
24412
|
"leading-icon": "arrow-down",
|
|
@@ -24172,10 +24424,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24172
24424
|
}
|
|
24173
24425
|
});
|
|
24174
24426
|
|
|
24175
|
-
const KdsSortableListBox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24427
|
+
const KdsSortableListBox = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ee7b63e2"]]);
|
|
24176
24428
|
|
|
24177
|
-
const _hoisted_1$
|
|
24178
|
-
const _sfc_main$
|
|
24429
|
+
const _hoisted_1$j = { class: "kds-info-popover-content" };
|
|
24430
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
24179
24431
|
__name: "InfoPopover",
|
|
24180
24432
|
props: {
|
|
24181
24433
|
content: {}
|
|
@@ -24183,7 +24435,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24183
24435
|
setup(__props) {
|
|
24184
24436
|
const props = __props;
|
|
24185
24437
|
return (_ctx, _cache) => {
|
|
24186
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24438
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
24187
24439
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
24188
24440
|
createTextVNode(toDisplayString(props.content), 1)
|
|
24189
24441
|
], true)
|
|
@@ -24192,11 +24444,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
24192
24444
|
}
|
|
24193
24445
|
});
|
|
24194
24446
|
|
|
24195
|
-
const InfoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24447
|
+
const InfoPopover = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-951f2a2b"]]);
|
|
24196
24448
|
|
|
24197
|
-
const _hoisted_1$
|
|
24449
|
+
const _hoisted_1$i = ["aria-pressed", "aria-expanded", "aria-controls"];
|
|
24198
24450
|
const TITLE = "Click for more information";
|
|
24199
|
-
const _sfc_main$
|
|
24451
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24200
24452
|
__name: "KdsInfoToggleButton",
|
|
24201
24453
|
props: /* @__PURE__ */ mergeModels({
|
|
24202
24454
|
content: {},
|
|
@@ -24238,7 +24490,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24238
24490
|
name: "circle-question",
|
|
24239
24491
|
size: "small"
|
|
24240
24492
|
})
|
|
24241
|
-
], 16, _hoisted_1$
|
|
24493
|
+
], 16, _hoisted_1$i),
|
|
24242
24494
|
createVNode(KdsPopover, {
|
|
24243
24495
|
ref_key: "popoverEl",
|
|
24244
24496
|
ref: popoverEl,
|
|
@@ -24266,18 +24518,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24266
24518
|
}
|
|
24267
24519
|
});
|
|
24268
24520
|
|
|
24269
|
-
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24521
|
+
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-67a8974e"]]);
|
|
24270
24522
|
|
|
24271
24523
|
const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
24272
24524
|
__proto__: null,
|
|
24273
24525
|
default: KdsInfoToggleButton
|
|
24274
24526
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
24275
24527
|
|
|
24276
|
-
const _hoisted_1$
|
|
24528
|
+
const _hoisted_1$h = {
|
|
24277
24529
|
class: "kds-variable-popover",
|
|
24278
24530
|
tabindex: "0"
|
|
24279
24531
|
};
|
|
24280
|
-
const _sfc_main$
|
|
24532
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
24281
24533
|
__name: "VariablePopover",
|
|
24282
24534
|
props: {
|
|
24283
24535
|
content: {}
|
|
@@ -24285,7 +24537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24285
24537
|
setup(__props) {
|
|
24286
24538
|
const props = __props;
|
|
24287
24539
|
return (_ctx, _cache) => {
|
|
24288
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24540
|
+
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
24289
24541
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
24290
24542
|
createTextVNode(toDisplayString(props.content), 1)
|
|
24291
24543
|
], true)
|
|
@@ -24294,10 +24546,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24294
24546
|
}
|
|
24295
24547
|
});
|
|
24296
24548
|
|
|
24297
|
-
const VariablePopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24549
|
+
const VariablePopover = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-8a0c56d0"]]);
|
|
24298
24550
|
|
|
24299
|
-
const _hoisted_1$
|
|
24300
|
-
const _sfc_main$
|
|
24551
|
+
const _hoisted_1$g = ["title", "aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
24552
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
24301
24553
|
__name: "KdsVariableToggleButton",
|
|
24302
24554
|
props: /* @__PURE__ */ mergeModels({
|
|
24303
24555
|
content: {},
|
|
@@ -24386,7 +24638,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24386
24638
|
name: iconName.value,
|
|
24387
24639
|
size: "small"
|
|
24388
24640
|
}, null, 8, ["name"])
|
|
24389
|
-
], 16, _hoisted_1$
|
|
24641
|
+
], 16, _hoisted_1$g),
|
|
24390
24642
|
createVNode(KdsPopover, {
|
|
24391
24643
|
ref_key: "popoverEl",
|
|
24392
24644
|
ref: popoverEl,
|
|
@@ -24414,15 +24666,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24414
24666
|
}
|
|
24415
24667
|
});
|
|
24416
24668
|
|
|
24417
|
-
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24669
|
+
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-b6d29842"]]);
|
|
24418
24670
|
|
|
24419
|
-
const _hoisted_1$
|
|
24420
|
-
const _hoisted_2$
|
|
24421
|
-
const _hoisted_3$
|
|
24422
|
-
const _hoisted_4$
|
|
24423
|
-
const _hoisted_5$
|
|
24671
|
+
const _hoisted_1$f = { class: "kds-accordion" };
|
|
24672
|
+
const _hoisted_2$9 = ["name", "open", "onToggle"];
|
|
24673
|
+
const _hoisted_3$8 = ["aria-disabled", "tabindex", "onClick", "onKeydown"];
|
|
24674
|
+
const _hoisted_4$7 = { class: "kds-accordion-headline-container" };
|
|
24675
|
+
const _hoisted_5$4 = { class: "kds-accordion-headline" };
|
|
24424
24676
|
const _hoisted_6$1 = { class: "kds-accordion-content" };
|
|
24425
|
-
const _sfc_main$
|
|
24677
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
24426
24678
|
__name: "KdsAccordion",
|
|
24427
24679
|
props: /* @__PURE__ */ mergeModels({
|
|
24428
24680
|
items: {},
|
|
@@ -24547,7 +24799,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24547
24799
|
() => __props.singleExpand ? `kds-accordion-${accordionId}` : void 0
|
|
24548
24800
|
);
|
|
24549
24801
|
return (_ctx, _cache) => {
|
|
24550
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24802
|
+
return openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
24551
24803
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
24552
24804
|
return openBlock(), createElementBlock("details", {
|
|
24553
24805
|
key: item.id,
|
|
@@ -24565,56 +24817,56 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24565
24817
|
onClick: ($event) => onSummaryClick($event, item),
|
|
24566
24818
|
onKeydown: ($event) => handleTriggerKeydown($event, item)
|
|
24567
24819
|
}, [
|
|
24568
|
-
createElementVNode("span", _hoisted_4$
|
|
24820
|
+
createElementVNode("span", _hoisted_4$7, [
|
|
24569
24821
|
item.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
24570
24822
|
key: 0,
|
|
24571
24823
|
name: item.leadingIcon,
|
|
24572
24824
|
size: "small",
|
|
24573
24825
|
disabled: item.disabled
|
|
24574
24826
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
24575
|
-
createElementVNode("span", _hoisted_5$
|
|
24827
|
+
createElementVNode("span", _hoisted_5$4, toDisplayString(item.headline), 1)
|
|
24576
24828
|
]),
|
|
24577
24829
|
createVNode(KdsIcon, {
|
|
24578
24830
|
name: isItemExpanded(item.id) ? "chevron-up" : "chevron-down",
|
|
24579
24831
|
size: "small"
|
|
24580
24832
|
}, null, 8, ["name"])
|
|
24581
|
-
], 40, _hoisted_3$
|
|
24833
|
+
], 40, _hoisted_3$8),
|
|
24582
24834
|
createElementVNode("div", _hoisted_6$1, [
|
|
24583
24835
|
renderSlot(_ctx.$slots, item.id, { item }, void 0, true)
|
|
24584
24836
|
])
|
|
24585
|
-
], 40, _hoisted_2$
|
|
24837
|
+
], 40, _hoisted_2$9);
|
|
24586
24838
|
}), 128))
|
|
24587
24839
|
]);
|
|
24588
24840
|
};
|
|
24589
24841
|
}
|
|
24590
24842
|
});
|
|
24591
24843
|
|
|
24592
|
-
const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24844
|
+
const KdsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-96dcd299"]]);
|
|
24593
24845
|
|
|
24594
|
-
const _hoisted_1$
|
|
24595
|
-
const _hoisted_2$
|
|
24846
|
+
const _hoisted_1$e = { class: "kds-card-header" };
|
|
24847
|
+
const _hoisted_2$8 = {
|
|
24596
24848
|
key: 0,
|
|
24597
24849
|
class: "accessory"
|
|
24598
24850
|
};
|
|
24599
|
-
const _hoisted_3$
|
|
24600
|
-
const _hoisted_4$
|
|
24851
|
+
const _hoisted_3$7 = { key: 1 };
|
|
24852
|
+
const _hoisted_4$6 = {
|
|
24601
24853
|
key: 2,
|
|
24602
24854
|
class: "actions",
|
|
24603
24855
|
"data-kds-card-secondary-action": ""
|
|
24604
24856
|
};
|
|
24605
|
-
const _sfc_main$
|
|
24857
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24606
24858
|
__name: "CardHeader",
|
|
24607
24859
|
props: {
|
|
24608
24860
|
headline: {}
|
|
24609
24861
|
},
|
|
24610
24862
|
setup(__props) {
|
|
24611
24863
|
return (_ctx, _cache) => {
|
|
24612
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24613
|
-
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
24864
|
+
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
24865
|
+
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
24614
24866
|
renderSlot(_ctx.$slots, "accessory", {}, void 0, true)
|
|
24615
24867
|
])) : createCommentVNode("", true),
|
|
24616
|
-
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$
|
|
24617
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24868
|
+
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$7, toDisplayString(__props.headline), 1)) : createCommentVNode("", true),
|
|
24869
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
24618
24870
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
24619
24871
|
])) : createCommentVNode("", true)
|
|
24620
24872
|
]);
|
|
@@ -24622,9 +24874,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24622
24874
|
}
|
|
24623
24875
|
});
|
|
24624
24876
|
|
|
24625
|
-
const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24877
|
+
const CardHeader = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-09093cc0"]]);
|
|
24626
24878
|
|
|
24627
|
-
const _sfc_main$
|
|
24879
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24628
24880
|
__name: "BaseCard",
|
|
24629
24881
|
props: {
|
|
24630
24882
|
variant: {},
|
|
@@ -24663,9 +24915,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
24663
24915
|
}
|
|
24664
24916
|
});
|
|
24665
24917
|
|
|
24666
|
-
const BaseCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24918
|
+
const BaseCard = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a1aff6d6"]]);
|
|
24667
24919
|
|
|
24668
|
-
const _sfc_main$
|
|
24920
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
24669
24921
|
__name: "KdsCard",
|
|
24670
24922
|
props: {
|
|
24671
24923
|
variant: { default: "outlined" },
|
|
@@ -24702,8 +24954,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
24702
24954
|
}
|
|
24703
24955
|
});
|
|
24704
24956
|
|
|
24705
|
-
const _hoisted_1$
|
|
24706
|
-
const _sfc_main$
|
|
24957
|
+
const _hoisted_1$d = ["aria-label", "aria-labelledby", "disabled"];
|
|
24958
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
24707
24959
|
__name: "KdsClickableCard",
|
|
24708
24960
|
props: {
|
|
24709
24961
|
variant: { default: "filled" },
|
|
@@ -24736,7 +24988,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24736
24988
|
disabled: __props.disabled,
|
|
24737
24989
|
"data-kds-card-primary-action": "",
|
|
24738
24990
|
onClick
|
|
24739
|
-
}, null, 8, _hoisted_1$
|
|
24991
|
+
}, null, 8, _hoisted_1$d)
|
|
24740
24992
|
]),
|
|
24741
24993
|
default: withCtx(() => [
|
|
24742
24994
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -24762,15 +25014,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
24762
25014
|
}
|
|
24763
25015
|
});
|
|
24764
25016
|
|
|
24765
|
-
const KdsClickableCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25017
|
+
const KdsClickableCard = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-04004cbf"]]);
|
|
24766
25018
|
|
|
24767
|
-
const _sfc_main$
|
|
25019
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
24768
25020
|
__name: "KdsLinkCard",
|
|
24769
25021
|
props: {
|
|
24770
25022
|
variant: { default: "filled" },
|
|
24771
25023
|
headline: {},
|
|
24772
25024
|
to: {},
|
|
24773
|
-
download: { type: Boolean },
|
|
25025
|
+
download: { type: Boolean, default: () => void 0 },
|
|
24774
25026
|
target: {},
|
|
24775
25027
|
rel: {},
|
|
24776
25028
|
disabled: { type: Boolean, default: false },
|
|
@@ -24828,10 +25080,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
24828
25080
|
}
|
|
24829
25081
|
});
|
|
24830
25082
|
|
|
24831
|
-
const KdsLinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25083
|
+
const KdsLinkCard = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-c7e823e4"]]);
|
|
24832
25084
|
|
|
24833
|
-
const _hoisted_1$
|
|
24834
|
-
const _sfc_main$
|
|
25085
|
+
const _hoisted_1$c = ["aria-label", "aria-labelledby", "disabled", "aria-pressed"];
|
|
25086
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
24835
25087
|
__name: "KdsSelectableCard",
|
|
24836
25088
|
props: /* @__PURE__ */ mergeModels({
|
|
24837
25089
|
variant: { default: "filled" },
|
|
@@ -24869,7 +25121,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24869
25121
|
"aria-pressed": modelValue.value,
|
|
24870
25122
|
"data-kds-card-primary-action": "",
|
|
24871
25123
|
onClick
|
|
24872
|
-
}, null, 8, _hoisted_1$
|
|
25124
|
+
}, null, 8, _hoisted_1$c)
|
|
24873
25125
|
]),
|
|
24874
25126
|
default: withCtx(() => [
|
|
24875
25127
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
@@ -24895,7 +25147,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
24895
25147
|
}
|
|
24896
25148
|
});
|
|
24897
25149
|
|
|
24898
|
-
const KdsSelectableCard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25150
|
+
const KdsSelectableCard = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-af9b9bf6"]]);
|
|
24899
25151
|
|
|
24900
25152
|
const kdsCardVariant = {
|
|
24901
25153
|
FILLED: "filled",
|
|
@@ -24917,17 +25169,17 @@ const kdsPanelBodyVariant = {
|
|
|
24917
25169
|
};
|
|
24918
25170
|
const kdsPanelBodyVariants = Object.values(kdsPanelBodyVariant);
|
|
24919
25171
|
|
|
24920
|
-
const _hoisted_1$
|
|
24921
|
-
const _hoisted_2$
|
|
25172
|
+
const _hoisted_1$b = { class: "kds-panel" };
|
|
25173
|
+
const _hoisted_2$7 = {
|
|
24922
25174
|
key: 0,
|
|
24923
25175
|
class: "kds-panel-header"
|
|
24924
25176
|
};
|
|
24925
|
-
const _hoisted_3$
|
|
24926
|
-
const _hoisted_4$
|
|
25177
|
+
const _hoisted_3$6 = ["id"];
|
|
25178
|
+
const _hoisted_4$5 = {
|
|
24927
25179
|
key: 0,
|
|
24928
25180
|
class: "kds-panel-headline-text"
|
|
24929
25181
|
};
|
|
24930
|
-
const _hoisted_5$
|
|
25182
|
+
const _hoisted_5$3 = {
|
|
24931
25183
|
key: 1,
|
|
24932
25184
|
class: "kds-panel-header-trailing"
|
|
24933
25185
|
};
|
|
@@ -24938,7 +25190,7 @@ const _hoisted_7 = {
|
|
|
24938
25190
|
};
|
|
24939
25191
|
const _hoisted_8 = { class: "kds-panel-footer-leading" };
|
|
24940
25192
|
const _hoisted_9 = { class: "kds-panel-footer-trailing" };
|
|
24941
|
-
const _sfc_main$
|
|
25193
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
24942
25194
|
__name: "KdsPanel",
|
|
24943
25195
|
props: {
|
|
24944
25196
|
headline: {},
|
|
@@ -24970,37 +25222,37 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
24970
25222
|
() => isBodyKeyboardFocusable.value && !bodyAriaLabel.value ? slotHeadlineId.value : void 0
|
|
24971
25223
|
);
|
|
24972
25224
|
return (_ctx, _cache) => {
|
|
24973
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24974
|
-
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
25225
|
+
return openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
25226
|
+
hasHeader.value ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
24975
25227
|
__props.headline ? (openBlock(), createElementBlock("div", {
|
|
24976
25228
|
key: 0,
|
|
24977
25229
|
id: unref(headlineId),
|
|
24978
25230
|
class: "kds-panel-headline"
|
|
24979
25231
|
}, [
|
|
24980
|
-
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$
|
|
25232
|
+
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$5, toDisplayString(__props.headline), 1)) : __props.headline.type === "button" ? (openBlock(), createBlock(_sfc_main$1y, mergeProps({ key: 1 }, __props.headline.props, {
|
|
24981
25233
|
size: "small",
|
|
24982
25234
|
onClick: __props.headline.onClick
|
|
24983
|
-
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$
|
|
25235
|
+
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1n, mergeProps({ key: 2 }, __props.headline.props, {
|
|
24984
25236
|
size: "small",
|
|
24985
25237
|
onItemClick: __props.headline.onItemClick
|
|
24986
25238
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
24987
|
-
], 8, _hoisted_3$
|
|
24988
|
-
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
25239
|
+
], 8, _hoisted_3$6)) : createCommentVNode("", true),
|
|
25240
|
+
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
24989
25241
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
24990
25242
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
24991
|
-
action.type === "button" ? (openBlock(), createBlock(_sfc_main$
|
|
25243
|
+
action.type === "button" ? (openBlock(), createBlock(_sfc_main$1y, mergeProps({
|
|
24992
25244
|
key: 0,
|
|
24993
25245
|
ref_for: true
|
|
24994
25246
|
}, action.props, {
|
|
24995
25247
|
size: "small",
|
|
24996
25248
|
onClick: action.onClick
|
|
24997
|
-
}), null, 16, ["onClick"])) : action.type === "toggleButton" ? (openBlock(), createBlock(_sfc_main$
|
|
25249
|
+
}), null, 16, ["onClick"])) : action.type === "toggleButton" ? (openBlock(), createBlock(_sfc_main$1v, mergeProps({
|
|
24998
25250
|
key: 1,
|
|
24999
25251
|
ref_for: true
|
|
25000
25252
|
}, action.props, {
|
|
25001
25253
|
size: "small",
|
|
25002
25254
|
"onUpdate:modelValue": action.onUpdateModelValue
|
|
25003
|
-
}), null, 16, ["onUpdate:modelValue"])) : action.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$
|
|
25255
|
+
}), null, 16, ["onUpdate:modelValue"])) : action.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1n, mergeProps({
|
|
25004
25256
|
key: 2,
|
|
25005
25257
|
ref_for: true
|
|
25006
25258
|
}, action.props, {
|
|
@@ -25029,7 +25281,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25029
25281
|
__props.footerLeadingActions?.length || __props.footerTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
25030
25282
|
createElementVNode("div", _hoisted_8, [
|
|
25031
25283
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerLeadingActions, (action, index) => {
|
|
25032
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25284
|
+
return openBlock(), createBlock(_sfc_main$1y, mergeProps({
|
|
25033
25285
|
key: `leading-${index}`
|
|
25034
25286
|
}, { ref_for: true }, action.props, {
|
|
25035
25287
|
onClick: action.onClick
|
|
@@ -25038,7 +25290,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25038
25290
|
]),
|
|
25039
25291
|
createElementVNode("div", _hoisted_9, [
|
|
25040
25292
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerTrailingActions, (action, index) => {
|
|
25041
|
-
return openBlock(), createBlock(_sfc_main$
|
|
25293
|
+
return openBlock(), createBlock(_sfc_main$1y, mergeProps({
|
|
25042
25294
|
key: `trailing-${index}`
|
|
25043
25295
|
}, { ref_for: true }, action.props, {
|
|
25044
25296
|
onClick: action.onClick
|
|
@@ -25051,9 +25303,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25051
25303
|
}
|
|
25052
25304
|
});
|
|
25053
25305
|
|
|
25054
|
-
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25306
|
+
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-64966fb2"]]);
|
|
25055
25307
|
|
|
25056
|
-
const _sfc_main$
|
|
25308
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
25057
25309
|
__name: "TabBarItemAccessory",
|
|
25058
25310
|
props: {
|
|
25059
25311
|
accessory: {},
|
|
@@ -25183,15 +25435,15 @@ const useTabBarAdaptiveLayout = ({
|
|
|
25183
25435
|
};
|
|
25184
25436
|
};
|
|
25185
25437
|
|
|
25186
|
-
const _hoisted_1$
|
|
25187
|
-
const _hoisted_2$
|
|
25188
|
-
const _hoisted_3$
|
|
25189
|
-
const _hoisted_4$
|
|
25438
|
+
const _hoisted_1$a = { class: "kds-tab-bar-wrapper" };
|
|
25439
|
+
const _hoisted_2$6 = ["id", "title", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
25440
|
+
const _hoisted_3$5 = { class: "kds-tab-label" };
|
|
25441
|
+
const _hoisted_4$4 = {
|
|
25190
25442
|
key: 1,
|
|
25191
25443
|
class: "kds-tab-indicator"
|
|
25192
25444
|
};
|
|
25193
25445
|
const MIN_TAB_WIDTH_TOKEN = "--kds-dimension-component-width-4x";
|
|
25194
|
-
const _sfc_main$
|
|
25446
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
25195
25447
|
__name: "KdsTabBar",
|
|
25196
25448
|
props: /* @__PURE__ */ mergeModels({
|
|
25197
25449
|
tabs: {},
|
|
@@ -25315,7 +25567,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25315
25567
|
{ immediate: true }
|
|
25316
25568
|
);
|
|
25317
25569
|
return (_ctx, _cache) => {
|
|
25318
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25570
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
25319
25571
|
createElementVNode("div", {
|
|
25320
25572
|
ref_key: "availableWidthContainer",
|
|
25321
25573
|
ref: availableWidthContainer,
|
|
@@ -25345,15 +25597,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25345
25597
|
onClick: ($event) => selectTab(tab),
|
|
25346
25598
|
onKeydown: ($event) => handleKeydown($event, tab)
|
|
25347
25599
|
}, [
|
|
25348
|
-
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$
|
|
25600
|
+
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$e, {
|
|
25349
25601
|
key: 0,
|
|
25350
25602
|
accessory: tab.accessory,
|
|
25351
25603
|
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
25352
25604
|
disabled: isTabDisabled(tab)
|
|
25353
25605
|
}, null, 8, ["accessory", "icon-size", "disabled"])) : createCommentVNode("", true),
|
|
25354
|
-
createElementVNode("span", _hoisted_3$
|
|
25355
|
-
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
25356
|
-
], 42, _hoisted_2$
|
|
25606
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString(tab.label), 1),
|
|
25607
|
+
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$4)) : createCommentVNode("", true)
|
|
25608
|
+
], 42, _hoisted_2$6);
|
|
25357
25609
|
}), 128))
|
|
25358
25610
|
], 2)
|
|
25359
25611
|
]);
|
|
@@ -25361,7 +25613,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25361
25613
|
}
|
|
25362
25614
|
});
|
|
25363
25615
|
|
|
25364
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25616
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-91f95f5f"]]);
|
|
25365
25617
|
|
|
25366
25618
|
const kdsTabBarSize = {
|
|
25367
25619
|
SMALL: "small",
|
|
@@ -25369,7 +25621,7 @@ const kdsTabBarSize = {
|
|
|
25369
25621
|
};
|
|
25370
25622
|
const kdsTabBarSizes = Object.values(kdsTabBarSize);
|
|
25371
25623
|
|
|
25372
|
-
const _sfc_main$
|
|
25624
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
25373
25625
|
__name: "LoadingSkeletonItem",
|
|
25374
25626
|
props: {
|
|
25375
25627
|
shape: { default: "text" }
|
|
@@ -25384,24 +25636,24 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25384
25636
|
}
|
|
25385
25637
|
});
|
|
25386
25638
|
|
|
25387
|
-
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25639
|
+
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b7565402"]]);
|
|
25388
25640
|
|
|
25389
|
-
const _hoisted_1$
|
|
25641
|
+
const _hoisted_1$9 = {
|
|
25390
25642
|
key: 0,
|
|
25391
25643
|
class: "kds-loading-skeleton",
|
|
25392
25644
|
"aria-busy": "true"
|
|
25393
25645
|
};
|
|
25394
|
-
const _hoisted_2$
|
|
25646
|
+
const _hoisted_2$5 = {
|
|
25395
25647
|
key: 0,
|
|
25396
25648
|
class: "kds-loading-skeleton-headline-with-paragraph"
|
|
25397
25649
|
};
|
|
25398
|
-
const _hoisted_3$
|
|
25399
|
-
const _hoisted_4$
|
|
25650
|
+
const _hoisted_3$4 = { class: "kds-loading-skeleton-paragraph-lines" };
|
|
25651
|
+
const _hoisted_4$3 = {
|
|
25400
25652
|
key: 1,
|
|
25401
25653
|
class: "kds-loading-skeleton-input-with-label"
|
|
25402
25654
|
};
|
|
25403
|
-
const _hoisted_5$
|
|
25404
|
-
const _sfc_main$
|
|
25655
|
+
const _hoisted_5$2 = { class: "kds-loading-skeleton-list-item-text" };
|
|
25656
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
25405
25657
|
__name: "KdsLoadingSkeleton",
|
|
25406
25658
|
props: {
|
|
25407
25659
|
variant: { default: "text" },
|
|
@@ -25414,22 +25666,22 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25414
25666
|
"v18b57ee8": _ctx.repeatGap
|
|
25415
25667
|
}));
|
|
25416
25668
|
return (_ctx, _cache) => {
|
|
25417
|
-
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
25669
|
+
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
25418
25670
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.repeat, (index) => {
|
|
25419
25671
|
return openBlock(), createElementBlock(Fragment, {
|
|
25420
25672
|
key: `skeleton-${index}`
|
|
25421
25673
|
}, [
|
|
25422
|
-
__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
25674
|
+
__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
|
|
25423
25675
|
createVNode(LoadingSkeletonItem, {
|
|
25424
25676
|
shape: "text",
|
|
25425
25677
|
class: "headline"
|
|
25426
25678
|
}),
|
|
25427
|
-
createElementVNode("div", _hoisted_3$
|
|
25679
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
25428
25680
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25429
25681
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25430
25682
|
createVNode(LoadingSkeletonItem, { shape: "text" })
|
|
25431
25683
|
])
|
|
25432
|
-
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25684
|
+
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
25433
25685
|
createVNode(LoadingSkeletonItem, {
|
|
25434
25686
|
shape: "label",
|
|
25435
25687
|
class: "label"
|
|
@@ -25449,7 +25701,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25449
25701
|
createVNode(LoadingSkeletonItem, {
|
|
25450
25702
|
shape: __props.variant.startsWith("list-item-large") ? "icon-large" : "icon-small"
|
|
25451
25703
|
}, null, 8, ["shape"]),
|
|
25452
|
-
createElementVNode("div", _hoisted_5$
|
|
25704
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
25453
25705
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25454
25706
|
__props.variant.endsWith("subtext") ? (openBlock(), createBlock(LoadingSkeletonItem, {
|
|
25455
25707
|
key: 0,
|
|
@@ -25469,7 +25721,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25469
25721
|
}
|
|
25470
25722
|
});
|
|
25471
25723
|
|
|
25472
|
-
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25724
|
+
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-326c25f0"]]);
|
|
25473
25725
|
|
|
25474
25726
|
const loadingSkeletonItemShape = {
|
|
25475
25727
|
TEXT: "text",
|
|
@@ -25497,7 +25749,7 @@ const kdsLoadingSkeletonVariants = Object.values(
|
|
|
25497
25749
|
kdsLoadingSkeletonVariant
|
|
25498
25750
|
);
|
|
25499
25751
|
|
|
25500
|
-
const _sfc_main$
|
|
25752
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
25501
25753
|
__name: "KdsNavItem",
|
|
25502
25754
|
props: {
|
|
25503
25755
|
label: {},
|
|
@@ -25590,7 +25842,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25590
25842
|
disabled: __props.disabled
|
|
25591
25843
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
25592
25844
|
__props.badge ? (openBlock(), createBlock(unref(KdsBadge), mergeProps({ key: 1 }, __props.badge, { size: "xxsmall" }), null, 16)) : createCommentVNode("", true),
|
|
25593
|
-
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$
|
|
25845
|
+
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$1y), mergeProps({ key: 2 }, __props.trailingButton, {
|
|
25594
25846
|
size: "xsmall",
|
|
25595
25847
|
onClick: onButtonClick
|
|
25596
25848
|
}), null, 16)) : createCommentVNode("", true)
|
|
@@ -25600,10 +25852,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25600
25852
|
}
|
|
25601
25853
|
});
|
|
25602
25854
|
|
|
25603
|
-
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25855
|
+
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-17711664"]]);
|
|
25604
25856
|
|
|
25605
|
-
const _hoisted_1$
|
|
25606
|
-
const _sfc_main$
|
|
25857
|
+
const _hoisted_1$8 = ["aria-label"];
|
|
25858
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
25607
25859
|
__name: "KdsNavigation",
|
|
25608
25860
|
props: /* @__PURE__ */ mergeModels({
|
|
25609
25861
|
ariaLabel: {},
|
|
@@ -25644,28 +25896,28 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
25644
25896
|
})) : createCommentVNode("", true)
|
|
25645
25897
|
]);
|
|
25646
25898
|
}), 128))
|
|
25647
|
-
], 8, _hoisted_1$
|
|
25899
|
+
], 8, _hoisted_1$8);
|
|
25648
25900
|
};
|
|
25649
25901
|
}
|
|
25650
25902
|
});
|
|
25651
25903
|
|
|
25652
|
-
const KdsNavigation = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25904
|
+
const KdsNavigation = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6cc9519f"]]);
|
|
25653
25905
|
|
|
25654
|
-
const _hoisted_1$
|
|
25906
|
+
const _hoisted_1$7 = {
|
|
25655
25907
|
key: 1,
|
|
25656
25908
|
class: "breadcrumb-label"
|
|
25657
25909
|
};
|
|
25658
|
-
const _hoisted_2$
|
|
25659
|
-
const _hoisted_3$
|
|
25910
|
+
const _hoisted_2$4 = ["aria-label", "aria-current", "title"];
|
|
25911
|
+
const _hoisted_3$3 = {
|
|
25660
25912
|
key: 1,
|
|
25661
25913
|
class: "breadcrumb-label"
|
|
25662
25914
|
};
|
|
25663
|
-
const _hoisted_4$
|
|
25664
|
-
const _hoisted_5 = {
|
|
25915
|
+
const _hoisted_4$2 = ["aria-label", "aria-current", "title"];
|
|
25916
|
+
const _hoisted_5$1 = {
|
|
25665
25917
|
key: 1,
|
|
25666
25918
|
class: "breadcrumb-label"
|
|
25667
25919
|
};
|
|
25668
|
-
const _sfc_main$
|
|
25920
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
25669
25921
|
__name: "BreadcrumbItem",
|
|
25670
25922
|
props: {
|
|
25671
25923
|
item: {},
|
|
@@ -25701,7 +25953,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25701
25953
|
name: __props.item.leadingIcon,
|
|
25702
25954
|
class: "breadcrumb-icon"
|
|
25703
25955
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25704
|
-
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
25956
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_1$7, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25705
25957
|
]),
|
|
25706
25958
|
_: 1
|
|
25707
25959
|
}, 8, ["to", "aria-label", "aria-current", "title"])) : isButtonItem.value ? (openBlock(), createElementBlock("button", {
|
|
@@ -25718,8 +25970,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25718
25970
|
name: __props.item.leadingIcon,
|
|
25719
25971
|
class: "breadcrumb-icon"
|
|
25720
25972
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25721
|
-
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
25722
|
-
], 8, _hoisted_2$
|
|
25973
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25974
|
+
], 8, _hoisted_2$4)) : (openBlock(), createElementBlock("span", {
|
|
25723
25975
|
key: 2,
|
|
25724
25976
|
class: "kds-breadcrumb-item",
|
|
25725
25977
|
"aria-label": __props.item.ariaLabel,
|
|
@@ -25731,13 +25983,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25731
25983
|
name: __props.item.leadingIcon,
|
|
25732
25984
|
class: "breadcrumb-icon"
|
|
25733
25985
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25734
|
-
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25735
|
-
], 8, _hoisted_4$
|
|
25986
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25987
|
+
], 8, _hoisted_4$2));
|
|
25736
25988
|
};
|
|
25737
25989
|
}
|
|
25738
25990
|
});
|
|
25739
25991
|
|
|
25740
|
-
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25992
|
+
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-fd7537fc"]]);
|
|
25741
25993
|
|
|
25742
25994
|
const useBreadcrumbAdaptiveLayout = (listRef, itemRefs, itemsSource) => {
|
|
25743
25995
|
const { width: listWidth } = useElementSize(listRef);
|
|
@@ -25836,8 +26088,8 @@ const useBreadcrumbAdaptiveLayout = (listRef, itemRefs, itemsSource) => {
|
|
|
25836
26088
|
});
|
|
25837
26089
|
};
|
|
25838
26090
|
|
|
25839
|
-
const _hoisted_1$
|
|
25840
|
-
const _sfc_main$
|
|
26091
|
+
const _hoisted_1$6 = ["aria-label"];
|
|
26092
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
25841
26093
|
__name: "KdsBreadcrumb",
|
|
25842
26094
|
props: {
|
|
25843
26095
|
items: {},
|
|
@@ -25884,32 +26136,126 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
25884
26136
|
], 2);
|
|
25885
26137
|
}), 128))
|
|
25886
26138
|
], 512)
|
|
25887
|
-
], 8, _hoisted_1$
|
|
26139
|
+
], 8, _hoisted_1$6)) : createCommentVNode("", true);
|
|
25888
26140
|
};
|
|
25889
26141
|
}
|
|
25890
26142
|
});
|
|
25891
26143
|
|
|
25892
|
-
const KdsBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26144
|
+
const KdsBreadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-8661f06f"]]);
|
|
25893
26145
|
|
|
25894
|
-
const
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
}
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
26146
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
26147
|
+
__name: "ActionButton",
|
|
26148
|
+
props: {
|
|
26149
|
+
type: {},
|
|
26150
|
+
props: {},
|
|
26151
|
+
onClick: { type: Function },
|
|
26152
|
+
size: {}
|
|
26153
|
+
},
|
|
26154
|
+
setup(__props) {
|
|
26155
|
+
const props = __props;
|
|
26156
|
+
return (_ctx, _cache) => {
|
|
26157
|
+
return props.type === unref(kdsActionButtonType).BUTTON ? (openBlock(), createBlock(_sfc_main$1y, mergeProps({ key: 0 }, props.props, {
|
|
26158
|
+
size: props.size,
|
|
26159
|
+
onClick: _cache[0] || (_cache[0] = (e) => props.onClick?.(e))
|
|
26160
|
+
}), null, 16, ["size"])) : props.type === unref(kdsActionButtonType).LINK_BUTTON ? (openBlock(), createBlock(_sfc_main$1x, mergeProps({ key: 1 }, props.props, {
|
|
26161
|
+
size: props.size
|
|
26162
|
+
}), null, 16, ["size"])) : createCommentVNode("", true);
|
|
26163
|
+
};
|
|
26164
|
+
}
|
|
26165
|
+
});
|
|
26166
|
+
|
|
26167
|
+
const _hoisted_1$5 = ["role"];
|
|
26168
|
+
const _hoisted_2$3 = { class: "header" };
|
|
26169
|
+
const _hoisted_3$2 = { class: "headline" };
|
|
26170
|
+
const _hoisted_4$1 = {
|
|
26171
|
+
key: 0,
|
|
26172
|
+
class: "body"
|
|
25906
26173
|
};
|
|
25907
|
-
const
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
FULL: "full"
|
|
26174
|
+
const _hoisted_5 = {
|
|
26175
|
+
key: 1,
|
|
26176
|
+
class: "buttons"
|
|
25911
26177
|
};
|
|
25912
|
-
const
|
|
26178
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
26179
|
+
__name: "KdsInlineMessage",
|
|
26180
|
+
props: {
|
|
26181
|
+
headline: {},
|
|
26182
|
+
description: {},
|
|
26183
|
+
actions: {},
|
|
26184
|
+
variant: { default: "info" }
|
|
26185
|
+
},
|
|
26186
|
+
setup(__props) {
|
|
26187
|
+
const props = createPropsRestProxy(__props, ["variant"]);
|
|
26188
|
+
const iconName = computed(() => {
|
|
26189
|
+
switch (__props.variant) {
|
|
26190
|
+
case "success":
|
|
26191
|
+
return "circle-success";
|
|
26192
|
+
case "error":
|
|
26193
|
+
return "circle-error";
|
|
26194
|
+
case "warning":
|
|
26195
|
+
return "warning";
|
|
26196
|
+
case "info":
|
|
26197
|
+
default:
|
|
26198
|
+
return "circle-info";
|
|
26199
|
+
}
|
|
26200
|
+
});
|
|
26201
|
+
const role = computed(
|
|
26202
|
+
() => __props.variant === "warning" || __props.variant === "error" ? "alert" : "status"
|
|
26203
|
+
);
|
|
26204
|
+
return (_ctx, _cache) => {
|
|
26205
|
+
return openBlock(), createElementBlock("div", {
|
|
26206
|
+
class: normalizeClass(["kds-inline-message", __props.variant]),
|
|
26207
|
+
role: role.value
|
|
26208
|
+
}, [
|
|
26209
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
26210
|
+
createVNode(unref(KdsIcon), {
|
|
26211
|
+
class: "icon",
|
|
26212
|
+
name: iconName.value,
|
|
26213
|
+
size: "small"
|
|
26214
|
+
}, null, 8, ["name"]),
|
|
26215
|
+
createElementVNode("div", _hoisted_3$2, toDisplayString(props.headline), 1)
|
|
26216
|
+
]),
|
|
26217
|
+
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
26218
|
+
__props.actions?.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
26219
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (button) => {
|
|
26220
|
+
return openBlock(), createBlock(_sfc_main$6, mergeProps({
|
|
26221
|
+
key: button.props.label ?? button.props.ariaLabel
|
|
26222
|
+
}, { ref_for: true }, button, { size: "small" }), null, 16);
|
|
26223
|
+
}), 128))
|
|
26224
|
+
])) : createCommentVNode("", true)
|
|
26225
|
+
], 10, _hoisted_1$5);
|
|
26226
|
+
};
|
|
26227
|
+
}
|
|
26228
|
+
});
|
|
26229
|
+
|
|
26230
|
+
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-7573041c"]]);
|
|
26231
|
+
|
|
26232
|
+
const kdsInlineMessageVariant = {
|
|
26233
|
+
ERROR: "error",
|
|
26234
|
+
INFO: "info",
|
|
26235
|
+
SUCCESS: "success",
|
|
26236
|
+
WARNING: "warning"
|
|
26237
|
+
};
|
|
26238
|
+
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
26239
|
+
|
|
26240
|
+
const kdsModalClosedBy = {
|
|
26241
|
+
ANY: "any",
|
|
26242
|
+
CLOSEREQUEST: "closerequest",
|
|
26243
|
+
NONE: "none"
|
|
26244
|
+
};
|
|
26245
|
+
const kdsModalClosedByOptions = Object.values(kdsModalClosedBy);
|
|
26246
|
+
const kdsModalWidth = {
|
|
26247
|
+
SMALL: "small",
|
|
26248
|
+
MEDIUM: "medium",
|
|
26249
|
+
LARGE: "large",
|
|
26250
|
+
XLARGE: "xlarge",
|
|
26251
|
+
FULL: "full"
|
|
26252
|
+
};
|
|
26253
|
+
const kdsModalWidthSizes = Object.values(kdsModalWidth);
|
|
26254
|
+
const kdsModalHeight = {
|
|
26255
|
+
AUTO: "auto",
|
|
26256
|
+
FULL: "full"
|
|
26257
|
+
};
|
|
26258
|
+
const kdsModalHeightSizes = Object.values(kdsModalHeight);
|
|
25913
26259
|
const kdsModalVariant = {
|
|
25914
26260
|
PADDED: "padded",
|
|
25915
26261
|
PLAIN: "plain"
|
|
@@ -25953,7 +26299,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
25953
26299
|
size: "medium"
|
|
25954
26300
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25955
26301
|
createElementVNode("div", _hoisted_2$2, toDisplayString(__props.headline), 1),
|
|
25956
|
-
createVNode(_sfc_main$
|
|
26302
|
+
createVNode(_sfc_main$1y, {
|
|
25957
26303
|
"leading-icon": "x-close",
|
|
25958
26304
|
variant: "transparent",
|
|
25959
26305
|
size: "medium",
|
|
@@ -25994,7 +26340,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
25994
26340
|
emits: ["close", "closed"],
|
|
25995
26341
|
setup(__props, { emit: __emit }) {
|
|
25996
26342
|
useCssVars((_ctx) => ({
|
|
25997
|
-
"
|
|
26343
|
+
"v36f0df94": _ctx.overflow
|
|
25998
26344
|
}));
|
|
25999
26345
|
const emit = __emit;
|
|
26000
26346
|
const dialog = useTemplateRef("dialogElement");
|
|
@@ -26086,7 +26432,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
26086
26432
|
}
|
|
26087
26433
|
});
|
|
26088
26434
|
|
|
26089
|
-
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
26435
|
+
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-1d030523"]]);
|
|
26090
26436
|
|
|
26091
26437
|
const defaultCancelButton = {
|
|
26092
26438
|
type: "cancel",
|
|
@@ -26232,7 +26578,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26232
26578
|
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
26233
26579
|
createElementVNode("div", _hoisted_2$1, toDisplayString(unref(config).value.message), 1),
|
|
26234
26580
|
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
26235
|
-
createVNode(_sfc_main$
|
|
26581
|
+
createVNode(_sfc_main$15, {
|
|
26236
26582
|
modelValue: askAgain.value,
|
|
26237
26583
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
26238
26584
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -26247,7 +26593,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26247
26593
|
name: "footer",
|
|
26248
26594
|
fn: withCtx(() => [
|
|
26249
26595
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
|
|
26250
|
-
return openBlock(), createBlock(_sfc_main$
|
|
26596
|
+
return openBlock(), createBlock(_sfc_main$1y, {
|
|
26251
26597
|
key: index,
|
|
26252
26598
|
destructive: button.destructive,
|
|
26253
26599
|
autofocus: button.autofocus,
|
|
@@ -26455,317 +26801,42 @@ const vKdsTooltip = {
|
|
|
26455
26801
|
}
|
|
26456
26802
|
};
|
|
26457
26803
|
|
|
26458
|
-
const
|
|
26459
|
-
KdsButton: _sfc_main$1v,
|
|
26460
|
-
KdsLinkButton: _sfc_main$1u,
|
|
26461
|
-
KdsSplitButton,
|
|
26462
|
-
KdsMenuButton: _sfc_main$1k,
|
|
26463
|
-
KdsProgressButton,
|
|
26464
|
-
KdsToggleButton: _sfc_main$1s
|
|
26465
|
-
};
|
|
26466
|
-
const fullBindings = (entry) => ({
|
|
26467
|
-
...entry.meta
|
|
26468
|
-
});
|
|
26469
|
-
const iconOnlyBindings = (entry, leadingIcon, ariaLabel) => {
|
|
26470
|
-
const {
|
|
26471
|
-
label: _label,
|
|
26472
|
-
trailingIcon: _trailingIcon,
|
|
26473
|
-
ariaLabel: _ariaLabel,
|
|
26474
|
-
title,
|
|
26475
|
-
leadingIcon: _leadingIcon,
|
|
26476
|
-
...rest
|
|
26477
|
-
} = entry.meta;
|
|
26478
|
-
return {
|
|
26479
|
-
...rest,
|
|
26480
|
-
leadingIcon,
|
|
26481
|
-
ariaLabel,
|
|
26482
|
-
title: title ?? ariaLabel
|
|
26483
|
-
};
|
|
26484
|
-
};
|
|
26485
|
-
const hasLeadingIcon = (entry) => "leadingIcon" in entry.meta && Boolean(entry.meta.leadingIcon);
|
|
26486
|
-
const isIconCapable = (entry) => entry.canBeIconOnly !== false && hasLeadingIcon(entry);
|
|
26487
|
-
const accessoryFor = (entry) => "leadingIcon" in entry.meta && entry.meta.leadingIcon ? { type: "icon", name: entry.meta.leadingIcon } : void 0;
|
|
26488
|
-
const toMenuItem = (entry) => {
|
|
26489
|
-
switch (entry.type) {
|
|
26490
|
-
case "KdsButton":
|
|
26491
|
-
return {
|
|
26492
|
-
id: entry.id,
|
|
26493
|
-
text: entry.meta.label,
|
|
26494
|
-
disabled: entry.meta.disabled,
|
|
26495
|
-
accessory: accessoryFor(entry),
|
|
26496
|
-
handler: (_item, ev) => entry.handler(entry, ev)
|
|
26497
|
-
};
|
|
26498
|
-
case "KdsProgressButton":
|
|
26499
|
-
return {
|
|
26500
|
-
id: entry.id,
|
|
26501
|
-
text: entry.meta.label,
|
|
26502
|
-
disabled: entry.meta.disabled,
|
|
26503
|
-
accessory: accessoryFor(entry),
|
|
26504
|
-
handler: (_item, ev) => entry.handler(entry, ev)
|
|
26505
|
-
};
|
|
26506
|
-
case "KdsToggleButton":
|
|
26507
|
-
return {
|
|
26508
|
-
id: entry.id,
|
|
26509
|
-
text: entry.meta.label,
|
|
26510
|
-
disabled: entry.meta.disabled,
|
|
26511
|
-
accessory: accessoryFor(entry),
|
|
26512
|
-
trailingIcon: entry.meta.modelValue ? "checkmark" : void 0,
|
|
26513
|
-
handler: () => entry.handler(entry, !entry.meta.modelValue)
|
|
26514
|
-
};
|
|
26515
|
-
case "KdsLinkButton":
|
|
26516
|
-
return {
|
|
26517
|
-
id: entry.id,
|
|
26518
|
-
text: entry.meta.label,
|
|
26519
|
-
disabled: entry.meta.disabled,
|
|
26520
|
-
accessory: accessoryFor(entry),
|
|
26521
|
-
to: entry.meta.to,
|
|
26522
|
-
target: entry.meta.target,
|
|
26523
|
-
rel: entry.meta.rel,
|
|
26524
|
-
download: entry.meta.download
|
|
26525
|
-
};
|
|
26526
|
-
case "KdsSplitButton":
|
|
26527
|
-
return {
|
|
26528
|
-
id: entry.id,
|
|
26529
|
-
text: entry.meta.label,
|
|
26530
|
-
disabled: entry.meta.disabled,
|
|
26531
|
-
accessory: accessoryFor(entry),
|
|
26532
|
-
children: [
|
|
26533
|
-
{
|
|
26534
|
-
id: `${entry.id}__primary`,
|
|
26535
|
-
text: entry.meta.label,
|
|
26536
|
-
accessory: accessoryFor(entry),
|
|
26537
|
-
separator: true,
|
|
26538
|
-
handler: (_item, ev) => entry.handler(entry, ev)
|
|
26539
|
-
},
|
|
26540
|
-
...entry.meta.items
|
|
26541
|
-
]
|
|
26542
|
-
};
|
|
26543
|
-
case "KdsMenuButton":
|
|
26544
|
-
return {
|
|
26545
|
-
id: entry.id,
|
|
26546
|
-
text: entry.meta.label,
|
|
26547
|
-
disabled: entry.meta.disabled,
|
|
26548
|
-
accessory: accessoryFor(entry),
|
|
26549
|
-
children: entry.meta.items
|
|
26550
|
-
};
|
|
26551
|
-
default: {
|
|
26552
|
-
const _exhaustive = entry;
|
|
26553
|
-
return _exhaustive;
|
|
26554
|
-
}
|
|
26555
|
-
}
|
|
26556
|
-
};
|
|
26557
|
-
|
|
26558
|
-
const _hoisted_1$1 = {
|
|
26559
|
-
ref: "measureContainer",
|
|
26560
|
-
class: "kds-button-group-measure",
|
|
26561
|
-
"aria-hidden": "true",
|
|
26562
|
-
inert: ""
|
|
26563
|
-
};
|
|
26804
|
+
const _hoisted_1$1 = ["data-width"];
|
|
26564
26805
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
26565
|
-
|
|
26566
|
-
__name: "KdsResponsiveButtonGroup",
|
|
26806
|
+
__name: "KdsSideDrawer",
|
|
26567
26807
|
props: {
|
|
26568
|
-
|
|
26569
|
-
|
|
26808
|
+
isExpanded: { type: Boolean, default: false },
|
|
26809
|
+
width: { default: "default" }
|
|
26570
26810
|
},
|
|
26571
26811
|
setup(__props) {
|
|
26572
|
-
const
|
|
26573
|
-
const measureFullEls = useTemplateRef("measureFullEntry");
|
|
26574
|
-
const measureIconEls = useTemplateRef("measureIconEntry");
|
|
26575
|
-
const measureMenuButtonEl = useTemplateRef("measureMenuButton");
|
|
26576
|
-
const buttonsContainerEl = useTemplateRef("buttonsContainer");
|
|
26577
|
-
const { width: containerWidth } = useElementSize(buttonsContainerEl);
|
|
26578
|
-
const gap = ref(0);
|
|
26579
|
-
const fullWidths = ref([]);
|
|
26580
|
-
const iconOnlyWidths = ref([]);
|
|
26581
|
-
const menuButtonWidth = ref(0);
|
|
26582
|
-
const iconOnlyEligibleEntries = computed(() => {
|
|
26583
|
-
const result = [];
|
|
26584
|
-
__props.buttons.forEach((entry, index) => {
|
|
26585
|
-
if (!isIconCapable(entry)) {
|
|
26586
|
-
return;
|
|
26587
|
-
}
|
|
26588
|
-
const meta = entry.meta;
|
|
26589
|
-
if (!meta.leadingIcon) {
|
|
26590
|
-
return;
|
|
26591
|
-
}
|
|
26592
|
-
result.push({
|
|
26593
|
-
entry,
|
|
26594
|
-
index,
|
|
26595
|
-
leadingIcon: meta.leadingIcon,
|
|
26596
|
-
label: meta.label
|
|
26597
|
-
});
|
|
26598
|
-
});
|
|
26599
|
-
return result;
|
|
26600
|
-
});
|
|
26601
|
-
const layout = computed(() => {
|
|
26602
|
-
const available = containerWidth.value;
|
|
26603
|
-
const n = __props.buttons.length;
|
|
26604
|
-
if (n === 0) {
|
|
26605
|
-
return { mode: "full", inMenu: /* @__PURE__ */ new Set() };
|
|
26606
|
-
}
|
|
26607
|
-
const gapTotal = (count) => gap.value * Math.max(0, count - 1);
|
|
26608
|
-
const sumFull = fullWidths.value.reduce((acc, w) => acc + (w ?? 0), 0) + gapTotal(n);
|
|
26609
|
-
if (!available || sumFull <= available) {
|
|
26610
|
-
return { mode: "full", inMenu: /* @__PURE__ */ new Set() };
|
|
26611
|
-
}
|
|
26612
|
-
const effectiveWidths = __props.buttons.map(
|
|
26613
|
-
(entry, i) => isIconCapable(entry) ? iconOnlyWidths.value[i] ?? fullWidths.value[i] ?? 0 : fullWidths.value[i] ?? 0
|
|
26614
|
-
);
|
|
26615
|
-
const sumCollapsed = effectiveWidths.reduce((acc, w) => acc + w, 0) + gapTotal(n);
|
|
26616
|
-
if (sumCollapsed <= available) {
|
|
26617
|
-
return { mode: "icon-only", inMenu: /* @__PURE__ */ new Set() };
|
|
26618
|
-
}
|
|
26619
|
-
const inMenu = /* @__PURE__ */ new Set();
|
|
26620
|
-
for (let i = n - 1; i >= 0; i--) {
|
|
26621
|
-
if (__props.buttons[i].canMoveToMenu === false) {
|
|
26622
|
-
continue;
|
|
26623
|
-
}
|
|
26624
|
-
inMenu.add(i);
|
|
26625
|
-
let visibleSum = 0;
|
|
26626
|
-
let visibleCount = 0;
|
|
26627
|
-
for (let j = 0; j < n; j++) {
|
|
26628
|
-
if (inMenu.has(j)) {
|
|
26629
|
-
continue;
|
|
26630
|
-
}
|
|
26631
|
-
visibleSum += effectiveWidths[j];
|
|
26632
|
-
visibleCount++;
|
|
26633
|
-
}
|
|
26634
|
-
const width = visibleSum + gapTotal(visibleCount) + menuButtonWidth.value + (visibleCount > 0 ? gap.value : 0);
|
|
26635
|
-
if (width <= available) {
|
|
26636
|
-
return { mode: "partial", inMenu };
|
|
26637
|
-
}
|
|
26638
|
-
}
|
|
26639
|
-
return { mode: "overflow", inMenu };
|
|
26640
|
-
});
|
|
26641
|
-
const visibleEntries = computed(() => {
|
|
26642
|
-
const collapseIcons = layout.value.mode !== "full";
|
|
26643
|
-
const result = [];
|
|
26644
|
-
__props.buttons.forEach((entry, index) => {
|
|
26645
|
-
if (layout.value.inMenu.has(index)) {
|
|
26646
|
-
return;
|
|
26647
|
-
}
|
|
26648
|
-
const meta = entry.meta;
|
|
26649
|
-
const iconOnly = collapseIcons && isIconCapable(entry) && meta.leadingIcon ? { leadingIcon: meta.leadingIcon, ariaLabel: meta.label } : void 0;
|
|
26650
|
-
result.push({ entry, iconOnly });
|
|
26651
|
-
});
|
|
26652
|
-
return result;
|
|
26653
|
-
});
|
|
26654
|
-
const overflowMenuItems = computed(() => {
|
|
26655
|
-
const indices = Array.from(layout.value.inMenu).sort((a, b) => a - b);
|
|
26656
|
-
return indices.map((i) => toMenuItem(__props.buttons[i]));
|
|
26657
|
-
});
|
|
26658
|
-
const refOffsetWidth = (instance) => {
|
|
26659
|
-
if (!instance) {
|
|
26660
|
-
return 0;
|
|
26661
|
-
}
|
|
26662
|
-
if (instance.menuButtonEl?.$el) {
|
|
26663
|
-
return instance.menuButtonEl.$el.offsetWidth ?? 0;
|
|
26664
|
-
}
|
|
26665
|
-
return instance.$el?.offsetWidth ?? 0;
|
|
26666
|
-
};
|
|
26667
|
-
const measureButtons = async () => {
|
|
26668
|
-
await nextTick();
|
|
26669
|
-
if (!measureContainerEl.value) {
|
|
26670
|
-
return;
|
|
26671
|
-
}
|
|
26672
|
-
fullWidths.value = Array.from(measureFullEls.value ?? []).map(refOffsetWidth);
|
|
26673
|
-
const iconWidthByIndex = new Array(__props.buttons.length);
|
|
26674
|
-
const eligibleIndices = iconOnlyEligibleEntries.value.map((e) => e.index);
|
|
26675
|
-
const iconRefs = Array.from(measureIconEls.value ?? []);
|
|
26676
|
-
eligibleIndices.forEach((buttonIndex, measureIndex) => {
|
|
26677
|
-
iconWidthByIndex[buttonIndex] = refOffsetWidth(iconRefs[measureIndex]);
|
|
26678
|
-
});
|
|
26679
|
-
iconOnlyWidths.value = iconWidthByIndex;
|
|
26680
|
-
menuButtonWidth.value = refOffsetWidth(measureMenuButtonEl.value);
|
|
26681
|
-
};
|
|
26682
|
-
const visibleBindings = (visible) => {
|
|
26683
|
-
const base = visible.iconOnly ? iconOnlyBindings(
|
|
26684
|
-
visible.entry,
|
|
26685
|
-
visible.iconOnly.leadingIcon,
|
|
26686
|
-
visible.iconOnly.ariaLabel
|
|
26687
|
-
) : fullBindings(visible.entry);
|
|
26688
|
-
const entry = visible.entry;
|
|
26689
|
-
if (entry.type === "KdsToggleButton") {
|
|
26690
|
-
return {
|
|
26691
|
-
...base,
|
|
26692
|
-
"onUpdate:modelValue": (next) => entry.handler(entry, next)
|
|
26693
|
-
};
|
|
26694
|
-
}
|
|
26695
|
-
if ("handler" in entry && typeof entry.handler === "function") {
|
|
26696
|
-
const handler = entry.handler;
|
|
26697
|
-
return {
|
|
26698
|
-
...base,
|
|
26699
|
-
onClick: (ev) => handler(entry, ev)
|
|
26700
|
-
};
|
|
26701
|
-
}
|
|
26702
|
-
return base;
|
|
26703
|
-
};
|
|
26704
|
-
watch(() => __props.buttons, measureButtons, { deep: true });
|
|
26812
|
+
const drawerRef = useTemplateRef("drawer");
|
|
26705
26813
|
onMounted(() => {
|
|
26706
|
-
|
|
26707
|
-
|
|
26708
|
-
|
|
26709
|
-
|
|
26814
|
+
watch(
|
|
26815
|
+
() => __props.isExpanded,
|
|
26816
|
+
(expanded) => {
|
|
26817
|
+
if (expanded) {
|
|
26818
|
+
drawerRef.value?.showPopover();
|
|
26819
|
+
} else {
|
|
26820
|
+
drawerRef.value?.hidePopover();
|
|
26821
|
+
}
|
|
26822
|
+
},
|
|
26823
|
+
{ immediate: true }
|
|
26824
|
+
);
|
|
26710
26825
|
});
|
|
26711
26826
|
return (_ctx, _cache) => {
|
|
26712
|
-
return openBlock(), createElementBlock(
|
|
26713
|
-
|
|
26714
|
-
|
|
26715
|
-
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
|
|
26720
|
-
}), 128)),
|
|
26721
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(iconOnlyEligibleEntries.value, (iconItem) => {
|
|
26722
|
-
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[iconItem.entry.type]), mergeProps(
|
|
26723
|
-
{
|
|
26724
|
-
key: `icon-${iconItem.entry.id}`,
|
|
26725
|
-
ref_for: true,
|
|
26726
|
-
ref: "measureIconEntry"
|
|
26727
|
-
},
|
|
26728
|
-
{ ref_for: true },
|
|
26729
|
-
unref(iconOnlyBindings)(iconItem.entry, iconItem.leadingIcon, iconItem.label)
|
|
26730
|
-
), null, 16);
|
|
26731
|
-
}), 128)),
|
|
26732
|
-
createVNode(_sfc_main$1k, {
|
|
26733
|
-
ref: "measureMenuButton",
|
|
26734
|
-
"leading-icon": "more-actions",
|
|
26735
|
-
ariaLabel: "More actions",
|
|
26736
|
-
items: [{ id: "_", text: "_" }]
|
|
26737
|
-
}, null, 512)
|
|
26738
|
-
], 512),
|
|
26739
|
-
createElementVNode("div", mergeProps({ ref: "buttonsContainer" }, _ctx.$attrs, {
|
|
26740
|
-
class: ["kds-button-group", __props.alignment]
|
|
26741
|
-
}), [
|
|
26742
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleEntries.value, (visible) => {
|
|
26743
|
-
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[visible.entry.type]), mergeProps({
|
|
26744
|
-
key: visible.entry.id
|
|
26745
|
-
}, { ref_for: true }, visibleBindings(visible)), null, 16);
|
|
26746
|
-
}), 128)),
|
|
26747
|
-
overflowMenuItems.value.length ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
26748
|
-
key: 0,
|
|
26749
|
-
"leading-icon": "more-actions",
|
|
26750
|
-
ariaLabel: "More actions",
|
|
26751
|
-
items: overflowMenuItems.value
|
|
26752
|
-
}, null, 8, ["items"])) : createCommentVNode("", true)
|
|
26753
|
-
], 16)
|
|
26754
|
-
], 64);
|
|
26827
|
+
return openBlock(), createElementBlock("div", {
|
|
26828
|
+
ref: "drawer",
|
|
26829
|
+
popover: "manual",
|
|
26830
|
+
class: "kds-side-drawer",
|
|
26831
|
+
"data-width": __props.width
|
|
26832
|
+
}, [
|
|
26833
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
26834
|
+
], 8, _hoisted_1$1);
|
|
26755
26835
|
};
|
|
26756
26836
|
}
|
|
26757
26837
|
});
|
|
26758
26838
|
|
|
26759
|
-
const
|
|
26760
|
-
|
|
26761
|
-
const kdsResponsiveButtonGroupAlignment = {
|
|
26762
|
-
LEFT: "left",
|
|
26763
|
-
RIGHT: "right",
|
|
26764
|
-
MIDDLE: "middle"
|
|
26765
|
-
};
|
|
26766
|
-
const kdsResponsiveButtonGroupAlignments = Object.values(
|
|
26767
|
-
kdsResponsiveButtonGroupAlignment
|
|
26768
|
-
);
|
|
26839
|
+
const KdsSideDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-33b66da9"]]);
|
|
26769
26840
|
|
|
26770
26841
|
const ExternalLinkIconUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20viewBox='0%200%2012%2012'%3e%3cpath%20d='M5.5%201.5h-3a1%201%200%200%200-1%201v7a1%201%200%200%200%201%201h7a1%201%200%200%200%201-1v-3m0-5L6%205.892M10.5%201.5v2.75m0-2.75H7.75'%20vector-effect='non-scaling-stroke'/%3e%3c/svg%3e";
|
|
26771
26842
|
|
|
@@ -26797,5 +26868,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26797
26868
|
|
|
26798
26869
|
const KdsDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ed6ba7bb"]]);
|
|
26799
26870
|
|
|
26800
|
-
export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, KdsBreadcrumb, _sfc_main$
|
|
26871
|
+
export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, KdsBreadcrumb, _sfc_main$1y as KdsButton, _sfc_main$j as KdsCard, _sfc_main$15 as KdsCheckbox, KdsCheckboxGroup, KdsClickableCard, _sfc_main$W as KdsColorInput, KdsColorSwatch, _sfc_main$1h as KdsContextMenu, KdsDataType, _sfc_main$P as KdsDateInput, _sfc_main$N as KdsDateTimeFormatInput, KdsDateTimeInput, KdsDescription, KdsDivider, KdsDonutChart, _sfc_main$C as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsFileExplorer, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, _sfc_main$G as KdsIntervalInput, KdsLabel, KdsLink, _sfc_main$1x as KdsLinkButton, KdsLinkCard, KdsListContainer, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$1i as KdsMenu, _sfc_main$1n as KdsMenuButton, KdsMissingValueIcon, KdsModal, KdsModalLayout, _sfc_main$y as KdsMultiSelectDropdown, KdsNavItem, KdsNavigation, _sfc_main$Z as KdsNumberInput, KdsPanel, _sfc_main$V as KdsPasswordInput, _sfc_main$M as KdsPatternInput, KdsPopover, KdsPreviewList, KdsProgressBar, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSelectableCard, KdsSideDrawer, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$I as KdsTimeInput, _sfc_main$1v as KdsToggleButton, KdsToggleSwitch, KdsTwinList, _sfc_main$U as KdsUsernameInput, KdsValueSwitch, KdsVariableToggleButton, KdsZonedDateTimeInput, kdsActionButtonType, kdsActionButtonTypes, 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, kdsFileExplorerDraggingAnimationMode, kdsFileExplorerDraggingAnimationModes, kdsFileExplorerSize, kdsFileExplorerSizes, 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, kdsPopoverPlacement, kdsPopoverPlacements, kdsPopoverRole, kdsPopoverRoles, kdsPopoverType, kdsPopoverTypes, kdsProgressBarSize, kdsProgressBarSizes, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsTimeInputGranularities, kdsTimeInputGranularity, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsToggleSwitchLabelPosition, kdsToggleSwitchLabelPositions, kdsToggleSwitchSize, kdsToggleSwitchSizes, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode, vKdsTooltip };
|
|
26801
26872
|
//# sourceMappingURL=index.js.map
|