@knime/kds-components 11.6.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/{KdsIcon-CJrxt0gq.js → KdsIcon-DWTHABhA.js} +6 -47
- package/dist/KdsIcon-DWTHABhA.js.map +1 -0
- package/dist/KdsIcon.css +2 -0
- package/dist/{KdsPopover-Bqel9iqk.js → KdsPopover-DezPib64.js} +28 -13
- package/dist/KdsPopover-DezPib64.js.map +1 -0
- package/dist/KdsPopover.css +17 -17
- package/dist/index.css +43 -40
- package/dist/index.js +224 -236
- package/dist/index.js.map +1 -1
- package/dist/src/components/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/_helper/VariablePopover/KdsVariableToggleButton.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
- package/dist/src/components/forms/inputs/TextInput/KdsTextInput.vue.d.ts.map +1 -1
- package/dist/src/components/lists/Menu/KdsMenu.vue.d.ts +3 -7
- package/dist/src/components/lists/Menu/KdsMenu.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuContainer.vue.d.ts.map +1 -1
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts +1 -6
- package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.d.ts +1 -1
- package/dist/src/layouts/explorer/FileExplorer/utils/popoverAnchorElement.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Popover/KdsPopover.vue.d.ts +4 -0
- package/dist/src/layouts/overlays/Popover/KdsPopover.vue.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Popover/types.d.ts +11 -5
- package/dist/src/layouts/overlays/Popover/types.d.ts.map +1 -1
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts +0 -2
- package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/KdsIcon-CJrxt0gq.js.map +0 -1
- package/dist/KdsPopover-Bqel9iqk.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as kdsPopoverRole, c as kdsPopoverTypes, i as kdsPopoverPlacements, l as _plugin_vue_export_helper_default, o as kdsPopoverRoles, r as kdsPopoverPlacement, s as kdsPopoverType, t as KdsPopover_default, u as __exportAll$1 } from "./KdsPopover-
|
|
2
|
-
import { a as useKdsIsTruncated, i as elementOverflowsHorizontally, n as useIcon, r as vKdsTooltip, t as KdsIcon_default } from "./KdsIcon-
|
|
1
|
+
import { a as kdsPopoverRole, c as kdsPopoverTypes, i as kdsPopoverPlacements, l as _plugin_vue_export_helper_default, o as kdsPopoverRoles, r as kdsPopoverPlacement, s as kdsPopoverType, t as KdsPopover_default, u as __exportAll$1 } from "./KdsPopover-DezPib64.js";
|
|
2
|
+
import { a as useKdsIsTruncated, i as elementOverflowsHorizontally, n as useIcon, r as vKdsTooltip, t as KdsIcon_default } from "./KdsIcon-DWTHABhA.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createPropsRestProxy, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, effectScope, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onScopeDispose, onUnmounted, openBlock, provide, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, unref, useAttrs, useCssVars, useId, useModel, useSlots, useTemplateRef, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { onClickOutside, useElementSize, useEventListener, useLocalStorage, useMousePressed, useMutationObserver, usePreferredDark, useRafFn, useResizeObserver, useTemplateRefsList, useVirtualList } from "@vueuse/core";
|
|
5
5
|
import './index.css';//#region src/components/accessories/Avatar/enums.ts
|
|
@@ -22,13 +22,13 @@ var kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
|
22
22
|
var nameInitials = (name) => name.split(/[., _-]+/).filter(Boolean).slice(0, 2).map((part) => [...part][0].toUpperCase()).join("");
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/components/accessories/Avatar/KdsAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var _hoisted_1$
|
|
25
|
+
var _hoisted_1$90 = [
|
|
26
26
|
"role",
|
|
27
27
|
"aria-hidden",
|
|
28
28
|
"aria-label",
|
|
29
29
|
"data-color"
|
|
30
30
|
];
|
|
31
|
-
var _hoisted_2$
|
|
31
|
+
var _hoisted_2$54 = ["src"];
|
|
32
32
|
var _hoisted_3$40 = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "kds-avatar-initials",
|
|
@@ -93,14 +93,14 @@ var KdsAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
93
93
|
alt: "",
|
|
94
94
|
"aria-hidden": "true",
|
|
95
95
|
onError: onImageError
|
|
96
|
-
}, null, 40, _hoisted_2$
|
|
96
|
+
}, null, 40, _hoisted_2$54)) : (openBlock(), createElementBlock("div", _hoisted_3$40, [createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)]))], 10, _hoisted_1$90)), [[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]]);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
}), [["__scopeId", "data-v-971c1c8a"]]);
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/components/accessories/Avatar/KdsAvatarCounter.vue?vue&type=script&setup=true&lang.ts
|
|
102
|
-
var _hoisted_1$
|
|
103
|
-
var _hoisted_2$
|
|
102
|
+
var _hoisted_1$89 = ["aria-label"];
|
|
103
|
+
var _hoisted_2$53 = { class: "avatars" };
|
|
104
104
|
var _hoisted_3$39 = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "more-count",
|
|
@@ -131,14 +131,14 @@ var KdsAvatarCounter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
131
131
|
class: "kds-avatar-counter",
|
|
132
132
|
role: "group",
|
|
133
133
|
"aria-label": ariaLabel.value
|
|
134
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
134
|
+
}, [createElementVNode("div", _hoisted_2$53, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.avatars, (avatar, index) => {
|
|
135
135
|
return openBlock(), createBlock(KdsAvatar_default, mergeProps({
|
|
136
136
|
key: index,
|
|
137
137
|
"aria-hidden": "true",
|
|
138
138
|
style: { zIndex: __props.avatars.length - index },
|
|
139
139
|
class: "avatar"
|
|
140
140
|
}, { ref_for: true }, avatar, { size: __props.size }), null, 16, ["style", "size"]);
|
|
141
|
-
}), 128))]), __props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$39, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)], 8, _hoisted_1$
|
|
141
|
+
}), 128))]), __props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$39, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)], 8, _hoisted_1$89);
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
}), [["__scopeId", "data-v-0bcb6934"]]);
|
|
@@ -494,7 +494,7 @@ var kdsDataTypeSize = {
|
|
|
494
494
|
var kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
495
495
|
//#endregion
|
|
496
496
|
//#region src/components/accessories/Icon/KdsDataType.vue?vue&type=script&setup=true&lang.ts
|
|
497
|
-
var _hoisted_1$
|
|
497
|
+
var _hoisted_1$88 = ["data-kds-icon-name"];
|
|
498
498
|
//#endregion
|
|
499
499
|
//#region src/components/accessories/Icon/KdsDataType.vue
|
|
500
500
|
var KdsDataType_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -553,7 +553,7 @@ var KdsDataType_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
553
553
|
]),
|
|
554
554
|
"aria-hidden": "true",
|
|
555
555
|
focusable: "false"
|
|
556
|
-
}, null, 8, ["class"]))], 10, _hoisted_1$
|
|
556
|
+
}, null, 8, ["class"]))], 10, _hoisted_1$88)), [[unref(vKdsTooltip), resolvedTitle.value]]);
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
}), [["__scopeId", "data-v-b85206a7"]]);
|
|
@@ -575,7 +575,7 @@ var kdsBadgeSize = {
|
|
|
575
575
|
var kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
576
576
|
//#endregion
|
|
577
577
|
//#region src/components/accessories/Badge/KdsBadge.vue?vue&type=script&setup=true&lang.ts
|
|
578
|
-
var _hoisted_1$
|
|
578
|
+
var _hoisted_1$87 = { class: "label-wrapper" };
|
|
579
579
|
//#endregion
|
|
580
580
|
//#region src/components/accessories/Badge/KdsBadge.vue
|
|
581
581
|
var KdsBadge_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -600,7 +600,7 @@ var KdsBadge_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
600
600
|
key: 0,
|
|
601
601
|
name: __props.leadingIcon,
|
|
602
602
|
size: sizeToIconSize[__props.size]
|
|
603
|
-
}, null, 8, ["name", "size"])) : createCommentVNode("", true), createElementVNode("span", _hoisted_1$
|
|
603
|
+
}, null, 8, ["name", "size"])) : createCommentVNode("", true), createElementVNode("span", _hoisted_1$87, toDisplayString(__props.label), 1)], 2);
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
}), [["__scopeId", "data-v-ed7689bb"]]);
|
|
@@ -6867,7 +6867,7 @@ var kdsColorSwatchSize = {
|
|
|
6867
6867
|
var kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
6868
6868
|
//#endregion
|
|
6869
6869
|
//#region src/components/accessories/ColorSwatch/KdsColorSwatch.vue?vue&type=script&setup=true&lang.ts
|
|
6870
|
-
var _hoisted_1$
|
|
6870
|
+
var _hoisted_1$86 = [
|
|
6871
6871
|
"role",
|
|
6872
6872
|
"aria-hidden",
|
|
6873
6873
|
"aria-label"
|
|
@@ -6942,7 +6942,7 @@ var KdsColorSwatch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
6942
6942
|
style: normalizeStyle(swatchStyle.value),
|
|
6943
6943
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
6944
6944
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
6945
|
-
}, null, 14, _hoisted_1$
|
|
6945
|
+
}, null, 14, _hoisted_1$86)), [[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]]);
|
|
6946
6946
|
};
|
|
6947
6947
|
}
|
|
6948
6948
|
}), [["__scopeId", "data-v-2f562103"]]);
|
|
@@ -6952,12 +6952,12 @@ var PORT_SIZE = 8;
|
|
|
6952
6952
|
var PORT_STROKE_WIDTH = 1.4;
|
|
6953
6953
|
//#endregion
|
|
6954
6954
|
//#region src/components/accessories/PortIcon/KdsPortIcon.vue?vue&type=script&setup=true&lang.ts
|
|
6955
|
-
var _hoisted_1$
|
|
6955
|
+
var _hoisted_1$85 = [
|
|
6956
6956
|
"points",
|
|
6957
6957
|
"data-type",
|
|
6958
6958
|
"stroke-width"
|
|
6959
6959
|
];
|
|
6960
|
-
var _hoisted_2$
|
|
6960
|
+
var _hoisted_2$52 = [
|
|
6961
6961
|
"r",
|
|
6962
6962
|
"data-type",
|
|
6963
6963
|
"stroke-width"
|
|
@@ -7022,13 +7022,13 @@ var KdsPortIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
7022
7022
|
class: normalizeClass({ optional: __props.optional }),
|
|
7023
7023
|
"data-type": __props.type,
|
|
7024
7024
|
"stroke-width": unref(PORT_STROKE_WIDTH)
|
|
7025
|
-
}, null, 10, _hoisted_1$
|
|
7025
|
+
}, null, 10, _hoisted_1$85)) : __props.type === "flowVariable" ? (openBlock(), createElementBlock("circle", {
|
|
7026
7026
|
key: 1,
|
|
7027
7027
|
r: unref(8) / 2 - unref(PORT_STROKE_WIDTH) / 2,
|
|
7028
7028
|
class: normalizeClass({ optional: __props.optional }),
|
|
7029
7029
|
"data-type": __props.type,
|
|
7030
7030
|
"stroke-width": unref(PORT_STROKE_WIDTH)
|
|
7031
|
-
}, null, 10, _hoisted_2$
|
|
7031
|
+
}, null, 10, _hoisted_2$52)) : (openBlock(), createElementBlock("rect", {
|
|
7032
7032
|
key: 2,
|
|
7033
7033
|
width: unref(8) - unref(PORT_STROKE_WIDTH),
|
|
7034
7034
|
height: unref(8) - unref(PORT_STROKE_WIDTH),
|
|
@@ -10069,8 +10069,8 @@ var KdsKeyboardShortcut_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10069
10069
|
}), [["__scopeId", "data-v-5a9d1e42"]]);
|
|
10070
10070
|
//#endregion
|
|
10071
10071
|
//#region src/components/accessories/LiveStatus/KdsLiveStatus.vue?vue&type=script&setup=true&lang.ts
|
|
10072
|
-
var _hoisted_1$
|
|
10073
|
-
var _hoisted_2$
|
|
10072
|
+
var _hoisted_1$84 = ["aria-label"];
|
|
10073
|
+
var _hoisted_2$51 = {
|
|
10074
10074
|
key: 0,
|
|
10075
10075
|
class: "label"
|
|
10076
10076
|
};
|
|
@@ -10100,11 +10100,11 @@ var KdsLiveStatus_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
10100
10100
|
]),
|
|
10101
10101
|
role: "img",
|
|
10102
10102
|
"aria-label": accessibleTitle.value
|
|
10103
|
-
}, [_cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)), __props.label ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$
|
|
10103
|
+
}, [_cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)), __props.label ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$51, [createTextVNode(toDisplayString(__props.label), 1)])), [[
|
|
10104
10104
|
unref(vKdsTooltip),
|
|
10105
10105
|
__props.label,
|
|
10106
10106
|
"truncated"
|
|
10107
|
-
]]) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
10107
|
+
]]) : createCommentVNode("", true)], 10, _hoisted_1$84)), [[unref(vKdsTooltip), !__props.label ? accessibleTitle.value : void 0]]);
|
|
10108
10108
|
};
|
|
10109
10109
|
}
|
|
10110
10110
|
}), [["__scopeId", "data-v-d5a7f94a"]]);
|
|
@@ -10125,7 +10125,7 @@ var kdsLiveStatusSize = {
|
|
|
10125
10125
|
var kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
10126
10126
|
//#endregion
|
|
10127
10127
|
//#region src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
10128
|
-
var _hoisted_1$
|
|
10128
|
+
var _hoisted_1$83 = ["data-style"];
|
|
10129
10129
|
//#endregion
|
|
10130
10130
|
//#region src/components/accessories/LoadingSpinner/KdsLoadingSpinner.vue
|
|
10131
10131
|
var KdsLoadingSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -10150,7 +10150,7 @@ var KdsLoadingSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
10150
10150
|
cx: "60",
|
|
10151
10151
|
cy: "60",
|
|
10152
10152
|
r: "50"
|
|
10153
|
-
}, null, -1)])], 10, _hoisted_1$
|
|
10153
|
+
}, null, -1)])], 10, _hoisted_1$83);
|
|
10154
10154
|
};
|
|
10155
10155
|
}
|
|
10156
10156
|
}), [["__scopeId", "data-v-ea91036d"]]);
|
|
@@ -10178,8 +10178,8 @@ var KdsMissingValueIcon_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
10178
10178
|
}), [["__scopeId", "data-v-e6901949"]]);
|
|
10179
10179
|
//#endregion
|
|
10180
10180
|
//#region src/components/accessories/Text/KdsTextHighlight/KdsTextHighlight.vue?vue&type=script&setup=true&lang.ts
|
|
10181
|
-
var _hoisted_1$
|
|
10182
|
-
var _hoisted_2$
|
|
10181
|
+
var _hoisted_1$82 = { class: "kds-highlighted-text" };
|
|
10182
|
+
var _hoisted_2$50 = {
|
|
10183
10183
|
key: 0,
|
|
10184
10184
|
class: "kds-highlighted-text-match"
|
|
10185
10185
|
};
|
|
@@ -10223,8 +10223,8 @@ var KdsTextHighlight_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
10223
10223
|
return result;
|
|
10224
10224
|
});
|
|
10225
10225
|
return (_ctx, _cache) => {
|
|
10226
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
10227
|
-
return openBlock(), createElementBlock(Fragment, { key: index }, [segment.match ? (openBlock(), createElementBlock("mark", _hoisted_2$
|
|
10226
|
+
return openBlock(), createElementBlock("span", _hoisted_1$82, [(openBlock(true), createElementBlock(Fragment, null, renderList(segments.value, (segment, index) => {
|
|
10227
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [segment.match ? (openBlock(), createElementBlock("mark", _hoisted_2$50, toDisplayString(segment.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(segment.text), 1)], 64))], 64);
|
|
10228
10228
|
}), 128))]);
|
|
10229
10229
|
};
|
|
10230
10230
|
}
|
|
@@ -10232,9 +10232,9 @@ var KdsTextHighlight_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
10232
10232
|
//#endregion
|
|
10233
10233
|
//#region src/components/accessories/Divider/KdsDivider.vue
|
|
10234
10234
|
var _sfc_main = {};
|
|
10235
|
-
var _hoisted_1$
|
|
10235
|
+
var _hoisted_1$81 = { class: "kds-divider" };
|
|
10236
10236
|
function _sfc_render$1(_ctx, _cache) {
|
|
10237
|
-
return openBlock(), createElementBlock("hr", _hoisted_1$
|
|
10237
|
+
return openBlock(), createElementBlock("hr", _hoisted_1$81);
|
|
10238
10238
|
}
|
|
10239
10239
|
var KdsDivider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render$1], ["__scopeId", "data-v-dead6417"]]);
|
|
10240
10240
|
//#endregion
|
|
@@ -10256,7 +10256,7 @@ var kdsAccessorySize = {
|
|
|
10256
10256
|
var kdsAccessorySizes = Object.values(kdsAccessorySize);
|
|
10257
10257
|
//#endregion
|
|
10258
10258
|
//#region src/components/buttons/BaseButton.vue?vue&type=script&setup=true&lang.ts
|
|
10259
|
-
var _hoisted_1$
|
|
10259
|
+
var _hoisted_1$80 = {
|
|
10260
10260
|
key: 0,
|
|
10261
10261
|
class: "label"
|
|
10262
10262
|
};
|
|
@@ -10342,7 +10342,7 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
10342
10342
|
name: props.leadingIcon,
|
|
10343
10343
|
size: iconSize.value
|
|
10344
10344
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)], true),
|
|
10345
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
10345
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$80, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
10346
10346
|
props.label ? renderSlot(_ctx.$slots, "trailing", {}, () => [props.trailingIcon ? (openBlock(), createBlock(KdsIcon_default, {
|
|
10347
10347
|
key: 0,
|
|
10348
10348
|
name: props.trailingIcon,
|
|
@@ -10525,8 +10525,8 @@ var kdsModalLayoutPropsDefault = {
|
|
|
10525
10525
|
kdsModalHeight.AUTO, kdsModalWidth.MEDIUM, kdsModalClosedBy.CLOSEREQUEST, { ...kdsModalLayoutPropsDefault };
|
|
10526
10526
|
//#endregion
|
|
10527
10527
|
//#region src/layouts/overlays/Modal/KdsModalLayout.vue?vue&type=script&setup=true&lang.ts
|
|
10528
|
-
var _hoisted_1$
|
|
10529
|
-
var _hoisted_2$
|
|
10528
|
+
var _hoisted_1$79 = { class: "modal-header" };
|
|
10529
|
+
var _hoisted_2$49 = { class: "modal-header-headline" };
|
|
10530
10530
|
var _hoisted_3$37 = ["data-variant"];
|
|
10531
10531
|
var _hoisted_4$32 = {
|
|
10532
10532
|
key: 0,
|
|
@@ -10553,13 +10553,13 @@ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10553
10553
|
]);
|
|
10554
10554
|
return (_ctx, _cache) => {
|
|
10555
10555
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
10556
|
-
createElementVNode("header", _hoisted_1$
|
|
10556
|
+
createElementVNode("header", _hoisted_1$79, [
|
|
10557
10557
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon_default, {
|
|
10558
10558
|
key: 0,
|
|
10559
10559
|
name: props.leadingIcon,
|
|
10560
10560
|
size: "medium"
|
|
10561
10561
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
10562
|
-
createElementVNode("div", _hoisted_2$
|
|
10562
|
+
createElementVNode("div", _hoisted_2$49, toDisplayString(__props.headline), 1),
|
|
10563
10563
|
createVNode(KdsButton_default, {
|
|
10564
10564
|
"leading-icon": "x-close",
|
|
10565
10565
|
variant: "transparent",
|
|
@@ -10580,7 +10580,7 @@ var KdsModalLayout_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
10580
10580
|
}), [["__scopeId", "data-v-3e1612e8"]]);
|
|
10581
10581
|
//#endregion
|
|
10582
10582
|
//#region src/layouts/overlays/Modal/KdsModal.vue?vue&type=script&setup=true&lang.ts
|
|
10583
|
-
var _hoisted_1$
|
|
10583
|
+
var _hoisted_1$78 = ["closedby"];
|
|
10584
10584
|
//#endregion
|
|
10585
10585
|
//#region src/layouts/overlays/Modal/KdsModal.vue
|
|
10586
10586
|
var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -10665,14 +10665,14 @@ var KdsModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
10665
10665
|
"leading-icon",
|
|
10666
10666
|
"variant",
|
|
10667
10667
|
"overflow"
|
|
10668
|
-
])], true)], 42, _hoisted_1$
|
|
10668
|
+
])], true)], 42, _hoisted_1$78)) : createCommentVNode("", true);
|
|
10669
10669
|
};
|
|
10670
10670
|
}
|
|
10671
10671
|
}), [["__scopeId", "data-v-9c8c5863"]]);
|
|
10672
10672
|
//#endregion
|
|
10673
10673
|
//#region src/components/forms/_helper/KdsSubText.vue?vue&type=script&setup=true&lang.ts
|
|
10674
|
-
var _hoisted_1$
|
|
10675
|
-
var _hoisted_2$
|
|
10674
|
+
var _hoisted_1$77 = ["id"];
|
|
10675
|
+
var _hoisted_2$48 = { class: "subtext-text" };
|
|
10676
10676
|
//#endregion
|
|
10677
10677
|
//#region src/components/forms/_helper/KdsSubText.vue
|
|
10678
10678
|
var KdsSubText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -10728,20 +10728,20 @@ var KdsSubText_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
10728
10728
|
size: "small",
|
|
10729
10729
|
variant: "onSurface",
|
|
10730
10730
|
"aria-hidden": "true"
|
|
10731
|
-
})) : createCommentVNode("", true), createElementVNode("span", _hoisted_2$
|
|
10731
|
+
})) : createCommentVNode("", true), createElementVNode("span", _hoisted_2$48, toDisplayString(props.subText), 1)], 10, _hoisted_1$77)) : createCommentVNode("", true);
|
|
10732
10732
|
};
|
|
10733
10733
|
}
|
|
10734
10734
|
}), [["__scopeId", "data-v-1bd6d710"]]);
|
|
10735
10735
|
//#endregion
|
|
10736
10736
|
//#region src/components/forms/Checkbox/BaseCheckbox.vue?vue&type=script&setup=true&lang.ts
|
|
10737
|
-
var _hoisted_1$
|
|
10737
|
+
var _hoisted_1$76 = [
|
|
10738
10738
|
"disabled",
|
|
10739
10739
|
"aria-label",
|
|
10740
10740
|
"aria-checked",
|
|
10741
10741
|
"aria-describedby",
|
|
10742
10742
|
"aria-invalid"
|
|
10743
10743
|
];
|
|
10744
|
-
var _hoisted_2$
|
|
10744
|
+
var _hoisted_2$47 = { class: "control" };
|
|
10745
10745
|
var _hoisted_3$36 = {
|
|
10746
10746
|
key: 0,
|
|
10747
10747
|
class: "content"
|
|
@@ -10818,7 +10818,7 @@ var BaseCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
10818
10818
|
type: "button",
|
|
10819
10819
|
role: "checkbox",
|
|
10820
10820
|
onClick: handleClick
|
|
10821
|
-
}, [createElementVNode("div", _hoisted_2$
|
|
10821
|
+
}, [createElementVNode("div", _hoisted_2$47, [icon.value ? (openBlock(), createBlock(KdsIcon_default, {
|
|
10822
10822
|
key: 0,
|
|
10823
10823
|
name: icon.value,
|
|
10824
10824
|
class: "icon",
|
|
@@ -10827,7 +10827,7 @@ var BaseCheckbox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
10827
10827
|
key: 0,
|
|
10828
10828
|
id: unref(helperId),
|
|
10829
10829
|
class: "helper-text"
|
|
10830
|
-
}, toDisplayString(props.helperText), 9, _hoisted_5$17)) : createCommentVNode("", true)])) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
10830
|
+
}, toDisplayString(props.helperText), 9, _hoisted_5$17)) : createCommentVNode("", true)])) : createCommentVNode("", true)], 10, _hoisted_1$76)), [[unref(vKdsTooltip), props.tooltip]]), props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$11, [createVNode(KdsSubText_default, {
|
|
10831
10831
|
id: unref(descriptionId),
|
|
10832
10832
|
"sub-text": props.subText,
|
|
10833
10833
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
@@ -10980,11 +10980,11 @@ var useKdsDynamicModal = () => {
|
|
|
10980
10980
|
};
|
|
10981
10981
|
//#endregion
|
|
10982
10982
|
//#region src/layouts/overlays/Modal/KdsDynamicModalProvider.vue?vue&type=script&setup=true&lang.ts
|
|
10983
|
-
var _hoisted_1$
|
|
10983
|
+
var _hoisted_1$75 = {
|
|
10984
10984
|
key: 1,
|
|
10985
10985
|
class: "confirmation"
|
|
10986
10986
|
};
|
|
10987
|
-
var _hoisted_2$
|
|
10987
|
+
var _hoisted_2$46 = { class: "message" };
|
|
10988
10988
|
var _hoisted_3$35 = {
|
|
10989
10989
|
key: 0,
|
|
10990
10990
|
class: "ask-again"
|
|
@@ -11036,7 +11036,7 @@ var KdsDynamicModalProvider_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
11036
11036
|
return openBlock(), createBlock(KdsModal_default, mergeProps({ class: "confirm-modal" }, kdsModalProps.value), createSlots({ _: 2 }, [
|
|
11037
11037
|
unref(config)?.type === "confirm" ? {
|
|
11038
11038
|
name: "body",
|
|
11039
|
-
fn: withCtx(() => [unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
11039
|
+
fn: withCtx(() => [unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$75, [createElementVNode("div", _hoisted_2$46, toDisplayString(unref(config).value.message), 1), unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3$35, [createVNode(KdsCheckbox_default, {
|
|
11040
11040
|
modelValue: askAgain.value,
|
|
11041
11041
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
11042
11042
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -11087,7 +11087,7 @@ var KdsDynamicModalProvider_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
11087
11087
|
}), [["__scopeId", "data-v-9937b6b2"]]);
|
|
11088
11088
|
//#endregion
|
|
11089
11089
|
//#region src/layouts/overlays/SideDrawer/KdsSideDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
11090
|
-
var _hoisted_1$
|
|
11090
|
+
var _hoisted_1$74 = ["data-width"];
|
|
11091
11091
|
//#endregion
|
|
11092
11092
|
//#region src/layouts/overlays/SideDrawer/KdsSideDrawer.vue
|
|
11093
11093
|
var KdsSideDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -11113,14 +11113,14 @@ var KdsSideDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
11113
11113
|
popover: "manual",
|
|
11114
11114
|
class: "kds-side-drawer",
|
|
11115
11115
|
"data-width": __props.width
|
|
11116
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 8, _hoisted_1$
|
|
11116
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 8, _hoisted_1$74);
|
|
11117
11117
|
};
|
|
11118
11118
|
}
|
|
11119
11119
|
}), [["__scopeId", "data-v-2bceb215"]]);
|
|
11120
11120
|
//#endregion
|
|
11121
11121
|
//#region src/components/buttons/links/KdsLink/KdsLink.vue?vue&type=script&setup=true&lang.ts
|
|
11122
|
-
var _hoisted_1$
|
|
11123
|
-
var _hoisted_2$
|
|
11122
|
+
var _hoisted_1$73 = { class: "label" };
|
|
11123
|
+
var _hoisted_2$45 = {
|
|
11124
11124
|
key: 0,
|
|
11125
11125
|
class: "file-size"
|
|
11126
11126
|
};
|
|
@@ -11204,7 +11204,7 @@ var KdsLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
11204
11204
|
"aria-disabled": __props.disabled ? "true" : void 0,
|
|
11205
11205
|
onClick
|
|
11206
11206
|
}, {
|
|
11207
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_1$
|
|
11207
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_1$73, toDisplayString(__props.label), 1), normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$45, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)]),
|
|
11208
11208
|
_: 1
|
|
11209
11209
|
}, 8, [
|
|
11210
11210
|
"class",
|
|
@@ -11273,8 +11273,8 @@ var kdsToggleButtonVariant = {
|
|
|
11273
11273
|
var kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
11274
11274
|
//#endregion
|
|
11275
11275
|
//#region src/components/buttons/KdsProgressButton/KdsProgressButton.vue?vue&type=script&setup=true&lang.ts
|
|
11276
|
-
var _hoisted_1$
|
|
11277
|
-
var _hoisted_2$
|
|
11276
|
+
var _hoisted_1$72 = ["data-visible"];
|
|
11277
|
+
var _hoisted_2$44 = ["data-visible"];
|
|
11278
11278
|
//#endregion
|
|
11279
11279
|
//#region src/components/buttons/KdsProgressButton/KdsProgressButton.vue
|
|
11280
11280
|
var KdsProgressButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -11334,13 +11334,13 @@ var KdsProgressButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
11334
11334
|
}, [createVNode(KdsIcon_default, {
|
|
11335
11335
|
name: props.leadingIcon,
|
|
11336
11336
|
size: iconSize.value
|
|
11337
|
-
}, null, 8, ["name", "size"])], 8, _hoisted_1$
|
|
11337
|
+
}, null, 8, ["name", "size"])], 8, _hoisted_1$72), createElementVNode("span", {
|
|
11338
11338
|
class: "spinner",
|
|
11339
11339
|
"data-visible": state.value === "progress"
|
|
11340
11340
|
}, [createVNode(KdsLoadingSpinner_default, {
|
|
11341
11341
|
size: iconSize.value,
|
|
11342
11342
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
11343
|
-
}, null, 8, ["size", "variant"])], 8, _hoisted_2$
|
|
11343
|
+
}, null, 8, ["size", "variant"])], 8, _hoisted_2$44)], 2)]),
|
|
11344
11344
|
_: 1
|
|
11345
11345
|
}, 16, ["data-kds-progress-state"]);
|
|
11346
11346
|
};
|
|
@@ -11489,13 +11489,13 @@ var _Accessory_default = /* @__PURE__ */ defineComponent({
|
|
|
11489
11489
|
});
|
|
11490
11490
|
//#endregion
|
|
11491
11491
|
//#region src/components/lists/ListContainer/ListItem/ListItem/KdsListItem.vue?vue&type=script&setup=true&lang.ts
|
|
11492
|
-
var _hoisted_1$
|
|
11492
|
+
var _hoisted_1$71 = [
|
|
11493
11493
|
"id",
|
|
11494
11494
|
"role",
|
|
11495
11495
|
"aria-selected",
|
|
11496
11496
|
"aria-disabled"
|
|
11497
11497
|
];
|
|
11498
|
-
var _hoisted_2$
|
|
11498
|
+
var _hoisted_2$43 = {
|
|
11499
11499
|
key: 0,
|
|
11500
11500
|
class: "accessory"
|
|
11501
11501
|
};
|
|
@@ -11608,7 +11608,7 @@ var KdsListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11608
11608
|
]),
|
|
11609
11609
|
onClick
|
|
11610
11610
|
}, [
|
|
11611
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
11611
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$43, [createVNode(_Accessory_default, {
|
|
11612
11612
|
accessory: props.accessory,
|
|
11613
11613
|
size: accessorySize.value,
|
|
11614
11614
|
disabled: __props.disabled
|
|
@@ -11658,14 +11658,14 @@ var KdsListItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11658
11658
|
name: "drag-handle",
|
|
11659
11659
|
size: "small"
|
|
11660
11660
|
})], 32)) : createCommentVNode("", true)])
|
|
11661
|
-
], 10, _hoisted_1$
|
|
11661
|
+
], 10, _hoisted_1$71);
|
|
11662
11662
|
};
|
|
11663
11663
|
}
|
|
11664
11664
|
}), [["__scopeId", "data-v-5a3cda6b"]]);
|
|
11665
11665
|
//#endregion
|
|
11666
11666
|
//#region src/components/lists/ListContainer/ListItem/ListItemSectionTitle/ListItemSectionTitle.vue?vue&type=script&setup=true&lang.ts
|
|
11667
|
-
var _hoisted_1$
|
|
11668
|
-
var _hoisted_2$
|
|
11667
|
+
var _hoisted_1$70 = { class: "kds-list-item-section-title" };
|
|
11668
|
+
var _hoisted_2$42 = {
|
|
11669
11669
|
key: 0,
|
|
11670
11670
|
class: "icon"
|
|
11671
11671
|
};
|
|
@@ -11681,7 +11681,7 @@ var ListItemSectionTitle_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
11681
11681
|
setup(__props) {
|
|
11682
11682
|
const props = __props;
|
|
11683
11683
|
return (_ctx, _cache) => {
|
|
11684
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
11684
|
+
return openBlock(), createElementBlock("div", _hoisted_1$70, [props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$42, [createVNode(KdsIcon_default, {
|
|
11685
11685
|
name: props.leadingIcon,
|
|
11686
11686
|
size: "small"
|
|
11687
11687
|
}, null, 8, ["name"])])) : createCommentVNode("", true), withDirectives((openBlock(), createElementBlock("span", _hoisted_3$33, [createTextVNode(toDisplayString(props.label), 1)])), [[
|
|
@@ -11737,9 +11737,6 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11737
11737
|
});
|
|
11738
11738
|
const effectiveTo = computed(() => props.item.disabled ? void 0 : props.item.to);
|
|
11739
11739
|
const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
|
|
11740
|
-
const anchorId = useId();
|
|
11741
|
-
const anchorName = `--anchor-${anchorId}`;
|
|
11742
|
-
const anchorRootStyle = computed(() => hasChildren.value ? { anchorName } : {});
|
|
11743
11740
|
return (_ctx, _cache) => {
|
|
11744
11741
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
11745
11742
|
__props.item.sectionHeadline ? (openBlock(), createBlock(unref(ListItemSectionTitle_default), mergeProps({
|
|
@@ -11834,7 +11831,6 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11834
11831
|
active: __props.activeId === __props.item.id,
|
|
11835
11832
|
variant: __props.variant,
|
|
11836
11833
|
"trailing-icon": "chevron-right",
|
|
11837
|
-
style: anchorRootStyle.value,
|
|
11838
11834
|
role: "menuitem",
|
|
11839
11835
|
"aria-haspopup": "menu"
|
|
11840
11836
|
}, _ctx.$attrs, {
|
|
@@ -11847,8 +11843,7 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11847
11843
|
"sub-text",
|
|
11848
11844
|
"disabled",
|
|
11849
11845
|
"active",
|
|
11850
|
-
"variant"
|
|
11851
|
-
"style"
|
|
11846
|
+
"variant"
|
|
11852
11847
|
])),
|
|
11853
11848
|
__props.item.separator && !__props.isLast ? (openBlock(), createBlock(unref(KdsDivider_default), {
|
|
11854
11849
|
key: 4,
|
|
@@ -11856,26 +11851,22 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
11856
11851
|
role: "presentation",
|
|
11857
11852
|
"aria-hidden": "true"
|
|
11858
11853
|
})) : createCommentVNode("", true),
|
|
11859
|
-
hasChildren.value ? renderSlot(_ctx.$slots, "children", {
|
|
11860
|
-
id: unref(anchorId),
|
|
11861
|
-
name: anchorName
|
|
11862
|
-
} }, void 0, true, 5) : createCommentVNode("", true)
|
|
11854
|
+
hasChildren.value ? renderSlot(_ctx.$slots, "children", {}, void 0, true, 5) : createCommentVNode("", true)
|
|
11863
11855
|
], 64);
|
|
11864
11856
|
};
|
|
11865
11857
|
}
|
|
11866
|
-
}), [["__scopeId", "data-v-
|
|
11858
|
+
}), [["__scopeId", "data-v-44f992ef"]]);
|
|
11867
11859
|
//#endregion
|
|
11868
11860
|
//#region src/components/lists/MenuContainer/keys.ts
|
|
11869
11861
|
var ContainerDepthKey = Symbol("ContainerDepth");
|
|
11870
11862
|
var ChildItemKey = Symbol("ChildItem");
|
|
11871
11863
|
//#endregion
|
|
11872
11864
|
//#region src/components/lists/MenuContainer/KdsMenuContainer.vue?vue&type=script&setup=true&lang.ts
|
|
11873
|
-
var _hoisted_1$
|
|
11865
|
+
var _hoisted_1$69 = [
|
|
11874
11866
|
"id",
|
|
11875
11867
|
"aria-label",
|
|
11876
11868
|
"aria-activedescendant"
|
|
11877
11869
|
];
|
|
11878
|
-
var _hoisted_2$42 = ["id"];
|
|
11879
11870
|
//#endregion
|
|
11880
11871
|
//#region src/components/lists/MenuContainer/KdsMenuContainer.vue
|
|
11881
11872
|
var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -11944,7 +11935,8 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
11944
11935
|
if (!itemId) return;
|
|
11945
11936
|
if (popovers.value[itemId]) {
|
|
11946
11937
|
activePopoverId.value = itemId;
|
|
11947
|
-
|
|
11938
|
+
const itemEl = (containerEl.value?.getRootNode())?.getElementById(itemId);
|
|
11939
|
+
popovers.value[itemId].showPopover?.({ source: itemEl ?? void 0 });
|
|
11948
11940
|
return popovers.value[itemId];
|
|
11949
11941
|
}
|
|
11950
11942
|
};
|
|
@@ -12137,15 +12129,13 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
12137
12129
|
if (!item.disabled && hasChildren(item)) showPopover(item.id);
|
|
12138
12130
|
}
|
|
12139
12131
|
}, {
|
|
12140
|
-
children: withCtx((
|
|
12141
|
-
id: anchor.id,
|
|
12132
|
+
children: withCtx(() => [createElementVNode("div", {
|
|
12142
12133
|
ref_for: true,
|
|
12143
12134
|
ref: (el) => {
|
|
12144
12135
|
popovers.value[item.id] = el;
|
|
12145
12136
|
},
|
|
12146
12137
|
popover: "manual",
|
|
12147
12138
|
class: "submenu-popover",
|
|
12148
|
-
style: normalizeStyle({ positionAnchor: anchor.name }),
|
|
12149
12139
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => closePopover()),
|
|
12150
12140
|
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {}, ["stop", "prevent"]), ["esc"]))
|
|
12151
12141
|
}, [createVNode(_component_KdsMenuContainer, {
|
|
@@ -12160,7 +12150,7 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
12160
12150
|
"id",
|
|
12161
12151
|
"ariaLabel",
|
|
12162
12152
|
"items"
|
|
12163
|
-
])],
|
|
12153
|
+
])], 544)]),
|
|
12164
12154
|
_: 2
|
|
12165
12155
|
}, 1032, [
|
|
12166
12156
|
"item",
|
|
@@ -12170,10 +12160,10 @@ var KdsMenuContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
12170
12160
|
"onClick",
|
|
12171
12161
|
"onMouseenter"
|
|
12172
12162
|
]);
|
|
12173
|
-
}), 128))], 46, _hoisted_1$
|
|
12163
|
+
}), 128))], 46, _hoisted_1$69);
|
|
12174
12164
|
};
|
|
12175
12165
|
}
|
|
12176
|
-
}), [["__scopeId", "data-v-
|
|
12166
|
+
}), [["__scopeId", "data-v-ac2b5dd6"]]);
|
|
12177
12167
|
//#endregion
|
|
12178
12168
|
//#region src/components/buttons/KdsMenuButton/KdsMenuButton.vue
|
|
12179
12169
|
var KdsMenuButton_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12214,7 +12204,6 @@ var KdsMenuButton_default = /* @__PURE__ */ defineComponent({
|
|
|
12214
12204
|
});
|
|
12215
12205
|
/** Whether the menu is open. */
|
|
12216
12206
|
const isMenuOpen = useModel(__props, "modelValue");
|
|
12217
|
-
const popoverEl = useTemplateRef("popover");
|
|
12218
12207
|
const menuContainerEl = useTemplateRef("menuContainer");
|
|
12219
12208
|
const menuButtonEl = useTemplateRef("menuButton");
|
|
12220
12209
|
const menuId = useId();
|
|
@@ -12239,17 +12228,15 @@ var KdsMenuButton_default = /* @__PURE__ */ defineComponent({
|
|
|
12239
12228
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event),
|
|
12240
12229
|
"aria-haspopup": "menu",
|
|
12241
12230
|
"aria-expanded": isMenuOpen.value,
|
|
12242
|
-
"aria-controls": isMenuOpen.value ? unref(menuId) : void 0
|
|
12243
|
-
style: popoverEl.value?.anchorStyle
|
|
12231
|
+
"aria-controls": isMenuOpen.value ? unref(menuId) : void 0
|
|
12244
12232
|
}), null, 16, [
|
|
12245
12233
|
"modelValue",
|
|
12246
12234
|
"aria-expanded",
|
|
12247
|
-
"aria-controls"
|
|
12248
|
-
"style"
|
|
12235
|
+
"aria-controls"
|
|
12249
12236
|
]), createVNode(KdsPopover_default, {
|
|
12250
|
-
ref: "popover",
|
|
12251
12237
|
modelValue: isMenuOpen.value,
|
|
12252
12238
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isMenuOpen.value = $event),
|
|
12239
|
+
anchor: menuButtonEl.value?.$el,
|
|
12253
12240
|
placement: "bottom-left",
|
|
12254
12241
|
"aria-label": "Menu"
|
|
12255
12242
|
}, {
|
|
@@ -12266,7 +12253,7 @@ var KdsMenuButton_default = /* @__PURE__ */ defineComponent({
|
|
|
12266
12253
|
"menu-max-height"
|
|
12267
12254
|
])) : createCommentVNode("", true)]),
|
|
12268
12255
|
_: 1
|
|
12269
|
-
}, 8, ["modelValue"])], 64);
|
|
12256
|
+
}, 8, ["modelValue", "anchor"])], 64);
|
|
12270
12257
|
};
|
|
12271
12258
|
}
|
|
12272
12259
|
});
|
|
@@ -12297,7 +12284,7 @@ var KdsSplitButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
12297
12284
|
]);
|
|
12298
12285
|
const emit = __emit;
|
|
12299
12286
|
const isMenuOpen = ref(false);
|
|
12300
|
-
const
|
|
12287
|
+
const menuToggleEl = useTemplateRef("menuToggle");
|
|
12301
12288
|
const menuContainer = useTemplateRef("menuContainer");
|
|
12302
12289
|
const menuId = useId();
|
|
12303
12290
|
const onMenuEscape = (event) => {
|
|
@@ -12336,6 +12323,7 @@ var KdsSplitButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
12336
12323
|
"variant"
|
|
12337
12324
|
]),
|
|
12338
12325
|
createVNode(BaseButton_default, {
|
|
12326
|
+
ref: "menuToggle",
|
|
12339
12327
|
class: "kds-split-button-secondary",
|
|
12340
12328
|
"remove-border-radius": "left",
|
|
12341
12329
|
size: __props.size,
|
|
@@ -12346,22 +12334,19 @@ var KdsSplitButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
12346
12334
|
"aria-haspopup": "menu",
|
|
12347
12335
|
"aria-expanded": isMenuOpen.value,
|
|
12348
12336
|
"aria-controls": isMenuOpen.value ? unref(menuId) : void 0,
|
|
12349
|
-
style: normalizeStyle(popoverEl.value?.anchorStyle),
|
|
12350
12337
|
onClick: _cache[1] || (_cache[1] = ($event) => isMenuOpen.value = !isMenuOpen.value)
|
|
12351
12338
|
}, null, 8, [
|
|
12352
12339
|
"size",
|
|
12353
12340
|
"variant",
|
|
12354
12341
|
"disabled",
|
|
12355
12342
|
"aria-expanded",
|
|
12356
|
-
"aria-controls"
|
|
12357
|
-
"style"
|
|
12343
|
+
"aria-controls"
|
|
12358
12344
|
]),
|
|
12359
12345
|
createVNode(KdsPopover_default, {
|
|
12360
|
-
ref_key: "popoverEl",
|
|
12361
|
-
ref: popoverEl,
|
|
12362
12346
|
modelValue: isMenuOpen.value,
|
|
12363
12347
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isMenuOpen.value = $event),
|
|
12364
|
-
placement: "bottom-left"
|
|
12348
|
+
placement: "bottom-left",
|
|
12349
|
+
anchor: menuToggleEl.value?.$el
|
|
12365
12350
|
}, {
|
|
12366
12351
|
default: withCtx(() => [isMenuOpen.value ? (openBlock(), createBlock(KdsMenuContainer_default, {
|
|
12367
12352
|
key: 0,
|
|
@@ -12379,11 +12364,11 @@ var KdsSplitButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
12379
12364
|
"menu-max-height"
|
|
12380
12365
|
])) : createCommentVNode("", true)]),
|
|
12381
12366
|
_: 1
|
|
12382
|
-
}, 8, ["modelValue"])
|
|
12367
|
+
}, 8, ["modelValue", "anchor"])
|
|
12383
12368
|
], 2);
|
|
12384
12369
|
};
|
|
12385
12370
|
}
|
|
12386
|
-
}), [["__scopeId", "data-v-
|
|
12371
|
+
}), [["__scopeId", "data-v-fbe3327b"]]);
|
|
12387
12372
|
//#endregion
|
|
12388
12373
|
//#region src/components/buttons/ActionButton/enums.ts
|
|
12389
12374
|
var kdsActionButtonType = {
|
|
@@ -12417,7 +12402,7 @@ var ActionButton_default = /* @__PURE__ */ defineComponent({
|
|
|
12417
12402
|
});
|
|
12418
12403
|
//#endregion
|
|
12419
12404
|
//#region src/components/feedback/EmptyState/KdsEmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
12420
|
-
var _hoisted_1$
|
|
12405
|
+
var _hoisted_1$68 = ["aria-disabled"];
|
|
12421
12406
|
var _hoisted_2$41 = { class: "kds-empty-state-headline" };
|
|
12422
12407
|
var _hoisted_3$32 = {
|
|
12423
12408
|
key: 1,
|
|
@@ -12468,13 +12453,13 @@ var KdsEmptyState_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
12468
12453
|
createElementVNode("p", _hoisted_2$41, toDisplayString(props.headline), 1),
|
|
12469
12454
|
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$32, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
12470
12455
|
resolvedPrimaryAction.value ? (openBlock(), createElementBlock("div", _hoisted_4$29, [createVNode(ActionButton_default, mergeProps(resolvedPrimaryAction.value, { size: "small" }), null, 16), resolvedSecondaryAction.value ? (openBlock(), createBlock(ActionButton_default, mergeProps({ key: 0 }, resolvedSecondaryAction.value, { size: "small" }), null, 16)) : createCommentVNode("", true)])) : createCommentVNode("", true)
|
|
12471
|
-
], 10, _hoisted_1$
|
|
12456
|
+
], 10, _hoisted_1$68);
|
|
12472
12457
|
};
|
|
12473
12458
|
}
|
|
12474
12459
|
}), [["__scopeId", "data-v-e9b806e2"]]);
|
|
12475
12460
|
//#endregion
|
|
12476
12461
|
//#region src/components/lists/ListContainer/KdsListContainer.vue?vue&type=script&setup=true&lang.ts
|
|
12477
|
-
var _hoisted_1$
|
|
12462
|
+
var _hoisted_1$67 = [
|
|
12478
12463
|
"aria-busy",
|
|
12479
12464
|
"aria-label",
|
|
12480
12465
|
"aria-activedescendant",
|
|
@@ -12707,7 +12692,7 @@ var KdsListContainer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
12707
12692
|
}, [createVNode(KdsEmptyState_default, {
|
|
12708
12693
|
headline: __props.loading ? loadingStateText : __props.emptyText,
|
|
12709
12694
|
"loading-spinner": __props.loading
|
|
12710
|
-
}, null, 8, ["headline", "loading-spinner"])])) : createCommentVNode("", true)], 16, _hoisted_1$
|
|
12695
|
+
}, null, 8, ["headline", "loading-spinner"])])) : createCommentVNode("", true)], 16, _hoisted_1$67);
|
|
12711
12696
|
};
|
|
12712
12697
|
}
|
|
12713
12698
|
});
|
|
@@ -12717,7 +12702,7 @@ var KdsListContainer_exports = /* @__PURE__ */ __exportAll$1({ default: () => Kd
|
|
|
12717
12702
|
var KdsListContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(KdsListContainer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-23465b31"]]);
|
|
12718
12703
|
//#endregion
|
|
12719
12704
|
//#region src/components/lists/ListContainer/ListItem/ListItemButton/KdsListItemButton.vue?vue&type=script&setup=true&lang.ts
|
|
12720
|
-
var _hoisted_1$
|
|
12705
|
+
var _hoisted_1$66 = ["disabled"];
|
|
12721
12706
|
var _hoisted_2$40 = { class: "label" };
|
|
12722
12707
|
//#endregion
|
|
12723
12708
|
//#region src/components/lists/ListContainer/ListItem/ListItemButton/KdsListItemButton.vue
|
|
@@ -12749,7 +12734,7 @@ var KdsListItemButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
12749
12734
|
unref(vKdsTooltip),
|
|
12750
12735
|
props.label,
|
|
12751
12736
|
"truncated"
|
|
12752
|
-
]])], 8, _hoisted_1$
|
|
12737
|
+
]])], 8, _hoisted_1$66);
|
|
12753
12738
|
};
|
|
12754
12739
|
}
|
|
12755
12740
|
}), [["__scopeId", "data-v-a756f0b8"]]);
|
|
@@ -13325,7 +13310,7 @@ var useInputSegments = (modelValue, getInputElement, configRef) => {
|
|
|
13325
13310
|
};
|
|
13326
13311
|
//#endregion
|
|
13327
13312
|
//#region src/components/forms/inputs/BaseInput.vue?vue&type=script&setup=true&lang.ts
|
|
13328
|
-
var _hoisted_1$
|
|
13313
|
+
var _hoisted_1$65 = {
|
|
13329
13314
|
key: 0,
|
|
13330
13315
|
class: "icon-wrapper leading"
|
|
13331
13316
|
};
|
|
@@ -13524,7 +13509,7 @@ focus: focusInput });
|
|
|
13524
13509
|
}),
|
|
13525
13510
|
onClick: handleContainerClick
|
|
13526
13511
|
}, [
|
|
13527
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
13512
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$65, [props.leadingIcon ? (openBlock(), createBlock(KdsIcon_default, {
|
|
13528
13513
|
key: 0,
|
|
13529
13514
|
name: props.leadingIcon
|
|
13530
13515
|
}, null, 8, ["name"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
@@ -13643,7 +13628,7 @@ var filterOptionsPreservingSections = (options, query) => {
|
|
|
13643
13628
|
var countSearchableOptions = (options) => options.filter((option) => !option.sectionHeadline).length;
|
|
13644
13629
|
//#endregion
|
|
13645
13630
|
//#region src/components/forms/selects/Dropdown/MultiSelectDropdownContainer.vue?vue&type=script&setup=true&lang.ts
|
|
13646
|
-
var _hoisted_1$
|
|
13631
|
+
var _hoisted_1$64 = { class: "kds-multi-select-dropdown-options" };
|
|
13647
13632
|
var _hoisted_2$38 = {
|
|
13648
13633
|
key: 0,
|
|
13649
13634
|
class: "kds-multi-select-dropdown-search"
|
|
@@ -13787,7 +13772,7 @@ var MultiSelectDropdownContainer_default = /*#__PURE__*/ _plugin_vue_export_help
|
|
|
13787
13772
|
else listContainerRef.value?.focus();
|
|
13788
13773
|
} });
|
|
13789
13774
|
return (_ctx, _cache) => {
|
|
13790
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
13775
|
+
return openBlock(), createElementBlock("div", _hoisted_1$64, [
|
|
13791
13776
|
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$38, [createVNode(BaseInput_default, {
|
|
13792
13777
|
ref_key: "searchEl",
|
|
13793
13778
|
ref: searchEl,
|
|
@@ -13968,7 +13953,6 @@ var KdsMultiSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
13968
13953
|
"aria-haspopup": "dialog",
|
|
13969
13954
|
"aria-expanded": open.value,
|
|
13970
13955
|
"aria-controls": open.value ? popoverEl.value?.popoverId : void 0,
|
|
13971
|
-
style: popoverEl.value?.anchorStyle,
|
|
13972
13956
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
13973
13957
|
}), createSlots({ _: 2 }, [__props.showCount && selectedCount.value > 0 ? {
|
|
13974
13958
|
name: "trailing",
|
|
@@ -13982,12 +13966,12 @@ var KdsMultiSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
13982
13966
|
"toggled",
|
|
13983
13967
|
"aria-pressed",
|
|
13984
13968
|
"aria-expanded",
|
|
13985
|
-
"aria-controls"
|
|
13986
|
-
"style"
|
|
13969
|
+
"aria-controls"
|
|
13987
13970
|
]), createVNode(KdsPopover_default, {
|
|
13988
13971
|
ref: "popover",
|
|
13989
13972
|
modelValue: open.value,
|
|
13990
13973
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => open.value = $event),
|
|
13974
|
+
anchor: multiSelectButtonEl.value?.$el,
|
|
13991
13975
|
placement: "bottom-left",
|
|
13992
13976
|
role: "dialog",
|
|
13993
13977
|
"aria-label": "Multi select dropdown options"
|
|
@@ -14013,13 +13997,13 @@ var KdsMultiSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
14013
13997
|
"hide-clear-all"
|
|
14014
13998
|
])) : createCommentVNode("", true)]),
|
|
14015
13999
|
_: 1
|
|
14016
|
-
}, 8, ["modelValue"])], 64);
|
|
14000
|
+
}, 8, ["modelValue", "anchor"])], 64);
|
|
14017
14001
|
};
|
|
14018
14002
|
}
|
|
14019
14003
|
});
|
|
14020
14004
|
//#endregion
|
|
14021
14005
|
//#region src/components/forms/selects/Dropdown/DropdownContainer.vue?vue&type=script&setup=true&lang.ts
|
|
14022
|
-
var _hoisted_1$
|
|
14006
|
+
var _hoisted_1$63 = { class: "kds-dropdown-container" };
|
|
14023
14007
|
var _hoisted_2$37 = {
|
|
14024
14008
|
key: 0,
|
|
14025
14009
|
class: "kds-dropdown-container-sticky-top"
|
|
@@ -14082,7 +14066,7 @@ var DropdownContainer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
14082
14066
|
listContainerRef.value?.scrollSelectedIntoView();
|
|
14083
14067
|
} });
|
|
14084
14068
|
return (_ctx, _cache) => {
|
|
14085
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
14069
|
+
return openBlock(), createElementBlock("div", _hoisted_1$63, [searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$37, [createVNode(BaseInput_default, {
|
|
14086
14070
|
ref_key: "searchEl",
|
|
14087
14071
|
ref: searchEl,
|
|
14088
14072
|
modelValue: searchValue.value,
|
|
@@ -14211,7 +14195,6 @@ var KdsSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
14211
14195
|
"aria-haspopup": "dialog",
|
|
14212
14196
|
"aria-expanded": open.value,
|
|
14213
14197
|
"aria-controls": open.value ? popoverEl.value?.popoverId : void 0,
|
|
14214
|
-
style: popoverEl.value?.anchorStyle,
|
|
14215
14198
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
14216
14199
|
}), createSlots({ _: 2 }, [__props.showCount && selectedCount.value > 0 ? {
|
|
14217
14200
|
name: "trailing",
|
|
@@ -14225,12 +14208,12 @@ var KdsSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
14225
14208
|
"toggled",
|
|
14226
14209
|
"aria-pressed",
|
|
14227
14210
|
"aria-expanded",
|
|
14228
|
-
"aria-controls"
|
|
14229
|
-
"style"
|
|
14211
|
+
"aria-controls"
|
|
14230
14212
|
]), createVNode(KdsPopover_default, {
|
|
14231
14213
|
ref: "popover",
|
|
14232
14214
|
modelValue: open.value,
|
|
14233
14215
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => open.value = $event),
|
|
14216
|
+
anchor: selectButtonEl.value?.$el,
|
|
14234
14217
|
placement: "bottom-left",
|
|
14235
14218
|
role: "dialog",
|
|
14236
14219
|
"aria-label": "Dropdown menu"
|
|
@@ -14249,7 +14232,7 @@ var KdsSelectButton_default = /* @__PURE__ */ defineComponent({
|
|
|
14249
14232
|
"loading"
|
|
14250
14233
|
])) : createCommentVNode("", true)]),
|
|
14251
14234
|
_: 1
|
|
14252
|
-
}, 8, ["modelValue"])], 64);
|
|
14235
|
+
}, 8, ["modelValue", "anchor"])], 64);
|
|
14253
14236
|
};
|
|
14254
14237
|
}
|
|
14255
14238
|
});
|
|
@@ -14353,7 +14336,7 @@ var toMenuItem = (entry) => {
|
|
|
14353
14336
|
};
|
|
14354
14337
|
//#endregion
|
|
14355
14338
|
//#region src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
14356
|
-
var _hoisted_1$
|
|
14339
|
+
var _hoisted_1$62 = {
|
|
14357
14340
|
ref: "measureContainer",
|
|
14358
14341
|
class: "kds-button-group-measure",
|
|
14359
14342
|
"aria-hidden": "true",
|
|
@@ -14497,7 +14480,7 @@ var KdsResponsiveButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_d
|
|
|
14497
14480
|
measureButtons();
|
|
14498
14481
|
});
|
|
14499
14482
|
return (_ctx, _cache) => {
|
|
14500
|
-
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$
|
|
14483
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$62, [
|
|
14501
14484
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (button) => {
|
|
14502
14485
|
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[button.type]), mergeProps({
|
|
14503
14486
|
key: `full-${button.id}`,
|
|
@@ -14542,7 +14525,7 @@ var kdsResponsiveButtonGroupAlignment = {
|
|
|
14542
14525
|
var kdsResponsiveButtonGroupAlignments = Object.values(kdsResponsiveButtonGroupAlignment);
|
|
14543
14526
|
//#endregion
|
|
14544
14527
|
//#region src/components/buttons/Breadcrumb/BreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
14545
|
-
var _hoisted_1$
|
|
14528
|
+
var _hoisted_1$61 = {
|
|
14546
14529
|
key: 1,
|
|
14547
14530
|
class: "breadcrumb-label"
|
|
14548
14531
|
};
|
|
@@ -14585,7 +14568,7 @@ var BreadcrumbItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
14585
14568
|
key: 0,
|
|
14586
14569
|
name: __props.item.leadingIcon,
|
|
14587
14570
|
class: "breadcrumb-icon"
|
|
14588
|
-
}, null, 8, ["name"])) : createCommentVNode("", true), __props.item.text ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$
|
|
14571
|
+
}, null, 8, ["name"])) : createCommentVNode("", true), __props.item.text ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$61, [createTextVNode(toDisplayString(__props.item.text), 1)])), [[
|
|
14589
14572
|
unref(vKdsTooltip),
|
|
14590
14573
|
__props.item.title,
|
|
14591
14574
|
"truncated"
|
|
@@ -14714,7 +14697,7 @@ var useBreadcrumbAdaptiveLayout = (listRef, itemRefs, itemsSource) => {
|
|
|
14714
14697
|
};
|
|
14715
14698
|
//#endregion
|
|
14716
14699
|
//#region src/components/buttons/Breadcrumb/KdsBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
14717
|
-
var _hoisted_1$
|
|
14700
|
+
var _hoisted_1$60 = ["aria-label"];
|
|
14718
14701
|
//#endregion
|
|
14719
14702
|
//#region src/components/buttons/Breadcrumb/KdsBreadcrumb.vue
|
|
14720
14703
|
var KdsBreadcrumb_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -14761,7 +14744,7 @@ var KdsBreadcrumb_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
14761
14744
|
class: "path-separator",
|
|
14762
14745
|
"aria-hidden": "true"
|
|
14763
14746
|
})) : createCommentVNode("", true)], 2);
|
|
14764
|
-
}), 128))], 512)], 8, _hoisted_1$
|
|
14747
|
+
}), 128))], 512)], 8, _hoisted_1$60)) : createCommentVNode("", true);
|
|
14765
14748
|
};
|
|
14766
14749
|
}
|
|
14767
14750
|
}), [["__scopeId", "data-v-56b6e44e"]]);
|
|
@@ -14798,7 +14781,7 @@ var feedbackVariantIcon = (variant) => {
|
|
|
14798
14781
|
var feedbackVariantRole = (variant) => variant === "warning" || variant === "error" ? "alert" : "status";
|
|
14799
14782
|
//#endregion
|
|
14800
14783
|
//#region src/components/feedback/BaseMessage.vue?vue&type=script&setup=true&lang.ts
|
|
14801
|
-
var _hoisted_1$
|
|
14784
|
+
var _hoisted_1$59 = ["role"];
|
|
14802
14785
|
//#endregion
|
|
14803
14786
|
//#region src/components/feedback/BaseMessage.vue
|
|
14804
14787
|
var BaseMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -14810,13 +14793,13 @@ var BaseMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
14810
14793
|
return openBlock(), createElementBlock("div", {
|
|
14811
14794
|
class: normalizeClass(["kds-base-message", __props.variant]),
|
|
14812
14795
|
role: role.value
|
|
14813
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_1$
|
|
14796
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_1$59);
|
|
14814
14797
|
};
|
|
14815
14798
|
}
|
|
14816
14799
|
}), [["__scopeId", "data-v-e9196441"]]);
|
|
14817
14800
|
//#endregion
|
|
14818
14801
|
//#region src/components/feedback/Banner/KdsBanner.vue?vue&type=script&setup=true&lang.ts
|
|
14819
|
-
var _hoisted_1$
|
|
14802
|
+
var _hoisted_1$58 = { class: "icon-wrapper" };
|
|
14820
14803
|
var _hoisted_2$35 = { class: "content" };
|
|
14821
14804
|
var _hoisted_3$28 = { class: "description" };
|
|
14822
14805
|
var _hoisted_4$26 = {
|
|
@@ -14840,7 +14823,7 @@ var KdsBanner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
14840
14823
|
variant: __props.variant,
|
|
14841
14824
|
class: "kds-banner"
|
|
14842
14825
|
}, {
|
|
14843
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
14826
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$58, [createVNode(unref(KdsIcon_default), {
|
|
14844
14827
|
class: "kds-feedback-icon",
|
|
14845
14828
|
name: iconName.value,
|
|
14846
14829
|
size: "medium"
|
|
@@ -14863,7 +14846,7 @@ var kdsFeedbackVariant = {
|
|
|
14863
14846
|
var kdsFeedbackVariants = Object.values(kdsFeedbackVariant);
|
|
14864
14847
|
//#endregion
|
|
14865
14848
|
//#region src/components/feedback/InlineMessage/KdsInlineMessage.vue?vue&type=script&setup=true&lang.ts
|
|
14866
|
-
var _hoisted_1$
|
|
14849
|
+
var _hoisted_1$57 = { class: "header" };
|
|
14867
14850
|
var _hoisted_2$34 = { class: "headline" };
|
|
14868
14851
|
var _hoisted_3$27 = {
|
|
14869
14852
|
key: 0,
|
|
@@ -14892,7 +14875,7 @@ var KdsInlineMessage_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
14892
14875
|
class: "kds-inline-message"
|
|
14893
14876
|
}, {
|
|
14894
14877
|
default: withCtx(() => [
|
|
14895
|
-
createElementVNode("div", _hoisted_1$
|
|
14878
|
+
createElementVNode("div", _hoisted_1$57, [createVNode(unref(KdsIcon_default), {
|
|
14896
14879
|
class: "kds-feedback-icon",
|
|
14897
14880
|
name: iconName.value,
|
|
14898
14881
|
size: "small"
|
|
@@ -14932,7 +14915,7 @@ var kdsLimitBarThresholdVariant = {
|
|
|
14932
14915
|
var kdsLimitBarThresholdVariants = Object.values(kdsLimitBarThresholdVariant);
|
|
14933
14916
|
//#endregion
|
|
14934
14917
|
//#region src/components/feedback/LimitBar/KdsLimitBar.vue?vue&type=script&setup=true&lang.ts
|
|
14935
|
-
var _hoisted_1$
|
|
14918
|
+
var _hoisted_1$56 = {
|
|
14936
14919
|
key: 0,
|
|
14937
14920
|
class: "header"
|
|
14938
14921
|
};
|
|
@@ -15057,7 +15040,7 @@ var KdsLimitBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
15057
15040
|
const descriptionId = useId();
|
|
15058
15041
|
return (_ctx, _cache) => {
|
|
15059
15042
|
return withDirectives((openBlock(), createElementBlock("div", { class: normalizeClass(["kds-limit-bar", stateClass.value]) }, [
|
|
15060
|
-
showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15043
|
+
showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_1$56, [__props.headline ? (openBlock(), createElementBlock("span", _hoisted_2$33, toDisplayString(__props.headline), 1)) : createCommentVNode("", true), activeThreshold.value ? (openBlock(), createBlock(unref(KdsBadge_default), {
|
|
15061
15044
|
key: 1,
|
|
15062
15045
|
class: "badge",
|
|
15063
15046
|
size: "xxsmall",
|
|
@@ -15104,7 +15087,7 @@ var LoadingSkeletonItem_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15104
15087
|
}), [["__scopeId", "data-v-52935649"]]);
|
|
15105
15088
|
//#endregion
|
|
15106
15089
|
//#region src/components/feedback/LoadingSkeleton/KdsLoadingSkeleton.vue?vue&type=script&setup=true&lang.ts
|
|
15107
|
-
var _hoisted_1$
|
|
15090
|
+
var _hoisted_1$55 = {
|
|
15108
15091
|
key: 0,
|
|
15109
15092
|
class: "kds-loading-skeleton-headline-with-paragraph"
|
|
15110
15093
|
};
|
|
@@ -15131,7 +15114,7 @@ var KdsLoadingSkeleton_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
15131
15114
|
useCssVars((_ctx) => ({ "v2472a0c7": _ctx.repeatGap }));
|
|
15132
15115
|
return (_ctx, _cache) => {
|
|
15133
15116
|
return __props.loading ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, { class: "kds-loading-skeleton" }), [_cache[0] || (_cache[0] = createElementVNode("output", { class: "kds-loading-skeleton-status" }, "Loading…", -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.repeat, (index) => {
|
|
15134
|
-
return openBlock(), createElementBlock(Fragment, { key: `skeleton-${index}` }, [__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
15117
|
+
return openBlock(), createElementBlock(Fragment, { key: `skeleton-${index}` }, [__props.variant === "headline-with-paragraph" ? (openBlock(), createElementBlock("div", _hoisted_1$55, [createVNode(LoadingSkeletonItem_default, {
|
|
15135
15118
|
shape: "text",
|
|
15136
15119
|
class: "headline"
|
|
15137
15120
|
}), createElementVNode("div", _hoisted_2$32, [
|
|
@@ -15188,7 +15171,7 @@ var kdsProgressBarSize = {
|
|
|
15188
15171
|
var kdsProgressBarSizes = Object.values(kdsProgressBarSize);
|
|
15189
15172
|
//#endregion
|
|
15190
15173
|
//#region src/components/feedback/ProgressBar/KdsProgressBar.vue?vue&type=script&setup=true&lang.ts
|
|
15191
|
-
var _hoisted_1$
|
|
15174
|
+
var _hoisted_1$54 = {
|
|
15192
15175
|
key: 0,
|
|
15193
15176
|
class: "indeterminate-bar",
|
|
15194
15177
|
"aria-hidden": "true"
|
|
@@ -15220,13 +15203,13 @@ var KdsProgressBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
15220
15203
|
}]) }, [withDirectives(createElementVNode("progress", mergeProps({ class: "progress" }, __props.indeterminate ? {} : {
|
|
15221
15204
|
value: progressValue.value,
|
|
15222
15205
|
max: 100
|
|
15223
|
-
}), null, 16), [[unref(vKdsTooltip), tooltip.value]]), __props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
15206
|
+
}), null, 16), [[unref(vKdsTooltip), tooltip.value]]), __props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_1$54)) : createCommentVNode("", true)], 2);
|
|
15224
15207
|
};
|
|
15225
15208
|
}
|
|
15226
15209
|
}), [["__scopeId", "data-v-a27a7f07"]]);
|
|
15227
15210
|
//#endregion
|
|
15228
15211
|
//#region src/components/forms/_helper/KdsLabel.vue?vue&type=script&setup=true&lang.ts
|
|
15229
|
-
var _hoisted_1$
|
|
15212
|
+
var _hoisted_1$53 = { class: "kds-label-wrapper" };
|
|
15230
15213
|
var _hoisted_2$31 = ["id", "for"];
|
|
15231
15214
|
//#endregion
|
|
15232
15215
|
//#region src/components/forms/_helper/KdsLabel.vue
|
|
@@ -15246,7 +15229,7 @@ var KdsLabel_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
15246
15229
|
const props = createPropsRestProxy(__props, ["showDescriptionButton"]);
|
|
15247
15230
|
const KdsInfoToggleButton = defineAsyncComponent(() => Promise.resolve().then(() => KdsInfoToggleButton_exports));
|
|
15248
15231
|
return (_ctx, _cache) => {
|
|
15249
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15232
|
+
return openBlock(), createElementBlock("div", _hoisted_1$53, [withDirectives((openBlock(), createElementBlock("label", {
|
|
15250
15233
|
id: props.id,
|
|
15251
15234
|
for: props.for,
|
|
15252
15235
|
class: "label"
|
|
@@ -15264,7 +15247,7 @@ var KdsLabel_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
15264
15247
|
}), [["__scopeId", "data-v-527750fe"]]);
|
|
15265
15248
|
//#endregion
|
|
15266
15249
|
//#region src/components/forms/_helper/BaseFieldsetWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
15267
|
-
var _hoisted_1$
|
|
15250
|
+
var _hoisted_1$52 = [
|
|
15268
15251
|
"id",
|
|
15269
15252
|
"role",
|
|
15270
15253
|
"aria-label",
|
|
@@ -15335,7 +15318,7 @@ var BaseFieldsetWrapper_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15335
15318
|
"validating",
|
|
15336
15319
|
"preserve-sub-text-space"
|
|
15337
15320
|
])
|
|
15338
|
-
], 40, _hoisted_1$
|
|
15321
|
+
], 40, _hoisted_1$52);
|
|
15339
15322
|
};
|
|
15340
15323
|
}
|
|
15341
15324
|
}), [["__scopeId", "data-v-70509f83"]]);
|
|
@@ -15456,7 +15439,7 @@ var kdsToggleSwitchLabelPosition = {
|
|
|
15456
15439
|
var kdsToggleSwitchLabelPositions = Object.values(kdsToggleSwitchLabelPosition);
|
|
15457
15440
|
//#endregion
|
|
15458
15441
|
//#region src/components/forms/ToggleSwitch/KdsToggleSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
15459
|
-
var _hoisted_1$
|
|
15442
|
+
var _hoisted_1$51 = [
|
|
15460
15443
|
"disabled",
|
|
15461
15444
|
"aria-label",
|
|
15462
15445
|
"aria-checked"
|
|
@@ -15524,13 +15507,13 @@ var KdsToggleSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
15524
15507
|
key: 0,
|
|
15525
15508
|
name: isChecked.value ? "checkmark" : "x-close",
|
|
15526
15509
|
size: __props.size === "small" ? "xsmall" : "small"
|
|
15527
|
-
}, null, 8, ["name", "size"])) : createCommentVNode("", true)])]), props.label ? (openBlock(), createElementBlock("div", _hoisted_4$21, [createElementVNode("span", _hoisted_5$13, toDisplayString(props.label), 1)])) : createCommentVNode("", true)], 10, _hoisted_1$
|
|
15510
|
+
}, null, 8, ["name", "size"])) : createCommentVNode("", true)])]), props.label ? (openBlock(), createElementBlock("div", _hoisted_4$21, [createElementVNode("span", _hoisted_5$13, toDisplayString(props.label), 1)])) : createCommentVNode("", true)], 10, _hoisted_1$51);
|
|
15528
15511
|
};
|
|
15529
15512
|
}
|
|
15530
15513
|
}), [["__scopeId", "data-v-1f2d16a6"]]);
|
|
15531
15514
|
//#endregion
|
|
15532
15515
|
//#region src/components/forms/RadioButton/KdsRadioButton.vue?vue&type=script&setup=true&lang.ts
|
|
15533
|
-
var _hoisted_1$
|
|
15516
|
+
var _hoisted_1$50 = [
|
|
15534
15517
|
"aria-checked",
|
|
15535
15518
|
"aria-describedby",
|
|
15536
15519
|
"aria-invalid",
|
|
@@ -15602,7 +15585,7 @@ var KdsRadioButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
15602
15585
|
key: 0,
|
|
15603
15586
|
id: `${unref(id)}-helper`,
|
|
15604
15587
|
class: "helper-text"
|
|
15605
|
-
}, toDisplayString(props.helperText), 9, _hoisted_6$8)) : createCommentVNode("", true)])], 10, _hoisted_1$
|
|
15588
|
+
}, toDisplayString(props.helperText), 9, _hoisted_6$8)) : createCommentVNode("", true)])], 10, _hoisted_1$50);
|
|
15606
15589
|
};
|
|
15607
15590
|
}
|
|
15608
15591
|
}), [["__scopeId", "data-v-fdb5a895"]]);
|
|
@@ -15806,7 +15789,7 @@ var KdsRadioButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
15806
15789
|
}), [["__scopeId", "data-v-010d4c8b"]]);
|
|
15807
15790
|
//#endregion
|
|
15808
15791
|
//#region src/components/forms/RadioButton/ValueSwitchItem.vue?vue&type=script&setup=true&lang.ts
|
|
15809
|
-
var _hoisted_1$
|
|
15792
|
+
var _hoisted_1$49 = [
|
|
15810
15793
|
"aria-checked",
|
|
15811
15794
|
"aria-label",
|
|
15812
15795
|
"disabled",
|
|
@@ -15872,7 +15855,7 @@ var ValueSwitchItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
15872
15855
|
name: props.trailingIcon,
|
|
15873
15856
|
size: __props.size
|
|
15874
15857
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
15875
|
-
], 10, _hoisted_1$
|
|
15858
|
+
], 10, _hoisted_1$49)), [[unref(vKdsTooltip), props.tooltip || void 0]]);
|
|
15876
15859
|
};
|
|
15877
15860
|
}
|
|
15878
15861
|
}), [["__scopeId", "data-v-b3315a21"]]);
|
|
@@ -16528,7 +16511,6 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16528
16511
|
/** The current text value. */
|
|
16529
16512
|
const modelValue = useModel(__props, "modelValue");
|
|
16530
16513
|
const baseInput = useTemplateRef("baseInput");
|
|
16531
|
-
const popoverRef = useTemplateRef("popoverRef");
|
|
16532
16514
|
const listContainerRef = useTemplateRef("listContainerRef");
|
|
16533
16515
|
const popoverOpen = ref(false);
|
|
16534
16516
|
const isFocused = ref(false);
|
|
@@ -16613,7 +16595,6 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16613
16595
|
"aria-autocomplete": hasSuggestions.value ? "list" : void 0,
|
|
16614
16596
|
"aria-controls": hasSuggestions.value && popoverOpen.value ? unref(suggestionId) : void 0,
|
|
16615
16597
|
"aria-activedescendant": listContainerRef.value?.activeDescendant,
|
|
16616
|
-
style: hasSuggestions.value ? popoverRef.value?.anchorStyle : void 0,
|
|
16617
16598
|
onFocus,
|
|
16618
16599
|
onBlur,
|
|
16619
16600
|
onKeydown
|
|
@@ -16629,14 +16610,12 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16629
16610
|
"aria-expanded",
|
|
16630
16611
|
"aria-autocomplete",
|
|
16631
16612
|
"aria-controls",
|
|
16632
|
-
"aria-activedescendant"
|
|
16633
|
-
"style"
|
|
16613
|
+
"aria-activedescendant"
|
|
16634
16614
|
]), hasSuggestions.value ? (openBlock(), createBlock(KdsPopover_default, {
|
|
16635
16615
|
key: 0,
|
|
16636
|
-
ref_key: "popoverRef",
|
|
16637
|
-
ref: popoverRef,
|
|
16638
16616
|
modelValue: popoverOpen.value,
|
|
16639
16617
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => popoverOpen.value = $event),
|
|
16618
|
+
anchor: baseInput.value?.$el,
|
|
16640
16619
|
placement: "bottom-left",
|
|
16641
16620
|
"full-width": "",
|
|
16642
16621
|
"popover-type": "manual"
|
|
@@ -16653,7 +16632,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16653
16632
|
onItemClick
|
|
16654
16633
|
}, null, 8, ["id", "possible-values"])) : createCommentVNode("", true)]),
|
|
16655
16634
|
_: 1
|
|
16656
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true)]),
|
|
16635
|
+
}, 8, ["modelValue", "anchor"])) : createCommentVNode("", true)]),
|
|
16657
16636
|
_: 1
|
|
16658
16637
|
}, 8, [
|
|
16659
16638
|
"id",
|
|
@@ -16667,7 +16646,7 @@ var KdsTextInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
16667
16646
|
]);
|
|
16668
16647
|
};
|
|
16669
16648
|
}
|
|
16670
|
-
}), [["__scopeId", "data-v-
|
|
16649
|
+
}), [["__scopeId", "data-v-c1a9cc98"]]);
|
|
16671
16650
|
//#endregion
|
|
16672
16651
|
//#region src/components/forms/inputs/ColorInput/colorUtils.ts
|
|
16673
16652
|
var HEX_RADIX = 16;
|
|
@@ -16797,7 +16776,7 @@ var removeAlphaFromHexInput = (next) => {
|
|
|
16797
16776
|
};
|
|
16798
16777
|
//#endregion
|
|
16799
16778
|
//#region src/components/forms/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue?vue&type=script&setup=true&lang.ts
|
|
16800
|
-
var _hoisted_1$
|
|
16779
|
+
var _hoisted_1$48 = [
|
|
16801
16780
|
"aria-label",
|
|
16802
16781
|
"aria-valuenow",
|
|
16803
16782
|
"aria-valuemin",
|
|
@@ -16871,13 +16850,13 @@ var ColorPickerSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
16871
16850
|
onPointercancel: _cache[3] || (_cache[3] = (...args) => unref(onPointerUp) && unref(onPointerUp)(...args)),
|
|
16872
16851
|
onLostpointercapture: _cache[4] || (_cache[4] = (...args) => unref(onPointerUp) && unref(onPointerUp)(...args)),
|
|
16873
16852
|
onKeydown: onKeyDown
|
|
16874
|
-
}, [..._cache[5] || (_cache[5] = [createElementVNode("div", { class: "handle" }, null, -1)])], 40, _hoisted_1$
|
|
16853
|
+
}, [..._cache[5] || (_cache[5] = [createElementVNode("div", { class: "handle" }, null, -1)])], 40, _hoisted_1$48);
|
|
16875
16854
|
};
|
|
16876
16855
|
}
|
|
16877
16856
|
}), [["__scopeId", "data-v-a7e448b0"]]);
|
|
16878
16857
|
//#endregion
|
|
16879
16858
|
//#region src/components/forms/inputs/ColorInput/ColorPicker/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
16880
|
-
var _hoisted_1$
|
|
16859
|
+
var _hoisted_1$47 = { class: "kds-color-picker" };
|
|
16881
16860
|
var _hoisted_2$26 = ["aria-valuetext"];
|
|
16882
16861
|
var _hoisted_3$21 = { class: "value-inputs" };
|
|
16883
16862
|
var DEFAULT_HUE_DEG = 270;
|
|
@@ -17028,7 +17007,7 @@ var ColorPicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
17028
17007
|
}
|
|
17029
17008
|
};
|
|
17030
17009
|
return (_ctx, _cache) => {
|
|
17031
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17010
|
+
return openBlock(), createElementBlock("div", _hoisted_1$47, [
|
|
17032
17011
|
createElementVNode("div", {
|
|
17033
17012
|
ref_key: "colorspaceEl",
|
|
17034
17013
|
ref: colorspaceEl,
|
|
@@ -17207,6 +17186,7 @@ var KdsColorInput_default = /* @__PURE__ */ defineComponent({
|
|
|
17207
17186
|
const modelValue = useModel(__props, "modelValue");
|
|
17208
17187
|
const open = ref(false);
|
|
17209
17188
|
const popoverEl = useTemplateRef("popoverEl");
|
|
17189
|
+
const popoverAnchorEl = useTemplateRef("popoverAnchor");
|
|
17210
17190
|
const swatchColor = computed(() => normalizeHexColor(modelValue.value) ?? "#FFFFFF");
|
|
17211
17191
|
const { handleFocusOut } = useColorInputValidationOnFocusOut(modelValue);
|
|
17212
17192
|
const onClickColorSwatch = () => {
|
|
@@ -17219,7 +17199,7 @@ var KdsColorInput_default = /* @__PURE__ */ defineComponent({
|
|
|
17219
17199
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
17220
17200
|
}), {
|
|
17221
17201
|
default: withCtx((slotProps) => [createElementVNode("div", {
|
|
17222
|
-
|
|
17202
|
+
ref: "popoverAnchor",
|
|
17223
17203
|
onFocusout: _cache[4] || (_cache[4] = (...args) => unref(handleFocusOut) && unref(handleFocusOut)(...args))
|
|
17224
17204
|
}, [createVNode(BaseInput_default, mergeProps(slotProps, {
|
|
17225
17205
|
modelValue: modelValue.value,
|
|
@@ -17267,6 +17247,7 @@ var KdsColorInput_default = /* @__PURE__ */ defineComponent({
|
|
|
17267
17247
|
ref: popoverEl,
|
|
17268
17248
|
modelValue: open.value,
|
|
17269
17249
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => open.value = $event),
|
|
17250
|
+
anchor: popoverAnchorEl.value,
|
|
17270
17251
|
placement: "bottom-right",
|
|
17271
17252
|
role: "dialog",
|
|
17272
17253
|
"aria-label": "Color picker"
|
|
@@ -17277,7 +17258,7 @@ var KdsColorInput_default = /* @__PURE__ */ defineComponent({
|
|
|
17277
17258
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event)
|
|
17278
17259
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)]),
|
|
17279
17260
|
_: 1
|
|
17280
|
-
}, 8, ["modelValue"])],
|
|
17261
|
+
}, 8, ["modelValue", "anchor"])], 544)]),
|
|
17281
17262
|
_: 1
|
|
17282
17263
|
}, 16, [
|
|
17283
17264
|
"error",
|
|
@@ -21069,7 +21050,7 @@ var Temporal = NativeTemporal || Temporal$1;
|
|
|
21069
21050
|
NativeTemporal && Date.prototype.toTemporalInstant;
|
|
21070
21051
|
//#endregion
|
|
21071
21052
|
//#region src/components/forms/inputs/DateInput/_helper/DatePickerDayGrid.vue?vue&type=script&setup=true&lang.ts
|
|
21072
|
-
var _hoisted_1$
|
|
21053
|
+
var _hoisted_1$46 = {
|
|
21073
21054
|
role: "row",
|
|
21074
21055
|
class: "kds-date-picker-header-row"
|
|
21075
21056
|
};
|
|
@@ -21329,7 +21310,7 @@ var DatePickerDayGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
21329
21310
|
class: "kds-date-picker-grid",
|
|
21330
21311
|
role: "grid",
|
|
21331
21312
|
"aria-label": "Calendar"
|
|
21332
|
-
}, [createElementVNode("div", _hoisted_1$
|
|
21313
|
+
}, [createElementVNode("div", _hoisted_1$46, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(DAY_LABELS), (day, i) => {
|
|
21333
21314
|
return openBlock(), createElementBlock("div", {
|
|
21334
21315
|
key: day,
|
|
21335
21316
|
role: "columnheader",
|
|
@@ -21368,7 +21349,7 @@ var DatePickerDayGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
21368
21349
|
}), [["__scopeId", "data-v-a40b4d62"]]);
|
|
21369
21350
|
//#endregion
|
|
21370
21351
|
//#region src/components/forms/inputs/DateInput/_helper/DatePickerMonthGrid.vue?vue&type=script&setup=true&lang.ts
|
|
21371
|
-
var _hoisted_1$
|
|
21352
|
+
var _hoisted_1$45 = [
|
|
21372
21353
|
"aria-selected",
|
|
21373
21354
|
"aria-disabled",
|
|
21374
21355
|
"aria-label",
|
|
@@ -21527,7 +21508,7 @@ var DatePickerMonthGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
21527
21508
|
onClick: ($event) => selectMonth(cell.month),
|
|
21528
21509
|
onKeydown: ($event) => onKeydown($event, cell.month),
|
|
21529
21510
|
onFocus: ($event) => focusedCell.value = cell.month
|
|
21530
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
21511
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$45);
|
|
21531
21512
|
}), 128))]);
|
|
21532
21513
|
}), 128))], 512);
|
|
21533
21514
|
};
|
|
@@ -21535,7 +21516,7 @@ var DatePickerMonthGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
21535
21516
|
}), [["__scopeId", "data-v-53f3f58c"]]);
|
|
21536
21517
|
//#endregion
|
|
21537
21518
|
//#region src/components/forms/inputs/DateInput/_helper/DatePickerYearGrid.vue?vue&type=script&setup=true&lang.ts
|
|
21538
|
-
var _hoisted_1$
|
|
21519
|
+
var _hoisted_1$44 = [
|
|
21539
21520
|
"aria-selected",
|
|
21540
21521
|
"aria-disabled",
|
|
21541
21522
|
"aria-label",
|
|
@@ -21678,7 +21659,7 @@ var DatePickerYearGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
21678
21659
|
onClick: ($event) => selectYear(cell.year),
|
|
21679
21660
|
onKeydown: ($event) => onKeydown($event, cell.year),
|
|
21680
21661
|
onFocus: ($event) => focusedCell.value = cell.year
|
|
21681
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
21662
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$44);
|
|
21682
21663
|
}), 128))]);
|
|
21683
21664
|
}), 128))], 512);
|
|
21684
21665
|
};
|
|
@@ -21686,7 +21667,7 @@ var DatePickerYearGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default
|
|
|
21686
21667
|
}), [["__scopeId", "data-v-41d5070e"]]);
|
|
21687
21668
|
//#endregion
|
|
21688
21669
|
//#region src/components/forms/inputs/DateInput/KdsDatePicker.vue?vue&type=script&setup=true&lang.ts
|
|
21689
|
-
var _hoisted_1$
|
|
21670
|
+
var _hoisted_1$43 = { class: "kds-date-picker" };
|
|
21690
21671
|
var _hoisted_2$24 = { class: "kds-date-picker-header" };
|
|
21691
21672
|
var _hoisted_3$19 = { class: "kds-date-picker-nav-block" };
|
|
21692
21673
|
var _hoisted_4$18 = {
|
|
@@ -21849,7 +21830,7 @@ var KdsDatePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
21849
21830
|
});
|
|
21850
21831
|
__expose({ focus });
|
|
21851
21832
|
return (_ctx, _cache) => {
|
|
21852
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
21833
|
+
return openBlock(), createElementBlock("div", _hoisted_1$43, [createElementVNode("div", _hoisted_2$24, [
|
|
21853
21834
|
createElementVNode("div", _hoisted_3$19, [view.value === "day" ? (openBlock(), createBlock(KdsButton_default, {
|
|
21854
21835
|
key: 0,
|
|
21855
21836
|
variant: "transparent",
|
|
@@ -22162,7 +22143,6 @@ var KdsDateInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22162
22143
|
disabled: __props.disabled,
|
|
22163
22144
|
error: effectiveError.value,
|
|
22164
22145
|
autocomplete: __props.autocomplete,
|
|
22165
|
-
style: popoverRef.value?.anchorStyle,
|
|
22166
22146
|
"aria-controls": popoverRef.value?.popoverId,
|
|
22167
22147
|
onBlur: onTextInputBlur
|
|
22168
22148
|
}), {
|
|
@@ -22196,13 +22176,13 @@ var KdsDateInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22196
22176
|
"disabled",
|
|
22197
22177
|
"error",
|
|
22198
22178
|
"autocomplete",
|
|
22199
|
-
"style",
|
|
22200
22179
|
"aria-controls"
|
|
22201
22180
|
]), createVNode(KdsPopover_default, {
|
|
22202
22181
|
ref_key: "popoverRef",
|
|
22203
22182
|
ref: popoverRef,
|
|
22204
22183
|
modelValue: popoverIsVisible.value,
|
|
22205
22184
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => popoverIsVisible.value = $event),
|
|
22185
|
+
anchor: baseInput.value?.$el,
|
|
22206
22186
|
placement: "bottom-right",
|
|
22207
22187
|
role: "dialog",
|
|
22208
22188
|
"aria-label": "Date picker"
|
|
@@ -22221,7 +22201,7 @@ var KdsDateInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22221
22201
|
"max-date"
|
|
22222
22202
|
])) : createCommentVNode("", true)]),
|
|
22223
22203
|
_: 1
|
|
22224
|
-
}, 8, ["modelValue"])]),
|
|
22204
|
+
}, 8, ["modelValue", "anchor"])]),
|
|
22225
22205
|
_: 1
|
|
22226
22206
|
}, 16, ["error", "sub-text"]);
|
|
22227
22207
|
};
|
|
@@ -22229,7 +22209,7 @@ var KdsDateInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22229
22209
|
});
|
|
22230
22210
|
//#endregion
|
|
22231
22211
|
//#region src/components/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue?vue&type=script&setup=true&lang.ts
|
|
22232
|
-
var _hoisted_1$
|
|
22212
|
+
var _hoisted_1$42 = { class: "kds-date-time-format-popover" };
|
|
22233
22213
|
//#endregion
|
|
22234
22214
|
//#region src/components/forms/inputs/DateTimeFormatInput/DateTimeFormatPopover.vue
|
|
22235
22215
|
var DateTimeFormatPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -22348,7 +22328,7 @@ var DateTimeFormatPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
22348
22328
|
}));
|
|
22349
22329
|
});
|
|
22350
22330
|
return (_ctx, _cache) => {
|
|
22351
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
22331
|
+
return openBlock(), createElementBlock("div", _hoisted_1$42, [
|
|
22352
22332
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch_default, {
|
|
22353
22333
|
key: 0,
|
|
22354
22334
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -22380,6 +22360,9 @@ var DateTimeFormatPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
22380
22360
|
}
|
|
22381
22361
|
}), [["__scopeId", "data-v-f866f9fd"]]);
|
|
22382
22362
|
//#endregion
|
|
22363
|
+
//#region src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue?vue&type=script&setup=true&lang.ts
|
|
22364
|
+
var _hoisted_1$41 = { ref: "popoverAnchor" };
|
|
22365
|
+
//#endregion
|
|
22383
22366
|
//#region src/components/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue
|
|
22384
22367
|
var KdsDateTimeFormatInput_default = /* @__PURE__ */ defineComponent({
|
|
22385
22368
|
__name: "KdsDateTimeFormatInput",
|
|
@@ -22426,13 +22409,14 @@ var KdsDateTimeFormatInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22426
22409
|
const modelValue = useModel(__props, "modelValue");
|
|
22427
22410
|
const open = ref(false);
|
|
22428
22411
|
const popoverEl = useTemplateRef("popoverEl");
|
|
22412
|
+
const popoverAnchorEl = useTemplateRef("popoverAnchor");
|
|
22429
22413
|
return (_ctx, _cache) => {
|
|
22430
22414
|
return openBlock(), createBlock(BaseFormFieldWrapper_default, mergeProps(props, {
|
|
22431
22415
|
error: __props.error,
|
|
22432
22416
|
validating: __props.validating,
|
|
22433
22417
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
22434
22418
|
}), {
|
|
22435
|
-
default: withCtx((slotProps) => [createElementVNode("div",
|
|
22419
|
+
default: withCtx((slotProps) => [createElementVNode("div", _hoisted_1$41, [createVNode(BaseInput_default, mergeProps(slotProps, {
|
|
22436
22420
|
modelValue: modelValue.value,
|
|
22437
22421
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event),
|
|
22438
22422
|
type: "text",
|
|
@@ -22474,6 +22458,7 @@ var KdsDateTimeFormatInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22474
22458
|
ref: popoverEl,
|
|
22475
22459
|
modelValue: open.value,
|
|
22476
22460
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => open.value = $event),
|
|
22461
|
+
anchor: popoverAnchorEl.value,
|
|
22477
22462
|
placement: "bottom-right",
|
|
22478
22463
|
"aria-label": "Date time format selection dialog"
|
|
22479
22464
|
}, {
|
|
@@ -22492,7 +22477,7 @@ var KdsDateTimeFormatInput_default = /* @__PURE__ */ defineComponent({
|
|
|
22492
22477
|
"allowed-formats"
|
|
22493
22478
|
])) : createCommentVNode("", true)]),
|
|
22494
22479
|
_: 1
|
|
22495
|
-
}, 8, ["modelValue"])],
|
|
22480
|
+
}, 8, ["modelValue", "anchor"])], 512)]),
|
|
22496
22481
|
_: 1
|
|
22497
22482
|
}, 16, [
|
|
22498
22483
|
"error",
|
|
@@ -22755,7 +22740,7 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22755
22740
|
"resultClick"
|
|
22756
22741
|
], ["update:modelValue"]),
|
|
22757
22742
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22758
|
-
const KdsPopover = defineAsyncComponent(() => import("./KdsPopover-
|
|
22743
|
+
const KdsPopover = defineAsyncComponent(() => import("./KdsPopover-DezPib64.js").then((n) => n.n));
|
|
22759
22744
|
const KdsListContainer = defineAsyncComponent(() => Promise.resolve().then(() => KdsListContainer_exports));
|
|
22760
22745
|
const props = createPropsRestProxy(__props, [
|
|
22761
22746
|
"placeholder",
|
|
@@ -22769,7 +22754,6 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22769
22754
|
const modelValue = useModel(__props, "modelValue");
|
|
22770
22755
|
const emit = __emit;
|
|
22771
22756
|
const baseInput = useTemplateRef("baseInput");
|
|
22772
|
-
const popoverEl = useTemplateRef("popover");
|
|
22773
22757
|
const listContainerEl = useTemplateRef("listContainer");
|
|
22774
22758
|
const resultsOpen = ref(false);
|
|
22775
22759
|
const resultsId = useId();
|
|
@@ -22836,7 +22820,6 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22836
22820
|
autocomplete: __props.autocomplete,
|
|
22837
22821
|
"leading-icon": __props.leadingIcon,
|
|
22838
22822
|
clearable: true,
|
|
22839
|
-
style: popoverEl.value?.anchorStyle,
|
|
22840
22823
|
role: __props.results ? "combobox" : void 0,
|
|
22841
22824
|
"aria-activedescendant": resultsOpen.value ? listContainerEl.value?.activeDescendant : void 0,
|
|
22842
22825
|
"aria-haspopup": __props.results ? "listbox" : void 0,
|
|
@@ -22854,7 +22837,6 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22854
22837
|
"maxlength",
|
|
22855
22838
|
"autocomplete",
|
|
22856
22839
|
"leading-icon",
|
|
22857
|
-
"style",
|
|
22858
22840
|
"role",
|
|
22859
22841
|
"aria-activedescendant",
|
|
22860
22842
|
"aria-haspopup",
|
|
@@ -22862,9 +22844,9 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22862
22844
|
"aria-expanded"
|
|
22863
22845
|
]), __props.results ? (openBlock(), createBlock(unref(KdsPopover), {
|
|
22864
22846
|
key: 0,
|
|
22865
|
-
ref: "popover",
|
|
22866
22847
|
modelValue: resultsOpen.value,
|
|
22867
22848
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => resultsOpen.value = $event),
|
|
22849
|
+
anchor: baseInput.value?.$el,
|
|
22868
22850
|
"full-width": "",
|
|
22869
22851
|
"max-inline-size": "anchor-size(width)",
|
|
22870
22852
|
"popover-type": "manual",
|
|
@@ -22886,7 +22868,7 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22886
22868
|
onItemClick: onResultClick
|
|
22887
22869
|
}, null, 8, ["id", "possible-values"])], 4)) : createCommentVNode("", true)]),
|
|
22888
22870
|
_: 1
|
|
22889
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true)]),
|
|
22871
|
+
}, 8, ["modelValue", "anchor"])) : createCommentVNode("", true)]),
|
|
22890
22872
|
_: 1
|
|
22891
22873
|
}, 8, [
|
|
22892
22874
|
"id",
|
|
@@ -22900,10 +22882,10 @@ var KdsSearchInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
22900
22882
|
]);
|
|
22901
22883
|
};
|
|
22902
22884
|
}
|
|
22903
|
-
}), [["__scopeId", "data-v-
|
|
22885
|
+
}), [["__scopeId", "data-v-0dd1bb64"]]);
|
|
22904
22886
|
//#endregion
|
|
22905
22887
|
//#region src/components/forms/inputs/Textarea/KdsTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
22906
|
-
var _hoisted_1$
|
|
22888
|
+
var _hoisted_1$40 = [
|
|
22907
22889
|
"rows",
|
|
22908
22890
|
"placeholder",
|
|
22909
22891
|
"disabled",
|
|
@@ -22979,7 +22961,7 @@ var KdsTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
22979
22961
|
disabled: __props.disabled,
|
|
22980
22962
|
autocomplete: props.autocomplete,
|
|
22981
22963
|
maxlength: props.maxlength
|
|
22982
|
-
}), null, 16, _hoisted_1$
|
|
22964
|
+
}), null, 16, _hoisted_1$40), [[vModelText, modelValue.value]])]),
|
|
22983
22965
|
_: 1
|
|
22984
22966
|
}, 16, [
|
|
22985
22967
|
"error",
|
|
@@ -22991,7 +22973,7 @@ var KdsTextarea_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
22991
22973
|
}), [["__scopeId", "data-v-7a6ec8a2"]]);
|
|
22992
22974
|
//#endregion
|
|
22993
22975
|
//#region src/components/forms/inputs/TimeInput/TimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
22994
|
-
var _hoisted_1$
|
|
22976
|
+
var _hoisted_1$39 = { class: "kds-time-picker" };
|
|
22995
22977
|
var _hoisted_2$23 = { class: "kds-time-picker-fields" };
|
|
22996
22978
|
var _hoisted_3$18 = { class: "kds-time-picker-fields" };
|
|
22997
22979
|
var _hoisted_4$17 = {
|
|
@@ -23081,7 +23063,7 @@ var TimePicker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
23081
23063
|
};
|
|
23082
23064
|
__expose({ focus });
|
|
23083
23065
|
return (_ctx, _cache) => {
|
|
23084
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23066
|
+
return openBlock(), createElementBlock("div", _hoisted_1$39, [
|
|
23085
23067
|
createElementVNode("div", _hoisted_2$23, [createVNode(KdsNumberInput_default, {
|
|
23086
23068
|
ref: "hourInput",
|
|
23087
23069
|
modelValue: hour.value,
|
|
@@ -23454,7 +23436,6 @@ var KdsTimeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
23454
23436
|
disabled: __props.disabled,
|
|
23455
23437
|
error: effectiveError.value,
|
|
23456
23438
|
autocomplete: __props.autocomplete,
|
|
23457
|
-
style: popoverRef.value?.anchorStyle,
|
|
23458
23439
|
"aria-controls": popoverRef.value?.popoverId,
|
|
23459
23440
|
onBlur: onTextInputBlur
|
|
23460
23441
|
}), {
|
|
@@ -23488,13 +23469,13 @@ var KdsTimeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
23488
23469
|
"disabled",
|
|
23489
23470
|
"error",
|
|
23490
23471
|
"autocomplete",
|
|
23491
|
-
"style",
|
|
23492
23472
|
"aria-controls"
|
|
23493
23473
|
]), createVNode(KdsPopover_default, {
|
|
23494
23474
|
ref_key: "popoverRef",
|
|
23495
23475
|
ref: popoverRef,
|
|
23496
23476
|
modelValue: popoverIsVisible.value,
|
|
23497
23477
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => popoverIsVisible.value = $event),
|
|
23478
|
+
anchor: baseInput.value?.$el,
|
|
23498
23479
|
placement: "bottom-right",
|
|
23499
23480
|
role: "dialog",
|
|
23500
23481
|
"aria-label": "Time picker"
|
|
@@ -23514,7 +23495,7 @@ var KdsTimeInput_default = /* @__PURE__ */ defineComponent({
|
|
|
23514
23495
|
"max-granularity"
|
|
23515
23496
|
])) : createCommentVNode("", true)]),
|
|
23516
23497
|
_: 1
|
|
23517
|
-
}, 8, ["modelValue"])]),
|
|
23498
|
+
}, 8, ["modelValue", "anchor"])]),
|
|
23518
23499
|
_: 1
|
|
23519
23500
|
}, 16, ["error", "sub-text"]);
|
|
23520
23501
|
};
|
|
@@ -23692,7 +23673,7 @@ var stripInactiveFields = (duration, usedFormat) => {
|
|
|
23692
23673
|
var toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
23693
23674
|
//#endregion
|
|
23694
23675
|
//#region src/components/forms/inputs/IntervalInput/IntervalInputPopover.vue?vue&type=script&setup=true&lang.ts
|
|
23695
|
-
var _hoisted_1$
|
|
23676
|
+
var _hoisted_1$38 = { class: "kds-interval-popover" };
|
|
23696
23677
|
var _hoisted_2$22 = { class: "kds-interval-popover-header" };
|
|
23697
23678
|
var _hoisted_3$17 = { class: "kds-interval-popover-content" };
|
|
23698
23679
|
var _hoisted_4$16 = { class: "kds-interval-popover-grid" };
|
|
@@ -23787,7 +23768,7 @@ var IntervalInputPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
23787
23768
|
}
|
|
23788
23769
|
});
|
|
23789
23770
|
return (_ctx, _cache) => {
|
|
23790
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23771
|
+
return openBlock(), createElementBlock("div", _hoisted_1$38, [
|
|
23791
23772
|
createElementVNode("div", _hoisted_2$22, [_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)), props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch_default), {
|
|
23792
23773
|
key: 0,
|
|
23793
23774
|
modelValue: mode.value,
|
|
@@ -23841,6 +23822,9 @@ var IntervalInputPopover_default = /*#__PURE__*/ _plugin_vue_export_helper_defau
|
|
|
23841
23822
|
}
|
|
23842
23823
|
}), [["__scopeId", "data-v-f4a7d41b"]]);
|
|
23843
23824
|
//#endregion
|
|
23825
|
+
//#region src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue?vue&type=script&setup=true&lang.ts
|
|
23826
|
+
var _hoisted_1$37 = { ref: "popoverAnchor" };
|
|
23827
|
+
//#endregion
|
|
23844
23828
|
//#region src/components/forms/inputs/IntervalInput/KdsIntervalInput.vue
|
|
23845
23829
|
var KdsIntervalInput_default = /* @__PURE__ */ defineComponent({
|
|
23846
23830
|
__name: "KdsIntervalInput",
|
|
@@ -23893,6 +23877,7 @@ var KdsIntervalInput_default = /* @__PURE__ */ defineComponent({
|
|
|
23893
23877
|
const isToggling = ref(false);
|
|
23894
23878
|
const inputError = ref(false);
|
|
23895
23879
|
const popoverRef = useTemplateRef("popoverEl");
|
|
23880
|
+
const popoverAnchorEl = useTemplateRef("popoverAnchor");
|
|
23896
23881
|
const baseInputRef = useTemplateRef("baseInput");
|
|
23897
23882
|
const defaultFormat = kdsIntervalInputFormat.DATE;
|
|
23898
23883
|
const resolveActiveFormat = (duration, fallback) => {
|
|
@@ -23982,7 +23967,7 @@ var KdsIntervalInput_default = /* @__PURE__ */ defineComponent({
|
|
|
23982
23967
|
"preserve-sub-text-space": __props.preserveSubTextSpace,
|
|
23983
23968
|
"sub-text": effectiveSubText.value
|
|
23984
23969
|
}), {
|
|
23985
|
-
default: withCtx((slotProps) => [createElementVNode("div",
|
|
23970
|
+
default: withCtx((slotProps) => [createElementVNode("div", _hoisted_1$37, [createVNode(BaseInput_default, mergeProps({ ref: "baseInput" }, slotProps, {
|
|
23986
23971
|
modelValue: inputValue.value,
|
|
23987
23972
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => inputValue.value = $event),
|
|
23988
23973
|
type: "text",
|
|
@@ -24031,6 +24016,7 @@ var KdsIntervalInput_default = /* @__PURE__ */ defineComponent({
|
|
|
24031
24016
|
ref: "popoverEl",
|
|
24032
24017
|
modelValue: isPopoverOpen.value,
|
|
24033
24018
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isPopoverOpen.value = $event),
|
|
24019
|
+
anchor: popoverAnchorEl.value,
|
|
24034
24020
|
placement: "bottom-right",
|
|
24035
24021
|
role: "dialog",
|
|
24036
24022
|
"aria-label": "Interval selection dialog"
|
|
@@ -24050,7 +24036,7 @@ var KdsIntervalInput_default = /* @__PURE__ */ defineComponent({
|
|
|
24050
24036
|
"allow-descending"
|
|
24051
24037
|
])) : createCommentVNode("", true)]),
|
|
24052
24038
|
_: 1
|
|
24053
|
-
}, 8, ["modelValue"])],
|
|
24039
|
+
}, 8, ["modelValue", "anchor"])], 512)]),
|
|
24054
24040
|
_: 1
|
|
24055
24041
|
}, 16, [
|
|
24056
24042
|
"error",
|
|
@@ -24419,7 +24405,6 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
24419
24405
|
error: __props.error,
|
|
24420
24406
|
missing: !!modelValue.value && !selectedOption.value,
|
|
24421
24407
|
accessory: selectedOption.value?.accessory,
|
|
24422
|
-
style: popoverEl.value?.anchorStyle,
|
|
24423
24408
|
"popover-id": popoverEl.value?.popoverId,
|
|
24424
24409
|
onClick: _cache[1] || (_cache[1] = ($event) => open.value = !open.value)
|
|
24425
24410
|
}), null, 16, [
|
|
@@ -24430,13 +24415,13 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
24430
24415
|
"error",
|
|
24431
24416
|
"missing",
|
|
24432
24417
|
"accessory",
|
|
24433
|
-
"style",
|
|
24434
24418
|
"popover-id"
|
|
24435
24419
|
]), createVNode(KdsPopover_default, {
|
|
24436
24420
|
ref_key: "popoverEl",
|
|
24437
24421
|
ref: popoverEl,
|
|
24438
24422
|
modelValue: open.value,
|
|
24439
24423
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => open.value = $event),
|
|
24424
|
+
anchor: baseDropdownEl.value?.$el,
|
|
24440
24425
|
placement: "bottom-left",
|
|
24441
24426
|
role: "dialog",
|
|
24442
24427
|
"full-width": "",
|
|
@@ -24459,7 +24444,7 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
24459
24444
|
"loading"
|
|
24460
24445
|
])) : createCommentVNode("", true)]),
|
|
24461
24446
|
_: 1
|
|
24462
|
-
}, 8, ["modelValue"])]),
|
|
24447
|
+
}, 8, ["modelValue", "anchor"])]),
|
|
24463
24448
|
_: 1
|
|
24464
24449
|
}, 8, [
|
|
24465
24450
|
"id",
|
|
@@ -25014,7 +24999,6 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
25014
24999
|
disabled: __props.disabled,
|
|
25015
25000
|
error: __props.error,
|
|
25016
25001
|
missing: missingIds.value.length > 0,
|
|
25017
|
-
style: popoverEl.value?.anchorStyle,
|
|
25018
25002
|
"popover-id": popoverEl.value?.popoverId,
|
|
25019
25003
|
onClick: _cache[1] || (_cache[1] = ($event) => open.value = !open.value)
|
|
25020
25004
|
}), null, 16, [
|
|
@@ -25024,13 +25008,13 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
25024
25008
|
"disabled",
|
|
25025
25009
|
"error",
|
|
25026
25010
|
"missing",
|
|
25027
|
-
"style",
|
|
25028
25011
|
"popover-id"
|
|
25029
25012
|
]), createVNode(KdsPopover_default, {
|
|
25030
25013
|
ref_key: "popoverEl",
|
|
25031
25014
|
ref: popoverEl,
|
|
25032
25015
|
modelValue: open.value,
|
|
25033
25016
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => open.value = $event),
|
|
25017
|
+
anchor: baseDropdownEl.value?.$el,
|
|
25034
25018
|
placement: "bottom-left",
|
|
25035
25019
|
role: "dialog",
|
|
25036
25020
|
"full-width": "",
|
|
@@ -25057,7 +25041,7 @@ focus: () => baseDropdownEl.value?.focus() });
|
|
|
25057
25041
|
"maxlength"
|
|
25058
25042
|
])) : createCommentVNode("", true)]),
|
|
25059
25043
|
_: 1
|
|
25060
|
-
}, 8, ["modelValue"])]),
|
|
25044
|
+
}, 8, ["modelValue", "anchor"])]),
|
|
25061
25045
|
_: 1
|
|
25062
25046
|
}, 8, [
|
|
25063
25047
|
"id",
|
|
@@ -26815,10 +26799,11 @@ var KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
26815
26799
|
const props = createPropsRestProxy(__props, ["hidden"]);
|
|
26816
26800
|
const modelValue = useModel(__props, "modelValue");
|
|
26817
26801
|
const popoverEl = useTemplateRef("popoverEl");
|
|
26802
|
+
const toggleButtonEl = useTemplateRef("toggleButton");
|
|
26818
26803
|
const isHovered = ref(false);
|
|
26819
26804
|
const isFocused = ref(false);
|
|
26820
26805
|
return (_ctx, _cache) => {
|
|
26821
|
-
return openBlock(), createElementBlock(Fragment, null, [withDirectives((openBlock(), createElementBlock("button", mergeProps(_ctx.$attrs, {
|
|
26806
|
+
return openBlock(), createElementBlock(Fragment, null, [withDirectives((openBlock(), createElementBlock("button", mergeProps({ ref: "toggleButton" }, _ctx.$attrs, {
|
|
26822
26807
|
class: {
|
|
26823
26808
|
"info-toggle-button": true,
|
|
26824
26809
|
selected: modelValue.value,
|
|
@@ -26829,7 +26814,6 @@ var KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
26829
26814
|
"aria-expanded": modelValue.value,
|
|
26830
26815
|
"aria-controls": popoverEl.value?.popoverId,
|
|
26831
26816
|
"aria-haspopup": "dialog",
|
|
26832
|
-
style: popoverEl.value?.anchorStyle,
|
|
26833
26817
|
type: "button",
|
|
26834
26818
|
onClick: _cache[0] || (_cache[0] = ($event) => modelValue.value = !modelValue.value),
|
|
26835
26819
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHovered.value = true),
|
|
@@ -26845,6 +26829,7 @@ var KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
26845
26829
|
modelValue: modelValue.value,
|
|
26846
26830
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => modelValue.value = $event),
|
|
26847
26831
|
placement: "top-right",
|
|
26832
|
+
anchor: toggleButtonEl.value,
|
|
26848
26833
|
role: "dialog",
|
|
26849
26834
|
"aria-label": "Description"
|
|
26850
26835
|
}, {
|
|
@@ -26856,14 +26841,14 @@ var KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
26856
26841
|
_: 3
|
|
26857
26842
|
}, 8, ["content"])) : createCommentVNode("", true)]),
|
|
26858
26843
|
_: 3
|
|
26859
|
-
}, 8, ["modelValue"])], 64);
|
|
26844
|
+
}, 8, ["modelValue", "anchor"])], 64);
|
|
26860
26845
|
};
|
|
26861
26846
|
}
|
|
26862
26847
|
});
|
|
26863
26848
|
//#endregion
|
|
26864
26849
|
//#region src/components/forms/_helper/InfoPopover/KdsInfoToggleButton.vue
|
|
26865
26850
|
var KdsInfoToggleButton_exports = /* @__PURE__ */ __exportAll$1({ default: () => KdsInfoToggleButton_default });
|
|
26866
|
-
var KdsInfoToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
26851
|
+
var KdsInfoToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(KdsInfoToggleButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3dd9df2b"]]);
|
|
26867
26852
|
//#endregion
|
|
26868
26853
|
//#region src/components/forms/_helper/VariablePopover/VariablePopover.vue?vue&type=script&setup=true&lang.ts
|
|
26869
26854
|
var _hoisted_1$24 = {
|
|
@@ -26930,6 +26915,7 @@ var KdsVariableToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
26930
26915
|
/** Whether the variable popover is open. */
|
|
26931
26916
|
const modelValue = useModel(__props, "modelValue");
|
|
26932
26917
|
const popoverEl = useTemplateRef("popoverEl");
|
|
26918
|
+
const toggleButtonEl = useTemplateRef("toggleButton");
|
|
26933
26919
|
const isHovered = ref(false);
|
|
26934
26920
|
const isFocused = ref(false);
|
|
26935
26921
|
const iconState = computed(() => {
|
|
@@ -26963,7 +26949,7 @@ var KdsVariableToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
26963
26949
|
return errorTitleByState[iconState.value] ?? baseTitle;
|
|
26964
26950
|
});
|
|
26965
26951
|
return (_ctx, _cache) => {
|
|
26966
|
-
return openBlock(), createElementBlock(Fragment, null, [withDirectives((openBlock(), createElementBlock("button", mergeProps(_ctx.$attrs, {
|
|
26952
|
+
return openBlock(), createElementBlock(Fragment, null, [withDirectives((openBlock(), createElementBlock("button", mergeProps({ ref: "toggleButton" }, _ctx.$attrs, {
|
|
26967
26953
|
class: {
|
|
26968
26954
|
"variable-toggle-button": true,
|
|
26969
26955
|
error: __props.error,
|
|
@@ -26975,7 +26961,6 @@ var KdsVariableToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
26975
26961
|
"aria-expanded": modelValue.value,
|
|
26976
26962
|
"aria-controls": popoverEl.value?.popoverId,
|
|
26977
26963
|
"aria-haspopup": "dialog",
|
|
26978
|
-
style: popoverEl.value?.anchorStyle,
|
|
26979
26964
|
type: "button",
|
|
26980
26965
|
onClick: _cache[0] || (_cache[0] = ($event) => modelValue.value = !modelValue.value),
|
|
26981
26966
|
onMouseenter: _cache[1] || (_cache[1] = ($event) => isHovered.value = true),
|
|
@@ -26991,6 +26976,7 @@ var KdsVariableToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
26991
26976
|
modelValue: modelValue.value,
|
|
26992
26977
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => modelValue.value = $event),
|
|
26993
26978
|
placement: "bottom-right",
|
|
26979
|
+
anchor: toggleButtonEl.value,
|
|
26994
26980
|
role: "dialog",
|
|
26995
26981
|
"aria-label": "Flow Variable settings"
|
|
26996
26982
|
}, {
|
|
@@ -27002,10 +26988,10 @@ var KdsVariableToggleButton_default = /*#__PURE__*/ _plugin_vue_export_helper_de
|
|
|
27002
26988
|
_: 3
|
|
27003
26989
|
}, 8, ["content"])) : createCommentVNode("", true)]),
|
|
27004
26990
|
_: 3
|
|
27005
|
-
}, 8, ["modelValue"])], 64);
|
|
26991
|
+
}, 8, ["modelValue", "anchor"])], 64);
|
|
27006
26992
|
};
|
|
27007
26993
|
}
|
|
27008
|
-
}), [["__scopeId", "data-v-
|
|
26994
|
+
}), [["__scopeId", "data-v-c857bf47"]]);
|
|
27009
26995
|
//#endregion
|
|
27010
26996
|
//#region src/components/lists/Menu/KdsMenu.vue
|
|
27011
26997
|
var KdsMenu_default = /* @__PURE__ */ defineComponent({
|
|
@@ -27022,7 +27008,7 @@ var KdsMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
27022
27008
|
const props = createPropsRestProxy(__props, ["variant", "menuMaxHeight"]);
|
|
27023
27009
|
const emit = __emit;
|
|
27024
27010
|
const isMenuOpen = ref(false);
|
|
27025
|
-
const
|
|
27011
|
+
const anchorEl = shallowRef(null);
|
|
27026
27012
|
const menuContainerEl = useTemplateRef("menuContainer");
|
|
27027
27013
|
const menuId = useId();
|
|
27028
27014
|
watch(isMenuOpen, (_newVal, _oldVal, onCleanup) => {
|
|
@@ -27049,18 +27035,16 @@ var KdsMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
27049
27035
|
const toggle = () => {
|
|
27050
27036
|
isMenuOpen.value = !isMenuOpen.value;
|
|
27051
27037
|
};
|
|
27052
|
-
const
|
|
27053
|
-
const
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
};
|
|
27063
|
-
});
|
|
27038
|
+
const setAnchor = (el) => {
|
|
27039
|
+
const element = el && "$el" in el ? el.$el : el;
|
|
27040
|
+
anchorEl.value = element instanceof HTMLElement ? element : null;
|
|
27041
|
+
};
|
|
27042
|
+
const attrs = computed(() => ({
|
|
27043
|
+
"aria-haspopup": "menu",
|
|
27044
|
+
"aria-expanded": isMenuOpen.value,
|
|
27045
|
+
"aria-controls": isMenuOpen.value ? menuId : void 0,
|
|
27046
|
+
ref: setAnchor
|
|
27047
|
+
}));
|
|
27064
27048
|
const slots = useSlots();
|
|
27065
27049
|
return (_ctx, _cache) => {
|
|
27066
27050
|
return openBlock(), createElementBlock(Fragment, null, [renderSlot(_ctx.$slots, "default", {
|
|
@@ -27071,9 +27055,9 @@ var KdsMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
27071
27055
|
attrs: attrs.value
|
|
27072
27056
|
}), Boolean(slots.default) ? (openBlock(), createBlock(KdsPopover_default, {
|
|
27073
27057
|
key: 0,
|
|
27074
|
-
ref: "popover",
|
|
27075
27058
|
modelValue: isMenuOpen.value,
|
|
27076
27059
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event),
|
|
27060
|
+
anchor: anchorEl.value,
|
|
27077
27061
|
placement: "bottom-left",
|
|
27078
27062
|
"popover-type": "auto",
|
|
27079
27063
|
"aria-label": "Menu"
|
|
@@ -27095,7 +27079,7 @@ var KdsMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
27095
27079
|
"aria-label"
|
|
27096
27080
|
])) : createCommentVNode("", true)]),
|
|
27097
27081
|
_: 1
|
|
27098
|
-
}, 8, ["modelValue"])) : createCommentVNode("", true)], 64);
|
|
27082
|
+
}, 8, ["modelValue", "anchor"])) : createCommentVNode("", true)], 64);
|
|
27099
27083
|
};
|
|
27100
27084
|
}
|
|
27101
27085
|
});
|
|
@@ -33994,7 +33978,7 @@ var ELEMENT_ID = "kds-file-explorer-context-menu-anchor-helper";
|
|
|
33994
33978
|
var remove = () => {
|
|
33995
33979
|
document.querySelector(`#${ELEMENT_ID}`)?.remove();
|
|
33996
33980
|
};
|
|
33997
|
-
var create = (top, left
|
|
33981
|
+
var create = (top, left) => {
|
|
33998
33982
|
remove();
|
|
33999
33983
|
const element = document.createElement("div");
|
|
34000
33984
|
element.id = ELEMENT_ID;
|
|
@@ -34005,7 +33989,6 @@ var create = (top, left, anchorStyle) => {
|
|
|
34005
33989
|
element.style.width = "0";
|
|
34006
33990
|
element.style.height = "0";
|
|
34007
33991
|
element.style.pointerEvents = "none";
|
|
34008
|
-
Object.assign(element.style, anchorStyle);
|
|
34009
33992
|
return element;
|
|
34010
33993
|
};
|
|
34011
33994
|
var popoverAnchor = {
|
|
@@ -34063,7 +34046,7 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34063
34046
|
"renameFile"
|
|
34064
34047
|
], ["update:activeRenamedItemId"]),
|
|
34065
34048
|
setup(__props, { emit: __emit }) {
|
|
34066
|
-
useCssVars((_ctx) => ({ "
|
|
34049
|
+
useCssVars((_ctx) => ({ "v68199c92": itemHeight.value + "px" }));
|
|
34067
34050
|
const props = __props;
|
|
34068
34051
|
/** The id of the item currently being renamed. */
|
|
34069
34052
|
const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
|
|
@@ -34196,9 +34179,11 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34196
34179
|
});
|
|
34197
34180
|
/** KEYBOARD NAV */
|
|
34198
34181
|
const contextMenuAnchor = ref(null);
|
|
34182
|
+
const contextMenuAnchorEl = shallowRef(null);
|
|
34199
34183
|
const closeContextMenu = (focusLastItem = true) => {
|
|
34200
34184
|
if (!contextMenuAnchor.value) return;
|
|
34201
34185
|
contextMenuAnchor.value = null;
|
|
34186
|
+
contextMenuAnchorEl.value = null;
|
|
34202
34187
|
if (focusLastItem) focusIndex(focusedIndex.value, false);
|
|
34203
34188
|
popoverAnchor.remove();
|
|
34204
34189
|
};
|
|
@@ -34228,16 +34213,19 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34228
34213
|
};
|
|
34229
34214
|
const openByOptionsMenu = (toggled, item, itemIndex) => {
|
|
34230
34215
|
if (!props.contextMenuBuilder) return;
|
|
34231
|
-
if (toggled)
|
|
34232
|
-
|
|
34216
|
+
if (toggled) {
|
|
34217
|
+
contextMenuAnchorEl.value = getItemElement(itemIndex)?.querySelector("[aria-controls=\"file-explorer-options-menu\"]") ?? null;
|
|
34218
|
+
setContextMenuOpen(item, itemIndex, "optionsMenu");
|
|
34219
|
+
} else closeContextMenu();
|
|
34233
34220
|
};
|
|
34234
34221
|
const openContextMenuByMouse = async (event, clickedItem, index) => {
|
|
34235
34222
|
if (!props.contextMenuBuilder) return;
|
|
34236
34223
|
await new Promise((r) => setTimeout(r, 0));
|
|
34237
34224
|
const rowElement = getItemElement(index);
|
|
34238
34225
|
const { x, y } = rowElement.getBoundingClientRect();
|
|
34239
|
-
const anchorElement = popoverAnchor.create(`${event.clientY - y}px`, `${event.clientX - x}px
|
|
34226
|
+
const anchorElement = popoverAnchor.create(`${event.clientY - y}px`, `${event.clientX - x}px`);
|
|
34240
34227
|
rowElement.appendChild(anchorElement);
|
|
34228
|
+
contextMenuAnchorEl.value = anchorElement;
|
|
34241
34229
|
setContextMenuOpen(clickedItem, index, "mouse");
|
|
34242
34230
|
};
|
|
34243
34231
|
const openContextMenuByKeyboard = (clickedItem, index) => {
|
|
@@ -34245,8 +34233,9 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34245
34233
|
const rowElement = getItemElement(index);
|
|
34246
34234
|
if (!rowElement) return;
|
|
34247
34235
|
setContextMenuOpen(clickedItem, index, "keyboard");
|
|
34248
|
-
const anchorElement = popoverAnchor.create("0px", "50%"
|
|
34236
|
+
const anchorElement = popoverAnchor.create("0px", "50%");
|
|
34249
34237
|
rowElement.appendChild(anchorElement);
|
|
34238
|
+
contextMenuAnchorEl.value = anchorElement;
|
|
34250
34239
|
};
|
|
34251
34240
|
const contextMenuItems = computed(() => {
|
|
34252
34241
|
const anchor = contextMenuAnchor.value?.item;
|
|
@@ -34358,7 +34347,6 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34358
34347
|
"aria-haspopup": "menu",
|
|
34359
34348
|
"aria-expanded": contextMenuAnchor.value?.item.id === item.id && contextMenuAnchor.value.openedBy === "optionsMenu",
|
|
34360
34349
|
"aria-controls": "file-explorer-options-menu",
|
|
34361
|
-
style: normalizeStyle(contextMenuAnchor.value?.openedBy === "optionsMenu" && contextMenuAnchor.value?.item.id === item.id ? popover.value?.anchorStyle : null),
|
|
34362
34350
|
onClick: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"])),
|
|
34363
34351
|
onPointerdown: _cache[6] || (_cache[6] = withModifiers(() => {}, ["stop"])),
|
|
34364
34352
|
onDblclick: _cache[7] || (_cache[7] = withModifiers(() => {}, ["stop"])),
|
|
@@ -34367,7 +34355,6 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34367
34355
|
"model-value",
|
|
34368
34356
|
"size",
|
|
34369
34357
|
"aria-expanded",
|
|
34370
|
-
"style",
|
|
34371
34358
|
"onUpdate:modelValue"
|
|
34372
34359
|
])]),
|
|
34373
34360
|
key: "0"
|
|
@@ -34406,6 +34393,7 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34406
34393
|
ref_key: "popover",
|
|
34407
34394
|
ref: popover,
|
|
34408
34395
|
"popover-type": "manual",
|
|
34396
|
+
anchor: contextMenuAnchorEl.value,
|
|
34409
34397
|
"model-value": Boolean(contextMenuAnchor.value && contextMenuItems.value.length > 0),
|
|
34410
34398
|
placement: "bottom-left",
|
|
34411
34399
|
"aria-label": "Menu",
|
|
@@ -34423,11 +34411,11 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
34423
34411
|
onContextmenu: _cache[13] || (_cache[13] = withModifiers(() => {}, ["prevent", "stop"]))
|
|
34424
34412
|
}, null, 8, ["items", "menu-max-height"])]),
|
|
34425
34413
|
_: 1
|
|
34426
|
-
}, 8, ["model-value"])
|
|
34414
|
+
}, 8, ["anchor", "model-value"])
|
|
34427
34415
|
]);
|
|
34428
34416
|
};
|
|
34429
34417
|
}
|
|
34430
|
-
}), [["__scopeId", "data-v-
|
|
34418
|
+
}), [["__scopeId", "data-v-26aa5225"]]);
|
|
34431
34419
|
//#endregion
|
|
34432
34420
|
//#region src/layouts/explorer/FileExplorer/enums.ts
|
|
34433
34421
|
var kdsFileExplorerSize = {
|