@knime/kds-components 0.31.2 → 0.31.4
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 +19 -0
- package/dist/index.css +362 -358
- package/dist/index.js +546 -578
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
- package/dist/src/accessories/Badge/enums.d.ts +1 -1
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -1
- package/dist/src/accessories/Icon/KdsDataType.vue.d.ts.map +1 -1
- package/dist/src/accessories/InlineMessage/KdsInlineMessage.vue.d.ts +16 -1
- package/dist/src/accessories/InlineMessage/KdsInlineMessage.vue.d.ts.map +1 -1
- package/dist/src/accessories/InlineMessage/enums.d.ts +1 -1
- package/dist/src/accessories/LiveStatus/KdsLiveStatus.vue.d.ts.map +1 -1
- package/dist/src/accessories/ProgressBar/KdsProgressBar.vue.d.ts.map +1 -1
- package/dist/src/buttons/BaseButton.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsProgressButton/enums.d.ts +1 -1
- package/dist/src/buttons/links/KdsLink/KdsLink.vue.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/FileExplorerItem.vue.d.ts +10 -10
- package/dist/src/containers/FileExplorer/FileExplorerItem.vue.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/FileExplorerItemBack.vue.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts +10 -10
- package/dist/src/containers/FileExplorer/enums.d.ts +1 -1
- package/dist/src/containers/ListItem/KdsListItem/KdsListItem.vue.d.ts.map +1 -1
- package/dist/src/containers/ListItem/KdsListItemButton/KdsListItemButton.vue.d.ts.map +1 -1
- package/dist/src/containers/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -1
- package/dist/src/containers/MenuContainer/KdsMenuItem.vue.d.ts +2 -2
- package/dist/src/forms/Checkbox/BaseCheckbox.vue.d.ts.map +1 -1
- package/dist/src/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +1 -1
- package/dist/src/forms/_helper/BaseFieldsetWrapper.vue.d.ts.map +1 -1
- package/dist/src/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -1
- package/dist/src/forms/_helper/KdsLabel.vue.d.ts.map +1 -1
- package/dist/src/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -1
- package/dist/src/forms/inputs/BaseInput.vue.d.ts +2 -2
- package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/DateTimeInput/KdsDateTimeInput.vue.d.ts +25 -25
- package/dist/src/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/NumberInput/KdsNumberInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +9 -5
- package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
- package/dist/src/forms/inputs/SearchInput/types.d.ts +9 -3
- package/dist/src/forms/inputs/SearchInput/types.d.ts.map +1 -1
- package/dist/src/forms/inputs/TextInput/KdsTextInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/TimeInput/KdsTimeInput.vue.d.ts +20 -20
- package/dist/src/forms/inputs/TimeInput/TimePicker.vue.d.ts +15 -15
- package/dist/src/forms/inputs/UsernameInput/KdsUsernameInput.vue.d.ts +5 -5
- package/dist/src/forms/inputs/UsernameInput/enums.d.ts +1 -1
- package/dist/src/forms/inputs/ZonedDateTimeInput/KdsZonedDateTimeInput.vue.d.ts +25 -25
- package/dist/src/forms/selects/Dropdown/DropdownContainer.vue.d.ts +5 -5
- package/dist/src/forms/selects/Dropdown/KdsDropdown.vue.d.ts +5 -5
- package/dist/src/forms/selects/Dropdown/KdsMultiSelectDropdown.vue.d.ts +5 -5
- package/dist/src/forms/selects/Dropdown/MultiSelectDropdownContainer.vue.d.ts +5 -5
- package/dist/src/forms/selects/TwinList/enums.d.ts +1 -1
- package/dist/src/layouts/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -3
- package/dist/src/layouts/Breadcrumb/BreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/LoadingSkeleton/enums.d.ts +4 -3
- package/dist/src/layouts/LoadingSkeleton/enums.d.ts.map +1 -1
- package/dist/src/layouts/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/Panel/KdsPanel.vue.d.ts.map +1 -1
- package/dist/src/layouts/Panel/enums.d.ts +2 -1
- package/dist/src/layouts/Panel/enums.d.ts.map +1 -1
- package/dist/src/layouts/Panel/types.d.ts +1 -1
- package/dist/src/layouts/TabBar/KdsTabBar.vue.d.ts.map +1 -1
- package/dist/src/overlays/Modal/KdsModal.vue.d.ts +2 -2
- package/dist/src/overlays/Modal/KdsModalLayout.vue.d.ts.map +1 -1
- package/dist/src/overlays/Popover/enums.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,183 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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, createVNode, renderSlot, createTextVNode, withCtx, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, onMounted, onUnmounted, nextTick, useId, withModifiers, inject, provide, resolveComponent, withKeys, watchEffect, useAttrs, defineAsyncComponent, toRefs, useCssVars, normalizeProps, guardReactiveProps, createSlots, withDirectives, vShow, onBeforeUpdate, onBeforeUnmount, isRef, vModelText, effectScope } from 'vue';
|
|
2
|
+
import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, onClickOutside, useVirtualList, useElementSize, useMousePressed, useTemplateRefsList, useEventListener } from '@vueuse/core';
|
|
3
3
|
|
|
4
|
-
import './index.css';const
|
|
5
|
-
const HIDE_DELAY = 150;
|
|
6
|
-
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let visibleCount = 0;
|
|
8
|
-
let currentVisible = null;
|
|
9
|
-
function generateTooltipDiv(text) {
|
|
10
|
-
const div = document.createElement("div");
|
|
11
|
-
div.classList.add("kds-tooltip");
|
|
12
|
-
div.textContent = text;
|
|
13
|
-
return div;
|
|
14
|
-
}
|
|
15
|
-
function getText(binding) {
|
|
16
|
-
const value = binding.value;
|
|
17
|
-
if (value === null || value === void 0 || value === "") {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return String(value);
|
|
21
|
-
}
|
|
22
|
-
function createPopover(triggerEl, binding) {
|
|
23
|
-
const popover = generateTooltipDiv(getText(binding) ?? "");
|
|
24
|
-
popover.setAttribute("popover", "manual");
|
|
25
|
-
popover.setAttribute("role", "tooltip");
|
|
26
|
-
const id = `kds-tooltip-${crypto.randomUUID()}`;
|
|
27
|
-
popover.id = id;
|
|
28
|
-
triggerEl.setAttribute("aria-describedby", id);
|
|
29
|
-
const anchorName = `--kds-tooltip-anchor-${id}`;
|
|
30
|
-
triggerEl.style.setProperty("anchor-name", anchorName);
|
|
31
|
-
popover.style.setProperty("position-anchor", anchorName);
|
|
32
|
-
document.body.appendChild(popover);
|
|
33
|
-
return popover;
|
|
34
|
-
}
|
|
35
|
-
function cancelTimers(state) {
|
|
36
|
-
if (state.showTimer !== null) {
|
|
37
|
-
clearTimeout(state.showTimer);
|
|
38
|
-
state.showTimer = null;
|
|
39
|
-
}
|
|
40
|
-
if (state.hideTimer !== null) {
|
|
41
|
-
clearTimeout(state.hideTimer);
|
|
42
|
-
state.hideTimer = null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function hidePopover(state) {
|
|
46
|
-
if (!state.visible) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
state.visible = false;
|
|
50
|
-
visibleCount--;
|
|
51
|
-
if (currentVisible === state) {
|
|
52
|
-
currentVisible = null;
|
|
53
|
-
}
|
|
54
|
-
try {
|
|
55
|
-
state.popoverEl.hidePopover();
|
|
56
|
-
} catch {
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function showPopover(state) {
|
|
60
|
-
if (state.visible) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (currentVisible && currentVisible !== state) {
|
|
64
|
-
cancelTimers(currentVisible);
|
|
65
|
-
hidePopover(currentVisible);
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
state.popoverEl.showPopover();
|
|
69
|
-
} catch {
|
|
70
|
-
}
|
|
71
|
-
state.visible = true;
|
|
72
|
-
visibleCount++;
|
|
73
|
-
currentVisible = state;
|
|
74
|
-
}
|
|
75
|
-
function scheduleShow(state, delay) {
|
|
76
|
-
cancelTimers(state);
|
|
77
|
-
if (state.dismissed) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
state.showTimer = setTimeout(() => {
|
|
81
|
-
state.showTimer = null;
|
|
82
|
-
showPopover(state);
|
|
83
|
-
}, delay);
|
|
84
|
-
}
|
|
85
|
-
function scheduleHide(state) {
|
|
86
|
-
cancelTimers(state);
|
|
87
|
-
state.hideTimer = setTimeout(() => {
|
|
88
|
-
state.hideTimer = null;
|
|
89
|
-
hidePopover(state);
|
|
90
|
-
}, HIDE_DELAY);
|
|
91
|
-
}
|
|
92
|
-
function mount(triggerEl, binding) {
|
|
93
|
-
if (getText(binding) === null) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
const popoverEl = createPopover(triggerEl, binding);
|
|
97
|
-
const state = {
|
|
98
|
-
popoverEl,
|
|
99
|
-
showTimer: null,
|
|
100
|
-
hideTimer: null,
|
|
101
|
-
anchorName: popoverEl.id,
|
|
102
|
-
dismissed: false,
|
|
103
|
-
visible: false,
|
|
104
|
-
scope: effectScope()
|
|
105
|
-
};
|
|
106
|
-
stateMap.set(triggerEl, state);
|
|
107
|
-
const onMouseEnter = () => {
|
|
108
|
-
state.dismissed = false;
|
|
109
|
-
const delay = visibleCount > 0 ? 0 : SHOW_DELAY;
|
|
110
|
-
scheduleShow(state, delay);
|
|
111
|
-
};
|
|
112
|
-
const onMouseLeave = () => scheduleHide(state);
|
|
113
|
-
const onFocusIn = () => {
|
|
114
|
-
state.dismissed = false;
|
|
115
|
-
scheduleShow(state, 0);
|
|
116
|
-
};
|
|
117
|
-
const onFocusOut = () => {
|
|
118
|
-
cancelTimers(state);
|
|
119
|
-
hidePopover(state);
|
|
120
|
-
};
|
|
121
|
-
const onDocumentKeyDown = (e) => {
|
|
122
|
-
if (e.key === "Escape" && state.visible) {
|
|
123
|
-
cancelTimers(state);
|
|
124
|
-
hidePopover(state);
|
|
125
|
-
state.dismissed = true;
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
const onPopoverMouseEnter = () => {
|
|
129
|
-
cancelTimers(state);
|
|
130
|
-
};
|
|
131
|
-
const onPopoverMouseLeave = () => {
|
|
132
|
-
scheduleHide(state);
|
|
133
|
-
};
|
|
134
|
-
state.scope.run(() => {
|
|
135
|
-
useEventListener(triggerEl, "mouseenter", onMouseEnter);
|
|
136
|
-
useEventListener(triggerEl, "mouseleave", onMouseLeave);
|
|
137
|
-
useEventListener(triggerEl, "focusin", onFocusIn);
|
|
138
|
-
useEventListener(triggerEl, "focusout", onFocusOut);
|
|
139
|
-
useEventListener(document, "keydown", onDocumentKeyDown, true);
|
|
140
|
-
useEventListener(popoverEl, "mouseenter", onPopoverMouseEnter);
|
|
141
|
-
useEventListener(popoverEl, "mouseleave", onPopoverMouseLeave);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function unmount(triggerEl) {
|
|
145
|
-
const state = stateMap.get(triggerEl);
|
|
146
|
-
if (state) {
|
|
147
|
-
state.scope.stop();
|
|
148
|
-
cancelTimers(state);
|
|
149
|
-
hidePopover(state);
|
|
150
|
-
state.popoverEl.remove();
|
|
151
|
-
stateMap.delete(triggerEl);
|
|
152
|
-
}
|
|
153
|
-
triggerEl.removeAttribute("aria-describedby");
|
|
154
|
-
triggerEl.style.removeProperty("anchor-name");
|
|
155
|
-
}
|
|
156
|
-
const vKdsTooltip = {
|
|
157
|
-
mounted(el, binding) {
|
|
158
|
-
mount(el, binding);
|
|
159
|
-
},
|
|
160
|
-
updated(el, binding) {
|
|
161
|
-
const state = stateMap.get(el);
|
|
162
|
-
const newText = getText(binding);
|
|
163
|
-
if (newText === null) {
|
|
164
|
-
if (state) {
|
|
165
|
-
unmount(el);
|
|
166
|
-
}
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
if (!state) {
|
|
170
|
-
mount(el, binding);
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
state.popoverEl.textContent = newText;
|
|
174
|
-
},
|
|
175
|
-
unmounted(el) {
|
|
176
|
-
unmount(el);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
const kdsAvatarSize = {
|
|
4
|
+
import './index.css';const kdsAvatarSize = {
|
|
181
5
|
SMALL: "small",
|
|
182
6
|
MEDIUM: "medium",
|
|
183
7
|
LARGE: "large",
|
|
@@ -185,9 +9,9 @@ const kdsAvatarSize = {
|
|
|
185
9
|
};
|
|
186
10
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
187
11
|
|
|
188
|
-
const _hoisted_1$
|
|
189
|
-
const _hoisted_2$
|
|
190
|
-
const _hoisted_3$
|
|
12
|
+
const _hoisted_1$18 = ["role", "title", "aria-hidden", "aria-label", "data-color"];
|
|
13
|
+
const _hoisted_2$J = ["src"];
|
|
14
|
+
const _hoisted_3$v = {
|
|
191
15
|
key: 1,
|
|
192
16
|
class: "kds-avatar-initials",
|
|
193
17
|
"aria-hidden": "true"
|
|
@@ -241,9 +65,10 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
241
65
|
);
|
|
242
66
|
const avatarColor = computed(() => getAvatarColor(displayedInitials.value));
|
|
243
67
|
return (_ctx, _cache) => {
|
|
244
|
-
return
|
|
68
|
+
return openBlock(), createElementBlock("div", {
|
|
245
69
|
class: normalizeClass(["kds-avatar", __props.size]),
|
|
246
70
|
role: hasTitle.value ? "img" : "presentation",
|
|
71
|
+
title: hasTitle.value ? accessibleTitle.value : void 0,
|
|
247
72
|
"aria-hidden": !hasTitle.value ? "true" : void 0,
|
|
248
73
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0,
|
|
249
74
|
"data-color": avatarColor.value
|
|
@@ -255,12 +80,10 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
255
80
|
alt: "",
|
|
256
81
|
"aria-hidden": "true",
|
|
257
82
|
onError: onImageError
|
|
258
|
-
}, null, 40, _hoisted_2$
|
|
83
|
+
}, null, 40, _hoisted_2$J)) : (openBlock(), createElementBlock("div", _hoisted_3$v, [
|
|
259
84
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
260
85
|
]))
|
|
261
|
-
], 10, _hoisted_1$
|
|
262
|
-
[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]
|
|
263
|
-
]);
|
|
86
|
+
], 10, _hoisted_1$18);
|
|
264
87
|
};
|
|
265
88
|
}
|
|
266
89
|
});
|
|
@@ -273,11 +96,11 @@ const _export_sfc = (sfc, props) => {
|
|
|
273
96
|
return target;
|
|
274
97
|
};
|
|
275
98
|
|
|
276
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["__scopeId", "data-v-
|
|
99
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["__scopeId", "data-v-9e1a5abe"]]);
|
|
277
100
|
|
|
278
|
-
const _hoisted_1$
|
|
279
|
-
const _hoisted_2$
|
|
280
|
-
const _hoisted_3$
|
|
101
|
+
const _hoisted_1$17 = ["aria-label"];
|
|
102
|
+
const _hoisted_2$I = { class: "avatars" };
|
|
103
|
+
const _hoisted_3$u = {
|
|
281
104
|
key: 0,
|
|
282
105
|
class: "more-count",
|
|
283
106
|
"aria-hidden": "true"
|
|
@@ -302,7 +125,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
302
125
|
role: "group",
|
|
303
126
|
"aria-label": ariaLabel.value
|
|
304
127
|
}, [
|
|
305
|
-
createElementVNode("div", _hoisted_2$
|
|
128
|
+
createElementVNode("div", _hoisted_2$I, [
|
|
306
129
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.avatars, (avatar, index) => {
|
|
307
130
|
return openBlock(), createBlock(KdsAvatar, {
|
|
308
131
|
key: index,
|
|
@@ -316,8 +139,8 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
316
139
|
}, null, 8, ["style", "size", "initials", "title", "src"]);
|
|
317
140
|
}), 128))
|
|
318
141
|
]),
|
|
319
|
-
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
320
|
-
], 8, _hoisted_1$
|
|
142
|
+
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$u, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)
|
|
143
|
+
], 8, _hoisted_1$17);
|
|
321
144
|
};
|
|
322
145
|
}
|
|
323
146
|
});
|
|
@@ -762,6 +585,7 @@ const kdsDataTypeSize = {
|
|
|
762
585
|
};
|
|
763
586
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
764
587
|
|
|
588
|
+
const _hoisted_1$16 = ["title"];
|
|
765
589
|
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
766
590
|
__name: "KdsDataType",
|
|
767
591
|
props: {
|
|
@@ -794,22 +618,21 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
794
618
|
});
|
|
795
619
|
__expose({ status });
|
|
796
620
|
return (_ctx, _cache) => {
|
|
797
|
-
return
|
|
798
|
-
class: normalizeClass(["kds-data-type-icon-container", __props.size, { disabled: __props.disabled }])
|
|
621
|
+
return openBlock(), createElementBlock("div", {
|
|
622
|
+
class: normalizeClass(["kds-data-type-icon-container", __props.size, { disabled: __props.disabled }]),
|
|
623
|
+
title: __props.iconTitle
|
|
799
624
|
}, [
|
|
800
625
|
(openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent)), {
|
|
801
626
|
class: normalizeClass(["kds-icon", "kds-data-type-icon", iconSize.value]),
|
|
802
627
|
"aria-hidden": "true",
|
|
803
628
|
focusable: "false"
|
|
804
629
|
}, null, 8, ["class"]))
|
|
805
|
-
],
|
|
806
|
-
[unref(vKdsTooltip), __props.iconTitle]
|
|
807
|
-
]);
|
|
630
|
+
], 10, _hoisted_1$16);
|
|
808
631
|
};
|
|
809
632
|
}
|
|
810
633
|
});
|
|
811
634
|
|
|
812
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-
|
|
635
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-38e9537f"]]);
|
|
813
636
|
|
|
814
637
|
const kdsBadgeVariant = {
|
|
815
638
|
NEUTRAL: "neutral",
|
|
@@ -863,8 +686,8 @@ const kdsProgressBarSize = {
|
|
|
863
686
|
};
|
|
864
687
|
const kdsProgressBarSizes = Object.values(kdsProgressBarSize);
|
|
865
688
|
|
|
866
|
-
const _hoisted_1$14 = ["aria-label"];
|
|
867
|
-
const _hoisted_2$
|
|
689
|
+
const _hoisted_1$14 = ["title", "aria-label"];
|
|
690
|
+
const _hoisted_2$H = {
|
|
868
691
|
key: 0,
|
|
869
692
|
class: "indeterminate-bar",
|
|
870
693
|
"aria-hidden": "true"
|
|
@@ -901,19 +724,18 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
901
724
|
}
|
|
902
725
|
])
|
|
903
726
|
}, [
|
|
904
|
-
|
|
727
|
+
createElementVNode("progress", mergeProps({
|
|
728
|
+
title: title.value,
|
|
905
729
|
"aria-label": title.value,
|
|
906
730
|
class: "progress"
|
|
907
|
-
}, __props.indeterminate ? {} : { value: progressValue.value, max: 100 }), null, 16, _hoisted_1$14),
|
|
908
|
-
|
|
909
|
-
]),
|
|
910
|
-
__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_2$F)) : createCommentVNode("", true)
|
|
731
|
+
}, __props.indeterminate ? {} : { value: progressValue.value, max: 100 }), null, 16, _hoisted_1$14),
|
|
732
|
+
__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_2$H)) : createCommentVNode("", true)
|
|
911
733
|
], 2);
|
|
912
734
|
};
|
|
913
735
|
}
|
|
914
736
|
});
|
|
915
737
|
|
|
916
|
-
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["__scopeId", "data-v-
|
|
738
|
+
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["__scopeId", "data-v-884d689a"]]);
|
|
917
739
|
|
|
918
740
|
const kdsColorSwatchType = {
|
|
919
741
|
LEARNER: "learner",
|
|
@@ -932,7 +754,7 @@ const kdsColorSwatchSize = {
|
|
|
932
754
|
};
|
|
933
755
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
934
756
|
|
|
935
|
-
const _hoisted_1$13 = ["role", "aria-hidden", "aria-label"];
|
|
757
|
+
const _hoisted_1$13 = ["role", "title", "aria-hidden", "aria-label"];
|
|
936
758
|
const RGBA_SHORT_HEX_LENGTH = 4;
|
|
937
759
|
const RGBA_LONG_HEX_LENGTH = 8;
|
|
938
760
|
const ALPHA_NIBBLE_INDEX = 3;
|
|
@@ -1007,20 +829,19 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
1007
829
|
const accessibleTitle = computed(() => props.title?.trim() ?? "");
|
|
1008
830
|
const hasTitle = computed(() => accessibleTitle.value.length > 0);
|
|
1009
831
|
return (_ctx, _cache) => {
|
|
1010
|
-
return
|
|
832
|
+
return openBlock(), createElementBlock("span", {
|
|
1011
833
|
role: hasTitle.value ? "img" : "presentation",
|
|
1012
834
|
class: normalizeClass(["kds-color-swatch", __props.size]),
|
|
835
|
+
title: hasTitle.value ? accessibleTitle.value : void 0,
|
|
1013
836
|
style: normalizeStyle(swatchStyle.value),
|
|
1014
837
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
1015
838
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
1016
|
-
}, null, 14, _hoisted_1$13)
|
|
1017
|
-
[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]
|
|
1018
|
-
]);
|
|
839
|
+
}, null, 14, _hoisted_1$13);
|
|
1019
840
|
};
|
|
1020
841
|
}
|
|
1021
842
|
});
|
|
1022
843
|
|
|
1023
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["__scopeId", "data-v-
|
|
844
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["__scopeId", "data-v-91e0130d"]]);
|
|
1024
845
|
|
|
1025
846
|
const kdsDarkModeType = {
|
|
1026
847
|
LIGHT: "light",
|
|
@@ -1140,7 +961,8 @@ function useKdsIsTruncated(elementRef) {
|
|
|
1140
961
|
return { isTruncated };
|
|
1141
962
|
}
|
|
1142
963
|
|
|
1143
|
-
const _hoisted_1$12 = ["aria-label"];
|
|
964
|
+
const _hoisted_1$12 = ["title", "aria-label"];
|
|
965
|
+
const _hoisted_2$G = ["title"];
|
|
1144
966
|
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
1145
967
|
__name: "KdsLiveStatus",
|
|
1146
968
|
props: {
|
|
@@ -1157,30 +979,26 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
1157
979
|
const labelEl = useTemplateRef("labelEl");
|
|
1158
980
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
1159
981
|
return (_ctx, _cache) => {
|
|
1160
|
-
return
|
|
982
|
+
return openBlock(), createElementBlock("span", {
|
|
1161
983
|
class: normalizeClass(["kds-live-status", __props.status, `size-${__props.size}`]),
|
|
1162
984
|
role: "img",
|
|
985
|
+
title: !__props.label ? accessibleTitle.value : void 0,
|
|
1163
986
|
"aria-label": accessibleTitle.value
|
|
1164
987
|
}, [
|
|
1165
988
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)),
|
|
1166
|
-
__props.label ?
|
|
989
|
+
__props.label ? (openBlock(), createElementBlock("span", {
|
|
1167
990
|
key: 0,
|
|
1168
991
|
ref_key: "labelEl",
|
|
1169
992
|
ref: labelEl,
|
|
1170
|
-
class: "label"
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
[unref(vKdsTooltip), unref(isTruncated) ? __props.label : void 0]
|
|
1175
|
-
]) : createCommentVNode("", true)
|
|
1176
|
-
], 10, _hoisted_1$12)), [
|
|
1177
|
-
[unref(vKdsTooltip), !__props.label ? accessibleTitle.value : void 0]
|
|
1178
|
-
]);
|
|
993
|
+
class: "label",
|
|
994
|
+
title: unref(isTruncated) ? __props.label : void 0
|
|
995
|
+
}, toDisplayString(__props.label), 9, _hoisted_2$G)) : createCommentVNode("", true)
|
|
996
|
+
], 10, _hoisted_1$12);
|
|
1179
997
|
};
|
|
1180
998
|
}
|
|
1181
999
|
});
|
|
1182
1000
|
|
|
1183
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-
|
|
1001
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-f20c5c00"]]);
|
|
1184
1002
|
|
|
1185
1003
|
const kdsLiveStatusStatus = {
|
|
1186
1004
|
RED: "red",
|
|
@@ -1238,9 +1056,9 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
1238
1056
|
);
|
|
1239
1057
|
|
|
1240
1058
|
const _hoisted_1$10 = ["role"];
|
|
1241
|
-
const _hoisted_2$
|
|
1242
|
-
const _hoisted_3$
|
|
1243
|
-
const _hoisted_4$
|
|
1059
|
+
const _hoisted_2$F = { class: "header" };
|
|
1060
|
+
const _hoisted_3$t = { class: "headline" };
|
|
1061
|
+
const _hoisted_4$p = {
|
|
1244
1062
|
key: 0,
|
|
1245
1063
|
class: "body"
|
|
1246
1064
|
};
|
|
@@ -1275,21 +1093,25 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
1275
1093
|
class: normalizeClass(classes.value),
|
|
1276
1094
|
role: role.value
|
|
1277
1095
|
}, [
|
|
1278
|
-
createElementVNode("div", _hoisted_2$
|
|
1096
|
+
createElementVNode("div", _hoisted_2$F, [
|
|
1279
1097
|
createVNode(KdsIcon, {
|
|
1280
1098
|
class: "icon",
|
|
1281
1099
|
name: iconName.value,
|
|
1282
1100
|
size: "small"
|
|
1283
1101
|
}, null, 8, ["name"]),
|
|
1284
|
-
createElementVNode("div", _hoisted_3$
|
|
1102
|
+
createElementVNode("div", _hoisted_3$t, toDisplayString(props.headline), 1)
|
|
1285
1103
|
]),
|
|
1286
|
-
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
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)
|
|
1287
1109
|
], 10, _hoisted_1$10);
|
|
1288
1110
|
};
|
|
1289
1111
|
}
|
|
1290
1112
|
});
|
|
1291
1113
|
|
|
1292
|
-
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-
|
|
1114
|
+
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-c54ea4b4"]]);
|
|
1293
1115
|
|
|
1294
1116
|
const kdsInlineMessageVariant = {
|
|
1295
1117
|
ERROR: "error",
|
|
@@ -1318,16 +1140,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1318
1140
|
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df682150"]]);
|
|
1319
1141
|
|
|
1320
1142
|
const _hoisted_1$$ = { class: "donut-container" };
|
|
1321
|
-
const _hoisted_2$
|
|
1322
|
-
const _hoisted_3$
|
|
1323
|
-
const _hoisted_4$
|
|
1324
|
-
const _hoisted_5$
|
|
1143
|
+
const _hoisted_2$E = ["height", "width", "viewBox"];
|
|
1144
|
+
const _hoisted_3$s = ["r", "stroke-width"];
|
|
1145
|
+
const _hoisted_4$o = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1146
|
+
const _hoisted_5$e = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1325
1147
|
const _hoisted_6$b = {
|
|
1326
1148
|
key: 0,
|
|
1327
1149
|
class: "donut-text"
|
|
1328
1150
|
};
|
|
1329
|
-
const _hoisted_7$
|
|
1330
|
-
const _hoisted_8$
|
|
1151
|
+
const _hoisted_7$4 = { class: "title" };
|
|
1152
|
+
const _hoisted_8$3 = {
|
|
1331
1153
|
key: 0,
|
|
1332
1154
|
class: "sub-text"
|
|
1333
1155
|
};
|
|
@@ -1391,7 +1213,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1391
1213
|
r: r.value,
|
|
1392
1214
|
"stroke-width": strokeWidth.value,
|
|
1393
1215
|
fill: "transparent"
|
|
1394
|
-
}, null, 8, _hoisted_3$
|
|
1216
|
+
}, null, 8, _hoisted_3$s),
|
|
1395
1217
|
__props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1396
1218
|
key: 0,
|
|
1397
1219
|
class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
|
|
@@ -1403,7 +1225,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1403
1225
|
"stroke-dashoffset": secondaryStrokeDashOffset.value,
|
|
1404
1226
|
fill: "transparent",
|
|
1405
1227
|
transform: transformWedge.value
|
|
1406
|
-
}, null, 10, _hoisted_4$
|
|
1228
|
+
}, null, 10, _hoisted_4$o)) : createCommentVNode("", true),
|
|
1407
1229
|
!disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1408
1230
|
key: 1,
|
|
1409
1231
|
class: normalizeClass(["value-wedge", "primary-circle", { animate: __props.animate }]),
|
|
@@ -1415,11 +1237,11 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1415
1237
|
"stroke-dashoffset": strokeDashOffset.value,
|
|
1416
1238
|
fill: "transparent",
|
|
1417
1239
|
transform: transformWedge.value
|
|
1418
|
-
}, null, 10, _hoisted_5$
|
|
1419
|
-
], 8, _hoisted_2$
|
|
1240
|
+
}, null, 10, _hoisted_5$e)) : createCommentVNode("", true)
|
|
1241
|
+
], 8, _hoisted_2$E)),
|
|
1420
1242
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
1421
|
-
createElementVNode("div", _hoisted_7$
|
|
1422
|
-
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1243
|
+
createElementVNode("div", _hoisted_7$4, toDisplayString(__props.title), 1),
|
|
1244
|
+
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
|
|
1423
1245
|
])) : createCommentVNode("", true)
|
|
1424
1246
|
]);
|
|
1425
1247
|
};
|
|
@@ -1488,10 +1310,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1488
1310
|
}
|
|
1489
1311
|
}
|
|
1490
1312
|
return (_ctx, _cache) => {
|
|
1491
|
-
return
|
|
1313
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.component), {
|
|
1492
1314
|
type: __props.component === "button" ? "button" : void 0,
|
|
1493
1315
|
class: normalizeClass(classes.value),
|
|
1494
1316
|
disabled: __props.disabled,
|
|
1317
|
+
title: props.title,
|
|
1495
1318
|
"aria-label": props.ariaLabel,
|
|
1496
1319
|
"data-test-id": props.dataTestId,
|
|
1497
1320
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
@@ -1512,14 +1335,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1512
1335
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1513
1336
|
]),
|
|
1514
1337
|
_: 3
|
|
1515
|
-
}, 8, ["type", "class", "disabled", "aria-label", "data-test-id"])
|
|
1516
|
-
[unref(vKdsTooltip), props.title]
|
|
1517
|
-
]);
|
|
1338
|
+
}, 8, ["type", "class", "disabled", "title", "aria-label", "data-test-id"]);
|
|
1518
1339
|
};
|
|
1519
1340
|
}
|
|
1520
1341
|
});
|
|
1521
1342
|
|
|
1522
|
-
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-
|
|
1343
|
+
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-24ade73a"]]);
|
|
1523
1344
|
|
|
1524
1345
|
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
1525
1346
|
__name: "KdsButton",
|
|
@@ -1818,7 +1639,7 @@ function prettyBytes(number, options) {
|
|
|
1818
1639
|
}
|
|
1819
1640
|
|
|
1820
1641
|
const _hoisted_1$Y = { class: "label" };
|
|
1821
|
-
const _hoisted_2$
|
|
1642
|
+
const _hoisted_2$D = {
|
|
1822
1643
|
key: 1,
|
|
1823
1644
|
class: "file-size"
|
|
1824
1645
|
};
|
|
@@ -1901,12 +1722,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1901
1722
|
emit("click", event);
|
|
1902
1723
|
}
|
|
1903
1724
|
return (_ctx, _cache) => {
|
|
1904
|
-
return
|
|
1725
|
+
return openBlock(), createBlock(resolveDynamicComponent(component.value), {
|
|
1905
1726
|
class: normalizeClass(["kds-link", `variant-${variant.value}`, { disabled: __props.disabled }]),
|
|
1906
1727
|
to: effectiveTo.value,
|
|
1907
1728
|
download: __props.disabled ? void 0 : __props.download,
|
|
1908
1729
|
target: effectiveTarget.value,
|
|
1909
1730
|
rel: effectiveRel.value,
|
|
1731
|
+
title: effectiveTitle.value,
|
|
1910
1732
|
"aria-disabled": __props.disabled ? "true" : void 0,
|
|
1911
1733
|
onClick
|
|
1912
1734
|
}, {
|
|
@@ -1917,17 +1739,15 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1917
1739
|
name: "external-link",
|
|
1918
1740
|
size: "xsmall"
|
|
1919
1741
|
})) : createCommentVNode("", true),
|
|
1920
|
-
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1742
|
+
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
1921
1743
|
]),
|
|
1922
1744
|
_: 1
|
|
1923
|
-
}, 8, ["class", "to", "download", "target", "rel", "aria-disabled"])
|
|
1924
|
-
[unref(vKdsTooltip), effectiveTitle.value]
|
|
1925
|
-
]);
|
|
1745
|
+
}, 8, ["class", "to", "download", "target", "rel", "title", "aria-disabled"]);
|
|
1926
1746
|
};
|
|
1927
1747
|
}
|
|
1928
1748
|
});
|
|
1929
1749
|
|
|
1930
|
-
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-
|
|
1750
|
+
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-56e748a8"]]);
|
|
1931
1751
|
|
|
1932
1752
|
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
1933
1753
|
__name: "KdsToggleButton",
|
|
@@ -1967,7 +1787,7 @@ const kdsToggleButtonVariant = {
|
|
|
1967
1787
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1968
1788
|
|
|
1969
1789
|
const _hoisted_1$X = ["data-visible"];
|
|
1970
|
-
const _hoisted_2$
|
|
1790
|
+
const _hoisted_2$C = ["data-visible"];
|
|
1971
1791
|
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
1972
1792
|
__name: "KdsProgressButton",
|
|
1973
1793
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2039,7 +1859,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
2039
1859
|
size: iconSize.value,
|
|
2040
1860
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
2041
1861
|
}, null, 8, ["size", "variant"])
|
|
2042
|
-
], 8, _hoisted_2$
|
|
1862
|
+
], 8, _hoisted_2$C)
|
|
2043
1863
|
], 2)
|
|
2044
1864
|
]),
|
|
2045
1865
|
_: 1
|
|
@@ -2331,21 +2151,23 @@ const kdsListItemAccessorySize = {
|
|
|
2331
2151
|
};
|
|
2332
2152
|
|
|
2333
2153
|
const _hoisted_1$W = ["id", "role", "aria-selected", "aria-disabled"];
|
|
2334
|
-
const _hoisted_2$
|
|
2154
|
+
const _hoisted_2$B = {
|
|
2335
2155
|
key: 0,
|
|
2336
2156
|
class: "accessory"
|
|
2337
2157
|
};
|
|
2338
|
-
const _hoisted_3$
|
|
2339
|
-
const _hoisted_4$
|
|
2158
|
+
const _hoisted_3$r = { class: "content" };
|
|
2159
|
+
const _hoisted_4$n = ["title"];
|
|
2160
|
+
const _hoisted_5$d = {
|
|
2340
2161
|
key: 0,
|
|
2341
2162
|
class: "prefix"
|
|
2342
2163
|
};
|
|
2343
|
-
const
|
|
2344
|
-
const
|
|
2164
|
+
const _hoisted_6$a = ["title"];
|
|
2165
|
+
const _hoisted_7$3 = { class: "trailing-item" };
|
|
2166
|
+
const _hoisted_8$2 = {
|
|
2345
2167
|
key: 0,
|
|
2346
2168
|
class: "shortcut"
|
|
2347
2169
|
};
|
|
2348
|
-
const
|
|
2170
|
+
const _hoisted_9$2 = {
|
|
2349
2171
|
key: 3,
|
|
2350
2172
|
class: "trailing-item-reserve-space"
|
|
2351
2173
|
};
|
|
@@ -2407,39 +2229,35 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2407
2229
|
]),
|
|
2408
2230
|
onClick
|
|
2409
2231
|
}, [
|
|
2410
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2232
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$B, [
|
|
2411
2233
|
createVNode(_sfc_main$1q, {
|
|
2412
2234
|
accessory: props.accessory,
|
|
2413
2235
|
size: accessorySize.value,
|
|
2414
2236
|
disabled: __props.disabled
|
|
2415
2237
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
2416
2238
|
])) : createCommentVNode("", true),
|
|
2417
|
-
createElementVNode("span", _hoisted_3$
|
|
2418
|
-
|
|
2239
|
+
createElementVNode("span", _hoisted_3$r, [
|
|
2240
|
+
createElementVNode("span", {
|
|
2419
2241
|
ref_key: "labelEl",
|
|
2420
2242
|
ref: labelEl,
|
|
2421
|
-
class: "label"
|
|
2243
|
+
class: "label",
|
|
2244
|
+
title: unref(isLabelTruncated) ? props.text : void 0
|
|
2422
2245
|
}, [
|
|
2423
|
-
__props.missing ? (openBlock(), createElementBlock("span",
|
|
2246
|
+
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$d, "(Missing) ")) : createCommentVNode("", true),
|
|
2424
2247
|
createElementVNode("span", {
|
|
2425
2248
|
class: normalizeClass({ special: __props.special })
|
|
2426
2249
|
}, toDisplayString(props.text), 3)
|
|
2427
|
-
])
|
|
2428
|
-
|
|
2429
|
-
]),
|
|
2430
|
-
props.subText ? withDirectives((openBlock(), createElementBlock("span", {
|
|
2250
|
+
], 8, _hoisted_4$n),
|
|
2251
|
+
props.subText ? (openBlock(), createElementBlock("span", {
|
|
2431
2252
|
key: 0,
|
|
2432
2253
|
ref_key: "subtextEl",
|
|
2433
2254
|
ref: subtextEl,
|
|
2434
|
-
class: "subtext"
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
])), [
|
|
2438
|
-
[unref(vKdsTooltip), unref(isSubtextTruncated) ? props.subText : void 0]
|
|
2439
|
-
]) : createCommentVNode("", true)
|
|
2255
|
+
class: "subtext",
|
|
2256
|
+
title: unref(isSubtextTruncated) ? props.subText : void 0
|
|
2257
|
+
}, toDisplayString(props.subText), 9, _hoisted_6$a)) : createCommentVNode("", true)
|
|
2440
2258
|
]),
|
|
2441
|
-
createElementVNode("span",
|
|
2442
|
-
props.shortcut ? (openBlock(), createElementBlock("kbd",
|
|
2259
|
+
createElementVNode("span", _hoisted_7$3, [
|
|
2260
|
+
props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_8$2, toDisplayString(props.shortcut), 1)) : props.badge ? (openBlock(), createBlock(KdsBadge, {
|
|
2443
2261
|
key: 1,
|
|
2444
2262
|
size: badgeSize.value,
|
|
2445
2263
|
label: props.badge.label,
|
|
@@ -2450,20 +2268,21 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2450
2268
|
size: "small",
|
|
2451
2269
|
name: props.trailingIcon
|
|
2452
2270
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2453
|
-
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span",
|
|
2271
|
+
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span", _hoisted_9$2)) : createCommentVNode("", true)
|
|
2454
2272
|
])
|
|
2455
2273
|
], 10, _hoisted_1$W);
|
|
2456
2274
|
};
|
|
2457
2275
|
}
|
|
2458
2276
|
});
|
|
2459
2277
|
|
|
2460
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-
|
|
2278
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-a3d6c86f"]]);
|
|
2461
2279
|
|
|
2462
2280
|
const _hoisted_1$V = { class: "kds-list-item-section-title" };
|
|
2463
|
-
const _hoisted_2$
|
|
2281
|
+
const _hoisted_2$A = {
|
|
2464
2282
|
key: 0,
|
|
2465
2283
|
class: "icon"
|
|
2466
2284
|
};
|
|
2285
|
+
const _hoisted_3$q = ["title"];
|
|
2467
2286
|
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
2468
2287
|
__name: "ListItemSectionTitle",
|
|
2469
2288
|
props: {
|
|
@@ -2476,27 +2295,24 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
2476
2295
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
2477
2296
|
return (_ctx, _cache) => {
|
|
2478
2297
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
2479
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2298
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$A, [
|
|
2480
2299
|
createVNode(KdsIcon, {
|
|
2481
2300
|
name: props.leadingIcon,
|
|
2482
2301
|
size: "small"
|
|
2483
2302
|
}, null, 8, ["name"])
|
|
2484
2303
|
])) : createCommentVNode("", true),
|
|
2485
|
-
|
|
2304
|
+
createElementVNode("span", {
|
|
2486
2305
|
ref_key: "labelEl",
|
|
2487
2306
|
ref: labelEl,
|
|
2488
|
-
class: "label"
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
])), [
|
|
2492
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
2493
|
-
])
|
|
2307
|
+
class: "label",
|
|
2308
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
2309
|
+
}, toDisplayString(props.label), 9, _hoisted_3$q)
|
|
2494
2310
|
]);
|
|
2495
2311
|
};
|
|
2496
2312
|
}
|
|
2497
2313
|
});
|
|
2498
2314
|
|
|
2499
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-
|
|
2315
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-5eeb1226"]]);
|
|
2500
2316
|
|
|
2501
2317
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
2502
2318
|
__name: "KdsMenuItem",
|
|
@@ -2674,7 +2490,7 @@ const ContainerDepthKey = /* @__PURE__ */ Symbol("ContainerDepth");
|
|
|
2674
2490
|
const ChildItemKey = /* @__PURE__ */ Symbol("ChildItem");
|
|
2675
2491
|
|
|
2676
2492
|
const _hoisted_1$U = ["id", "aria-label", "aria-activedescendant"];
|
|
2677
|
-
const _hoisted_2$
|
|
2493
|
+
const _hoisted_2$z = ["id"];
|
|
2678
2494
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
2679
2495
|
__name: "KdsMenuContainer",
|
|
2680
2496
|
props: {
|
|
@@ -2901,7 +2717,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
2901
2717
|
items: item.children ?? [],
|
|
2902
2718
|
onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event))
|
|
2903
2719
|
}, null, 8, ["id", "ariaLabel", "items"])
|
|
2904
|
-
], 44, _hoisted_2$
|
|
2720
|
+
], 44, _hoisted_2$z)
|
|
2905
2721
|
]),
|
|
2906
2722
|
_: 2
|
|
2907
2723
|
}, 1032, ["item", "is-last", "active-id", "variant", "onClick", "onMouseenter"]);
|
|
@@ -2936,7 +2752,7 @@ const kdsPopoverType = {
|
|
|
2936
2752
|
const kdsPopoverTypes = Object.values(kdsPopoverType);
|
|
2937
2753
|
|
|
2938
2754
|
const _hoisted_1$T = ["id", "popover", "role"];
|
|
2939
|
-
const _hoisted_2$
|
|
2755
|
+
const _hoisted_2$y = {
|
|
2940
2756
|
key: 0,
|
|
2941
2757
|
class: "kds-popover-default-content"
|
|
2942
2758
|
};
|
|
@@ -2998,7 +2814,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
2998
2814
|
onToggle
|
|
2999
2815
|
}, [
|
|
3000
2816
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3001
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2817
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
3002
2818
|
], true)
|
|
3003
2819
|
], 46, _hoisted_1$T);
|
|
3004
2820
|
};
|
|
@@ -3226,12 +3042,12 @@ const kdsButtonVariant = {
|
|
|
3226
3042
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
3227
3043
|
|
|
3228
3044
|
const _hoisted_1$S = ["aria-disabled"];
|
|
3229
|
-
const _hoisted_2$
|
|
3230
|
-
const _hoisted_3$
|
|
3045
|
+
const _hoisted_2$x = { class: "kds-empty-state-headline" };
|
|
3046
|
+
const _hoisted_3$p = {
|
|
3231
3047
|
key: 1,
|
|
3232
3048
|
class: "kds-empty-state-description"
|
|
3233
3049
|
};
|
|
3234
|
-
const _hoisted_4$
|
|
3050
|
+
const _hoisted_4$m = {
|
|
3235
3051
|
key: 2,
|
|
3236
3052
|
class: "kds-empty-state-action"
|
|
3237
3053
|
};
|
|
@@ -3273,9 +3089,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3273
3089
|
variant: "onSurface",
|
|
3274
3090
|
"aria-hidden": "true"
|
|
3275
3091
|
})) : createCommentVNode("", true),
|
|
3276
|
-
createElementVNode("p", _hoisted_2$
|
|
3277
|
-
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
3278
|
-
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3092
|
+
createElementVNode("p", _hoisted_2$x, toDisplayString(props.headline), 1),
|
|
3093
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$p, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
3094
|
+
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
|
|
3279
3095
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
3280
3096
|
disabled: props.button?.disabled || __props.disabled,
|
|
3281
3097
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("buttonClick", $event))
|
|
@@ -3630,7 +3446,7 @@ const kdsSpacingContainer0p10x = 1;
|
|
|
3630
3446
|
const kdsSpacingContainer0p25x = 4;
|
|
3631
3447
|
|
|
3632
3448
|
const _hoisted_1$Q = { class: "kds-label-wrapper" };
|
|
3633
|
-
const _hoisted_2$
|
|
3449
|
+
const _hoisted_2$w = ["id", "for", "title"];
|
|
3634
3450
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
3635
3451
|
__name: "KdsLabel",
|
|
3636
3452
|
props: {
|
|
@@ -3649,17 +3465,14 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3649
3465
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
3650
3466
|
return (_ctx, _cache) => {
|
|
3651
3467
|
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
3652
|
-
|
|
3468
|
+
createElementVNode("label", {
|
|
3653
3469
|
id: props.id,
|
|
3654
3470
|
ref_key: "labelEl",
|
|
3655
3471
|
ref: labelEl,
|
|
3656
3472
|
for: props.for,
|
|
3657
|
-
class: "label"
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
], 8, _hoisted_2$v)), [
|
|
3661
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
3662
|
-
]),
|
|
3473
|
+
class: "label",
|
|
3474
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
3475
|
+
}, toDisplayString(props.label), 9, _hoisted_2$w),
|
|
3663
3476
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
3664
3477
|
key: 0,
|
|
3665
3478
|
content: props.description,
|
|
@@ -3670,10 +3483,10 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3670
3483
|
}
|
|
3671
3484
|
});
|
|
3672
3485
|
|
|
3673
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-
|
|
3486
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-efe3313e"]]);
|
|
3674
3487
|
|
|
3675
3488
|
const _hoisted_1$P = ["id"];
|
|
3676
|
-
const _hoisted_2$
|
|
3489
|
+
const _hoisted_2$v = { class: "subtext-text" };
|
|
3677
3490
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
3678
3491
|
__name: "KdsSubText",
|
|
3679
3492
|
props: {
|
|
@@ -3705,7 +3518,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
3705
3518
|
variant: "onSurface",
|
|
3706
3519
|
"aria-hidden": "true"
|
|
3707
3520
|
})) : createCommentVNode("", true),
|
|
3708
|
-
createElementVNode("span", _hoisted_2$
|
|
3521
|
+
createElementVNode("span", _hoisted_2$v, toDisplayString(props.subText), 1)
|
|
3709
3522
|
], 10, _hoisted_1$P)) : createCommentVNode("", true);
|
|
3710
3523
|
};
|
|
3711
3524
|
}
|
|
@@ -4449,13 +4262,13 @@ const _hoisted_1$O = {
|
|
|
4449
4262
|
key: 0,
|
|
4450
4263
|
class: "icon-wrapper leading"
|
|
4451
4264
|
};
|
|
4452
|
-
const _hoisted_2$
|
|
4265
|
+
const _hoisted_2$u = {
|
|
4453
4266
|
key: 1,
|
|
4454
4267
|
class: "leading-slot"
|
|
4455
4268
|
};
|
|
4456
|
-
const _hoisted_3$
|
|
4457
|
-
const _hoisted_4$
|
|
4458
|
-
const _hoisted_5$
|
|
4269
|
+
const _hoisted_3$o = ["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"];
|
|
4270
|
+
const _hoisted_4$l = ["aria-disabled"];
|
|
4271
|
+
const _hoisted_5$c = {
|
|
4459
4272
|
key: 4,
|
|
4460
4273
|
class: "trailing-slot"
|
|
4461
4274
|
};
|
|
@@ -4620,7 +4433,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4620
4433
|
name: props.leadingIcon
|
|
4621
4434
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
4622
4435
|
])) : createCommentVNode("", true),
|
|
4623
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4436
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
4624
4437
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
4625
4438
|
])) : createCommentVNode("", true),
|
|
4626
4439
|
createElementVNode("input", {
|
|
@@ -4665,7 +4478,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4665
4478
|
onCut: handleInputCut,
|
|
4666
4479
|
onDrop: handleInputDrop,
|
|
4667
4480
|
onDragend: handleInputDragEnd
|
|
4668
|
-
}, null, 42, _hoisted_3$
|
|
4481
|
+
}, null, 42, _hoisted_3$o),
|
|
4669
4482
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
4670
4483
|
key: 2,
|
|
4671
4484
|
class: normalizeClass({
|
|
@@ -4674,7 +4487,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4674
4487
|
disabled: __props.disabled
|
|
4675
4488
|
}),
|
|
4676
4489
|
"aria-disabled": __props.disabled || void 0
|
|
4677
|
-
}, toDisplayString(props.unit), 11, _hoisted_4$
|
|
4490
|
+
}, toDisplayString(props.unit), 11, _hoisted_4$l)) : createCommentVNode("", true),
|
|
4678
4491
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$1v, {
|
|
4679
4492
|
key: 3,
|
|
4680
4493
|
class: "clear-button",
|
|
@@ -4685,7 +4498,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4685
4498
|
title: "Clear",
|
|
4686
4499
|
onClick: withModifiers(clearAndFocusInput, ["stop"])
|
|
4687
4500
|
})) : createCommentVNode("", true),
|
|
4688
|
-
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4501
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
4689
4502
|
renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
|
|
4690
4503
|
])) : createCommentVNode("", true),
|
|
4691
4504
|
props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
@@ -4953,20 +4766,21 @@ const filterSlotsForDynamicColumns = (slots) => {
|
|
|
4953
4766
|
};
|
|
4954
4767
|
|
|
4955
4768
|
const _hoisted_1$M = { class: "item-icon" };
|
|
4956
|
-
const _hoisted_2$
|
|
4769
|
+
const _hoisted_2$t = {
|
|
4957
4770
|
key: 0,
|
|
4958
4771
|
class: "open-indicator"
|
|
4959
4772
|
};
|
|
4960
|
-
const _hoisted_3$
|
|
4773
|
+
const _hoisted_3$n = ["title"];
|
|
4774
|
+
const _hoisted_4$k = {
|
|
4961
4775
|
key: 0,
|
|
4962
4776
|
class: "inner"
|
|
4963
4777
|
};
|
|
4964
|
-
const
|
|
4778
|
+
const _hoisted_5$b = {
|
|
4965
4779
|
key: 0,
|
|
4966
4780
|
class: "item-error"
|
|
4967
4781
|
};
|
|
4968
|
-
const
|
|
4969
|
-
const
|
|
4782
|
+
const _hoisted_6$8 = { class: "inner" };
|
|
4783
|
+
const _hoisted_7$2 = {
|
|
4970
4784
|
key: 0,
|
|
4971
4785
|
class: /* @__PURE__ */ normalizeClass(["column"])
|
|
4972
4786
|
};
|
|
@@ -5072,20 +4886,21 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5072
4886
|
}, {
|
|
5073
4887
|
default: withCtx(() => [
|
|
5074
4888
|
createElementVNode("td", _hoisted_1$M, [
|
|
5075
|
-
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4889
|
+
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$t)) : createCommentVNode("", true),
|
|
5076
4890
|
createVNode(KdsIcon, {
|
|
5077
4891
|
name: __props.item.icon || (__props.item.isDirectory ? "folder" : "file"),
|
|
5078
4892
|
size: "small"
|
|
5079
4893
|
}, null, 8, ["name"])
|
|
5080
4894
|
]),
|
|
5081
|
-
|
|
4895
|
+
createElementVNode("td", {
|
|
5082
4896
|
class: normalizeClass(["column", {
|
|
5083
4897
|
light: !__props.item.isDirectory,
|
|
5084
4898
|
"rename-active": unref(isRenameActive)
|
|
5085
4899
|
}]),
|
|
5086
|
-
"data-test-id": "item-name"
|
|
4900
|
+
"data-test-id": "item-name",
|
|
4901
|
+
title: __props.item.name
|
|
5087
4902
|
}, [
|
|
5088
|
-
!unref(isRenameActive) ? (openBlock(), createElementBlock("div",
|
|
4903
|
+
!unref(isRenameActive) ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(__props.item.name), 1)) : (openBlock(), createElementBlock("div", {
|
|
5089
4904
|
key: 1,
|
|
5090
4905
|
ref_key: "renameInputContainer",
|
|
5091
4906
|
ref: renameInputContainer,
|
|
@@ -5098,23 +4913,22 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5098
4913
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renameValue.value = $event),
|
|
5099
4914
|
class: "rename-input",
|
|
5100
4915
|
type: "text",
|
|
4916
|
+
title: "rename",
|
|
5101
4917
|
ariaLabel: "rename input",
|
|
5102
4918
|
error: !unref(isValid),
|
|
5103
4919
|
onKeydown: _cache[1] || (_cache[1] = withModifiers(($event) => onRenameSubmit($event), ["stop"]))
|
|
5104
4920
|
}, null, 8, ["modelValue", "error"]),
|
|
5105
|
-
!unref(isValid) ? (openBlock(), createElementBlock("div",
|
|
4921
|
+
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
5106
4922
|
createElementVNode("span", null, toDisplayString(unref(errorMessage)), 1)
|
|
5107
4923
|
])) : createCommentVNode("", true)
|
|
5108
4924
|
], 512))
|
|
5109
|
-
],
|
|
5110
|
-
[unref(vKdsTooltip), __props.item.name]
|
|
5111
|
-
]),
|
|
4925
|
+
], 10, _hoisted_3$n),
|
|
5112
4926
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dynamicColumnSlotNames.value, (name) => {
|
|
5113
4927
|
return openBlock(), createElementBlock("td", {
|
|
5114
4928
|
key: `dynamicColumn-${name}`,
|
|
5115
4929
|
class: normalizeClass(["column", "dynamic-column"])
|
|
5116
4930
|
}, [
|
|
5117
|
-
createElementVNode("div",
|
|
4931
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
5118
4932
|
renderSlot(_ctx.$slots, name, {
|
|
5119
4933
|
isRenameActive: unref(isRenameActive),
|
|
5120
4934
|
isSelected: __props.isSelected
|
|
@@ -5122,7 +4936,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5122
4936
|
])
|
|
5123
4937
|
]);
|
|
5124
4938
|
}), 128)),
|
|
5125
|
-
_ctx.$slots.optionsMenu ? (openBlock(), createElementBlock("td",
|
|
4939
|
+
_ctx.$slots.optionsMenu ? (openBlock(), createElementBlock("td", _hoisted_7$2, [
|
|
5126
4940
|
renderSlot(_ctx.$slots, "optionsMenu", {}, void 0, true)
|
|
5127
4941
|
])) : createCommentVNode("", true)
|
|
5128
4942
|
]),
|
|
@@ -5132,7 +4946,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5132
4946
|
}
|
|
5133
4947
|
});
|
|
5134
4948
|
|
|
5135
|
-
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
4949
|
+
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-91cbcaae"]]);
|
|
5136
4950
|
|
|
5137
4951
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
5138
4952
|
__name: "FileExplorerItemBack",
|
|
@@ -5141,10 +4955,11 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5141
4955
|
},
|
|
5142
4956
|
setup(__props) {
|
|
5143
4957
|
return (_ctx, _cache) => {
|
|
5144
|
-
return
|
|
4958
|
+
return openBlock(), createBlock(FileExplorerItemBase, {
|
|
5145
4959
|
"is-dragging": __props.isDragging,
|
|
5146
4960
|
"is-selected": false,
|
|
5147
|
-
class: "file-explorer-item-back"
|
|
4961
|
+
class: "file-explorer-item-back",
|
|
4962
|
+
title: "Go back"
|
|
5148
4963
|
}, {
|
|
5149
4964
|
default: withCtx(() => [
|
|
5150
4965
|
createElementVNode("td", null, [
|
|
@@ -5156,14 +4971,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5156
4971
|
_cache[0] || (_cache[0] = createElementVNode("td", { class: "item-name hidden" }, "Go back to parent directory", -1))
|
|
5157
4972
|
]),
|
|
5158
4973
|
_: 1
|
|
5159
|
-
}, 8, ["is-dragging"])
|
|
5160
|
-
[unref(vKdsTooltip), "Go back"]
|
|
5161
|
-
]);
|
|
4974
|
+
}, 8, ["is-dragging"]);
|
|
5162
4975
|
};
|
|
5163
4976
|
}
|
|
5164
4977
|
});
|
|
5165
4978
|
|
|
5166
|
-
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
4979
|
+
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-a5de970a"]]);
|
|
5167
4980
|
|
|
5168
4981
|
const getInitialState = () => ({
|
|
5169
4982
|
anchorHistory: [],
|
|
@@ -12060,7 +11873,7 @@ const popoverAnchor = {
|
|
|
12060
11873
|
};
|
|
12061
11874
|
|
|
12062
11875
|
const _hoisted_1$L = { class: "file-explorer" };
|
|
12063
|
-
const _hoisted_2$
|
|
11876
|
+
const _hoisted_2$s = {
|
|
12064
11877
|
key: 0,
|
|
12065
11878
|
class: "empty"
|
|
12066
11879
|
};
|
|
@@ -12490,7 +12303,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12490
12303
|
} : void 0
|
|
12491
12304
|
]), 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"]);
|
|
12492
12305
|
}), 128)),
|
|
12493
|
-
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$
|
|
12306
|
+
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$s, [
|
|
12494
12307
|
createElementVNode("td", null, [
|
|
12495
12308
|
createVNode(KdsEmptyState, mergeProps({
|
|
12496
12309
|
headline: __props.emptyState?.headline ?? "Folder is empty"
|
|
@@ -12559,10 +12372,10 @@ const kdsFileExplorerDraggingAnimationModes = Object.values(
|
|
|
12559
12372
|
);
|
|
12560
12373
|
|
|
12561
12374
|
const _hoisted_1$K = { class: "kds-preview-list" };
|
|
12562
|
-
const _hoisted_2$
|
|
12563
|
-
const _hoisted_3$
|
|
12564
|
-
const _hoisted_4$
|
|
12565
|
-
const _hoisted_5$
|
|
12375
|
+
const _hoisted_2$r = { class: "kds-preview-list-title-row" };
|
|
12376
|
+
const _hoisted_3$m = { class: "kds-preview-list-content" };
|
|
12377
|
+
const _hoisted_4$j = { class: "kds-preview-list-headline" };
|
|
12378
|
+
const _hoisted_5$a = ["aria-label"];
|
|
12566
12379
|
const _hoisted_6$7 = { class: "kds-preview-list-show-hide" };
|
|
12567
12380
|
const DEFAULT_MAX_VISIBLE_ITEMS = 6;
|
|
12568
12381
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
@@ -12600,7 +12413,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12600
12413
|
);
|
|
12601
12414
|
return (_ctx, _cache) => {
|
|
12602
12415
|
return openBlock(), createElementBlock("section", _hoisted_1$K, [
|
|
12603
|
-
createElementVNode("header", _hoisted_2$
|
|
12416
|
+
createElementVNode("header", _hoisted_2$r, [
|
|
12604
12417
|
__props.loading && !expanded.value ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
12605
12418
|
key: 0,
|
|
12606
12419
|
size: "small",
|
|
@@ -12610,8 +12423,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12610
12423
|
name: __props.leadingIcon,
|
|
12611
12424
|
size: "small"
|
|
12612
12425
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
12613
|
-
createElementVNode("div", _hoisted_3$
|
|
12614
|
-
createElementVNode("span", _hoisted_4$
|
|
12426
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
12427
|
+
createElementVNode("span", _hoisted_4$j, toDisplayString(props.headline), 1)
|
|
12615
12428
|
]),
|
|
12616
12429
|
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$1v, normalizeProps(mergeProps({ key: 2 }, trailingButtonProps.value)), null, 16)) : createCommentVNode("", true)
|
|
12617
12430
|
]),
|
|
@@ -12646,7 +12459,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12646
12459
|
}, ["stop"]))
|
|
12647
12460
|
}, null, 8, ["id", "text", "accessory"]);
|
|
12648
12461
|
}), 128))
|
|
12649
|
-
], 8, _hoisted_5$
|
|
12462
|
+
], 8, _hoisted_5$a)) : createCommentVNode("", true)
|
|
12650
12463
|
], 512), [
|
|
12651
12464
|
[vShow, expanded.value]
|
|
12652
12465
|
]),
|
|
@@ -12669,14 +12482,14 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12669
12482
|
|
|
12670
12483
|
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-a11103f6"]]);
|
|
12671
12484
|
|
|
12672
|
-
const _hoisted_1$J = ["disabled", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
12673
|
-
const _hoisted_2$
|
|
12674
|
-
const _hoisted_3$
|
|
12485
|
+
const _hoisted_1$J = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
12486
|
+
const _hoisted_2$q = { class: "control" };
|
|
12487
|
+
const _hoisted_3$l = {
|
|
12675
12488
|
key: 0,
|
|
12676
12489
|
class: "content"
|
|
12677
12490
|
};
|
|
12678
|
-
const _hoisted_4$
|
|
12679
|
-
const _hoisted_5$
|
|
12491
|
+
const _hoisted_4$i = { class: "label" };
|
|
12492
|
+
const _hoisted_5$9 = ["id"];
|
|
12680
12493
|
const _hoisted_6$6 = {
|
|
12681
12494
|
key: 0,
|
|
12682
12495
|
class: "subtext-wrapper"
|
|
@@ -12736,7 +12549,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12736
12549
|
};
|
|
12737
12550
|
return (_ctx, _cache) => {
|
|
12738
12551
|
return openBlock(), createElementBlock("div", null, [
|
|
12739
|
-
|
|
12552
|
+
createElementVNode("button", {
|
|
12740
12553
|
class: normalizeClass({
|
|
12741
12554
|
checkbox: true,
|
|
12742
12555
|
checked: isChecked.value,
|
|
@@ -12745,6 +12558,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12745
12558
|
error: __props.error
|
|
12746
12559
|
}),
|
|
12747
12560
|
disabled: __props.disabled,
|
|
12561
|
+
title: props.title,
|
|
12748
12562
|
"aria-label": props.title,
|
|
12749
12563
|
"aria-checked": ariaChecked.value,
|
|
12750
12564
|
"aria-describedby": ariaDescribedBy.value,
|
|
@@ -12753,7 +12567,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12753
12567
|
role: "checkbox",
|
|
12754
12568
|
onClick: handleClick
|
|
12755
12569
|
}, [
|
|
12756
|
-
createElementVNode("div", _hoisted_2$
|
|
12570
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
12757
12571
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
12758
12572
|
key: 0,
|
|
12759
12573
|
name: icon.value,
|
|
@@ -12761,17 +12575,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12761
12575
|
size: "xsmall"
|
|
12762
12576
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
12763
12577
|
]),
|
|
12764
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12765
|
-
createElementVNode("div", _hoisted_4$
|
|
12578
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
|
|
12579
|
+
createElementVNode("div", _hoisted_4$i, toDisplayString(props.label), 1),
|
|
12766
12580
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
12767
12581
|
key: 0,
|
|
12768
12582
|
id: unref(helperId),
|
|
12769
12583
|
class: "helper-text"
|
|
12770
|
-
}, toDisplayString(props.helperText), 9, _hoisted_5$
|
|
12584
|
+
}, toDisplayString(props.helperText), 9, _hoisted_5$9)) : createCommentVNode("", true)
|
|
12771
12585
|
])) : createCommentVNode("", true)
|
|
12772
|
-
], 10, _hoisted_1$J)
|
|
12773
|
-
[unref(vKdsTooltip), props.title]
|
|
12774
|
-
]),
|
|
12586
|
+
], 10, _hoisted_1$J),
|
|
12775
12587
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
12776
12588
|
createVNode(KdsSubText, {
|
|
12777
12589
|
id: unref(descriptionId),
|
|
@@ -12785,7 +12597,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12785
12597
|
}
|
|
12786
12598
|
});
|
|
12787
12599
|
|
|
12788
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
12600
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0bec87ad"]]);
|
|
12789
12601
|
|
|
12790
12602
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
12791
12603
|
__name: "KdsCheckbox",
|
|
@@ -12818,8 +12630,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
12818
12630
|
});
|
|
12819
12631
|
|
|
12820
12632
|
const _hoisted_1$I = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
12821
|
-
const _hoisted_2$
|
|
12822
|
-
const _hoisted_3$
|
|
12633
|
+
const _hoisted_2$p = ["id"];
|
|
12634
|
+
const _hoisted_3$k = ["title"];
|
|
12635
|
+
const _hoisted_4$h = { class: "kds-fieldset-content" };
|
|
12823
12636
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
12824
12637
|
__name: "BaseFieldsetWrapper",
|
|
12825
12638
|
props: {
|
|
@@ -12861,22 +12674,19 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12861
12674
|
id: legendId.value,
|
|
12862
12675
|
class: "kds-fieldset-legend"
|
|
12863
12676
|
}, [
|
|
12864
|
-
|
|
12677
|
+
createElementVNode("span", {
|
|
12865
12678
|
ref_key: "legendTextEl",
|
|
12866
12679
|
ref: legendTextEl,
|
|
12867
|
-
class: "legend-text"
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
])), [
|
|
12871
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
12872
|
-
]),
|
|
12680
|
+
class: "legend-text",
|
|
12681
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
12682
|
+
}, toDisplayString(props.label), 9, _hoisted_3$k),
|
|
12873
12683
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
12874
12684
|
key: 0,
|
|
12875
12685
|
content: props.description,
|
|
12876
12686
|
hidden: !isHovered.value
|
|
12877
12687
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
12878
|
-
], 8, _hoisted_2$
|
|
12879
|
-
createElementVNode("div",
|
|
12688
|
+
], 8, _hoisted_2$p)) : createCommentVNode("", true),
|
|
12689
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
12880
12690
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12881
12691
|
]),
|
|
12882
12692
|
createVNode(KdsSubText, {
|
|
@@ -12891,7 +12701,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12891
12701
|
}
|
|
12892
12702
|
});
|
|
12893
12703
|
|
|
12894
|
-
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
12704
|
+
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-a44731da"]]);
|
|
12895
12705
|
|
|
12896
12706
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
12897
12707
|
__name: "KdsCheckboxGroup",
|
|
@@ -13002,16 +12812,16 @@ const kdsToggleSwitchLabelPositions = Object.values(
|
|
|
13002
12812
|
);
|
|
13003
12813
|
|
|
13004
12814
|
const _hoisted_1$H = ["disabled", "aria-label", "aria-checked"];
|
|
13005
|
-
const _hoisted_2$
|
|
13006
|
-
const _hoisted_3$
|
|
12815
|
+
const _hoisted_2$o = { class: "control" };
|
|
12816
|
+
const _hoisted_3$j = {
|
|
13007
12817
|
class: "knob",
|
|
13008
12818
|
"aria-hidden": "true"
|
|
13009
12819
|
};
|
|
13010
|
-
const _hoisted_4$
|
|
12820
|
+
const _hoisted_4$g = {
|
|
13011
12821
|
key: 0,
|
|
13012
12822
|
class: "content"
|
|
13013
12823
|
};
|
|
13014
|
-
const _hoisted_5$
|
|
12824
|
+
const _hoisted_5$8 = { class: "label" };
|
|
13015
12825
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
13016
12826
|
__name: "KdsToggleSwitch",
|
|
13017
12827
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -13051,16 +12861,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
13051
12861
|
role: "switch",
|
|
13052
12862
|
onClick: handleClick
|
|
13053
12863
|
}, [
|
|
13054
|
-
createElementVNode("div", _hoisted_2$
|
|
13055
|
-
createElementVNode("div", _hoisted_3$
|
|
12864
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
12865
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
13056
12866
|
createVNode(KdsIcon, {
|
|
13057
12867
|
name: isChecked.value ? "checkmark" : "x-close",
|
|
13058
12868
|
size: __props.size === "small" ? "xsmall" : "small"
|
|
13059
12869
|
}, null, 8, ["name", "size"])
|
|
13060
12870
|
])
|
|
13061
12871
|
]),
|
|
13062
|
-
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13063
|
-
createElementVNode("span", _hoisted_5$
|
|
12872
|
+
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
|
|
12873
|
+
createElementVNode("span", _hoisted_5$8, toDisplayString(props.label), 1)
|
|
13064
12874
|
])) : createCommentVNode("", true)
|
|
13065
12875
|
], 10, _hoisted_1$H);
|
|
13066
12876
|
};
|
|
@@ -13070,16 +12880,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
13070
12880
|
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-417fc16d"]]);
|
|
13071
12881
|
|
|
13072
12882
|
const _hoisted_1$G = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
13073
|
-
const _hoisted_2$
|
|
13074
|
-
const _hoisted_3$
|
|
12883
|
+
const _hoisted_2$n = { class: "control" };
|
|
12884
|
+
const _hoisted_3$i = {
|
|
13075
12885
|
key: 0,
|
|
13076
12886
|
class: "dot",
|
|
13077
12887
|
viewBox: "0 0 2 2",
|
|
13078
12888
|
"aria-hidden": "true",
|
|
13079
12889
|
focusable: "false"
|
|
13080
12890
|
};
|
|
13081
|
-
const _hoisted_4$
|
|
13082
|
-
const _hoisted_5$
|
|
12891
|
+
const _hoisted_4$f = { class: "content" };
|
|
12892
|
+
const _hoisted_5$7 = { class: "label" };
|
|
13083
12893
|
const _hoisted_6$5 = ["id"];
|
|
13084
12894
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
13085
12895
|
__name: "KdsRadioButton",
|
|
@@ -13121,8 +12931,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
13121
12931
|
type: "button",
|
|
13122
12932
|
onClick: handleClick
|
|
13123
12933
|
}, [
|
|
13124
|
-
createElementVNode("div", _hoisted_2$
|
|
13125
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
12934
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
12935
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$i, [..._cache[0] || (_cache[0] = [
|
|
13126
12936
|
createElementVNode("circle", {
|
|
13127
12937
|
cx: "1",
|
|
13128
12938
|
cy: "1",
|
|
@@ -13130,8 +12940,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
13130
12940
|
}, null, -1)
|
|
13131
12941
|
])])) : createCommentVNode("", true)
|
|
13132
12942
|
]),
|
|
13133
|
-
createElementVNode("div", _hoisted_4$
|
|
13134
|
-
createElementVNode("div", _hoisted_5$
|
|
12943
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
12944
|
+
createElementVNode("div", _hoisted_5$7, toDisplayString(props.text), 1),
|
|
13135
12945
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
13136
12946
|
key: 0,
|
|
13137
12947
|
id: `${unref(id)}-helper`,
|
|
@@ -13342,7 +13152,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
13342
13152
|
|
|
13343
13153
|
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-d78ed4a2"]]);
|
|
13344
13154
|
|
|
13345
|
-
const _hoisted_1$F = ["aria-checked", "aria-label", "disabled", "tabindex"];
|
|
13155
|
+
const _hoisted_1$F = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
13346
13156
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
13347
13157
|
__name: "ValueSwitchItem",
|
|
13348
13158
|
props: {
|
|
@@ -13362,7 +13172,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13362
13172
|
const optionTextEl = useTemplateRef("optionTextEl");
|
|
13363
13173
|
const { isTruncated } = useKdsIsTruncated(optionTextEl);
|
|
13364
13174
|
return (_ctx, _cache) => {
|
|
13365
|
-
return
|
|
13175
|
+
return openBlock(), createElementBlock("button", {
|
|
13366
13176
|
role: "radio",
|
|
13367
13177
|
"aria-checked": props.selected,
|
|
13368
13178
|
"aria-label": props.text ? void 0 : props.title,
|
|
@@ -13374,7 +13184,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13374
13184
|
"size-small": __props.size === "small"
|
|
13375
13185
|
}),
|
|
13376
13186
|
disabled: __props.disabled,
|
|
13377
|
-
tabindex: __props.tabIndex
|
|
13187
|
+
tabindex: __props.tabIndex,
|
|
13188
|
+
title: props.title ?? (unref(isTruncated) && props.text ? props.text : void 0)
|
|
13378
13189
|
}, [
|
|
13379
13190
|
props.leadingIcon && (!props.hideIcons || !props.text) ? (openBlock(), createBlock(KdsIcon, {
|
|
13380
13191
|
key: 0,
|
|
@@ -13392,17 +13203,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13392
13203
|
name: props.trailingIcon,
|
|
13393
13204
|
size: __props.size
|
|
13394
13205
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
13395
|
-
], 10, _hoisted_1$F)
|
|
13396
|
-
[
|
|
13397
|
-
unref(vKdsTooltip),
|
|
13398
|
-
props.title ?? (unref(isTruncated) && props.text ? props.text : void 0)
|
|
13399
|
-
]
|
|
13400
|
-
]);
|
|
13206
|
+
], 10, _hoisted_1$F);
|
|
13401
13207
|
};
|
|
13402
13208
|
}
|
|
13403
13209
|
});
|
|
13404
13210
|
|
|
13405
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
13211
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-5c6f0f1f"]]);
|
|
13406
13212
|
|
|
13407
13213
|
const useValueSwitchIconHiding = ({
|
|
13408
13214
|
width,
|
|
@@ -14191,8 +13997,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14191
13997
|
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
14192
13998
|
|
|
14193
13999
|
const _hoisted_1$D = { class: "kds-color-picker" };
|
|
14194
|
-
const _hoisted_2$
|
|
14195
|
-
const _hoisted_3$
|
|
14000
|
+
const _hoisted_2$m = ["aria-valuetext"];
|
|
14001
|
+
const _hoisted_3$h = { class: "value-inputs" };
|
|
14196
14002
|
const DEFAULT_HUE_DEG = 270;
|
|
14197
14003
|
const DEFAULT_SATURATION = 0.8;
|
|
14198
14004
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -14382,7 +14188,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14382
14188
|
class: "handle",
|
|
14383
14189
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
14384
14190
|
}, null, 4)
|
|
14385
|
-
], 44, _hoisted_2$
|
|
14191
|
+
], 44, _hoisted_2$m),
|
|
14386
14192
|
createVNode(ColorPickerSlider, {
|
|
14387
14193
|
modelValue: hue.value,
|
|
14388
14194
|
"onUpdate:modelValue": [
|
|
@@ -14417,7 +14223,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14417
14223
|
step: KEYBOARD_STEP,
|
|
14418
14224
|
"large-step": KEYBOARD_LARGE_STEP
|
|
14419
14225
|
}, null, 8, ["modelValue", "value-now", "value-text"]),
|
|
14420
|
-
createElementVNode("div", _hoisted_3$
|
|
14226
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
14421
14227
|
createVNode(KdsTextInput, {
|
|
14422
14228
|
"model-value": hexInputValue.value,
|
|
14423
14229
|
ariaLabel: "Color hex value",
|
|
@@ -18734,9 +18540,9 @@ const _hoisted_1$C = {
|
|
|
18734
18540
|
role: "row",
|
|
18735
18541
|
class: "kds-date-picker-header-row"
|
|
18736
18542
|
};
|
|
18737
|
-
const _hoisted_2$
|
|
18738
|
-
const _hoisted_3$
|
|
18739
|
-
const _hoisted_4$
|
|
18543
|
+
const _hoisted_2$l = ["aria-label"];
|
|
18544
|
+
const _hoisted_3$g = { class: "kds-date-picker-day-grid" };
|
|
18545
|
+
const _hoisted_4$e = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onFocus"];
|
|
18740
18546
|
const REFERENCE_YEAR$2 = 2024;
|
|
18741
18547
|
const DAYS_PER_WEEK = 7;
|
|
18742
18548
|
const TOTAL_CELLS = 42;
|
|
@@ -19042,10 +18848,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
19042
18848
|
role: "columnheader",
|
|
19043
18849
|
"aria-label": unref(DAY_FULL_LABELS)[i],
|
|
19044
18850
|
class: "kds-date-picker-weekday"
|
|
19045
|
-
}, toDisplayString(day), 9, _hoisted_2$
|
|
18851
|
+
}, toDisplayString(day), 9, _hoisted_2$l);
|
|
19046
18852
|
}), 128))
|
|
19047
18853
|
]),
|
|
19048
|
-
createElementVNode("div", _hoisted_3$
|
|
18854
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
19049
18855
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, wi) => {
|
|
19050
18856
|
return openBlock(), createElementBlock("div", {
|
|
19051
18857
|
key: wi,
|
|
@@ -19074,7 +18880,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
19074
18880
|
onClick: ($event) => selectDate(day),
|
|
19075
18881
|
onKeydown: onDayKeydown,
|
|
19076
18882
|
onFocus: ($event) => onDayFocus(day)
|
|
19077
|
-
}, toDisplayString(day.day), 43, _hoisted_4$
|
|
18883
|
+
}, toDisplayString(day.day), 43, _hoisted_4$e);
|
|
19078
18884
|
}), 128))
|
|
19079
18885
|
]);
|
|
19080
18886
|
}), 128))
|
|
@@ -19464,14 +19270,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
19464
19270
|
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-270d55b9"]]);
|
|
19465
19271
|
|
|
19466
19272
|
const _hoisted_1$z = { class: "kds-date-picker" };
|
|
19467
|
-
const _hoisted_2$
|
|
19468
|
-
const _hoisted_3$
|
|
19469
|
-
const _hoisted_4$
|
|
19273
|
+
const _hoisted_2$k = { class: "kds-date-picker-header" };
|
|
19274
|
+
const _hoisted_3$f = { class: "kds-date-picker-nav-block" };
|
|
19275
|
+
const _hoisted_4$d = {
|
|
19470
19276
|
key: 1,
|
|
19471
19277
|
class: "kds-date-picker-header-static-label",
|
|
19472
19278
|
"aria-live": "polite"
|
|
19473
19279
|
};
|
|
19474
|
-
const _hoisted_5$
|
|
19280
|
+
const _hoisted_5$6 = { class: "kds-date-picker-nav-block" };
|
|
19475
19281
|
const _hoisted_6$4 = { class: "kds-date-picker-body" };
|
|
19476
19282
|
const MONTHS_PER_YEAR = 12;
|
|
19477
19283
|
const YEAR_PAGE_SIZE = 15;
|
|
@@ -19673,8 +19479,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19673
19479
|
__expose({ focus });
|
|
19674
19480
|
return (_ctx, _cache) => {
|
|
19675
19481
|
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
19676
|
-
createElementVNode("div", _hoisted_2$
|
|
19677
|
-
createElementVNode("div", _hoisted_3$
|
|
19482
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
19483
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
19678
19484
|
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1v, {
|
|
19679
19485
|
key: 0,
|
|
19680
19486
|
variant: "transparent",
|
|
@@ -19700,8 +19506,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19700
19506
|
size: "small",
|
|
19701
19507
|
label: headerLabel.value,
|
|
19702
19508
|
onClick: onHeaderLabelClick
|
|
19703
|
-
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19704
|
-
createElementVNode("div", _hoisted_5$
|
|
19509
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$d, toDisplayString(headerLabel.value), 1)),
|
|
19510
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
19705
19511
|
createVNode(_sfc_main$1v, {
|
|
19706
19512
|
variant: "transparent",
|
|
19707
19513
|
size: "small",
|
|
@@ -20488,7 +20294,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20488
20294
|
disabled: { type: Boolean, default: false },
|
|
20489
20295
|
autocomplete: {},
|
|
20490
20296
|
results: {},
|
|
20491
|
-
resultsMaxHeight: {}
|
|
20297
|
+
resultsMaxHeight: {},
|
|
20298
|
+
leadingIcon: { default: "search" }
|
|
20492
20299
|
}, {
|
|
20493
20300
|
"modelValue": { default: "" },
|
|
20494
20301
|
"modelModifiers": {}
|
|
@@ -20501,7 +20308,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20501
20308
|
const KdsListContainer = defineAsyncComponent(
|
|
20502
20309
|
() => Promise.resolve().then(() => KdsListContainer$1)
|
|
20503
20310
|
);
|
|
20504
|
-
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "error", "validating", "preserveSubTextSpace"]);
|
|
20311
|
+
const props = createPropsRestProxy(__props, ["placeholder", "disabled", "leadingIcon", "error", "validating", "preserveSubTextSpace"]);
|
|
20505
20312
|
const modelValue = useModel(__props, "modelValue");
|
|
20506
20313
|
const emit = __emit;
|
|
20507
20314
|
const baseInput = useTemplateRef("baseInput");
|
|
@@ -20573,7 +20380,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20573
20380
|
disabled: __props.disabled,
|
|
20574
20381
|
error: __props.error,
|
|
20575
20382
|
autocomplete: __props.autocomplete,
|
|
20576
|
-
"leading-icon":
|
|
20383
|
+
"leading-icon": __props.leadingIcon,
|
|
20577
20384
|
clearable: true,
|
|
20578
20385
|
style: popoverEl.value?.anchorStyle,
|
|
20579
20386
|
role: __props.results ? "combobox" : void 0,
|
|
@@ -20585,7 +20392,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20585
20392
|
onFocus,
|
|
20586
20393
|
onBlur,
|
|
20587
20394
|
onClick
|
|
20588
|
-
}), null, 16, ["modelValue", "placeholder", "disabled", "error", "autocomplete", "style", "role", "aria-activedescendant", "aria-haspopup", "aria-controls", "aria-expanded"]),
|
|
20395
|
+
}), null, 16, ["modelValue", "placeholder", "disabled", "error", "autocomplete", "leading-icon", "style", "role", "aria-activedescendant", "aria-haspopup", "aria-controls", "aria-expanded"]),
|
|
20589
20396
|
__props.results ? (openBlock(), createBlock(unref(KdsPopover), {
|
|
20590
20397
|
key: 0,
|
|
20591
20398
|
ref: "popover",
|
|
@@ -20625,7 +20432,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
20625
20432
|
}
|
|
20626
20433
|
});
|
|
20627
20434
|
|
|
20628
|
-
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
20435
|
+
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f7236e9c"]]);
|
|
20629
20436
|
|
|
20630
20437
|
const _hoisted_1$x = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
20631
20438
|
const DEFAULT_ROWS = 3;
|
|
@@ -20708,13 +20515,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20708
20515
|
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-36211819"]]);
|
|
20709
20516
|
|
|
20710
20517
|
const _hoisted_1$w = { class: "kds-time-picker" };
|
|
20711
|
-
const _hoisted_2$
|
|
20712
|
-
const _hoisted_3$
|
|
20713
|
-
const _hoisted_4$
|
|
20518
|
+
const _hoisted_2$j = { class: "kds-time-picker-fields" };
|
|
20519
|
+
const _hoisted_3$e = { class: "kds-time-picker-fields" };
|
|
20520
|
+
const _hoisted_4$c = {
|
|
20714
20521
|
key: 0,
|
|
20715
20522
|
class: "kds-time-picker-fields"
|
|
20716
20523
|
};
|
|
20717
|
-
const _hoisted_5$
|
|
20524
|
+
const _hoisted_5$5 = {
|
|
20718
20525
|
key: 1,
|
|
20719
20526
|
class: "kds-time-picker-actions"
|
|
20720
20527
|
};
|
|
@@ -20813,7 +20620,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20813
20620
|
__expose({ focus });
|
|
20814
20621
|
return (_ctx, _cache) => {
|
|
20815
20622
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
20816
|
-
createElementVNode("div", _hoisted_2$
|
|
20623
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
20817
20624
|
createVNode(_sfc_main$X, {
|
|
20818
20625
|
ref: "hourInput",
|
|
20819
20626
|
modelValue: hour.value,
|
|
@@ -20839,7 +20646,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20839
20646
|
class: "kds-time-picker-divider"
|
|
20840
20647
|
})) : createCommentVNode("", true),
|
|
20841
20648
|
showSecondInput.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20842
|
-
createElementVNode("div", _hoisted_3$
|
|
20649
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
20843
20650
|
createVNode(_sfc_main$X, {
|
|
20844
20651
|
ref: "secondInput",
|
|
20845
20652
|
modelValue: second.value,
|
|
@@ -20859,7 +20666,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20859
20666
|
onClick: removeSeconds
|
|
20860
20667
|
})
|
|
20861
20668
|
]),
|
|
20862
|
-
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20669
|
+
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
20863
20670
|
createVNode(_sfc_main$X, {
|
|
20864
20671
|
ref: "millisecondInput",
|
|
20865
20672
|
modelValue: millisecond.value,
|
|
@@ -20881,7 +20688,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20881
20688
|
title: "Remove milliseconds",
|
|
20882
20689
|
onClick: removeMilliseconds
|
|
20883
20690
|
})
|
|
20884
|
-
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20691
|
+
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
20885
20692
|
createVNode(_sfc_main$1v, {
|
|
20886
20693
|
variant: "outlined",
|
|
20887
20694
|
size: "small",
|
|
@@ -21492,9 +21299,9 @@ const stripInactiveFields = (duration, usedFormat) => {
|
|
|
21492
21299
|
const toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
21493
21300
|
|
|
21494
21301
|
const _hoisted_1$v = { class: "kds-interval-popover" };
|
|
21495
|
-
const _hoisted_2$
|
|
21496
|
-
const _hoisted_3$
|
|
21497
|
-
const _hoisted_4$
|
|
21302
|
+
const _hoisted_2$i = { class: "kds-interval-popover-header" };
|
|
21303
|
+
const _hoisted_3$d = { class: "kds-interval-popover-content" };
|
|
21304
|
+
const _hoisted_4$b = { class: "kds-interval-popover-grid" };
|
|
21498
21305
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21499
21306
|
__name: "IntervalInputPopover",
|
|
21500
21307
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -21590,7 +21397,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21590
21397
|
});
|
|
21591
21398
|
return (_ctx, _cache) => {
|
|
21592
21399
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
21593
|
-
createElementVNode("div", _hoisted_2$
|
|
21400
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
21594
21401
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)),
|
|
21595
21402
|
props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21596
21403
|
key: 0,
|
|
@@ -21602,7 +21409,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21602
21409
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
21603
21410
|
]),
|
|
21604
21411
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "kds-interval-popover-divider" }, null, -1)),
|
|
21605
|
-
createElementVNode("div", _hoisted_3$
|
|
21412
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
21606
21413
|
props.allowDescending ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21607
21414
|
key: 0,
|
|
21608
21415
|
modelValue: direction.value,
|
|
@@ -21612,7 +21419,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21612
21419
|
variant: "muted",
|
|
21613
21420
|
"possible-values": directionOptions
|
|
21614
21421
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
21615
|
-
createElementVNode("div", _hoisted_4$
|
|
21422
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
21616
21423
|
mode.value === unref(kdsIntervalInputFormat).DATE ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(periodNumericKeys), (key) => {
|
|
21617
21424
|
return openBlock(), createBlock(unref(_sfc_main$X), {
|
|
21618
21425
|
key,
|
|
@@ -21962,13 +21769,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21962
21769
|
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-f2ad3cef"]]);
|
|
21963
21770
|
|
|
21964
21771
|
const _hoisted_1$t = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
21965
|
-
const _hoisted_2$
|
|
21772
|
+
const _hoisted_2$h = {
|
|
21966
21773
|
key: 0,
|
|
21967
21774
|
class: "leading",
|
|
21968
21775
|
"aria-hidden": "true"
|
|
21969
21776
|
};
|
|
21970
|
-
const _hoisted_3$
|
|
21971
|
-
const _hoisted_4$
|
|
21777
|
+
const _hoisted_3$c = ["id"];
|
|
21778
|
+
const _hoisted_4$a = {
|
|
21972
21779
|
class: "trailing",
|
|
21973
21780
|
"aria-hidden": "true"
|
|
21974
21781
|
};
|
|
@@ -22053,7 +21860,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22053
21860
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
22054
21861
|
onKeydown
|
|
22055
21862
|
}, [
|
|
22056
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
21863
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$h, [
|
|
22057
21864
|
createVNode(_sfc_main$1q, {
|
|
22058
21865
|
accessory: props.accessory,
|
|
22059
21866
|
size: "medium"
|
|
@@ -22065,8 +21872,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22065
21872
|
placeholder: !props.text && !__props.disabled,
|
|
22066
21873
|
missing: __props.missing
|
|
22067
21874
|
}])
|
|
22068
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
22069
|
-
createElementVNode("span", _hoisted_4$
|
|
21875
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$c),
|
|
21876
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
22070
21877
|
createVNode(KdsIcon, {
|
|
22071
21878
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
22072
21879
|
size: "small"
|
|
@@ -22082,7 +21889,7 @@ const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "da
|
|
|
22082
21889
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
22083
21890
|
|
|
22084
21891
|
const _hoisted_1$s = { class: "kds-dropdown-container" };
|
|
22085
|
-
const _hoisted_2$
|
|
21892
|
+
const _hoisted_2$g = {
|
|
22086
21893
|
key: 0,
|
|
22087
21894
|
class: "kds-dropdown-container-sticky-top"
|
|
22088
21895
|
};
|
|
@@ -22171,7 +21978,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22171
21978
|
});
|
|
22172
21979
|
return (_ctx, _cache) => {
|
|
22173
21980
|
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
22174
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
21981
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
22175
21982
|
createVNode(BaseInput, {
|
|
22176
21983
|
ref_key: "searchEl",
|
|
22177
21984
|
ref: searchEl,
|
|
@@ -22321,7 +22128,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
22321
22128
|
});
|
|
22322
22129
|
|
|
22323
22130
|
const _hoisted_1$r = { class: "kds-zoned-date-time-input" };
|
|
22324
|
-
const _hoisted_2$
|
|
22131
|
+
const _hoisted_2$f = { class: "date-time-row" };
|
|
22325
22132
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
22326
22133
|
__name: "KdsZonedDateTimeInput",
|
|
22327
22134
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -22432,7 +22239,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22432
22239
|
}, {
|
|
22433
22240
|
default: withCtx(() => [
|
|
22434
22241
|
createElementVNode("div", _hoisted_1$r, [
|
|
22435
|
-
createElementVNode("div", _hoisted_2$
|
|
22242
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
22436
22243
|
createVNode(_sfc_main$N, {
|
|
22437
22244
|
ref_key: "dateInput",
|
|
22438
22245
|
ref: dateInput,
|
|
@@ -22474,6 +22281,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22474
22281
|
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7dcebccd"]]);
|
|
22475
22282
|
|
|
22476
22283
|
const _hoisted_1$q = ["disabled"];
|
|
22284
|
+
const _hoisted_2$e = ["title"];
|
|
22477
22285
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
22478
22286
|
__name: "KdsListItemButton",
|
|
22479
22287
|
props: {
|
|
@@ -22499,28 +22307,25 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22499
22307
|
size: "small",
|
|
22500
22308
|
disabled: __props.disabled
|
|
22501
22309
|
}, null, 8, ["name", "disabled"]),
|
|
22502
|
-
|
|
22310
|
+
createElementVNode("span", {
|
|
22503
22311
|
ref_key: "labelEl",
|
|
22504
22312
|
ref: labelEl,
|
|
22505
|
-
class: "label"
|
|
22506
|
-
|
|
22507
|
-
|
|
22508
|
-
])), [
|
|
22509
|
-
[unref(vKdsTooltip), unref(isLabelTruncated) ? props.label : void 0]
|
|
22510
|
-
])
|
|
22313
|
+
class: "label",
|
|
22314
|
+
title: unref(isLabelTruncated) ? props.label : void 0
|
|
22315
|
+
}, toDisplayString(props.label), 9, _hoisted_2$e)
|
|
22511
22316
|
], 8, _hoisted_1$q);
|
|
22512
22317
|
};
|
|
22513
22318
|
}
|
|
22514
22319
|
});
|
|
22515
22320
|
|
|
22516
|
-
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
22321
|
+
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-21fb5571"]]);
|
|
22517
22322
|
|
|
22518
22323
|
const _hoisted_1$p = { class: "kds-multi-select-dropdown-options" };
|
|
22519
22324
|
const _hoisted_2$d = {
|
|
22520
22325
|
key: 0,
|
|
22521
22326
|
class: "kds-multi-select-dropdown-search"
|
|
22522
22327
|
};
|
|
22523
|
-
const _hoisted_3$
|
|
22328
|
+
const _hoisted_3$b = {
|
|
22524
22329
|
key: 1,
|
|
22525
22330
|
class: "kds-multi-select-dropdown-footer"
|
|
22526
22331
|
};
|
|
@@ -22677,7 +22482,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22677
22482
|
"aria-label": "Dropdown options",
|
|
22678
22483
|
onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
|
|
22679
22484
|
}, null, 8, ["class", "possible-values", "loading", "empty-text", "controlled-externally"]),
|
|
22680
|
-
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22485
|
+
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
22681
22486
|
createVNode(unref(KdsListItemButton), {
|
|
22682
22487
|
label: anyVisibleSelected.value ? "Clear all" : "Select all",
|
|
22683
22488
|
"leading-icon": anyVisibleSelected.value ? "trash" : "checkmark",
|
|
@@ -23258,11 +23063,11 @@ const useMultiSelectListBoxSelection = ({
|
|
|
23258
23063
|
|
|
23259
23064
|
const _hoisted_1$m = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
23260
23065
|
const _hoisted_2$b = { class: "kds-multiselect-list-box-content-grid" };
|
|
23261
|
-
const _hoisted_3$
|
|
23066
|
+
const _hoisted_3$a = {
|
|
23262
23067
|
key: 0,
|
|
23263
23068
|
class: "kds-multiselect-sticky-bottom"
|
|
23264
23069
|
};
|
|
23265
|
-
const _hoisted_4$
|
|
23070
|
+
const _hoisted_4$9 = {
|
|
23266
23071
|
key: 0,
|
|
23267
23072
|
class: "kds-multiselect-empty"
|
|
23268
23073
|
};
|
|
@@ -23546,7 +23351,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23546
23351
|
}, null, 8, ["id", "class", "text", "accessory", "missing", "special", "data-option-index", "selected", "disabled", "active", "trailing-icon", "onDblclick", "onClick"]);
|
|
23547
23352
|
}), 128))
|
|
23548
23353
|
], 16),
|
|
23549
|
-
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23354
|
+
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
23550
23355
|
createVNode(unref(KdsListItem), {
|
|
23551
23356
|
id: generateOptionId(visibleBottomValue.value.id),
|
|
23552
23357
|
text: visibleBottomValue.value.text,
|
|
@@ -23567,7 +23372,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23567
23372
|
])) : createCommentVNode("", true)
|
|
23568
23373
|
])
|
|
23569
23374
|
], 16, _hoisted_1$m),
|
|
23570
|
-
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23375
|
+
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
23571
23376
|
createVNode(KdsEmptyState, {
|
|
23572
23377
|
headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
|
|
23573
23378
|
"loading-spinner": __props.loading,
|
|
@@ -23589,12 +23394,12 @@ const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scop
|
|
|
23589
23394
|
|
|
23590
23395
|
const _hoisted_1$l = { class: "kds-list-column" };
|
|
23591
23396
|
const _hoisted_2$a = { class: "kds-list-header" };
|
|
23592
|
-
const _hoisted_3$
|
|
23593
|
-
const _hoisted_4$
|
|
23397
|
+
const _hoisted_3$9 = { class: "kds-list-label" };
|
|
23398
|
+
const _hoisted_4$8 = {
|
|
23594
23399
|
key: 0,
|
|
23595
23400
|
class: "kds-list-count"
|
|
23596
23401
|
};
|
|
23597
|
-
const _hoisted_5$
|
|
23402
|
+
const _hoisted_5$4 = { class: "kds-button-column" };
|
|
23598
23403
|
const _hoisted_6$2 = { class: "kds-list-column" };
|
|
23599
23404
|
const _hoisted_7$1 = { class: "kds-list-header" };
|
|
23600
23405
|
const _hoisted_8$1 = { class: "kds-list-label" };
|
|
@@ -23779,8 +23584,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23779
23584
|
}, [
|
|
23780
23585
|
createElementVNode("div", _hoisted_1$l, [
|
|
23781
23586
|
createElementVNode("div", _hoisted_2$a, [
|
|
23782
|
-
createElementVNode("span", _hoisted_3$
|
|
23783
|
-
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23587
|
+
createElementVNode("span", _hoisted_3$9, toDisplayString(__props.excludeLabel), 1),
|
|
23588
|
+
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$8, toDisplayString(leftOptions.value.length) + " of " + toDisplayString(excludedItems.value.length), 1)) : createCommentVNode("", true)
|
|
23784
23589
|
]),
|
|
23785
23590
|
createVNode(unref(KdsMultiSelectListBox), {
|
|
23786
23591
|
modelValue: leftSelected.value,
|
|
@@ -23799,7 +23604,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23799
23604
|
onKeyEnter: moveRight
|
|
23800
23605
|
}, null, 8, ["modelValue", "possible-values", "ariaLabel", "disabled", "error", "loading", "empty-state-label", "bottom-value"])
|
|
23801
23606
|
]),
|
|
23802
|
-
createElementVNode("div", _hoisted_5$
|
|
23607
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
23803
23608
|
createVNode(unref(_sfc_main$1v), {
|
|
23804
23609
|
"leading-icon": "chevron-right",
|
|
23805
23610
|
ariaLabel: "Move selected values right",
|
|
@@ -24221,8 +24026,8 @@ const useSortableListBoxReorder = ({
|
|
|
24221
24026
|
|
|
24222
24027
|
const _hoisted_1$j = { class: "kds-sortable-list-box-wrapper" };
|
|
24223
24028
|
const _hoisted_2$9 = { class: "kds-sortable-top-buttons" };
|
|
24224
|
-
const _hoisted_3$
|
|
24225
|
-
const _hoisted_4$
|
|
24029
|
+
const _hoisted_3$8 = { class: "kds-sortable-top-buttons-left" };
|
|
24030
|
+
const _hoisted_4$7 = { class: "kds-sortable-footer-buttons" };
|
|
24226
24031
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24227
24032
|
__name: "KdsSortableListBox",
|
|
24228
24033
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -24282,7 +24087,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24282
24087
|
default: withCtx(() => [
|
|
24283
24088
|
createElementVNode("div", _hoisted_1$j, [
|
|
24284
24089
|
createElementVNode("div", _hoisted_2$9, [
|
|
24285
|
-
createElementVNode("div", _hoisted_3$
|
|
24090
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
24286
24091
|
createVNode(_sfc_main$1v, {
|
|
24287
24092
|
size: "small",
|
|
24288
24093
|
variant: "transparent",
|
|
@@ -24321,7 +24126,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24321
24126
|
ariaLabel: formFieldProps.label ?? formFieldProps.ariaLabel ?? ""
|
|
24322
24127
|
/* fallback only for TS */
|
|
24323
24128
|
}, null, 8, ["modelValue", "possible-values", "disabled", "error", "ariaLabel"]),
|
|
24324
|
-
createElementVNode("div", _hoisted_4$
|
|
24129
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
24325
24130
|
createVNode(_sfc_main$1v, {
|
|
24326
24131
|
size: "small",
|
|
24327
24132
|
variant: "transparent",
|
|
@@ -24409,12 +24214,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24409
24214
|
const isFocused = ref(false);
|
|
24410
24215
|
return (_ctx, _cache) => {
|
|
24411
24216
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24412
|
-
|
|
24217
|
+
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
24413
24218
|
class: {
|
|
24414
24219
|
"info-toggle-button": true,
|
|
24415
24220
|
selected: modelValue.value,
|
|
24416
24221
|
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
24417
24222
|
},
|
|
24223
|
+
title: TITLE,
|
|
24418
24224
|
"aria-label": TITLE,
|
|
24419
24225
|
"aria-pressed": modelValue.value,
|
|
24420
24226
|
"aria-expanded": modelValue.value,
|
|
@@ -24432,9 +24238,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24432
24238
|
name: "circle-question",
|
|
24433
24239
|
size: "small"
|
|
24434
24240
|
})
|
|
24435
|
-
], 16, _hoisted_1$h)
|
|
24436
|
-
[unref(vKdsTooltip), TITLE]
|
|
24437
|
-
]),
|
|
24241
|
+
], 16, _hoisted_1$h),
|
|
24438
24242
|
createVNode(KdsPopover, {
|
|
24439
24243
|
ref_key: "popoverEl",
|
|
24440
24244
|
ref: popoverEl,
|
|
@@ -24462,7 +24266,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24462
24266
|
}
|
|
24463
24267
|
});
|
|
24464
24268
|
|
|
24465
|
-
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
24269
|
+
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-67a8974e"]]);
|
|
24466
24270
|
|
|
24467
24271
|
const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
24468
24272
|
__proto__: null,
|
|
@@ -24492,7 +24296,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24492
24296
|
|
|
24493
24297
|
const VariablePopover = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8a0c56d0"]]);
|
|
24494
24298
|
|
|
24495
|
-
const _hoisted_1$f = ["aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
24299
|
+
const _hoisted_1$f = ["title", "aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
24496
24300
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24497
24301
|
__name: "KdsVariableToggleButton",
|
|
24498
24302
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -24557,13 +24361,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24557
24361
|
});
|
|
24558
24362
|
return (_ctx, _cache) => {
|
|
24559
24363
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24560
|
-
|
|
24364
|
+
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
24561
24365
|
class: {
|
|
24562
24366
|
"variable-toggle-button": true,
|
|
24563
24367
|
error: __props.error,
|
|
24564
24368
|
"pressed-or-set": modelValue.value || __props.inSet || __props.outSet,
|
|
24565
24369
|
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
24566
24370
|
},
|
|
24371
|
+
title: title.value,
|
|
24567
24372
|
"aria-label": title.value,
|
|
24568
24373
|
"aria-pressed": modelValue.value,
|
|
24569
24374
|
"aria-expanded": modelValue.value,
|
|
@@ -24581,9 +24386,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24581
24386
|
name: iconName.value,
|
|
24582
24387
|
size: "small"
|
|
24583
24388
|
}, null, 8, ["name"])
|
|
24584
|
-
], 16, _hoisted_1$f)
|
|
24585
|
-
[unref(vKdsTooltip), title.value]
|
|
24586
|
-
]),
|
|
24389
|
+
], 16, _hoisted_1$f),
|
|
24587
24390
|
createVNode(KdsPopover, {
|
|
24588
24391
|
ref_key: "popoverEl",
|
|
24589
24392
|
ref: popoverEl,
|
|
@@ -24611,13 +24414,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24611
24414
|
}
|
|
24612
24415
|
});
|
|
24613
24416
|
|
|
24614
|
-
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
24417
|
+
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b6d29842"]]);
|
|
24615
24418
|
|
|
24616
24419
|
const _hoisted_1$e = { class: "kds-accordion" };
|
|
24617
24420
|
const _hoisted_2$8 = ["name", "open", "onToggle"];
|
|
24618
|
-
const _hoisted_3$
|
|
24619
|
-
const _hoisted_4$
|
|
24620
|
-
const _hoisted_5$
|
|
24421
|
+
const _hoisted_3$7 = ["aria-disabled", "tabindex", "onClick", "onKeydown"];
|
|
24422
|
+
const _hoisted_4$6 = { class: "kds-accordion-headline-container" };
|
|
24423
|
+
const _hoisted_5$3 = { class: "kds-accordion-headline" };
|
|
24621
24424
|
const _hoisted_6$1 = { class: "kds-accordion-content" };
|
|
24622
24425
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24623
24426
|
__name: "KdsAccordion",
|
|
@@ -24762,20 +24565,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24762
24565
|
onClick: ($event) => onSummaryClick($event, item),
|
|
24763
24566
|
onKeydown: ($event) => handleTriggerKeydown($event, item)
|
|
24764
24567
|
}, [
|
|
24765
|
-
createElementVNode("span", _hoisted_4$
|
|
24568
|
+
createElementVNode("span", _hoisted_4$6, [
|
|
24766
24569
|
item.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
24767
24570
|
key: 0,
|
|
24768
24571
|
name: item.leadingIcon,
|
|
24769
24572
|
size: "small",
|
|
24770
24573
|
disabled: item.disabled
|
|
24771
24574
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
24772
|
-
createElementVNode("span", _hoisted_5$
|
|
24575
|
+
createElementVNode("span", _hoisted_5$3, toDisplayString(item.headline), 1)
|
|
24773
24576
|
]),
|
|
24774
24577
|
createVNode(KdsIcon, {
|
|
24775
24578
|
name: isItemExpanded(item.id) ? "chevron-up" : "chevron-down",
|
|
24776
24579
|
size: "small"
|
|
24777
24580
|
}, null, 8, ["name"])
|
|
24778
|
-
], 40, _hoisted_3$
|
|
24581
|
+
], 40, _hoisted_3$7),
|
|
24779
24582
|
createElementVNode("div", _hoisted_6$1, [
|
|
24780
24583
|
renderSlot(_ctx.$slots, item.id, { item }, void 0, true)
|
|
24781
24584
|
])
|
|
@@ -24793,8 +24596,8 @@ const _hoisted_2$7 = {
|
|
|
24793
24596
|
key: 0,
|
|
24794
24597
|
class: "accessory"
|
|
24795
24598
|
};
|
|
24796
|
-
const _hoisted_3$
|
|
24797
|
-
const _hoisted_4$
|
|
24599
|
+
const _hoisted_3$6 = { key: 1 };
|
|
24600
|
+
const _hoisted_4$5 = {
|
|
24798
24601
|
key: 2,
|
|
24799
24602
|
class: "actions",
|
|
24800
24603
|
"data-kds-card-secondary-action": ""
|
|
@@ -24810,8 +24613,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24810
24613
|
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
24811
24614
|
renderSlot(_ctx.$slots, "accessory", {}, void 0, true)
|
|
24812
24615
|
])) : createCommentVNode("", true),
|
|
24813
|
-
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$
|
|
24814
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24616
|
+
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$6, toDisplayString(__props.headline), 1)) : createCommentVNode("", true),
|
|
24617
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
24815
24618
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
24816
24619
|
])) : createCommentVNode("", true)
|
|
24817
24620
|
]);
|
|
@@ -25104,7 +24907,8 @@ const kdsCardVariants = Object.values(kdsCardVariant);
|
|
|
25104
24907
|
const kdsPanelBodyOverflow = {
|
|
25105
24908
|
AUTO: "auto",
|
|
25106
24909
|
HIDDEN: "hidden",
|
|
25107
|
-
VISIBLE: "visible"
|
|
24910
|
+
VISIBLE: "visible",
|
|
24911
|
+
CLIP: "clip"
|
|
25108
24912
|
};
|
|
25109
24913
|
const kdsPanelBodyOverflows = Object.values(kdsPanelBodyOverflow);
|
|
25110
24914
|
const kdsPanelBodyVariant = {
|
|
@@ -25118,12 +24922,12 @@ const _hoisted_2$6 = {
|
|
|
25118
24922
|
key: 0,
|
|
25119
24923
|
class: "kds-panel-header"
|
|
25120
24924
|
};
|
|
25121
|
-
const _hoisted_3$
|
|
25122
|
-
const _hoisted_4$
|
|
24925
|
+
const _hoisted_3$5 = ["id"];
|
|
24926
|
+
const _hoisted_4$4 = {
|
|
25123
24927
|
key: 0,
|
|
25124
24928
|
class: "kds-panel-headline-text"
|
|
25125
24929
|
};
|
|
25126
|
-
const _hoisted_5$
|
|
24930
|
+
const _hoisted_5$2 = {
|
|
25127
24931
|
key: 1,
|
|
25128
24932
|
class: "kds-panel-header-trailing"
|
|
25129
24933
|
};
|
|
@@ -25147,14 +24951,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25147
24951
|
},
|
|
25148
24952
|
setup(__props) {
|
|
25149
24953
|
useCssVars((_ctx) => ({
|
|
25150
|
-
"
|
|
24954
|
+
"d76547d6": _ctx.bodyOverflow
|
|
25151
24955
|
}));
|
|
25152
24956
|
const headlineId = useId();
|
|
25153
24957
|
const hasHeader = computed(
|
|
25154
24958
|
() => Boolean(__props.headline) || Boolean(__props.headlineTrailingActions?.length)
|
|
25155
24959
|
);
|
|
25156
24960
|
const isBodyKeyboardFocusable = computed(
|
|
25157
|
-
() => __props.bodyOverflow !== kdsPanelBodyOverflow.HIDDEN
|
|
24961
|
+
() => __props.bodyOverflow !== kdsPanelBodyOverflow.HIDDEN && __props.bodyOverflow !== kdsPanelBodyOverflow.CLIP
|
|
25158
24962
|
);
|
|
25159
24963
|
const bodyAriaLabel = computed(
|
|
25160
24964
|
() => isBodyKeyboardFocusable.value && __props.ariaLabel ? __props.ariaLabel : void 0
|
|
@@ -25173,15 +24977,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25173
24977
|
id: unref(headlineId),
|
|
25174
24978
|
class: "kds-panel-headline"
|
|
25175
24979
|
}, [
|
|
25176
|
-
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$
|
|
24980
|
+
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$4, toDisplayString(__props.headline), 1)) : __props.headline.type === "button" ? (openBlock(), createBlock(_sfc_main$1v, mergeProps({ key: 1 }, __props.headline.props, {
|
|
25177
24981
|
size: "small",
|
|
25178
24982
|
onClick: __props.headline.onClick
|
|
25179
24983
|
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1k, mergeProps({ key: 2 }, __props.headline.props, {
|
|
25180
24984
|
size: "small",
|
|
25181
24985
|
onItemClick: __props.headline.onItemClick
|
|
25182
24986
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
25183
|
-
], 8, _hoisted_3$
|
|
25184
|
-
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
24987
|
+
], 8, _hoisted_3$5)) : createCommentVNode("", true),
|
|
24988
|
+
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
25185
24989
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
25186
24990
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
25187
24991
|
action.type === "button" ? (openBlock(), createBlock(_sfc_main$1v, mergeProps({
|
|
@@ -25247,7 +25051,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25247
25051
|
}
|
|
25248
25052
|
});
|
|
25249
25053
|
|
|
25250
|
-
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
25054
|
+
const KdsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-64966fb2"]]);
|
|
25251
25055
|
|
|
25252
25056
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
25253
25057
|
__name: "TabBarItemAccessory",
|
|
@@ -25380,9 +25184,9 @@ const useTabBarAdaptiveLayout = ({
|
|
|
25380
25184
|
};
|
|
25381
25185
|
|
|
25382
25186
|
const _hoisted_1$9 = { class: "kds-tab-bar-wrapper" };
|
|
25383
|
-
const _hoisted_2$5 = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
25384
|
-
const _hoisted_3$
|
|
25385
|
-
const _hoisted_4$
|
|
25187
|
+
const _hoisted_2$5 = ["id", "title", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
25188
|
+
const _hoisted_3$4 = { class: "kds-tab-label" };
|
|
25189
|
+
const _hoisted_4$3 = {
|
|
25386
25190
|
key: 1,
|
|
25387
25191
|
class: "kds-tab-indicator"
|
|
25388
25192
|
};
|
|
@@ -25401,7 +25205,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25401
25205
|
emits: ["update:modelValue"],
|
|
25402
25206
|
setup(__props) {
|
|
25403
25207
|
useCssVars((_ctx) => ({
|
|
25404
|
-
"
|
|
25208
|
+
"v09be89a3": minTabWidthCss
|
|
25405
25209
|
}));
|
|
25406
25210
|
const props = createPropsRestProxy(__props, ["size", "fullWidth", "disabled"]);
|
|
25407
25211
|
const modelValue = useModel(__props, "modelValue");
|
|
@@ -25519,7 +25323,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25519
25323
|
role: "tablist"
|
|
25520
25324
|
}, [
|
|
25521
25325
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
|
|
25522
|
-
return
|
|
25326
|
+
return openBlock(), createElementBlock("button", {
|
|
25523
25327
|
id: tab.id,
|
|
25524
25328
|
key: tab.value,
|
|
25525
25329
|
ref_for: true,
|
|
@@ -25529,6 +25333,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25529
25333
|
},
|
|
25530
25334
|
type: "button",
|
|
25531
25335
|
role: "tab",
|
|
25336
|
+
title: getTabTitle(tab),
|
|
25532
25337
|
"aria-selected": modelValue.value === tab.value,
|
|
25533
25338
|
"aria-controls": tab.panelId,
|
|
25534
25339
|
tabindex: focusableTabValue.value === tab.value ? 0 : -1,
|
|
@@ -25546,11 +25351,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25546
25351
|
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
25547
25352
|
disabled: isTabDisabled(tab)
|
|
25548
25353
|
}, null, 8, ["accessory", "icon-size", "disabled"])) : createCommentVNode("", true),
|
|
25549
|
-
createElementVNode("span", _hoisted_3$
|
|
25550
|
-
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
25551
|
-
], 42, _hoisted_2$5)
|
|
25552
|
-
[unref(vKdsTooltip), getTabTitle(tab)]
|
|
25553
|
-
]);
|
|
25354
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString(tab.label), 1),
|
|
25355
|
+
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$3)) : createCommentVNode("", true)
|
|
25356
|
+
], 42, _hoisted_2$5);
|
|
25554
25357
|
}), 128))
|
|
25555
25358
|
], 2)
|
|
25556
25359
|
]);
|
|
@@ -25558,7 +25361,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25558
25361
|
}
|
|
25559
25362
|
});
|
|
25560
25363
|
|
|
25561
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
25364
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-91f95f5f"]]);
|
|
25562
25365
|
|
|
25563
25366
|
const kdsTabBarSize = {
|
|
25564
25367
|
SMALL: "small",
|
|
@@ -25581,7 +25384,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
25581
25384
|
}
|
|
25582
25385
|
});
|
|
25583
25386
|
|
|
25584
|
-
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
25387
|
+
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b7565402"]]);
|
|
25585
25388
|
|
|
25586
25389
|
const _hoisted_1$8 = {
|
|
25587
25390
|
key: 0,
|
|
@@ -25592,12 +25395,12 @@ const _hoisted_2$4 = {
|
|
|
25592
25395
|
key: 0,
|
|
25593
25396
|
class: "kds-loading-skeleton-headline-with-paragraph"
|
|
25594
25397
|
};
|
|
25595
|
-
const _hoisted_3$
|
|
25596
|
-
const _hoisted_4$
|
|
25398
|
+
const _hoisted_3$3 = { class: "kds-loading-skeleton-paragraph-lines" };
|
|
25399
|
+
const _hoisted_4$2 = {
|
|
25597
25400
|
key: 1,
|
|
25598
25401
|
class: "kds-loading-skeleton-input-with-label"
|
|
25599
25402
|
};
|
|
25600
|
-
const _hoisted_5 = { class: "kds-loading-skeleton-list-item-text" };
|
|
25403
|
+
const _hoisted_5$1 = { class: "kds-loading-skeleton-list-item-text" };
|
|
25601
25404
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
25602
25405
|
__name: "KdsLoadingSkeleton",
|
|
25603
25406
|
props: {
|
|
@@ -25608,7 +25411,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25608
25411
|
},
|
|
25609
25412
|
setup(__props) {
|
|
25610
25413
|
useCssVars((_ctx) => ({
|
|
25611
|
-
"
|
|
25414
|
+
"v18b57ee8": _ctx.repeatGap
|
|
25612
25415
|
}));
|
|
25613
25416
|
return (_ctx, _cache) => {
|
|
25614
25417
|
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
@@ -25621,17 +25424,17 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25621
25424
|
shape: "text",
|
|
25622
25425
|
class: "headline"
|
|
25623
25426
|
}),
|
|
25624
|
-
createElementVNode("div", _hoisted_3$
|
|
25427
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
25625
25428
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25626
25429
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25627
25430
|
createVNode(LoadingSkeletonItem, { shape: "text" })
|
|
25628
25431
|
])
|
|
25629
|
-
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25432
|
+
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
25630
25433
|
createVNode(LoadingSkeletonItem, {
|
|
25631
25434
|
shape: "label",
|
|
25632
25435
|
class: "label"
|
|
25633
25436
|
}),
|
|
25634
|
-
createVNode(LoadingSkeletonItem, { shape: "input
|
|
25437
|
+
createVNode(LoadingSkeletonItem, { shape: "input" })
|
|
25635
25438
|
])) : __props.variant?.startsWith("list-item-") ? (openBlock(), createElementBlock("div", {
|
|
25636
25439
|
key: 2,
|
|
25637
25440
|
class: normalizeClass([
|
|
@@ -25646,7 +25449,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25646
25449
|
createVNode(LoadingSkeletonItem, {
|
|
25647
25450
|
shape: __props.variant.startsWith("list-item-large") ? "icon-large" : "icon-small"
|
|
25648
25451
|
}, null, 8, ["shape"]),
|
|
25649
|
-
createElementVNode("div", _hoisted_5, [
|
|
25452
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
25650
25453
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25651
25454
|
__props.variant.endsWith("subtext") ? (openBlock(), createBlock(LoadingSkeletonItem, {
|
|
25652
25455
|
key: 0,
|
|
@@ -25666,7 +25469,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25666
25469
|
}
|
|
25667
25470
|
});
|
|
25668
25471
|
|
|
25669
|
-
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
25472
|
+
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-326c25f0"]]);
|
|
25670
25473
|
|
|
25671
25474
|
const loadingSkeletonItemShape = {
|
|
25672
25475
|
TEXT: "text",
|
|
@@ -25679,10 +25482,11 @@ const loadingSkeletonItemShape = {
|
|
|
25679
25482
|
BUTTON_SMALL: "button-small",
|
|
25680
25483
|
BUTTON_XSMALL: "button-xsmall",
|
|
25681
25484
|
CARD: "card",
|
|
25682
|
-
|
|
25485
|
+
INPUT: "input"
|
|
25683
25486
|
};
|
|
25684
25487
|
const kdsLoadingSkeletonVariant = {
|
|
25685
25488
|
...loadingSkeletonItemShape,
|
|
25489
|
+
INPUT_WITH_LABEL: "input-with-label",
|
|
25686
25490
|
HEADLINE_WITH_PARAGRAPH: "headline-with-paragraph",
|
|
25687
25491
|
LIST_ITEM_LARGE: "list-item-large",
|
|
25688
25492
|
LIST_ITEM_LARGE_WITH_SUBTEXT: "list-item-large-with-subtext",
|
|
@@ -25708,7 +25512,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25708
25512
|
emits: ["click", "trailingButtonClick"],
|
|
25709
25513
|
setup(__props, { emit: __emit }) {
|
|
25710
25514
|
useCssVars((_ctx) => ({
|
|
25711
|
-
"
|
|
25515
|
+
"v29854424": paddingRight.value
|
|
25712
25516
|
}));
|
|
25713
25517
|
const props = __props;
|
|
25714
25518
|
const emit = __emit;
|
|
@@ -25752,9 +25556,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25752
25556
|
}
|
|
25753
25557
|
])
|
|
25754
25558
|
}, [
|
|
25755
|
-
|
|
25559
|
+
(openBlock(), createBlock(resolveDynamicComponent(navComponent.value), mergeProps({ class: "kds-nav-button" }, navComponentAttrs.value, {
|
|
25756
25560
|
disabled: __props.disabled,
|
|
25757
25561
|
"aria-current": __props.selected ? "page" : void 0,
|
|
25562
|
+
title: unref(isLabelTruncated) ? __props.label : void 0,
|
|
25758
25563
|
onClick
|
|
25759
25564
|
}), {
|
|
25760
25565
|
default: withCtx(() => [
|
|
@@ -25771,9 +25576,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25771
25576
|
}, toDisplayString(__props.label), 513)
|
|
25772
25577
|
]),
|
|
25773
25578
|
_: 1
|
|
25774
|
-
}, 16, ["disabled", "aria-current"])),
|
|
25775
|
-
[unref(vKdsTooltip), unref(isLabelTruncated) ? __props.label : void 0]
|
|
25776
|
-
]),
|
|
25579
|
+
}, 16, ["disabled", "aria-current", "title"])),
|
|
25777
25580
|
hasTrailingItems.value ? (openBlock(), createElementBlock("div", {
|
|
25778
25581
|
key: 0,
|
|
25779
25582
|
ref_key: "trailingItemsEl",
|
|
@@ -25797,7 +25600,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25797
25600
|
}
|
|
25798
25601
|
});
|
|
25799
25602
|
|
|
25800
|
-
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
25603
|
+
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-17711664"]]);
|
|
25801
25604
|
|
|
25802
25605
|
const _hoisted_1$7 = ["aria-label"];
|
|
25803
25606
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -25848,8 +25651,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
25848
25651
|
|
|
25849
25652
|
const KdsNavigation = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6cc9519f"]]);
|
|
25850
25653
|
|
|
25851
|
-
const _hoisted_1$6 =
|
|
25852
|
-
|
|
25654
|
+
const _hoisted_1$6 = {
|
|
25655
|
+
key: 1,
|
|
25656
|
+
class: "breadcrumb-label"
|
|
25657
|
+
};
|
|
25658
|
+
const _hoisted_2$3 = ["aria-label", "aria-current", "title"];
|
|
25659
|
+
const _hoisted_3$2 = {
|
|
25660
|
+
key: 1,
|
|
25661
|
+
class: "breadcrumb-label"
|
|
25662
|
+
};
|
|
25663
|
+
const _hoisted_4$1 = ["aria-label", "aria-current", "title"];
|
|
25664
|
+
const _hoisted_5 = {
|
|
25665
|
+
key: 1,
|
|
25666
|
+
class: "breadcrumb-label"
|
|
25667
|
+
};
|
|
25853
25668
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
25854
25669
|
__name: "BreadcrumbItem",
|
|
25855
25670
|
props: {
|
|
@@ -25860,11 +25675,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25860
25675
|
setup(__props, { emit: __emit }) {
|
|
25861
25676
|
const emit = __emit;
|
|
25862
25677
|
const linkComponent = resolveNuxtLinkComponent();
|
|
25863
|
-
const labelEl = useTemplateRef("labelEl");
|
|
25864
|
-
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
25865
|
-
const tooltipText = computed(
|
|
25866
|
-
() => isTruncated.value ? __props.item.title : void 0
|
|
25867
|
-
);
|
|
25868
25678
|
const isLinkItem = computed(
|
|
25869
25679
|
() => !__props.isCurrentItem && "to" in __props.item && Boolean(__props.item.to)
|
|
25870
25680
|
);
|
|
@@ -25877,12 +25687,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25877
25687
|
}
|
|
25878
25688
|
};
|
|
25879
25689
|
return (_ctx, _cache) => {
|
|
25880
|
-
return isLinkItem.value ?
|
|
25690
|
+
return isLinkItem.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(linkComponent)), {
|
|
25881
25691
|
key: 0,
|
|
25882
25692
|
class: "kds-breadcrumb-item",
|
|
25883
25693
|
to: __props.item.to,
|
|
25884
25694
|
"aria-label": __props.item.ariaLabel,
|
|
25885
|
-
"aria-current": __props.isCurrentItem ? "page" : void 0
|
|
25695
|
+
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25696
|
+
title: __props.item.title
|
|
25886
25697
|
}, {
|
|
25887
25698
|
default: withCtx(() => [
|
|
25888
25699
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
@@ -25890,22 +25701,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25890
25701
|
name: __props.item.leadingIcon,
|
|
25891
25702
|
class: "breadcrumb-icon"
|
|
25892
25703
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25893
|
-
__props.item.text ? (openBlock(), createElementBlock("span",
|
|
25894
|
-
key: 1,
|
|
25895
|
-
ref_key: "labelEl",
|
|
25896
|
-
ref: labelEl,
|
|
25897
|
-
class: "breadcrumb-label"
|
|
25898
|
-
}, toDisplayString(__props.item.text), 513)) : createCommentVNode("", true)
|
|
25704
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25899
25705
|
]),
|
|
25900
25706
|
_: 1
|
|
25901
|
-
}, 8, ["to", "aria-label", "aria-current"])),
|
|
25902
|
-
[unref(vKdsTooltip), tooltipText.value]
|
|
25903
|
-
]) : isButtonItem.value ? withDirectives((openBlock(), createElementBlock("button", {
|
|
25707
|
+
}, 8, ["to", "aria-label", "aria-current", "title"])) : isButtonItem.value ? (openBlock(), createElementBlock("button", {
|
|
25904
25708
|
key: 1,
|
|
25905
25709
|
type: "button",
|
|
25906
25710
|
class: "kds-breadcrumb-item",
|
|
25907
25711
|
"aria-label": __props.item.ariaLabel,
|
|
25908
25712
|
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25713
|
+
title: __props.item.title,
|
|
25909
25714
|
onClick: onItemClick
|
|
25910
25715
|
}, [
|
|
25911
25716
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
@@ -25913,39 +25718,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25913
25718
|
name: __props.item.leadingIcon,
|
|
25914
25719
|
class: "breadcrumb-icon"
|
|
25915
25720
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25916
|
-
__props.item.text ? (openBlock(), createElementBlock("span",
|
|
25917
|
-
|
|
25918
|
-
ref_key: "labelEl",
|
|
25919
|
-
ref: labelEl,
|
|
25920
|
-
class: "breadcrumb-label"
|
|
25921
|
-
}, toDisplayString(__props.item.text), 513)) : createCommentVNode("", true)
|
|
25922
|
-
], 8, _hoisted_1$6)), [
|
|
25923
|
-
[unref(vKdsTooltip), tooltipText.value]
|
|
25924
|
-
]) : withDirectives((openBlock(), createElementBlock("span", {
|
|
25721
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25722
|
+
], 8, _hoisted_2$3)) : (openBlock(), createElementBlock("span", {
|
|
25925
25723
|
key: 2,
|
|
25926
25724
|
class: "kds-breadcrumb-item",
|
|
25927
25725
|
"aria-label": __props.item.ariaLabel,
|
|
25928
|
-
"aria-current": __props.isCurrentItem ? "page" : void 0
|
|
25726
|
+
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25727
|
+
title: __props.item.title
|
|
25929
25728
|
}, [
|
|
25930
25729
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
25931
25730
|
key: 0,
|
|
25932
25731
|
name: __props.item.leadingIcon,
|
|
25933
25732
|
class: "breadcrumb-icon"
|
|
25934
25733
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
25935
|
-
__props.item.text ? (openBlock(), createElementBlock("span",
|
|
25936
|
-
|
|
25937
|
-
ref_key: "labelEl",
|
|
25938
|
-
ref: labelEl,
|
|
25939
|
-
class: "breadcrumb-label"
|
|
25940
|
-
}, toDisplayString(__props.item.text), 513)) : createCommentVNode("", true)
|
|
25941
|
-
], 8, _hoisted_2$3)), [
|
|
25942
|
-
[unref(vKdsTooltip), tooltipText.value]
|
|
25943
|
-
]);
|
|
25734
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25735
|
+
], 8, _hoisted_4$1));
|
|
25944
25736
|
};
|
|
25945
25737
|
}
|
|
25946
25738
|
});
|
|
25947
25739
|
|
|
25948
|
-
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
25740
|
+
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-fd7537fc"]]);
|
|
25949
25741
|
|
|
25950
25742
|
const useBreadcrumbAdaptiveLayout = (listRef, itemRefs, itemsSource) => {
|
|
25951
25743
|
const { width: listWidth } = useElementSize(listRef);
|
|
@@ -26149,7 +25941,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26149
25941
|
},
|
|
26150
25942
|
setup(__props) {
|
|
26151
25943
|
useCssVars((_ctx) => ({
|
|
26152
|
-
"
|
|
25944
|
+
"d8a22254": _ctx.overflow
|
|
26153
25945
|
}));
|
|
26154
25946
|
const props = createPropsRestProxy(__props, ["headline", "variant", "overflow"]);
|
|
26155
25947
|
return (_ctx, _cache) => {
|
|
@@ -26184,7 +25976,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
26184
25976
|
}
|
|
26185
25977
|
});
|
|
26186
25978
|
|
|
26187
|
-
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
25979
|
+
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-36cbff95"]]);
|
|
26188
25980
|
|
|
26189
25981
|
const _hoisted_1$3 = ["closedby"];
|
|
26190
25982
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -26487,6 +26279,182 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26487
26279
|
|
|
26488
26280
|
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-41fc8d84"]]);
|
|
26489
26281
|
|
|
26282
|
+
const SHOW_DELAY = 450;
|
|
26283
|
+
const HIDE_DELAY = 150;
|
|
26284
|
+
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
26285
|
+
let visibleCount = 0;
|
|
26286
|
+
let currentVisible = null;
|
|
26287
|
+
function generateTooltipDiv(text) {
|
|
26288
|
+
const div = document.createElement("div");
|
|
26289
|
+
div.classList.add("kds-tooltip");
|
|
26290
|
+
div.textContent = text;
|
|
26291
|
+
return div;
|
|
26292
|
+
}
|
|
26293
|
+
function getText(binding) {
|
|
26294
|
+
const value = binding.value;
|
|
26295
|
+
if (value === null || value === void 0 || value === "") {
|
|
26296
|
+
return null;
|
|
26297
|
+
}
|
|
26298
|
+
return String(value);
|
|
26299
|
+
}
|
|
26300
|
+
function createPopover(triggerEl, binding) {
|
|
26301
|
+
const popover = generateTooltipDiv(getText(binding) ?? "");
|
|
26302
|
+
popover.setAttribute("popover", "manual");
|
|
26303
|
+
popover.setAttribute("role", "tooltip");
|
|
26304
|
+
const id = `kds-tooltip-${crypto.randomUUID()}`;
|
|
26305
|
+
popover.id = id;
|
|
26306
|
+
triggerEl.setAttribute("aria-describedby", id);
|
|
26307
|
+
const anchorName = `--kds-tooltip-anchor-${id}`;
|
|
26308
|
+
triggerEl.style.setProperty("anchor-name", anchorName);
|
|
26309
|
+
popover.style.setProperty("position-anchor", anchorName);
|
|
26310
|
+
document.body.appendChild(popover);
|
|
26311
|
+
return popover;
|
|
26312
|
+
}
|
|
26313
|
+
function cancelTimers(state) {
|
|
26314
|
+
if (state.showTimer !== null) {
|
|
26315
|
+
clearTimeout(state.showTimer);
|
|
26316
|
+
state.showTimer = null;
|
|
26317
|
+
}
|
|
26318
|
+
if (state.hideTimer !== null) {
|
|
26319
|
+
clearTimeout(state.hideTimer);
|
|
26320
|
+
state.hideTimer = null;
|
|
26321
|
+
}
|
|
26322
|
+
}
|
|
26323
|
+
function hidePopover(state) {
|
|
26324
|
+
if (!state.visible) {
|
|
26325
|
+
return;
|
|
26326
|
+
}
|
|
26327
|
+
state.visible = false;
|
|
26328
|
+
visibleCount--;
|
|
26329
|
+
if (currentVisible === state) {
|
|
26330
|
+
currentVisible = null;
|
|
26331
|
+
}
|
|
26332
|
+
try {
|
|
26333
|
+
state.popoverEl.hidePopover();
|
|
26334
|
+
} catch {
|
|
26335
|
+
}
|
|
26336
|
+
}
|
|
26337
|
+
function showPopover(state) {
|
|
26338
|
+
if (state.visible) {
|
|
26339
|
+
return;
|
|
26340
|
+
}
|
|
26341
|
+
if (currentVisible && currentVisible !== state) {
|
|
26342
|
+
cancelTimers(currentVisible);
|
|
26343
|
+
hidePopover(currentVisible);
|
|
26344
|
+
}
|
|
26345
|
+
try {
|
|
26346
|
+
state.popoverEl.showPopover();
|
|
26347
|
+
} catch {
|
|
26348
|
+
}
|
|
26349
|
+
state.visible = true;
|
|
26350
|
+
visibleCount++;
|
|
26351
|
+
currentVisible = state;
|
|
26352
|
+
}
|
|
26353
|
+
function scheduleShow(state, delay) {
|
|
26354
|
+
cancelTimers(state);
|
|
26355
|
+
if (state.dismissed) {
|
|
26356
|
+
return;
|
|
26357
|
+
}
|
|
26358
|
+
state.showTimer = setTimeout(() => {
|
|
26359
|
+
state.showTimer = null;
|
|
26360
|
+
showPopover(state);
|
|
26361
|
+
}, delay);
|
|
26362
|
+
}
|
|
26363
|
+
function scheduleHide(state) {
|
|
26364
|
+
cancelTimers(state);
|
|
26365
|
+
state.hideTimer = setTimeout(() => {
|
|
26366
|
+
state.hideTimer = null;
|
|
26367
|
+
hidePopover(state);
|
|
26368
|
+
}, HIDE_DELAY);
|
|
26369
|
+
}
|
|
26370
|
+
function mount(triggerEl, binding) {
|
|
26371
|
+
if (getText(binding) === null) {
|
|
26372
|
+
return;
|
|
26373
|
+
}
|
|
26374
|
+
const popoverEl = createPopover(triggerEl, binding);
|
|
26375
|
+
const state = {
|
|
26376
|
+
popoverEl,
|
|
26377
|
+
showTimer: null,
|
|
26378
|
+
hideTimer: null,
|
|
26379
|
+
anchorName: popoverEl.id,
|
|
26380
|
+
dismissed: false,
|
|
26381
|
+
visible: false,
|
|
26382
|
+
scope: effectScope()
|
|
26383
|
+
};
|
|
26384
|
+
stateMap.set(triggerEl, state);
|
|
26385
|
+
const onMouseEnter = () => {
|
|
26386
|
+
state.dismissed = false;
|
|
26387
|
+
const delay = visibleCount > 0 ? 0 : SHOW_DELAY;
|
|
26388
|
+
scheduleShow(state, delay);
|
|
26389
|
+
};
|
|
26390
|
+
const onMouseLeave = () => scheduleHide(state);
|
|
26391
|
+
const onFocusIn = () => {
|
|
26392
|
+
state.dismissed = false;
|
|
26393
|
+
scheduleShow(state, 0);
|
|
26394
|
+
};
|
|
26395
|
+
const onFocusOut = () => {
|
|
26396
|
+
cancelTimers(state);
|
|
26397
|
+
hidePopover(state);
|
|
26398
|
+
};
|
|
26399
|
+
const onDocumentKeyDown = (e) => {
|
|
26400
|
+
if (e.key === "Escape" && state.visible) {
|
|
26401
|
+
cancelTimers(state);
|
|
26402
|
+
hidePopover(state);
|
|
26403
|
+
state.dismissed = true;
|
|
26404
|
+
}
|
|
26405
|
+
};
|
|
26406
|
+
const onPopoverMouseEnter = () => {
|
|
26407
|
+
cancelTimers(state);
|
|
26408
|
+
};
|
|
26409
|
+
const onPopoverMouseLeave = () => {
|
|
26410
|
+
scheduleHide(state);
|
|
26411
|
+
};
|
|
26412
|
+
state.scope.run(() => {
|
|
26413
|
+
useEventListener(triggerEl, "mouseenter", onMouseEnter);
|
|
26414
|
+
useEventListener(triggerEl, "mouseleave", onMouseLeave);
|
|
26415
|
+
useEventListener(triggerEl, "focusin", onFocusIn);
|
|
26416
|
+
useEventListener(triggerEl, "focusout", onFocusOut);
|
|
26417
|
+
useEventListener(document, "keydown", onDocumentKeyDown, true);
|
|
26418
|
+
useEventListener(popoverEl, "mouseenter", onPopoverMouseEnter);
|
|
26419
|
+
useEventListener(popoverEl, "mouseleave", onPopoverMouseLeave);
|
|
26420
|
+
});
|
|
26421
|
+
}
|
|
26422
|
+
function unmount(triggerEl) {
|
|
26423
|
+
const state = stateMap.get(triggerEl);
|
|
26424
|
+
if (state) {
|
|
26425
|
+
state.scope.stop();
|
|
26426
|
+
cancelTimers(state);
|
|
26427
|
+
hidePopover(state);
|
|
26428
|
+
state.popoverEl.remove();
|
|
26429
|
+
stateMap.delete(triggerEl);
|
|
26430
|
+
}
|
|
26431
|
+
triggerEl.removeAttribute("aria-describedby");
|
|
26432
|
+
triggerEl.style.removeProperty("anchor-name");
|
|
26433
|
+
}
|
|
26434
|
+
const vKdsTooltip = {
|
|
26435
|
+
mounted(el, binding) {
|
|
26436
|
+
mount(el, binding);
|
|
26437
|
+
},
|
|
26438
|
+
updated(el, binding) {
|
|
26439
|
+
const state = stateMap.get(el);
|
|
26440
|
+
const newText = getText(binding);
|
|
26441
|
+
if (newText === null) {
|
|
26442
|
+
if (state) {
|
|
26443
|
+
unmount(el);
|
|
26444
|
+
}
|
|
26445
|
+
return;
|
|
26446
|
+
}
|
|
26447
|
+
if (!state) {
|
|
26448
|
+
mount(el, binding);
|
|
26449
|
+
return;
|
|
26450
|
+
}
|
|
26451
|
+
state.popoverEl.textContent = newText;
|
|
26452
|
+
},
|
|
26453
|
+
unmounted(el) {
|
|
26454
|
+
unmount(el);
|
|
26455
|
+
}
|
|
26456
|
+
};
|
|
26457
|
+
|
|
26490
26458
|
const _hoisted_1$1 = {
|
|
26491
26459
|
ref: "measureContainer",
|
|
26492
26460
|
class: "kds-button-group-measure",
|