@knime/kds-components 0.15.1 → 0.16.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/dist/accessories/Badge/KdsBadge.vue.d.ts +1 -1
- package/dist/accessories/Badge/KdsBadge.vue.d.ts.map +1 -1
- package/dist/accessories/Badge/types.d.ts +1 -1
- package/dist/accessories/Badge/types.d.ts.map +1 -1
- package/dist/accessories/InlineMessage/KdsInlineMessage.vue.d.ts +1 -1
- package/dist/accessories/InlineMessage/types.d.ts +4 -4
- package/dist/accessories/InlineMessage/types.d.ts.map +1 -1
- package/dist/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts +1 -0
- package/dist/forms/_helper/List/ListContainer/KdsListContainer.vue.d.ts.map +1 -1
- package/dist/forms/_helper/List/ListContainer/types.d.ts +18 -1
- package/dist/forms/_helper/List/ListContainer/types.d.ts.map +1 -1
- package/dist/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts +3 -0
- package/dist/forms/_helper/List/ListItemDivider/ListItemDivider.vue.d.ts.map +1 -0
- package/dist/forms/_helper/List/ListItemDivider/index.d.ts +2 -0
- package/dist/forms/_helper/List/ListItemDivider/index.d.ts.map +1 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts +6 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/ListItemSectionTitle.vue.d.ts.map +1 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/index.d.ts +3 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/index.d.ts.map +1 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/types.d.ts +8 -0
- package/dist/forms/_helper/List/ListItemSectionTitle/types.d.ts.map +1 -0
- package/dist/forms/selects/Dropdown/DropdownContainer.vue.d.ts +2 -0
- package/dist/forms/selects/Dropdown/DropdownContainer.vue.d.ts.map +1 -1
- package/dist/forms/selects/Dropdown/KdsDropdown.vue.d.ts.map +1 -1
- package/dist/forms/selects/Dropdown/types.d.ts +4 -0
- package/dist/forms/selects/Dropdown/types.d.ts.map +1 -1
- package/dist/index.css +91 -57
- package/dist/index.js +321 -233
- package/dist/index.js.map +1 -1
- package/dist/layouts/EmptyState/KdsEmptyState.vue.d.ts.map +1 -1
- package/dist/layouts/EmptyState/types.d.ts +1 -0
- package/dist/layouts/EmptyState/types.d.ts.map +1 -1
- package/dist/overlays/Modal/KdsModal.vue.d.ts +4 -4
- package/dist/overlays/Modal/KdsModalLayout.vue.d.ts +2 -2
- package/dist/overlays/Modal/enums.d.ts +4 -4
- package/dist/overlays/Modal/types.d.ts +3 -3
- package/dist/overlays/Modal/types.d.ts.map +1 -1
- package/dist/overlays/Modal/useKdsDynamicModal.d.ts +6 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import './index.css';const kdsAvatarSize = {
|
|
|
9
9
|
};
|
|
10
10
|
const kdsAvatarSizes = Object.values(kdsAvatarSize);
|
|
11
11
|
|
|
12
|
-
const _hoisted_1$
|
|
13
|
-
const _hoisted_2$
|
|
14
|
-
const _hoisted_3$
|
|
12
|
+
const _hoisted_1$z = ["role", "title", "aria-hidden", "aria-label"];
|
|
13
|
+
const _hoisted_2$h = ["src"];
|
|
14
|
+
const _hoisted_3$b = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "kds-avatar-initials",
|
|
17
17
|
"aria-hidden": "true"
|
|
18
18
|
};
|
|
19
|
-
const _sfc_main$
|
|
19
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "KdsAvatar",
|
|
21
21
|
props: {
|
|
22
22
|
initials: {},
|
|
@@ -59,10 +59,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
59
59
|
alt: "",
|
|
60
60
|
"aria-hidden": "true",
|
|
61
61
|
onError: onImageError
|
|
62
|
-
}, null, 40, _hoisted_2$
|
|
62
|
+
}, null, 40, _hoisted_2$h)) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
63
63
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
64
64
|
]))
|
|
65
|
-
], 10, _hoisted_1$
|
|
65
|
+
], 10, _hoisted_1$z);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -75,7 +75,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
75
75
|
return target;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
78
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-d6a313f1"]]);
|
|
79
79
|
|
|
80
80
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
81
81
|
const v = glob$1[path$13];
|
|
@@ -111,7 +111,7 @@ const useIcon = ({
|
|
|
111
111
|
return iconComponent;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
const _sfc_main$
|
|
114
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
115
115
|
__name: "KdsIcon",
|
|
116
116
|
props: {
|
|
117
117
|
name: {},
|
|
@@ -137,7 +137,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
140
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-4da5bf3e"]]);
|
|
141
141
|
|
|
142
142
|
const ID_TO_ICON_MAP = {
|
|
143
143
|
// Flow Variables
|
|
@@ -463,8 +463,8 @@ const kdsDataTypeSize = {
|
|
|
463
463
|
};
|
|
464
464
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
465
465
|
|
|
466
|
-
const _hoisted_1$
|
|
467
|
-
const _sfc_main$
|
|
466
|
+
const _hoisted_1$y = ["title"];
|
|
467
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
468
468
|
__name: "KdsDataType",
|
|
469
469
|
props: {
|
|
470
470
|
iconName: { default: "unknown-datatype" },
|
|
@@ -505,12 +505,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
505
505
|
"aria-hidden": "true",
|
|
506
506
|
focusable: "false"
|
|
507
507
|
}, null, 8, ["class"]))
|
|
508
|
-
], 10, _hoisted_1$
|
|
508
|
+
], 10, _hoisted_1$y);
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
|
|
513
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
513
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-806087da"]]);
|
|
514
514
|
|
|
515
515
|
const kdsBadgeVariant = {
|
|
516
516
|
NEUTRAL: "neutral",
|
|
@@ -527,14 +527,14 @@ const kdsBadgeSize = {
|
|
|
527
527
|
};
|
|
528
528
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
529
529
|
|
|
530
|
-
const _hoisted_1$
|
|
531
|
-
const _sfc_main$
|
|
530
|
+
const _hoisted_1$x = { class: "label-wrapper" };
|
|
531
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
532
532
|
__name: "KdsBadge",
|
|
533
533
|
props: {
|
|
534
534
|
label: {},
|
|
535
535
|
variant: { default: kdsBadgeVariant.NEUTRAL },
|
|
536
536
|
size: { default: kdsBadgeSize.XSMALL },
|
|
537
|
-
|
|
537
|
+
leadingIcon: { default: void 0 }
|
|
538
538
|
},
|
|
539
539
|
setup(__props) {
|
|
540
540
|
const sizeToIconSize = {
|
|
@@ -545,18 +545,18 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
return openBlock(), createElementBlock("span", {
|
|
546
546
|
class: normalizeClass(["kds-badge", __props.size, __props.variant])
|
|
547
547
|
}, [
|
|
548
|
-
__props.
|
|
548
|
+
__props.leadingIcon ? (openBlock(), createBlock(unref(KdsIcon), {
|
|
549
549
|
key: 0,
|
|
550
|
-
name: __props.
|
|
550
|
+
name: __props.leadingIcon,
|
|
551
551
|
size: sizeToIconSize[__props.size]
|
|
552
552
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
553
|
-
createElementVNode("span", _hoisted_1$
|
|
553
|
+
createElementVNode("span", _hoisted_1$x, toDisplayString(__props.label), 1)
|
|
554
554
|
], 2);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
|
|
559
|
-
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
559
|
+
const KdsBadge = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-0dc42bfc"]]);
|
|
560
560
|
|
|
561
561
|
const kdsColorSwatchType = {
|
|
562
562
|
LEARNER: "learner",
|
|
@@ -575,8 +575,8 @@ const kdsColorSwatchSize = {
|
|
|
575
575
|
};
|
|
576
576
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
577
577
|
|
|
578
|
-
const _hoisted_1$
|
|
579
|
-
const _sfc_main$
|
|
578
|
+
const _hoisted_1$w = ["role", "title", "aria-hidden", "aria-label"];
|
|
579
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
580
580
|
__name: "KdsColorSwatch",
|
|
581
581
|
props: {
|
|
582
582
|
color: {},
|
|
@@ -611,12 +611,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
611
611
|
style: normalizeStyle({ backgroundColor: backgroundColor.value }),
|
|
612
612
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
613
613
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
614
|
-
}, null, 14, _hoisted_1$
|
|
614
|
+
}, null, 14, _hoisted_1$w);
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
});
|
|
618
618
|
|
|
619
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
619
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-bdb3dd24"]]);
|
|
620
620
|
|
|
621
621
|
const kdsDarkModeType = {
|
|
622
622
|
LIGHT: "light",
|
|
@@ -736,9 +736,9 @@ function useKdsIsTruncated(elementRef) {
|
|
|
736
736
|
return { isTruncated };
|
|
737
737
|
}
|
|
738
738
|
|
|
739
|
-
const _hoisted_1$
|
|
740
|
-
const _hoisted_2$
|
|
741
|
-
const _sfc_main$
|
|
739
|
+
const _hoisted_1$v = ["title", "aria-label"];
|
|
740
|
+
const _hoisted_2$g = ["title"];
|
|
741
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
742
742
|
__name: "KdsLiveStatus",
|
|
743
743
|
props: {
|
|
744
744
|
status: { default: "red" },
|
|
@@ -767,13 +767,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
767
767
|
ref: labelEl,
|
|
768
768
|
class: "label",
|
|
769
769
|
title: unref(isTruncated) ? props.label : void 0
|
|
770
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
771
|
-
], 10, _hoisted_1$
|
|
770
|
+
}, toDisplayString(props.label), 9, _hoisted_2$g)) : createCommentVNode("", true)
|
|
771
|
+
], 10, _hoisted_1$v);
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
774
|
});
|
|
775
775
|
|
|
776
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
776
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-4dec8e94"]]);
|
|
777
777
|
|
|
778
778
|
const kdsLiveStatusStatus = {
|
|
779
779
|
RED: "red",
|
|
@@ -789,8 +789,8 @@ const kdsLiveStatusSize = {
|
|
|
789
789
|
};
|
|
790
790
|
const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
791
791
|
|
|
792
|
-
const _hoisted_1$
|
|
793
|
-
const _sfc_main$
|
|
792
|
+
const _hoisted_1$u = ["data-style"];
|
|
793
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
794
794
|
__name: "KdsLoadingSpinner",
|
|
795
795
|
props: {
|
|
796
796
|
size: { default: "medium" },
|
|
@@ -815,12 +815,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
815
815
|
cy: "60",
|
|
816
816
|
r: "50"
|
|
817
817
|
}, null, -1)
|
|
818
|
-
])], 10, _hoisted_1$
|
|
818
|
+
])], 10, _hoisted_1$u);
|
|
819
819
|
};
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
822
|
|
|
823
|
-
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
823
|
+
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-74bb7c3d"]]);
|
|
824
824
|
|
|
825
825
|
const kdsLoadingSpinnerVariant = {
|
|
826
826
|
ON_PRIMARY: "onPrimary",
|
|
@@ -830,18 +830,18 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
830
830
|
kdsLoadingSpinnerVariant
|
|
831
831
|
);
|
|
832
832
|
|
|
833
|
-
const _hoisted_1$
|
|
834
|
-
const _hoisted_2$
|
|
835
|
-
const _hoisted_3$
|
|
833
|
+
const _hoisted_1$t = ["role"];
|
|
834
|
+
const _hoisted_2$f = { class: "header" };
|
|
835
|
+
const _hoisted_3$a = { class: "headline" };
|
|
836
836
|
const _hoisted_4$7 = {
|
|
837
837
|
key: 0,
|
|
838
838
|
class: "body"
|
|
839
839
|
};
|
|
840
|
-
const _sfc_main$
|
|
840
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
841
841
|
__name: "KdsInlineMessage",
|
|
842
842
|
props: {
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
headline: {},
|
|
844
|
+
description: { default: void 0 },
|
|
845
845
|
variant: { default: "info" }
|
|
846
846
|
},
|
|
847
847
|
setup(__props) {
|
|
@@ -868,21 +868,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
868
868
|
class: normalizeClass(classes.value),
|
|
869
869
|
role: role.value
|
|
870
870
|
}, [
|
|
871
|
-
createElementVNode("div", _hoisted_2$
|
|
871
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
872
872
|
createVNode(KdsIcon, {
|
|
873
873
|
class: "icon",
|
|
874
874
|
name: iconName.value,
|
|
875
875
|
size: "small"
|
|
876
876
|
}, null, 8, ["name"]),
|
|
877
|
-
createElementVNode("div", _hoisted_3$
|
|
877
|
+
createElementVNode("div", _hoisted_3$a, toDisplayString(props.headline), 1)
|
|
878
878
|
]),
|
|
879
|
-
props.
|
|
880
|
-
], 10, _hoisted_1$
|
|
879
|
+
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$7, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
880
|
+
], 10, _hoisted_1$t);
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
});
|
|
884
884
|
|
|
885
|
-
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
885
|
+
const KdsInlineMessage = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-3d79be7c"]]);
|
|
886
886
|
|
|
887
887
|
const kdsInlineMessageVariant = {
|
|
888
888
|
ERROR: "error",
|
|
@@ -892,11 +892,11 @@ const kdsInlineMessageVariant = {
|
|
|
892
892
|
};
|
|
893
893
|
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
894
894
|
|
|
895
|
-
const _hoisted_1$
|
|
895
|
+
const _hoisted_1$s = {
|
|
896
896
|
key: 0,
|
|
897
897
|
class: "label"
|
|
898
898
|
};
|
|
899
|
-
const _sfc_main$
|
|
899
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
900
900
|
__name: "BaseButton",
|
|
901
901
|
props: {
|
|
902
902
|
size: { default: "medium" },
|
|
@@ -955,7 +955,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
955
955
|
size: iconSize.value
|
|
956
956
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
957
957
|
], true),
|
|
958
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
958
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$s, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
959
959
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
960
960
|
key: 1,
|
|
961
961
|
name: props.trailingIcon,
|
|
@@ -968,9 +968,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
968
968
|
}
|
|
969
969
|
});
|
|
970
970
|
|
|
971
|
-
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
971
|
+
const BaseButton = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-b0f9559f"]]);
|
|
972
972
|
|
|
973
|
-
const _sfc_main$
|
|
973
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
974
974
|
__name: "KdsButton",
|
|
975
975
|
props: {
|
|
976
976
|
size: {},
|
|
@@ -1023,7 +1023,7 @@ const resolveNuxtLinkComponent = () => {
|
|
|
1023
1023
|
return fallbackComponent;
|
|
1024
1024
|
};
|
|
1025
1025
|
|
|
1026
|
-
const _sfc_main$
|
|
1026
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1027
1027
|
__name: "KdsLinkButton",
|
|
1028
1028
|
props: {
|
|
1029
1029
|
size: {},
|
|
@@ -1059,7 +1059,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
1061
|
|
|
1062
|
-
const _sfc_main$
|
|
1062
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1063
1063
|
__name: "KdsToggleButton",
|
|
1064
1064
|
props: /* @__PURE__ */ mergeModels({
|
|
1065
1065
|
size: {},
|
|
@@ -1094,9 +1094,9 @@ const kdsToggleButtonVariant = {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1096
1096
|
|
|
1097
|
-
const _hoisted_1$
|
|
1098
|
-
const _hoisted_2$
|
|
1099
|
-
const _sfc_main$
|
|
1097
|
+
const _hoisted_1$r = ["data-visible"];
|
|
1098
|
+
const _hoisted_2$e = ["data-visible"];
|
|
1099
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1100
1100
|
__name: "KdsProgressButton",
|
|
1101
1101
|
props: /* @__PURE__ */ mergeModels({
|
|
1102
1102
|
size: { default: "medium" },
|
|
@@ -1159,7 +1159,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1159
1159
|
name: props.leadingIcon,
|
|
1160
1160
|
size: iconSize.value
|
|
1161
1161
|
}, null, 8, ["name", "size"])
|
|
1162
|
-
], 8, _hoisted_1$
|
|
1162
|
+
], 8, _hoisted_1$r),
|
|
1163
1163
|
createElementVNode("span", {
|
|
1164
1164
|
class: "spinner",
|
|
1165
1165
|
"data-visible": state.value === "progress"
|
|
@@ -1168,7 +1168,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1168
1168
|
size: iconSize.value,
|
|
1169
1169
|
variant: props.variant === "filled" ? "onPrimary" : "onSurface"
|
|
1170
1170
|
}, null, 8, ["size", "variant"])
|
|
1171
|
-
], 8, _hoisted_2$
|
|
1171
|
+
], 8, _hoisted_2$e)
|
|
1172
1172
|
], 2)
|
|
1173
1173
|
]),
|
|
1174
1174
|
_: 1
|
|
@@ -1177,7 +1177,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
1177
1177
|
}
|
|
1178
1178
|
});
|
|
1179
1179
|
|
|
1180
|
-
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1180
|
+
const KdsProgressButton = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-ec08a9ba"]]);
|
|
1181
1181
|
|
|
1182
1182
|
const kdsProgressButtonState = {
|
|
1183
1183
|
DEFAULT: "default",
|
|
@@ -1201,9 +1201,9 @@ const kdsButtonVariant = {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
1203
1203
|
|
|
1204
|
-
const _hoisted_1$
|
|
1205
|
-
const _hoisted_2$
|
|
1206
|
-
const _sfc_main$
|
|
1204
|
+
const _hoisted_1$q = { class: "kds-label-wrapper" };
|
|
1205
|
+
const _hoisted_2$d = ["id", "for", "title"];
|
|
1206
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1207
1207
|
__name: "KdsLabel",
|
|
1208
1208
|
props: {
|
|
1209
1209
|
label: {},
|
|
@@ -1220,7 +1220,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1220
1220
|
const labelEl = useTemplateRef("labelEl");
|
|
1221
1221
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
1222
1222
|
return (_ctx, _cache) => {
|
|
1223
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1223
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
1224
1224
|
createElementVNode("label", {
|
|
1225
1225
|
id: props.id,
|
|
1226
1226
|
ref_key: "labelEl",
|
|
@@ -1228,7 +1228,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1228
1228
|
for: props.for,
|
|
1229
1229
|
class: "label",
|
|
1230
1230
|
title: unref(isTruncated) ? props.label : void 0
|
|
1231
|
-
}, toDisplayString(props.label), 9, _hoisted_2$
|
|
1231
|
+
}, toDisplayString(props.label), 9, _hoisted_2$d),
|
|
1232
1232
|
props.description ? (openBlock(), createBlock(unref(KdsInfoToggleButton), {
|
|
1233
1233
|
key: 0,
|
|
1234
1234
|
content: props.description,
|
|
@@ -1239,11 +1239,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|
|
1241
1241
|
|
|
1242
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1242
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-1a5dc1ba"]]);
|
|
1243
1243
|
|
|
1244
|
-
const _hoisted_1$
|
|
1245
|
-
const _hoisted_2$
|
|
1246
|
-
const _sfc_main$
|
|
1244
|
+
const _hoisted_1$p = ["id"];
|
|
1245
|
+
const _hoisted_2$c = { class: "subtext-text" };
|
|
1246
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1247
1247
|
__name: "KdsSubText",
|
|
1248
1248
|
props: {
|
|
1249
1249
|
id: {},
|
|
@@ -1274,17 +1274,17 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1274
1274
|
variant: "onSurface",
|
|
1275
1275
|
"aria-hidden": "true"
|
|
1276
1276
|
})) : createCommentVNode("", true),
|
|
1277
|
-
createElementVNode("span", _hoisted_2$
|
|
1278
|
-
], 10, _hoisted_1$
|
|
1277
|
+
createElementVNode("span", _hoisted_2$c, toDisplayString(props.subText), 1)
|
|
1278
|
+
], 10, _hoisted_1$p)) : createCommentVNode("", true);
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
1281
|
});
|
|
1282
1282
|
|
|
1283
|
-
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1283
|
+
const KdsSubText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-df9a85a4"]]);
|
|
1284
1284
|
|
|
1285
|
-
const _hoisted_1$
|
|
1286
|
-
const _hoisted_2$
|
|
1287
|
-
const _hoisted_3$
|
|
1285
|
+
const _hoisted_1$o = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
1286
|
+
const _hoisted_2$b = { class: "control" };
|
|
1287
|
+
const _hoisted_3$9 = {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
class: "content"
|
|
1290
1290
|
};
|
|
@@ -1294,7 +1294,7 @@ const _hoisted_6$3 = {
|
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
class: "subtext-wrapper"
|
|
1296
1296
|
};
|
|
1297
|
-
const _sfc_main$
|
|
1297
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
1298
1298
|
__name: "BaseCheckbox",
|
|
1299
1299
|
props: /* @__PURE__ */ mergeModels({
|
|
1300
1300
|
disabled: { type: Boolean, default: false },
|
|
@@ -1367,7 +1367,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1367
1367
|
role: "checkbox",
|
|
1368
1368
|
onClick: handleClick
|
|
1369
1369
|
}, [
|
|
1370
|
-
createElementVNode("div", _hoisted_2$
|
|
1370
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
1371
1371
|
icon.value ? (openBlock(), createBlock(KdsIcon, {
|
|
1372
1372
|
key: 0,
|
|
1373
1373
|
name: icon.value,
|
|
@@ -1375,7 +1375,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1375
1375
|
size: "xsmall"
|
|
1376
1376
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
1377
1377
|
]),
|
|
1378
|
-
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1378
|
+
props.label || props.helperText ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
1379
1379
|
createElementVNode("div", _hoisted_4$6, toDisplayString(props.label), 1),
|
|
1380
1380
|
props.helperText ? (openBlock(), createElementBlock("div", {
|
|
1381
1381
|
key: 0,
|
|
@@ -1383,7 +1383,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1383
1383
|
class: "helper-text"
|
|
1384
1384
|
}, toDisplayString(props.helperText), 9, _hoisted_5$3)) : createCommentVNode("", true)
|
|
1385
1385
|
])) : createCommentVNode("", true)
|
|
1386
|
-
], 10, _hoisted_1$
|
|
1386
|
+
], 10, _hoisted_1$o),
|
|
1387
1387
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
1388
1388
|
createVNode(KdsSubText, {
|
|
1389
1389
|
id: unref(descriptionId),
|
|
@@ -1397,9 +1397,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
1399
|
|
|
1400
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1400
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-32f17780"]]);
|
|
1401
1401
|
|
|
1402
|
-
const _sfc_main$
|
|
1402
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
1403
1403
|
__name: "KdsCheckbox",
|
|
1404
1404
|
props: /* @__PURE__ */ mergeModels({
|
|
1405
1405
|
disabled: { type: Boolean, default: false },
|
|
@@ -1431,8 +1431,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1431
1431
|
}
|
|
1432
1432
|
});
|
|
1433
1433
|
|
|
1434
|
-
const _hoisted_1$
|
|
1435
|
-
const _sfc_main$
|
|
1434
|
+
const _hoisted_1$n = ["id", "aria-labelledby", "aria-describedby"];
|
|
1435
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
1436
1436
|
__name: "KdsCheckboxGroup",
|
|
1437
1437
|
props: /* @__PURE__ */ mergeModels({
|
|
1438
1438
|
id: {},
|
|
@@ -1516,12 +1516,12 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
1516
1516
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
1517
1517
|
error: hasError.value
|
|
1518
1518
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
1519
|
-
], 8, _hoisted_1$
|
|
1519
|
+
], 8, _hoisted_1$n);
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
1522
|
});
|
|
1523
1523
|
|
|
1524
|
-
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1524
|
+
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c38eeda5"]]);
|
|
1525
1525
|
|
|
1526
1526
|
const kdsCheckboxGroupAlignment = {
|
|
1527
1527
|
VERTICAL: "vertical",
|
|
@@ -1537,9 +1537,9 @@ const kdsCheckboxValue = {
|
|
|
1537
1537
|
};
|
|
1538
1538
|
const kdsCheckboxValues = Object.values(kdsCheckboxValue);
|
|
1539
1539
|
|
|
1540
|
-
const _hoisted_1$
|
|
1541
|
-
const _hoisted_2$
|
|
1542
|
-
const _hoisted_3$
|
|
1540
|
+
const _hoisted_1$m = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
1541
|
+
const _hoisted_2$a = { class: "control" };
|
|
1542
|
+
const _hoisted_3$8 = {
|
|
1543
1543
|
key: 0,
|
|
1544
1544
|
class: "dot",
|
|
1545
1545
|
viewBox: "0 0 2 2",
|
|
@@ -1549,7 +1549,7 @@ const _hoisted_3$7 = {
|
|
|
1549
1549
|
const _hoisted_4$5 = { class: "content" };
|
|
1550
1550
|
const _hoisted_5$2 = { class: "label" };
|
|
1551
1551
|
const _hoisted_6$2 = ["id"];
|
|
1552
|
-
const _sfc_main$
|
|
1552
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
1553
1553
|
__name: "KdsRadioButton",
|
|
1554
1554
|
props: /* @__PURE__ */ mergeModels({
|
|
1555
1555
|
text: {},
|
|
@@ -1589,8 +1589,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1589
1589
|
type: "button",
|
|
1590
1590
|
onClick: handleClick
|
|
1591
1591
|
}, [
|
|
1592
|
-
createElementVNode("div", _hoisted_2$
|
|
1593
|
-
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$
|
|
1592
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
1593
|
+
modelValue.value ? (openBlock(), createElementBlock("svg", _hoisted_3$8, [..._cache[0] || (_cache[0] = [
|
|
1594
1594
|
createElementVNode("circle", {
|
|
1595
1595
|
cx: "1",
|
|
1596
1596
|
cy: "1",
|
|
@@ -1606,12 +1606,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
1606
1606
|
class: "helper-text"
|
|
1607
1607
|
}, toDisplayString(props.helperText), 9, _hoisted_6$2)) : createCommentVNode("", true)
|
|
1608
1608
|
])
|
|
1609
|
-
], 10, _hoisted_1$
|
|
1609
|
+
], 10, _hoisted_1$m);
|
|
1610
1610
|
};
|
|
1611
1611
|
}
|
|
1612
1612
|
});
|
|
1613
1613
|
|
|
1614
|
-
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1614
|
+
const KdsRadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-27c361e4"]]);
|
|
1615
1615
|
|
|
1616
1616
|
const useRadioSelection = ({
|
|
1617
1617
|
selectedId,
|
|
@@ -1733,8 +1733,8 @@ const useRadioSelection = ({
|
|
|
1733
1733
|
};
|
|
1734
1734
|
};
|
|
1735
1735
|
|
|
1736
|
-
const _hoisted_1$
|
|
1737
|
-
const _sfc_main$
|
|
1736
|
+
const _hoisted_1$l = ["id", "aria-labelledby", "aria-describedby"];
|
|
1737
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
1738
1738
|
__name: "KdsRadioButtonGroup",
|
|
1739
1739
|
props: /* @__PURE__ */ mergeModels({
|
|
1740
1740
|
id: {},
|
|
@@ -1813,15 +1813,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
1813
1813
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
1814
1814
|
error: unref(hasError)
|
|
1815
1815
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
1816
|
-
], 8, _hoisted_1$
|
|
1816
|
+
], 8, _hoisted_1$l);
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
1819
|
});
|
|
1820
1820
|
|
|
1821
|
-
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1821
|
+
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-9cc4dcdd"]]);
|
|
1822
1822
|
|
|
1823
|
-
const _hoisted_1$
|
|
1824
|
-
const _sfc_main$
|
|
1823
|
+
const _hoisted_1$k = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
1824
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
1825
1825
|
__name: "ValueSwitchItem",
|
|
1826
1826
|
props: {
|
|
1827
1827
|
selected: { type: Boolean },
|
|
@@ -1871,12 +1871,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1871
1871
|
name: props.trailingIcon,
|
|
1872
1872
|
size: props.size
|
|
1873
1873
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1874
|
-
], 10, _hoisted_1$
|
|
1874
|
+
], 10, _hoisted_1$k);
|
|
1875
1875
|
};
|
|
1876
1876
|
}
|
|
1877
1877
|
});
|
|
1878
1878
|
|
|
1879
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1879
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-93f3f577"]]);
|
|
1880
1880
|
|
|
1881
1881
|
const useValueSwitchIconHiding = ({
|
|
1882
1882
|
width,
|
|
@@ -1927,8 +1927,8 @@ const useValueSwitchIconHiding = ({
|
|
|
1927
1927
|
};
|
|
1928
1928
|
};
|
|
1929
1929
|
|
|
1930
|
-
const _hoisted_1$
|
|
1931
|
-
const _sfc_main$
|
|
1930
|
+
const _hoisted_1$j = ["id", "aria-invalid", "aria-labelledby", "aria-describedby"];
|
|
1931
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
1932
1932
|
__name: "KdsValueSwitch",
|
|
1933
1933
|
props: /* @__PURE__ */ mergeModels({
|
|
1934
1934
|
id: {},
|
|
@@ -2021,12 +2021,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
2021
2021
|
"preserve-sub-text-space": props.preserveSubTextSpace,
|
|
2022
2022
|
error: props.error
|
|
2023
2023
|
}, null, 8, ["id", "sub-text", "preserve-sub-text-space", "error"])
|
|
2024
|
-
], 10, _hoisted_1$
|
|
2024
|
+
], 10, _hoisted_1$j);
|
|
2025
2025
|
};
|
|
2026
2026
|
}
|
|
2027
2027
|
});
|
|
2028
2028
|
|
|
2029
|
-
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2029
|
+
const KdsValueSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-666d4c10"]]);
|
|
2030
2030
|
|
|
2031
2031
|
const kdsRadioButtonGroupAlignment = {
|
|
2032
2032
|
VERTICAL: "vertical",
|
|
@@ -2046,12 +2046,12 @@ const kdsValueSwitchVariant = {
|
|
|
2046
2046
|
};
|
|
2047
2047
|
const kdsValueSwitchVariants = Object.values(kdsValueSwitchVariant);
|
|
2048
2048
|
|
|
2049
|
-
const _hoisted_1$
|
|
2050
|
-
const _hoisted_2$
|
|
2049
|
+
const _hoisted_1$i = ["id", "role", "aria-label"];
|
|
2050
|
+
const _hoisted_2$9 = {
|
|
2051
2051
|
key: 0,
|
|
2052
2052
|
class: "kds-popover-default-content"
|
|
2053
2053
|
};
|
|
2054
|
-
const _sfc_main$
|
|
2054
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
2055
2055
|
__name: "KdsPopover",
|
|
2056
2056
|
props: /* @__PURE__ */ mergeModels({
|
|
2057
2057
|
placement: { default: "bottom-left" },
|
|
@@ -2092,16 +2092,16 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
2092
2092
|
onToggle: _cache[0] || (_cache[0] = ($event) => open.value = $event.newState === "open")
|
|
2093
2093
|
}, [
|
|
2094
2094
|
open.value ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
2095
|
-
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2095
|
+
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$9, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
2096
2096
|
], true) : createCommentVNode("", true)
|
|
2097
|
-
], 46, _hoisted_1$
|
|
2097
|
+
], 46, _hoisted_1$i);
|
|
2098
2098
|
};
|
|
2099
2099
|
}
|
|
2100
2100
|
});
|
|
2101
2101
|
|
|
2102
|
-
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2102
|
+
const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-9125d023"]]);
|
|
2103
2103
|
|
|
2104
|
-
const _sfc_main$
|
|
2104
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
2105
2105
|
__name: "BaseFormFieldWrapper",
|
|
2106
2106
|
props: {
|
|
2107
2107
|
id: {},
|
|
@@ -2153,17 +2153,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
2153
2153
|
}
|
|
2154
2154
|
});
|
|
2155
2155
|
|
|
2156
|
-
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2156
|
+
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5d99c134"]]);
|
|
2157
2157
|
|
|
2158
|
-
const _hoisted_1$
|
|
2158
|
+
const _hoisted_1$h = {
|
|
2159
2159
|
key: 0,
|
|
2160
2160
|
class: "icon-wrapper leading"
|
|
2161
2161
|
};
|
|
2162
|
-
const _hoisted_2$
|
|
2162
|
+
const _hoisted_2$8 = {
|
|
2163
2163
|
key: 1,
|
|
2164
2164
|
class: "leading-slot"
|
|
2165
2165
|
};
|
|
2166
|
-
const _hoisted_3$
|
|
2166
|
+
const _hoisted_3$7 = ["id", "value", "type", "inputmode", "placeholder", "disabled", "autocomplete", "min", "max", "step", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "role", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext", "aria-activedescendant"];
|
|
2167
2167
|
const _hoisted_4$4 = ["aria-disabled"];
|
|
2168
2168
|
const _hoisted_5$1 = {
|
|
2169
2169
|
key: 4,
|
|
@@ -2173,7 +2173,7 @@ const _hoisted_6$1 = {
|
|
|
2173
2173
|
key: 5,
|
|
2174
2174
|
class: "icon-wrapper trailing"
|
|
2175
2175
|
};
|
|
2176
|
-
const _sfc_main$
|
|
2176
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
2177
2177
|
__name: "BaseInput",
|
|
2178
2178
|
props: /* @__PURE__ */ mergeModels({
|
|
2179
2179
|
id: { default: void 0 },
|
|
@@ -2247,13 +2247,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2247
2247
|
}),
|
|
2248
2248
|
onClick: handleContainerClick
|
|
2249
2249
|
}, [
|
|
2250
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
2250
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
2251
2251
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
2252
2252
|
key: 0,
|
|
2253
2253
|
name: props.leadingIcon
|
|
2254
2254
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
2255
2255
|
])) : createCommentVNode("", true),
|
|
2256
|
-
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
2256
|
+
_ctx.$slots.leading ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
2257
2257
|
renderSlot(_ctx.$slots, "leading", {}, void 0, true)
|
|
2258
2258
|
])) : createCommentVNode("", true),
|
|
2259
2259
|
createElementVNode("input", {
|
|
@@ -2284,7 +2284,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2284
2284
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur", $event)),
|
|
2285
2285
|
onKeydown: _cache[2] || (_cache[2] = ($event) => emit("keydown", $event)),
|
|
2286
2286
|
onClick: _cache[3] || (_cache[3] = ($event) => emit("click", $event))
|
|
2287
|
-
}, null, 42, _hoisted_3$
|
|
2287
|
+
}, null, 42, _hoisted_3$7),
|
|
2288
2288
|
props.unit ? (openBlock(), createElementBlock("span", {
|
|
2289
2289
|
key: 2,
|
|
2290
2290
|
class: normalizeClass({
|
|
@@ -2294,7 +2294,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2294
2294
|
}),
|
|
2295
2295
|
"aria-disabled": props.disabled || void 0
|
|
2296
2296
|
}, toDisplayString(props.unit), 11, _hoisted_4$4)) : createCommentVNode("", true),
|
|
2297
|
-
props.clearable && hasValue.value && !props.disabled ? (openBlock(), createBlock(_sfc_main$
|
|
2297
|
+
props.clearable && hasValue.value && !props.disabled ? (openBlock(), createBlock(_sfc_main$D, {
|
|
2298
2298
|
key: 3,
|
|
2299
2299
|
class: "clear-button",
|
|
2300
2300
|
type: "button",
|
|
@@ -2318,9 +2318,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
2318
2318
|
}
|
|
2319
2319
|
});
|
|
2320
2320
|
|
|
2321
|
-
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2321
|
+
const BaseInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-fad4fd1f"]]);
|
|
2322
2322
|
|
|
2323
|
-
const _sfc_main$
|
|
2323
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
2324
2324
|
__name: "KdsTextInput",
|
|
2325
2325
|
props: /* @__PURE__ */ mergeModels({
|
|
2326
2326
|
description: {},
|
|
@@ -2526,9 +2526,9 @@ const usePointerHandler = (updateFromEvent) => {
|
|
|
2526
2526
|
};
|
|
2527
2527
|
};
|
|
2528
2528
|
|
|
2529
|
-
const _hoisted_1$
|
|
2530
|
-
const _hoisted_2$
|
|
2531
|
-
const _hoisted_3$
|
|
2529
|
+
const _hoisted_1$g = { class: "kds-color-picker" };
|
|
2530
|
+
const _hoisted_2$7 = ["aria-valuetext"];
|
|
2531
|
+
const _hoisted_3$6 = ["aria-valuenow", "aria-valuetext"];
|
|
2532
2532
|
const DEFAULT_HUE_DEG = 270;
|
|
2533
2533
|
const DEFAULT_SATURATION = 0.8;
|
|
2534
2534
|
const DEFAULT_VALUE = 0.9;
|
|
@@ -2540,7 +2540,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
|
|
|
2540
2540
|
const HUE_KEYBOARD_STEP_DEG = 1;
|
|
2541
2541
|
const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
|
|
2542
2542
|
const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
|
|
2543
|
-
const _sfc_main$
|
|
2543
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
2544
2544
|
__name: "ColorPicker",
|
|
2545
2545
|
props: {
|
|
2546
2546
|
"modelValue": { default: "" },
|
|
@@ -2691,7 +2691,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
return (_ctx, _cache) => {
|
|
2694
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2694
|
+
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
2695
2695
|
createElementVNode("div", {
|
|
2696
2696
|
ref_key: "colorspaceEl",
|
|
2697
2697
|
ref: colorspaceEl,
|
|
@@ -2722,7 +2722,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2722
2722
|
class: "handle",
|
|
2723
2723
|
style: normalizeStyle(colorspaceHandleStyle.value)
|
|
2724
2724
|
}, null, 4)
|
|
2725
|
-
], 44, _hoisted_2$
|
|
2725
|
+
], 44, _hoisted_2$7),
|
|
2726
2726
|
createElementVNode("div", {
|
|
2727
2727
|
ref_key: "hueEl",
|
|
2728
2728
|
ref: hueEl,
|
|
@@ -2754,8 +2754,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2754
2754
|
class: "handle",
|
|
2755
2755
|
style: normalizeStyle(hueHandleStyle.value)
|
|
2756
2756
|
}, null, 4)
|
|
2757
|
-
], 40, _hoisted_3$
|
|
2758
|
-
createVNode(_sfc_main$
|
|
2757
|
+
], 40, _hoisted_3$6),
|
|
2758
|
+
createVNode(_sfc_main$n, {
|
|
2759
2759
|
"model-value": modelValue.value,
|
|
2760
2760
|
"aria-label": "Color hex value",
|
|
2761
2761
|
placeholder: "#FFFFFF",
|
|
@@ -2766,7 +2766,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
2768
|
|
|
2769
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2769
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-180fafdd"]]);
|
|
2770
2770
|
|
|
2771
2771
|
const HEX_LENGTH_1 = 1;
|
|
2772
2772
|
const HEX_LENGTH_2 = 2;
|
|
@@ -2826,7 +2826,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
|
|
|
2826
2826
|
return { handleFocusOut };
|
|
2827
2827
|
};
|
|
2828
2828
|
|
|
2829
|
-
const _sfc_main$
|
|
2829
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
2830
2830
|
__name: "KdsColorInput",
|
|
2831
2831
|
props: /* @__PURE__ */ mergeModels({
|
|
2832
2832
|
description: {},
|
|
@@ -2878,7 +2878,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
2878
2878
|
}, null, 8, ["color"])
|
|
2879
2879
|
]),
|
|
2880
2880
|
trailing: withCtx(() => [
|
|
2881
|
-
createVNode(unref(_sfc_main$
|
|
2881
|
+
createVNode(unref(_sfc_main$B), {
|
|
2882
2882
|
modelValue: open.value,
|
|
2883
2883
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
2884
2884
|
size: "xsmall",
|
|
@@ -3039,7 +3039,7 @@ const createKdsNumberParser = (params) => {
|
|
|
3039
3039
|
};
|
|
3040
3040
|
};
|
|
3041
3041
|
|
|
3042
|
-
const _sfc_main$
|
|
3042
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
3043
3043
|
__name: "KdsNumberInput",
|
|
3044
3044
|
props: /* @__PURE__ */ mergeModels({
|
|
3045
3045
|
description: {},
|
|
@@ -3192,7 +3192,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
3192
3192
|
onBlur: handleBlur
|
|
3193
3193
|
}), {
|
|
3194
3194
|
trailing: withCtx(() => [
|
|
3195
|
-
createVNode(_sfc_main$
|
|
3195
|
+
createVNode(_sfc_main$D, {
|
|
3196
3196
|
type: "button",
|
|
3197
3197
|
size: "xsmall",
|
|
3198
3198
|
variant: "outlined",
|
|
@@ -3201,7 +3201,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
3201
3201
|
disabled: !canDecrease.value,
|
|
3202
3202
|
onClick: _cache[0] || (_cache[0] = ($event) => adjustByStep(-1))
|
|
3203
3203
|
}, null, 8, ["aria-label", "disabled"]),
|
|
3204
|
-
createVNode(_sfc_main$
|
|
3204
|
+
createVNode(_sfc_main$D, {
|
|
3205
3205
|
type: "button",
|
|
3206
3206
|
size: "xsmall",
|
|
3207
3207
|
variant: "outlined",
|
|
@@ -3307,7 +3307,7 @@ const parseRegexToPatternInputValue = (regex, options) => {
|
|
|
3307
3307
|
return wildcard ?? body;
|
|
3308
3308
|
};
|
|
3309
3309
|
|
|
3310
|
-
const _sfc_main$
|
|
3310
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
3311
3311
|
__name: "KdsPatternInput",
|
|
3312
3312
|
props: /* @__PURE__ */ mergeModels({
|
|
3313
3313
|
description: {},
|
|
@@ -3385,7 +3385,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3385
3385
|
clearable: ""
|
|
3386
3386
|
}), {
|
|
3387
3387
|
trailing: withCtx(() => [
|
|
3388
|
-
createVNode(_sfc_main$
|
|
3388
|
+
createVNode(_sfc_main$B, {
|
|
3389
3389
|
modelValue: caseSensitive.value,
|
|
3390
3390
|
"onUpdate:modelValue": [
|
|
3391
3391
|
_cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
|
|
@@ -3398,7 +3398,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3398
3398
|
"aria-label": caseSensitiveAriaLabel.value,
|
|
3399
3399
|
disabled: props.disabled
|
|
3400
3400
|
}, null, 8, ["modelValue", "title", "aria-label", "disabled"]),
|
|
3401
|
-
createVNode(_sfc_main$
|
|
3401
|
+
createVNode(_sfc_main$B, {
|
|
3402
3402
|
modelValue: excludeMatches.value,
|
|
3403
3403
|
"onUpdate:modelValue": [
|
|
3404
3404
|
_cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
|
|
@@ -3411,7 +3411,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3411
3411
|
"aria-label": excludeMatchesAriaLabel.value,
|
|
3412
3412
|
disabled: props.disabled
|
|
3413
3413
|
}, null, 8, ["modelValue", "title", "aria-label", "disabled"]),
|
|
3414
|
-
createVNode(_sfc_main$
|
|
3414
|
+
createVNode(_sfc_main$B, {
|
|
3415
3415
|
modelValue: useRegex.value,
|
|
3416
3416
|
"onUpdate:modelValue": [
|
|
3417
3417
|
_cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
|
|
@@ -3434,7 +3434,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
3434
3434
|
}
|
|
3435
3435
|
});
|
|
3436
3436
|
|
|
3437
|
-
const _sfc_main$
|
|
3437
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
3438
3438
|
__name: "KdsSearchInput",
|
|
3439
3439
|
props: /* @__PURE__ */ mergeModels({
|
|
3440
3440
|
description: {},
|
|
@@ -3488,8 +3488,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
3488
3488
|
}
|
|
3489
3489
|
});
|
|
3490
3490
|
|
|
3491
|
-
const _hoisted_1$
|
|
3492
|
-
const _sfc_main$
|
|
3491
|
+
const _hoisted_1$f = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
3492
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
3493
3493
|
__name: "KdsTextarea",
|
|
3494
3494
|
props: /* @__PURE__ */ mergeModels({
|
|
3495
3495
|
description: {},
|
|
@@ -3546,7 +3546,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3546
3546
|
placeholder: props.placeholder,
|
|
3547
3547
|
disabled: props.disabled,
|
|
3548
3548
|
autocomplete: props.autocomplete
|
|
3549
|
-
}), null, 16, _hoisted_1$
|
|
3549
|
+
}), null, 16, _hoisted_1$f), [
|
|
3550
3550
|
[vModelText, modelValue.value]
|
|
3551
3551
|
])
|
|
3552
3552
|
]),
|
|
@@ -3556,9 +3556,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
3556
3556
|
}
|
|
3557
3557
|
});
|
|
3558
3558
|
|
|
3559
|
-
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3559
|
+
const KdsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-a2df5fed"]]);
|
|
3560
3560
|
|
|
3561
|
-
const _sfc_main$
|
|
3561
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
3562
3562
|
__name: "ListItemAccessory",
|
|
3563
3563
|
props: {
|
|
3564
3564
|
accessory: {},
|
|
@@ -3599,18 +3599,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
3599
3599
|
}
|
|
3600
3600
|
});
|
|
3601
3601
|
|
|
3602
|
-
const _hoisted_1$
|
|
3603
|
-
const _hoisted_2$
|
|
3602
|
+
const _hoisted_1$e = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
3603
|
+
const _hoisted_2$6 = {
|
|
3604
3604
|
key: 0,
|
|
3605
3605
|
class: "leading",
|
|
3606
3606
|
"aria-hidden": "true"
|
|
3607
3607
|
};
|
|
3608
|
-
const _hoisted_3$
|
|
3608
|
+
const _hoisted_3$5 = ["id"];
|
|
3609
3609
|
const _hoisted_4$3 = {
|
|
3610
3610
|
class: "trailing",
|
|
3611
3611
|
"aria-hidden": "true"
|
|
3612
3612
|
};
|
|
3613
|
-
const _sfc_main$
|
|
3613
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
3614
3614
|
__name: "BaseDropdown",
|
|
3615
3615
|
props: /* @__PURE__ */ mergeModels({
|
|
3616
3616
|
text: { default: void 0 },
|
|
@@ -3682,8 +3682,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3682
3682
|
onClick: _cache[0] || (_cache[0] = ($event) => !props.disabled && emit("click")),
|
|
3683
3683
|
onKeydown
|
|
3684
3684
|
}, [
|
|
3685
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3686
|
-
createVNode(_sfc_main$
|
|
3685
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$6, [
|
|
3686
|
+
createVNode(_sfc_main$g, {
|
|
3687
3687
|
accessory: props.accessory,
|
|
3688
3688
|
size: "medium"
|
|
3689
3689
|
}, null, 8, ["accessory"])
|
|
@@ -3694,36 +3694,37 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
3694
3694
|
placeholder: !props.text,
|
|
3695
3695
|
missing: props.missing
|
|
3696
3696
|
}])
|
|
3697
|
-
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$
|
|
3697
|
+
}, toDisplayString(props.text ?? props.placeholder), 11, _hoisted_3$5),
|
|
3698
3698
|
createElementVNode("span", _hoisted_4$3, [
|
|
3699
3699
|
createVNode(KdsIcon, {
|
|
3700
3700
|
name: open.value ? "chevron-up" : "chevron-down",
|
|
3701
3701
|
size: "small"
|
|
3702
3702
|
}, null, 8, ["name"])
|
|
3703
3703
|
])
|
|
3704
|
-
], 42, _hoisted_1$
|
|
3704
|
+
], 42, _hoisted_1$e);
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
3707
|
});
|
|
3708
3708
|
|
|
3709
|
-
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3709
|
+
const BaseDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f1917c48"]]);
|
|
3710
3710
|
|
|
3711
|
-
const _hoisted_1$
|
|
3712
|
-
const _hoisted_2$
|
|
3713
|
-
const _hoisted_3$
|
|
3714
|
-
key:
|
|
3711
|
+
const _hoisted_1$d = { class: "kds-empty-state" };
|
|
3712
|
+
const _hoisted_2$5 = { class: "kds-empty-state-headline" };
|
|
3713
|
+
const _hoisted_3$4 = {
|
|
3714
|
+
key: 1,
|
|
3715
3715
|
class: "kds-empty-state-description"
|
|
3716
3716
|
};
|
|
3717
3717
|
const _hoisted_4$2 = {
|
|
3718
|
-
key:
|
|
3718
|
+
key: 2,
|
|
3719
3719
|
class: "kds-empty-state-action"
|
|
3720
3720
|
};
|
|
3721
|
-
const _sfc_main$
|
|
3721
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3722
3722
|
__name: "KdsEmptyState",
|
|
3723
3723
|
props: {
|
|
3724
3724
|
headline: {},
|
|
3725
3725
|
description: {},
|
|
3726
|
-
button: {}
|
|
3726
|
+
button: {},
|
|
3727
|
+
loadingSpinner: { type: Boolean }
|
|
3727
3728
|
},
|
|
3728
3729
|
emits: ["buttonClick"],
|
|
3729
3730
|
setup(__props, { emit: __emit }) {
|
|
@@ -3733,12 +3734,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3733
3734
|
() => props.button && "to" in props.button && props.button.to !== void 0
|
|
3734
3735
|
);
|
|
3735
3736
|
const buttonComponent = computed(
|
|
3736
|
-
() => isLinkButton.value ? _sfc_main$
|
|
3737
|
+
() => isLinkButton.value ? _sfc_main$C : _sfc_main$D
|
|
3737
3738
|
);
|
|
3738
3739
|
return (_ctx, _cache) => {
|
|
3739
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3740
|
-
|
|
3741
|
-
|
|
3740
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
3741
|
+
props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
3742
|
+
key: 0,
|
|
3743
|
+
"data-testid": "loading-spinner",
|
|
3744
|
+
size: "large",
|
|
3745
|
+
variant: "onSurface",
|
|
3746
|
+
"aria-hidden": "true"
|
|
3747
|
+
})) : createCommentVNode("", true),
|
|
3748
|
+
createElementVNode("p", _hoisted_2$5, toDisplayString(props.headline), 1),
|
|
3749
|
+
props.description ? (openBlock(), createElementBlock("p", _hoisted_3$4, toDisplayString(props.description), 1)) : createCommentVNode("", true),
|
|
3742
3750
|
props.button ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
3743
3751
|
(openBlock(), createBlock(resolveDynamicComponent(buttonComponent.value), mergeProps(props.button, {
|
|
3744
3752
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("buttonClick", $event))
|
|
@@ -3749,7 +3757,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
3749
3757
|
}
|
|
3750
3758
|
});
|
|
3751
3759
|
|
|
3752
|
-
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3760
|
+
const KdsEmptyState = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-02149081"]]);
|
|
3753
3761
|
|
|
3754
3762
|
const kdsListItemAccessorySize = {
|
|
3755
3763
|
SMALL: "small",
|
|
@@ -3761,12 +3769,12 @@ const kdsListItemVariant = {
|
|
|
3761
3769
|
LARGE: "large"
|
|
3762
3770
|
};
|
|
3763
3771
|
|
|
3764
|
-
const _hoisted_1$
|
|
3765
|
-
const _hoisted_2$
|
|
3772
|
+
const _hoisted_1$c = ["id", "aria-selected", "aria-disabled"];
|
|
3773
|
+
const _hoisted_2$4 = {
|
|
3766
3774
|
key: 0,
|
|
3767
3775
|
class: "accessory"
|
|
3768
3776
|
};
|
|
3769
|
-
const _hoisted_3$
|
|
3777
|
+
const _hoisted_3$3 = { class: "content" };
|
|
3770
3778
|
const _hoisted_4$1 = ["title"];
|
|
3771
3779
|
const _hoisted_5 = {
|
|
3772
3780
|
key: 0,
|
|
@@ -3781,7 +3789,7 @@ const _hoisted_8 = {
|
|
|
3781
3789
|
key: 0,
|
|
3782
3790
|
class: "shortcut"
|
|
3783
3791
|
};
|
|
3784
|
-
const _sfc_main$
|
|
3792
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
3785
3793
|
__name: "KdsListItem",
|
|
3786
3794
|
props: {
|
|
3787
3795
|
id: {},
|
|
@@ -3834,14 +3842,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3834
3842
|
]),
|
|
3835
3843
|
onClick
|
|
3836
3844
|
}, [
|
|
3837
|
-
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
3838
|
-
createVNode(_sfc_main$
|
|
3845
|
+
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$4, [
|
|
3846
|
+
createVNode(_sfc_main$g, {
|
|
3839
3847
|
accessory: props.accessory,
|
|
3840
3848
|
size: accessorySize.value,
|
|
3841
3849
|
disabled: props.disabled
|
|
3842
3850
|
}, null, 8, ["accessory", "size", "disabled"])
|
|
3843
3851
|
])) : createCommentVNode("", true),
|
|
3844
|
-
createElementVNode("span", _hoisted_3$
|
|
3852
|
+
createElementVNode("span", _hoisted_3$3, [
|
|
3845
3853
|
createElementVNode("span", {
|
|
3846
3854
|
ref_key: "labelEl",
|
|
3847
3855
|
ref: labelEl,
|
|
@@ -3869,19 +3877,67 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
3869
3877
|
size: "small"
|
|
3870
3878
|
}, null, 8, ["name"])) : createCommentVNode("", true)
|
|
3871
3879
|
])) : createCommentVNode("", true)
|
|
3872
|
-
], 10, _hoisted_1$
|
|
3880
|
+
], 10, _hoisted_1$c);
|
|
3873
3881
|
};
|
|
3874
3882
|
}
|
|
3875
3883
|
});
|
|
3876
3884
|
|
|
3877
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3885
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-fca25fc2"]]);
|
|
3878
3886
|
|
|
3879
|
-
const
|
|
3887
|
+
const _sfc_main$c = { };
|
|
3888
|
+
|
|
3889
|
+
const _hoisted_1$b = { class: "kds-list-item-divider" };
|
|
3890
|
+
|
|
3891
|
+
function _sfc_render(_ctx, _cache) {
|
|
3892
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$b))
|
|
3893
|
+
}
|
|
3894
|
+
const ListItemDivider = /*#__PURE__*/_export_sfc(_sfc_main$c, [['render',_sfc_render],['__scopeId',"data-v-3ee92695"]]);
|
|
3895
|
+
|
|
3896
|
+
const _hoisted_1$a = { class: "kds-list-item-section-title" };
|
|
3897
|
+
const _hoisted_2$3 = {
|
|
3898
|
+
key: 0,
|
|
3899
|
+
class: "icon"
|
|
3900
|
+
};
|
|
3901
|
+
const _hoisted_3$2 = ["title"];
|
|
3902
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
3903
|
+
__name: "ListItemSectionTitle",
|
|
3904
|
+
props: {
|
|
3905
|
+
label: {},
|
|
3906
|
+
leadingIcon: {}
|
|
3907
|
+
},
|
|
3908
|
+
setup(__props) {
|
|
3909
|
+
const props = __props;
|
|
3910
|
+
const labelEl = useTemplateRef("labelEl");
|
|
3911
|
+
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
3912
|
+
return (_ctx, _cache) => {
|
|
3913
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
3914
|
+
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
|
|
3915
|
+
createVNode(KdsIcon, {
|
|
3916
|
+
name: props.leadingIcon,
|
|
3917
|
+
size: "small"
|
|
3918
|
+
}, null, 8, ["name"])
|
|
3919
|
+
])) : createCommentVNode("", true),
|
|
3920
|
+
createElementVNode("span", {
|
|
3921
|
+
ref_key: "labelEl",
|
|
3922
|
+
ref: labelEl,
|
|
3923
|
+
class: "label",
|
|
3924
|
+
title: unref(isTruncated) ? props.label : void 0
|
|
3925
|
+
}, toDisplayString(props.label), 9, _hoisted_3$2)
|
|
3926
|
+
]);
|
|
3927
|
+
};
|
|
3928
|
+
}
|
|
3929
|
+
});
|
|
3930
|
+
|
|
3931
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-53382531"]]);
|
|
3932
|
+
|
|
3933
|
+
const _hoisted_1$9 = ["aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
3934
|
+
const loadingStateText = "Loading entries";
|
|
3880
3935
|
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
3881
3936
|
__name: "KdsListContainer",
|
|
3882
3937
|
props: {
|
|
3883
3938
|
possibleValues: {},
|
|
3884
3939
|
emptyText: { default: "" },
|
|
3940
|
+
loading: { type: Boolean, default: false },
|
|
3885
3941
|
ariaLabel: {},
|
|
3886
3942
|
controlledExternally: { type: Boolean }
|
|
3887
3943
|
},
|
|
@@ -3893,7 +3949,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3893
3949
|
const toOptionId = (elementId) => elementId.slice(idPrefix.length + 1);
|
|
3894
3950
|
const emptyOptionId = `${idPrefix}-empty`;
|
|
3895
3951
|
const prefixedValues = computed(
|
|
3896
|
-
() => props.possibleValues.map((o) => ({
|
|
3952
|
+
() => (props.loading ? [] : props.possibleValues).map((o) => ({
|
|
3953
|
+
...o,
|
|
3954
|
+
id: `${idPrefix}-${o.id}`
|
|
3955
|
+
}))
|
|
3956
|
+
);
|
|
3957
|
+
const selectableValues = computed(
|
|
3958
|
+
() => prefixedValues.value.filter((o) => !o.sectionHeadline)
|
|
3897
3959
|
);
|
|
3898
3960
|
const activeId = ref(void 0);
|
|
3899
3961
|
const lastActiveId = ref(void 0);
|
|
@@ -3914,23 +3976,28 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
3914
3976
|
const target = event.target?.closest?.('[role="option"]');
|
|
3915
3977
|
if (target instanceof HTMLElement && target.id && target.getAttribute("aria-disabled") !== "true") {
|
|
3916
3978
|
activeId.value = target.id;
|
|
3979
|
+
} else if (!isFocused.value) {
|
|
3980
|
+
activeId.value = void 0;
|
|
3917
3981
|
}
|
|
3918
3982
|
};
|
|
3919
3983
|
const enabledValues = computed(
|
|
3920
|
-
() =>
|
|
3984
|
+
() => selectableValues.value.filter((o) => !o.disabled)
|
|
3921
3985
|
);
|
|
3922
|
-
watch(enabledValues, (values) => {
|
|
3986
|
+
watch([enabledValues, () => props.loading], ([values, loading]) => {
|
|
3923
3987
|
const isValid = (id) => id !== void 0 && values.some((o) => o.id === id);
|
|
3924
3988
|
if (activeId.value !== void 0 && !isValid(activeId.value)) {
|
|
3925
3989
|
if (values.length > 0) {
|
|
3926
3990
|
activeId.value = values[0].id;
|
|
3927
3991
|
} else {
|
|
3928
|
-
activeId.value =
|
|
3992
|
+
activeId.value = selectableValues.value.length === 0 ? emptyOptionId : void 0;
|
|
3929
3993
|
}
|
|
3930
3994
|
}
|
|
3931
3995
|
if (!isValid(lastActiveId.value)) {
|
|
3932
3996
|
lastActiveId.value = void 0;
|
|
3933
3997
|
}
|
|
3998
|
+
if (loading) {
|
|
3999
|
+
activeId.value = emptyOptionId;
|
|
4000
|
+
}
|
|
3934
4001
|
nextTick(scrollToView);
|
|
3935
4002
|
});
|
|
3936
4003
|
const findEnabledIndex = (id) => id === void 0 ? -1 : enabledValues.value.findIndex((o) => o.id === id);
|
|
@@ -4002,10 +4069,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4002
4069
|
activeDescendant: activeId
|
|
4003
4070
|
});
|
|
4004
4071
|
return (_ctx, _cache) => {
|
|
4005
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
4072
|
+
return openBlock(), createElementBlock("div", mergeProps(_ctx.$attrs, {
|
|
4006
4073
|
ref_key: "containerEl",
|
|
4007
4074
|
ref: containerEl,
|
|
4008
4075
|
role: "listbox",
|
|
4076
|
+
"aria-busy": props.loading,
|
|
4009
4077
|
"aria-label": props.ariaLabel,
|
|
4010
4078
|
"aria-activedescendant": !props.controlledExternally && activeId.value ? activeId.value : void 0,
|
|
4011
4079
|
class: "kds-list-container",
|
|
@@ -4020,41 +4088,57 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
4020
4088
|
},
|
|
4021
4089
|
true
|
|
4022
4090
|
)), [
|
|
4023
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(prefixedValues.value, (item) => {
|
|
4024
|
-
return openBlock(),
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4091
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(prefixedValues.value, (item, index) => {
|
|
4092
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
4093
|
+
key: item.id
|
|
4094
|
+
}, [
|
|
4095
|
+
item.sectionHeadline ? (openBlock(), createBlock(ListItemSectionTitle, {
|
|
4096
|
+
key: 0,
|
|
4097
|
+
label: item.text,
|
|
4098
|
+
"leading-icon": item.sectionHeadlineIcon,
|
|
4099
|
+
role: "presentation",
|
|
4100
|
+
"aria-hidden": "true"
|
|
4101
|
+
}, null, 8, ["label", "leading-icon"])) : (openBlock(), createBlock(unref(KdsListItem), {
|
|
4102
|
+
key: 1,
|
|
4103
|
+
id: item.id,
|
|
4104
|
+
accessory: item.accessory,
|
|
4105
|
+
label: item.text,
|
|
4106
|
+
"sub-text": item.subText,
|
|
4107
|
+
selected: item.selected,
|
|
4108
|
+
disabled: item.disabled,
|
|
4109
|
+
active: activeId.value === item.id,
|
|
4110
|
+
special: item.special,
|
|
4111
|
+
missing: item.missing,
|
|
4112
|
+
"trailing-icon": item.selected ? "checkmark" : void 0,
|
|
4113
|
+
onMousedown: _cache[0] || (_cache[0] = ($event) => props.controlledExternally && $event.preventDefault()),
|
|
4114
|
+
onClick: withModifiers(($event) => emit("itemClick", toOptionId(item.id)), ["stop"])
|
|
4115
|
+
}, null, 8, ["id", "accessory", "label", "sub-text", "selected", "disabled", "active", "special", "missing", "trailing-icon", "onClick"])),
|
|
4116
|
+
item.separator && index < prefixedValues.value.length - 1 ? (openBlock(), createBlock(ListItemDivider, {
|
|
4117
|
+
key: 2,
|
|
4118
|
+
role: "presentation",
|
|
4119
|
+
"aria-hidden": "true"
|
|
4120
|
+
})) : createCommentVNode("", true)
|
|
4121
|
+
], 64);
|
|
4039
4122
|
}), 128)),
|
|
4040
|
-
|
|
4123
|
+
selectableValues.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
4041
4124
|
key: 0,
|
|
4042
4125
|
id: emptyOptionId,
|
|
4043
4126
|
role: "option",
|
|
4044
4127
|
"aria-disabled": "true",
|
|
4045
|
-
"aria-selected":
|
|
4128
|
+
"aria-selected": "false",
|
|
4046
4129
|
class: "kds-list-container-empty"
|
|
4047
4130
|
}, [
|
|
4048
4131
|
createVNode(KdsEmptyState, {
|
|
4049
|
-
headline: props.emptyText
|
|
4050
|
-
|
|
4132
|
+
headline: props.loading ? loadingStateText : props.emptyText,
|
|
4133
|
+
"loading-spinner": props.loading
|
|
4134
|
+
}, null, 8, ["headline", "loading-spinner"])
|
|
4051
4135
|
])) : createCommentVNode("", true)
|
|
4052
4136
|
], 16, _hoisted_1$9);
|
|
4053
4137
|
};
|
|
4054
4138
|
}
|
|
4055
4139
|
});
|
|
4056
4140
|
|
|
4057
|
-
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
4141
|
+
const KdsListContainer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-276a6202"]]);
|
|
4058
4142
|
|
|
4059
4143
|
const _hoisted_1$8 = { class: "kds-dropdown-container" };
|
|
4060
4144
|
const _hoisted_2$2 = { class: "kds-dropdown-container-sticky-top" };
|
|
@@ -4062,6 +4146,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4062
4146
|
__name: "DropdownContainer",
|
|
4063
4147
|
props: /* @__PURE__ */ mergeModels({
|
|
4064
4148
|
emptyText: {},
|
|
4149
|
+
loading: { type: Boolean },
|
|
4065
4150
|
possibleValues: {}
|
|
4066
4151
|
}, {
|
|
4067
4152
|
"modelValue": { default: null },
|
|
@@ -4145,24 +4230,26 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
4145
4230
|
createVNode(unref(KdsListContainer), {
|
|
4146
4231
|
ref: "listContainer",
|
|
4147
4232
|
class: normalizeClass(["kds-dropdown-container-list", { multiline: hasMultiline.value }]),
|
|
4148
|
-
"possible-values": listOptions.value,
|
|
4233
|
+
"possible-values": props.loading ? [] : listOptions.value,
|
|
4234
|
+
loading: props.loading,
|
|
4149
4235
|
"empty-text": props.emptyText,
|
|
4150
4236
|
"controlled-externally": "",
|
|
4151
4237
|
"aria-label": "Dropdown options",
|
|
4152
4238
|
onItemClick: _cache[4] || (_cache[4] = ($event) => modelValue.value = $event)
|
|
4153
|
-
}, null, 8, ["class", "possible-values", "empty-text"])
|
|
4239
|
+
}, null, 8, ["class", "possible-values", "loading", "empty-text"])
|
|
4154
4240
|
]);
|
|
4155
4241
|
};
|
|
4156
4242
|
}
|
|
4157
4243
|
});
|
|
4158
4244
|
|
|
4159
|
-
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
4245
|
+
const DropdownContainer = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-15e753c9"]]);
|
|
4160
4246
|
|
|
4161
4247
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
4162
4248
|
__name: "KdsDropdown",
|
|
4163
4249
|
props: /* @__PURE__ */ mergeModels({
|
|
4164
4250
|
placeholder: { default: "Select" },
|
|
4165
4251
|
disabled: { type: Boolean, default: false },
|
|
4252
|
+
loading: { type: Boolean, default: false },
|
|
4166
4253
|
possibleValues: {},
|
|
4167
4254
|
description: {},
|
|
4168
4255
|
label: {},
|
|
@@ -4238,8 +4325,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
4238
4325
|
modelValue: modelValue.value,
|
|
4239
4326
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
|
|
4240
4327
|
"possible-values": props.possibleValues,
|
|
4328
|
+
loading: props.loading,
|
|
4241
4329
|
"empty-text": "No entries found"
|
|
4242
|
-
}, null, 8, ["modelValue", "possible-values"])
|
|
4330
|
+
}, null, 8, ["modelValue", "possible-values", "loading"])
|
|
4243
4331
|
]),
|
|
4244
4332
|
_: 1
|
|
4245
4333
|
}, 8, ["modelValue"])
|
|
@@ -4576,10 +4664,10 @@ const kdsModalVariant = {
|
|
|
4576
4664
|
};
|
|
4577
4665
|
const kdsModalVariants = Object.values(kdsModalVariant);
|
|
4578
4666
|
const kdsModalLayoutPropsDefault = {
|
|
4579
|
-
|
|
4667
|
+
headline: "",
|
|
4580
4668
|
variant: kdsModalVariant.PADDED,
|
|
4581
4669
|
overflow: "auto",
|
|
4582
|
-
|
|
4670
|
+
leadingIcon: void 0
|
|
4583
4671
|
};
|
|
4584
4672
|
const kdsModalPropsDefault = {
|
|
4585
4673
|
active: false,
|
|
@@ -4590,7 +4678,7 @@ const kdsModalPropsDefault = {
|
|
|
4590
4678
|
};
|
|
4591
4679
|
|
|
4592
4680
|
const _hoisted_1$2 = { class: "modal-header" };
|
|
4593
|
-
const _hoisted_2$1 = { class: "modal-header-
|
|
4681
|
+
const _hoisted_2$1 = { class: "modal-header-headline" };
|
|
4594
4682
|
const _hoisted_3$1 = ["data-variant"];
|
|
4595
4683
|
const _hoisted_4 = {
|
|
4596
4684
|
key: 0,
|
|
@@ -4600,27 +4688,27 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4600
4688
|
...{ inheritAttrs: false },
|
|
4601
4689
|
__name: "KdsModalLayout",
|
|
4602
4690
|
props: /* @__PURE__ */ mergeDefaults({
|
|
4603
|
-
|
|
4691
|
+
headline: {},
|
|
4604
4692
|
variant: {},
|
|
4605
|
-
|
|
4693
|
+
leadingIcon: {},
|
|
4606
4694
|
overflow: {},
|
|
4607
4695
|
onClose: { type: Function }
|
|
4608
4696
|
}, kdsModalLayoutPropsDefault),
|
|
4609
4697
|
setup(__props) {
|
|
4610
4698
|
useCssVars((_ctx) => ({
|
|
4611
|
-
"
|
|
4699
|
+
"v55fe64da": _ctx.overflow
|
|
4612
4700
|
}));
|
|
4613
4701
|
const props = __props;
|
|
4614
4702
|
return (_ctx, _cache) => {
|
|
4615
4703
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
4616
4704
|
createElementVNode("header", _hoisted_1$2, [
|
|
4617
|
-
props.
|
|
4705
|
+
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
4618
4706
|
key: 0,
|
|
4619
|
-
name: props.
|
|
4707
|
+
name: props.leadingIcon,
|
|
4620
4708
|
size: "medium"
|
|
4621
4709
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
4622
|
-
createElementVNode("div", _hoisted_2$1, toDisplayString(props.
|
|
4623
|
-
createVNode(_sfc_main$
|
|
4710
|
+
createElementVNode("div", _hoisted_2$1, toDisplayString(props.headline), 1),
|
|
4711
|
+
createVNode(_sfc_main$D, {
|
|
4624
4712
|
"leading-icon": "x-close",
|
|
4625
4713
|
variant: "transparent",
|
|
4626
4714
|
size: "medium",
|
|
@@ -4642,14 +4730,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4642
4730
|
}
|
|
4643
4731
|
});
|
|
4644
4732
|
|
|
4645
|
-
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
4733
|
+
const KdsModalLayout = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b2e57108"]]);
|
|
4646
4734
|
|
|
4647
4735
|
const _hoisted_1$1 = ["closedby"];
|
|
4648
4736
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4649
4737
|
__name: "KdsModal",
|
|
4650
4738
|
props: /* @__PURE__ */ mergeDefaults({
|
|
4651
|
-
|
|
4652
|
-
|
|
4739
|
+
leadingIcon: {},
|
|
4740
|
+
headline: {},
|
|
4653
4741
|
variant: {},
|
|
4654
4742
|
width: {},
|
|
4655
4743
|
height: {},
|
|
@@ -4660,7 +4748,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4660
4748
|
emits: ["close", "closed"],
|
|
4661
4749
|
setup(__props, { emit: __emit }) {
|
|
4662
4750
|
useCssVars((_ctx) => ({
|
|
4663
|
-
"
|
|
4751
|
+
"v073dd16a": _ctx.overflow
|
|
4664
4752
|
}));
|
|
4665
4753
|
const props = __props;
|
|
4666
4754
|
const emit = __emit;
|
|
@@ -4720,15 +4808,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4720
4808
|
onCancel: withModifiers(onClose, ["prevent"])
|
|
4721
4809
|
}, [
|
|
4722
4810
|
renderSlot(_ctx.$slots, "default", {
|
|
4723
|
-
|
|
4724
|
-
|
|
4811
|
+
headline: __props.headline,
|
|
4812
|
+
leadingIcon: __props.leadingIcon,
|
|
4725
4813
|
variant: __props.variant,
|
|
4726
4814
|
overflow: __props.overflow,
|
|
4727
4815
|
onClose
|
|
4728
4816
|
}, () => [
|
|
4729
4817
|
createVNode(KdsModalLayout, {
|
|
4730
|
-
|
|
4731
|
-
icon: __props.
|
|
4818
|
+
headline: __props.headline,
|
|
4819
|
+
"leading-icon": __props.leadingIcon,
|
|
4732
4820
|
variant: __props.variant,
|
|
4733
4821
|
overflow: __props.overflow,
|
|
4734
4822
|
onClose
|
|
@@ -4740,14 +4828,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4740
4828
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
4741
4829
|
]),
|
|
4742
4830
|
_: 3
|
|
4743
|
-
}, 8, ["
|
|
4831
|
+
}, 8, ["headline", "leading-icon", "variant", "overflow"])
|
|
4744
4832
|
], true)
|
|
4745
4833
|
], 42, _hoisted_1$1)) : createCommentVNode("", true);
|
|
4746
4834
|
};
|
|
4747
4835
|
}
|
|
4748
4836
|
});
|
|
4749
4837
|
|
|
4750
|
-
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
4838
|
+
const KdsModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5a8d7ce3"]]);
|
|
4751
4839
|
|
|
4752
4840
|
const defaultCancelButton = {
|
|
4753
4841
|
type: "cancel",
|
|
@@ -4871,10 +4959,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4871
4959
|
if (!config.value) {
|
|
4872
4960
|
return {};
|
|
4873
4961
|
}
|
|
4874
|
-
const {
|
|
4962
|
+
const { leadingIcon, headline, height, width, variant, overflow, closedby } = config.value.value;
|
|
4875
4963
|
return {
|
|
4876
|
-
|
|
4877
|
-
|
|
4964
|
+
leadingIcon,
|
|
4965
|
+
headline,
|
|
4878
4966
|
height,
|
|
4879
4967
|
width,
|
|
4880
4968
|
variant,
|
|
@@ -4893,7 +4981,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4893
4981
|
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
4894
4982
|
createElementVNode("div", _hoisted_2, toDisplayString(unref(config).value.message), 1),
|
|
4895
4983
|
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
4896
|
-
createVNode(_sfc_main$
|
|
4984
|
+
createVNode(_sfc_main$w, {
|
|
4897
4985
|
modelValue: askAgain.value,
|
|
4898
4986
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
4899
4987
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -4908,7 +4996,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4908
4996
|
name: "footer",
|
|
4909
4997
|
fn: withCtx(() => [
|
|
4910
4998
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
|
|
4911
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4999
|
+
return openBlock(), createBlock(_sfc_main$D, {
|
|
4912
5000
|
key: index,
|
|
4913
5001
|
destructive: button.destructive,
|
|
4914
5002
|
autofocus: button.autofocus,
|
|
@@ -4938,7 +5026,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4938
5026
|
}
|
|
4939
5027
|
});
|
|
4940
5028
|
|
|
4941
|
-
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5029
|
+
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-41fc8d84"]]);
|
|
4942
5030
|
|
|
4943
|
-
export { KdsAvatar, KdsBadge, _sfc_main$
|
|
5031
|
+
export { KdsAvatar, KdsBadge, _sfc_main$D as KdsButton, KdsCardClickable, _sfc_main$w as KdsCheckbox, KdsCheckboxGroup, _sfc_main$l as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$8 as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, _sfc_main$C as KdsLinkButton, KdsLiveStatus, KdsLoadingSpinner, KdsModal, KdsModalLayout, _sfc_main$k as KdsNumberInput, _sfc_main$j as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, _sfc_main$i as KdsSearchInput, KdsSubText, _sfc_main$n as KdsTextInput, KdsTextarea, _sfc_main$B as KdsToggleButton, KdsValueSwitch, KdsVariableToggleButton, kdsAvatarSize, kdsAvatarSizes, kdsBadgeSize, kdsBadgeSizes, kdsBadgeVariant, kdsBadgeVariants, kdsButtonSize, kdsButtonSizes, kdsButtonVariant, kdsButtonVariants, kdsCardVariant, kdsCardVariants, kdsCheckboxGroupAlignment, kdsCheckboxGroupAlignments, kdsCheckboxValue, kdsCheckboxValues, kdsColorSwatchSize, kdsColorSwatchSizes, kdsColorSwatchType, kdsColorSwatchTypes, kdsDarkModeType, kdsDarkModeTypes, kdsDataTypeSize, kdsDataTypeSizes, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
|
|
4944
5032
|
//# sourceMappingURL=index.js.map
|