@knime/kds-components 0.31.2 → 0.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.css +295 -295
- package/dist/index.js +522 -561
- 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/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 +5 -5
- 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/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/Panel/enums.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/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, withCtx, renderSlot, 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, createTextVNode, 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,15 +1093,15 @@ 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 ? (openBlock(), createElementBlock("div", _hoisted_4$p, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
1287
1105
|
], 10, _hoisted_1$10);
|
|
1288
1106
|
};
|
|
1289
1107
|
}
|
|
@@ -1318,16 +1136,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1318
1136
|
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-df682150"]]);
|
|
1319
1137
|
|
|
1320
1138
|
const _hoisted_1$$ = { class: "donut-container" };
|
|
1321
|
-
const _hoisted_2$
|
|
1322
|
-
const _hoisted_3$
|
|
1323
|
-
const _hoisted_4$
|
|
1324
|
-
const _hoisted_5$
|
|
1139
|
+
const _hoisted_2$E = ["height", "width", "viewBox"];
|
|
1140
|
+
const _hoisted_3$s = ["r", "stroke-width"];
|
|
1141
|
+
const _hoisted_4$o = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1142
|
+
const _hoisted_5$e = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
1325
1143
|
const _hoisted_6$b = {
|
|
1326
1144
|
key: 0,
|
|
1327
1145
|
class: "donut-text"
|
|
1328
1146
|
};
|
|
1329
|
-
const _hoisted_7$
|
|
1330
|
-
const _hoisted_8$
|
|
1147
|
+
const _hoisted_7$4 = { class: "title" };
|
|
1148
|
+
const _hoisted_8$3 = {
|
|
1331
1149
|
key: 0,
|
|
1332
1150
|
class: "sub-text"
|
|
1333
1151
|
};
|
|
@@ -1391,7 +1209,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1391
1209
|
r: r.value,
|
|
1392
1210
|
"stroke-width": strokeWidth.value,
|
|
1393
1211
|
fill: "transparent"
|
|
1394
|
-
}, null, 8, _hoisted_3$
|
|
1212
|
+
}, null, 8, _hoisted_3$s),
|
|
1395
1213
|
__props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1396
1214
|
key: 0,
|
|
1397
1215
|
class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
|
|
@@ -1403,7 +1221,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1403
1221
|
"stroke-dashoffset": secondaryStrokeDashOffset.value,
|
|
1404
1222
|
fill: "transparent",
|
|
1405
1223
|
transform: transformWedge.value
|
|
1406
|
-
}, null, 10, _hoisted_4$
|
|
1224
|
+
}, null, 10, _hoisted_4$o)) : createCommentVNode("", true),
|
|
1407
1225
|
!disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
1408
1226
|
key: 1,
|
|
1409
1227
|
class: normalizeClass(["value-wedge", "primary-circle", { animate: __props.animate }]),
|
|
@@ -1415,11 +1233,11 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1415
1233
|
"stroke-dashoffset": strokeDashOffset.value,
|
|
1416
1234
|
fill: "transparent",
|
|
1417
1235
|
transform: transformWedge.value
|
|
1418
|
-
}, null, 10, _hoisted_5$
|
|
1419
|
-
], 8, _hoisted_2$
|
|
1236
|
+
}, null, 10, _hoisted_5$e)) : createCommentVNode("", true)
|
|
1237
|
+
], 8, _hoisted_2$E)),
|
|
1420
1238
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
1421
|
-
createElementVNode("div", _hoisted_7$
|
|
1422
|
-
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
1239
|
+
createElementVNode("div", _hoisted_7$4, toDisplayString(__props.title), 1),
|
|
1240
|
+
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
|
|
1423
1241
|
])) : createCommentVNode("", true)
|
|
1424
1242
|
]);
|
|
1425
1243
|
};
|
|
@@ -1488,10 +1306,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1488
1306
|
}
|
|
1489
1307
|
}
|
|
1490
1308
|
return (_ctx, _cache) => {
|
|
1491
|
-
return
|
|
1309
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.component), {
|
|
1492
1310
|
type: __props.component === "button" ? "button" : void 0,
|
|
1493
1311
|
class: normalizeClass(classes.value),
|
|
1494
1312
|
disabled: __props.disabled,
|
|
1313
|
+
title: props.title,
|
|
1495
1314
|
"aria-label": props.ariaLabel,
|
|
1496
1315
|
"data-test-id": props.dataTestId,
|
|
1497
1316
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
@@ -1512,14 +1331,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1512
1331
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1513
1332
|
]),
|
|
1514
1333
|
_: 3
|
|
1515
|
-
}, 8, ["type", "class", "disabled", "aria-label", "data-test-id"])
|
|
1516
|
-
[unref(vKdsTooltip), props.title]
|
|
1517
|
-
]);
|
|
1334
|
+
}, 8, ["type", "class", "disabled", "title", "aria-label", "data-test-id"]);
|
|
1518
1335
|
};
|
|
1519
1336
|
}
|
|
1520
1337
|
});
|
|
1521
1338
|
|
|
1522
|
-
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-
|
|
1339
|
+
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-24ade73a"]]);
|
|
1523
1340
|
|
|
1524
1341
|
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
1525
1342
|
__name: "KdsButton",
|
|
@@ -1818,7 +1635,7 @@ function prettyBytes(number, options) {
|
|
|
1818
1635
|
}
|
|
1819
1636
|
|
|
1820
1637
|
const _hoisted_1$Y = { class: "label" };
|
|
1821
|
-
const _hoisted_2$
|
|
1638
|
+
const _hoisted_2$D = {
|
|
1822
1639
|
key: 1,
|
|
1823
1640
|
class: "file-size"
|
|
1824
1641
|
};
|
|
@@ -1901,12 +1718,13 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1901
1718
|
emit("click", event);
|
|
1902
1719
|
}
|
|
1903
1720
|
return (_ctx, _cache) => {
|
|
1904
|
-
return
|
|
1721
|
+
return openBlock(), createBlock(resolveDynamicComponent(component.value), {
|
|
1905
1722
|
class: normalizeClass(["kds-link", `variant-${variant.value}`, { disabled: __props.disabled }]),
|
|
1906
1723
|
to: effectiveTo.value,
|
|
1907
1724
|
download: __props.disabled ? void 0 : __props.download,
|
|
1908
1725
|
target: effectiveTarget.value,
|
|
1909
1726
|
rel: effectiveRel.value,
|
|
1727
|
+
title: effectiveTitle.value,
|
|
1910
1728
|
"aria-disabled": __props.disabled ? "true" : void 0,
|
|
1911
1729
|
onClick
|
|
1912
1730
|
}, {
|
|
@@ -1917,17 +1735,15 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1917
1735
|
name: "external-link",
|
|
1918
1736
|
size: "xsmall"
|
|
1919
1737
|
})) : createCommentVNode("", true),
|
|
1920
|
-
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
1738
|
+
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$D, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
1921
1739
|
]),
|
|
1922
1740
|
_: 1
|
|
1923
|
-
}, 8, ["class", "to", "download", "target", "rel", "aria-disabled"])
|
|
1924
|
-
[unref(vKdsTooltip), effectiveTitle.value]
|
|
1925
|
-
]);
|
|
1741
|
+
}, 8, ["class", "to", "download", "target", "rel", "title", "aria-disabled"]);
|
|
1926
1742
|
};
|
|
1927
1743
|
}
|
|
1928
1744
|
});
|
|
1929
1745
|
|
|
1930
|
-
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-
|
|
1746
|
+
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-56e748a8"]]);
|
|
1931
1747
|
|
|
1932
1748
|
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
1933
1749
|
__name: "KdsToggleButton",
|
|
@@ -1967,7 +1783,7 @@ const kdsToggleButtonVariant = {
|
|
|
1967
1783
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1968
1784
|
|
|
1969
1785
|
const _hoisted_1$X = ["data-visible"];
|
|
1970
|
-
const _hoisted_2$
|
|
1786
|
+
const _hoisted_2$C = ["data-visible"];
|
|
1971
1787
|
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
1972
1788
|
__name: "KdsProgressButton",
|
|
1973
1789
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -2039,7 +1855,7 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
2039
1855
|
size: iconSize.value,
|
|
2040
1856
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
2041
1857
|
}, null, 8, ["size", "variant"])
|
|
2042
|
-
], 8, _hoisted_2$
|
|
1858
|
+
], 8, _hoisted_2$C)
|
|
2043
1859
|
], 2)
|
|
2044
1860
|
]),
|
|
2045
1861
|
_: 1
|
|
@@ -2331,21 +2147,23 @@ const kdsListItemAccessorySize = {
|
|
|
2331
2147
|
};
|
|
2332
2148
|
|
|
2333
2149
|
const _hoisted_1$W = ["id", "role", "aria-selected", "aria-disabled"];
|
|
2334
|
-
const _hoisted_2$
|
|
2150
|
+
const _hoisted_2$B = {
|
|
2335
2151
|
key: 0,
|
|
2336
2152
|
class: "accessory"
|
|
2337
2153
|
};
|
|
2338
|
-
const _hoisted_3$
|
|
2339
|
-
const _hoisted_4$
|
|
2154
|
+
const _hoisted_3$r = { class: "content" };
|
|
2155
|
+
const _hoisted_4$n = ["title"];
|
|
2156
|
+
const _hoisted_5$d = {
|
|
2340
2157
|
key: 0,
|
|
2341
2158
|
class: "prefix"
|
|
2342
2159
|
};
|
|
2343
|
-
const
|
|
2344
|
-
const
|
|
2160
|
+
const _hoisted_6$a = ["title"];
|
|
2161
|
+
const _hoisted_7$3 = { class: "trailing-item" };
|
|
2162
|
+
const _hoisted_8$2 = {
|
|
2345
2163
|
key: 0,
|
|
2346
2164
|
class: "shortcut"
|
|
2347
2165
|
};
|
|
2348
|
-
const
|
|
2166
|
+
const _hoisted_9$2 = {
|
|
2349
2167
|
key: 3,
|
|
2350
2168
|
class: "trailing-item-reserve-space"
|
|
2351
2169
|
};
|
|
@@ -2407,39 +2225,35 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2407
2225
|
]),
|
|
2408
2226
|
onClick
|
|
2409
2227
|
}, [
|
|
2410
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2228
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$B, [
|
|
2411
2229
|
createVNode(_sfc_main$1q, {
|
|
2412
2230
|
accessory: props.accessory,
|
|
2413
2231
|
size: accessorySize.value,
|
|
2414
2232
|
disabled: __props.disabled
|
|
2415
2233
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
2416
2234
|
])) : createCommentVNode("", true),
|
|
2417
|
-
createElementVNode("span", _hoisted_3$
|
|
2418
|
-
|
|
2235
|
+
createElementVNode("span", _hoisted_3$r, [
|
|
2236
|
+
createElementVNode("span", {
|
|
2419
2237
|
ref_key: "labelEl",
|
|
2420
2238
|
ref: labelEl,
|
|
2421
|
-
class: "label"
|
|
2239
|
+
class: "label",
|
|
2240
|
+
title: unref(isLabelTruncated) ? props.text : void 0
|
|
2422
2241
|
}, [
|
|
2423
|
-
__props.missing ? (openBlock(), createElementBlock("span",
|
|
2242
|
+
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$d, "(Missing) ")) : createCommentVNode("", true),
|
|
2424
2243
|
createElementVNode("span", {
|
|
2425
2244
|
class: normalizeClass({ special: __props.special })
|
|
2426
2245
|
}, toDisplayString(props.text), 3)
|
|
2427
|
-
])
|
|
2428
|
-
|
|
2429
|
-
]),
|
|
2430
|
-
props.subText ? withDirectives((openBlock(), createElementBlock("span", {
|
|
2246
|
+
], 8, _hoisted_4$n),
|
|
2247
|
+
props.subText ? (openBlock(), createElementBlock("span", {
|
|
2431
2248
|
key: 0,
|
|
2432
2249
|
ref_key: "subtextEl",
|
|
2433
2250
|
ref: subtextEl,
|
|
2434
|
-
class: "subtext"
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
])), [
|
|
2438
|
-
[unref(vKdsTooltip), unref(isSubtextTruncated) ? props.subText : void 0]
|
|
2439
|
-
]) : createCommentVNode("", true)
|
|
2251
|
+
class: "subtext",
|
|
2252
|
+
title: unref(isSubtextTruncated) ? props.subText : void 0
|
|
2253
|
+
}, toDisplayString(props.subText), 9, _hoisted_6$a)) : createCommentVNode("", true)
|
|
2440
2254
|
]),
|
|
2441
|
-
createElementVNode("span",
|
|
2442
|
-
props.shortcut ? (openBlock(), createElementBlock("kbd",
|
|
2255
|
+
createElementVNode("span", _hoisted_7$3, [
|
|
2256
|
+
props.shortcut ? (openBlock(), createElementBlock("kbd", _hoisted_8$2, toDisplayString(props.shortcut), 1)) : props.badge ? (openBlock(), createBlock(KdsBadge, {
|
|
2443
2257
|
key: 1,
|
|
2444
2258
|
size: badgeSize.value,
|
|
2445
2259
|
label: props.badge.label,
|
|
@@ -2450,20 +2264,21 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
2450
2264
|
size: "small",
|
|
2451
2265
|
name: props.trailingIcon
|
|
2452
2266
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
2453
|
-
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span",
|
|
2267
|
+
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span", _hoisted_9$2)) : createCommentVNode("", true)
|
|
2454
2268
|
])
|
|
2455
2269
|
], 10, _hoisted_1$W);
|
|
2456
2270
|
};
|
|
2457
2271
|
}
|
|
2458
2272
|
});
|
|
2459
2273
|
|
|
2460
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-
|
|
2274
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-a3d6c86f"]]);
|
|
2461
2275
|
|
|
2462
2276
|
const _hoisted_1$V = { class: "kds-list-item-section-title" };
|
|
2463
|
-
const _hoisted_2$
|
|
2277
|
+
const _hoisted_2$A = {
|
|
2464
2278
|
key: 0,
|
|
2465
2279
|
class: "icon"
|
|
2466
2280
|
};
|
|
2281
|
+
const _hoisted_3$q = ["title"];
|
|
2467
2282
|
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
2468
2283
|
__name: "ListItemSectionTitle",
|
|
2469
2284
|
props: {
|
|
@@ -2476,27 +2291,24 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
2476
2291
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
2477
2292
|
return (_ctx, _cache) => {
|
|
2478
2293
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
2479
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
2294
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$A, [
|
|
2480
2295
|
createVNode(KdsIcon, {
|
|
2481
2296
|
name: props.leadingIcon,
|
|
2482
2297
|
size: "small"
|
|
2483
2298
|
}, null, 8, ["name"])
|
|
2484
2299
|
])) : createCommentVNode("", true),
|
|
2485
|
-
|
|
2300
|
+
createElementVNode("span", {
|
|
2486
2301
|
ref_key: "labelEl",
|
|
2487
2302
|
ref: labelEl,
|
|
2488
|
-
class: "label"
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
])), [
|
|
2492
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
2493
|
-
])
|
|
2303
|
+
class: "label",
|
|
2304
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
2305
|
+
}, toDisplayString(props.label), 9, _hoisted_3$q)
|
|
2494
2306
|
]);
|
|
2495
2307
|
};
|
|
2496
2308
|
}
|
|
2497
2309
|
});
|
|
2498
2310
|
|
|
2499
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-
|
|
2311
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__scopeId", "data-v-5eeb1226"]]);
|
|
2500
2312
|
|
|
2501
2313
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
2502
2314
|
__name: "KdsMenuItem",
|
|
@@ -2674,7 +2486,7 @@ const ContainerDepthKey = /* @__PURE__ */ Symbol("ContainerDepth");
|
|
|
2674
2486
|
const ChildItemKey = /* @__PURE__ */ Symbol("ChildItem");
|
|
2675
2487
|
|
|
2676
2488
|
const _hoisted_1$U = ["id", "aria-label", "aria-activedescendant"];
|
|
2677
|
-
const _hoisted_2$
|
|
2489
|
+
const _hoisted_2$z = ["id"];
|
|
2678
2490
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
2679
2491
|
__name: "KdsMenuContainer",
|
|
2680
2492
|
props: {
|
|
@@ -2901,7 +2713,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
2901
2713
|
items: item.children ?? [],
|
|
2902
2714
|
onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event))
|
|
2903
2715
|
}, null, 8, ["id", "ariaLabel", "items"])
|
|
2904
|
-
], 44, _hoisted_2$
|
|
2716
|
+
], 44, _hoisted_2$z)
|
|
2905
2717
|
]),
|
|
2906
2718
|
_: 2
|
|
2907
2719
|
}, 1032, ["item", "is-last", "active-id", "variant", "onClick", "onMouseenter"]);
|
|
@@ -2936,7 +2748,7 @@ const kdsPopoverType = {
|
|
|
2936
2748
|
const kdsPopoverTypes = Object.values(kdsPopoverType);
|
|
2937
2749
|
|
|
2938
2750
|
const _hoisted_1$T = ["id", "popover", "role"];
|
|
2939
|
-
const _hoisted_2$
|
|
2751
|
+
const _hoisted_2$y = {
|
|
2940
2752
|
key: 0,
|
|
2941
2753
|
class: "kds-popover-default-content"
|
|
2942
2754
|
};
|
|
@@ -2998,7 +2810,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
2998
2810
|
onToggle
|
|
2999
2811
|
}, [
|
|
3000
2812
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3001
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2813
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$y, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
3002
2814
|
], true)
|
|
3003
2815
|
], 46, _hoisted_1$T);
|
|
3004
2816
|
};
|
|
@@ -3226,12 +3038,12 @@ const kdsButtonVariant = {
|
|
|
3226
3038
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
3227
3039
|
|
|
3228
3040
|
const _hoisted_1$S = ["aria-disabled"];
|
|
3229
|
-
const _hoisted_2$
|
|
3230
|
-
const _hoisted_3$
|
|
3041
|
+
const _hoisted_2$x = { class: "kds-empty-state-headline" };
|
|
3042
|
+
const _hoisted_3$p = {
|
|
3231
3043
|
key: 1,
|
|
3232
3044
|
class: "kds-empty-state-description"
|
|
3233
3045
|
};
|
|
3234
|
-
const _hoisted_4$
|
|
3046
|
+
const _hoisted_4$m = {
|
|
3235
3047
|
key: 2,
|
|
3236
3048
|
class: "kds-empty-state-action"
|
|
3237
3049
|
};
|
|
@@ -3273,9 +3085,9 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
3273
3085
|
variant: "onSurface",
|
|
3274
3086
|
"aria-hidden": "true"
|
|
3275
3087
|
})) : createCommentVNode("", true),
|
|
3276
|
-
createElementVNode("p", _hoisted_2$
|
|
3277
|
-
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
3278
|
-
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
3088
|
+
createElementVNode("p", _hoisted_2$x, toDisplayString(props.headline), 1),
|
|
3089
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$p, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
3090
|
+
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
|
|
3279
3091
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
3280
3092
|
disabled: props.button?.disabled || __props.disabled,
|
|
3281
3093
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("buttonClick", $event))
|
|
@@ -3630,7 +3442,7 @@ const kdsSpacingContainer0p10x = 1;
|
|
|
3630
3442
|
const kdsSpacingContainer0p25x = 4;
|
|
3631
3443
|
|
|
3632
3444
|
const _hoisted_1$Q = { class: "kds-label-wrapper" };
|
|
3633
|
-
const _hoisted_2$
|
|
3445
|
+
const _hoisted_2$w = ["id", "for", "title"];
|
|
3634
3446
|
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
3635
3447
|
__name: "KdsLabel",
|
|
3636
3448
|
props: {
|
|
@@ -3649,17 +3461,14 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3649
3461
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
3650
3462
|
return (_ctx, _cache) => {
|
|
3651
3463
|
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
3652
|
-
|
|
3464
|
+
createElementVNode("label", {
|
|
3653
3465
|
id: props.id,
|
|
3654
3466
|
ref_key: "labelEl",
|
|
3655
3467
|
ref: labelEl,
|
|
3656
3468
|
for: props.for,
|
|
3657
|
-
class: "label"
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
], 8, _hoisted_2$v)), [
|
|
3661
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
3662
|
-
]),
|
|
3469
|
+
class: "label",
|
|
3470
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
3471
|
+
}, toDisplayString(props.label), 9, _hoisted_2$w),
|
|
3663
3472
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
3664
3473
|
key: 0,
|
|
3665
3474
|
content: props.description,
|
|
@@ -3670,10 +3479,10 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
3670
3479
|
}
|
|
3671
3480
|
});
|
|
3672
3481
|
|
|
3673
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-
|
|
3482
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-efe3313e"]]);
|
|
3674
3483
|
|
|
3675
3484
|
const _hoisted_1$P = ["id"];
|
|
3676
|
-
const _hoisted_2$
|
|
3485
|
+
const _hoisted_2$v = { class: "subtext-text" };
|
|
3677
3486
|
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
3678
3487
|
__name: "KdsSubText",
|
|
3679
3488
|
props: {
|
|
@@ -3705,7 +3514,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
3705
3514
|
variant: "onSurface",
|
|
3706
3515
|
"aria-hidden": "true"
|
|
3707
3516
|
})) : createCommentVNode("", true),
|
|
3708
|
-
createElementVNode("span", _hoisted_2$
|
|
3517
|
+
createElementVNode("span", _hoisted_2$v, toDisplayString(props.subText), 1)
|
|
3709
3518
|
], 10, _hoisted_1$P)) : createCommentVNode("", true);
|
|
3710
3519
|
};
|
|
3711
3520
|
}
|
|
@@ -4449,13 +4258,13 @@ const _hoisted_1$O = {
|
|
|
4449
4258
|
key: 0,
|
|
4450
4259
|
class: "icon-wrapper leading"
|
|
4451
4260
|
};
|
|
4452
|
-
const _hoisted_2$
|
|
4261
|
+
const _hoisted_2$u = {
|
|
4453
4262
|
key: 1,
|
|
4454
4263
|
class: "leading-slot"
|
|
4455
4264
|
};
|
|
4456
|
-
const _hoisted_3$
|
|
4457
|
-
const _hoisted_4$
|
|
4458
|
-
const _hoisted_5$
|
|
4265
|
+
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"];
|
|
4266
|
+
const _hoisted_4$l = ["aria-disabled"];
|
|
4267
|
+
const _hoisted_5$c = {
|
|
4459
4268
|
key: 4,
|
|
4460
4269
|
class: "trailing-slot"
|
|
4461
4270
|
};
|
|
@@ -4620,7 +4429,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4620
4429
|
name: props.leadingIcon
|
|
4621
4430
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
4622
4431
|
])) : createCommentVNode("", true),
|
|
4623
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4432
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
|
|
4624
4433
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
4625
4434
|
])) : createCommentVNode("", true),
|
|
4626
4435
|
createElementVNode("input", {
|
|
@@ -4665,7 +4474,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4665
4474
|
onCut: handleInputCut,
|
|
4666
4475
|
onDrop: handleInputDrop,
|
|
4667
4476
|
onDragend: handleInputDragEnd
|
|
4668
|
-
}, null, 42, _hoisted_3$
|
|
4477
|
+
}, null, 42, _hoisted_3$o),
|
|
4669
4478
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
4670
4479
|
key: 2,
|
|
4671
4480
|
class: normalizeClass({
|
|
@@ -4674,7 +4483,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4674
4483
|
disabled: __props.disabled
|
|
4675
4484
|
}),
|
|
4676
4485
|
"aria-disabled": __props.disabled || void 0
|
|
4677
|
-
}, toDisplayString(props.unit), 11, _hoisted_4$
|
|
4486
|
+
}, toDisplayString(props.unit), 11, _hoisted_4$l)) : createCommentVNode("", true),
|
|
4678
4487
|
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$1v, {
|
|
4679
4488
|
key: 3,
|
|
4680
4489
|
class: "clear-button",
|
|
@@ -4685,7 +4494,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
4685
4494
|
title: "Clear",
|
|
4686
4495
|
onClick: withModifiers(clearAndFocusInput, ["stop"])
|
|
4687
4496
|
})) : createCommentVNode("", true),
|
|
4688
|
-
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4497
|
+
_ctx.$slots.trailing ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
4689
4498
|
renderSlot(_ctx.$slots, "trailing", {}, void 0, true)
|
|
4690
4499
|
])) : createCommentVNode("", true),
|
|
4691
4500
|
props.trailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
@@ -4953,20 +4762,21 @@ const filterSlotsForDynamicColumns = (slots) => {
|
|
|
4953
4762
|
};
|
|
4954
4763
|
|
|
4955
4764
|
const _hoisted_1$M = { class: "item-icon" };
|
|
4956
|
-
const _hoisted_2$
|
|
4765
|
+
const _hoisted_2$t = {
|
|
4957
4766
|
key: 0,
|
|
4958
4767
|
class: "open-indicator"
|
|
4959
4768
|
};
|
|
4960
|
-
const _hoisted_3$
|
|
4769
|
+
const _hoisted_3$n = ["title"];
|
|
4770
|
+
const _hoisted_4$k = {
|
|
4961
4771
|
key: 0,
|
|
4962
4772
|
class: "inner"
|
|
4963
4773
|
};
|
|
4964
|
-
const
|
|
4774
|
+
const _hoisted_5$b = {
|
|
4965
4775
|
key: 0,
|
|
4966
4776
|
class: "item-error"
|
|
4967
4777
|
};
|
|
4968
|
-
const
|
|
4969
|
-
const
|
|
4778
|
+
const _hoisted_6$8 = { class: "inner" };
|
|
4779
|
+
const _hoisted_7$2 = {
|
|
4970
4780
|
key: 0,
|
|
4971
4781
|
class: /* @__PURE__ */ normalizeClass(["column"])
|
|
4972
4782
|
};
|
|
@@ -5072,20 +4882,21 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5072
4882
|
}, {
|
|
5073
4883
|
default: withCtx(() => [
|
|
5074
4884
|
createElementVNode("td", _hoisted_1$M, [
|
|
5075
|
-
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
4885
|
+
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$t)) : createCommentVNode("", true),
|
|
5076
4886
|
createVNode(KdsIcon, {
|
|
5077
4887
|
name: __props.item.icon || (__props.item.isDirectory ? "folder" : "file"),
|
|
5078
4888
|
size: "small"
|
|
5079
4889
|
}, null, 8, ["name"])
|
|
5080
4890
|
]),
|
|
5081
|
-
|
|
4891
|
+
createElementVNode("td", {
|
|
5082
4892
|
class: normalizeClass(["column", {
|
|
5083
4893
|
light: !__props.item.isDirectory,
|
|
5084
4894
|
"rename-active": unref(isRenameActive)
|
|
5085
4895
|
}]),
|
|
5086
|
-
"data-test-id": "item-name"
|
|
4896
|
+
"data-test-id": "item-name",
|
|
4897
|
+
title: __props.item.name
|
|
5087
4898
|
}, [
|
|
5088
|
-
!unref(isRenameActive) ? (openBlock(), createElementBlock("div",
|
|
4899
|
+
!unref(isRenameActive) ? (openBlock(), createElementBlock("div", _hoisted_4$k, toDisplayString(__props.item.name), 1)) : (openBlock(), createElementBlock("div", {
|
|
5089
4900
|
key: 1,
|
|
5090
4901
|
ref_key: "renameInputContainer",
|
|
5091
4902
|
ref: renameInputContainer,
|
|
@@ -5098,23 +4909,22 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5098
4909
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => renameValue.value = $event),
|
|
5099
4910
|
class: "rename-input",
|
|
5100
4911
|
type: "text",
|
|
4912
|
+
title: "rename",
|
|
5101
4913
|
ariaLabel: "rename input",
|
|
5102
4914
|
error: !unref(isValid),
|
|
5103
4915
|
onKeydown: _cache[1] || (_cache[1] = withModifiers(($event) => onRenameSubmit($event), ["stop"]))
|
|
5104
4916
|
}, null, 8, ["modelValue", "error"]),
|
|
5105
|
-
!unref(isValid) ? (openBlock(), createElementBlock("div",
|
|
4917
|
+
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_5$b, [
|
|
5106
4918
|
createElementVNode("span", null, toDisplayString(unref(errorMessage)), 1)
|
|
5107
4919
|
])) : createCommentVNode("", true)
|
|
5108
4920
|
], 512))
|
|
5109
|
-
],
|
|
5110
|
-
[unref(vKdsTooltip), __props.item.name]
|
|
5111
|
-
]),
|
|
4921
|
+
], 10, _hoisted_3$n),
|
|
5112
4922
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dynamicColumnSlotNames.value, (name) => {
|
|
5113
4923
|
return openBlock(), createElementBlock("td", {
|
|
5114
4924
|
key: `dynamicColumn-${name}`,
|
|
5115
4925
|
class: normalizeClass(["column", "dynamic-column"])
|
|
5116
4926
|
}, [
|
|
5117
|
-
createElementVNode("div",
|
|
4927
|
+
createElementVNode("div", _hoisted_6$8, [
|
|
5118
4928
|
renderSlot(_ctx.$slots, name, {
|
|
5119
4929
|
isRenameActive: unref(isRenameActive),
|
|
5120
4930
|
isSelected: __props.isSelected
|
|
@@ -5122,7 +4932,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5122
4932
|
])
|
|
5123
4933
|
]);
|
|
5124
4934
|
}), 128)),
|
|
5125
|
-
_ctx.$slots.optionsMenu ? (openBlock(), createElementBlock("td",
|
|
4935
|
+
_ctx.$slots.optionsMenu ? (openBlock(), createElementBlock("td", _hoisted_7$2, [
|
|
5126
4936
|
renderSlot(_ctx.$slots, "optionsMenu", {}, void 0, true)
|
|
5127
4937
|
])) : createCommentVNode("", true)
|
|
5128
4938
|
]),
|
|
@@ -5132,7 +4942,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
5132
4942
|
}
|
|
5133
4943
|
});
|
|
5134
4944
|
|
|
5135
|
-
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
4945
|
+
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-91cbcaae"]]);
|
|
5136
4946
|
|
|
5137
4947
|
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
5138
4948
|
__name: "FileExplorerItemBack",
|
|
@@ -5141,10 +4951,11 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5141
4951
|
},
|
|
5142
4952
|
setup(__props) {
|
|
5143
4953
|
return (_ctx, _cache) => {
|
|
5144
|
-
return
|
|
4954
|
+
return openBlock(), createBlock(FileExplorerItemBase, {
|
|
5145
4955
|
"is-dragging": __props.isDragging,
|
|
5146
4956
|
"is-selected": false,
|
|
5147
|
-
class: "file-explorer-item-back"
|
|
4957
|
+
class: "file-explorer-item-back",
|
|
4958
|
+
title: "Go back"
|
|
5148
4959
|
}, {
|
|
5149
4960
|
default: withCtx(() => [
|
|
5150
4961
|
createElementVNode("td", null, [
|
|
@@ -5156,14 +4967,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
5156
4967
|
_cache[0] || (_cache[0] = createElementVNode("td", { class: "item-name hidden" }, "Go back to parent directory", -1))
|
|
5157
4968
|
]),
|
|
5158
4969
|
_: 1
|
|
5159
|
-
}, 8, ["is-dragging"])
|
|
5160
|
-
[unref(vKdsTooltip), "Go back"]
|
|
5161
|
-
]);
|
|
4970
|
+
}, 8, ["is-dragging"]);
|
|
5162
4971
|
};
|
|
5163
4972
|
}
|
|
5164
4973
|
});
|
|
5165
4974
|
|
|
5166
|
-
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-
|
|
4975
|
+
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-a5de970a"]]);
|
|
5167
4976
|
|
|
5168
4977
|
const getInitialState = () => ({
|
|
5169
4978
|
anchorHistory: [],
|
|
@@ -12060,7 +11869,7 @@ const popoverAnchor = {
|
|
|
12060
11869
|
};
|
|
12061
11870
|
|
|
12062
11871
|
const _hoisted_1$L = { class: "file-explorer" };
|
|
12063
|
-
const _hoisted_2$
|
|
11872
|
+
const _hoisted_2$s = {
|
|
12064
11873
|
key: 0,
|
|
12065
11874
|
class: "empty"
|
|
12066
11875
|
};
|
|
@@ -12490,7 +12299,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
12490
12299
|
} : void 0
|
|
12491
12300
|
]), 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
12301
|
}), 128)),
|
|
12493
|
-
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$
|
|
12302
|
+
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$s, [
|
|
12494
12303
|
createElementVNode("td", null, [
|
|
12495
12304
|
createVNode(KdsEmptyState, mergeProps({
|
|
12496
12305
|
headline: __props.emptyState?.headline ?? "Folder is empty"
|
|
@@ -12559,10 +12368,10 @@ const kdsFileExplorerDraggingAnimationModes = Object.values(
|
|
|
12559
12368
|
);
|
|
12560
12369
|
|
|
12561
12370
|
const _hoisted_1$K = { class: "kds-preview-list" };
|
|
12562
|
-
const _hoisted_2$
|
|
12563
|
-
const _hoisted_3$
|
|
12564
|
-
const _hoisted_4$
|
|
12565
|
-
const _hoisted_5$
|
|
12371
|
+
const _hoisted_2$r = { class: "kds-preview-list-title-row" };
|
|
12372
|
+
const _hoisted_3$m = { class: "kds-preview-list-content" };
|
|
12373
|
+
const _hoisted_4$j = { class: "kds-preview-list-headline" };
|
|
12374
|
+
const _hoisted_5$a = ["aria-label"];
|
|
12566
12375
|
const _hoisted_6$7 = { class: "kds-preview-list-show-hide" };
|
|
12567
12376
|
const DEFAULT_MAX_VISIBLE_ITEMS = 6;
|
|
12568
12377
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
@@ -12600,7 +12409,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12600
12409
|
);
|
|
12601
12410
|
return (_ctx, _cache) => {
|
|
12602
12411
|
return openBlock(), createElementBlock("section", _hoisted_1$K, [
|
|
12603
|
-
createElementVNode("header", _hoisted_2$
|
|
12412
|
+
createElementVNode("header", _hoisted_2$r, [
|
|
12604
12413
|
__props.loading && !expanded.value ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
12605
12414
|
key: 0,
|
|
12606
12415
|
size: "small",
|
|
@@ -12610,8 +12419,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12610
12419
|
name: __props.leadingIcon,
|
|
12611
12420
|
size: "small"
|
|
12612
12421
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
12613
|
-
createElementVNode("div", _hoisted_3$
|
|
12614
|
-
createElementVNode("span", _hoisted_4$
|
|
12422
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
12423
|
+
createElementVNode("span", _hoisted_4$j, toDisplayString(props.headline), 1)
|
|
12615
12424
|
]),
|
|
12616
12425
|
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$1v, normalizeProps(mergeProps({ key: 2 }, trailingButtonProps.value)), null, 16)) : createCommentVNode("", true)
|
|
12617
12426
|
]),
|
|
@@ -12646,7 +12455,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12646
12455
|
}, ["stop"]))
|
|
12647
12456
|
}, null, 8, ["id", "text", "accessory"]);
|
|
12648
12457
|
}), 128))
|
|
12649
|
-
], 8, _hoisted_5$
|
|
12458
|
+
], 8, _hoisted_5$a)) : createCommentVNode("", true)
|
|
12650
12459
|
], 512), [
|
|
12651
12460
|
[vShow, expanded.value]
|
|
12652
12461
|
]),
|
|
@@ -12669,14 +12478,14 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
12669
12478
|
|
|
12670
12479
|
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-a11103f6"]]);
|
|
12671
12480
|
|
|
12672
|
-
const _hoisted_1$J = ["disabled", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
12673
|
-
const _hoisted_2$
|
|
12674
|
-
const _hoisted_3$
|
|
12481
|
+
const _hoisted_1$J = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
12482
|
+
const _hoisted_2$q = { class: "control" };
|
|
12483
|
+
const _hoisted_3$l = {
|
|
12675
12484
|
key: 0,
|
|
12676
12485
|
class: "content"
|
|
12677
12486
|
};
|
|
12678
|
-
const _hoisted_4$
|
|
12679
|
-
const _hoisted_5$
|
|
12487
|
+
const _hoisted_4$i = { class: "label" };
|
|
12488
|
+
const _hoisted_5$9 = ["id"];
|
|
12680
12489
|
const _hoisted_6$6 = {
|
|
12681
12490
|
key: 0,
|
|
12682
12491
|
class: "subtext-wrapper"
|
|
@@ -12736,7 +12545,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12736
12545
|
};
|
|
12737
12546
|
return (_ctx, _cache) => {
|
|
12738
12547
|
return openBlock(), createElementBlock("div", null, [
|
|
12739
|
-
|
|
12548
|
+
createElementVNode("button", {
|
|
12740
12549
|
class: normalizeClass({
|
|
12741
12550
|
checkbox: true,
|
|
12742
12551
|
checked: isChecked.value,
|
|
@@ -12745,6 +12554,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12745
12554
|
error: __props.error
|
|
12746
12555
|
}),
|
|
12747
12556
|
disabled: __props.disabled,
|
|
12557
|
+
title: props.title,
|
|
12748
12558
|
"aria-label": props.title,
|
|
12749
12559
|
"aria-checked": ariaChecked.value,
|
|
12750
12560
|
"aria-describedby": ariaDescribedBy.value,
|
|
@@ -12753,7 +12563,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12753
12563
|
role: "checkbox",
|
|
12754
12564
|
onClick: handleClick
|
|
12755
12565
|
}, [
|
|
12756
|
-
createElementVNode("div", _hoisted_2$
|
|
12566
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
12757
12567
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
12758
12568
|
key: 0,
|
|
12759
12569
|
name: icon.value,
|
|
@@ -12761,17 +12571,15 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12761
12571
|
size: "xsmall"
|
|
12762
12572
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
12763
12573
|
]),
|
|
12764
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
12765
|
-
createElementVNode("div", _hoisted_4$
|
|
12574
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$l, [
|
|
12575
|
+
createElementVNode("div", _hoisted_4$i, toDisplayString(props.label), 1),
|
|
12766
12576
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
12767
12577
|
key: 0,
|
|
12768
12578
|
id: unref(helperId),
|
|
12769
12579
|
class: "helper-text"
|
|
12770
|
-
}, toDisplayString(props.helperText), 9, _hoisted_5$
|
|
12580
|
+
}, toDisplayString(props.helperText), 9, _hoisted_5$9)) : createCommentVNode("", true)
|
|
12771
12581
|
])) : createCommentVNode("", true)
|
|
12772
|
-
], 10, _hoisted_1$J)
|
|
12773
|
-
[unref(vKdsTooltip), props.title]
|
|
12774
|
-
]),
|
|
12582
|
+
], 10, _hoisted_1$J),
|
|
12775
12583
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
12776
12584
|
createVNode(KdsSubText, {
|
|
12777
12585
|
id: unref(descriptionId),
|
|
@@ -12785,7 +12593,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
12785
12593
|
}
|
|
12786
12594
|
});
|
|
12787
12595
|
|
|
12788
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
12596
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0bec87ad"]]);
|
|
12789
12597
|
|
|
12790
12598
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
12791
12599
|
__name: "KdsCheckbox",
|
|
@@ -12818,8 +12626,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
12818
12626
|
});
|
|
12819
12627
|
|
|
12820
12628
|
const _hoisted_1$I = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
12821
|
-
const _hoisted_2$
|
|
12822
|
-
const _hoisted_3$
|
|
12629
|
+
const _hoisted_2$p = ["id"];
|
|
12630
|
+
const _hoisted_3$k = ["title"];
|
|
12631
|
+
const _hoisted_4$h = { class: "kds-fieldset-content" };
|
|
12823
12632
|
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
12824
12633
|
__name: "BaseFieldsetWrapper",
|
|
12825
12634
|
props: {
|
|
@@ -12861,22 +12670,19 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12861
12670
|
id: legendId.value,
|
|
12862
12671
|
class: "kds-fieldset-legend"
|
|
12863
12672
|
}, [
|
|
12864
|
-
|
|
12673
|
+
createElementVNode("span", {
|
|
12865
12674
|
ref_key: "legendTextEl",
|
|
12866
12675
|
ref: legendTextEl,
|
|
12867
|
-
class: "legend-text"
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
])), [
|
|
12871
|
-
[unref(vKdsTooltip), unref(isTruncated) ? props.label : void 0]
|
|
12872
|
-
]),
|
|
12676
|
+
class: "legend-text",
|
|
12677
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
12678
|
+
}, toDisplayString(props.label), 9, _hoisted_3$k),
|
|
12873
12679
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
12874
12680
|
key: 0,
|
|
12875
12681
|
content: props.description,
|
|
12876
12682
|
hidden: !isHovered.value
|
|
12877
12683
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
12878
|
-
], 8, _hoisted_2$
|
|
12879
|
-
createElementVNode("div",
|
|
12684
|
+
], 8, _hoisted_2$p)) : createCommentVNode("", true),
|
|
12685
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
12880
12686
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
12881
12687
|
]),
|
|
12882
12688
|
createVNode(KdsSubText, {
|
|
@@ -12891,7 +12697,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
12891
12697
|
}
|
|
12892
12698
|
});
|
|
12893
12699
|
|
|
12894
|
-
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-
|
|
12700
|
+
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-a44731da"]]);
|
|
12895
12701
|
|
|
12896
12702
|
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
12897
12703
|
__name: "KdsCheckboxGroup",
|
|
@@ -13002,16 +12808,16 @@ const kdsToggleSwitchLabelPositions = Object.values(
|
|
|
13002
12808
|
);
|
|
13003
12809
|
|
|
13004
12810
|
const _hoisted_1$H = ["disabled", "aria-label", "aria-checked"];
|
|
13005
|
-
const _hoisted_2$
|
|
13006
|
-
const _hoisted_3$
|
|
12811
|
+
const _hoisted_2$o = { class: "control" };
|
|
12812
|
+
const _hoisted_3$j = {
|
|
13007
12813
|
class: "knob",
|
|
13008
12814
|
"aria-hidden": "true"
|
|
13009
12815
|
};
|
|
13010
|
-
const _hoisted_4$
|
|
12816
|
+
const _hoisted_4$g = {
|
|
13011
12817
|
key: 0,
|
|
13012
12818
|
class: "content"
|
|
13013
12819
|
};
|
|
13014
|
-
const _hoisted_5$
|
|
12820
|
+
const _hoisted_5$8 = { class: "label" };
|
|
13015
12821
|
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
13016
12822
|
__name: "KdsToggleSwitch",
|
|
13017
12823
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -13051,16 +12857,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
13051
12857
|
role: "switch",
|
|
13052
12858
|
onClick: handleClick
|
|
13053
12859
|
}, [
|
|
13054
|
-
createElementVNode("div", _hoisted_2$
|
|
13055
|
-
createElementVNode("div", _hoisted_3$
|
|
12860
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
12861
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
13056
12862
|
createVNode(KdsIcon, {
|
|
13057
12863
|
name: isChecked.value ? "checkmark" : "x-close",
|
|
13058
12864
|
size: __props.size === "small" ? "xsmall" : "small"
|
|
13059
12865
|
}, null, 8, ["name", "size"])
|
|
13060
12866
|
])
|
|
13061
12867
|
]),
|
|
13062
|
-
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13063
|
-
createElementVNode("span", _hoisted_5$
|
|
12868
|
+
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$g, [
|
|
12869
|
+
createElementVNode("span", _hoisted_5$8, toDisplayString(props.label), 1)
|
|
13064
12870
|
])) : createCommentVNode("", true)
|
|
13065
12871
|
], 10, _hoisted_1$H);
|
|
13066
12872
|
};
|
|
@@ -13070,16 +12876,16 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
13070
12876
|
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-417fc16d"]]);
|
|
13071
12877
|
|
|
13072
12878
|
const _hoisted_1$G = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
13073
|
-
const _hoisted_2$
|
|
13074
|
-
const _hoisted_3$
|
|
12879
|
+
const _hoisted_2$n = { class: "control" };
|
|
12880
|
+
const _hoisted_3$i = {
|
|
13075
12881
|
key: 0,
|
|
13076
12882
|
class: "dot",
|
|
13077
12883
|
viewBox: "0 0 2 2",
|
|
13078
12884
|
"aria-hidden": "true",
|
|
13079
12885
|
focusable: "false"
|
|
13080
12886
|
};
|
|
13081
|
-
const _hoisted_4$
|
|
13082
|
-
const _hoisted_5$
|
|
12887
|
+
const _hoisted_4$f = { class: "content" };
|
|
12888
|
+
const _hoisted_5$7 = { class: "label" };
|
|
13083
12889
|
const _hoisted_6$5 = ["id"];
|
|
13084
12890
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
13085
12891
|
__name: "KdsRadioButton",
|
|
@@ -13121,8 +12927,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
13121
12927
|
type: "button",
|
|
13122
12928
|
onClick: handleClick
|
|
13123
12929
|
}, [
|
|
13124
|
-
createElementVNode("div", _hoisted_2$
|
|
13125
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
12930
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
12931
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$i, [..._cache[0] || (_cache[0] = [
|
|
13126
12932
|
createElementVNode("circle", {
|
|
13127
12933
|
cx: "1",
|
|
13128
12934
|
cy: "1",
|
|
@@ -13130,8 +12936,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
13130
12936
|
}, null, -1)
|
|
13131
12937
|
])])) : createCommentVNode("", true)
|
|
13132
12938
|
]),
|
|
13133
|
-
createElementVNode("div", _hoisted_4$
|
|
13134
|
-
createElementVNode("div", _hoisted_5$
|
|
12939
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
12940
|
+
createElementVNode("div", _hoisted_5$7, toDisplayString(props.text), 1),
|
|
13135
12941
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
13136
12942
|
key: 0,
|
|
13137
12943
|
id: `${unref(id)}-helper`,
|
|
@@ -13342,7 +13148,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
13342
13148
|
|
|
13343
13149
|
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-d78ed4a2"]]);
|
|
13344
13150
|
|
|
13345
|
-
const _hoisted_1$F = ["aria-checked", "aria-label", "disabled", "tabindex"];
|
|
13151
|
+
const _hoisted_1$F = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
13346
13152
|
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
13347
13153
|
__name: "ValueSwitchItem",
|
|
13348
13154
|
props: {
|
|
@@ -13362,7 +13168,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13362
13168
|
const optionTextEl = useTemplateRef("optionTextEl");
|
|
13363
13169
|
const { isTruncated } = useKdsIsTruncated(optionTextEl);
|
|
13364
13170
|
return (_ctx, _cache) => {
|
|
13365
|
-
return
|
|
13171
|
+
return openBlock(), createElementBlock("button", {
|
|
13366
13172
|
role: "radio",
|
|
13367
13173
|
"aria-checked": props.selected,
|
|
13368
13174
|
"aria-label": props.text ? void 0 : props.title,
|
|
@@ -13374,7 +13180,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13374
13180
|
"size-small": __props.size === "small"
|
|
13375
13181
|
}),
|
|
13376
13182
|
disabled: __props.disabled,
|
|
13377
|
-
tabindex: __props.tabIndex
|
|
13183
|
+
tabindex: __props.tabIndex,
|
|
13184
|
+
title: props.title ?? (unref(isTruncated) && props.text ? props.text : void 0)
|
|
13378
13185
|
}, [
|
|
13379
13186
|
props.leadingIcon && (!props.hideIcons || !props.text) ? (openBlock(), createBlock(KdsIcon, {
|
|
13380
13187
|
key: 0,
|
|
@@ -13392,17 +13199,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
13392
13199
|
name: props.trailingIcon,
|
|
13393
13200
|
size: __props.size
|
|
13394
13201
|
}, 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
|
-
]);
|
|
13202
|
+
], 10, _hoisted_1$F);
|
|
13401
13203
|
};
|
|
13402
13204
|
}
|
|
13403
13205
|
});
|
|
13404
13206
|
|
|
13405
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-
|
|
13207
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-5c6f0f1f"]]);
|
|
13406
13208
|
|
|
13407
13209
|
const useValueSwitchIconHiding = ({
|
|
13408
13210
|
width,
|
|
@@ -14191,8 +13993,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
14191
13993
|
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
14192
13994
|
|
|
14193
13995
|
const _hoisted_1$D = { class: "kds-color-picker" };
|
|
14194
|
-
const _hoisted_2$
|
|
14195
|
-
const _hoisted_3$
|
|
13996
|
+
const _hoisted_2$m = ["aria-valuetext"];
|
|
13997
|
+
const _hoisted_3$h = { class: "value-inputs" };
|
|
14196
13998
|
const DEFAULT_HUE_DEG = 270;
|
|
14197
13999
|
const DEFAULT_SATURATION = 0.8;
|
|
14198
14000
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -14382,7 +14184,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14382
14184
|
class: "handle",
|
|
14383
14185
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
14384
14186
|
}, null, 4)
|
|
14385
|
-
], 44, _hoisted_2$
|
|
14187
|
+
], 44, _hoisted_2$m),
|
|
14386
14188
|
createVNode(ColorPickerSlider, {
|
|
14387
14189
|
modelValue: hue.value,
|
|
14388
14190
|
"onUpdate:modelValue": [
|
|
@@ -14417,7 +14219,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
14417
14219
|
step: KEYBOARD_STEP,
|
|
14418
14220
|
"large-step": KEYBOARD_LARGE_STEP
|
|
14419
14221
|
}, null, 8, ["modelValue", "value-now", "value-text"]),
|
|
14420
|
-
createElementVNode("div", _hoisted_3$
|
|
14222
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
14421
14223
|
createVNode(KdsTextInput, {
|
|
14422
14224
|
"model-value": hexInputValue.value,
|
|
14423
14225
|
ariaLabel: "Color hex value",
|
|
@@ -18734,9 +18536,9 @@ const _hoisted_1$C = {
|
|
|
18734
18536
|
role: "row",
|
|
18735
18537
|
class: "kds-date-picker-header-row"
|
|
18736
18538
|
};
|
|
18737
|
-
const _hoisted_2$
|
|
18738
|
-
const _hoisted_3$
|
|
18739
|
-
const _hoisted_4$
|
|
18539
|
+
const _hoisted_2$l = ["aria-label"];
|
|
18540
|
+
const _hoisted_3$g = { class: "kds-date-picker-day-grid" };
|
|
18541
|
+
const _hoisted_4$e = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onFocus"];
|
|
18740
18542
|
const REFERENCE_YEAR$2 = 2024;
|
|
18741
18543
|
const DAYS_PER_WEEK = 7;
|
|
18742
18544
|
const TOTAL_CELLS = 42;
|
|
@@ -19042,10 +18844,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
19042
18844
|
role: "columnheader",
|
|
19043
18845
|
"aria-label": unref(DAY_FULL_LABELS)[i],
|
|
19044
18846
|
class: "kds-date-picker-weekday"
|
|
19045
|
-
}, toDisplayString(day), 9, _hoisted_2$
|
|
18847
|
+
}, toDisplayString(day), 9, _hoisted_2$l);
|
|
19046
18848
|
}), 128))
|
|
19047
18849
|
]),
|
|
19048
|
-
createElementVNode("div", _hoisted_3$
|
|
18850
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
19049
18851
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, wi) => {
|
|
19050
18852
|
return openBlock(), createElementBlock("div", {
|
|
19051
18853
|
key: wi,
|
|
@@ -19074,7 +18876,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
19074
18876
|
onClick: ($event) => selectDate(day),
|
|
19075
18877
|
onKeydown: onDayKeydown,
|
|
19076
18878
|
onFocus: ($event) => onDayFocus(day)
|
|
19077
|
-
}, toDisplayString(day.day), 43, _hoisted_4$
|
|
18879
|
+
}, toDisplayString(day.day), 43, _hoisted_4$e);
|
|
19078
18880
|
}), 128))
|
|
19079
18881
|
]);
|
|
19080
18882
|
}), 128))
|
|
@@ -19464,14 +19266,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
19464
19266
|
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-270d55b9"]]);
|
|
19465
19267
|
|
|
19466
19268
|
const _hoisted_1$z = { class: "kds-date-picker" };
|
|
19467
|
-
const _hoisted_2$
|
|
19468
|
-
const _hoisted_3$
|
|
19469
|
-
const _hoisted_4$
|
|
19269
|
+
const _hoisted_2$k = { class: "kds-date-picker-header" };
|
|
19270
|
+
const _hoisted_3$f = { class: "kds-date-picker-nav-block" };
|
|
19271
|
+
const _hoisted_4$d = {
|
|
19470
19272
|
key: 1,
|
|
19471
19273
|
class: "kds-date-picker-header-static-label",
|
|
19472
19274
|
"aria-live": "polite"
|
|
19473
19275
|
};
|
|
19474
|
-
const _hoisted_5$
|
|
19276
|
+
const _hoisted_5$6 = { class: "kds-date-picker-nav-block" };
|
|
19475
19277
|
const _hoisted_6$4 = { class: "kds-date-picker-body" };
|
|
19476
19278
|
const MONTHS_PER_YEAR = 12;
|
|
19477
19279
|
const YEAR_PAGE_SIZE = 15;
|
|
@@ -19673,8 +19475,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19673
19475
|
__expose({ focus });
|
|
19674
19476
|
return (_ctx, _cache) => {
|
|
19675
19477
|
return openBlock(), createElementBlock("div", _hoisted_1$z, [
|
|
19676
|
-
createElementVNode("div", _hoisted_2$
|
|
19677
|
-
createElementVNode("div", _hoisted_3$
|
|
19478
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
19479
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
19678
19480
|
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1v, {
|
|
19679
19481
|
key: 0,
|
|
19680
19482
|
variant: "transparent",
|
|
@@ -19700,8 +19502,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
19700
19502
|
size: "small",
|
|
19701
19503
|
label: headerLabel.value,
|
|
19702
19504
|
onClick: onHeaderLabelClick
|
|
19703
|
-
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19704
|
-
createElementVNode("div", _hoisted_5$
|
|
19505
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$d, toDisplayString(headerLabel.value), 1)),
|
|
19506
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
19705
19507
|
createVNode(_sfc_main$1v, {
|
|
19706
19508
|
variant: "transparent",
|
|
19707
19509
|
size: "small",
|
|
@@ -20708,13 +20510,13 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
20708
20510
|
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-36211819"]]);
|
|
20709
20511
|
|
|
20710
20512
|
const _hoisted_1$w = { class: "kds-time-picker" };
|
|
20711
|
-
const _hoisted_2$
|
|
20712
|
-
const _hoisted_3$
|
|
20713
|
-
const _hoisted_4$
|
|
20513
|
+
const _hoisted_2$j = { class: "kds-time-picker-fields" };
|
|
20514
|
+
const _hoisted_3$e = { class: "kds-time-picker-fields" };
|
|
20515
|
+
const _hoisted_4$c = {
|
|
20714
20516
|
key: 0,
|
|
20715
20517
|
class: "kds-time-picker-fields"
|
|
20716
20518
|
};
|
|
20717
|
-
const _hoisted_5$
|
|
20519
|
+
const _hoisted_5$5 = {
|
|
20718
20520
|
key: 1,
|
|
20719
20521
|
class: "kds-time-picker-actions"
|
|
20720
20522
|
};
|
|
@@ -20813,7 +20615,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20813
20615
|
__expose({ focus });
|
|
20814
20616
|
return (_ctx, _cache) => {
|
|
20815
20617
|
return openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
20816
|
-
createElementVNode("div", _hoisted_2$
|
|
20618
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
20817
20619
|
createVNode(_sfc_main$X, {
|
|
20818
20620
|
ref: "hourInput",
|
|
20819
20621
|
modelValue: hour.value,
|
|
@@ -20839,7 +20641,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20839
20641
|
class: "kds-time-picker-divider"
|
|
20840
20642
|
})) : createCommentVNode("", true),
|
|
20841
20643
|
showSecondInput.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
20842
|
-
createElementVNode("div", _hoisted_3$
|
|
20644
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
20843
20645
|
createVNode(_sfc_main$X, {
|
|
20844
20646
|
ref: "secondInput",
|
|
20845
20647
|
modelValue: second.value,
|
|
@@ -20859,7 +20661,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20859
20661
|
onClick: removeSeconds
|
|
20860
20662
|
})
|
|
20861
20663
|
]),
|
|
20862
|
-
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
20664
|
+
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
20863
20665
|
createVNode(_sfc_main$X, {
|
|
20864
20666
|
ref: "millisecondInput",
|
|
20865
20667
|
modelValue: millisecond.value,
|
|
@@ -20881,7 +20683,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
20881
20683
|
title: "Remove milliseconds",
|
|
20882
20684
|
onClick: removeMilliseconds
|
|
20883
20685
|
})
|
|
20884
|
-
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
20686
|
+
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
20885
20687
|
createVNode(_sfc_main$1v, {
|
|
20886
20688
|
variant: "outlined",
|
|
20887
20689
|
size: "small",
|
|
@@ -21492,9 +21294,9 @@ const stripInactiveFields = (duration, usedFormat) => {
|
|
|
21492
21294
|
const toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
21493
21295
|
|
|
21494
21296
|
const _hoisted_1$v = { class: "kds-interval-popover" };
|
|
21495
|
-
const _hoisted_2$
|
|
21496
|
-
const _hoisted_3$
|
|
21497
|
-
const _hoisted_4$
|
|
21297
|
+
const _hoisted_2$i = { class: "kds-interval-popover-header" };
|
|
21298
|
+
const _hoisted_3$d = { class: "kds-interval-popover-content" };
|
|
21299
|
+
const _hoisted_4$b = { class: "kds-interval-popover-grid" };
|
|
21498
21300
|
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21499
21301
|
__name: "IntervalInputPopover",
|
|
21500
21302
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -21590,7 +21392,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21590
21392
|
});
|
|
21591
21393
|
return (_ctx, _cache) => {
|
|
21592
21394
|
return openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
21593
|
-
createElementVNode("div", _hoisted_2$
|
|
21395
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
21594
21396
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)),
|
|
21595
21397
|
props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21596
21398
|
key: 0,
|
|
@@ -21602,7 +21404,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21602
21404
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
21603
21405
|
]),
|
|
21604
21406
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "kds-interval-popover-divider" }, null, -1)),
|
|
21605
|
-
createElementVNode("div", _hoisted_3$
|
|
21407
|
+
createElementVNode("div", _hoisted_3$d, [
|
|
21606
21408
|
props.allowDescending ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
21607
21409
|
key: 0,
|
|
21608
21410
|
modelValue: direction.value,
|
|
@@ -21612,7 +21414,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21612
21414
|
variant: "muted",
|
|
21613
21415
|
"possible-values": directionOptions
|
|
21614
21416
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
21615
|
-
createElementVNode("div", _hoisted_4$
|
|
21417
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
21616
21418
|
mode.value === unref(kdsIntervalInputFormat).DATE ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(periodNumericKeys), (key) => {
|
|
21617
21419
|
return openBlock(), createBlock(unref(_sfc_main$X), {
|
|
21618
21420
|
key,
|
|
@@ -21962,13 +21764,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21962
21764
|
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-f2ad3cef"]]);
|
|
21963
21765
|
|
|
21964
21766
|
const _hoisted_1$t = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
21965
|
-
const _hoisted_2$
|
|
21767
|
+
const _hoisted_2$h = {
|
|
21966
21768
|
key: 0,
|
|
21967
21769
|
class: "leading",
|
|
21968
21770
|
"aria-hidden": "true"
|
|
21969
21771
|
};
|
|
21970
|
-
const _hoisted_3$
|
|
21971
|
-
const _hoisted_4$
|
|
21772
|
+
const _hoisted_3$c = ["id"];
|
|
21773
|
+
const _hoisted_4$a = {
|
|
21972
21774
|
class: "trailing",
|
|
21973
21775
|
"aria-hidden": "true"
|
|
21974
21776
|
};
|
|
@@ -22053,7 +21855,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22053
21855
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
22054
21856
|
onKeydown
|
|
22055
21857
|
}, [
|
|
22056
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
21858
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$h, [
|
|
22057
21859
|
createVNode(_sfc_main$1q, {
|
|
22058
21860
|
accessory: props.accessory,
|
|
22059
21861
|
size: "medium"
|
|
@@ -22065,8 +21867,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
22065
21867
|
placeholder: !props.text && !__props.disabled,
|
|
22066
21868
|
missing: __props.missing
|
|
22067
21869
|
}])
|
|
22068
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
22069
|
-
createElementVNode("span", _hoisted_4$
|
|
21870
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$c),
|
|
21871
|
+
createElementVNode("span", _hoisted_4$a, [
|
|
22070
21872
|
createVNode(KdsIcon, {
|
|
22071
21873
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
22072
21874
|
size: "small"
|
|
@@ -22082,7 +21884,7 @@ const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "da
|
|
|
22082
21884
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
22083
21885
|
|
|
22084
21886
|
const _hoisted_1$s = { class: "kds-dropdown-container" };
|
|
22085
|
-
const _hoisted_2$
|
|
21887
|
+
const _hoisted_2$g = {
|
|
22086
21888
|
key: 0,
|
|
22087
21889
|
class: "kds-dropdown-container-sticky-top"
|
|
22088
21890
|
};
|
|
@@ -22171,7 +21973,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
22171
21973
|
});
|
|
22172
21974
|
return (_ctx, _cache) => {
|
|
22173
21975
|
return openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
22174
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
21976
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
|
|
22175
21977
|
createVNode(BaseInput, {
|
|
22176
21978
|
ref_key: "searchEl",
|
|
22177
21979
|
ref: searchEl,
|
|
@@ -22321,7 +22123,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
22321
22123
|
});
|
|
22322
22124
|
|
|
22323
22125
|
const _hoisted_1$r = { class: "kds-zoned-date-time-input" };
|
|
22324
|
-
const _hoisted_2$
|
|
22126
|
+
const _hoisted_2$f = { class: "date-time-row" };
|
|
22325
22127
|
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
22326
22128
|
__name: "KdsZonedDateTimeInput",
|
|
22327
22129
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -22432,7 +22234,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22432
22234
|
}, {
|
|
22433
22235
|
default: withCtx(() => [
|
|
22434
22236
|
createElementVNode("div", _hoisted_1$r, [
|
|
22435
|
-
createElementVNode("div", _hoisted_2$
|
|
22237
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
22436
22238
|
createVNode(_sfc_main$N, {
|
|
22437
22239
|
ref_key: "dateInput",
|
|
22438
22240
|
ref: dateInput,
|
|
@@ -22474,6 +22276,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
22474
22276
|
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-7dcebccd"]]);
|
|
22475
22277
|
|
|
22476
22278
|
const _hoisted_1$q = ["disabled"];
|
|
22279
|
+
const _hoisted_2$e = ["title"];
|
|
22477
22280
|
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
22478
22281
|
__name: "KdsListItemButton",
|
|
22479
22282
|
props: {
|
|
@@ -22499,28 +22302,25 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22499
22302
|
size: "small",
|
|
22500
22303
|
disabled: __props.disabled
|
|
22501
22304
|
}, null, 8, ["name", "disabled"]),
|
|
22502
|
-
|
|
22305
|
+
createElementVNode("span", {
|
|
22503
22306
|
ref_key: "labelEl",
|
|
22504
22307
|
ref: labelEl,
|
|
22505
|
-
class: "label"
|
|
22506
|
-
|
|
22507
|
-
|
|
22508
|
-
])), [
|
|
22509
|
-
[unref(vKdsTooltip), unref(isLabelTruncated) ? props.label : void 0]
|
|
22510
|
-
])
|
|
22308
|
+
class: "label",
|
|
22309
|
+
title: unref(isLabelTruncated) ? props.label : void 0
|
|
22310
|
+
}, toDisplayString(props.label), 9, _hoisted_2$e)
|
|
22511
22311
|
], 8, _hoisted_1$q);
|
|
22512
22312
|
};
|
|
22513
22313
|
}
|
|
22514
22314
|
});
|
|
22515
22315
|
|
|
22516
|
-
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
22316
|
+
const KdsListItemButton = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-21fb5571"]]);
|
|
22517
22317
|
|
|
22518
22318
|
const _hoisted_1$p = { class: "kds-multi-select-dropdown-options" };
|
|
22519
22319
|
const _hoisted_2$d = {
|
|
22520
22320
|
key: 0,
|
|
22521
22321
|
class: "kds-multi-select-dropdown-search"
|
|
22522
22322
|
};
|
|
22523
|
-
const _hoisted_3$
|
|
22323
|
+
const _hoisted_3$b = {
|
|
22524
22324
|
key: 1,
|
|
22525
22325
|
class: "kds-multi-select-dropdown-footer"
|
|
22526
22326
|
};
|
|
@@ -22677,7 +22477,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22677
22477
|
"aria-label": "Dropdown options",
|
|
22678
22478
|
onItemClick: _cache[4] || (_cache[4] = ($event) => $event !== void 0 && onItemClick($event))
|
|
22679
22479
|
}, null, 8, ["class", "possible-values", "loading", "empty-text", "controlled-externally"]),
|
|
22680
|
-
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
22480
|
+
!__props.loading && visibleEnabledIds.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
22681
22481
|
createVNode(unref(KdsListItemButton), {
|
|
22682
22482
|
label: anyVisibleSelected.value ? "Clear all" : "Select all",
|
|
22683
22483
|
"leading-icon": anyVisibleSelected.value ? "trash" : "checkmark",
|
|
@@ -23258,11 +23058,11 @@ const useMultiSelectListBoxSelection = ({
|
|
|
23258
23058
|
|
|
23259
23059
|
const _hoisted_1$m = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
23260
23060
|
const _hoisted_2$b = { class: "kds-multiselect-list-box-content-grid" };
|
|
23261
|
-
const _hoisted_3$
|
|
23061
|
+
const _hoisted_3$a = {
|
|
23262
23062
|
key: 0,
|
|
23263
23063
|
class: "kds-multiselect-sticky-bottom"
|
|
23264
23064
|
};
|
|
23265
|
-
const _hoisted_4$
|
|
23065
|
+
const _hoisted_4$9 = {
|
|
23266
23066
|
key: 0,
|
|
23267
23067
|
class: "kds-multiselect-empty"
|
|
23268
23068
|
};
|
|
@@ -23546,7 +23346,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23546
23346
|
}, null, 8, ["id", "class", "text", "accessory", "missing", "special", "data-option-index", "selected", "disabled", "active", "trailing-icon", "onDblclick", "onClick"]);
|
|
23547
23347
|
}), 128))
|
|
23548
23348
|
], 16),
|
|
23549
|
-
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
23349
|
+
visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
23550
23350
|
createVNode(unref(KdsListItem), {
|
|
23551
23351
|
id: generateOptionId(visibleBottomValue.value.id),
|
|
23552
23352
|
text: visibleBottomValue.value.text,
|
|
@@ -23567,7 +23367,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23567
23367
|
])) : createCommentVNode("", true)
|
|
23568
23368
|
])
|
|
23569
23369
|
], 16, _hoisted_1$m),
|
|
23570
|
-
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23370
|
+
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
|
|
23571
23371
|
createVNode(KdsEmptyState, {
|
|
23572
23372
|
headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
|
|
23573
23373
|
"loading-spinner": __props.loading,
|
|
@@ -23589,12 +23389,12 @@ const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scop
|
|
|
23589
23389
|
|
|
23590
23390
|
const _hoisted_1$l = { class: "kds-list-column" };
|
|
23591
23391
|
const _hoisted_2$a = { class: "kds-list-header" };
|
|
23592
|
-
const _hoisted_3$
|
|
23593
|
-
const _hoisted_4$
|
|
23392
|
+
const _hoisted_3$9 = { class: "kds-list-label" };
|
|
23393
|
+
const _hoisted_4$8 = {
|
|
23594
23394
|
key: 0,
|
|
23595
23395
|
class: "kds-list-count"
|
|
23596
23396
|
};
|
|
23597
|
-
const _hoisted_5$
|
|
23397
|
+
const _hoisted_5$4 = { class: "kds-button-column" };
|
|
23598
23398
|
const _hoisted_6$2 = { class: "kds-list-column" };
|
|
23599
23399
|
const _hoisted_7$1 = { class: "kds-list-header" };
|
|
23600
23400
|
const _hoisted_8$1 = { class: "kds-list-label" };
|
|
@@ -23779,8 +23579,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23779
23579
|
}, [
|
|
23780
23580
|
createElementVNode("div", _hoisted_1$l, [
|
|
23781
23581
|
createElementVNode("div", _hoisted_2$a, [
|
|
23782
|
-
createElementVNode("span", _hoisted_3$
|
|
23783
|
-
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
23582
|
+
createElementVNode("span", _hoisted_3$9, toDisplayString(__props.excludeLabel), 1),
|
|
23583
|
+
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$8, toDisplayString(leftOptions.value.length) + " of " + toDisplayString(excludedItems.value.length), 1)) : createCommentVNode("", true)
|
|
23784
23584
|
]),
|
|
23785
23585
|
createVNode(unref(KdsMultiSelectListBox), {
|
|
23786
23586
|
modelValue: leftSelected.value,
|
|
@@ -23799,7 +23599,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23799
23599
|
onKeyEnter: moveRight
|
|
23800
23600
|
}, null, 8, ["modelValue", "possible-values", "ariaLabel", "disabled", "error", "loading", "empty-state-label", "bottom-value"])
|
|
23801
23601
|
]),
|
|
23802
|
-
createElementVNode("div", _hoisted_5$
|
|
23602
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
23803
23603
|
createVNode(unref(_sfc_main$1v), {
|
|
23804
23604
|
"leading-icon": "chevron-right",
|
|
23805
23605
|
ariaLabel: "Move selected values right",
|
|
@@ -24221,8 +24021,8 @@ const useSortableListBoxReorder = ({
|
|
|
24221
24021
|
|
|
24222
24022
|
const _hoisted_1$j = { class: "kds-sortable-list-box-wrapper" };
|
|
24223
24023
|
const _hoisted_2$9 = { class: "kds-sortable-top-buttons" };
|
|
24224
|
-
const _hoisted_3$
|
|
24225
|
-
const _hoisted_4$
|
|
24024
|
+
const _hoisted_3$8 = { class: "kds-sortable-top-buttons-left" };
|
|
24025
|
+
const _hoisted_4$7 = { class: "kds-sortable-footer-buttons" };
|
|
24226
24026
|
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
24227
24027
|
__name: "KdsSortableListBox",
|
|
24228
24028
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -24282,7 +24082,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24282
24082
|
default: withCtx(() => [
|
|
24283
24083
|
createElementVNode("div", _hoisted_1$j, [
|
|
24284
24084
|
createElementVNode("div", _hoisted_2$9, [
|
|
24285
|
-
createElementVNode("div", _hoisted_3$
|
|
24085
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
24286
24086
|
createVNode(_sfc_main$1v, {
|
|
24287
24087
|
size: "small",
|
|
24288
24088
|
variant: "transparent",
|
|
@@ -24321,7 +24121,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24321
24121
|
ariaLabel: formFieldProps.label ?? formFieldProps.ariaLabel ?? ""
|
|
24322
24122
|
/* fallback only for TS */
|
|
24323
24123
|
}, null, 8, ["modelValue", "possible-values", "disabled", "error", "ariaLabel"]),
|
|
24324
|
-
createElementVNode("div", _hoisted_4$
|
|
24124
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
24325
24125
|
createVNode(_sfc_main$1v, {
|
|
24326
24126
|
size: "small",
|
|
24327
24127
|
variant: "transparent",
|
|
@@ -24409,12 +24209,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24409
24209
|
const isFocused = ref(false);
|
|
24410
24210
|
return (_ctx, _cache) => {
|
|
24411
24211
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24412
|
-
|
|
24212
|
+
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
24413
24213
|
class: {
|
|
24414
24214
|
"info-toggle-button": true,
|
|
24415
24215
|
selected: modelValue.value,
|
|
24416
24216
|
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
24417
24217
|
},
|
|
24218
|
+
title: TITLE,
|
|
24418
24219
|
"aria-label": TITLE,
|
|
24419
24220
|
"aria-pressed": modelValue.value,
|
|
24420
24221
|
"aria-expanded": modelValue.value,
|
|
@@ -24432,9 +24233,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24432
24233
|
name: "circle-question",
|
|
24433
24234
|
size: "small"
|
|
24434
24235
|
})
|
|
24435
|
-
], 16, _hoisted_1$h)
|
|
24436
|
-
[unref(vKdsTooltip), TITLE]
|
|
24437
|
-
]),
|
|
24236
|
+
], 16, _hoisted_1$h),
|
|
24438
24237
|
createVNode(KdsPopover, {
|
|
24439
24238
|
ref_key: "popoverEl",
|
|
24440
24239
|
ref: popoverEl,
|
|
@@ -24462,7 +24261,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
24462
24261
|
}
|
|
24463
24262
|
});
|
|
24464
24263
|
|
|
24465
|
-
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
24264
|
+
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-67a8974e"]]);
|
|
24466
24265
|
|
|
24467
24266
|
const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
24468
24267
|
__proto__: null,
|
|
@@ -24492,7 +24291,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
24492
24291
|
|
|
24493
24292
|
const VariablePopover = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8a0c56d0"]]);
|
|
24494
24293
|
|
|
24495
|
-
const _hoisted_1$f = ["aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
24294
|
+
const _hoisted_1$f = ["title", "aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
24496
24295
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24497
24296
|
__name: "KdsVariableToggleButton",
|
|
24498
24297
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -24557,13 +24356,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24557
24356
|
});
|
|
24558
24357
|
return (_ctx, _cache) => {
|
|
24559
24358
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
24560
|
-
|
|
24359
|
+
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
24561
24360
|
class: {
|
|
24562
24361
|
"variable-toggle-button": true,
|
|
24563
24362
|
error: __props.error,
|
|
24564
24363
|
"pressed-or-set": modelValue.value || __props.inSet || __props.outSet,
|
|
24565
24364
|
hidden: __props.hidden && !modelValue.value && !isHovered.value && !isFocused.value
|
|
24566
24365
|
},
|
|
24366
|
+
title: title.value,
|
|
24567
24367
|
"aria-label": title.value,
|
|
24568
24368
|
"aria-pressed": modelValue.value,
|
|
24569
24369
|
"aria-expanded": modelValue.value,
|
|
@@ -24581,9 +24381,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24581
24381
|
name: iconName.value,
|
|
24582
24382
|
size: "small"
|
|
24583
24383
|
}, null, 8, ["name"])
|
|
24584
|
-
], 16, _hoisted_1$f)
|
|
24585
|
-
[unref(vKdsTooltip), title.value]
|
|
24586
|
-
]),
|
|
24384
|
+
], 16, _hoisted_1$f),
|
|
24587
24385
|
createVNode(KdsPopover, {
|
|
24588
24386
|
ref_key: "popoverEl",
|
|
24589
24387
|
ref: popoverEl,
|
|
@@ -24611,13 +24409,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
24611
24409
|
}
|
|
24612
24410
|
});
|
|
24613
24411
|
|
|
24614
|
-
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
24412
|
+
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-b6d29842"]]);
|
|
24615
24413
|
|
|
24616
24414
|
const _hoisted_1$e = { class: "kds-accordion" };
|
|
24617
24415
|
const _hoisted_2$8 = ["name", "open", "onToggle"];
|
|
24618
|
-
const _hoisted_3$
|
|
24619
|
-
const _hoisted_4$
|
|
24620
|
-
const _hoisted_5$
|
|
24416
|
+
const _hoisted_3$7 = ["aria-disabled", "tabindex", "onClick", "onKeydown"];
|
|
24417
|
+
const _hoisted_4$6 = { class: "kds-accordion-headline-container" };
|
|
24418
|
+
const _hoisted_5$3 = { class: "kds-accordion-headline" };
|
|
24621
24419
|
const _hoisted_6$1 = { class: "kds-accordion-content" };
|
|
24622
24420
|
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
24623
24421
|
__name: "KdsAccordion",
|
|
@@ -24762,20 +24560,20 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
24762
24560
|
onClick: ($event) => onSummaryClick($event, item),
|
|
24763
24561
|
onKeydown: ($event) => handleTriggerKeydown($event, item)
|
|
24764
24562
|
}, [
|
|
24765
|
-
createElementVNode("span", _hoisted_4$
|
|
24563
|
+
createElementVNode("span", _hoisted_4$6, [
|
|
24766
24564
|
item.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
24767
24565
|
key: 0,
|
|
24768
24566
|
name: item.leadingIcon,
|
|
24769
24567
|
size: "small",
|
|
24770
24568
|
disabled: item.disabled
|
|
24771
24569
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
24772
|
-
createElementVNode("span", _hoisted_5$
|
|
24570
|
+
createElementVNode("span", _hoisted_5$3, toDisplayString(item.headline), 1)
|
|
24773
24571
|
]),
|
|
24774
24572
|
createVNode(KdsIcon, {
|
|
24775
24573
|
name: isItemExpanded(item.id) ? "chevron-up" : "chevron-down",
|
|
24776
24574
|
size: "small"
|
|
24777
24575
|
}, null, 8, ["name"])
|
|
24778
|
-
], 40, _hoisted_3$
|
|
24576
|
+
], 40, _hoisted_3$7),
|
|
24779
24577
|
createElementVNode("div", _hoisted_6$1, [
|
|
24780
24578
|
renderSlot(_ctx.$slots, item.id, { item }, void 0, true)
|
|
24781
24579
|
])
|
|
@@ -24793,8 +24591,8 @@ const _hoisted_2$7 = {
|
|
|
24793
24591
|
key: 0,
|
|
24794
24592
|
class: "accessory"
|
|
24795
24593
|
};
|
|
24796
|
-
const _hoisted_3$
|
|
24797
|
-
const _hoisted_4$
|
|
24594
|
+
const _hoisted_3$6 = { key: 1 };
|
|
24595
|
+
const _hoisted_4$5 = {
|
|
24798
24596
|
key: 2,
|
|
24799
24597
|
class: "actions",
|
|
24800
24598
|
"data-kds-card-secondary-action": ""
|
|
@@ -24810,8 +24608,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
24810
24608
|
_ctx.$slots.accessory ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
24811
24609
|
renderSlot(_ctx.$slots, "accessory", {}, void 0, true)
|
|
24812
24610
|
])) : createCommentVNode("", true),
|
|
24813
|
-
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$
|
|
24814
|
-
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24611
|
+
__props.headline ? (openBlock(), createElementBlock("h6", _hoisted_3$6, toDisplayString(__props.headline), 1)) : createCommentVNode("", true),
|
|
24612
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
24815
24613
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true)
|
|
24816
24614
|
])) : createCommentVNode("", true)
|
|
24817
24615
|
]);
|
|
@@ -25118,12 +24916,12 @@ const _hoisted_2$6 = {
|
|
|
25118
24916
|
key: 0,
|
|
25119
24917
|
class: "kds-panel-header"
|
|
25120
24918
|
};
|
|
25121
|
-
const _hoisted_3$
|
|
25122
|
-
const _hoisted_4$
|
|
24919
|
+
const _hoisted_3$5 = ["id"];
|
|
24920
|
+
const _hoisted_4$4 = {
|
|
25123
24921
|
key: 0,
|
|
25124
24922
|
class: "kds-panel-headline-text"
|
|
25125
24923
|
};
|
|
25126
|
-
const _hoisted_5$
|
|
24924
|
+
const _hoisted_5$2 = {
|
|
25127
24925
|
key: 1,
|
|
25128
24926
|
class: "kds-panel-header-trailing"
|
|
25129
24927
|
};
|
|
@@ -25173,15 +24971,15 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
25173
24971
|
id: unref(headlineId),
|
|
25174
24972
|
class: "kds-panel-headline"
|
|
25175
24973
|
}, [
|
|
25176
|
-
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$
|
|
24974
|
+
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
24975
|
size: "small",
|
|
25178
24976
|
onClick: __props.headline.onClick
|
|
25179
24977
|
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1k, mergeProps({ key: 2 }, __props.headline.props, {
|
|
25180
24978
|
size: "small",
|
|
25181
24979
|
onItemClick: __props.headline.onItemClick
|
|
25182
24980
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
25183
|
-
], 8, _hoisted_3$
|
|
25184
|
-
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
24981
|
+
], 8, _hoisted_3$5)) : createCommentVNode("", true),
|
|
24982
|
+
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
25185
24983
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
25186
24984
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
25187
24985
|
action.type === "button" ? (openBlock(), createBlock(_sfc_main$1v, mergeProps({
|
|
@@ -25380,9 +25178,9 @@ const useTabBarAdaptiveLayout = ({
|
|
|
25380
25178
|
};
|
|
25381
25179
|
|
|
25382
25180
|
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$
|
|
25181
|
+
const _hoisted_2$5 = ["id", "title", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
25182
|
+
const _hoisted_3$4 = { class: "kds-tab-label" };
|
|
25183
|
+
const _hoisted_4$3 = {
|
|
25386
25184
|
key: 1,
|
|
25387
25185
|
class: "kds-tab-indicator"
|
|
25388
25186
|
};
|
|
@@ -25401,7 +25199,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25401
25199
|
emits: ["update:modelValue"],
|
|
25402
25200
|
setup(__props) {
|
|
25403
25201
|
useCssVars((_ctx) => ({
|
|
25404
|
-
"
|
|
25202
|
+
"v09be89a3": minTabWidthCss
|
|
25405
25203
|
}));
|
|
25406
25204
|
const props = createPropsRestProxy(__props, ["size", "fullWidth", "disabled"]);
|
|
25407
25205
|
const modelValue = useModel(__props, "modelValue");
|
|
@@ -25519,7 +25317,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25519
25317
|
role: "tablist"
|
|
25520
25318
|
}, [
|
|
25521
25319
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
|
|
25522
|
-
return
|
|
25320
|
+
return openBlock(), createElementBlock("button", {
|
|
25523
25321
|
id: tab.id,
|
|
25524
25322
|
key: tab.value,
|
|
25525
25323
|
ref_for: true,
|
|
@@ -25529,6 +25327,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25529
25327
|
},
|
|
25530
25328
|
type: "button",
|
|
25531
25329
|
role: "tab",
|
|
25330
|
+
title: getTabTitle(tab),
|
|
25532
25331
|
"aria-selected": modelValue.value === tab.value,
|
|
25533
25332
|
"aria-controls": tab.panelId,
|
|
25534
25333
|
tabindex: focusableTabValue.value === tab.value ? 0 : -1,
|
|
@@ -25546,11 +25345,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25546
25345
|
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
25547
25346
|
disabled: isTabDisabled(tab)
|
|
25548
25347
|
}, 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
|
-
]);
|
|
25348
|
+
createElementVNode("span", _hoisted_3$4, toDisplayString(tab.label), 1),
|
|
25349
|
+
modelValue.value === tab.value ? (openBlock(), createElementBlock("span", _hoisted_4$3)) : createCommentVNode("", true)
|
|
25350
|
+
], 42, _hoisted_2$5);
|
|
25554
25351
|
}), 128))
|
|
25555
25352
|
], 2)
|
|
25556
25353
|
]);
|
|
@@ -25558,7 +25355,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
25558
25355
|
}
|
|
25559
25356
|
});
|
|
25560
25357
|
|
|
25561
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
25358
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-91f95f5f"]]);
|
|
25562
25359
|
|
|
25563
25360
|
const kdsTabBarSize = {
|
|
25564
25361
|
SMALL: "small",
|
|
@@ -25592,12 +25389,12 @@ const _hoisted_2$4 = {
|
|
|
25592
25389
|
key: 0,
|
|
25593
25390
|
class: "kds-loading-skeleton-headline-with-paragraph"
|
|
25594
25391
|
};
|
|
25595
|
-
const _hoisted_3$
|
|
25596
|
-
const _hoisted_4$
|
|
25392
|
+
const _hoisted_3$3 = { class: "kds-loading-skeleton-paragraph-lines" };
|
|
25393
|
+
const _hoisted_4$2 = {
|
|
25597
25394
|
key: 1,
|
|
25598
25395
|
class: "kds-loading-skeleton-input-with-label"
|
|
25599
25396
|
};
|
|
25600
|
-
const _hoisted_5 = { class: "kds-loading-skeleton-list-item-text" };
|
|
25397
|
+
const _hoisted_5$1 = { class: "kds-loading-skeleton-list-item-text" };
|
|
25601
25398
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
25602
25399
|
__name: "KdsLoadingSkeleton",
|
|
25603
25400
|
props: {
|
|
@@ -25621,12 +25418,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25621
25418
|
shape: "text",
|
|
25622
25419
|
class: "headline"
|
|
25623
25420
|
}),
|
|
25624
|
-
createElementVNode("div", _hoisted_3$
|
|
25421
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
25625
25422
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25626
25423
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25627
25424
|
createVNode(LoadingSkeletonItem, { shape: "text" })
|
|
25628
25425
|
])
|
|
25629
|
-
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
25426
|
+
])) : __props.variant === "input-with-label" ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
25630
25427
|
createVNode(LoadingSkeletonItem, {
|
|
25631
25428
|
shape: "label",
|
|
25632
25429
|
class: "label"
|
|
@@ -25646,7 +25443,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
25646
25443
|
createVNode(LoadingSkeletonItem, {
|
|
25647
25444
|
shape: __props.variant.startsWith("list-item-large") ? "icon-large" : "icon-small"
|
|
25648
25445
|
}, null, 8, ["shape"]),
|
|
25649
|
-
createElementVNode("div", _hoisted_5, [
|
|
25446
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
25650
25447
|
createVNode(LoadingSkeletonItem, { shape: "text" }),
|
|
25651
25448
|
__props.variant.endsWith("subtext") ? (openBlock(), createBlock(LoadingSkeletonItem, {
|
|
25652
25449
|
key: 0,
|
|
@@ -25708,7 +25505,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25708
25505
|
emits: ["click", "trailingButtonClick"],
|
|
25709
25506
|
setup(__props, { emit: __emit }) {
|
|
25710
25507
|
useCssVars((_ctx) => ({
|
|
25711
|
-
"
|
|
25508
|
+
"v29854424": paddingRight.value
|
|
25712
25509
|
}));
|
|
25713
25510
|
const props = __props;
|
|
25714
25511
|
const emit = __emit;
|
|
@@ -25752,9 +25549,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25752
25549
|
}
|
|
25753
25550
|
])
|
|
25754
25551
|
}, [
|
|
25755
|
-
|
|
25552
|
+
(openBlock(), createBlock(resolveDynamicComponent(navComponent.value), mergeProps({ class: "kds-nav-button" }, navComponentAttrs.value, {
|
|
25756
25553
|
disabled: __props.disabled,
|
|
25757
25554
|
"aria-current": __props.selected ? "page" : void 0,
|
|
25555
|
+
title: unref(isLabelTruncated) ? __props.label : void 0,
|
|
25758
25556
|
onClick
|
|
25759
25557
|
}), {
|
|
25760
25558
|
default: withCtx(() => [
|
|
@@ -25771,9 +25569,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25771
25569
|
}, toDisplayString(__props.label), 513)
|
|
25772
25570
|
]),
|
|
25773
25571
|
_: 1
|
|
25774
|
-
}, 16, ["disabled", "aria-current"])),
|
|
25775
|
-
[unref(vKdsTooltip), unref(isLabelTruncated) ? __props.label : void 0]
|
|
25776
|
-
]),
|
|
25572
|
+
}, 16, ["disabled", "aria-current", "title"])),
|
|
25777
25573
|
hasTrailingItems.value ? (openBlock(), createElementBlock("div", {
|
|
25778
25574
|
key: 0,
|
|
25779
25575
|
ref_key: "trailingItemsEl",
|
|
@@ -25797,7 +25593,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
25797
25593
|
}
|
|
25798
25594
|
});
|
|
25799
25595
|
|
|
25800
|
-
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
25596
|
+
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-17711664"]]);
|
|
25801
25597
|
|
|
25802
25598
|
const _hoisted_1$7 = ["aria-label"];
|
|
25803
25599
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -25848,8 +25644,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
25848
25644
|
|
|
25849
25645
|
const KdsNavigation = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-6cc9519f"]]);
|
|
25850
25646
|
|
|
25851
|
-
const _hoisted_1$6 =
|
|
25852
|
-
|
|
25647
|
+
const _hoisted_1$6 = {
|
|
25648
|
+
key: 1,
|
|
25649
|
+
class: "breadcrumb-label"
|
|
25650
|
+
};
|
|
25651
|
+
const _hoisted_2$3 = ["aria-label", "aria-current", "title"];
|
|
25652
|
+
const _hoisted_3$2 = {
|
|
25653
|
+
key: 1,
|
|
25654
|
+
class: "breadcrumb-label"
|
|
25655
|
+
};
|
|
25656
|
+
const _hoisted_4$1 = ["aria-label", "aria-current", "title"];
|
|
25657
|
+
const _hoisted_5 = {
|
|
25658
|
+
key: 1,
|
|
25659
|
+
class: "breadcrumb-label"
|
|
25660
|
+
};
|
|
25853
25661
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
25854
25662
|
__name: "BreadcrumbItem",
|
|
25855
25663
|
props: {
|
|
@@ -25860,11 +25668,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25860
25668
|
setup(__props, { emit: __emit }) {
|
|
25861
25669
|
const emit = __emit;
|
|
25862
25670
|
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
25671
|
const isLinkItem = computed(
|
|
25869
25672
|
() => !__props.isCurrentItem && "to" in __props.item && Boolean(__props.item.to)
|
|
25870
25673
|
);
|
|
@@ -25877,12 +25680,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25877
25680
|
}
|
|
25878
25681
|
};
|
|
25879
25682
|
return (_ctx, _cache) => {
|
|
25880
|
-
return isLinkItem.value ?
|
|
25683
|
+
return isLinkItem.value ? (openBlock(), createBlock(resolveDynamicComponent(unref(linkComponent)), {
|
|
25881
25684
|
key: 0,
|
|
25882
25685
|
class: "kds-breadcrumb-item",
|
|
25883
25686
|
to: __props.item.to,
|
|
25884
25687
|
"aria-label": __props.item.ariaLabel,
|
|
25885
|
-
"aria-current": __props.isCurrentItem ? "page" : void 0
|
|
25688
|
+
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25689
|
+
title: __props.item.title
|
|
25886
25690
|
}, {
|
|
25887
25691
|
default: withCtx(() => [
|
|
25888
25692
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
@@ -25890,22 +25694,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25890
25694
|
name: __props.item.leadingIcon,
|
|
25891
25695
|
class: "breadcrumb-icon"
|
|
25892
25696
|
}, 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)
|
|
25697
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25899
25698
|
]),
|
|
25900
25699
|
_: 1
|
|
25901
|
-
}, 8, ["to", "aria-label", "aria-current"])),
|
|
25902
|
-
[unref(vKdsTooltip), tooltipText.value]
|
|
25903
|
-
]) : isButtonItem.value ? withDirectives((openBlock(), createElementBlock("button", {
|
|
25700
|
+
}, 8, ["to", "aria-label", "aria-current", "title"])) : isButtonItem.value ? (openBlock(), createElementBlock("button", {
|
|
25904
25701
|
key: 1,
|
|
25905
25702
|
type: "button",
|
|
25906
25703
|
class: "kds-breadcrumb-item",
|
|
25907
25704
|
"aria-label": __props.item.ariaLabel,
|
|
25908
25705
|
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25706
|
+
title: __props.item.title,
|
|
25909
25707
|
onClick: onItemClick
|
|
25910
25708
|
}, [
|
|
25911
25709
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
@@ -25913,39 +25711,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
25913
25711
|
name: __props.item.leadingIcon,
|
|
25914
25712
|
class: "breadcrumb-icon"
|
|
25915
25713
|
}, 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", {
|
|
25714
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_3$2, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25715
|
+
], 8, _hoisted_2$3)) : (openBlock(), createElementBlock("span", {
|
|
25925
25716
|
key: 2,
|
|
25926
25717
|
class: "kds-breadcrumb-item",
|
|
25927
25718
|
"aria-label": __props.item.ariaLabel,
|
|
25928
|
-
"aria-current": __props.isCurrentItem ? "page" : void 0
|
|
25719
|
+
"aria-current": __props.isCurrentItem ? "page" : void 0,
|
|
25720
|
+
title: __props.item.title
|
|
25929
25721
|
}, [
|
|
25930
25722
|
__props.item.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
25931
25723
|
key: 0,
|
|
25932
25724
|
name: __props.item.leadingIcon,
|
|
25933
25725
|
class: "breadcrumb-icon"
|
|
25934
25726
|
}, 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
|
-
]);
|
|
25727
|
+
__props.item.text ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.item.text), 1)) : createCommentVNode("", true)
|
|
25728
|
+
], 8, _hoisted_4$1));
|
|
25944
25729
|
};
|
|
25945
25730
|
}
|
|
25946
25731
|
});
|
|
25947
25732
|
|
|
25948
|
-
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
25733
|
+
const BreadcrumbItem = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-fd7537fc"]]);
|
|
25949
25734
|
|
|
25950
25735
|
const useBreadcrumbAdaptiveLayout = (listRef, itemRefs, itemsSource) => {
|
|
25951
25736
|
const { width: listWidth } = useElementSize(listRef);
|
|
@@ -26487,6 +26272,182 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
26487
26272
|
|
|
26488
26273
|
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-41fc8d84"]]);
|
|
26489
26274
|
|
|
26275
|
+
const SHOW_DELAY = 450;
|
|
26276
|
+
const HIDE_DELAY = 150;
|
|
26277
|
+
const stateMap = /* @__PURE__ */ new WeakMap();
|
|
26278
|
+
let visibleCount = 0;
|
|
26279
|
+
let currentVisible = null;
|
|
26280
|
+
function generateTooltipDiv(text) {
|
|
26281
|
+
const div = document.createElement("div");
|
|
26282
|
+
div.classList.add("kds-tooltip");
|
|
26283
|
+
div.textContent = text;
|
|
26284
|
+
return div;
|
|
26285
|
+
}
|
|
26286
|
+
function getText(binding) {
|
|
26287
|
+
const value = binding.value;
|
|
26288
|
+
if (value === null || value === void 0 || value === "") {
|
|
26289
|
+
return null;
|
|
26290
|
+
}
|
|
26291
|
+
return String(value);
|
|
26292
|
+
}
|
|
26293
|
+
function createPopover(triggerEl, binding) {
|
|
26294
|
+
const popover = generateTooltipDiv(getText(binding) ?? "");
|
|
26295
|
+
popover.setAttribute("popover", "manual");
|
|
26296
|
+
popover.setAttribute("role", "tooltip");
|
|
26297
|
+
const id = `kds-tooltip-${crypto.randomUUID()}`;
|
|
26298
|
+
popover.id = id;
|
|
26299
|
+
triggerEl.setAttribute("aria-describedby", id);
|
|
26300
|
+
const anchorName = `--kds-tooltip-anchor-${id}`;
|
|
26301
|
+
triggerEl.style.setProperty("anchor-name", anchorName);
|
|
26302
|
+
popover.style.setProperty("position-anchor", anchorName);
|
|
26303
|
+
document.body.appendChild(popover);
|
|
26304
|
+
return popover;
|
|
26305
|
+
}
|
|
26306
|
+
function cancelTimers(state) {
|
|
26307
|
+
if (state.showTimer !== null) {
|
|
26308
|
+
clearTimeout(state.showTimer);
|
|
26309
|
+
state.showTimer = null;
|
|
26310
|
+
}
|
|
26311
|
+
if (state.hideTimer !== null) {
|
|
26312
|
+
clearTimeout(state.hideTimer);
|
|
26313
|
+
state.hideTimer = null;
|
|
26314
|
+
}
|
|
26315
|
+
}
|
|
26316
|
+
function hidePopover(state) {
|
|
26317
|
+
if (!state.visible) {
|
|
26318
|
+
return;
|
|
26319
|
+
}
|
|
26320
|
+
state.visible = false;
|
|
26321
|
+
visibleCount--;
|
|
26322
|
+
if (currentVisible === state) {
|
|
26323
|
+
currentVisible = null;
|
|
26324
|
+
}
|
|
26325
|
+
try {
|
|
26326
|
+
state.popoverEl.hidePopover();
|
|
26327
|
+
} catch {
|
|
26328
|
+
}
|
|
26329
|
+
}
|
|
26330
|
+
function showPopover(state) {
|
|
26331
|
+
if (state.visible) {
|
|
26332
|
+
return;
|
|
26333
|
+
}
|
|
26334
|
+
if (currentVisible && currentVisible !== state) {
|
|
26335
|
+
cancelTimers(currentVisible);
|
|
26336
|
+
hidePopover(currentVisible);
|
|
26337
|
+
}
|
|
26338
|
+
try {
|
|
26339
|
+
state.popoverEl.showPopover();
|
|
26340
|
+
} catch {
|
|
26341
|
+
}
|
|
26342
|
+
state.visible = true;
|
|
26343
|
+
visibleCount++;
|
|
26344
|
+
currentVisible = state;
|
|
26345
|
+
}
|
|
26346
|
+
function scheduleShow(state, delay) {
|
|
26347
|
+
cancelTimers(state);
|
|
26348
|
+
if (state.dismissed) {
|
|
26349
|
+
return;
|
|
26350
|
+
}
|
|
26351
|
+
state.showTimer = setTimeout(() => {
|
|
26352
|
+
state.showTimer = null;
|
|
26353
|
+
showPopover(state);
|
|
26354
|
+
}, delay);
|
|
26355
|
+
}
|
|
26356
|
+
function scheduleHide(state) {
|
|
26357
|
+
cancelTimers(state);
|
|
26358
|
+
state.hideTimer = setTimeout(() => {
|
|
26359
|
+
state.hideTimer = null;
|
|
26360
|
+
hidePopover(state);
|
|
26361
|
+
}, HIDE_DELAY);
|
|
26362
|
+
}
|
|
26363
|
+
function mount(triggerEl, binding) {
|
|
26364
|
+
if (getText(binding) === null) {
|
|
26365
|
+
return;
|
|
26366
|
+
}
|
|
26367
|
+
const popoverEl = createPopover(triggerEl, binding);
|
|
26368
|
+
const state = {
|
|
26369
|
+
popoverEl,
|
|
26370
|
+
showTimer: null,
|
|
26371
|
+
hideTimer: null,
|
|
26372
|
+
anchorName: popoverEl.id,
|
|
26373
|
+
dismissed: false,
|
|
26374
|
+
visible: false,
|
|
26375
|
+
scope: effectScope()
|
|
26376
|
+
};
|
|
26377
|
+
stateMap.set(triggerEl, state);
|
|
26378
|
+
const onMouseEnter = () => {
|
|
26379
|
+
state.dismissed = false;
|
|
26380
|
+
const delay = visibleCount > 0 ? 0 : SHOW_DELAY;
|
|
26381
|
+
scheduleShow(state, delay);
|
|
26382
|
+
};
|
|
26383
|
+
const onMouseLeave = () => scheduleHide(state);
|
|
26384
|
+
const onFocusIn = () => {
|
|
26385
|
+
state.dismissed = false;
|
|
26386
|
+
scheduleShow(state, 0);
|
|
26387
|
+
};
|
|
26388
|
+
const onFocusOut = () => {
|
|
26389
|
+
cancelTimers(state);
|
|
26390
|
+
hidePopover(state);
|
|
26391
|
+
};
|
|
26392
|
+
const onDocumentKeyDown = (e) => {
|
|
26393
|
+
if (e.key === "Escape" && state.visible) {
|
|
26394
|
+
cancelTimers(state);
|
|
26395
|
+
hidePopover(state);
|
|
26396
|
+
state.dismissed = true;
|
|
26397
|
+
}
|
|
26398
|
+
};
|
|
26399
|
+
const onPopoverMouseEnter = () => {
|
|
26400
|
+
cancelTimers(state);
|
|
26401
|
+
};
|
|
26402
|
+
const onPopoverMouseLeave = () => {
|
|
26403
|
+
scheduleHide(state);
|
|
26404
|
+
};
|
|
26405
|
+
state.scope.run(() => {
|
|
26406
|
+
useEventListener(triggerEl, "mouseenter", onMouseEnter);
|
|
26407
|
+
useEventListener(triggerEl, "mouseleave", onMouseLeave);
|
|
26408
|
+
useEventListener(triggerEl, "focusin", onFocusIn);
|
|
26409
|
+
useEventListener(triggerEl, "focusout", onFocusOut);
|
|
26410
|
+
useEventListener(document, "keydown", onDocumentKeyDown, true);
|
|
26411
|
+
useEventListener(popoverEl, "mouseenter", onPopoverMouseEnter);
|
|
26412
|
+
useEventListener(popoverEl, "mouseleave", onPopoverMouseLeave);
|
|
26413
|
+
});
|
|
26414
|
+
}
|
|
26415
|
+
function unmount(triggerEl) {
|
|
26416
|
+
const state = stateMap.get(triggerEl);
|
|
26417
|
+
if (state) {
|
|
26418
|
+
state.scope.stop();
|
|
26419
|
+
cancelTimers(state);
|
|
26420
|
+
hidePopover(state);
|
|
26421
|
+
state.popoverEl.remove();
|
|
26422
|
+
stateMap.delete(triggerEl);
|
|
26423
|
+
}
|
|
26424
|
+
triggerEl.removeAttribute("aria-describedby");
|
|
26425
|
+
triggerEl.style.removeProperty("anchor-name");
|
|
26426
|
+
}
|
|
26427
|
+
const vKdsTooltip = {
|
|
26428
|
+
mounted(el, binding) {
|
|
26429
|
+
mount(el, binding);
|
|
26430
|
+
},
|
|
26431
|
+
updated(el, binding) {
|
|
26432
|
+
const state = stateMap.get(el);
|
|
26433
|
+
const newText = getText(binding);
|
|
26434
|
+
if (newText === null) {
|
|
26435
|
+
if (state) {
|
|
26436
|
+
unmount(el);
|
|
26437
|
+
}
|
|
26438
|
+
return;
|
|
26439
|
+
}
|
|
26440
|
+
if (!state) {
|
|
26441
|
+
mount(el, binding);
|
|
26442
|
+
return;
|
|
26443
|
+
}
|
|
26444
|
+
state.popoverEl.textContent = newText;
|
|
26445
|
+
},
|
|
26446
|
+
unmounted(el) {
|
|
26447
|
+
unmount(el);
|
|
26448
|
+
}
|
|
26449
|
+
};
|
|
26450
|
+
|
|
26490
26451
|
const _hoisted_1$1 = {
|
|
26491
26452
|
ref: "measureContainer",
|
|
26492
26453
|
class: "kds-button-group-measure",
|