@knime/kds-components 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/index.css +75 -46
- package/dist/index.js +694 -475
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -1
- package/dist/src/accessories/ColorSwatch/enums.d.ts +2 -1
- package/dist/src/accessories/ColorSwatch/enums.d.ts.map +1 -1
- package/dist/src/buttons/links/KdsLink/KdsLink.vue.d.ts.map +1 -1
- package/dist/src/forms/FileSelector/KdsFileSelector.vue.d.ts +166 -0
- package/dist/src/forms/FileSelector/KdsFileSelector.vue.d.ts.map +1 -0
- package/dist/src/forms/FileSelector/index.d.ts +3 -0
- package/dist/src/forms/FileSelector/index.d.ts.map +1 -0
- package/dist/src/forms/FileSelector/types.d.ts +54 -0
- package/dist/src/forms/FileSelector/types.d.ts.map +1 -0
- package/dist/src/forms/index.d.ts +2 -11
- package/dist/src/forms/index.d.ts.map +1 -1
- package/dist/src/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts.map +1 -1
- package/dist/src/richText/Description/KdsDescription.vue.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -274,14 +274,14 @@ const kdsAvatarSize = {
|
|
|
274
274
|
};
|
|
275
275
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
276
276
|
|
|
277
|
-
const _hoisted_1$
|
|
278
|
-
const _hoisted_2$
|
|
279
|
-
const _hoisted_3$
|
|
277
|
+
const _hoisted_1$1g = ["role", "aria-hidden", "aria-label", "data-color"];
|
|
278
|
+
const _hoisted_2$M = ["src"];
|
|
279
|
+
const _hoisted_3$x = {
|
|
280
280
|
key: 1,
|
|
281
281
|
class: "kds-avatar-initials",
|
|
282
282
|
"aria-hidden": "true"
|
|
283
283
|
};
|
|
284
|
-
const _sfc_main$
|
|
284
|
+
const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
285
285
|
__name: "KdsAvatar",
|
|
286
286
|
props: {
|
|
287
287
|
initials: {},
|
|
@@ -344,10 +344,10 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
344
344
|
alt: "",
|
|
345
345
|
"aria-hidden": "true",
|
|
346
346
|
onError: onImageError
|
|
347
|
-
}, null, 40, _hoisted_2$
|
|
347
|
+
}, null, 40, _hoisted_2$M)) : (openBlock(), createElementBlock("div", _hoisted_3$x, [
|
|
348
348
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
349
349
|
]))
|
|
350
|
-
], 10, _hoisted_1$
|
|
350
|
+
], 10, _hoisted_1$1g)), [
|
|
351
351
|
[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]
|
|
352
352
|
]);
|
|
353
353
|
};
|
|
@@ -362,16 +362,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
362
362
|
return target;
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
365
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__scopeId", "data-v-4da85666"]]);
|
|
366
366
|
|
|
367
|
-
const _hoisted_1$
|
|
368
|
-
const _hoisted_2$
|
|
369
|
-
const _hoisted_3$
|
|
367
|
+
const _hoisted_1$1f = ["aria-label"];
|
|
368
|
+
const _hoisted_2$L = { class: "avatars" };
|
|
369
|
+
const _hoisted_3$w = {
|
|
370
370
|
key: 0,
|
|
371
371
|
class: "more-count",
|
|
372
372
|
"aria-hidden": "true"
|
|
373
373
|
};
|
|
374
|
-
const _sfc_main$
|
|
374
|
+
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
375
375
|
__name: "KdsAvatarCounter",
|
|
376
376
|
props: {
|
|
377
377
|
moreCount: { default: 0 },
|
|
@@ -391,7 +391,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
391
391
|
role: "group",
|
|
392
392
|
"aria-label": ariaLabel.value
|
|
393
393
|
}, [
|
|
394
|
-
createElementVNode("div", _hoisted_2$
|
|
394
|
+
createElementVNode("div", _hoisted_2$L, [
|
|
395
395
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.avatars, (avatar, index) => {
|
|
396
396
|
return openBlock(), createBlock(KdsAvatar, {
|
|
397
397
|
key: index,
|
|
@@ -405,13 +405,13 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
405
405
|
}, null, 8, ["style", "size", "initials", "tooltip", "src"]);
|
|
406
406
|
}), 128))
|
|
407
407
|
]),
|
|
408
|
-
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
409
|
-
], 8, _hoisted_1$
|
|
408
|
+
__props.moreCount > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$w, " +" + toDisplayString(__props.moreCount), 1)) : createCommentVNode("", true)
|
|
409
|
+
], 8, _hoisted_1$1f);
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
|
|
414
|
-
const KdsAvatarCounter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
414
|
+
const KdsAvatarCounter = /* @__PURE__ */ _export_sfc(_sfc_main$1P, [["__scopeId", "data-v-d3a7b887"]]);
|
|
415
415
|
|
|
416
416
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
417
417
|
const v = glob$1[path$13];
|
|
@@ -481,8 +481,8 @@ function useIcon({
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
const _hoisted_1$
|
|
485
|
-
const _sfc_main$
|
|
484
|
+
const _hoisted_1$1e = ["data-kds-icon-name"];
|
|
485
|
+
const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
486
486
|
__name: "KdsIcon",
|
|
487
487
|
props: {
|
|
488
488
|
name: {},
|
|
@@ -509,12 +509,12 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
509
509
|
"data-kds-icon-name": props.name,
|
|
510
510
|
"aria-hidden": "true",
|
|
511
511
|
focusable: "false"
|
|
512
|
-
}, null, 10, _hoisted_1$
|
|
512
|
+
}, null, 10, _hoisted_1$1e));
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
|
|
517
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
517
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-5de4a175"]]);
|
|
518
518
|
|
|
519
519
|
const ID_TO_ICON_MAP = {
|
|
520
520
|
// Flow Variables
|
|
@@ -870,8 +870,8 @@ const kdsDataTypeSize = {
|
|
|
870
870
|
};
|
|
871
871
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
872
872
|
|
|
873
|
-
const _hoisted_1$
|
|
874
|
-
const _sfc_main$
|
|
873
|
+
const _hoisted_1$1d = ["data-kds-icon-name"];
|
|
874
|
+
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
875
875
|
__name: "KdsDataType",
|
|
876
876
|
props: {
|
|
877
877
|
iconName: { default: "unknown-datatype" },
|
|
@@ -912,14 +912,14 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
912
912
|
"aria-hidden": "true",
|
|
913
913
|
focusable: "false"
|
|
914
914
|
}, null, 8, ["class"]))
|
|
915
|
-
], 10, _hoisted_1$
|
|
915
|
+
], 10, _hoisted_1$1d)), [
|
|
916
916
|
[unref(vKdsTooltip), __props.iconTitle]
|
|
917
917
|
]);
|
|
918
918
|
};
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
|
|
922
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
922
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["__scopeId", "data-v-b929f2eb"]]);
|
|
923
923
|
|
|
924
924
|
const kdsBadgeVariant = {
|
|
925
925
|
NEUTRAL: "neutral",
|
|
@@ -936,8 +936,8 @@ const kdsBadgeSize = {
|
|
|
936
936
|
};
|
|
937
937
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
938
938
|
|
|
939
|
-
const _hoisted_1$
|
|
940
|
-
const _sfc_main$
|
|
939
|
+
const _hoisted_1$1c = { class: "label-wrapper" };
|
|
940
|
+
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
941
941
|
__name: "KdsBadge",
|
|
942
942
|
props: {
|
|
943
943
|
label: {},
|
|
@@ -959,13 +959,13 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
959
959
|
name: __props.leadingIcon,
|
|
960
960
|
size: sizeToIconSize[__props.size]
|
|
961
961
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
962
|
-
createElementVNode("span", _hoisted_1$
|
|
962
|
+
createElementVNode("span", _hoisted_1$1c, toDisplayString(__props.label), 1)
|
|
963
963
|
], 2);
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
966
|
});
|
|
967
967
|
|
|
968
|
-
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
968
|
+
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["__scopeId", "data-v-df64f7cf"]]);
|
|
969
969
|
|
|
970
970
|
const BYTE_UNITS = [
|
|
971
971
|
'B',
|
|
@@ -3604,6 +3604,9 @@ const formatHotkey = (hotkey, platform) => {
|
|
|
3604
3604
|
};
|
|
3605
3605
|
const getDefaultSeparator = () => isMac() ? " " : "+";
|
|
3606
3606
|
const formatHotkeys = (hotkeys, getSeparator = getDefaultSeparator) => hotkeys.map((hotkey) => formatHotkey(hotkey)).join(getSeparator());
|
|
3607
|
+
const textWithHotkeys = (text, hotkeys) => {
|
|
3608
|
+
return `${text} – ${formatHotkeys(hotkeys)}`;
|
|
3609
|
+
};
|
|
3607
3610
|
|
|
3608
3611
|
const isDigitKeyInRange = (keyCode, hotkey) => {
|
|
3609
3612
|
const digitRangeLength = 3;
|
|
@@ -3644,14 +3647,15 @@ const hotkeys = {
|
|
|
3644
3647
|
formatHotkey,
|
|
3645
3648
|
getDefaultSeparator,
|
|
3646
3649
|
hotkeyPlatform,
|
|
3650
|
+
textWithHotkeys,
|
|
3647
3651
|
match
|
|
3648
3652
|
};
|
|
3649
3653
|
|
|
3650
|
-
const _hoisted_1$
|
|
3654
|
+
const _hoisted_1$1b = {
|
|
3651
3655
|
key: 0,
|
|
3652
3656
|
class: "label"
|
|
3653
3657
|
};
|
|
3654
|
-
const _sfc_main$
|
|
3658
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
3655
3659
|
__name: "BaseButton",
|
|
3656
3660
|
props: {
|
|
3657
3661
|
dataTestId: {},
|
|
@@ -3714,7 +3718,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
3714
3718
|
size: iconSize.value
|
|
3715
3719
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
3716
3720
|
], true),
|
|
3717
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
3721
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$1b, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
3718
3722
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
3719
3723
|
key: 1,
|
|
3720
3724
|
name: props.trailingIcon,
|
|
@@ -3729,9 +3733,9 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
3729
3733
|
}
|
|
3730
3734
|
});
|
|
3731
3735
|
|
|
3732
|
-
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3736
|
+
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["__scopeId", "data-v-6fbab10f"]]);
|
|
3733
3737
|
|
|
3734
|
-
const _sfc_main$
|
|
3738
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
3735
3739
|
__name: "KdsButton",
|
|
3736
3740
|
props: {
|
|
3737
3741
|
dataTestId: {},
|
|
@@ -3789,14 +3793,14 @@ const kdsModalVariants = Object.values(kdsModalVariant);
|
|
|
3789
3793
|
width: kdsModalWidth.MEDIUM,
|
|
3790
3794
|
closedby: kdsModalClosedBy.CLOSEREQUEST});
|
|
3791
3795
|
|
|
3792
|
-
const _hoisted_1$
|
|
3793
|
-
const _hoisted_2$
|
|
3794
|
-
const _hoisted_3$
|
|
3795
|
-
const _hoisted_4$
|
|
3796
|
+
const _hoisted_1$1a = { class: "modal-header" };
|
|
3797
|
+
const _hoisted_2$K = { class: "modal-header-headline" };
|
|
3798
|
+
const _hoisted_3$v = ["data-variant"];
|
|
3799
|
+
const _hoisted_4$r = {
|
|
3796
3800
|
key: 0,
|
|
3797
3801
|
class: "modal-footer"
|
|
3798
3802
|
};
|
|
3799
|
-
const _sfc_main$
|
|
3803
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
3800
3804
|
...{ inheritAttrs: false },
|
|
3801
3805
|
__name: "KdsModalLayout",
|
|
3802
3806
|
props: {
|
|
@@ -3813,14 +3817,14 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
3813
3817
|
const props = createPropsRestProxy(__props, ["headline", "variant", "overflow"]);
|
|
3814
3818
|
return (_ctx, _cache) => {
|
|
3815
3819
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
3816
|
-
createElementVNode("header", _hoisted_1$
|
|
3820
|
+
createElementVNode("header", _hoisted_1$1a, [
|
|
3817
3821
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
3818
3822
|
key: 0,
|
|
3819
3823
|
name: props.leadingIcon,
|
|
3820
3824
|
size: "medium"
|
|
3821
3825
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
3822
|
-
createElementVNode("div", _hoisted_2$
|
|
3823
|
-
createVNode(_sfc_main$
|
|
3826
|
+
createElementVNode("div", _hoisted_2$K, toDisplayString(__props.headline), 1),
|
|
3827
|
+
createVNode(_sfc_main$1K, {
|
|
3824
3828
|
"leading-icon": "x-close",
|
|
3825
3829
|
variant: "transparent",
|
|
3826
3830
|
size: "medium",
|
|
@@ -3834,8 +3838,8 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
3834
3838
|
"data-variant": __props.variant
|
|
3835
3839
|
}, [
|
|
3836
3840
|
renderSlot(_ctx.$slots, "body", {}, void 0, true)
|
|
3837
|
-
], 8, _hoisted_3$
|
|
3838
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$
|
|
3841
|
+
], 8, _hoisted_3$v),
|
|
3842
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_4$r, [
|
|
3839
3843
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
3840
3844
|
])) : createCommentVNode("", true)
|
|
3841
3845
|
], 64);
|
|
@@ -3843,10 +3847,10 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
3843
3847
|
}
|
|
3844
3848
|
});
|
|
3845
3849
|
|
|
3846
|
-
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3850
|
+
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$1J, [["__scopeId", "data-v-5129eb03"]]);
|
|
3847
3851
|
|
|
3848
|
-
const _hoisted_1$
|
|
3849
|
-
const _sfc_main$
|
|
3852
|
+
const _hoisted_1$19 = ["closedby"];
|
|
3853
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
3850
3854
|
__name: "KdsModal",
|
|
3851
3855
|
props: {
|
|
3852
3856
|
leadingIcon: {},
|
|
@@ -3948,15 +3952,15 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
3948
3952
|
_: 3
|
|
3949
3953
|
}, 8, ["headline", "leading-icon", "variant", "overflow"])
|
|
3950
3954
|
], true)
|
|
3951
|
-
], 42, _hoisted_1$
|
|
3955
|
+
], 42, _hoisted_1$19)) : createCommentVNode("", true);
|
|
3952
3956
|
};
|
|
3953
3957
|
}
|
|
3954
3958
|
});
|
|
3955
3959
|
|
|
3956
|
-
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3960
|
+
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["__scopeId", "data-v-dd0e98fc"]]);
|
|
3957
3961
|
|
|
3958
|
-
const _hoisted_1$
|
|
3959
|
-
const _sfc_main$
|
|
3962
|
+
const _hoisted_1$18 = ["data-style"];
|
|
3963
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
3960
3964
|
__name: "KdsLoadingSpinner",
|
|
3961
3965
|
props: {
|
|
3962
3966
|
size: { default: "medium" },
|
|
@@ -3981,16 +3985,16 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
3981
3985
|
cy: "60",
|
|
3982
3986
|
r: "50"
|
|
3983
3987
|
}, null, -1)
|
|
3984
|
-
])], 10, _hoisted_1$
|
|
3988
|
+
])], 10, _hoisted_1$18);
|
|
3985
3989
|
};
|
|
3986
3990
|
}
|
|
3987
3991
|
});
|
|
3988
3992
|
|
|
3989
|
-
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3993
|
+
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$1H, [["__scopeId", "data-v-54835dc0"]]);
|
|
3990
3994
|
|
|
3991
|
-
const _hoisted_1$
|
|
3992
|
-
const _hoisted_2$
|
|
3993
|
-
const _sfc_main$
|
|
3995
|
+
const _hoisted_1$17 = ["id"];
|
|
3996
|
+
const _hoisted_2$J = { class: "subtext-text" };
|
|
3997
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
3994
3998
|
__name: "KdsSubText",
|
|
3995
3999
|
props: {
|
|
3996
4000
|
id: {},
|
|
@@ -4021,27 +4025,27 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
4021
4025
|
variant: "onSurface",
|
|
4022
4026
|
"aria-hidden": "true"
|
|
4023
4027
|
})) : createCommentVNode("", true),
|
|
4024
|
-
createElementVNode("span", _hoisted_2$
|
|
4025
|
-
], 10, _hoisted_1$
|
|
4028
|
+
createElementVNode("span", _hoisted_2$J, toDisplayString(props.subText), 1)
|
|
4029
|
+
], 10, _hoisted_1$17)) : createCommentVNode("", true);
|
|
4026
4030
|
};
|
|
4027
4031
|
}
|
|
4028
4032
|
});
|
|
4029
4033
|
|
|
4030
|
-
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4034
|
+
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["__scopeId", "data-v-2e6ba10c"]]);
|
|
4031
4035
|
|
|
4032
|
-
const _hoisted_1$
|
|
4033
|
-
const _hoisted_2$
|
|
4034
|
-
const _hoisted_3$
|
|
4036
|
+
const _hoisted_1$16 = ["disabled", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
4037
|
+
const _hoisted_2$I = { class: "control" };
|
|
4038
|
+
const _hoisted_3$u = {
|
|
4035
4039
|
key: 0,
|
|
4036
4040
|
class: "content"
|
|
4037
4041
|
};
|
|
4038
|
-
const _hoisted_4$
|
|
4042
|
+
const _hoisted_4$q = { class: "label" };
|
|
4039
4043
|
const _hoisted_5$g = ["id"];
|
|
4040
4044
|
const _hoisted_6$b = {
|
|
4041
4045
|
key: 0,
|
|
4042
4046
|
class: "subtext-wrapper"
|
|
4043
4047
|
};
|
|
4044
|
-
const _sfc_main$
|
|
4048
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
4045
4049
|
__name: "BaseCheckbox",
|
|
4046
4050
|
props: /* @__PURE__ */ mergeModels({
|
|
4047
4051
|
disabled: { type: Boolean, default: false },
|
|
@@ -4113,7 +4117,7 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
4113
4117
|
role: "checkbox",
|
|
4114
4118
|
onClick: handleClick
|
|
4115
4119
|
}, [
|
|
4116
|
-
createElementVNode("div", _hoisted_2$
|
|
4120
|
+
createElementVNode("div", _hoisted_2$I, [
|
|
4117
4121
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
4118
4122
|
key: 0,
|
|
4119
4123
|
name: icon.value,
|
|
@@ -4121,15 +4125,15 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
4121
4125
|
size: "xsmall"
|
|
4122
4126
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
4123
4127
|
]),
|
|
4124
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4125
|
-
createElementVNode("div", _hoisted_4$
|
|
4128
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
|
|
4129
|
+
createElementVNode("div", _hoisted_4$q, toDisplayString(props.label), 1),
|
|
4126
4130
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
4127
4131
|
key: 0,
|
|
4128
4132
|
id: unref(helperId),
|
|
4129
4133
|
class: "helper-text"
|
|
4130
4134
|
}, toDisplayString(props.helperText), 9, _hoisted_5$g)) : createCommentVNode("", true)
|
|
4131
4135
|
])) : createCommentVNode("", true)
|
|
4132
|
-
], 10, _hoisted_1$
|
|
4136
|
+
], 10, _hoisted_1$16)), [
|
|
4133
4137
|
[unref(vKdsTooltip), props.tooltip]
|
|
4134
4138
|
]),
|
|
4135
4139
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
@@ -4145,9 +4149,9 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
4145
4149
|
}
|
|
4146
4150
|
});
|
|
4147
4151
|
|
|
4148
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4152
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["__scopeId", "data-v-cc0338d9"]]);
|
|
4149
4153
|
|
|
4150
|
-
const _sfc_main$
|
|
4154
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
4151
4155
|
__name: "KdsCheckbox",
|
|
4152
4156
|
props: /* @__PURE__ */ mergeModels({
|
|
4153
4157
|
disabled: { type: Boolean, default: false },
|
|
@@ -4255,16 +4259,16 @@ const useKdsDynamicModal = () => {
|
|
|
4255
4259
|
};
|
|
4256
4260
|
};
|
|
4257
4261
|
|
|
4258
|
-
const _hoisted_1$
|
|
4262
|
+
const _hoisted_1$15 = {
|
|
4259
4263
|
key: 1,
|
|
4260
4264
|
class: "confirmation"
|
|
4261
4265
|
};
|
|
4262
|
-
const _hoisted_2$
|
|
4263
|
-
const _hoisted_3$
|
|
4266
|
+
const _hoisted_2$H = { class: "message" };
|
|
4267
|
+
const _hoisted_3$t = {
|
|
4264
4268
|
key: 0,
|
|
4265
4269
|
class: "ask-again"
|
|
4266
4270
|
};
|
|
4267
|
-
const _sfc_main$
|
|
4271
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
4268
4272
|
__name: "KdsDynamicModalProvider",
|
|
4269
4273
|
setup(__props) {
|
|
4270
4274
|
const askAgain = ref(false);
|
|
@@ -4317,10 +4321,10 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
4317
4321
|
unref(config)?.type === "confirm" ? {
|
|
4318
4322
|
name: "body",
|
|
4319
4323
|
fn: withCtx(() => [
|
|
4320
|
-
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
4321
|
-
createElementVNode("div", _hoisted_2$
|
|
4322
|
-
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
4323
|
-
createVNode(_sfc_main$
|
|
4324
|
+
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$15, [
|
|
4325
|
+
createElementVNode("div", _hoisted_2$H, toDisplayString(unref(config).value.message), 1),
|
|
4326
|
+
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
4327
|
+
createVNode(_sfc_main$1E, {
|
|
4324
4328
|
modelValue: askAgain.value,
|
|
4325
4329
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
4326
4330
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -4335,7 +4339,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
4335
4339
|
name: "footer",
|
|
4336
4340
|
fn: withCtx(() => [
|
|
4337
4341
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
|
|
4338
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4342
|
+
return openBlock(), createBlock(_sfc_main$1K, {
|
|
4339
4343
|
key: index,
|
|
4340
4344
|
destructive: button.destructive,
|
|
4341
4345
|
autofocus: button.autofocus,
|
|
@@ -4365,7 +4369,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
4365
4369
|
}
|
|
4366
4370
|
});
|
|
4367
4371
|
|
|
4368
|
-
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4372
|
+
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["__scopeId", "data-v-41fc8d84"]]);
|
|
4369
4373
|
|
|
4370
4374
|
const kdsPopoverPlacement = {
|
|
4371
4375
|
TOP_LEFT: "top-left",
|
|
@@ -4389,12 +4393,12 @@ const kdsPopoverType = {
|
|
|
4389
4393
|
};
|
|
4390
4394
|
const kdsPopoverTypes = Object.values(kdsPopoverType);
|
|
4391
4395
|
|
|
4392
|
-
const _hoisted_1$
|
|
4393
|
-
const _hoisted_2$
|
|
4396
|
+
const _hoisted_1$14 = ["id", "popover", "role"];
|
|
4397
|
+
const _hoisted_2$G = {
|
|
4394
4398
|
key: 0,
|
|
4395
4399
|
class: "kds-popover-default-content"
|
|
4396
4400
|
};
|
|
4397
|
-
const _sfc_main$
|
|
4401
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
4398
4402
|
__name: "KdsPopover",
|
|
4399
4403
|
props: /* @__PURE__ */ mergeModels({
|
|
4400
4404
|
role: {},
|
|
@@ -4454,22 +4458,22 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
4454
4458
|
onToggle
|
|
4455
4459
|
}, [
|
|
4456
4460
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
4457
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
4461
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$G, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
4458
4462
|
], true)
|
|
4459
|
-
], 46, _hoisted_1$
|
|
4463
|
+
], 46, _hoisted_1$14);
|
|
4460
4464
|
};
|
|
4461
4465
|
}
|
|
4462
4466
|
});
|
|
4463
4467
|
|
|
4464
|
-
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4468
|
+
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-b0b887fb"]]);
|
|
4465
4469
|
|
|
4466
4470
|
const KdsPopover$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
4467
4471
|
__proto__: null,
|
|
4468
4472
|
default: KdsPopover
|
|
4469
4473
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
4470
4474
|
|
|
4471
|
-
const _hoisted_1$
|
|
4472
|
-
const _sfc_main$
|
|
4475
|
+
const _hoisted_1$13 = ["data-width"];
|
|
4476
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
4473
4477
|
__name: "KdsSideDrawer",
|
|
4474
4478
|
props: {
|
|
4475
4479
|
isExpanded: { type: Boolean, default: false },
|
|
@@ -4498,12 +4502,12 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4498
4502
|
"data-width": __props.width
|
|
4499
4503
|
}, [
|
|
4500
4504
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
4501
|
-
], 8, _hoisted_1$
|
|
4505
|
+
], 8, _hoisted_1$13);
|
|
4502
4506
|
};
|
|
4503
4507
|
}
|
|
4504
4508
|
});
|
|
4505
4509
|
|
|
4506
|
-
const KdsSideDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4510
|
+
const KdsSideDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-2ee82be5"]]);
|
|
4507
4511
|
|
|
4508
4512
|
const kdsProgressBarSize = {
|
|
4509
4513
|
MEDIUM: "medium",
|
|
@@ -4511,12 +4515,12 @@ const kdsProgressBarSize = {
|
|
|
4511
4515
|
};
|
|
4512
4516
|
const kdsProgressBarSizes = Object.values(kdsProgressBarSize);
|
|
4513
4517
|
|
|
4514
|
-
const _hoisted_1$
|
|
4518
|
+
const _hoisted_1$12 = {
|
|
4515
4519
|
key: 0,
|
|
4516
4520
|
class: "indeterminate-bar",
|
|
4517
4521
|
"aria-hidden": "true"
|
|
4518
4522
|
};
|
|
4519
|
-
const _sfc_main$
|
|
4523
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
4520
4524
|
__name: "KdsProgressBar",
|
|
4521
4525
|
props: {
|
|
4522
4526
|
size: { default: () => kdsProgressBarSize.MEDIUM },
|
|
@@ -4551,15 +4555,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4551
4555
|
withDirectives(createElementVNode("progress", mergeProps({ class: "progress" }, __props.indeterminate ? {} : { value: progressValue.value, max: 100 }), null, 16), [
|
|
4552
4556
|
[unref(vKdsTooltip), tooltip.value]
|
|
4553
4557
|
]),
|
|
4554
|
-
__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
4558
|
+
__props.indeterminate ? (openBlock(), createElementBlock("span", _hoisted_1$12)) : createCommentVNode("", true)
|
|
4555
4559
|
], 2);
|
|
4556
4560
|
};
|
|
4557
4561
|
}
|
|
4558
4562
|
});
|
|
4559
4563
|
|
|
4560
|
-
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4564
|
+
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-a8563140"]]);
|
|
4561
4565
|
|
|
4562
4566
|
const kdsColorSwatchType = {
|
|
4567
|
+
COMPONENT: "component",
|
|
4563
4568
|
LEARNER: "learner",
|
|
4564
4569
|
MANIPULATOR: "manipulator",
|
|
4565
4570
|
PREDICTOR: "predictor",
|
|
@@ -4576,14 +4581,14 @@ const kdsColorSwatchSize = {
|
|
|
4576
4581
|
};
|
|
4577
4582
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
4578
4583
|
|
|
4579
|
-
const _hoisted_1$
|
|
4584
|
+
const _hoisted_1$11 = ["role", "aria-hidden", "aria-label"];
|
|
4580
4585
|
const RGBA_SHORT_HEX_LENGTH = 4;
|
|
4581
4586
|
const RGBA_LONG_HEX_LENGTH = 8;
|
|
4582
4587
|
const ALPHA_NIBBLE_INDEX = 3;
|
|
4583
4588
|
const ALPHA_BYTE_START = 6;
|
|
4584
4589
|
const RGB_SHORT_HEX_LENGTH = 3;
|
|
4585
4590
|
const RGB_LONG_HEX_LENGTH = 6;
|
|
4586
|
-
const _sfc_main$
|
|
4591
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
4587
4592
|
__name: "KdsColorSwatch",
|
|
4588
4593
|
props: {
|
|
4589
4594
|
color: {},
|
|
@@ -4593,6 +4598,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
4593
4598
|
setup(__props) {
|
|
4594
4599
|
const props = createPropsRestProxy(__props, ["size"]);
|
|
4595
4600
|
const typeToTokenColor = {
|
|
4601
|
+
component: "var(--kds-color-nodes-and-variables-component)",
|
|
4596
4602
|
learner: "var(--kds-color-nodes-and-variables-learner)",
|
|
4597
4603
|
manipulator: "var(--kds-color-nodes-and-variables-manipulator)",
|
|
4598
4604
|
predictor: "var(--kds-color-nodes-and-variables-predictor)",
|
|
@@ -4657,14 +4663,14 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
4657
4663
|
style: normalizeStyle(swatchStyle.value),
|
|
4658
4664
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
4659
4665
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
4660
|
-
}, null, 14, _hoisted_1$
|
|
4666
|
+
}, null, 14, _hoisted_1$11)), [
|
|
4661
4667
|
[unref(vKdsTooltip), hasTitle.value ? accessibleTitle.value : void 0]
|
|
4662
4668
|
]);
|
|
4663
4669
|
};
|
|
4664
4670
|
}
|
|
4665
4671
|
});
|
|
4666
4672
|
|
|
4667
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4673
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-3787538b"]]);
|
|
4668
4674
|
|
|
4669
4675
|
const kdsKeyboardShortcutSize = {
|
|
4670
4676
|
SMALL: "small",
|
|
@@ -4672,7 +4678,7 @@ const kdsKeyboardShortcutSize = {
|
|
|
4672
4678
|
};
|
|
4673
4679
|
const kdsKeyboardShortcutSizes = Object.values(kdsKeyboardShortcutSize);
|
|
4674
4680
|
|
|
4675
|
-
const _sfc_main$
|
|
4681
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
4676
4682
|
__name: "KdsKeyboardShortcut",
|
|
4677
4683
|
props: {
|
|
4678
4684
|
size: { default: () => kdsKeyboardShortcutSize.SMALL },
|
|
@@ -4698,14 +4704,14 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
4698
4704
|
}
|
|
4699
4705
|
});
|
|
4700
4706
|
|
|
4701
|
-
const KdsKeyboardShortcut = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4707
|
+
const KdsKeyboardShortcut = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["__scopeId", "data-v-2d1661a8"]]);
|
|
4702
4708
|
|
|
4703
|
-
const _hoisted_1
|
|
4704
|
-
const _hoisted_2$
|
|
4709
|
+
const _hoisted_1$10 = ["aria-label"];
|
|
4710
|
+
const _hoisted_2$F = {
|
|
4705
4711
|
key: 0,
|
|
4706
4712
|
class: "label"
|
|
4707
4713
|
};
|
|
4708
|
-
const _sfc_main$
|
|
4714
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
4709
4715
|
__name: "KdsLiveStatus",
|
|
4710
4716
|
props: {
|
|
4711
4717
|
status: { default: "red" },
|
|
@@ -4725,19 +4731,19 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
4725
4731
|
"aria-label": accessibleTitle.value
|
|
4726
4732
|
}, [
|
|
4727
4733
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)),
|
|
4728
|
-
__props.label ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$
|
|
4734
|
+
__props.label ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$F, [
|
|
4729
4735
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
4730
4736
|
])), [
|
|
4731
4737
|
[unref(vKdsTooltip), __props.label, "truncated"]
|
|
4732
4738
|
]) : createCommentVNode("", true)
|
|
4733
|
-
], 10, _hoisted_1
|
|
4739
|
+
], 10, _hoisted_1$10)), [
|
|
4734
4740
|
[unref(vKdsTooltip), !__props.label ? accessibleTitle.value : void 0]
|
|
4735
4741
|
]);
|
|
4736
4742
|
};
|
|
4737
4743
|
}
|
|
4738
4744
|
});
|
|
4739
4745
|
|
|
4740
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4746
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1x, [["__scopeId", "data-v-a158abc8"]]);
|
|
4741
4747
|
|
|
4742
4748
|
const kdsLiveStatusStatus = {
|
|
4743
4749
|
RED: "red",
|
|
@@ -4761,7 +4767,7 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
4761
4767
|
kdsLoadingSpinnerVariant
|
|
4762
4768
|
);
|
|
4763
4769
|
|
|
4764
|
-
const _sfc_main$
|
|
4770
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
4765
4771
|
__name: "KdsMissingValueIcon",
|
|
4766
4772
|
props: {
|
|
4767
4773
|
size: {}
|
|
@@ -4777,12 +4783,12 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
4777
4783
|
}
|
|
4778
4784
|
});
|
|
4779
4785
|
|
|
4780
|
-
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4786
|
+
const KdsMissingValueIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-df682150"]]);
|
|
4781
4787
|
|
|
4782
|
-
const _hoisted_1
|
|
4783
|
-
const _hoisted_2$
|
|
4784
|
-
const _hoisted_3$
|
|
4785
|
-
const _hoisted_4$
|
|
4788
|
+
const _hoisted_1$$ = { class: "donut-container" };
|
|
4789
|
+
const _hoisted_2$E = ["height", "width", "viewBox"];
|
|
4790
|
+
const _hoisted_3$s = ["r", "stroke-width"];
|
|
4791
|
+
const _hoisted_4$p = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
4786
4792
|
const _hoisted_5$f = ["r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
4787
4793
|
const _hoisted_6$a = {
|
|
4788
4794
|
key: 0,
|
|
@@ -4795,7 +4801,7 @@ const _hoisted_8$3 = {
|
|
|
4795
4801
|
};
|
|
4796
4802
|
const radius = 22;
|
|
4797
4803
|
const innerRadius = 10;
|
|
4798
|
-
const _sfc_main$
|
|
4804
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
4799
4805
|
__name: "KdsDonutChart",
|
|
4800
4806
|
props: {
|
|
4801
4807
|
value: {},
|
|
@@ -4839,7 +4845,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
4839
4845
|
const transformWedge = computed(() => `rotate(-90, ${radius}, ${radius})`);
|
|
4840
4846
|
const disabled = computed(() => !Number.isFinite(__props.maxValue));
|
|
4841
4847
|
return (_ctx, _cache) => {
|
|
4842
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
4848
|
+
return openBlock(), createElementBlock("div", _hoisted_1$$, [
|
|
4843
4849
|
(openBlock(), createElementBlock("svg", {
|
|
4844
4850
|
height: diameter.value,
|
|
4845
4851
|
width: diameter.value,
|
|
@@ -4853,7 +4859,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
4853
4859
|
r: r.value,
|
|
4854
4860
|
"stroke-width": strokeWidth.value,
|
|
4855
4861
|
fill: "transparent"
|
|
4856
|
-
}, null, 8, _hoisted_3$
|
|
4862
|
+
}, null, 8, _hoisted_3$s),
|
|
4857
4863
|
__props.secondaryValue && !disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
4858
4864
|
key: 0,
|
|
4859
4865
|
class: normalizeClass(["value-wedge", "secondary-circle", { animate: __props.animate }]),
|
|
@@ -4865,7 +4871,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
4865
4871
|
"stroke-dashoffset": secondaryStrokeDashOffset.value,
|
|
4866
4872
|
fill: "transparent",
|
|
4867
4873
|
transform: transformWedge.value
|
|
4868
|
-
}, null, 10, _hoisted_4$
|
|
4874
|
+
}, null, 10, _hoisted_4$p)) : createCommentVNode("", true),
|
|
4869
4875
|
!disabled.value ? (openBlock(), createElementBlock("circle", {
|
|
4870
4876
|
key: 1,
|
|
4871
4877
|
class: normalizeClass(["value-wedge", "primary-circle", { animate: __props.animate }]),
|
|
@@ -4878,7 +4884,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
4878
4884
|
fill: "transparent",
|
|
4879
4885
|
transform: transformWedge.value
|
|
4880
4886
|
}, null, 10, _hoisted_5$f)) : createCommentVNode("", true)
|
|
4881
|
-
], 8, _hoisted_2$
|
|
4887
|
+
], 8, _hoisted_2$E)),
|
|
4882
4888
|
__props.label ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
|
|
4883
4889
|
createElementVNode("div", _hoisted_7$3, toDisplayString(__props.label), 1),
|
|
4884
4890
|
__props.subText ? (openBlock(), createElementBlock("div", _hoisted_8$3, toDisplayString(__props.subText), 1)) : createCommentVNode("", true)
|
|
@@ -4888,14 +4894,14 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
4888
4894
|
}
|
|
4889
4895
|
});
|
|
4890
4896
|
|
|
4891
|
-
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4897
|
+
const KdsDonutChart = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["__scopeId", "data-v-3cea3ddf"]]);
|
|
4892
4898
|
|
|
4893
|
-
const _hoisted_1$
|
|
4894
|
-
const _hoisted_2$
|
|
4899
|
+
const _hoisted_1$_ = { class: "kds-highlighted-text" };
|
|
4900
|
+
const _hoisted_2$D = {
|
|
4895
4901
|
key: 0,
|
|
4896
4902
|
class: "kds-highlighted-text-match"
|
|
4897
4903
|
};
|
|
4898
|
-
const _sfc_main$
|
|
4904
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
4899
4905
|
__name: "KdsTextHighlight",
|
|
4900
4906
|
props: {
|
|
4901
4907
|
text: {},
|
|
@@ -4925,10 +4931,10 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
4925
4931
|
return result;
|
|
4926
4932
|
});
|
|
4927
4933
|
return (_ctx, _cache) => {
|
|
4928
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
4934
|
+
return openBlock(), createElementBlock("span", _hoisted_1$_, [
|
|
4929
4935
|
(openBlock(true), createElementBlock(Fragment, null, renderList(segments.value, (segment, index) => {
|
|
4930
4936
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
4931
|
-
segment.match ? (openBlock(), createElementBlock("mark", _hoisted_2$
|
|
4937
|
+
segment.match ? (openBlock(), createElementBlock("mark", _hoisted_2$D, toDisplayString(segment.text), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
4932
4938
|
createTextVNode(toDisplayString(segment.text), 1)
|
|
4933
4939
|
], 64))
|
|
4934
4940
|
], 64);
|
|
@@ -4938,16 +4944,16 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
4938
4944
|
}
|
|
4939
4945
|
});
|
|
4940
4946
|
|
|
4941
|
-
const KdsTextHighlight = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4947
|
+
const KdsTextHighlight = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["__scopeId", "data-v-03752ac8"]]);
|
|
4942
4948
|
|
|
4943
|
-
const _sfc_main$
|
|
4949
|
+
const _sfc_main$1t = { };
|
|
4944
4950
|
|
|
4945
|
-
const _hoisted_1$
|
|
4951
|
+
const _hoisted_1$Z = { class: "kds-divider" };
|
|
4946
4952
|
|
|
4947
4953
|
function _sfc_render$1(_ctx, _cache) {
|
|
4948
|
-
return (openBlock(), createElementBlock("hr", _hoisted_1$
|
|
4954
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$Z))
|
|
4949
4955
|
}
|
|
4950
|
-
const KdsDivider = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
4956
|
+
const KdsDivider = /*#__PURE__*/_export_sfc(_sfc_main$1t, [['render',_sfc_render$1],['__scopeId',"data-v-4d059bd3"]]);
|
|
4951
4957
|
|
|
4952
4958
|
const kdsAccessoryType = {
|
|
4953
4959
|
ICON: "icon",
|
|
@@ -5003,7 +5009,7 @@ function isExternalUrl(url) {
|
|
|
5003
5009
|
return true;
|
|
5004
5010
|
}
|
|
5005
5011
|
|
|
5006
|
-
const _sfc_main$
|
|
5012
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
5007
5013
|
__name: "KdsLinkButton",
|
|
5008
5014
|
props: {
|
|
5009
5015
|
dataTestId: {},
|
|
@@ -5054,12 +5060,14 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
5054
5060
|
}
|
|
5055
5061
|
});
|
|
5056
5062
|
|
|
5057
|
-
const
|
|
5058
|
-
|
|
5059
|
-
|
|
5063
|
+
const ExternalLinkIconUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20viewBox='0%200%2012%2012'%3e%3cpath%20d='M5.5%201.5h-3a1%201%200%200%200-1%201v7a1%201%200%200%200%201%201h7a1%201%200%200%200%201-1v-3m0-5L6%205.892M10.5%201.5v2.75m0-2.75H7.75'%20vector-effect='non-scaling-stroke'/%3e%3c/svg%3e";
|
|
5064
|
+
|
|
5065
|
+
const _hoisted_1$Y = { class: "label" };
|
|
5066
|
+
const _hoisted_2$C = {
|
|
5067
|
+
key: 0,
|
|
5060
5068
|
class: "file-size"
|
|
5061
5069
|
};
|
|
5062
|
-
const _sfc_main$
|
|
5070
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
5063
5071
|
__name: "KdsLink",
|
|
5064
5072
|
props: {
|
|
5065
5073
|
to: {},
|
|
@@ -5067,13 +5075,17 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
5067
5075
|
title: {},
|
|
5068
5076
|
size: { default: "medium" },
|
|
5069
5077
|
disabled: { type: Boolean, default: false },
|
|
5070
|
-
download: { type: Boolean, default:
|
|
5078
|
+
download: { type: Boolean, default: () => void 0 },
|
|
5071
5079
|
target: {},
|
|
5072
5080
|
rel: {},
|
|
5073
5081
|
fileSize: {}
|
|
5074
5082
|
},
|
|
5075
5083
|
emits: ["click"],
|
|
5076
5084
|
setup(__props, { emit: __emit }) {
|
|
5085
|
+
useCssVars((_ctx) => ({
|
|
5086
|
+
"bc3c8892": externalIcon
|
|
5087
|
+
}));
|
|
5088
|
+
const externalIcon = `url("${ExternalLinkIconUrl}")`;
|
|
5077
5089
|
const emit = __emit;
|
|
5078
5090
|
const linkComponent = resolveNuxtLinkComponent();
|
|
5079
5091
|
const variant = computed(() => {
|
|
@@ -5149,13 +5161,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
5149
5161
|
onClick
|
|
5150
5162
|
}, {
|
|
5151
5163
|
default: withCtx(() => [
|
|
5152
|
-
createElementVNode("span", _hoisted_1$
|
|
5153
|
-
|
|
5154
|
-
key: 0,
|
|
5155
|
-
name: "external-link",
|
|
5156
|
-
size: "xsmall"
|
|
5157
|
-
})) : createCommentVNode("", true),
|
|
5158
|
-
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
5164
|
+
createElementVNode("span", _hoisted_1$Y, toDisplayString(__props.label), 1),
|
|
5165
|
+
normalizedFileSize.value ? (openBlock(), createElementBlock("span", _hoisted_2$C, toDisplayString(normalizedFileSize.value), 1)) : createCommentVNode("", true)
|
|
5159
5166
|
]),
|
|
5160
5167
|
_: 1
|
|
5161
5168
|
}, 8, ["class", "to", "download", "target", "rel", "aria-disabled"])), [
|
|
@@ -5165,7 +5172,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
5165
5172
|
}
|
|
5166
5173
|
});
|
|
5167
5174
|
|
|
5168
|
-
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5175
|
+
const KdsLink = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["__scopeId", "data-v-ff340b7a"]]);
|
|
5169
5176
|
|
|
5170
5177
|
const kdsLinkSize = {
|
|
5171
5178
|
SMALL: "small",
|
|
@@ -5173,7 +5180,7 @@ const kdsLinkSize = {
|
|
|
5173
5180
|
};
|
|
5174
5181
|
const kdsLinkSizes = Object.values(kdsLinkSize);
|
|
5175
5182
|
|
|
5176
|
-
const _sfc_main$
|
|
5183
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
5177
5184
|
__name: "KdsToggleButton",
|
|
5178
5185
|
props: /* @__PURE__ */ mergeModels({
|
|
5179
5186
|
dataTestId: {},
|
|
@@ -5210,9 +5217,9 @@ const kdsToggleButtonVariant = {
|
|
|
5210
5217
|
};
|
|
5211
5218
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
5212
5219
|
|
|
5213
|
-
const _hoisted_1$
|
|
5214
|
-
const _hoisted_2$
|
|
5215
|
-
const _sfc_main$
|
|
5220
|
+
const _hoisted_1$X = ["data-visible"];
|
|
5221
|
+
const _hoisted_2$B = ["data-visible"];
|
|
5222
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
5216
5223
|
__name: "KdsProgressButton",
|
|
5217
5224
|
props: /* @__PURE__ */ mergeModels({
|
|
5218
5225
|
dataTestId: {},
|
|
@@ -5273,7 +5280,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
5273
5280
|
name: props.leadingIcon,
|
|
5274
5281
|
size: iconSize.value
|
|
5275
5282
|
}, null, 8, ["name", "size"])
|
|
5276
|
-
], 8, _hoisted_1$
|
|
5283
|
+
], 8, _hoisted_1$X),
|
|
5277
5284
|
createElementVNode("span", {
|
|
5278
5285
|
class: "spinner",
|
|
5279
5286
|
"data-visible": state.value === "progress"
|
|
@@ -5282,7 +5289,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
5282
5289
|
size: iconSize.value,
|
|
5283
5290
|
variant: __props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
5284
5291
|
}, null, 8, ["size", "variant"])
|
|
5285
|
-
], 8, _hoisted_2$
|
|
5292
|
+
], 8, _hoisted_2$B)
|
|
5286
5293
|
], 2)
|
|
5287
5294
|
]),
|
|
5288
5295
|
_: 1
|
|
@@ -5291,7 +5298,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
5291
5298
|
}
|
|
5292
5299
|
});
|
|
5293
5300
|
|
|
5294
|
-
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5301
|
+
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-307ff21d"]]);
|
|
5295
5302
|
|
|
5296
5303
|
const kdsProgressButtonState = {
|
|
5297
5304
|
DEFAULT: "default",
|
|
@@ -5527,7 +5534,7 @@ const useStableItemIds = (options) => {
|
|
|
5527
5534
|
return { itemsWithPrefix, idPrefix, toUnprefixedId };
|
|
5528
5535
|
};
|
|
5529
5536
|
|
|
5530
|
-
const _sfc_main$
|
|
5537
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
5531
5538
|
__name: "_Accessory",
|
|
5532
5539
|
props: {
|
|
5533
5540
|
accessory: {},
|
|
@@ -5568,13 +5575,13 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
5568
5575
|
}
|
|
5569
5576
|
});
|
|
5570
5577
|
|
|
5571
|
-
const _hoisted_1$
|
|
5572
|
-
const _hoisted_2$
|
|
5578
|
+
const _hoisted_1$W = ["id", "role", "aria-selected", "aria-disabled"];
|
|
5579
|
+
const _hoisted_2$A = {
|
|
5573
5580
|
key: 0,
|
|
5574
5581
|
class: "accessory"
|
|
5575
5582
|
};
|
|
5576
|
-
const _hoisted_3$
|
|
5577
|
-
const _hoisted_4$
|
|
5583
|
+
const _hoisted_3$r = { class: "content" };
|
|
5584
|
+
const _hoisted_4$o = { class: "label" };
|
|
5578
5585
|
const _hoisted_5$e = {
|
|
5579
5586
|
key: 0,
|
|
5580
5587
|
class: "prefix"
|
|
@@ -5588,7 +5595,7 @@ const _hoisted_8$2 = {
|
|
|
5588
5595
|
key: 3,
|
|
5589
5596
|
class: "trailing-item-reserve-space"
|
|
5590
5597
|
};
|
|
5591
|
-
const _sfc_main$
|
|
5598
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
5592
5599
|
__name: "KdsListItem",
|
|
5593
5600
|
props: {
|
|
5594
5601
|
id: {},
|
|
@@ -5642,15 +5649,15 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
5642
5649
|
]),
|
|
5643
5650
|
onClick
|
|
5644
5651
|
}, [
|
|
5645
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5646
|
-
createVNode(_sfc_main$
|
|
5652
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$A, [
|
|
5653
|
+
createVNode(_sfc_main$1o, {
|
|
5647
5654
|
accessory: props.accessory,
|
|
5648
5655
|
size: accessorySize.value,
|
|
5649
5656
|
disabled: __props.disabled
|
|
5650
5657
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
5651
5658
|
])) : createCommentVNode("", true),
|
|
5652
|
-
createElementVNode("span", _hoisted_3$
|
|
5653
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_4$
|
|
5659
|
+
createElementVNode("span", _hoisted_3$r, [
|
|
5660
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_4$o, [
|
|
5654
5661
|
__props.missing ? (openBlock(), createElementBlock("span", _hoisted_5$e, "(Missing) ")) : createCommentVNode("", true),
|
|
5655
5662
|
createElementVNode("span", {
|
|
5656
5663
|
class: normalizeClass({ special: __props.special })
|
|
@@ -5681,20 +5688,20 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
5681
5688
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
5682
5689
|
!props.shortcut && !props.trailingIcon && !props.badge ? (openBlock(), createElementBlock("span", _hoisted_8$2)) : createCommentVNode("", true)
|
|
5683
5690
|
])
|
|
5684
|
-
], 10, _hoisted_1$
|
|
5691
|
+
], 10, _hoisted_1$W);
|
|
5685
5692
|
};
|
|
5686
5693
|
}
|
|
5687
5694
|
});
|
|
5688
5695
|
|
|
5689
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5696
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__scopeId", "data-v-e4de454b"]]);
|
|
5690
5697
|
|
|
5691
|
-
const _hoisted_1$
|
|
5692
|
-
const _hoisted_2$
|
|
5698
|
+
const _hoisted_1$V = { class: "kds-list-item-section-title" };
|
|
5699
|
+
const _hoisted_2$z = {
|
|
5693
5700
|
key: 0,
|
|
5694
5701
|
class: "icon"
|
|
5695
5702
|
};
|
|
5696
|
-
const _hoisted_3$
|
|
5697
|
-
const _sfc_main$
|
|
5703
|
+
const _hoisted_3$q = { class: "label" };
|
|
5704
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
5698
5705
|
__name: "ListItemSectionTitle",
|
|
5699
5706
|
props: {
|
|
5700
5707
|
label: {},
|
|
@@ -5703,14 +5710,14 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
5703
5710
|
setup(__props) {
|
|
5704
5711
|
const props = __props;
|
|
5705
5712
|
return (_ctx, _cache) => {
|
|
5706
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
5707
|
-
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
5713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
5714
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$z, [
|
|
5708
5715
|
createVNode(KdsIcon, {
|
|
5709
5716
|
name: props.leadingIcon,
|
|
5710
5717
|
size: "small"
|
|
5711
5718
|
}, null, 8, ["name"])
|
|
5712
5719
|
])) : createCommentVNode("", true),
|
|
5713
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_3$
|
|
5720
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_3$q, [
|
|
5714
5721
|
createTextVNode(toDisplayString(props.label), 1)
|
|
5715
5722
|
])), [
|
|
5716
5723
|
[unref(vKdsTooltip), props.label, "truncated"]
|
|
@@ -5720,9 +5727,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
5720
5727
|
}
|
|
5721
5728
|
});
|
|
5722
5729
|
|
|
5723
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5730
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-2b696c3d"]]);
|
|
5724
5731
|
|
|
5725
|
-
const _sfc_main$
|
|
5732
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
5726
5733
|
__name: "KdsMenuItem",
|
|
5727
5734
|
props: {
|
|
5728
5735
|
item: {},
|
|
@@ -5892,14 +5899,14 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
5892
5899
|
}
|
|
5893
5900
|
});
|
|
5894
5901
|
|
|
5895
|
-
const KdsMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5902
|
+
const KdsMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-44c8e7ae"]]);
|
|
5896
5903
|
|
|
5897
5904
|
const ContainerDepthKey = /* @__PURE__ */ Symbol("ContainerDepth");
|
|
5898
5905
|
const ChildItemKey = /* @__PURE__ */ Symbol("ChildItem");
|
|
5899
5906
|
|
|
5900
|
-
const _hoisted_1$
|
|
5901
|
-
const _hoisted_2$
|
|
5902
|
-
const _sfc_main$
|
|
5907
|
+
const _hoisted_1$U = ["id", "aria-label", "aria-activedescendant"];
|
|
5908
|
+
const _hoisted_2$y = ["id"];
|
|
5909
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
5903
5910
|
__name: "KdsMenuContainer",
|
|
5904
5911
|
props: {
|
|
5905
5912
|
id: {},
|
|
@@ -6125,19 +6132,19 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
6125
6132
|
items: item.children ?? [],
|
|
6126
6133
|
onItemClick: _cache[0] || (_cache[0] = ($event) => emit("itemClick", $event))
|
|
6127
6134
|
}, null, 8, ["id", "ariaLabel", "items"])
|
|
6128
|
-
], 44, _hoisted_2$
|
|
6135
|
+
], 44, _hoisted_2$y)
|
|
6129
6136
|
]),
|
|
6130
6137
|
_: 2
|
|
6131
6138
|
}, 1032, ["item", "is-last", "active-id", "variant", "onClick", "onMouseenter"]);
|
|
6132
6139
|
}), 128))
|
|
6133
|
-
], 44, _hoisted_1$
|
|
6140
|
+
], 44, _hoisted_1$U);
|
|
6134
6141
|
};
|
|
6135
6142
|
}
|
|
6136
6143
|
});
|
|
6137
6144
|
|
|
6138
|
-
const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6145
|
+
const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-5b299c60"]]);
|
|
6139
6146
|
|
|
6140
|
-
const _sfc_main$
|
|
6147
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
6141
6148
|
...{
|
|
6142
6149
|
inheritAttrs: false
|
|
6143
6150
|
},
|
|
@@ -6201,7 +6208,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
6201
6208
|
__expose({ menuButtonEl });
|
|
6202
6209
|
return (_ctx, _cache) => {
|
|
6203
6210
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6204
|
-
createVNode(_sfc_main$
|
|
6211
|
+
createVNode(_sfc_main$1q, mergeProps({ ref: "menuButton" }, toggleButtonProps.value, {
|
|
6205
6212
|
modelValue: isMenuOpen.value,
|
|
6206
6213
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event),
|
|
6207
6214
|
"aria-haspopup": "menu",
|
|
@@ -6233,7 +6240,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
6233
6240
|
}
|
|
6234
6241
|
});
|
|
6235
6242
|
|
|
6236
|
-
const _sfc_main$
|
|
6243
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
6237
6244
|
__name: "KdsSplitButton",
|
|
6238
6245
|
props: {
|
|
6239
6246
|
dataTestId: {},
|
|
@@ -6334,7 +6341,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
6334
6341
|
}
|
|
6335
6342
|
});
|
|
6336
6343
|
|
|
6337
|
-
const KdsSplitButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6344
|
+
const KdsSplitButton = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-e4c177cd"]]);
|
|
6338
6345
|
|
|
6339
6346
|
const kdsActionButtonType = {
|
|
6340
6347
|
BUTTON: "button",
|
|
@@ -6343,12 +6350,12 @@ const kdsActionButtonType = {
|
|
|
6343
6350
|
const kdsActionButtonTypes = Object.values(kdsActionButtonType);
|
|
6344
6351
|
|
|
6345
6352
|
const typeToComponent = {
|
|
6346
|
-
KdsButton: _sfc_main$
|
|
6347
|
-
KdsLinkButton: _sfc_main$
|
|
6353
|
+
KdsButton: _sfc_main$1K,
|
|
6354
|
+
KdsLinkButton: _sfc_main$1s,
|
|
6348
6355
|
KdsSplitButton,
|
|
6349
|
-
KdsMenuButton: _sfc_main$
|
|
6356
|
+
KdsMenuButton: _sfc_main$1j,
|
|
6350
6357
|
KdsProgressButton,
|
|
6351
|
-
KdsToggleButton: _sfc_main$
|
|
6358
|
+
KdsToggleButton: _sfc_main$1q
|
|
6352
6359
|
};
|
|
6353
6360
|
const fullBindings = (entry) => ({
|
|
6354
6361
|
...entry.meta
|
|
@@ -6442,13 +6449,13 @@ const toMenuItem = (entry) => {
|
|
|
6442
6449
|
}
|
|
6443
6450
|
};
|
|
6444
6451
|
|
|
6445
|
-
const _hoisted_1$
|
|
6452
|
+
const _hoisted_1$T = {
|
|
6446
6453
|
ref: "measureContainer",
|
|
6447
6454
|
class: "kds-button-group-measure",
|
|
6448
6455
|
"aria-hidden": "true",
|
|
6449
6456
|
inert: ""
|
|
6450
6457
|
};
|
|
6451
|
-
const _sfc_main$
|
|
6458
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
6452
6459
|
...{ inheritAttrs: false },
|
|
6453
6460
|
__name: "KdsResponsiveButtonGroup",
|
|
6454
6461
|
props: {
|
|
@@ -6597,7 +6604,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
6597
6604
|
});
|
|
6598
6605
|
return (_ctx, _cache) => {
|
|
6599
6606
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
6600
|
-
createElementVNode("div", _hoisted_1$
|
|
6607
|
+
createElementVNode("div", _hoisted_1$T, [
|
|
6601
6608
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (button) => {
|
|
6602
6609
|
return openBlock(), createBlock(resolveDynamicComponent(unref(typeToComponent)[button.type]), mergeProps({
|
|
6603
6610
|
key: `full-${button.id}`,
|
|
@@ -6616,7 +6623,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
6616
6623
|
unref(iconOnlyBindings)(iconItem.entry, iconItem.leadingIcon, iconItem.label)
|
|
6617
6624
|
), null, 16);
|
|
6618
6625
|
}), 128)),
|
|
6619
|
-
createVNode(_sfc_main$
|
|
6626
|
+
createVNode(_sfc_main$1j, {
|
|
6620
6627
|
ref: "measureMenuButton",
|
|
6621
6628
|
"leading-icon": "more-actions",
|
|
6622
6629
|
ariaLabel: "More actions",
|
|
@@ -6631,7 +6638,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
6631
6638
|
key: visible.entry.id
|
|
6632
6639
|
}, { ref_for: true }, visibleBindings(visible)), null, 16);
|
|
6633
6640
|
}), 128)),
|
|
6634
|
-
overflowMenuItems.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
6641
|
+
overflowMenuItems.value.length ? (openBlock(), createBlock(_sfc_main$1j, {
|
|
6635
6642
|
key: 0,
|
|
6636
6643
|
"leading-icon": "more-actions",
|
|
6637
6644
|
ariaLabel: "More actions",
|
|
@@ -6643,7 +6650,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
6643
6650
|
}
|
|
6644
6651
|
});
|
|
6645
6652
|
|
|
6646
|
-
const KdsResponsiveButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6653
|
+
const KdsResponsiveButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-59d058df"]]);
|
|
6647
6654
|
|
|
6648
6655
|
const kdsResponsiveButtonGroupAlignment = {
|
|
6649
6656
|
LEFT: "left",
|
|
@@ -6668,17 +6675,17 @@ const kdsButtonVariant = {
|
|
|
6668
6675
|
};
|
|
6669
6676
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
6670
6677
|
|
|
6671
|
-
const _hoisted_1$
|
|
6672
|
-
const _hoisted_2$
|
|
6673
|
-
const _hoisted_3$
|
|
6678
|
+
const _hoisted_1$S = ["aria-disabled"];
|
|
6679
|
+
const _hoisted_2$x = { class: "kds-empty-state-headline" };
|
|
6680
|
+
const _hoisted_3$p = {
|
|
6674
6681
|
key: 1,
|
|
6675
6682
|
class: "kds-empty-state-description"
|
|
6676
6683
|
};
|
|
6677
|
-
const _hoisted_4$
|
|
6684
|
+
const _hoisted_4$n = {
|
|
6678
6685
|
key: 2,
|
|
6679
6686
|
class: "kds-empty-state-action"
|
|
6680
6687
|
};
|
|
6681
|
-
const _sfc_main$
|
|
6688
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
6682
6689
|
__name: "KdsEmptyState",
|
|
6683
6690
|
props: {
|
|
6684
6691
|
headline: {},
|
|
@@ -6696,13 +6703,13 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
6696
6703
|
() => props.button && "to" in props.button && props.button.to !== void 0
|
|
6697
6704
|
);
|
|
6698
6705
|
const buttonComponent = computed(
|
|
6699
|
-
() => isLinkButton.value ? _sfc_main$
|
|
6706
|
+
() => isLinkButton.value ? _sfc_main$1s : _sfc_main$1K
|
|
6700
6707
|
);
|
|
6701
6708
|
const isSecondaryLinkButton = computed(
|
|
6702
6709
|
() => props.secondaryButton && "to" in props.secondaryButton && props.secondaryButton.to !== void 0
|
|
6703
6710
|
);
|
|
6704
6711
|
const secondaryButtonComponent = computed(
|
|
6705
|
-
() => isSecondaryLinkButton.value ? _sfc_main$
|
|
6712
|
+
() => isSecondaryLinkButton.value ? _sfc_main$1s : _sfc_main$1K
|
|
6706
6713
|
);
|
|
6707
6714
|
return (_ctx, _cache) => {
|
|
6708
6715
|
return openBlock(), createElementBlock("div", {
|
|
@@ -6716,9 +6723,9 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
6716
6723
|
variant: "onSurface",
|
|
6717
6724
|
"aria-hidden": "true"
|
|
6718
6725
|
})) : createCommentVNode("", true),
|
|
6719
|
-
createElementVNode("p", _hoisted_2$
|
|
6720
|
-
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$
|
|
6721
|
-
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
6726
|
+
createElementVNode("p", _hoisted_2$x, toDisplayString(props.headline), 1),
|
|
6727
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$p, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
6728
|
+
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
6722
6729
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
6723
6730
|
disabled: props.button?.disabled || __props.disabled,
|
|
6724
6731
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("buttonClick", $event))
|
|
@@ -6728,16 +6735,16 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
6728
6735
|
onClick: _cache[1] || (_cache[1] = ($event) => !__props.disabled && emit("secondaryButtonClick", $event))
|
|
6729
6736
|
}), null, 16, ["disabled"])) : createCommentVNode("", true)
|
|
6730
6737
|
])) : createCommentVNode("", true)
|
|
6731
|
-
], 10, _hoisted_1$
|
|
6738
|
+
], 10, _hoisted_1$S);
|
|
6732
6739
|
};
|
|
6733
6740
|
}
|
|
6734
6741
|
});
|
|
6735
6742
|
|
|
6736
|
-
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6743
|
+
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-f5b36ba8"]]);
|
|
6737
6744
|
|
|
6738
|
-
const _hoisted_1$
|
|
6745
|
+
const _hoisted_1$R = ["aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
6739
6746
|
const loadingStateText = "Loading entries";
|
|
6740
|
-
const _sfc_main$
|
|
6747
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
6741
6748
|
__name: "KdsListContainer",
|
|
6742
6749
|
props: {
|
|
6743
6750
|
possibleValues: {},
|
|
@@ -6860,19 +6867,19 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
6860
6867
|
"loading-spinner": __props.loading
|
|
6861
6868
|
}, null, 8, ["headline", "loading-spinner"])
|
|
6862
6869
|
])) : createCommentVNode("", true)
|
|
6863
|
-
], 16, _hoisted_1$
|
|
6870
|
+
], 16, _hoisted_1$R);
|
|
6864
6871
|
};
|
|
6865
6872
|
}
|
|
6866
6873
|
});
|
|
6867
6874
|
|
|
6868
|
-
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
6875
|
+
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-05f72bc6"]]);
|
|
6869
6876
|
|
|
6870
6877
|
const KdsListContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
6871
6878
|
__proto__: null,
|
|
6872
6879
|
default: KdsListContainer
|
|
6873
6880
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
6874
6881
|
|
|
6875
|
-
const _sfc_main$
|
|
6882
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
6876
6883
|
...{ inheritAttrs: false },
|
|
6877
6884
|
__name: "KdsMenu",
|
|
6878
6885
|
props: {
|
|
@@ -6972,7 +6979,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
6972
6979
|
}
|
|
6973
6980
|
});
|
|
6974
6981
|
|
|
6975
|
-
const _sfc_main$
|
|
6982
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
6976
6983
|
...{ inheritAttrs: false },
|
|
6977
6984
|
__name: "KdsContextMenu",
|
|
6978
6985
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -7086,9 +7093,9 @@ const useKeyPressedUntilMouseClick = (keys = defaultKeys) => {
|
|
|
7086
7093
|
return hasUsedKeyboard;
|
|
7087
7094
|
};
|
|
7088
7095
|
|
|
7089
|
-
const _hoisted_1$
|
|
7090
|
-
const _hoisted_2$
|
|
7091
|
-
const _sfc_main$
|
|
7096
|
+
const _hoisted_1$Q = { class: "kds-label-wrapper" };
|
|
7097
|
+
const _hoisted_2$w = ["id", "for"];
|
|
7098
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
7092
7099
|
__name: "KdsLabel",
|
|
7093
7100
|
props: {
|
|
7094
7101
|
label: {},
|
|
@@ -7103,14 +7110,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
7103
7110
|
() => Promise.resolve().then(() => KdsInfoToggleButton$1)
|
|
7104
7111
|
);
|
|
7105
7112
|
return (_ctx, _cache) => {
|
|
7106
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
7113
|
+
return openBlock(), createElementBlock("div", _hoisted_1$Q, [
|
|
7107
7114
|
withDirectives((openBlock(), createElementBlock("label", {
|
|
7108
7115
|
id: props.id,
|
|
7109
7116
|
for: props.for,
|
|
7110
7117
|
class: "label"
|
|
7111
7118
|
}, [
|
|
7112
7119
|
createTextVNode(toDisplayString(props.label), 1)
|
|
7113
|
-
], 8, _hoisted_2$
|
|
7120
|
+
], 8, _hoisted_2$w)), [
|
|
7114
7121
|
[unref(vKdsTooltip), props.label, "truncated"]
|
|
7115
7122
|
]),
|
|
7116
7123
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
@@ -7123,9 +7130,9 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
7123
7130
|
}
|
|
7124
7131
|
});
|
|
7125
7132
|
|
|
7126
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7133
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-9b0cb89b"]]);
|
|
7127
7134
|
|
|
7128
|
-
const _sfc_main$
|
|
7135
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
7129
7136
|
__name: "BaseFormFieldWrapper",
|
|
7130
7137
|
props: {
|
|
7131
7138
|
id: {},
|
|
@@ -7177,7 +7184,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
7177
7184
|
}
|
|
7178
7185
|
});
|
|
7179
7186
|
|
|
7180
|
-
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7187
|
+
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-49715bc1"]]);
|
|
7181
7188
|
|
|
7182
7189
|
const MIN_SEGMENT_INDEX = 0;
|
|
7183
7190
|
const LARGE_STEP = 10;
|
|
@@ -7857,16 +7864,16 @@ const useInputSegments = (modelValue, getInputElement, configRef) => {
|
|
|
7857
7864
|
};
|
|
7858
7865
|
};
|
|
7859
7866
|
|
|
7860
|
-
const _hoisted_1$
|
|
7867
|
+
const _hoisted_1$P = {
|
|
7861
7868
|
key: 0,
|
|
7862
7869
|
class: "icon-wrapper leading"
|
|
7863
7870
|
};
|
|
7864
|
-
const _hoisted_2$
|
|
7871
|
+
const _hoisted_2$v = {
|
|
7865
7872
|
key: 1,
|
|
7866
7873
|
class: "leading-slot"
|
|
7867
7874
|
};
|
|
7868
|
-
const _hoisted_3$
|
|
7869
|
-
const _hoisted_4$
|
|
7875
|
+
const _hoisted_3$o = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "pattern", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant", "aria-haspopup", "aria-controls", "aria-expanded", "aria-autocomplete"];
|
|
7876
|
+
const _hoisted_4$m = ["aria-disabled"];
|
|
7870
7877
|
const _hoisted_5$d = {
|
|
7871
7878
|
key: 4,
|
|
7872
7879
|
class: "trailing-slot"
|
|
@@ -7875,7 +7882,7 @@ const _hoisted_6$8 = {
|
|
|
7875
7882
|
key: 5,
|
|
7876
7883
|
class: "icon-wrapper trailing"
|
|
7877
7884
|
};
|
|
7878
|
-
const _sfc_main$
|
|
7885
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
7879
7886
|
__name: "BaseInput",
|
|
7880
7887
|
props: /* @__PURE__ */ mergeModels({
|
|
7881
7888
|
id: {},
|
|
@@ -8026,13 +8033,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8026
8033
|
}),
|
|
8027
8034
|
onClick: handleContainerClick
|
|
8028
8035
|
}, [
|
|
8029
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
8036
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$P, [
|
|
8030
8037
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
8031
8038
|
key: 0,
|
|
8032
8039
|
name: props.leadingIcon
|
|
8033
8040
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
8034
8041
|
])) : createCommentVNode("", true),
|
|
8035
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
8042
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$v, [
|
|
8036
8043
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
8037
8044
|
])) : createCommentVNode("", true),
|
|
8038
8045
|
createElementVNode("input", {
|
|
@@ -8077,7 +8084,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8077
8084
|
onCut: handleInputCut,
|
|
8078
8085
|
onDrop: handleInputDrop,
|
|
8079
8086
|
onDragend: handleInputDragEnd
|
|
8080
|
-
}, null, 42, _hoisted_3$
|
|
8087
|
+
}, null, 42, _hoisted_3$o),
|
|
8081
8088
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
8082
8089
|
key: 2,
|
|
8083
8090
|
class: normalizeClass({
|
|
@@ -8086,8 +8093,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8086
8093
|
disabled: __props.disabled
|
|
8087
8094
|
}),
|
|
8088
8095
|
"aria-disabled": __props.disabled || void 0
|
|
8089
|
-
}, toDisplayString(props.unit), 11, _hoisted_4$
|
|
8090
|
-
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$
|
|
8096
|
+
}, toDisplayString(props.unit), 11, _hoisted_4$m)) : createCommentVNode("", true),
|
|
8097
|
+
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$1K, {
|
|
8091
8098
|
key: 3,
|
|
8092
8099
|
class: "clear-button",
|
|
8093
8100
|
size: "xsmall",
|
|
@@ -8110,9 +8117,9 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
8110
8117
|
}
|
|
8111
8118
|
});
|
|
8112
8119
|
|
|
8113
|
-
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8120
|
+
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-829e352d"]]);
|
|
8114
8121
|
|
|
8115
|
-
const _sfc_main$
|
|
8122
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
8116
8123
|
__name: "KdsTextInput",
|
|
8117
8124
|
props: /* @__PURE__ */ mergeModels({
|
|
8118
8125
|
description: {},
|
|
@@ -8280,9 +8287,9 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
8280
8287
|
}
|
|
8281
8288
|
});
|
|
8282
8289
|
|
|
8283
|
-
const KdsTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8290
|
+
const KdsTextInput = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-2ba910aa"]]);
|
|
8284
8291
|
|
|
8285
|
-
const _sfc_main$
|
|
8292
|
+
const _sfc_main$18 = defineComponent({
|
|
8286
8293
|
name: "FileExplorerItemBase",
|
|
8287
8294
|
props: {
|
|
8288
8295
|
isSelected: {
|
|
@@ -8300,7 +8307,7 @@ const _sfc_main$17 = defineComponent({
|
|
|
8300
8307
|
}
|
|
8301
8308
|
});
|
|
8302
8309
|
|
|
8303
|
-
const _hoisted_1$
|
|
8310
|
+
const _hoisted_1$O = ["aria-disabled"];
|
|
8304
8311
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8305
8312
|
return openBlock(), createElementBlock("tr", {
|
|
8306
8313
|
class: normalizeClass(["file-explorer-item-base", {
|
|
@@ -8313,9 +8320,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8313
8320
|
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
8314
8321
|
}, [
|
|
8315
8322
|
renderSlot(_ctx.$slots, "default")
|
|
8316
|
-
], 10, _hoisted_1$
|
|
8323
|
+
], 10, _hoisted_1$O);
|
|
8317
8324
|
}
|
|
8318
|
-
const FileExplorerItemBase = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8325
|
+
const FileExplorerItemBase = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_render], ["__scopeId", "data-v-aad38d13"]]);
|
|
8319
8326
|
|
|
8320
8327
|
const INVALID_NAME_CHARACTERS = /[*?#:";<>%~|/\\]/;
|
|
8321
8328
|
const NAME_CHAR_LIMIT = 255;
|
|
@@ -8354,16 +8361,16 @@ const useNameValidator = (options) => {
|
|
|
8354
8361
|
};
|
|
8355
8362
|
};
|
|
8356
8363
|
|
|
8357
|
-
const _hoisted_1$
|
|
8358
|
-
const _hoisted_2$
|
|
8364
|
+
const _hoisted_1$N = { class: "item-icon" };
|
|
8365
|
+
const _hoisted_2$u = {
|
|
8359
8366
|
key: 0,
|
|
8360
8367
|
class: "open-indicator"
|
|
8361
8368
|
};
|
|
8362
|
-
const _hoisted_3$
|
|
8369
|
+
const _hoisted_3$n = {
|
|
8363
8370
|
key: 0,
|
|
8364
8371
|
class: "inner"
|
|
8365
8372
|
};
|
|
8366
|
-
const _hoisted_4$
|
|
8373
|
+
const _hoisted_4$l = {
|
|
8367
8374
|
key: 0,
|
|
8368
8375
|
class: "item-error"
|
|
8369
8376
|
};
|
|
@@ -8372,7 +8379,7 @@ const _hoisted_6$7 = {
|
|
|
8372
8379
|
key: 0,
|
|
8373
8380
|
class: /* @__PURE__ */ normalizeClass(["column"])
|
|
8374
8381
|
};
|
|
8375
|
-
const _sfc_main$
|
|
8382
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
8376
8383
|
__name: "FileExplorerItem",
|
|
8377
8384
|
props: {
|
|
8378
8385
|
blacklistedNames: {},
|
|
@@ -8473,8 +8480,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8473
8480
|
onDblclick: _cache[11] || (_cache[11] = ($event) => !unref(isRenameActive) && emit("dblclick", $event))
|
|
8474
8481
|
}, {
|
|
8475
8482
|
default: withCtx(() => [
|
|
8476
|
-
createElementVNode("td", _hoisted_1$
|
|
8477
|
-
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
8483
|
+
createElementVNode("td", _hoisted_1$N, [
|
|
8484
|
+
__props.item.isOpen ? (openBlock(), createElementBlock("span", _hoisted_2$u)) : createCommentVNode("", true),
|
|
8478
8485
|
createVNode(KdsIcon, {
|
|
8479
8486
|
name: __props.item.icon || (__props.item.isDirectory ? "folder" : "file"),
|
|
8480
8487
|
size: "small"
|
|
@@ -8487,7 +8494,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8487
8494
|
}]),
|
|
8488
8495
|
"data-test-id": "item-name"
|
|
8489
8496
|
}, [
|
|
8490
|
-
!unref(isRenameActive) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$
|
|
8497
|
+
!unref(isRenameActive) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_3$n, [
|
|
8491
8498
|
createTextVNode(toDisplayString(__props.item.name), 1)
|
|
8492
8499
|
])), [
|
|
8493
8500
|
[unref(vKdsTooltip), __props.item.name, "truncated"]
|
|
@@ -8508,7 +8515,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8508
8515
|
error: !unref(isValid),
|
|
8509
8516
|
onKeydown: _cache[1] || (_cache[1] = withModifiers(($event) => onRenameSubmit($event), ["stop"]))
|
|
8510
8517
|
}, null, 8, ["modelValue", "error"]),
|
|
8511
|
-
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
8518
|
+
!unref(isValid) ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
|
|
8512
8519
|
createElementVNode("span", null, toDisplayString(unref(errorMessage)), 1)
|
|
8513
8520
|
])) : createCommentVNode("", true)
|
|
8514
8521
|
], 512))
|
|
@@ -8536,9 +8543,9 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
8536
8543
|
}
|
|
8537
8544
|
});
|
|
8538
8545
|
|
|
8539
|
-
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8546
|
+
const FileExplorerItem = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-94544a5e"]]);
|
|
8540
8547
|
|
|
8541
|
-
const _sfc_main$
|
|
8548
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
8542
8549
|
__name: "FileExplorerItemBack",
|
|
8543
8550
|
props: {
|
|
8544
8551
|
isDragging: { type: Boolean }
|
|
@@ -8567,7 +8574,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
8567
8574
|
}
|
|
8568
8575
|
});
|
|
8569
8576
|
|
|
8570
|
-
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8577
|
+
const FileExplorerItemBack = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-6053576d"]]);
|
|
8571
8578
|
|
|
8572
8579
|
const getInitialState = () => ({
|
|
8573
8580
|
anchorHistory: [],
|
|
@@ -15467,12 +15474,12 @@ const popoverAnchor = {
|
|
|
15467
15474
|
remove
|
|
15468
15475
|
};
|
|
15469
15476
|
|
|
15470
|
-
const _hoisted_1$
|
|
15471
|
-
const _hoisted_2$
|
|
15477
|
+
const _hoisted_1$M = { class: "file-explorer" };
|
|
15478
|
+
const _hoisted_2$t = {
|
|
15472
15479
|
key: 0,
|
|
15473
15480
|
class: "empty"
|
|
15474
15481
|
};
|
|
15475
|
-
const _sfc_main$
|
|
15482
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
15476
15483
|
__name: "KdsFileExplorer",
|
|
15477
15484
|
props: /* @__PURE__ */ mergeModels({
|
|
15478
15485
|
size: { default: "large" },
|
|
@@ -15801,7 +15808,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
15801
15808
|
() => Object.keys(slots).filter((key) => key.startsWith("dynamicColumn"))
|
|
15802
15809
|
);
|
|
15803
15810
|
return (_ctx, _cache) => {
|
|
15804
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15811
|
+
return openBlock(), createElementBlock("div", _hoisted_1$M, [
|
|
15805
15812
|
createElementVNode("table", mergeProps({
|
|
15806
15813
|
tabindex: "0",
|
|
15807
15814
|
class: ["scroll-container", { "keyboard-focus": unref(keyPressedUntilMouseClick) }],
|
|
@@ -15872,7 +15879,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
15872
15879
|
hasOptionsMenu.value ? {
|
|
15873
15880
|
name: "optionsMenu",
|
|
15874
15881
|
fn: withCtx(() => [
|
|
15875
|
-
createVNode(_sfc_main$
|
|
15882
|
+
createVNode(_sfc_main$1q, {
|
|
15876
15883
|
tabindex: "-1",
|
|
15877
15884
|
"model-value": contextMenuAnchor.value?.item.id === item.id && contextMenuAnchor.value.openedBy === "optionsMenu",
|
|
15878
15885
|
size: __props.size === "small" ? "xsmall" : "small",
|
|
@@ -15898,7 +15905,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
15898
15905
|
} : void 0
|
|
15899
15906
|
]), 1032, ["class", "disabled", "item", "is-dragging", "is-selected", "is-rename-active", "blacklisted-names", "is-dragging-enabled", "has-options-menu", "onDragstart", "onDragenter", "onDragleave", "onDragend", "onDrag", "onClick", "onContextmenu", "onKeydown", "onDrop", "onDblclick"]);
|
|
15900
15907
|
}), 128)),
|
|
15901
|
-
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$
|
|
15908
|
+
__props.items.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_2$t, [
|
|
15902
15909
|
createElementVNode("td", null, [
|
|
15903
15910
|
createVNode(KdsEmptyState, mergeProps({
|
|
15904
15911
|
headline: __props.emptyState?.headline ?? "Folder is empty"
|
|
@@ -15950,7 +15957,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
15950
15957
|
}
|
|
15951
15958
|
});
|
|
15952
15959
|
|
|
15953
|
-
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
15960
|
+
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0e28cb55"]]);
|
|
15954
15961
|
|
|
15955
15962
|
const kdsFileExplorerSize = {
|
|
15956
15963
|
SMALL: "small",
|
|
@@ -15966,14 +15973,14 @@ const kdsFileExplorerDraggingAnimationModes = Object.values(
|
|
|
15966
15973
|
kdsFileExplorerDraggingAnimationMode
|
|
15967
15974
|
);
|
|
15968
15975
|
|
|
15969
|
-
const _hoisted_1$
|
|
15970
|
-
const _hoisted_2$
|
|
15971
|
-
const _hoisted_3$
|
|
15972
|
-
const _hoisted_4$
|
|
15976
|
+
const _hoisted_1$L = { class: "kds-preview-list" };
|
|
15977
|
+
const _hoisted_2$s = { class: "kds-preview-list-title-row" };
|
|
15978
|
+
const _hoisted_3$m = { class: "kds-preview-list-content" };
|
|
15979
|
+
const _hoisted_4$k = { class: "kds-preview-list-headline" };
|
|
15973
15980
|
const _hoisted_5$b = ["aria-label"];
|
|
15974
15981
|
const _hoisted_6$6 = { class: "kds-preview-list-show-hide" };
|
|
15975
15982
|
const DEFAULT_MAX_VISIBLE_ITEMS = 6;
|
|
15976
|
-
const _sfc_main$
|
|
15983
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
15977
15984
|
__name: "KdsPreviewList",
|
|
15978
15985
|
props: /* @__PURE__ */ mergeModels({
|
|
15979
15986
|
headline: {},
|
|
@@ -16007,8 +16014,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
16007
16014
|
})
|
|
16008
16015
|
);
|
|
16009
16016
|
return (_ctx, _cache) => {
|
|
16010
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
16011
|
-
createElementVNode("header", _hoisted_2$
|
|
16017
|
+
return openBlock(), createElementBlock("section", _hoisted_1$L, [
|
|
16018
|
+
createElementVNode("header", _hoisted_2$s, [
|
|
16012
16019
|
__props.loading && !expanded.value ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
16013
16020
|
key: 0,
|
|
16014
16021
|
size: "small",
|
|
@@ -16018,10 +16025,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
16018
16025
|
name: __props.leadingIcon,
|
|
16019
16026
|
size: "small"
|
|
16020
16027
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
16021
|
-
createElementVNode("div", _hoisted_3$
|
|
16022
|
-
createElementVNode("span", _hoisted_4$
|
|
16028
|
+
createElementVNode("div", _hoisted_3$m, [
|
|
16029
|
+
createElementVNode("span", _hoisted_4$k, toDisplayString(props.headline), 1)
|
|
16023
16030
|
]),
|
|
16024
|
-
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$
|
|
16031
|
+
__props.trailingButton ? (openBlock(), createBlock(_sfc_main$1K, normalizeProps(mergeProps({ key: 2 }, trailingButtonProps.value)), null, 16)) : createCommentVNode("", true)
|
|
16025
16032
|
]),
|
|
16026
16033
|
withDirectives(createElementVNode("div", {
|
|
16027
16034
|
id: bodyId,
|
|
@@ -16059,7 +16066,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
16059
16066
|
[vShow, expanded.value]
|
|
16060
16067
|
]),
|
|
16061
16068
|
createElementVNode("footer", _hoisted_6$6, [
|
|
16062
|
-
createVNode(_sfc_main$
|
|
16069
|
+
createVNode(_sfc_main$1K, {
|
|
16063
16070
|
class: "kds-preview-list-toggle",
|
|
16064
16071
|
label: expanded.value ? "Hide all" : "Show all",
|
|
16065
16072
|
"trailing-icon": expanded.value ? "chevron-up" : "chevron-down",
|
|
@@ -16075,13 +16082,13 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
16075
16082
|
}
|
|
16076
16083
|
});
|
|
16077
16084
|
|
|
16078
|
-
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16085
|
+
const KdsPreviewList = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-6994e66c"]]);
|
|
16079
16086
|
|
|
16080
|
-
const _hoisted_1$
|
|
16081
|
-
const _hoisted_2$
|
|
16082
|
-
const _hoisted_3$
|
|
16083
|
-
const _hoisted_4$
|
|
16084
|
-
const _sfc_main$
|
|
16087
|
+
const _hoisted_1$K = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
16088
|
+
const _hoisted_2$r = ["id"];
|
|
16089
|
+
const _hoisted_3$l = { class: "legend-text" };
|
|
16090
|
+
const _hoisted_4$j = { class: "kds-fieldset-content" };
|
|
16091
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
16085
16092
|
__name: "BaseFieldsetWrapper",
|
|
16086
16093
|
props: {
|
|
16087
16094
|
id: {},
|
|
@@ -16120,7 +16127,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
16120
16127
|
id: legendId.value,
|
|
16121
16128
|
class: "kds-fieldset-legend"
|
|
16122
16129
|
}, [
|
|
16123
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_3$
|
|
16130
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_3$l, [
|
|
16124
16131
|
createTextVNode(toDisplayString(props.label), 1)
|
|
16125
16132
|
])), [
|
|
16126
16133
|
[unref(vKdsTooltip), props.label, "truncated"]
|
|
@@ -16130,8 +16137,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
16130
16137
|
content: props.description,
|
|
16131
16138
|
hidden: !isHovered.value
|
|
16132
16139
|
}, null, 8, ["content", "hidden"])) : createCommentVNode("", true)
|
|
16133
|
-
], 8, _hoisted_2$
|
|
16134
|
-
createElementVNode("div", _hoisted_4$
|
|
16140
|
+
], 8, _hoisted_2$r)) : createCommentVNode("", true),
|
|
16141
|
+
createElementVNode("div", _hoisted_4$j, [
|
|
16135
16142
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16136
16143
|
]),
|
|
16137
16144
|
createVNode(KdsSubText, {
|
|
@@ -16141,14 +16148,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
16141
16148
|
validating: props.validating,
|
|
16142
16149
|
"preserve-sub-text-space": props.preserveSubTextSpace
|
|
16143
16150
|
}, null, 8, ["id", "sub-text", "error", "validating", "preserve-sub-text-space"])
|
|
16144
|
-
], 40, _hoisted_1$
|
|
16151
|
+
], 40, _hoisted_1$K);
|
|
16145
16152
|
};
|
|
16146
16153
|
}
|
|
16147
16154
|
});
|
|
16148
16155
|
|
|
16149
|
-
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16156
|
+
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-f3228e9e"]]);
|
|
16150
16157
|
|
|
16151
|
-
const _sfc_main$
|
|
16158
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
16152
16159
|
__name: "KdsCheckboxGroup",
|
|
16153
16160
|
props: /* @__PURE__ */ mergeModels({
|
|
16154
16161
|
id: {},
|
|
@@ -16227,7 +16234,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
16227
16234
|
}
|
|
16228
16235
|
});
|
|
16229
16236
|
|
|
16230
|
-
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16237
|
+
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-3477d790"]]);
|
|
16231
16238
|
|
|
16232
16239
|
const kdsCheckboxGroupAlignment = {
|
|
16233
16240
|
VERTICAL: "vertical",
|
|
@@ -16256,18 +16263,18 @@ const kdsToggleSwitchLabelPositions = Object.values(
|
|
|
16256
16263
|
kdsToggleSwitchLabelPosition
|
|
16257
16264
|
);
|
|
16258
16265
|
|
|
16259
|
-
const _hoisted_1$
|
|
16260
|
-
const _hoisted_2$
|
|
16261
|
-
const _hoisted_3$
|
|
16266
|
+
const _hoisted_1$J = ["disabled", "aria-label", "aria-checked"];
|
|
16267
|
+
const _hoisted_2$q = { class: "control" };
|
|
16268
|
+
const _hoisted_3$k = {
|
|
16262
16269
|
class: "knob",
|
|
16263
16270
|
"aria-hidden": "true"
|
|
16264
16271
|
};
|
|
16265
|
-
const _hoisted_4$
|
|
16272
|
+
const _hoisted_4$i = {
|
|
16266
16273
|
key: 0,
|
|
16267
16274
|
class: "content"
|
|
16268
16275
|
};
|
|
16269
16276
|
const _hoisted_5$a = { class: "label" };
|
|
16270
|
-
const _sfc_main$
|
|
16277
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
16271
16278
|
__name: "KdsToggleSwitch",
|
|
16272
16279
|
props: /* @__PURE__ */ mergeModels({
|
|
16273
16280
|
disabled: { type: Boolean, default: false },
|
|
@@ -16306,37 +16313,37 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
16306
16313
|
role: "switch",
|
|
16307
16314
|
onClick: handleClick
|
|
16308
16315
|
}, [
|
|
16309
|
-
createElementVNode("div", _hoisted_2$
|
|
16310
|
-
createElementVNode("div", _hoisted_3$
|
|
16316
|
+
createElementVNode("div", _hoisted_2$q, [
|
|
16317
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
16311
16318
|
createVNode(KdsIcon, {
|
|
16312
16319
|
name: isChecked.value ? "checkmark" : "x-close",
|
|
16313
16320
|
size: __props.size === "small" ? "xsmall" : "small"
|
|
16314
16321
|
}, null, 8, ["name", "size"])
|
|
16315
16322
|
])
|
|
16316
16323
|
]),
|
|
16317
|
-
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
16324
|
+
props.label ? (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
16318
16325
|
createElementVNode("span", _hoisted_5$a, toDisplayString(props.label), 1)
|
|
16319
16326
|
])) : createCommentVNode("", true)
|
|
16320
|
-
], 10, _hoisted_1$
|
|
16327
|
+
], 10, _hoisted_1$J);
|
|
16321
16328
|
};
|
|
16322
16329
|
}
|
|
16323
16330
|
});
|
|
16324
16331
|
|
|
16325
|
-
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16332
|
+
const KdsToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-3e2f7591"]]);
|
|
16326
16333
|
|
|
16327
|
-
const _hoisted_1$
|
|
16328
|
-
const _hoisted_2$
|
|
16329
|
-
const _hoisted_3$
|
|
16334
|
+
const _hoisted_1$I = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
16335
|
+
const _hoisted_2$p = { class: "control" };
|
|
16336
|
+
const _hoisted_3$j = {
|
|
16330
16337
|
key: 0,
|
|
16331
16338
|
class: "dot",
|
|
16332
16339
|
viewBox: "0 0 2 2",
|
|
16333
16340
|
"aria-hidden": "true",
|
|
16334
16341
|
focusable: "false"
|
|
16335
16342
|
};
|
|
16336
|
-
const _hoisted_4$
|
|
16343
|
+
const _hoisted_4$h = { class: "content" };
|
|
16337
16344
|
const _hoisted_5$9 = { class: "label" };
|
|
16338
16345
|
const _hoisted_6$5 = ["id"];
|
|
16339
|
-
const _sfc_main
|
|
16346
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
16340
16347
|
__name: "KdsRadioButton",
|
|
16341
16348
|
props: /* @__PURE__ */ mergeModels({
|
|
16342
16349
|
text: {},
|
|
@@ -16376,8 +16383,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
16376
16383
|
type: "button",
|
|
16377
16384
|
onClick: handleClick
|
|
16378
16385
|
}, [
|
|
16379
|
-
createElementVNode("div", _hoisted_2$
|
|
16380
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
16386
|
+
createElementVNode("div", _hoisted_2$p, [
|
|
16387
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$j, [..._cache[0] || (_cache[0] = [
|
|
16381
16388
|
createElementVNode("circle", {
|
|
16382
16389
|
cx: "1",
|
|
16383
16390
|
cy: "1",
|
|
@@ -16385,7 +16392,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
16385
16392
|
}, null, -1)
|
|
16386
16393
|
])])) : createCommentVNode("", true)
|
|
16387
16394
|
]),
|
|
16388
|
-
createElementVNode("div", _hoisted_4$
|
|
16395
|
+
createElementVNode("div", _hoisted_4$h, [
|
|
16389
16396
|
createElementVNode("div", _hoisted_5$9, toDisplayString(props.text), 1),
|
|
16390
16397
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
16391
16398
|
key: 0,
|
|
@@ -16393,12 +16400,12 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
16393
16400
|
class: "helper-text"
|
|
16394
16401
|
}, toDisplayString(props.helperText), 9, _hoisted_6$5)) : createCommentVNode("", true)
|
|
16395
16402
|
])
|
|
16396
|
-
], 10, _hoisted_1$
|
|
16403
|
+
], 10, _hoisted_1$I);
|
|
16397
16404
|
};
|
|
16398
16405
|
}
|
|
16399
16406
|
});
|
|
16400
16407
|
|
|
16401
|
-
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
16408
|
+
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-3d6df8c1"]]);
|
|
16402
16409
|
|
|
16403
16410
|
const useRadioSelection = ({
|
|
16404
16411
|
selectedId,
|
|
@@ -16520,7 +16527,7 @@ const useRadioSelection = ({
|
|
|
16520
16527
|
};
|
|
16521
16528
|
};
|
|
16522
16529
|
|
|
16523
|
-
const _sfc_main
|
|
16530
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
16524
16531
|
__name: "KdsRadioButtonGroup",
|
|
16525
16532
|
props: /* @__PURE__ */ mergeModels({
|
|
16526
16533
|
id: {},
|
|
@@ -16595,14 +16602,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
16595
16602
|
}
|
|
16596
16603
|
});
|
|
16597
16604
|
|
|
16598
|
-
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main
|
|
16605
|
+
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-83b2f996"]]);
|
|
16599
16606
|
|
|
16600
|
-
const _hoisted_1$
|
|
16601
|
-
const _hoisted_2$
|
|
16607
|
+
const _hoisted_1$H = ["aria-checked", "aria-label", "disabled", "tabindex"];
|
|
16608
|
+
const _hoisted_2$o = {
|
|
16602
16609
|
key: 1,
|
|
16603
16610
|
class: "option-label"
|
|
16604
16611
|
};
|
|
16605
|
-
const _sfc_main$
|
|
16612
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
16606
16613
|
__name: "ValueSwitchItem",
|
|
16607
16614
|
props: {
|
|
16608
16615
|
selected: { type: Boolean },
|
|
@@ -16638,7 +16645,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
16638
16645
|
name: props.leadingIcon,
|
|
16639
16646
|
size: __props.size
|
|
16640
16647
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
16641
|
-
props.text ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$
|
|
16648
|
+
props.text ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
16642
16649
|
createTextVNode(toDisplayString(props.text), 1)
|
|
16643
16650
|
])), [
|
|
16644
16651
|
[unref(vKdsTooltip), props.text, "truncated"]
|
|
@@ -16648,14 +16655,14 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
16648
16655
|
name: props.trailingIcon,
|
|
16649
16656
|
size: __props.size
|
|
16650
16657
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
16651
|
-
], 10, _hoisted_1$
|
|
16658
|
+
], 10, _hoisted_1$H)), [
|
|
16652
16659
|
[unref(vKdsTooltip), props.tooltip || void 0]
|
|
16653
16660
|
]);
|
|
16654
16661
|
};
|
|
16655
16662
|
}
|
|
16656
16663
|
});
|
|
16657
16664
|
|
|
16658
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16665
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-4ef3315b"]]);
|
|
16659
16666
|
|
|
16660
16667
|
const useValueSwitchIconHiding = ({
|
|
16661
16668
|
width,
|
|
@@ -16706,7 +16713,7 @@ const useValueSwitchIconHiding = ({
|
|
|
16706
16713
|
};
|
|
16707
16714
|
};
|
|
16708
16715
|
|
|
16709
|
-
const _sfc_main$
|
|
16716
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
16710
16717
|
__name: "KdsValueSwitch",
|
|
16711
16718
|
props: /* @__PURE__ */ mergeModels({
|
|
16712
16719
|
id: {},
|
|
@@ -16795,7 +16802,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
16795
16802
|
}
|
|
16796
16803
|
});
|
|
16797
16804
|
|
|
16798
|
-
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16805
|
+
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-3dc4b80b"]]);
|
|
16799
16806
|
|
|
16800
16807
|
const kdsRadioButtonGroupAlignment = {
|
|
16801
16808
|
VERTICAL: "vertical",
|
|
@@ -16986,7 +16993,7 @@ const createKdsNumberParser = (params) => {
|
|
|
16986
16993
|
|
|
16987
16994
|
const REPEAT_INITIAL_DELAY_MS = 400;
|
|
16988
16995
|
const REPEAT_INTERVAL_MS = 100;
|
|
16989
|
-
const _sfc_main$
|
|
16996
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
16990
16997
|
__name: "KdsNumberInput",
|
|
16991
16998
|
props: /* @__PURE__ */ mergeModels({
|
|
16992
16999
|
description: {},
|
|
@@ -17172,7 +17179,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
17172
17179
|
onBlur: handleBlur
|
|
17173
17180
|
}), {
|
|
17174
17181
|
trailing: withCtx(() => [
|
|
17175
|
-
createVNode(_sfc_main$
|
|
17182
|
+
createVNode(_sfc_main$1K, {
|
|
17176
17183
|
size: "xsmall",
|
|
17177
17184
|
variant: "outlined",
|
|
17178
17185
|
"leading-icon": "minus",
|
|
@@ -17184,7 +17191,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
17184
17191
|
onPointerleave: stopRepeating,
|
|
17185
17192
|
onPointercancel: stopRepeating
|
|
17186
17193
|
}, null, 8, ["ariaLabel", "disabled"]),
|
|
17187
|
-
createVNode(_sfc_main$
|
|
17194
|
+
createVNode(_sfc_main$1K, {
|
|
17188
17195
|
size: "xsmall",
|
|
17189
17196
|
variant: "outlined",
|
|
17190
17197
|
"leading-icon": "plus",
|
|
@@ -17351,8 +17358,8 @@ const removeAlphaFromHexInput = (next) => {
|
|
|
17351
17358
|
return next;
|
|
17352
17359
|
};
|
|
17353
17360
|
|
|
17354
|
-
const _hoisted_1$
|
|
17355
|
-
const _sfc_main$
|
|
17361
|
+
const _hoisted_1$G = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"];
|
|
17362
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
17356
17363
|
__name: "ColorPickerSlider",
|
|
17357
17364
|
props: /* @__PURE__ */ mergeModels({
|
|
17358
17365
|
label: {},
|
|
@@ -17436,16 +17443,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
17436
17443
|
onKeydown: onKeyDown
|
|
17437
17444
|
}, [..._cache[5] || (_cache[5] = [
|
|
17438
17445
|
createElementVNode("div", { class: "handle" }, null, -1)
|
|
17439
|
-
])], 40, _hoisted_1$
|
|
17446
|
+
])], 40, _hoisted_1$G);
|
|
17440
17447
|
};
|
|
17441
17448
|
}
|
|
17442
17449
|
});
|
|
17443
17450
|
|
|
17444
|
-
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17451
|
+
const ColorPickerSlider = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
17445
17452
|
|
|
17446
|
-
const _hoisted_1$
|
|
17447
|
-
const _hoisted_2$
|
|
17448
|
-
const _hoisted_3$
|
|
17453
|
+
const _hoisted_1$F = { class: "kds-color-picker" };
|
|
17454
|
+
const _hoisted_2$n = ["aria-valuetext"];
|
|
17455
|
+
const _hoisted_3$i = { class: "value-inputs" };
|
|
17449
17456
|
const DEFAULT_HUE_DEG = 270;
|
|
17450
17457
|
const DEFAULT_SATURATION = 0.8;
|
|
17451
17458
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -17459,7 +17466,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
|
|
|
17459
17466
|
const HUE_KEYBOARD_STEP_DEG = 1;
|
|
17460
17467
|
const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
|
|
17461
17468
|
const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
|
|
17462
|
-
const _sfc_main$
|
|
17469
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
17463
17470
|
__name: "ColorPicker",
|
|
17464
17471
|
props: {
|
|
17465
17472
|
"modelValue": { default: "" },
|
|
@@ -17607,7 +17614,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
17607
17614
|
}
|
|
17608
17615
|
};
|
|
17609
17616
|
return (_ctx, _cache) => {
|
|
17610
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17617
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
17611
17618
|
createElementVNode("div", {
|
|
17612
17619
|
ref_key: "colorspaceEl",
|
|
17613
17620
|
ref: colorspaceEl,
|
|
@@ -17635,7 +17642,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
17635
17642
|
class: "handle",
|
|
17636
17643
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
17637
17644
|
}, null, 4)
|
|
17638
|
-
], 44, _hoisted_2$
|
|
17645
|
+
], 44, _hoisted_2$n),
|
|
17639
17646
|
createVNode(ColorPickerSlider, {
|
|
17640
17647
|
modelValue: hue.value,
|
|
17641
17648
|
"onUpdate:modelValue": [
|
|
@@ -17670,7 +17677,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
17670
17677
|
step: KEYBOARD_STEP,
|
|
17671
17678
|
"large-step": KEYBOARD_LARGE_STEP
|
|
17672
17679
|
}, null, 8, ["modelValue", "value-now", "value-text"]),
|
|
17673
|
-
createElementVNode("div", _hoisted_3$
|
|
17680
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
17674
17681
|
createVNode(KdsTextInput, {
|
|
17675
17682
|
"model-value": hexInputValue.value,
|
|
17676
17683
|
ariaLabel: "Color hex value",
|
|
@@ -17678,7 +17685,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
17678
17685
|
"onUpdate:modelValue": updateFromTextValue,
|
|
17679
17686
|
onFocusout: onHexInputFocusOut
|
|
17680
17687
|
}, null, 8, ["model-value"]),
|
|
17681
|
-
createVNode(_sfc_main$
|
|
17688
|
+
createVNode(_sfc_main$Y, {
|
|
17682
17689
|
"model-value": alphaPercent.value,
|
|
17683
17690
|
ariaLabel: "Alpha percentage",
|
|
17684
17691
|
min: 0,
|
|
@@ -17693,7 +17700,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
17693
17700
|
}
|
|
17694
17701
|
});
|
|
17695
17702
|
|
|
17696
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17703
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-9d3acb15"]]);
|
|
17697
17704
|
|
|
17698
17705
|
const HEX_LENGTH_1 = 1;
|
|
17699
17706
|
const HEX_LENGTH_2 = 2;
|
|
@@ -17767,7 +17774,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
|
|
|
17767
17774
|
return { handleFocusOut };
|
|
17768
17775
|
};
|
|
17769
17776
|
|
|
17770
|
-
const _sfc_main$
|
|
17777
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
17771
17778
|
__name: "KdsColorInput",
|
|
17772
17779
|
props: /* @__PURE__ */ mergeModels({
|
|
17773
17780
|
description: {},
|
|
@@ -17830,7 +17837,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
17830
17837
|
}, null, 8, ["color", "style"])
|
|
17831
17838
|
]),
|
|
17832
17839
|
trailing: withCtx(() => [
|
|
17833
|
-
createVNode(unref(_sfc_main$
|
|
17840
|
+
createVNode(unref(_sfc_main$1q), {
|
|
17834
17841
|
modelValue: open.value,
|
|
17835
17842
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
17836
17843
|
size: "xsmall",
|
|
@@ -17871,7 +17878,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
17871
17878
|
}
|
|
17872
17879
|
});
|
|
17873
17880
|
|
|
17874
|
-
const _sfc_main$
|
|
17881
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
17875
17882
|
__name: "KdsPasswordInput",
|
|
17876
17883
|
props: /* @__PURE__ */ mergeModels({
|
|
17877
17884
|
description: {},
|
|
@@ -17932,7 +17939,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
17932
17939
|
onBlur: handleBlur
|
|
17933
17940
|
}), {
|
|
17934
17941
|
trailing: withCtx(() => [
|
|
17935
|
-
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$
|
|
17942
|
+
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$1q, {
|
|
17936
17943
|
key: 0,
|
|
17937
17944
|
modelValue: showValue.value,
|
|
17938
17945
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showValue.value = $event),
|
|
@@ -17972,7 +17979,7 @@ const kdsPasswordInputAutocompletes = Object.values(
|
|
|
17972
17979
|
kdsPasswordInputAutocomplete
|
|
17973
17980
|
);
|
|
17974
17981
|
|
|
17975
|
-
const _sfc_main$
|
|
17982
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
17976
17983
|
__name: "KdsUsernameInput",
|
|
17977
17984
|
props: /* @__PURE__ */ mergeModels({
|
|
17978
17985
|
description: {},
|
|
@@ -22451,17 +22458,17 @@ const Temporal$1 = /*@__PURE__*/ Object.defineProperties({}, {
|
|
|
22451
22458
|
|
|
22452
22459
|
const Temporal = NativeTemporal || Temporal$1;
|
|
22453
22460
|
|
|
22454
|
-
const _hoisted_1$
|
|
22461
|
+
const _hoisted_1$E = {
|
|
22455
22462
|
role: "row",
|
|
22456
22463
|
class: "kds-date-picker-header-row"
|
|
22457
22464
|
};
|
|
22458
|
-
const _hoisted_2$
|
|
22459
|
-
const _hoisted_3$
|
|
22460
|
-
const _hoisted_4$
|
|
22465
|
+
const _hoisted_2$m = ["aria-label"];
|
|
22466
|
+
const _hoisted_3$h = { class: "kds-date-picker-day-grid" };
|
|
22467
|
+
const _hoisted_4$g = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onFocus"];
|
|
22461
22468
|
const REFERENCE_YEAR$2 = 2024;
|
|
22462
22469
|
const DAYS_PER_WEEK = 7;
|
|
22463
22470
|
const TOTAL_CELLS = 42;
|
|
22464
|
-
const _sfc_main$
|
|
22471
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
22465
22472
|
__name: "DatePickerDayGrid",
|
|
22466
22473
|
props: {
|
|
22467
22474
|
modelValue: {},
|
|
@@ -22756,17 +22763,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
22756
22763
|
role: "grid",
|
|
22757
22764
|
"aria-label": "Calendar"
|
|
22758
22765
|
}, [
|
|
22759
|
-
createElementVNode("div", _hoisted_1$
|
|
22766
|
+
createElementVNode("div", _hoisted_1$E, [
|
|
22760
22767
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(DAY_LABELS), (day, i) => {
|
|
22761
22768
|
return openBlock(), createElementBlock("div", {
|
|
22762
22769
|
key: day,
|
|
22763
22770
|
role: "columnheader",
|
|
22764
22771
|
"aria-label": unref(DAY_FULL_LABELS)[i],
|
|
22765
22772
|
class: "kds-date-picker-weekday"
|
|
22766
|
-
}, toDisplayString(day), 9, _hoisted_2$
|
|
22773
|
+
}, toDisplayString(day), 9, _hoisted_2$m);
|
|
22767
22774
|
}), 128))
|
|
22768
22775
|
]),
|
|
22769
|
-
createElementVNode("div", _hoisted_3$
|
|
22776
|
+
createElementVNode("div", _hoisted_3$h, [
|
|
22770
22777
|
(openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, wi) => {
|
|
22771
22778
|
return openBlock(), createElementBlock("div", {
|
|
22772
22779
|
key: wi,
|
|
@@ -22795,7 +22802,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
22795
22802
|
onClick: ($event) => selectDate(day),
|
|
22796
22803
|
onKeydown: onDayKeydown,
|
|
22797
22804
|
onFocus: ($event) => onDayFocus(day)
|
|
22798
|
-
}, toDisplayString(day.day), 43, _hoisted_4$
|
|
22805
|
+
}, toDisplayString(day.day), 43, _hoisted_4$g);
|
|
22799
22806
|
}), 128))
|
|
22800
22807
|
]);
|
|
22801
22808
|
}), 128))
|
|
@@ -22805,13 +22812,13 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
22805
22812
|
}
|
|
22806
22813
|
});
|
|
22807
22814
|
|
|
22808
|
-
const DatePickerDayGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
22815
|
+
const DatePickerDayGrid = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-51807b35"]]);
|
|
22809
22816
|
|
|
22810
|
-
const _hoisted_1$
|
|
22817
|
+
const _hoisted_1$D = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
22811
22818
|
const REFERENCE_YEAR$1 = 2024;
|
|
22812
22819
|
const MONTHS_PER_YEAR$1 = 12;
|
|
22813
22820
|
const MONTH_GRID_COLS = 3;
|
|
22814
|
-
const _sfc_main$
|
|
22821
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
22815
22822
|
__name: "DatePickerMonthGrid",
|
|
22816
22823
|
props: {
|
|
22817
22824
|
modelValue: {},
|
|
@@ -23001,7 +23008,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
23001
23008
|
onClick: ($event) => selectMonth(cell.month),
|
|
23002
23009
|
onKeydown: ($event) => onKeydown($event, cell.month),
|
|
23003
23010
|
onFocus: ($event) => focusedCell.value = cell.month
|
|
23004
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
23011
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$D);
|
|
23005
23012
|
}), 128))
|
|
23006
23013
|
]);
|
|
23007
23014
|
}), 128))
|
|
@@ -23010,12 +23017,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
23010
23017
|
}
|
|
23011
23018
|
});
|
|
23012
23019
|
|
|
23013
|
-
const DatePickerMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23020
|
+
const DatePickerMonthGrid = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-63d96e84"]]);
|
|
23014
23021
|
|
|
23015
|
-
const _hoisted_1$
|
|
23022
|
+
const _hoisted_1$C = ["aria-selected", "aria-disabled", "aria-label", "disabled", "tabindex", "onClick", "onKeydown", "onFocus"];
|
|
23016
23023
|
const YEAR_PAGE_SIZE$1 = 15;
|
|
23017
23024
|
const YEAR_GRID_COLS = 3;
|
|
23018
|
-
const _sfc_main$
|
|
23025
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
23019
23026
|
__name: "DatePickerYearGrid",
|
|
23020
23027
|
props: {
|
|
23021
23028
|
modelValue: {},
|
|
@@ -23173,7 +23180,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
23173
23180
|
onClick: ($event) => selectYear(cell.year),
|
|
23174
23181
|
onKeydown: ($event) => onKeydown($event, cell.year),
|
|
23175
23182
|
onFocus: ($event) => focusedCell.value = cell.year
|
|
23176
|
-
}, toDisplayString(cell.label), 43, _hoisted_1$
|
|
23183
|
+
}, toDisplayString(cell.label), 43, _hoisted_1$C);
|
|
23177
23184
|
}), 128))
|
|
23178
23185
|
]);
|
|
23179
23186
|
}), 128))
|
|
@@ -23182,12 +23189,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
23182
23189
|
}
|
|
23183
23190
|
});
|
|
23184
23191
|
|
|
23185
|
-
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23192
|
+
const DatePickerYearGrid = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-270d55b9"]]);
|
|
23186
23193
|
|
|
23187
|
-
const _hoisted_1$
|
|
23188
|
-
const _hoisted_2$
|
|
23189
|
-
const _hoisted_3$
|
|
23190
|
-
const _hoisted_4$
|
|
23194
|
+
const _hoisted_1$B = { class: "kds-date-picker" };
|
|
23195
|
+
const _hoisted_2$l = { class: "kds-date-picker-header" };
|
|
23196
|
+
const _hoisted_3$g = { class: "kds-date-picker-nav-block" };
|
|
23197
|
+
const _hoisted_4$f = {
|
|
23191
23198
|
key: 1,
|
|
23192
23199
|
class: "kds-date-picker-header-static-label",
|
|
23193
23200
|
"aria-live": "polite"
|
|
@@ -23197,7 +23204,7 @@ const _hoisted_6$4 = { class: "kds-date-picker-body" };
|
|
|
23197
23204
|
const MONTHS_PER_YEAR = 12;
|
|
23198
23205
|
const YEAR_PAGE_SIZE = 15;
|
|
23199
23206
|
const REFERENCE_YEAR = 2024;
|
|
23200
|
-
const _sfc_main$
|
|
23207
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
23201
23208
|
__name: "KdsDatePicker",
|
|
23202
23209
|
props: /* @__PURE__ */ mergeModels({
|
|
23203
23210
|
minDate: {},
|
|
@@ -23393,10 +23400,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
23393
23400
|
});
|
|
23394
23401
|
__expose({ focus });
|
|
23395
23402
|
return (_ctx, _cache) => {
|
|
23396
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23397
|
-
createElementVNode("div", _hoisted_2$
|
|
23398
|
-
createElementVNode("div", _hoisted_3$
|
|
23399
|
-
view.value === "day" ? (openBlock(), createBlock(_sfc_main$
|
|
23403
|
+
return openBlock(), createElementBlock("div", _hoisted_1$B, [
|
|
23404
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
23405
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
23406
|
+
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1K, {
|
|
23400
23407
|
key: 0,
|
|
23401
23408
|
variant: "transparent",
|
|
23402
23409
|
size: "small",
|
|
@@ -23405,7 +23412,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
23405
23412
|
disabled: prevYearDisabled.value,
|
|
23406
23413
|
onClick: onPrevYear
|
|
23407
23414
|
}, null, 8, ["disabled"])) : createCommentVNode("", true),
|
|
23408
|
-
createVNode(_sfc_main$
|
|
23415
|
+
createVNode(_sfc_main$1K, {
|
|
23409
23416
|
variant: "transparent",
|
|
23410
23417
|
size: "small",
|
|
23411
23418
|
"leading-icon": "chevron-left",
|
|
@@ -23414,16 +23421,16 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
23414
23421
|
onClick: onPrev
|
|
23415
23422
|
}, null, 8, ["ariaLabel", "disabled"])
|
|
23416
23423
|
]),
|
|
23417
|
-
view.value !== "year" ? (openBlock(), createBlock(_sfc_main$
|
|
23424
|
+
view.value !== "year" ? (openBlock(), createBlock(_sfc_main$1K, {
|
|
23418
23425
|
key: 0,
|
|
23419
23426
|
class: "kds-date-picker-header-label",
|
|
23420
23427
|
variant: "transparent",
|
|
23421
23428
|
size: "small",
|
|
23422
23429
|
label: headerLabel.value,
|
|
23423
23430
|
onClick: onHeaderLabelClick
|
|
23424
|
-
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
23431
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_4$f, toDisplayString(headerLabel.value), 1)),
|
|
23425
23432
|
createElementVNode("div", _hoisted_5$8, [
|
|
23426
|
-
createVNode(_sfc_main$
|
|
23433
|
+
createVNode(_sfc_main$1K, {
|
|
23427
23434
|
variant: "transparent",
|
|
23428
23435
|
size: "small",
|
|
23429
23436
|
"leading-icon": "chevron-right",
|
|
@@ -23431,7 +23438,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
23431
23438
|
disabled: nextDisabled.value,
|
|
23432
23439
|
onClick: onNext
|
|
23433
23440
|
}, null, 8, ["ariaLabel", "disabled"]),
|
|
23434
|
-
view.value === "day" ? (openBlock(), createBlock(_sfc_main$
|
|
23441
|
+
view.value === "day" ? (openBlock(), createBlock(_sfc_main$1K, {
|
|
23435
23442
|
key: 0,
|
|
23436
23443
|
variant: "transparent",
|
|
23437
23444
|
size: "small",
|
|
@@ -23483,7 +23490,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
23483
23490
|
}
|
|
23484
23491
|
});
|
|
23485
23492
|
|
|
23486
|
-
const KdsDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23493
|
+
const KdsDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-e46d7e18"]]);
|
|
23487
23494
|
|
|
23488
23495
|
const YEAR_END_INDEX = 4;
|
|
23489
23496
|
const MONTH_START_INDEX = 4;
|
|
@@ -23586,7 +23593,7 @@ const useDateInputMask = (modelValue) => {
|
|
|
23586
23593
|
|
|
23587
23594
|
const incompleteDateMessage = "Invalid date format. Please provide year (YYYY), month (MM), and day (DD).";
|
|
23588
23595
|
const MONTH_NAME_SAMPLE_YEAR = 2001;
|
|
23589
|
-
const _sfc_main$
|
|
23596
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
23590
23597
|
__name: "KdsDateInput",
|
|
23591
23598
|
props: /* @__PURE__ */ mergeModels({
|
|
23592
23599
|
description: {},
|
|
@@ -23715,7 +23722,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
23715
23722
|
onBlur: onTextInputBlur
|
|
23716
23723
|
}), {
|
|
23717
23724
|
trailing: withCtx(() => [
|
|
23718
|
-
createVNode(_sfc_main$
|
|
23725
|
+
createVNode(_sfc_main$1q, {
|
|
23719
23726
|
modelValue: popoverIsVisible.value,
|
|
23720
23727
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
23721
23728
|
size: "xsmall",
|
|
@@ -23764,8 +23771,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
23764
23771
|
}
|
|
23765
23772
|
});
|
|
23766
23773
|
|
|
23767
|
-
const _hoisted_1$
|
|
23768
|
-
const _sfc_main$
|
|
23774
|
+
const _hoisted_1$A = { class: "kds-date-time-format-popover" };
|
|
23775
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
23769
23776
|
__name: "DateTimeFormatPopover",
|
|
23770
23777
|
props: /* @__PURE__ */ mergeModels({
|
|
23771
23778
|
allDefaultFormats: {},
|
|
@@ -23903,7 +23910,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
23903
23910
|
}));
|
|
23904
23911
|
});
|
|
23905
23912
|
return (_ctx, _cache) => {
|
|
23906
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
23913
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
23907
23914
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch, {
|
|
23908
23915
|
key: 0,
|
|
23909
23916
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -23935,9 +23942,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
23935
23942
|
}
|
|
23936
23943
|
});
|
|
23937
23944
|
|
|
23938
|
-
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
23945
|
+
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-6f9c6f2b"]]);
|
|
23939
23946
|
|
|
23940
|
-
const _sfc_main$
|
|
23947
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
23941
23948
|
__name: "KdsDateTimeFormatInput",
|
|
23942
23949
|
props: /* @__PURE__ */ mergeModels({
|
|
23943
23950
|
description: {},
|
|
@@ -23984,7 +23991,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23984
23991
|
autocomplete: props.autocomplete
|
|
23985
23992
|
}), {
|
|
23986
23993
|
trailing: withCtx(() => [
|
|
23987
|
-
createVNode(unref(_sfc_main$
|
|
23994
|
+
createVNode(unref(_sfc_main$1q), {
|
|
23988
23995
|
modelValue: open.value,
|
|
23989
23996
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
23990
23997
|
size: "xsmall",
|
|
@@ -24071,7 +24078,7 @@ const buildRegexFromPatternInput = (input, options) => {
|
|
|
24071
24078
|
return `^(?!.*${withCase}).*$`;
|
|
24072
24079
|
};
|
|
24073
24080
|
|
|
24074
|
-
const _sfc_main$
|
|
24081
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
24075
24082
|
__name: "KdsPatternInput",
|
|
24076
24083
|
props: /* @__PURE__ */ mergeModels({
|
|
24077
24084
|
description: {},
|
|
@@ -24154,7 +24161,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
24154
24161
|
clearable: ""
|
|
24155
24162
|
}), {
|
|
24156
24163
|
trailing: withCtx(() => [
|
|
24157
|
-
createVNode(_sfc_main$
|
|
24164
|
+
createVNode(_sfc_main$1q, {
|
|
24158
24165
|
modelValue: caseSensitive.value,
|
|
24159
24166
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
|
|
24160
24167
|
size: "xsmall",
|
|
@@ -24164,7 +24171,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
24164
24171
|
ariaLabel: "Case sensitivity",
|
|
24165
24172
|
disabled: __props.disabled
|
|
24166
24173
|
}, null, 8, ["modelValue", "tooltip", "disabled"]),
|
|
24167
|
-
createVNode(_sfc_main$
|
|
24174
|
+
createVNode(_sfc_main$1q, {
|
|
24168
24175
|
modelValue: excludeMatches.value,
|
|
24169
24176
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
|
|
24170
24177
|
size: "xsmall",
|
|
@@ -24174,7 +24181,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
24174
24181
|
ariaLabel: "Exclude matches",
|
|
24175
24182
|
disabled: __props.disabled
|
|
24176
24183
|
}, null, 8, ["modelValue", "tooltip", "disabled"]),
|
|
24177
|
-
createVNode(_sfc_main$
|
|
24184
|
+
createVNode(_sfc_main$1q, {
|
|
24178
24185
|
modelValue: useRegex.value,
|
|
24179
24186
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
|
|
24180
24187
|
size: "xsmall",
|
|
@@ -24194,7 +24201,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
24194
24201
|
}
|
|
24195
24202
|
});
|
|
24196
24203
|
|
|
24197
|
-
const _sfc_main$
|
|
24204
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
24198
24205
|
__name: "KdsSearchInput",
|
|
24199
24206
|
props: /* @__PURE__ */ mergeModels({
|
|
24200
24207
|
description: {},
|
|
@@ -24237,19 +24244,33 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
24237
24244
|
}
|
|
24238
24245
|
emit("keydown", event);
|
|
24239
24246
|
};
|
|
24247
|
+
const hasFocus = ref(false);
|
|
24240
24248
|
const onFocus = (event) => {
|
|
24241
|
-
|
|
24249
|
+
hasFocus.value = true;
|
|
24250
|
+
if (props.results && !resultsOpen.value) {
|
|
24242
24251
|
resultsOpen.value = true;
|
|
24243
24252
|
}
|
|
24244
24253
|
emit("focus", event);
|
|
24245
24254
|
};
|
|
24246
24255
|
const onBlur = (event) => {
|
|
24256
|
+
hasFocus.value = false;
|
|
24247
24257
|
if (resultsOpen.value) {
|
|
24248
24258
|
resultsOpen.value = false;
|
|
24249
24259
|
listContainerEl.value?.handleBlur();
|
|
24250
24260
|
}
|
|
24251
24261
|
emit("blur", event);
|
|
24252
24262
|
};
|
|
24263
|
+
watch(
|
|
24264
|
+
() => props.results,
|
|
24265
|
+
(results) => {
|
|
24266
|
+
if (!hasFocus.value) {
|
|
24267
|
+
return;
|
|
24268
|
+
}
|
|
24269
|
+
if (results && !resultsOpen.value) {
|
|
24270
|
+
resultsOpen.value = true;
|
|
24271
|
+
}
|
|
24272
|
+
}
|
|
24273
|
+
);
|
|
24253
24274
|
const onClick = () => {
|
|
24254
24275
|
if (props.results && !resultsOpen.value) {
|
|
24255
24276
|
resultsOpen.value = true;
|
|
@@ -24347,11 +24368,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
24347
24368
|
}
|
|
24348
24369
|
});
|
|
24349
24370
|
|
|
24350
|
-
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24371
|
+
const KdsSearchInput = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-07a978cc"]]);
|
|
24351
24372
|
|
|
24352
|
-
const _hoisted_1$
|
|
24373
|
+
const _hoisted_1$z = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
24353
24374
|
const DEFAULT_ROWS = 3;
|
|
24354
|
-
const _sfc_main$
|
|
24375
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
24355
24376
|
__name: "KdsTextarea",
|
|
24356
24377
|
props: /* @__PURE__ */ mergeModels({
|
|
24357
24378
|
description: {},
|
|
@@ -24417,7 +24438,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
24417
24438
|
placeholder: __props.placeholder,
|
|
24418
24439
|
disabled: __props.disabled,
|
|
24419
24440
|
autocomplete: props.autocomplete
|
|
24420
|
-
}), null, 16, _hoisted_1$
|
|
24441
|
+
}), null, 16, _hoisted_1$z), [
|
|
24421
24442
|
[vModelText, modelValue.value]
|
|
24422
24443
|
])
|
|
24423
24444
|
]),
|
|
@@ -24427,12 +24448,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
24427
24448
|
}
|
|
24428
24449
|
});
|
|
24429
24450
|
|
|
24430
|
-
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24451
|
+
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-5e62862c"]]);
|
|
24431
24452
|
|
|
24432
|
-
const _hoisted_1$
|
|
24433
|
-
const _hoisted_2$
|
|
24434
|
-
const _hoisted_3$
|
|
24435
|
-
const _hoisted_4$
|
|
24453
|
+
const _hoisted_1$y = { class: "kds-time-picker" };
|
|
24454
|
+
const _hoisted_2$k = { class: "kds-time-picker-fields" };
|
|
24455
|
+
const _hoisted_3$f = { class: "kds-time-picker-fields" };
|
|
24456
|
+
const _hoisted_4$e = {
|
|
24436
24457
|
key: 0,
|
|
24437
24458
|
class: "kds-time-picker-fields"
|
|
24438
24459
|
};
|
|
@@ -24448,7 +24469,7 @@ const MAX_HOUR = 23;
|
|
|
24448
24469
|
const MAX_MINUTE = 59;
|
|
24449
24470
|
const MAX_SECOND = 59;
|
|
24450
24471
|
const MAX_MILLISECOND = 999;
|
|
24451
|
-
const _sfc_main$
|
|
24472
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
24452
24473
|
__name: "TimePicker",
|
|
24453
24474
|
props: /* @__PURE__ */ mergeModels({
|
|
24454
24475
|
maxGranularity: {}
|
|
@@ -24534,9 +24555,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24534
24555
|
};
|
|
24535
24556
|
__expose({ focus });
|
|
24536
24557
|
return (_ctx, _cache) => {
|
|
24537
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24538
|
-
createElementVNode("div", _hoisted_2$
|
|
24539
|
-
createVNode(_sfc_main$
|
|
24558
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
24559
|
+
createElementVNode("div", _hoisted_2$k, [
|
|
24560
|
+
createVNode(_sfc_main$Y, {
|
|
24540
24561
|
ref: "hourInput",
|
|
24541
24562
|
modelValue: hour.value,
|
|
24542
24563
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hour.value = $event),
|
|
@@ -24546,7 +24567,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24546
24567
|
max: MAX_HOUR,
|
|
24547
24568
|
step: 1
|
|
24548
24569
|
}, null, 8, ["modelValue"]),
|
|
24549
|
-
createVNode(_sfc_main$
|
|
24570
|
+
createVNode(_sfc_main$Y, {
|
|
24550
24571
|
modelValue: minute.value,
|
|
24551
24572
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => minute.value = $event),
|
|
24552
24573
|
class: "kds-time-picker-field",
|
|
@@ -24561,8 +24582,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24561
24582
|
class: "kds-time-picker-divider"
|
|
24562
24583
|
})) : createCommentVNode("", true),
|
|
24563
24584
|
showSecondInput.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
24564
|
-
createElementVNode("div", _hoisted_3$
|
|
24565
|
-
createVNode(_sfc_main$
|
|
24585
|
+
createElementVNode("div", _hoisted_3$f, [
|
|
24586
|
+
createVNode(_sfc_main$Y, {
|
|
24566
24587
|
ref: "secondInput",
|
|
24567
24588
|
modelValue: second.value,
|
|
24568
24589
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => second.value = $event),
|
|
@@ -24572,7 +24593,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24572
24593
|
max: MAX_SECOND,
|
|
24573
24594
|
step: 1
|
|
24574
24595
|
}, null, 8, ["modelValue"]),
|
|
24575
|
-
createVNode(_sfc_main$
|
|
24596
|
+
createVNode(_sfc_main$1K, {
|
|
24576
24597
|
class: "kds-time-picker-field-trash",
|
|
24577
24598
|
variant: "transparent",
|
|
24578
24599
|
"leading-icon": "trash",
|
|
@@ -24581,8 +24602,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24581
24602
|
onClick: removeSeconds
|
|
24582
24603
|
})
|
|
24583
24604
|
]),
|
|
24584
|
-
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
24585
|
-
createVNode(_sfc_main$
|
|
24605
|
+
showMillisecondInput.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
24606
|
+
createVNode(_sfc_main$Y, {
|
|
24586
24607
|
ref: "millisecondInput",
|
|
24587
24608
|
modelValue: millisecond.value,
|
|
24588
24609
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => millisecond.value = $event),
|
|
@@ -24595,7 +24616,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24595
24616
|
max: MAX_MILLISECOND,
|
|
24596
24617
|
step: 1
|
|
24597
24618
|
}, null, 8, ["modelValue"]),
|
|
24598
|
-
createVNode(_sfc_main$
|
|
24619
|
+
createVNode(_sfc_main$1K, {
|
|
24599
24620
|
class: "kds-time-picker-field-trash",
|
|
24600
24621
|
variant: "transparent",
|
|
24601
24622
|
"leading-icon": "trash",
|
|
@@ -24604,7 +24625,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24604
24625
|
onClick: removeMilliseconds
|
|
24605
24626
|
})
|
|
24606
24627
|
])) : __props.maxGranularity === "millisecond" ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
24607
|
-
createVNode(_sfc_main$
|
|
24628
|
+
createVNode(_sfc_main$1K, {
|
|
24608
24629
|
variant: "outlined",
|
|
24609
24630
|
size: "small",
|
|
24610
24631
|
"leading-icon": "plus",
|
|
@@ -24613,7 +24634,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24613
24634
|
})
|
|
24614
24635
|
])) : createCommentVNode("", true)
|
|
24615
24636
|
], 64)) : __props.maxGranularity !== "minute" ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
24616
|
-
createVNode(_sfc_main$
|
|
24637
|
+
createVNode(_sfc_main$1K, {
|
|
24617
24638
|
variant: "outlined",
|
|
24618
24639
|
size: "small",
|
|
24619
24640
|
"leading-icon": "plus",
|
|
@@ -24626,7 +24647,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
24626
24647
|
}
|
|
24627
24648
|
});
|
|
24628
24649
|
|
|
24629
|
-
const TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
24650
|
+
const TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-d03054a0"]]);
|
|
24630
24651
|
|
|
24631
24652
|
const HOURS_END_INDEX = 2;
|
|
24632
24653
|
const MINUTES_START_INDEX = 2;
|
|
@@ -24836,7 +24857,7 @@ const useTimeInputMask = (modelValue, granularityRef) => {
|
|
|
24836
24857
|
};
|
|
24837
24858
|
|
|
24838
24859
|
const invalidTimeMessage = "The entered time is invalid.";
|
|
24839
|
-
const _sfc_main$
|
|
24860
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
24840
24861
|
__name: "KdsTimeInput",
|
|
24841
24862
|
props: /* @__PURE__ */ mergeModels({
|
|
24842
24863
|
description: {},
|
|
@@ -24951,7 +24972,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
24951
24972
|
onBlur: onTextInputBlur
|
|
24952
24973
|
}), {
|
|
24953
24974
|
trailing: withCtx(() => [
|
|
24954
|
-
createVNode(_sfc_main$
|
|
24975
|
+
createVNode(_sfc_main$1q, {
|
|
24955
24976
|
modelValue: popoverIsVisible.value,
|
|
24956
24977
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
24957
24978
|
size: "xsmall",
|
|
@@ -25213,11 +25234,11 @@ const stripInactiveFields = (duration, usedFormat) => {
|
|
|
25213
25234
|
};
|
|
25214
25235
|
const toTitleCase = (key) => key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
25215
25236
|
|
|
25216
|
-
const _hoisted_1$
|
|
25217
|
-
const _hoisted_2$
|
|
25218
|
-
const _hoisted_3$
|
|
25219
|
-
const _hoisted_4$
|
|
25220
|
-
const _sfc_main$
|
|
25237
|
+
const _hoisted_1$x = { class: "kds-interval-popover" };
|
|
25238
|
+
const _hoisted_2$j = { class: "kds-interval-popover-header" };
|
|
25239
|
+
const _hoisted_3$e = { class: "kds-interval-popover-content" };
|
|
25240
|
+
const _hoisted_4$d = { class: "kds-interval-popover-grid" };
|
|
25241
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
25221
25242
|
__name: "IntervalInputPopover",
|
|
25222
25243
|
props: /* @__PURE__ */ mergeModels({
|
|
25223
25244
|
format: {},
|
|
@@ -25311,8 +25332,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25311
25332
|
}
|
|
25312
25333
|
});
|
|
25313
25334
|
return (_ctx, _cache) => {
|
|
25314
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25315
|
-
createElementVNode("div", _hoisted_2$
|
|
25335
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
25336
|
+
createElementVNode("div", _hoisted_2$j, [
|
|
25316
25337
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "kds-interval-popover-title" }, "Interval value", -1)),
|
|
25317
25338
|
props.format === unref(kdsIntervalInputFormat).DATE_OR_TIME ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
25318
25339
|
key: 0,
|
|
@@ -25324,7 +25345,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25324
25345
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
25325
25346
|
]),
|
|
25326
25347
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "kds-interval-popover-divider" }, null, -1)),
|
|
25327
|
-
createElementVNode("div", _hoisted_3$
|
|
25348
|
+
createElementVNode("div", _hoisted_3$e, [
|
|
25328
25349
|
props.allowDescending ? (openBlock(), createBlock(unref(KdsValueSwitch), {
|
|
25329
25350
|
key: 0,
|
|
25330
25351
|
modelValue: direction.value,
|
|
@@ -25334,9 +25355,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25334
25355
|
variant: "muted",
|
|
25335
25356
|
"possible-values": directionOptions
|
|
25336
25357
|
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
25337
|
-
createElementVNode("div", _hoisted_4$
|
|
25358
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
25338
25359
|
mode.value === unref(kdsIntervalInputFormat).DATE ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(periodNumericKeys), (key) => {
|
|
25339
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
25360
|
+
return openBlock(), createBlock(unref(_sfc_main$Y), {
|
|
25340
25361
|
key,
|
|
25341
25362
|
"model-value": activeFields.value[key],
|
|
25342
25363
|
label: fieldLabels[key] ?? unref(toTitleCase)(key),
|
|
@@ -25346,7 +25367,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25346
25367
|
"onUpdate:modelValue": ($event) => updateField(key, $event)
|
|
25347
25368
|
}, null, 8, ["model-value", "label", "max", "onUpdate:modelValue"]);
|
|
25348
25369
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(durationNumericKeys), (key) => {
|
|
25349
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
25370
|
+
return openBlock(), createBlock(unref(_sfc_main$Y), {
|
|
25350
25371
|
key,
|
|
25351
25372
|
"model-value": activeFields.value[key],
|
|
25352
25373
|
label: fieldLabels[key] ?? unref(toTitleCase)(key),
|
|
@@ -25363,9 +25384,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
25363
25384
|
}
|
|
25364
25385
|
});
|
|
25365
25386
|
|
|
25366
|
-
const IntervalInputPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25387
|
+
const IntervalInputPopover = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-97919a20"]]);
|
|
25367
25388
|
|
|
25368
|
-
const _sfc_main$
|
|
25389
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
25369
25390
|
__name: "KdsIntervalInput",
|
|
25370
25391
|
props: /* @__PURE__ */ mergeModels({
|
|
25371
25392
|
description: {},
|
|
@@ -25527,7 +25548,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
25527
25548
|
onKeydown: withKeys(withModifiers(commitTypedInput, ["prevent"]), ["enter"])
|
|
25528
25549
|
}), {
|
|
25529
25550
|
trailing: withCtx(() => [
|
|
25530
|
-
createVNode(unref(_sfc_main$
|
|
25551
|
+
createVNode(unref(_sfc_main$1q), {
|
|
25531
25552
|
modelValue: isPopoverOpen.value,
|
|
25532
25553
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isPopoverOpen.value = $event),
|
|
25533
25554
|
size: "xsmall",
|
|
@@ -25576,8 +25597,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
25576
25597
|
}
|
|
25577
25598
|
});
|
|
25578
25599
|
|
|
25579
|
-
const _hoisted_1$
|
|
25580
|
-
const _sfc_main$
|
|
25600
|
+
const _hoisted_1$w = { class: "kds-date-time-input" };
|
|
25601
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
25581
25602
|
__name: "KdsDateTimeInput",
|
|
25582
25603
|
props: /* @__PURE__ */ mergeModels({
|
|
25583
25604
|
id: {},
|
|
@@ -25649,8 +25670,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
25649
25670
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
25650
25671
|
}, {
|
|
25651
25672
|
default: withCtx(() => [
|
|
25652
|
-
createElementVNode("div", _hoisted_1$
|
|
25653
|
-
createVNode(_sfc_main$
|
|
25673
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
25674
|
+
createVNode(_sfc_main$O, {
|
|
25654
25675
|
ref_key: "dateInput",
|
|
25655
25676
|
ref: dateInput,
|
|
25656
25677
|
"aria-label": "Date",
|
|
@@ -25661,7 +25682,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
25661
25682
|
"max-date": __props.maxDate,
|
|
25662
25683
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => datePart.value = $event)
|
|
25663
25684
|
}, null, 8, ["model-value", "disabled", "error", "min-date", "max-date"]),
|
|
25664
|
-
createVNode(_sfc_main$
|
|
25685
|
+
createVNode(_sfc_main$H, {
|
|
25665
25686
|
ref_key: "timeInput",
|
|
25666
25687
|
ref: timeInput,
|
|
25667
25688
|
"aria-label": "Time",
|
|
@@ -25681,21 +25702,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
25681
25702
|
}
|
|
25682
25703
|
});
|
|
25683
25704
|
|
|
25684
|
-
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25705
|
+
const KdsDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-60496f73"]]);
|
|
25685
25706
|
|
|
25686
|
-
const _hoisted_1$
|
|
25687
|
-
const _hoisted_2$
|
|
25707
|
+
const _hoisted_1$v = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
25708
|
+
const _hoisted_2$i = {
|
|
25688
25709
|
key: 0,
|
|
25689
25710
|
class: "leading",
|
|
25690
25711
|
"aria-hidden": "true"
|
|
25691
25712
|
};
|
|
25692
|
-
const _hoisted_3$
|
|
25693
|
-
const _hoisted_4$
|
|
25713
|
+
const _hoisted_3$d = ["id"];
|
|
25714
|
+
const _hoisted_4$c = {
|
|
25694
25715
|
class: "trailing",
|
|
25695
25716
|
"aria-hidden": "true"
|
|
25696
25717
|
};
|
|
25697
25718
|
const TRIGGER_REF = "triggerEl";
|
|
25698
|
-
const _sfc_main$
|
|
25719
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
25699
25720
|
__name: "BaseDropdown",
|
|
25700
25721
|
props: /* @__PURE__ */ mergeModels({
|
|
25701
25722
|
text: {},
|
|
@@ -25775,8 +25796,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
25775
25796
|
onClick: _cache[0] || (_cache[0] = ($event) => !__props.disabled && emit("click")),
|
|
25776
25797
|
onKeydown
|
|
25777
25798
|
}, [
|
|
25778
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
25779
|
-
createVNode(_sfc_main$
|
|
25799
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
|
|
25800
|
+
createVNode(_sfc_main$1o, {
|
|
25780
25801
|
accessory: props.accessory,
|
|
25781
25802
|
size: "medium"
|
|
25782
25803
|
}, null, 8, ["accessory"])
|
|
@@ -25787,28 +25808,28 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
25787
25808
|
placeholder: !props.text && !__props.disabled,
|
|
25788
25809
|
missing: __props.missing
|
|
25789
25810
|
}])
|
|
25790
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
25791
|
-
createElementVNode("span", _hoisted_4$
|
|
25811
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$d),
|
|
25812
|
+
createElementVNode("span", _hoisted_4$c, [
|
|
25792
25813
|
createVNode(KdsIcon, {
|
|
25793
25814
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
25794
25815
|
size: "small"
|
|
25795
25816
|
}, null, 8, ["name"])
|
|
25796
25817
|
])
|
|
25797
|
-
], 42, _hoisted_1$
|
|
25818
|
+
], 42, _hoisted_1$v);
|
|
25798
25819
|
};
|
|
25799
25820
|
}
|
|
25800
25821
|
});
|
|
25801
25822
|
|
|
25802
|
-
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25823
|
+
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-7cb8711f"]]);
|
|
25803
25824
|
|
|
25804
25825
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
25805
25826
|
|
|
25806
|
-
const _hoisted_1$
|
|
25807
|
-
const _hoisted_2$
|
|
25827
|
+
const _hoisted_1$u = { class: "kds-dropdown-container" };
|
|
25828
|
+
const _hoisted_2$h = {
|
|
25808
25829
|
key: 0,
|
|
25809
25830
|
class: "kds-dropdown-container-sticky-top"
|
|
25810
25831
|
};
|
|
25811
|
-
const _sfc_main$
|
|
25832
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
25812
25833
|
__name: "DropdownContainer",
|
|
25813
25834
|
props: /* @__PURE__ */ mergeModels({
|
|
25814
25835
|
emptyText: {},
|
|
@@ -25892,8 +25913,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
25892
25913
|
}
|
|
25893
25914
|
});
|
|
25894
25915
|
return (_ctx, _cache) => {
|
|
25895
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
25896
|
-
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
25916
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
25917
|
+
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
25897
25918
|
createVNode(BaseInput, {
|
|
25898
25919
|
ref_key: "searchEl",
|
|
25899
25920
|
ref: searchEl,
|
|
@@ -25925,9 +25946,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
25925
25946
|
}
|
|
25926
25947
|
});
|
|
25927
25948
|
|
|
25928
|
-
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
25949
|
+
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-0a6ce241"]]);
|
|
25929
25950
|
|
|
25930
|
-
const _sfc_main$
|
|
25951
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
25931
25952
|
__name: "KdsDropdown",
|
|
25932
25953
|
props: /* @__PURE__ */ mergeModels({
|
|
25933
25954
|
placeholder: { default: "Select" },
|
|
@@ -26042,9 +26063,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
26042
26063
|
}
|
|
26043
26064
|
});
|
|
26044
26065
|
|
|
26045
|
-
const _hoisted_1$
|
|
26046
|
-
const _hoisted_2$
|
|
26047
|
-
const _sfc_main$
|
|
26066
|
+
const _hoisted_1$t = { class: "kds-zoned-date-time-input" };
|
|
26067
|
+
const _hoisted_2$g = { class: "date-time-row" };
|
|
26068
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
26048
26069
|
__name: "KdsZonedDateTimeInput",
|
|
26049
26070
|
props: /* @__PURE__ */ mergeModels({
|
|
26050
26071
|
id: {},
|
|
@@ -26153,9 +26174,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
26153
26174
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
26154
26175
|
}, {
|
|
26155
26176
|
default: withCtx(() => [
|
|
26156
|
-
createElementVNode("div", _hoisted_1$
|
|
26157
|
-
createElementVNode("div", _hoisted_2$
|
|
26158
|
-
createVNode(_sfc_main$
|
|
26177
|
+
createElementVNode("div", _hoisted_1$t, [
|
|
26178
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
26179
|
+
createVNode(_sfc_main$O, {
|
|
26159
26180
|
ref_key: "dateInput",
|
|
26160
26181
|
ref: dateInput,
|
|
26161
26182
|
"aria-label": "Date",
|
|
@@ -26164,7 +26185,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
26164
26185
|
error: __props.error,
|
|
26165
26186
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => datePart.value = $event)
|
|
26166
26187
|
}, null, 8, ["model-value", "disabled", "error"]),
|
|
26167
|
-
createVNode(_sfc_main$
|
|
26188
|
+
createVNode(_sfc_main$H, {
|
|
26168
26189
|
ref_key: "timeInput",
|
|
26169
26190
|
ref: timeInput,
|
|
26170
26191
|
"aria-label": "Time",
|
|
@@ -26177,7 +26198,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
26177
26198
|
"onUpdate:granularity": _cache[2] || (_cache[2] = ($event) => granularity.value = $event)
|
|
26178
26199
|
}, null, 8, ["model-value", "granularity", "max-granularity", "disabled", "error"])
|
|
26179
26200
|
]),
|
|
26180
|
-
createVNode(_sfc_main$
|
|
26201
|
+
createVNode(_sfc_main$B, {
|
|
26181
26202
|
modelValue: timeZonePart.value,
|
|
26182
26203
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => timeZonePart.value = $event),
|
|
26183
26204
|
"possible-values": __props.possibleValues ?? [],
|
|
@@ -26193,7 +26214,207 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
26193
26214
|
}
|
|
26194
26215
|
});
|
|
26195
26216
|
|
|
26196
|
-
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
26217
|
+
const KdsZonedDateTimeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-7331c615"]]);
|
|
26218
|
+
|
|
26219
|
+
const _hoisted_1$s = { class: "kds-file-selector" };
|
|
26220
|
+
const _hoisted_2$f = ["accept", "disabled"];
|
|
26221
|
+
const _hoisted_3$c = { class: "file-info" };
|
|
26222
|
+
const _hoisted_4$b = {
|
|
26223
|
+
key: 0,
|
|
26224
|
+
class: "requirements"
|
|
26225
|
+
};
|
|
26226
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
26227
|
+
__name: "KdsFileSelector",
|
|
26228
|
+
props: /* @__PURE__ */ mergeModels({
|
|
26229
|
+
description: {},
|
|
26230
|
+
label: {},
|
|
26231
|
+
ariaLabel: {},
|
|
26232
|
+
id: {},
|
|
26233
|
+
subText: {},
|
|
26234
|
+
error: { type: Boolean, default: false },
|
|
26235
|
+
validating: { type: Boolean, default: false },
|
|
26236
|
+
preserveSubTextSpace: { type: Boolean, default: false },
|
|
26237
|
+
disabled: { type: Boolean, default: false },
|
|
26238
|
+
accept: {},
|
|
26239
|
+
maxSizeBytes: {},
|
|
26240
|
+
invalidTypeMessage: { default: "Filetype is not allowed." },
|
|
26241
|
+
invalidSizeMessage: {},
|
|
26242
|
+
selectLabel: { default: "Select file" },
|
|
26243
|
+
emptyText: { default: "No file selected" },
|
|
26244
|
+
clearLabel: { default: "Remove file" }
|
|
26245
|
+
}, {
|
|
26246
|
+
"modelValue": { default: null },
|
|
26247
|
+
"modelModifiers": {}
|
|
26248
|
+
}),
|
|
26249
|
+
emits: /* @__PURE__ */ mergeModels(["validation-error"], ["update:modelValue"]),
|
|
26250
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
26251
|
+
const props = createPropsRestProxy(__props, ["disabled", "error", "validating", "preserveSubTextSpace", "selectLabel", "emptyText", "clearLabel", "invalidTypeMessage"]);
|
|
26252
|
+
const emit = __emit;
|
|
26253
|
+
const modelValue = useModel(__props, "modelValue");
|
|
26254
|
+
const fileInputRef = useTemplateRef("fileInput");
|
|
26255
|
+
const selectButtonRef = useTemplateRef("selectButton");
|
|
26256
|
+
const internalError = ref(null);
|
|
26257
|
+
const deriveFileTypeLabel = (entry) => {
|
|
26258
|
+
if (entry.startsWith(".")) {
|
|
26259
|
+
return entry.slice(1).toLowerCase() || null;
|
|
26260
|
+
}
|
|
26261
|
+
if (entry.includes("/")) {
|
|
26262
|
+
const [type, subtype] = entry.split("/");
|
|
26263
|
+
if (subtype === "*") {
|
|
26264
|
+
return type.toLowerCase();
|
|
26265
|
+
}
|
|
26266
|
+
return subtype.toLowerCase();
|
|
26267
|
+
}
|
|
26268
|
+
return null;
|
|
26269
|
+
};
|
|
26270
|
+
const displayName = computed(() => modelValue.value?.name ?? "");
|
|
26271
|
+
const acceptEntries = computed(
|
|
26272
|
+
() => (props.accept ?? "").split(",").map((entry) => entry.trim()).filter((entry) => entry.length > 0)
|
|
26273
|
+
);
|
|
26274
|
+
const fileTypeLabels = computed(() => {
|
|
26275
|
+
const labels = [];
|
|
26276
|
+
for (const entry of acceptEntries.value) {
|
|
26277
|
+
const label = deriveFileTypeLabel(entry);
|
|
26278
|
+
if (label && !labels.includes(label)) {
|
|
26279
|
+
labels.push(label);
|
|
26280
|
+
}
|
|
26281
|
+
}
|
|
26282
|
+
return labels;
|
|
26283
|
+
});
|
|
26284
|
+
const requirementsText = computed(() => {
|
|
26285
|
+
const parts = [];
|
|
26286
|
+
if (fileTypeLabels.value.length > 0) {
|
|
26287
|
+
parts.push(fileTypeLabels.value.join(", "));
|
|
26288
|
+
}
|
|
26289
|
+
if (typeof props.maxSizeBytes === "number" && props.maxSizeBytes >= 0) {
|
|
26290
|
+
parts.push(`max. ${formatFileSize(props.maxSizeBytes)}`);
|
|
26291
|
+
}
|
|
26292
|
+
return parts.join(" – ");
|
|
26293
|
+
});
|
|
26294
|
+
const defaultInvalidSizeMessage = computed(
|
|
26295
|
+
() => typeof props.maxSizeBytes === "number" ? `File exceeds ${formatFileSize(props.maxSizeBytes)}.` : "File is too large."
|
|
26296
|
+
);
|
|
26297
|
+
const effectiveInvalidSizeMessage = computed(
|
|
26298
|
+
() => props.invalidSizeMessage ?? defaultInvalidSizeMessage.value
|
|
26299
|
+
);
|
|
26300
|
+
const effectiveError = computed(() => internalError.value !== null || __props.error);
|
|
26301
|
+
const effectiveSubText = computed(
|
|
26302
|
+
() => internalError.value ?? props.subText ?? ""
|
|
26303
|
+
);
|
|
26304
|
+
const matchesAccept = (file) => {
|
|
26305
|
+
if (acceptEntries.value.length === 0) {
|
|
26306
|
+
return true;
|
|
26307
|
+
}
|
|
26308
|
+
const filename = file.name.toLowerCase();
|
|
26309
|
+
const mime = file.type.toLowerCase();
|
|
26310
|
+
return acceptEntries.value.some((entry) => {
|
|
26311
|
+
const normalized = entry.toLowerCase();
|
|
26312
|
+
if (normalized.startsWith(".")) {
|
|
26313
|
+
return filename.endsWith(normalized);
|
|
26314
|
+
}
|
|
26315
|
+
if (normalized.endsWith("/*")) {
|
|
26316
|
+
const [type] = normalized.split("/");
|
|
26317
|
+
return mime.startsWith(`${type}/`);
|
|
26318
|
+
}
|
|
26319
|
+
return mime === normalized;
|
|
26320
|
+
});
|
|
26321
|
+
};
|
|
26322
|
+
const validate = (file) => {
|
|
26323
|
+
if (!matchesAccept(file)) {
|
|
26324
|
+
return "type";
|
|
26325
|
+
}
|
|
26326
|
+
if (typeof props.maxSizeBytes === "number" && file.size > props.maxSizeBytes) {
|
|
26327
|
+
return "size";
|
|
26328
|
+
}
|
|
26329
|
+
return null;
|
|
26330
|
+
};
|
|
26331
|
+
const openDialog = () => {
|
|
26332
|
+
fileInputRef.value?.click();
|
|
26333
|
+
};
|
|
26334
|
+
const onFileChange = (event) => {
|
|
26335
|
+
const input = event.target;
|
|
26336
|
+
const file = input.files?.[0] ?? null;
|
|
26337
|
+
input.value = "";
|
|
26338
|
+
if (!file) {
|
|
26339
|
+
return;
|
|
26340
|
+
}
|
|
26341
|
+
const reason = validate(file);
|
|
26342
|
+
if (reason) {
|
|
26343
|
+
internalError.value = reason === "type" ? __props.invalidTypeMessage : effectiveInvalidSizeMessage.value;
|
|
26344
|
+
modelValue.value = null;
|
|
26345
|
+
emit("validation-error", { file, reason });
|
|
26346
|
+
return;
|
|
26347
|
+
}
|
|
26348
|
+
internalError.value = null;
|
|
26349
|
+
modelValue.value = file;
|
|
26350
|
+
};
|
|
26351
|
+
const clearFile = () => {
|
|
26352
|
+
internalError.value = null;
|
|
26353
|
+
modelValue.value = null;
|
|
26354
|
+
};
|
|
26355
|
+
__expose({
|
|
26356
|
+
focus: (options) => selectButtonRef.value?.$el?.focus(options)
|
|
26357
|
+
});
|
|
26358
|
+
return (_ctx, _cache) => {
|
|
26359
|
+
return openBlock(), createBlock(BaseFormFieldWrapper, {
|
|
26360
|
+
id: props.id,
|
|
26361
|
+
label: props.label,
|
|
26362
|
+
"aria-label": props.ariaLabel,
|
|
26363
|
+
description: props.description,
|
|
26364
|
+
"sub-text": effectiveSubText.value,
|
|
26365
|
+
error: effectiveError.value,
|
|
26366
|
+
validating: __props.validating,
|
|
26367
|
+
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
26368
|
+
}, {
|
|
26369
|
+
default: withCtx((slotProps) => [
|
|
26370
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
26371
|
+
createVNode(_sfc_main$1K, {
|
|
26372
|
+
id: slotProps.id,
|
|
26373
|
+
ref: "selectButton",
|
|
26374
|
+
size: "small",
|
|
26375
|
+
variant: "filled",
|
|
26376
|
+
label: __props.selectLabel,
|
|
26377
|
+
disabled: __props.disabled,
|
|
26378
|
+
"aria-labelledby": `${slotProps.ariaLabelledby} ${slotProps.id}`,
|
|
26379
|
+
"aria-describedby": slotProps.ariaDescribedby,
|
|
26380
|
+
onClick: openDialog
|
|
26381
|
+
}, null, 8, ["id", "label", "disabled", "aria-labelledby", "aria-describedby"]),
|
|
26382
|
+
createElementVNode("input", {
|
|
26383
|
+
ref: "fileInput",
|
|
26384
|
+
type: "file",
|
|
26385
|
+
hidden: "",
|
|
26386
|
+
accept: __props.accept,
|
|
26387
|
+
disabled: __props.disabled,
|
|
26388
|
+
onChange: onFileChange
|
|
26389
|
+
}, null, 40, _hoisted_2$f),
|
|
26390
|
+
createElementVNode("div", _hoisted_3$c, [
|
|
26391
|
+
withDirectives((openBlock(), createElementBlock("span", {
|
|
26392
|
+
class: normalizeClass(["file-name", { "has-value": modelValue.value }])
|
|
26393
|
+
}, [
|
|
26394
|
+
createTextVNode(toDisplayString(modelValue.value ? displayName.value : __props.emptyText), 1)
|
|
26395
|
+
], 2)), [
|
|
26396
|
+
[unref(vKdsTooltip), modelValue.value ? displayName.value : void 0, "truncated"]
|
|
26397
|
+
]),
|
|
26398
|
+
!modelValue.value && requirementsText.value ? (openBlock(), createElementBlock("span", _hoisted_4$b, toDisplayString(requirementsText.value), 1)) : createCommentVNode("", true)
|
|
26399
|
+
]),
|
|
26400
|
+
modelValue.value ? (openBlock(), createBlock(_sfc_main$1K, {
|
|
26401
|
+
key: 0,
|
|
26402
|
+
size: "small",
|
|
26403
|
+
variant: "transparent",
|
|
26404
|
+
"leading-icon": "trash",
|
|
26405
|
+
ariaLabel: __props.clearLabel,
|
|
26406
|
+
disabled: __props.disabled,
|
|
26407
|
+
onClick: clearFile
|
|
26408
|
+
}, null, 8, ["ariaLabel", "disabled"])) : createCommentVNode("", true)
|
|
26409
|
+
])
|
|
26410
|
+
]),
|
|
26411
|
+
_: 1
|
|
26412
|
+
}, 8, ["id", "label", "aria-label", "description", "sub-text", "error", "validating", "preserve-sub-text-space"]);
|
|
26413
|
+
};
|
|
26414
|
+
}
|
|
26415
|
+
});
|
|
26416
|
+
|
|
26417
|
+
const KdsFileSelector = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-9f592f37"]]);
|
|
26197
26418
|
|
|
26198
26419
|
const _hoisted_1$r = ["disabled"];
|
|
26199
26420
|
const _hoisted_2$e = { class: "label" };
|
|
@@ -27517,7 +27738,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27517
27738
|
}, null, 8, ["modelValue", "possible-values", "ariaLabel", "disabled", "error", "loading", "empty-state-label", "bottom-value"])
|
|
27518
27739
|
]),
|
|
27519
27740
|
createElementVNode("div", _hoisted_5$6, [
|
|
27520
|
-
createVNode(unref(_sfc_main$
|
|
27741
|
+
createVNode(unref(_sfc_main$1K), {
|
|
27521
27742
|
"leading-icon": "chevron-right",
|
|
27522
27743
|
ariaLabel: "Move selected values right",
|
|
27523
27744
|
tooltip: "Move selected values right",
|
|
@@ -27526,7 +27747,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27526
27747
|
disabled: effectiveDisabled.value || leftSelected.value.length === 0,
|
|
27527
27748
|
onClick: _cache[2] || (_cache[2] = ($event) => moveRight(leftSelected.value))
|
|
27528
27749
|
}, null, 8, ["disabled"]),
|
|
27529
|
-
createVNode(unref(_sfc_main$
|
|
27750
|
+
createVNode(unref(_sfc_main$1K), {
|
|
27530
27751
|
"leading-icon": "chevron-right-double",
|
|
27531
27752
|
ariaLabel: "Move all values right",
|
|
27532
27753
|
tooltip: "Move all values right",
|
|
@@ -27538,7 +27759,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27538
27759
|
...showUnknownValues.value && !modelValue.value.includeUnknownValues ? [UNKNOWN_VALUE_ID] : []
|
|
27539
27760
|
]))
|
|
27540
27761
|
}, null, 8, ["disabled"]),
|
|
27541
|
-
createVNode(unref(_sfc_main$
|
|
27762
|
+
createVNode(unref(_sfc_main$1K), {
|
|
27542
27763
|
"leading-icon": "chevron-left",
|
|
27543
27764
|
ariaLabel: "Move selected values left",
|
|
27544
27765
|
tooltip: "Move selected values left",
|
|
@@ -27547,7 +27768,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27547
27768
|
disabled: effectiveDisabled.value || rightSelected.value.length === 0,
|
|
27548
27769
|
onClick: _cache[4] || (_cache[4] = ($event) => moveLeft(rightSelected.value))
|
|
27549
27770
|
}, null, 8, ["disabled"]),
|
|
27550
|
-
createVNode(unref(_sfc_main$
|
|
27771
|
+
createVNode(unref(_sfc_main$1K), {
|
|
27551
27772
|
"leading-icon": "chevron-left-double",
|
|
27552
27773
|
ariaLabel: "Move all values left",
|
|
27553
27774
|
tooltip: "Move all values left",
|
|
@@ -27675,7 +27896,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
27675
27896
|
ariaLabel: "Search values",
|
|
27676
27897
|
placeholder: "Search",
|
|
27677
27898
|
disabled: __props.disabled
|
|
27678
|
-
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27899
|
+
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$L), {
|
|
27679
27900
|
key: 2,
|
|
27680
27901
|
modelValue: pattern.value,
|
|
27681
27902
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pattern.value = $event),
|
|
@@ -28000,7 +28221,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28000
28221
|
createElementVNode("div", _hoisted_1$k, [
|
|
28001
28222
|
createElementVNode("div", _hoisted_2$9, [
|
|
28002
28223
|
createElementVNode("div", _hoisted_3$8, [
|
|
28003
|
-
createVNode(_sfc_main$
|
|
28224
|
+
createVNode(_sfc_main$1K, {
|
|
28004
28225
|
size: "small",
|
|
28005
28226
|
variant: "transparent",
|
|
28006
28227
|
"leading-icon": "sort-descending",
|
|
@@ -28008,7 +28229,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28008
28229
|
disabled: __props.disabled,
|
|
28009
28230
|
onClick: _cache[0] || (_cache[0] = ($event) => applyReorder(unref(sortByText)(true, optionLookup.value)))
|
|
28010
28231
|
}, null, 8, ["disabled"]),
|
|
28011
|
-
createVNode(_sfc_main$
|
|
28232
|
+
createVNode(_sfc_main$1K, {
|
|
28012
28233
|
size: "small",
|
|
28013
28234
|
variant: "transparent",
|
|
28014
28235
|
"leading-icon": "sort-ascending",
|
|
@@ -28017,7 +28238,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28017
28238
|
onClick: _cache[1] || (_cache[1] = ($event) => applyReorder(unref(sortByText)(false, optionLookup.value)))
|
|
28018
28239
|
}, null, 8, ["disabled"])
|
|
28019
28240
|
]),
|
|
28020
|
-
createVNode(_sfc_main$
|
|
28241
|
+
createVNode(_sfc_main$1K, {
|
|
28021
28242
|
size: "small",
|
|
28022
28243
|
variant: "transparent",
|
|
28023
28244
|
destructive: "",
|
|
@@ -28039,7 +28260,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28039
28260
|
/* fallback only for TS */
|
|
28040
28261
|
}, null, 8, ["modelValue", "possible-values", "disabled", "error", "ariaLabel"]),
|
|
28041
28262
|
createElementVNode("div", _hoisted_4$8, [
|
|
28042
|
-
createVNode(_sfc_main$
|
|
28263
|
+
createVNode(_sfc_main$1K, {
|
|
28043
28264
|
size: "small",
|
|
28044
28265
|
variant: "transparent",
|
|
28045
28266
|
"leading-icon": "to-top",
|
|
@@ -28048,7 +28269,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28048
28269
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
28049
28270
|
onClick: moveToTop
|
|
28050
28271
|
}, null, 8, ["disabled"]),
|
|
28051
|
-
createVNode(_sfc_main$
|
|
28272
|
+
createVNode(_sfc_main$1K, {
|
|
28052
28273
|
size: "small",
|
|
28053
28274
|
variant: "transparent",
|
|
28054
28275
|
"leading-icon": "to-bottom",
|
|
@@ -28057,7 +28278,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28057
28278
|
disabled: __props.disabled || !unref(canMoveDown),
|
|
28058
28279
|
onClick: moveToBottom
|
|
28059
28280
|
}, null, 8, ["disabled"]),
|
|
28060
|
-
createVNode(_sfc_main$
|
|
28281
|
+
createVNode(_sfc_main$1K, {
|
|
28061
28282
|
size: "small",
|
|
28062
28283
|
variant: "transparent",
|
|
28063
28284
|
"leading-icon": "arrow-up",
|
|
@@ -28066,7 +28287,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
28066
28287
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
28067
28288
|
onClick: moveUp
|
|
28068
28289
|
}, null, 8, ["disabled"]),
|
|
28069
|
-
createVNode(_sfc_main$
|
|
28290
|
+
createVNode(_sfc_main$1K, {
|
|
28070
28291
|
size: "small",
|
|
28071
28292
|
variant: "transparent",
|
|
28072
28293
|
"leading-icon": "arrow-down",
|
|
@@ -28891,10 +29112,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28891
29112
|
id: unref(headlineId),
|
|
28892
29113
|
class: "kds-panel-headline"
|
|
28893
29114
|
}, [
|
|
28894
|
-
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$5, toDisplayString(__props.headline), 1)) : __props.headline.type === "button" ? (openBlock(), createBlock(_sfc_main$
|
|
29115
|
+
typeof __props.headline === "string" ? (openBlock(), createElementBlock("h6", _hoisted_4$5, toDisplayString(__props.headline), 1)) : __props.headline.type === "button" ? (openBlock(), createBlock(_sfc_main$1K, mergeProps({ key: 1 }, __props.headline.props, {
|
|
28895
29116
|
size: "small",
|
|
28896
29117
|
onClick: __props.headline.onClick
|
|
28897
|
-
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$
|
|
29118
|
+
}), null, 16, ["onClick"])) : __props.headline.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1j, mergeProps({ key: 2 }, __props.headline.props, {
|
|
28898
29119
|
size: "small",
|
|
28899
29120
|
onItemClick: __props.headline.onItemClick
|
|
28900
29121
|
}), null, 16, ["onItemClick"])) : createCommentVNode("", true)
|
|
@@ -28902,19 +29123,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28902
29123
|
__props.headlineTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
28903
29124
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headlineTrailingActions, (action, index) => {
|
|
28904
29125
|
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
28905
|
-
action.type === "button" ? (openBlock(), createBlock(_sfc_main$
|
|
29126
|
+
action.type === "button" ? (openBlock(), createBlock(_sfc_main$1K, mergeProps({
|
|
28906
29127
|
key: 0,
|
|
28907
29128
|
ref_for: true
|
|
28908
29129
|
}, action.props, {
|
|
28909
29130
|
size: "small",
|
|
28910
29131
|
onClick: action.onClick
|
|
28911
|
-
}), null, 16, ["onClick"])) : action.type === "toggleButton" ? (openBlock(), createBlock(_sfc_main$
|
|
29132
|
+
}), null, 16, ["onClick"])) : action.type === "toggleButton" ? (openBlock(), createBlock(_sfc_main$1q, mergeProps({
|
|
28912
29133
|
key: 1,
|
|
28913
29134
|
ref_for: true
|
|
28914
29135
|
}, action.props, {
|
|
28915
29136
|
size: "small",
|
|
28916
29137
|
"onUpdate:modelValue": action.onUpdateModelValue
|
|
28917
|
-
}), null, 16, ["onUpdate:modelValue"])) : action.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$
|
|
29138
|
+
}), null, 16, ["onUpdate:modelValue"])) : action.type === "menuButton" ? (openBlock(), createBlock(_sfc_main$1j, mergeProps({
|
|
28918
29139
|
key: 2,
|
|
28919
29140
|
ref_for: true
|
|
28920
29141
|
}, action.props, {
|
|
@@ -28943,7 +29164,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28943
29164
|
__props.footerLeadingActions?.length || __props.footerTrailingActions?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
28944
29165
|
createElementVNode("div", _hoisted_8, [
|
|
28945
29166
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerLeadingActions, (action, index) => {
|
|
28946
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29167
|
+
return openBlock(), createBlock(_sfc_main$1K, mergeProps({
|
|
28947
29168
|
key: `leading-${index}`
|
|
28948
29169
|
}, { ref_for: true }, action.props, {
|
|
28949
29170
|
onClick: action.onClick
|
|
@@ -28952,7 +29173,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
28952
29173
|
]),
|
|
28953
29174
|
createElementVNode("div", _hoisted_9, [
|
|
28954
29175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.footerTrailingActions, (action, index) => {
|
|
28955
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29176
|
+
return openBlock(), createBlock(_sfc_main$1K, mergeProps({
|
|
28956
29177
|
key: `trailing-${index}`
|
|
28957
29178
|
}, { ref_for: true }, action.props, {
|
|
28958
29179
|
onClick: action.onClick
|
|
@@ -29233,7 +29454,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
29233
29454
|
onClick: ($event) => selectTab(tab),
|
|
29234
29455
|
onKeydown: ($event) => handleKeydown($event, tab)
|
|
29235
29456
|
}, [
|
|
29236
|
-
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$
|
|
29457
|
+
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
29237
29458
|
key: 0,
|
|
29238
29459
|
accessory: tab.accessory,
|
|
29239
29460
|
size: __props.size === "large" ? unref(kdsAccessorySize).LARGE : unref(kdsAccessorySize).MEDIUM,
|
|
@@ -29478,7 +29699,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
29478
29699
|
disabled: __props.disabled
|
|
29479
29700
|
}, null, 8, ["name", "disabled"])) : createCommentVNode("", true),
|
|
29480
29701
|
__props.badge ? (openBlock(), createBlock(unref(KdsBadge), mergeProps({ key: 1 }, __props.badge, { size: "xxsmall" }), null, 16)) : createCommentVNode("", true),
|
|
29481
|
-
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$
|
|
29702
|
+
__props.trailingButton ? (openBlock(), createBlock(unref(_sfc_main$1K), mergeProps({ key: 2 }, __props.trailingButton, {
|
|
29482
29703
|
size: "xsmall",
|
|
29483
29704
|
onClick: onButtonClick
|
|
29484
29705
|
}), null, 16)) : createCommentVNode("", true)
|
|
@@ -29799,10 +30020,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
29799
30020
|
setup(__props) {
|
|
29800
30021
|
const props = createPropsRestProxy(__props, ["size"]);
|
|
29801
30022
|
return (_ctx, _cache) => {
|
|
29802
|
-
return props.type === unref(kdsActionButtonType).BUTTON ? (openBlock(), createBlock(_sfc_main$
|
|
30023
|
+
return props.type === unref(kdsActionButtonType).BUTTON ? (openBlock(), createBlock(_sfc_main$1K, mergeProps({ key: 0 }, props.props, {
|
|
29803
30024
|
size: __props.size,
|
|
29804
30025
|
onClick: _cache[0] || (_cache[0] = (e) => props.onClick?.(e))
|
|
29805
|
-
}), null, 16, ["size"])) : props.type === unref(kdsActionButtonType).LINK_BUTTON ? (openBlock(), createBlock(_sfc_main$
|
|
30026
|
+
}), null, 16, ["size"])) : props.type === unref(kdsActionButtonType).LINK_BUTTON ? (openBlock(), createBlock(_sfc_main$1s, mergeProps({ key: 1 }, props.props, { size: __props.size }), null, 16, ["size"])) : createCommentVNode("", true);
|
|
29806
30027
|
};
|
|
29807
30028
|
}
|
|
29808
30029
|
});
|
|
@@ -30708,7 +30929,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
30708
30929
|
treeNode: node,
|
|
30709
30930
|
searchTerm: searchTerm.value
|
|
30710
30931
|
}, () => [
|
|
30711
|
-
node.accessory ? (openBlock(), createBlock(_sfc_main$
|
|
30932
|
+
node.accessory ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
30712
30933
|
key: 0,
|
|
30713
30934
|
accessory: node.accessory,
|
|
30714
30935
|
size: unref(kdsAccessorySize).SMALL
|
|
@@ -30727,7 +30948,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
30727
30948
|
treeNode: node,
|
|
30728
30949
|
searchTerm: searchTerm.value
|
|
30729
30950
|
}, () => [
|
|
30730
|
-
node.accessory ? (openBlock(), createBlock(_sfc_main$
|
|
30951
|
+
node.accessory ? (openBlock(), createBlock(_sfc_main$1o, {
|
|
30731
30952
|
key: 0,
|
|
30732
30953
|
accessory: node.accessory,
|
|
30733
30954
|
size: unref(kdsAccessorySize).SMALL
|
|
@@ -30760,8 +30981,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
30760
30981
|
|
|
30761
30982
|
const KdsTree = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-16bbfdf6"]]);
|
|
30762
30983
|
|
|
30763
|
-
const ExternalLinkIconUrl = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20viewBox='0%200%2012%2012'%3e%3cpath%20d='M5.5%201.5h-3a1%201%200%200%200-1%201v7a1%201%200%200%200%201%201h7a1%201%200%200%200%201-1v-3m0-5L6%205.892M10.5%201.5v2.75m0-2.75H7.75'%20vector-effect='non-scaling-stroke'/%3e%3c/svg%3e";
|
|
30764
|
-
|
|
30765
30984
|
const _hoisted_1 = ["innerHTML"];
|
|
30766
30985
|
const _hoisted_2 = ["textContent"];
|
|
30767
30986
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -30772,7 +30991,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30772
30991
|
},
|
|
30773
30992
|
setup(__props) {
|
|
30774
30993
|
useCssVars((_ctx) => ({
|
|
30775
|
-
"
|
|
30994
|
+
"v9d035596": externalIcon
|
|
30776
30995
|
}));
|
|
30777
30996
|
const externalIcon = `url("${ExternalLinkIconUrl}")`;
|
|
30778
30997
|
return (_ctx, _cache) => {
|
|
@@ -30788,7 +31007,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30788
31007
|
}
|
|
30789
31008
|
});
|
|
30790
31009
|
|
|
30791
|
-
const KdsDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
31010
|
+
const KdsDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6bb5f3b1"]]);
|
|
30792
31011
|
|
|
30793
31012
|
const kdsDarkModeType = {
|
|
30794
31013
|
LIGHT: "light",
|
|
@@ -30878,5 +31097,5 @@ const useKdsLegacyMode = (initialValue = false) => {
|
|
|
30878
31097
|
};
|
|
30879
31098
|
};
|
|
30880
31099
|
|
|
30881
|
-
export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, KdsBreadcrumb, _sfc_main$
|
|
31100
|
+
export { KdsAccordion, KdsAvatar, KdsAvatarCounter, KdsBadge, KdsBreadcrumb, _sfc_main$1K as KdsButton, _sfc_main$h as KdsCard, _sfc_main$1E as KdsCheckbox, KdsCheckboxGroup, KdsClickableCard, _sfc_main$V as KdsColorInput, KdsColorSwatch, _sfc_main$1d as KdsContextMenu, KdsDataType, _sfc_main$O as KdsDateInput, _sfc_main$M as KdsDateTimeFormatInput, KdsDateTimeInput, KdsDescription, KdsDivider, KdsDonutChart, _sfc_main$B as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsFileExplorer, KdsFileSelector, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, _sfc_main$F as KdsIntervalInput, KdsKeyboardShortcut, KdsLabel, KdsLink, _sfc_main$1s as KdsLinkButton, KdsLinkCard, KdsListContainer, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$1e as KdsMenu, _sfc_main$1j as KdsMenuButton, KdsMissingValueIcon, KdsModal, KdsModalLayout, _sfc_main$w as KdsMultiSelectDropdown, KdsNavItem, KdsNavigation, _sfc_main$Y as KdsNumberInput, KdsPanel, _sfc_main$U as KdsPasswordInput, _sfc_main$L as KdsPatternInput, KdsPopover, KdsPreviewList, KdsProgressBar, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSelectableCard, KdsSideDrawer, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextHighlight, KdsTextInput, KdsTextarea, _sfc_main$H as KdsTimeInput, _sfc_main$1q as KdsToggleButton, KdsToggleSwitch, KdsTree, KdsTwinList, _sfc_main$T as KdsUsernameInput, KdsValueSwitch, KdsVariableToggleButton, KdsZonedDateTimeInput, kdsAccessorySize, kdsAccessorySizes, kdsAccessoryType, kdsAccessoryTypes, kdsActionButtonType, kdsActionButtonTypes, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsDateFormatCategories, kdsDateFormatCategory, kdsFileExplorerDraggingAnimationMode, kdsFileExplorerDraggingAnimationModes, kdsFileExplorerSize, kdsFileExplorerSizes, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsIntervalDirectionalities, kdsIntervalDirectionality, kdsIntervalInputFormat, kdsIntervalInputFormats, kdsKeyboardShortcutSize, kdsKeyboardShortcutSizes, kdsLinkSize, kdsLinkSizes, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSkeletonVariant, kdsLoadingSkeletonVariants, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPanelBodyOverflow, kdsPanelBodyOverflows, kdsPanelBodyVariant, kdsPanelBodyVariants, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsPopoverPlacement, kdsPopoverPlacements, kdsPopoverRole, kdsPopoverRoles, kdsPopoverType, kdsPopoverTypes, kdsProgressBarSize, kdsProgressBarSizes, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsTimeInputGranularities, kdsTimeInputGranularity, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsToggleSwitchLabelPosition, kdsToggleSwitchLabelPositions, kdsToggleSwitchSize, kdsToggleSwitchSizes, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode, vKdsTooltip };
|
|
30882
31101
|
//# sourceMappingURL=index.js.map
|