@knime/kds-components 0.22.3 → 0.23.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/index.css +63 -6
- package/dist/index.js +495 -278
- package/dist/index.js.map +1 -1
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +87 -2
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsMenuButton/types.d.ts +7 -0
- package/dist/src/buttons/KdsMenuButton/types.d.ts.map +1 -1
- package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +6 -6
- package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsSplitButton/types.d.ts +4 -4
- package/dist/src/buttons/KdsSplitButton/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/layouts/PanelButtonBar/KdsPanelButtonBar.vue.d.ts +10 -0
- package/dist/src/layouts/PanelButtonBar/KdsPanelButtonBar.vue.d.ts.map +1 -0
- package/dist/src/layouts/PanelButtonBar/index.d.ts +3 -0
- package/dist/src/layouts/PanelButtonBar/index.d.ts.map +1 -0
- package/dist/src/layouts/PanelButtonBar/types.d.ts +15 -0
- package/dist/src/layouts/PanelButtonBar/types.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/KdsPanelHeader.vue.d.ts +8 -0
- package/dist/src/layouts/PanelHeader/KdsPanelHeader.vue.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/index.d.ts +3 -0
- package/dist/src/layouts/PanelHeader/index.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/types.d.ts +7 -0
- package/dist/src/layouts/PanelHeader/types.d.ts.map +1 -0
- package/dist/src/layouts/index.d.ts +4 -0
- package/dist/src/layouts/index.d.ts.map +1 -1
- package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +336 -0
- package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/enums.d.ts +7 -0
- package/dist/src/patterns/ResponsiveButtonGroup/enums.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/index.d.ts +4 -0
- package/dist/src/patterns/ResponsiveButtonGroup/index.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/types.d.ts +23 -0
- package/dist/src/patterns/ResponsiveButtonGroup/types.d.ts.map +1 -0
- package/dist/src/patterns/index.d.ts +3 -0
- package/dist/src/patterns/index.d.ts.map +1 -0
- 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$
|
|
12
|
+
const _hoisted_1$P = ["role", "title", "aria-hidden", "aria-label"];
|
|
13
13
|
const _hoisted_2$t = ["src"];
|
|
14
14
|
const _hoisted_3$j = {
|
|
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$1d = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "KdsAvatar",
|
|
21
21
|
props: {
|
|
22
22
|
initials: {},
|
|
@@ -62,7 +62,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
}, null, 40, _hoisted_2$t)) : (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
63
63
|
createElementVNode("span", null, toDisplayString(displayedInitials.value), 1)
|
|
64
64
|
]))
|
|
65
|
-
], 10, _hoisted_1$
|
|
65
|
+
], 10, _hoisted_1$P);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -75,7 +75,7 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
75
75
|
return target;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
78
|
+
const KdsAvatar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["__scopeId", "data-v-c90668bf"]]);
|
|
79
79
|
|
|
80
80
|
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
81
81
|
const v = glob$1[path$13];
|
|
@@ -117,7 +117,7 @@ function useIcon({
|
|
|
117
117
|
return iconComponent;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
const _sfc_main$
|
|
120
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
121
121
|
__name: "KdsIcon",
|
|
122
122
|
props: {
|
|
123
123
|
name: {},
|
|
@@ -146,7 +146,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
149
|
+
const KdsIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["__scopeId", "data-v-fb124eb6"]]);
|
|
150
150
|
|
|
151
151
|
const ID_TO_ICON_MAP = {
|
|
152
152
|
// Flow Variables
|
|
@@ -483,8 +483,8 @@ const kdsDataTypeSize = {
|
|
|
483
483
|
};
|
|
484
484
|
const kdsDataTypeSizes = Object.values(kdsDataTypeSize);
|
|
485
485
|
|
|
486
|
-
const _hoisted_1$
|
|
487
|
-
const _sfc_main$
|
|
486
|
+
const _hoisted_1$O = ["title"];
|
|
487
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
488
488
|
__name: "KdsDataType",
|
|
489
489
|
props: {
|
|
490
490
|
iconName: { default: "unknown-datatype" },
|
|
@@ -524,12 +524,12 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
524
524
|
"aria-hidden": "true",
|
|
525
525
|
focusable: "false"
|
|
526
526
|
}, null, 8, ["class"]))
|
|
527
|
-
], 10, _hoisted_1$
|
|
527
|
+
], 10, _hoisted_1$O);
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
531
|
|
|
532
|
-
const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
532
|
+
const KdsDataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__scopeId", "data-v-3b8ebdbd"]]);
|
|
533
533
|
|
|
534
534
|
const kdsBadgeVariant = {
|
|
535
535
|
NEUTRAL: "neutral",
|
|
@@ -546,8 +546,8 @@ const kdsBadgeSize = {
|
|
|
546
546
|
};
|
|
547
547
|
const kdsBadgeSizes = Object.values(kdsBadgeSize);
|
|
548
548
|
|
|
549
|
-
const _hoisted_1$
|
|
550
|
-
const _sfc_main$
|
|
549
|
+
const _hoisted_1$N = { class: "label-wrapper" };
|
|
550
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
551
551
|
__name: "KdsBadge",
|
|
552
552
|
props: {
|
|
553
553
|
label: {},
|
|
@@ -569,13 +569,13 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
569
569
|
name: __props.leadingIcon,
|
|
570
570
|
size: sizeToIconSize[__props.size]
|
|
571
571
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true),
|
|
572
|
-
createElementVNode("span", _hoisted_1$
|
|
572
|
+
createElementVNode("span", _hoisted_1$N, toDisplayString(__props.label), 1)
|
|
573
573
|
], 2);
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
|
|
578
|
-
const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
578
|
+
const KdsBadge = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["__scopeId", "data-v-df64f7cf"]]);
|
|
579
579
|
|
|
580
580
|
const kdsColorSwatchType = {
|
|
581
581
|
LEARNER: "learner",
|
|
@@ -594,14 +594,14 @@ const kdsColorSwatchSize = {
|
|
|
594
594
|
};
|
|
595
595
|
const kdsColorSwatchSizes = Object.values(kdsColorSwatchSize);
|
|
596
596
|
|
|
597
|
-
const _hoisted_1$
|
|
597
|
+
const _hoisted_1$M = ["role", "title", "aria-hidden", "aria-label"];
|
|
598
598
|
const RGBA_SHORT_HEX_LENGTH = 4;
|
|
599
599
|
const RGBA_LONG_HEX_LENGTH = 8;
|
|
600
600
|
const ALPHA_NIBBLE_INDEX = 3;
|
|
601
601
|
const ALPHA_BYTE_START = 6;
|
|
602
602
|
const RGB_SHORT_HEX_LENGTH = 3;
|
|
603
603
|
const RGB_LONG_HEX_LENGTH = 6;
|
|
604
|
-
const _sfc_main$
|
|
604
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
605
605
|
__name: "KdsColorSwatch",
|
|
606
606
|
props: {
|
|
607
607
|
color: {},
|
|
@@ -676,12 +676,12 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
676
676
|
style: normalizeStyle(swatchStyle.value),
|
|
677
677
|
"aria-hidden": hasTitle.value ? void 0 : "true",
|
|
678
678
|
"aria-label": hasTitle.value ? accessibleTitle.value : void 0
|
|
679
|
-
}, null, 14, _hoisted_1$
|
|
679
|
+
}, null, 14, _hoisted_1$M);
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
684
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["__scopeId", "data-v-91e0130d"]]);
|
|
685
685
|
|
|
686
686
|
const kdsDarkModeType = {
|
|
687
687
|
LIGHT: "light",
|
|
@@ -801,9 +801,9 @@ function useKdsIsTruncated(elementRef) {
|
|
|
801
801
|
return { isTruncated };
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
const _hoisted_1$
|
|
804
|
+
const _hoisted_1$L = ["title", "aria-label"];
|
|
805
805
|
const _hoisted_2$s = ["title"];
|
|
806
|
-
const _sfc_main$
|
|
806
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
807
807
|
__name: "KdsLiveStatus",
|
|
808
808
|
props: {
|
|
809
809
|
status: { default: "red" },
|
|
@@ -833,12 +833,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
833
833
|
class: "label",
|
|
834
834
|
title: unref(isTruncated) ? __props.label : void 0
|
|
835
835
|
}, toDisplayString(__props.label), 9, _hoisted_2$s)) : createCommentVNode("", true)
|
|
836
|
-
], 10, _hoisted_1$
|
|
836
|
+
], 10, _hoisted_1$L);
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
839
|
});
|
|
840
840
|
|
|
841
|
-
const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
841
|
+
const KdsLiveStatus = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["__scopeId", "data-v-01555495"]]);
|
|
842
842
|
|
|
843
843
|
const kdsLiveStatusStatus = {
|
|
844
844
|
RED: "red",
|
|
@@ -854,8 +854,8 @@ const kdsLiveStatusSize = {
|
|
|
854
854
|
};
|
|
855
855
|
const kdsLiveStatusSizes = Object.values(kdsLiveStatusSize);
|
|
856
856
|
|
|
857
|
-
const _hoisted_1$
|
|
858
|
-
const _sfc_main$
|
|
857
|
+
const _hoisted_1$K = ["data-style"];
|
|
858
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
859
859
|
__name: "KdsLoadingSpinner",
|
|
860
860
|
props: {
|
|
861
861
|
size: { default: "medium" },
|
|
@@ -880,12 +880,12 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
880
880
|
cy: "60",
|
|
881
881
|
r: "50"
|
|
882
882
|
}, null, -1)
|
|
883
|
-
])], 10, _hoisted_1$
|
|
883
|
+
])], 10, _hoisted_1$K);
|
|
884
884
|
};
|
|
885
885
|
}
|
|
886
886
|
});
|
|
887
887
|
|
|
888
|
-
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
888
|
+
const KdsLoadingSpinner = /* @__PURE__ */ _export_sfc$1(_sfc_main$17, [["__scopeId", "data-v-54835dc0"]]);
|
|
889
889
|
|
|
890
890
|
const kdsLoadingSpinnerVariant = {
|
|
891
891
|
ON_PRIMARY: "onPrimary",
|
|
@@ -895,14 +895,14 @@ const kdsLoadingSpinnerVariants = Object.values(
|
|
|
895
895
|
kdsLoadingSpinnerVariant
|
|
896
896
|
);
|
|
897
897
|
|
|
898
|
-
const _hoisted_1$
|
|
898
|
+
const _hoisted_1$J = ["role"];
|
|
899
899
|
const _hoisted_2$r = { class: "header" };
|
|
900
900
|
const _hoisted_3$i = { class: "headline" };
|
|
901
901
|
const _hoisted_4$e = {
|
|
902
902
|
key: 0,
|
|
903
903
|
class: "body"
|
|
904
904
|
};
|
|
905
|
-
const _sfc_main$
|
|
905
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
906
906
|
__name: "KdsInlineMessage",
|
|
907
907
|
props: {
|
|
908
908
|
headline: {},
|
|
@@ -942,12 +942,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
942
942
|
createElementVNode("div", _hoisted_3$i, toDisplayString(props.headline), 1)
|
|
943
943
|
]),
|
|
944
944
|
props.description ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(props.description), 1)) : createCommentVNode("", true)
|
|
945
|
-
], 10, _hoisted_1$
|
|
945
|
+
], 10, _hoisted_1$J);
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
948
|
});
|
|
949
949
|
|
|
950
|
-
const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
950
|
+
const KdsInlineMessage = /* @__PURE__ */ _export_sfc$1(_sfc_main$16, [["__scopeId", "data-v-af14056f"]]);
|
|
951
951
|
|
|
952
952
|
const kdsInlineMessageVariant = {
|
|
953
953
|
ERROR: "error",
|
|
@@ -957,11 +957,11 @@ const kdsInlineMessageVariant = {
|
|
|
957
957
|
};
|
|
958
958
|
const kdsInlineMessageVariants = Object.values(kdsInlineMessageVariant);
|
|
959
959
|
|
|
960
|
-
const _hoisted_1$
|
|
960
|
+
const _hoisted_1$I = {
|
|
961
961
|
key: 0,
|
|
962
962
|
class: "label"
|
|
963
963
|
};
|
|
964
|
-
const _sfc_main$
|
|
964
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
965
965
|
__name: "BaseButton",
|
|
966
966
|
props: {
|
|
967
967
|
size: { default: "medium" },
|
|
@@ -1022,7 +1022,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1022
1022
|
size: iconSize.value
|
|
1023
1023
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
1024
1024
|
], true),
|
|
1025
|
-
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1025
|
+
props.label ? (openBlock(), createElementBlock("span", _hoisted_1$I, toDisplayString(props.label), 1)) : createCommentVNode("", true),
|
|
1026
1026
|
props.trailingIcon && props.label ? (openBlock(), createBlock(KdsIcon, {
|
|
1027
1027
|
key: 1,
|
|
1028
1028
|
name: props.trailingIcon,
|
|
@@ -1035,9 +1035,9 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
1037
|
|
|
1038
|
-
const BaseButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1038
|
+
const BaseButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$15, [["__scopeId", "data-v-a696a1ec"]]);
|
|
1039
1039
|
|
|
1040
|
-
const _sfc_main$
|
|
1040
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
1041
1041
|
__name: "KdsButton",
|
|
1042
1042
|
props: {
|
|
1043
1043
|
size: {},
|
|
@@ -1091,7 +1091,7 @@ const resolveNuxtLinkComponent = () => {
|
|
|
1091
1091
|
return fallbackComponent;
|
|
1092
1092
|
};
|
|
1093
1093
|
|
|
1094
|
-
const _sfc_main$
|
|
1094
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
1095
1095
|
__name: "KdsLinkButton",
|
|
1096
1096
|
props: {
|
|
1097
1097
|
size: {},
|
|
@@ -1310,12 +1310,12 @@ function prettyBytes(number, options) {
|
|
|
1310
1310
|
return applyFixedWidth(result, options.fixedWidth);
|
|
1311
1311
|
}
|
|
1312
1312
|
|
|
1313
|
-
const _hoisted_1$
|
|
1313
|
+
const _hoisted_1$H = { class: "label" };
|
|
1314
1314
|
const _hoisted_2$q = {
|
|
1315
1315
|
key: 1,
|
|
1316
1316
|
class: "file-size"
|
|
1317
1317
|
};
|
|
1318
|
-
const _sfc_main
|
|
1318
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
1319
1319
|
__name: "KdsLink",
|
|
1320
1320
|
props: {
|
|
1321
1321
|
to: {},
|
|
@@ -1415,7 +1415,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
1415
1415
|
onClick
|
|
1416
1416
|
}, {
|
|
1417
1417
|
default: withCtx(() => [
|
|
1418
|
-
createElementVNode("span", _hoisted_1$
|
|
1418
|
+
createElementVNode("span", _hoisted_1$H, toDisplayString(__props.label), 1),
|
|
1419
1419
|
variant.value === "external" ? (openBlock(), createBlock(KdsIcon, {
|
|
1420
1420
|
key: 0,
|
|
1421
1421
|
name: "external-link",
|
|
@@ -1429,9 +1429,9 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
1431
1431
|
|
|
1432
|
-
const KdsLink = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
1432
|
+
const KdsLink = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["__scopeId", "data-v-65e776f1"]]);
|
|
1433
1433
|
|
|
1434
|
-
const _sfc_main$
|
|
1434
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
1435
1435
|
__name: "KdsToggleButton",
|
|
1436
1436
|
props: /* @__PURE__ */ mergeModels({
|
|
1437
1437
|
size: {},
|
|
@@ -1467,9 +1467,9 @@ const kdsToggleButtonVariant = {
|
|
|
1467
1467
|
};
|
|
1468
1468
|
const kdsToggleButtonVariants = Object.values(kdsToggleButtonVariant);
|
|
1469
1469
|
|
|
1470
|
-
const _hoisted_1$
|
|
1470
|
+
const _hoisted_1$G = ["data-visible"];
|
|
1471
1471
|
const _hoisted_2$p = ["data-visible"];
|
|
1472
|
-
const _sfc_main$
|
|
1472
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
1473
1473
|
__name: "KdsProgressButton",
|
|
1474
1474
|
props: /* @__PURE__ */ mergeModels({
|
|
1475
1475
|
size: { default: "medium" },
|
|
@@ -1530,7 +1530,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1530
1530
|
name: props.leadingIcon,
|
|
1531
1531
|
size: iconSize.value
|
|
1532
1532
|
}, null, 8, ["name", "size"])
|
|
1533
|
-
], 8, _hoisted_1$
|
|
1533
|
+
], 8, _hoisted_1$G),
|
|
1534
1534
|
createElementVNode("span", {
|
|
1535
1535
|
class: "spinner",
|
|
1536
1536
|
"data-visible": state.value === "progress"
|
|
@@ -1548,7 +1548,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
1548
1548
|
}
|
|
1549
1549
|
});
|
|
1550
1550
|
|
|
1551
|
-
const KdsProgressButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1551
|
+
const KdsProgressButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["__scopeId", "data-v-d38d7ade"]]);
|
|
1552
1552
|
|
|
1553
1553
|
const kdsProgressButtonState = {
|
|
1554
1554
|
DEFAULT: "default",
|
|
@@ -1558,7 +1558,7 @@ const kdsProgressButtonState = {
|
|
|
1558
1558
|
};
|
|
1559
1559
|
const kdsProgressButtonStates = Object.values(kdsProgressButtonState);
|
|
1560
1560
|
|
|
1561
|
-
const _hoisted_1$
|
|
1561
|
+
const _hoisted_1$F = { class: "kds-empty-state" };
|
|
1562
1562
|
const _hoisted_2$o = { class: "kds-empty-state-headline" };
|
|
1563
1563
|
const _hoisted_3$h = {
|
|
1564
1564
|
key: 1,
|
|
@@ -1568,7 +1568,7 @@ const _hoisted_4$d = {
|
|
|
1568
1568
|
key: 2,
|
|
1569
1569
|
class: "kds-empty-state-action"
|
|
1570
1570
|
};
|
|
1571
|
-
const _sfc_main
|
|
1571
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
1572
1572
|
__name: "KdsEmptyState",
|
|
1573
1573
|
props: {
|
|
1574
1574
|
headline: {},
|
|
@@ -1584,10 +1584,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
1584
1584
|
() => props.button && "to" in props.button && props.button.to !== void 0
|
|
1585
1585
|
);
|
|
1586
1586
|
const buttonComponent = computed(
|
|
1587
|
-
() => isLinkButton.value ? _sfc_main$
|
|
1587
|
+
() => isLinkButton.value ? _sfc_main$13 : _sfc_main$14
|
|
1588
1588
|
);
|
|
1589
1589
|
return (_ctx, _cache) => {
|
|
1590
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1590
|
+
return openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
1591
1591
|
props.loadingSpinner ? (openBlock(), createBlock(KdsLoadingSpinner, {
|
|
1592
1592
|
key: 0,
|
|
1593
1593
|
"data-testid": "loading-spinner",
|
|
@@ -1607,9 +1607,9 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
1607
1607
|
}
|
|
1608
1608
|
});
|
|
1609
1609
|
|
|
1610
|
-
const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
1610
|
+
const KdsEmptyState = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__scopeId", "data-v-5da4d570"]]);
|
|
1611
1611
|
|
|
1612
|
-
const _sfc_main$
|
|
1612
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
1613
1613
|
__name: "ListItemAccessory",
|
|
1614
1614
|
props: {
|
|
1615
1615
|
accessory: {},
|
|
@@ -1660,7 +1660,7 @@ const kdsListItemVariant = {
|
|
|
1660
1660
|
LARGE: "large"
|
|
1661
1661
|
};
|
|
1662
1662
|
|
|
1663
|
-
const _hoisted_1$
|
|
1663
|
+
const _hoisted_1$E = ["id", "role", "aria-selected", "aria-disabled"];
|
|
1664
1664
|
const _hoisted_2$n = {
|
|
1665
1665
|
key: 0,
|
|
1666
1666
|
class: "accessory"
|
|
@@ -1681,7 +1681,7 @@ const _hoisted_9$1 = {
|
|
|
1681
1681
|
key: 2,
|
|
1682
1682
|
class: "trailing-item-reserve-space"
|
|
1683
1683
|
};
|
|
1684
|
-
const _sfc_main$
|
|
1684
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
1685
1685
|
__name: "KdsListItem",
|
|
1686
1686
|
props: {
|
|
1687
1687
|
id: {},
|
|
@@ -1736,7 +1736,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
1736
1736
|
onClick
|
|
1737
1737
|
}, [
|
|
1738
1738
|
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$n, [
|
|
1739
|
-
createVNode(_sfc_main$
|
|
1739
|
+
createVNode(_sfc_main$_, {
|
|
1740
1740
|
accessory: props.accessory,
|
|
1741
1741
|
size: accessorySize.value,
|
|
1742
1742
|
disabled: __props.disabled
|
|
@@ -1770,29 +1770,29 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
1770
1770
|
size: "small"
|
|
1771
1771
|
}, null, 8, ["name"])) : (openBlock(), createElementBlock("span", _hoisted_9$1))
|
|
1772
1772
|
])
|
|
1773
|
-
], 10, _hoisted_1$
|
|
1773
|
+
], 10, _hoisted_1$E);
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
1776
1776
|
});
|
|
1777
1777
|
|
|
1778
|
-
const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1778
|
+
const KdsListItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-822789ec"]]);
|
|
1779
1779
|
|
|
1780
|
-
const _sfc_main$
|
|
1780
|
+
const _sfc_main$Y = { };
|
|
1781
1781
|
|
|
1782
|
-
const _hoisted_1$
|
|
1782
|
+
const _hoisted_1$D = { class: "kds-list-item-divider" };
|
|
1783
1783
|
|
|
1784
1784
|
function _sfc_render$8(_ctx, _cache) {
|
|
1785
|
-
return (openBlock(), createElementBlock("hr", _hoisted_1$
|
|
1785
|
+
return (openBlock(), createElementBlock("hr", _hoisted_1$D))
|
|
1786
1786
|
}
|
|
1787
|
-
const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$
|
|
1787
|
+
const ListItemDivider = /*#__PURE__*/_export_sfc$1(_sfc_main$Y, [['render',_sfc_render$8],['__scopeId',"data-v-3ee92695"]]);
|
|
1788
1788
|
|
|
1789
|
-
const _hoisted_1$
|
|
1789
|
+
const _hoisted_1$C = { class: "kds-list-item-section-title" };
|
|
1790
1790
|
const _hoisted_2$m = {
|
|
1791
1791
|
key: 0,
|
|
1792
1792
|
class: "icon"
|
|
1793
1793
|
};
|
|
1794
1794
|
const _hoisted_3$f = ["title"];
|
|
1795
|
-
const _sfc_main$
|
|
1795
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
1796
1796
|
__name: "ListItemSectionTitle",
|
|
1797
1797
|
props: {
|
|
1798
1798
|
label: {},
|
|
@@ -1803,7 +1803,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
1803
1803
|
const labelEl = useTemplateRef("labelEl");
|
|
1804
1804
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
1805
1805
|
return (_ctx, _cache) => {
|
|
1806
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1806
|
+
return openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
1807
1807
|
props.leadingIcon ? (openBlock(), createElementBlock("span", _hoisted_2$m, [
|
|
1808
1808
|
createVNode(KdsIcon, {
|
|
1809
1809
|
name: props.leadingIcon,
|
|
@@ -1821,12 +1821,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
1821
1821
|
}
|
|
1822
1822
|
});
|
|
1823
1823
|
|
|
1824
|
-
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
1824
|
+
const ListItemSectionTitle = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["__scopeId", "data-v-53382531"]]);
|
|
1825
1825
|
|
|
1826
|
-
const _hoisted_1$
|
|
1826
|
+
const _hoisted_1$B = ["role", "aria-busy", "aria-label", "aria-activedescendant", "tabindex"];
|
|
1827
1827
|
const _hoisted_2$l = ["role"];
|
|
1828
1828
|
const loadingStateText = "Loading entries";
|
|
1829
|
-
const _sfc_main$
|
|
1829
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
1830
1830
|
__name: "KdsListContainer",
|
|
1831
1831
|
props: {
|
|
1832
1832
|
possibleValues: {},
|
|
@@ -2097,20 +2097,20 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
2097
2097
|
"loading-spinner": __props.loading
|
|
2098
2098
|
}, null, 8, ["headline", "loading-spinner"])
|
|
2099
2099
|
], 8, _hoisted_2$l)) : createCommentVNode("", true)
|
|
2100
|
-
], 16, _hoisted_1$
|
|
2100
|
+
], 16, _hoisted_1$B);
|
|
2101
2101
|
};
|
|
2102
2102
|
}
|
|
2103
2103
|
});
|
|
2104
2104
|
|
|
2105
|
-
const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2105
|
+
const KdsListContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["__scopeId", "data-v-d8750fc1"]]);
|
|
2106
2106
|
|
|
2107
2107
|
const KdsListContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2108
2108
|
__proto__: null,
|
|
2109
2109
|
default: KdsListContainer
|
|
2110
2110
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2111
2111
|
|
|
2112
|
-
const _hoisted_1$
|
|
2113
|
-
const _sfc_main$
|
|
2112
|
+
const _hoisted_1$A = { class: "kds-menu-container" };
|
|
2113
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
2114
2114
|
__name: "KdsMenuContainer",
|
|
2115
2115
|
props: {
|
|
2116
2116
|
id: {},
|
|
@@ -2134,7 +2134,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
2134
2134
|
}
|
|
2135
2135
|
});
|
|
2136
2136
|
return (_ctx, _cache) => {
|
|
2137
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2137
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
2138
2138
|
createVNode(KdsListContainer, {
|
|
2139
2139
|
id: props.id,
|
|
2140
2140
|
ref_key: "listContainerEl",
|
|
@@ -2151,14 +2151,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
2153
|
|
|
2154
|
-
const KdsMenuContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2154
|
+
const KdsMenuContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["__scopeId", "data-v-d87656d8"]]);
|
|
2155
2155
|
|
|
2156
|
-
const _hoisted_1$
|
|
2156
|
+
const _hoisted_1$z = ["id", "popover", "role"];
|
|
2157
2157
|
const _hoisted_2$k = {
|
|
2158
2158
|
key: 0,
|
|
2159
2159
|
class: "kds-popover-default-content"
|
|
2160
2160
|
};
|
|
2161
|
-
const _sfc_main$
|
|
2161
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
2162
2162
|
__name: "KdsPopover",
|
|
2163
2163
|
props: /* @__PURE__ */ mergeModels({
|
|
2164
2164
|
placement: { default: "bottom-left" },
|
|
@@ -2204,19 +2204,19 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2204
2204
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2205
2205
|
props.content?.trim().length ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString(props.content), 1)) : createCommentVNode("", true)
|
|
2206
2206
|
], true)
|
|
2207
|
-
], 46, _hoisted_1$
|
|
2207
|
+
], 46, _hoisted_1$z);
|
|
2208
2208
|
};
|
|
2209
2209
|
}
|
|
2210
2210
|
});
|
|
2211
2211
|
|
|
2212
|
-
const KdsPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2212
|
+
const KdsPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["__scopeId", "data-v-83c11cee"]]);
|
|
2213
2213
|
|
|
2214
2214
|
const KdsPopover$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2215
2215
|
__proto__: null,
|
|
2216
2216
|
default: KdsPopover
|
|
2217
2217
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2218
2218
|
|
|
2219
|
-
const _sfc_main$
|
|
2219
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
2220
2220
|
...{
|
|
2221
2221
|
inheritAttrs: false
|
|
2222
2222
|
},
|
|
@@ -2234,7 +2234,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2234
2234
|
menuMaxHeight: {}
|
|
2235
2235
|
},
|
|
2236
2236
|
emits: ["itemClick"],
|
|
2237
|
-
setup(__props, { emit: __emit }) {
|
|
2237
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2238
2238
|
const props = createPropsRestProxy(__props, ["variant", "menuMaxHeight"]);
|
|
2239
2239
|
const attrs = useAttrs();
|
|
2240
2240
|
const emit = __emit;
|
|
@@ -2248,23 +2248,26 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2248
2248
|
return { ...safeAttrs, ...rest, variant: __props.variant };
|
|
2249
2249
|
});
|
|
2250
2250
|
const isMenuOpen = ref(false);
|
|
2251
|
-
const popoverEl = useTemplateRef("
|
|
2252
|
-
const
|
|
2251
|
+
const popoverEl = useTemplateRef("popover");
|
|
2252
|
+
const menuContainerEl = useTemplateRef("menuContainer");
|
|
2253
|
+
const menuButtonEl = useTemplateRef("menuButton");
|
|
2253
2254
|
const menuId = useId();
|
|
2254
2255
|
watch(isMenuOpen, async (menuOpen) => {
|
|
2255
2256
|
if (!menuOpen) {
|
|
2256
2257
|
return;
|
|
2257
2258
|
}
|
|
2258
2259
|
await nextTick();
|
|
2259
|
-
|
|
2260
|
+
menuContainerEl.value?.focus();
|
|
2260
2261
|
});
|
|
2261
2262
|
const onItemClick = (itemId) => {
|
|
2262
2263
|
isMenuOpen.value = false;
|
|
2263
2264
|
emit("itemClick", itemId);
|
|
2264
2265
|
};
|
|
2266
|
+
__expose({ menuButtonEl });
|
|
2265
2267
|
return (_ctx, _cache) => {
|
|
2266
2268
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2267
|
-
createVNode(_sfc_main$
|
|
2269
|
+
createVNode(_sfc_main$11, mergeProps({
|
|
2270
|
+
ref: "menuButton",
|
|
2268
2271
|
modelValue: isMenuOpen.value,
|
|
2269
2272
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isMenuOpen.value = $event)
|
|
2270
2273
|
}, toggleButtonProps.value, {
|
|
@@ -2274,8 +2277,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2274
2277
|
style: popoverEl.value?.anchorStyle
|
|
2275
2278
|
}), null, 16, ["modelValue", "aria-expanded", "aria-controls", "style"]),
|
|
2276
2279
|
createVNode(KdsPopover, {
|
|
2277
|
-
|
|
2278
|
-
ref: popoverEl,
|
|
2280
|
+
ref: "popover",
|
|
2279
2281
|
modelValue: isMenuOpen.value,
|
|
2280
2282
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isMenuOpen.value = $event),
|
|
2281
2283
|
placement: "bottom-left",
|
|
@@ -2284,8 +2286,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2284
2286
|
default: withCtx(() => [
|
|
2285
2287
|
createVNode(KdsMenuContainer, {
|
|
2286
2288
|
id: unref(menuId),
|
|
2287
|
-
|
|
2288
|
-
ref: menuContainer,
|
|
2289
|
+
ref: "menuContainer",
|
|
2289
2290
|
items: props.items,
|
|
2290
2291
|
"menu-max-height": __props.menuMaxHeight,
|
|
2291
2292
|
onItemClick
|
|
@@ -2298,7 +2299,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2298
2299
|
}
|
|
2299
2300
|
});
|
|
2300
2301
|
|
|
2301
|
-
const _sfc_main$
|
|
2302
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
2302
2303
|
__name: "KdsSplitButton",
|
|
2303
2304
|
props: {
|
|
2304
2305
|
size: { default: "medium" },
|
|
@@ -2309,12 +2310,12 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
2309
2310
|
leadingIcon: {},
|
|
2310
2311
|
trailingIcon: {},
|
|
2311
2312
|
ariaLabel: {},
|
|
2312
|
-
|
|
2313
|
+
items: {},
|
|
2313
2314
|
menuMaxHeight: {}
|
|
2314
2315
|
},
|
|
2315
|
-
emits: ["click", "
|
|
2316
|
+
emits: ["click", "itemClick"],
|
|
2316
2317
|
setup(__props, { emit: __emit }) {
|
|
2317
|
-
const props = createPropsRestProxy(__props, ["variant", "size", "
|
|
2318
|
+
const props = createPropsRestProxy(__props, ["variant", "size", "items", "menuMaxHeight"]);
|
|
2318
2319
|
const emit = __emit;
|
|
2319
2320
|
const isMenuOpen = ref(false);
|
|
2320
2321
|
const popoverEl = useTemplateRef("popoverEl");
|
|
@@ -2322,7 +2323,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
2322
2323
|
const menuId = useId();
|
|
2323
2324
|
function onItemClick(itemId) {
|
|
2324
2325
|
isMenuOpen.value = false;
|
|
2325
|
-
emit("
|
|
2326
|
+
emit("itemClick", itemId);
|
|
2326
2327
|
}
|
|
2327
2328
|
watch(isMenuOpen, (open) => {
|
|
2328
2329
|
if (open) {
|
|
@@ -2371,7 +2372,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
2371
2372
|
id: unref(menuId),
|
|
2372
2373
|
ref_key: "menuContainer",
|
|
2373
2374
|
ref: menuContainer,
|
|
2374
|
-
items: __props.
|
|
2375
|
+
items: __props.items,
|
|
2375
2376
|
"menu-max-height": __props.menuMaxHeight,
|
|
2376
2377
|
"aria-label": "Actions",
|
|
2377
2378
|
onItemClick,
|
|
@@ -2385,7 +2386,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
2385
2386
|
}
|
|
2386
2387
|
});
|
|
2387
2388
|
|
|
2388
|
-
const KdsSplitButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2389
|
+
const KdsSplitButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["__scopeId", "data-v-f72917bd"]]);
|
|
2389
2390
|
|
|
2390
2391
|
const kdsButtonSize = {
|
|
2391
2392
|
XSMALL: "xsmall",
|
|
@@ -2401,9 +2402,9 @@ const kdsButtonVariant = {
|
|
|
2401
2402
|
};
|
|
2402
2403
|
const kdsButtonVariants = Object.values(kdsButtonVariant);
|
|
2403
2404
|
|
|
2404
|
-
const _hoisted_1$
|
|
2405
|
+
const _hoisted_1$y = { class: "kds-label-wrapper" };
|
|
2405
2406
|
const _hoisted_2$j = ["id", "for", "title"];
|
|
2406
|
-
const _sfc_main$
|
|
2407
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
2407
2408
|
__name: "KdsLabel",
|
|
2408
2409
|
props: {
|
|
2409
2410
|
label: {},
|
|
@@ -2420,7 +2421,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
2420
2421
|
const labelEl = useTemplateRef("labelEl");
|
|
2421
2422
|
const { isTruncated } = useKdsIsTruncated(labelEl);
|
|
2422
2423
|
return (_ctx, _cache) => {
|
|
2423
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2424
|
+
return openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
2424
2425
|
createElementVNode("label", {
|
|
2425
2426
|
id: props.id,
|
|
2426
2427
|
ref_key: "labelEl",
|
|
@@ -2439,11 +2440,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
2439
2440
|
}
|
|
2440
2441
|
});
|
|
2441
2442
|
|
|
2442
|
-
const KdsLabel = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2443
|
+
const KdsLabel = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["__scopeId", "data-v-13bea091"]]);
|
|
2443
2444
|
|
|
2444
|
-
const _hoisted_1$
|
|
2445
|
+
const _hoisted_1$x = ["id"];
|
|
2445
2446
|
const _hoisted_2$i = { class: "subtext-text" };
|
|
2446
|
-
const _sfc_main$
|
|
2447
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
2447
2448
|
__name: "KdsSubText",
|
|
2448
2449
|
props: {
|
|
2449
2450
|
id: {},
|
|
@@ -2475,14 +2476,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
2475
2476
|
"aria-hidden": "true"
|
|
2476
2477
|
})) : createCommentVNode("", true),
|
|
2477
2478
|
createElementVNode("span", _hoisted_2$i, toDisplayString(props.subText), 1)
|
|
2478
|
-
], 10, _hoisted_1$
|
|
2479
|
+
], 10, _hoisted_1$x)) : createCommentVNode("", true);
|
|
2479
2480
|
};
|
|
2480
2481
|
}
|
|
2481
2482
|
});
|
|
2482
2483
|
|
|
2483
|
-
const KdsSubText = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2484
|
+
const KdsSubText = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["__scopeId", "data-v-2e6ba10c"]]);
|
|
2484
2485
|
|
|
2485
|
-
const _hoisted_1$
|
|
2486
|
+
const _hoisted_1$w = ["disabled", "title", "aria-label", "aria-checked", "aria-describedby", "aria-invalid"];
|
|
2486
2487
|
const _hoisted_2$h = { class: "control" };
|
|
2487
2488
|
const _hoisted_3$e = {
|
|
2488
2489
|
key: 0,
|
|
@@ -2494,7 +2495,7 @@ const _hoisted_6$4 = {
|
|
|
2494
2495
|
key: 0,
|
|
2495
2496
|
class: "subtext-wrapper"
|
|
2496
2497
|
};
|
|
2497
|
-
const _sfc_main$
|
|
2498
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
2498
2499
|
__name: "BaseCheckbox",
|
|
2499
2500
|
props: /* @__PURE__ */ mergeModels({
|
|
2500
2501
|
disabled: { type: Boolean, default: false },
|
|
@@ -2583,7 +2584,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
2583
2584
|
class: "helper-text"
|
|
2584
2585
|
}, toDisplayString(props.helperText), 9, _hoisted_5$6)) : createCommentVNode("", true)
|
|
2585
2586
|
])) : createCommentVNode("", true)
|
|
2586
|
-
], 10, _hoisted_1$
|
|
2587
|
+
], 10, _hoisted_1$w),
|
|
2587
2588
|
props.subText || props.preserveSubTextSpace ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
2588
2589
|
createVNode(KdsSubText, {
|
|
2589
2590
|
id: unref(descriptionId),
|
|
@@ -2597,9 +2598,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
2597
2598
|
}
|
|
2598
2599
|
});
|
|
2599
2600
|
|
|
2600
|
-
const BaseCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2601
|
+
const BaseCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-7bfc5667"]]);
|
|
2601
2602
|
|
|
2602
|
-
const _sfc_main$
|
|
2603
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
2603
2604
|
__name: "KdsCheckbox",
|
|
2604
2605
|
props: /* @__PURE__ */ mergeModels({
|
|
2605
2606
|
disabled: { type: Boolean, default: false },
|
|
@@ -2629,11 +2630,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
2629
2630
|
}
|
|
2630
2631
|
});
|
|
2631
2632
|
|
|
2632
|
-
const _hoisted_1$
|
|
2633
|
+
const _hoisted_1$v = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
2633
2634
|
const _hoisted_2$g = ["id"];
|
|
2634
2635
|
const _hoisted_3$d = ["title"];
|
|
2635
2636
|
const _hoisted_4$a = { class: "kds-fieldset-content" };
|
|
2636
|
-
const _sfc_main$
|
|
2637
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
2637
2638
|
__name: "BaseFieldsetWrapper",
|
|
2638
2639
|
props: {
|
|
2639
2640
|
id: {},
|
|
@@ -2696,14 +2697,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
2696
2697
|
validating: props.validating,
|
|
2697
2698
|
"preserve-sub-text-space": props.preserveSubTextSpace
|
|
2698
2699
|
}, null, 8, ["id", "sub-text", "error", "validating", "preserve-sub-text-space"])
|
|
2699
|
-
], 40, _hoisted_1$
|
|
2700
|
+
], 40, _hoisted_1$v);
|
|
2700
2701
|
};
|
|
2701
2702
|
}
|
|
2702
2703
|
});
|
|
2703
2704
|
|
|
2704
|
-
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2705
|
+
const BaseFieldsetWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["__scopeId", "data-v-a44731da"]]);
|
|
2705
2706
|
|
|
2706
|
-
const _sfc_main$
|
|
2707
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
2707
2708
|
__name: "KdsCheckboxGroup",
|
|
2708
2709
|
props: /* @__PURE__ */ mergeModels({
|
|
2709
2710
|
id: {},
|
|
@@ -2782,7 +2783,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
2782
2783
|
}
|
|
2783
2784
|
});
|
|
2784
2785
|
|
|
2785
|
-
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2786
|
+
const KdsCheckboxGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["__scopeId", "data-v-c6536296"]]);
|
|
2786
2787
|
|
|
2787
2788
|
const kdsCheckboxGroupAlignment = {
|
|
2788
2789
|
VERTICAL: "vertical",
|
|
@@ -2798,7 +2799,7 @@ const kdsCheckboxValue = {
|
|
|
2798
2799
|
};
|
|
2799
2800
|
const kdsCheckboxValues = Object.values(kdsCheckboxValue);
|
|
2800
2801
|
|
|
2801
|
-
const _hoisted_1$
|
|
2802
|
+
const _hoisted_1$u = ["aria-checked", "aria-describedby", "aria-invalid", "disabled"];
|
|
2802
2803
|
const _hoisted_2$f = { class: "control" };
|
|
2803
2804
|
const _hoisted_3$c = {
|
|
2804
2805
|
key: 0,
|
|
@@ -2810,7 +2811,7 @@ const _hoisted_3$c = {
|
|
|
2810
2811
|
const _hoisted_4$9 = { class: "content" };
|
|
2811
2812
|
const _hoisted_5$5 = { class: "label" };
|
|
2812
2813
|
const _hoisted_6$3 = ["id"];
|
|
2813
|
-
const _sfc_main$
|
|
2814
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
2814
2815
|
__name: "KdsRadioButton",
|
|
2815
2816
|
props: /* @__PURE__ */ mergeModels({
|
|
2816
2817
|
text: {},
|
|
@@ -2867,12 +2868,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
2867
2868
|
class: "helper-text"
|
|
2868
2869
|
}, toDisplayString(props.helperText), 9, _hoisted_6$3)) : createCommentVNode("", true)
|
|
2869
2870
|
])
|
|
2870
|
-
], 10, _hoisted_1$
|
|
2871
|
+
], 10, _hoisted_1$u);
|
|
2871
2872
|
};
|
|
2872
2873
|
}
|
|
2873
2874
|
});
|
|
2874
2875
|
|
|
2875
|
-
const KdsRadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
2876
|
+
const KdsRadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["__scopeId", "data-v-f4f6392a"]]);
|
|
2876
2877
|
|
|
2877
2878
|
const useRadioSelection = ({
|
|
2878
2879
|
selectedId,
|
|
@@ -2994,7 +2995,7 @@ const useRadioSelection = ({
|
|
|
2994
2995
|
};
|
|
2995
2996
|
};
|
|
2996
2997
|
|
|
2997
|
-
const _sfc_main$
|
|
2998
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
2998
2999
|
__name: "KdsRadioButtonGroup",
|
|
2999
3000
|
props: /* @__PURE__ */ mergeModels({
|
|
3000
3001
|
id: {},
|
|
@@ -3069,10 +3070,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
3069
3070
|
}
|
|
3070
3071
|
});
|
|
3071
3072
|
|
|
3072
|
-
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3073
|
+
const KdsRadioButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__scopeId", "data-v-d78ed4a2"]]);
|
|
3073
3074
|
|
|
3074
|
-
const _hoisted_1$
|
|
3075
|
-
const _sfc_main$
|
|
3075
|
+
const _hoisted_1$t = ["aria-checked", "aria-label", "disabled", "tabindex", "title"];
|
|
3076
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
3076
3077
|
__name: "ValueSwitchItem",
|
|
3077
3078
|
props: {
|
|
3078
3079
|
selected: { type: Boolean },
|
|
@@ -3122,12 +3123,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
3122
3123
|
name: props.trailingIcon,
|
|
3123
3124
|
size: __props.size
|
|
3124
3125
|
}, null, 8, ["name", "size"])) : createCommentVNode("", true)
|
|
3125
|
-
], 10, _hoisted_1$
|
|
3126
|
+
], 10, _hoisted_1$t);
|
|
3126
3127
|
};
|
|
3127
3128
|
}
|
|
3128
3129
|
});
|
|
3129
3130
|
|
|
3130
|
-
const ValueSwitchItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3131
|
+
const ValueSwitchItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["__scopeId", "data-v-5c6f0f1f"]]);
|
|
3131
3132
|
|
|
3132
3133
|
const useValueSwitchIconHiding = ({
|
|
3133
3134
|
width,
|
|
@@ -3178,7 +3179,7 @@ const useValueSwitchIconHiding = ({
|
|
|
3178
3179
|
};
|
|
3179
3180
|
};
|
|
3180
3181
|
|
|
3181
|
-
const _sfc_main$
|
|
3182
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
3182
3183
|
__name: "KdsValueSwitch",
|
|
3183
3184
|
props: /* @__PURE__ */ mergeModels({
|
|
3184
3185
|
id: {},
|
|
@@ -3265,7 +3266,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3265
3266
|
}
|
|
3266
3267
|
});
|
|
3267
3268
|
|
|
3268
|
-
const KdsValueSwitch = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3269
|
+
const KdsValueSwitch = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["__scopeId", "data-v-640271e0"]]);
|
|
3269
3270
|
|
|
3270
3271
|
const kdsRadioButtonGroupAlignment = {
|
|
3271
3272
|
VERTICAL: "vertical",
|
|
@@ -3285,7 +3286,7 @@ const kdsValueSwitchVariant = {
|
|
|
3285
3286
|
};
|
|
3286
3287
|
const kdsValueSwitchVariants = Object.values(kdsValueSwitchVariant);
|
|
3287
3288
|
|
|
3288
|
-
const _sfc_main$
|
|
3289
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
3289
3290
|
__name: "BaseFormFieldWrapper",
|
|
3290
3291
|
props: {
|
|
3291
3292
|
id: {},
|
|
@@ -3337,9 +3338,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3337
3338
|
}
|
|
3338
3339
|
});
|
|
3339
3340
|
|
|
3340
|
-
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3341
|
+
const BaseFormFieldWrapper = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__scopeId", "data-v-5d99c134"]]);
|
|
3341
3342
|
|
|
3342
|
-
const _hoisted_1$
|
|
3343
|
+
const _hoisted_1$s = {
|
|
3343
3344
|
key: 0,
|
|
3344
3345
|
class: "icon-wrapper leading"
|
|
3345
3346
|
};
|
|
@@ -3357,7 +3358,7 @@ const _hoisted_6$2 = {
|
|
|
3357
3358
|
key: 5,
|
|
3358
3359
|
class: "icon-wrapper trailing"
|
|
3359
3360
|
};
|
|
3360
|
-
const _sfc_main$
|
|
3361
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
3361
3362
|
__name: "BaseInput",
|
|
3362
3363
|
props: /* @__PURE__ */ mergeModels({
|
|
3363
3364
|
id: {},
|
|
@@ -3436,7 +3437,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3436
3437
|
}),
|
|
3437
3438
|
onClick: handleContainerClick
|
|
3438
3439
|
}, [
|
|
3439
|
-
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
3440
|
+
props.leadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
|
|
3440
3441
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
3441
3442
|
key: 0,
|
|
3442
3443
|
name: props.leadingIcon
|
|
@@ -3488,7 +3489,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3488
3489
|
}),
|
|
3489
3490
|
"aria-disabled": __props.disabled || void 0
|
|
3490
3491
|
}, toDisplayString(props.unit), 11, _hoisted_4$8)) : createCommentVNode("", true),
|
|
3491
|
-
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$
|
|
3492
|
+
__props.clearable && hasValue.value && !__props.disabled ? (openBlock(), createBlock(_sfc_main$14, {
|
|
3492
3493
|
key: 3,
|
|
3493
3494
|
class: "clear-button",
|
|
3494
3495
|
type: "button",
|
|
@@ -3512,7 +3513,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3512
3513
|
}
|
|
3513
3514
|
});
|
|
3514
3515
|
|
|
3515
|
-
const BaseInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
3516
|
+
const BaseInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["__scopeId", "data-v-92291903"]]);
|
|
3516
3517
|
|
|
3517
3518
|
const usePointerHandler = (updateFromEvent) => {
|
|
3518
3519
|
const activePointerId = ref(null);
|
|
@@ -3685,7 +3686,7 @@ const createKdsNumberParser = (params) => {
|
|
|
3685
3686
|
|
|
3686
3687
|
const REPEAT_INITIAL_DELAY_MS = 400;
|
|
3687
3688
|
const REPEAT_INTERVAL_MS = 100;
|
|
3688
|
-
const _sfc_main$
|
|
3689
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
3689
3690
|
__name: "KdsNumberInput",
|
|
3690
3691
|
props: /* @__PURE__ */ mergeModels({
|
|
3691
3692
|
description: {},
|
|
@@ -3871,7 +3872,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3871
3872
|
onBlur: handleBlur
|
|
3872
3873
|
}), {
|
|
3873
3874
|
trailing: withCtx(() => [
|
|
3874
|
-
createVNode(_sfc_main$
|
|
3875
|
+
createVNode(_sfc_main$14, {
|
|
3875
3876
|
type: "button",
|
|
3876
3877
|
size: "xsmall",
|
|
3877
3878
|
variant: "outlined",
|
|
@@ -3884,7 +3885,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3884
3885
|
onPointerleave: stopRepeating,
|
|
3885
3886
|
onPointercancel: stopRepeating
|
|
3886
3887
|
}, null, 8, ["ariaLabel", "disabled"]),
|
|
3887
|
-
createVNode(_sfc_main$
|
|
3888
|
+
createVNode(_sfc_main$14, {
|
|
3888
3889
|
type: "button",
|
|
3889
3890
|
size: "xsmall",
|
|
3890
3891
|
variant: "outlined",
|
|
@@ -3907,7 +3908,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3907
3908
|
}
|
|
3908
3909
|
});
|
|
3909
3910
|
|
|
3910
|
-
const _sfc_main$
|
|
3911
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
3911
3912
|
__name: "KdsTextInput",
|
|
3912
3913
|
props: /* @__PURE__ */ mergeModels({
|
|
3913
3914
|
description: {},
|
|
@@ -4077,7 +4078,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
4077
4078
|
}
|
|
4078
4079
|
});
|
|
4079
4080
|
|
|
4080
|
-
const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4081
|
+
const KdsTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["__scopeId", "data-v-1740ce83"]]);
|
|
4081
4082
|
|
|
4082
4083
|
const HEX_RADIX = 16;
|
|
4083
4084
|
const RGB_MAX = 255;
|
|
@@ -4224,8 +4225,8 @@ const removeAlphaFromHexInput = (next) => {
|
|
|
4224
4225
|
return next;
|
|
4225
4226
|
};
|
|
4226
4227
|
|
|
4227
|
-
const _hoisted_1$
|
|
4228
|
-
const _sfc_main$
|
|
4228
|
+
const _hoisted_1$r = ["aria-label", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-valuetext"];
|
|
4229
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
4229
4230
|
__name: "ColorPickerSlider",
|
|
4230
4231
|
props: /* @__PURE__ */ mergeModels({
|
|
4231
4232
|
label: {},
|
|
@@ -4309,14 +4310,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
4309
4310
|
onKeydown: onKeyDown
|
|
4310
4311
|
}, [..._cache[5] || (_cache[5] = [
|
|
4311
4312
|
createElementVNode("div", { class: "handle" }, null, -1)
|
|
4312
|
-
])], 40, _hoisted_1$
|
|
4313
|
+
])], 40, _hoisted_1$r);
|
|
4313
4314
|
};
|
|
4314
4315
|
}
|
|
4315
4316
|
});
|
|
4316
4317
|
|
|
4317
|
-
const ColorPickerSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4318
|
+
const ColorPickerSlider = /* @__PURE__ */ _export_sfc$1(_sfc_main$D, [["__scopeId", "data-v-f4be2bd4"]]);
|
|
4318
4319
|
|
|
4319
|
-
const _hoisted_1$
|
|
4320
|
+
const _hoisted_1$q = { class: "kds-color-picker" };
|
|
4320
4321
|
const _hoisted_2$d = ["aria-valuetext"];
|
|
4321
4322
|
const _hoisted_3$a = { class: "value-inputs" };
|
|
4322
4323
|
const DEFAULT_HUE_DEG = 270;
|
|
@@ -4332,7 +4333,7 @@ const KEYBOARD_LARGE_STEP = 0.1;
|
|
|
4332
4333
|
const HUE_KEYBOARD_STEP_DEG = 1;
|
|
4333
4334
|
const HUE_KEYBOARD_LARGE_STEP_DEG = 10;
|
|
4334
4335
|
const TO_BOTTOM_GRADIENT = "linear-gradient(to bottom, transparent, black)";
|
|
4335
|
-
const _sfc_main$
|
|
4336
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
4336
4337
|
__name: "ColorPicker",
|
|
4337
4338
|
props: {
|
|
4338
4339
|
"modelValue": { default: "" },
|
|
@@ -4480,7 +4481,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
4480
4481
|
}
|
|
4481
4482
|
};
|
|
4482
4483
|
return (_ctx, _cache) => {
|
|
4483
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4484
|
+
return openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
4484
4485
|
createElementVNode("div", {
|
|
4485
4486
|
ref_key: "colorspaceEl",
|
|
4486
4487
|
ref: colorspaceEl,
|
|
@@ -4551,7 +4552,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
4551
4552
|
"onUpdate:modelValue": updateFromTextValue,
|
|
4552
4553
|
onFocusout: onHexInputFocusOut
|
|
4553
4554
|
}, null, 8, ["model-value"]),
|
|
4554
|
-
createVNode(_sfc_main$
|
|
4555
|
+
createVNode(_sfc_main$F, {
|
|
4555
4556
|
"model-value": alphaPercent.value,
|
|
4556
4557
|
ariaLabel: "Alpha percentage",
|
|
4557
4558
|
min: 0,
|
|
@@ -4566,7 +4567,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
4566
4567
|
}
|
|
4567
4568
|
});
|
|
4568
4569
|
|
|
4569
|
-
const ColorPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4570
|
+
const ColorPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-2daeaa68"]]);
|
|
4570
4571
|
|
|
4571
4572
|
const HEX_LENGTH_1 = 1;
|
|
4572
4573
|
const HEX_LENGTH_2 = 2;
|
|
@@ -4640,7 +4641,7 @@ const useColorInputValidationOnFocusOut = (modelValue) => {
|
|
|
4640
4641
|
return { handleFocusOut };
|
|
4641
4642
|
};
|
|
4642
4643
|
|
|
4643
|
-
const _sfc_main$
|
|
4644
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
4644
4645
|
__name: "KdsColorInput",
|
|
4645
4646
|
props: /* @__PURE__ */ mergeModels({
|
|
4646
4647
|
description: {},
|
|
@@ -4703,7 +4704,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
4703
4704
|
}, null, 8, ["color", "style"])
|
|
4704
4705
|
]),
|
|
4705
4706
|
trailing: withCtx(() => [
|
|
4706
|
-
createVNode(unref(_sfc_main$
|
|
4707
|
+
createVNode(unref(_sfc_main$11), {
|
|
4707
4708
|
modelValue: open.value,
|
|
4708
4709
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
4709
4710
|
size: "xsmall",
|
|
@@ -4743,7 +4744,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
4743
4744
|
}
|
|
4744
4745
|
});
|
|
4745
4746
|
|
|
4746
|
-
const _sfc_main$
|
|
4747
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
4747
4748
|
__name: "KdsPasswordInput",
|
|
4748
4749
|
props: /* @__PURE__ */ mergeModels({
|
|
4749
4750
|
description: {},
|
|
@@ -4804,7 +4805,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
4804
4805
|
onBlur: handleBlur
|
|
4805
4806
|
}), {
|
|
4806
4807
|
trailing: withCtx(() => [
|
|
4807
|
-
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$
|
|
4808
|
+
__props.showVisibilityToggle ? (openBlock(), createBlock(_sfc_main$11, {
|
|
4808
4809
|
key: 0,
|
|
4809
4810
|
modelValue: showValue.value,
|
|
4810
4811
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showValue.value = $event),
|
|
@@ -4845,7 +4846,7 @@ const kdsPasswordInputAutocompletes = Object.values(
|
|
|
4845
4846
|
kdsPasswordInputAutocomplete
|
|
4846
4847
|
);
|
|
4847
4848
|
|
|
4848
|
-
const _sfc_main$
|
|
4849
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
4849
4850
|
__name: "KdsUsernameInput",
|
|
4850
4851
|
props: /* @__PURE__ */ mergeModels({
|
|
4851
4852
|
description: {},
|
|
@@ -14685,7 +14686,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
|
|
|
14685
14686
|
};
|
|
14686
14687
|
}
|
|
14687
14688
|
});
|
|
14688
|
-
const _hoisted_1$
|
|
14689
|
+
const _hoisted_1$p = {
|
|
14689
14690
|
key: 0,
|
|
14690
14691
|
class: "vc-time-header"
|
|
14691
14692
|
};
|
|
@@ -14726,7 +14727,7 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
14726
14727
|
}, [
|
|
14727
14728
|
createVNode(_sfc_main$i$1, { name: "time-header" }, {
|
|
14728
14729
|
default: withCtx(() => [
|
|
14729
|
-
unref(showHeader) && unref(date) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
14730
|
+
unref(showHeader) && unref(date) ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
14730
14731
|
createElementVNode("span", _hoisted_2$c, toDisplayString(unref(locale).formatDate(unref(date), "WWW")), 1),
|
|
14731
14732
|
createElementVNode("span", _hoisted_3$9, toDisplayString(unref(locale).formatDate(unref(date), "MMM")), 1),
|
|
14732
14733
|
createElementVNode("span", _hoisted_4$7, toDisplayString(unref(locale).formatDate(unref(date), "D")), 1),
|
|
@@ -14879,7 +14880,7 @@ const _sfc_main$1$1 = /* @__PURE__ */ defineComponent({
|
|
|
14879
14880
|
};
|
|
14880
14881
|
}
|
|
14881
14882
|
});
|
|
14882
|
-
const _sfc_main$
|
|
14883
|
+
const _sfc_main$y = defineComponent({
|
|
14883
14884
|
inheritAttrs: false,
|
|
14884
14885
|
emits,
|
|
14885
14886
|
props: propsDef,
|
|
@@ -14898,7 +14899,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14898
14899
|
createVNode(_component_DatePickerPopover, normalizeProps(guardReactiveProps(_ctx.$attrs)), null, 16)
|
|
14899
14900
|
], 64)) : (openBlock(), createBlock(_component_DatePickerBase, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16));
|
|
14900
14901
|
}
|
|
14901
|
-
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
14902
|
+
const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render]]);
|
|
14902
14903
|
|
|
14903
14904
|
const tryParseAnyDate = (value) => {
|
|
14904
14905
|
if (!value) {
|
|
@@ -14946,7 +14947,7 @@ const formatDateToString = (date) => {
|
|
|
14946
14947
|
|
|
14947
14948
|
const legacyDateFormat = "yyyy-MM-dd";
|
|
14948
14949
|
const invalidDateFormatMessage = "Invalid date format. The expected date format is yyyy-MM-dd (e.g. 2026-03-11).";
|
|
14949
|
-
const _sfc_main$
|
|
14950
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
14950
14951
|
__name: "KdsDateInput",
|
|
14951
14952
|
props: /* @__PURE__ */ mergeModels({
|
|
14952
14953
|
description: {},
|
|
@@ -15027,7 +15028,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
15027
15028
|
onBlur: onTextInputBlur
|
|
15028
15029
|
}), {
|
|
15029
15030
|
trailing: withCtx(() => [
|
|
15030
|
-
createVNode(_sfc_main$
|
|
15031
|
+
createVNode(_sfc_main$11, {
|
|
15031
15032
|
modelValue: popoverIsVisible.value,
|
|
15032
15033
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => popoverIsVisible.value = $event),
|
|
15033
15034
|
type: "button",
|
|
@@ -15082,8 +15083,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
15082
15083
|
}
|
|
15083
15084
|
});
|
|
15084
15085
|
|
|
15085
|
-
const _hoisted_1$
|
|
15086
|
-
const _sfc_main$
|
|
15086
|
+
const _hoisted_1$o = { class: "kds-date-time-format-popover" };
|
|
15087
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
15087
15088
|
__name: "DateTimeFormatPopover",
|
|
15088
15089
|
props: /* @__PURE__ */ mergeModels({
|
|
15089
15090
|
allDefaultFormats: {},
|
|
@@ -15221,7 +15222,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
15221
15222
|
}));
|
|
15222
15223
|
});
|
|
15223
15224
|
return (_ctx, _cache) => {
|
|
15224
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15225
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
15225
15226
|
modeOptions.value.length > 1 ? (openBlock(), createBlock(KdsValueSwitch, {
|
|
15226
15227
|
key: 0,
|
|
15227
15228
|
"model-value": effectiveSelectedMode.value,
|
|
@@ -15253,9 +15254,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
15253
15254
|
}
|
|
15254
15255
|
});
|
|
15255
15256
|
|
|
15256
|
-
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15257
|
+
const DateTimeFormatPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-f75ebe1b"]]);
|
|
15257
15258
|
|
|
15258
|
-
const _sfc_main$
|
|
15259
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
15259
15260
|
__name: "KdsDateTimeFormatInput",
|
|
15260
15261
|
props: /* @__PURE__ */ mergeModels({
|
|
15261
15262
|
description: {},
|
|
@@ -15302,7 +15303,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
15302
15303
|
autocomplete: props.autocomplete
|
|
15303
15304
|
}), {
|
|
15304
15305
|
trailing: withCtx(() => [
|
|
15305
|
-
createVNode(unref(_sfc_main$
|
|
15306
|
+
createVNode(unref(_sfc_main$11), {
|
|
15306
15307
|
modelValue: open.value,
|
|
15307
15308
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
15308
15309
|
size: "xsmall",
|
|
@@ -15388,7 +15389,7 @@ const buildRegexFromPatternInput = (input, options) => {
|
|
|
15388
15389
|
return `^(?!.*${withCase}).*$`;
|
|
15389
15390
|
};
|
|
15390
15391
|
|
|
15391
|
-
const _sfc_main$
|
|
15392
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
15392
15393
|
__name: "KdsPatternInput",
|
|
15393
15394
|
props: /* @__PURE__ */ mergeModels({
|
|
15394
15395
|
description: {},
|
|
@@ -15471,7 +15472,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15471
15472
|
clearable: ""
|
|
15472
15473
|
}), {
|
|
15473
15474
|
trailing: withCtx(() => [
|
|
15474
|
-
createVNode(_sfc_main$
|
|
15475
|
+
createVNode(_sfc_main$11, {
|
|
15475
15476
|
modelValue: caseSensitive.value,
|
|
15476
15477
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => caseSensitive.value = $event),
|
|
15477
15478
|
size: "xsmall",
|
|
@@ -15481,7 +15482,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15481
15482
|
ariaLabel: "Case sensitivity",
|
|
15482
15483
|
disabled: __props.disabled
|
|
15483
15484
|
}, null, 8, ["modelValue", "title", "disabled"]),
|
|
15484
|
-
createVNode(_sfc_main$
|
|
15485
|
+
createVNode(_sfc_main$11, {
|
|
15485
15486
|
modelValue: excludeMatches.value,
|
|
15486
15487
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => excludeMatches.value = $event),
|
|
15487
15488
|
size: "xsmall",
|
|
@@ -15491,7 +15492,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15491
15492
|
ariaLabel: "Exclude matches",
|
|
15492
15493
|
disabled: __props.disabled
|
|
15493
15494
|
}, null, 8, ["modelValue", "title", "disabled"]),
|
|
15494
|
-
createVNode(_sfc_main$
|
|
15495
|
+
createVNode(_sfc_main$11, {
|
|
15495
15496
|
modelValue: useRegex.value,
|
|
15496
15497
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => useRegex.value = $event),
|
|
15497
15498
|
size: "xsmall",
|
|
@@ -15511,7 +15512,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
15511
15512
|
}
|
|
15512
15513
|
});
|
|
15513
15514
|
|
|
15514
|
-
const _sfc_main$
|
|
15515
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
15515
15516
|
__name: "KdsSearchInput",
|
|
15516
15517
|
props: /* @__PURE__ */ mergeModels({
|
|
15517
15518
|
description: {},
|
|
@@ -15663,11 +15664,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
15663
15664
|
}
|
|
15664
15665
|
});
|
|
15665
15666
|
|
|
15666
|
-
const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15667
|
+
const KdsSearchInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-b1809b6d"]]);
|
|
15667
15668
|
|
|
15668
|
-
const _hoisted_1$
|
|
15669
|
+
const _hoisted_1$n = ["rows", "placeholder", "disabled", "autocomplete"];
|
|
15669
15670
|
const DEFAULT_ROWS = 3;
|
|
15670
|
-
const _sfc_main$
|
|
15671
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
15671
15672
|
__name: "KdsTextarea",
|
|
15672
15673
|
props: /* @__PURE__ */ mergeModels({
|
|
15673
15674
|
description: {},
|
|
@@ -15728,7 +15729,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15728
15729
|
placeholder: __props.placeholder,
|
|
15729
15730
|
disabled: __props.disabled,
|
|
15730
15731
|
autocomplete: props.autocomplete
|
|
15731
|
-
}), null, 16, _hoisted_1$
|
|
15732
|
+
}), null, 16, _hoisted_1$n), [
|
|
15732
15733
|
[vModelText, modelValue.value]
|
|
15733
15734
|
])
|
|
15734
15735
|
]),
|
|
@@ -15738,9 +15739,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
15738
15739
|
}
|
|
15739
15740
|
});
|
|
15740
15741
|
|
|
15741
|
-
const KdsTextarea = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15742
|
+
const KdsTextarea = /* @__PURE__ */ _export_sfc$1(_sfc_main$s, [["__scopeId", "data-v-bdf12ef9"]]);
|
|
15742
15743
|
|
|
15743
|
-
const _hoisted_1$
|
|
15744
|
+
const _hoisted_1$m = ["id", "aria-expanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-controls", "disabled"];
|
|
15744
15745
|
const _hoisted_2$b = {
|
|
15745
15746
|
key: 0,
|
|
15746
15747
|
class: "leading",
|
|
@@ -15751,7 +15752,7 @@ const _hoisted_4$6 = {
|
|
|
15751
15752
|
class: "trailing",
|
|
15752
15753
|
"aria-hidden": "true"
|
|
15753
15754
|
};
|
|
15754
|
-
const _sfc_main$
|
|
15755
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
15755
15756
|
__name: "BaseDropdown",
|
|
15756
15757
|
props: /* @__PURE__ */ mergeModels({
|
|
15757
15758
|
text: {},
|
|
@@ -15824,7 +15825,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
15824
15825
|
onKeydown
|
|
15825
15826
|
}, [
|
|
15826
15827
|
props.accessory ? (openBlock(), createElementBlock("span", _hoisted_2$b, [
|
|
15827
|
-
createVNode(_sfc_main$
|
|
15828
|
+
createVNode(_sfc_main$_, {
|
|
15828
15829
|
accessory: props.accessory,
|
|
15829
15830
|
size: "medium"
|
|
15830
15831
|
}, null, 8, ["accessory"])
|
|
@@ -15842,21 +15843,21 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
15842
15843
|
size: "small"
|
|
15843
15844
|
}, null, 8, ["name"])
|
|
15844
15845
|
])
|
|
15845
|
-
], 42, _hoisted_1$
|
|
15846
|
+
], 42, _hoisted_1$m);
|
|
15846
15847
|
};
|
|
15847
15848
|
}
|
|
15848
15849
|
});
|
|
15849
15850
|
|
|
15850
|
-
const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15851
|
+
const BaseDropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$r, [["__scopeId", "data-v-cf3becf9"]]);
|
|
15851
15852
|
|
|
15852
15853
|
const DROPDOWN_SEARCH_THRESHOLD = 12;
|
|
15853
15854
|
|
|
15854
|
-
const _hoisted_1$
|
|
15855
|
+
const _hoisted_1$l = { class: "kds-dropdown-container" };
|
|
15855
15856
|
const _hoisted_2$a = {
|
|
15856
15857
|
key: 0,
|
|
15857
15858
|
class: "kds-dropdown-container-sticky-top"
|
|
15858
15859
|
};
|
|
15859
|
-
const _sfc_main$
|
|
15860
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
15860
15861
|
__name: "DropdownContainer",
|
|
15861
15862
|
props: /* @__PURE__ */ mergeModels({
|
|
15862
15863
|
emptyText: {},
|
|
@@ -15939,7 +15940,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15939
15940
|
}
|
|
15940
15941
|
});
|
|
15941
15942
|
return (_ctx, _cache) => {
|
|
15942
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
15943
|
+
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
15943
15944
|
searchable.value ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
15944
15945
|
createVNode(BaseInput, {
|
|
15945
15946
|
ref_key: "searchEl",
|
|
@@ -15972,9 +15973,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
15972
15973
|
}
|
|
15973
15974
|
});
|
|
15974
15975
|
|
|
15975
|
-
const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
15976
|
+
const DropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-db105594"]]);
|
|
15976
15977
|
|
|
15977
|
-
const _sfc_main$
|
|
15978
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
15978
15979
|
__name: "KdsDropdown",
|
|
15979
15980
|
props: /* @__PURE__ */ mergeModels({
|
|
15980
15981
|
placeholder: { default: "Select" },
|
|
@@ -16067,9 +16068,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
16067
16068
|
}
|
|
16068
16069
|
});
|
|
16069
16070
|
|
|
16070
|
-
const _hoisted_1$
|
|
16071
|
+
const _hoisted_1$k = ["disabled"];
|
|
16071
16072
|
const _hoisted_2$9 = ["title"];
|
|
16072
|
-
const _sfc_main$
|
|
16073
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
16073
16074
|
__name: "KdsListItemButton",
|
|
16074
16075
|
props: {
|
|
16075
16076
|
label: {},
|
|
@@ -16100,20 +16101,20 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
16100
16101
|
class: "label",
|
|
16101
16102
|
title: unref(isLabelTruncated) ? props.label : void 0
|
|
16102
16103
|
}, toDisplayString(props.label), 9, _hoisted_2$9)
|
|
16103
|
-
], 8, _hoisted_1$
|
|
16104
|
+
], 8, _hoisted_1$k);
|
|
16104
16105
|
};
|
|
16105
16106
|
}
|
|
16106
16107
|
});
|
|
16107
16108
|
|
|
16108
|
-
const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
16109
|
+
const KdsListItemButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["__scopeId", "data-v-13945d12"]]);
|
|
16109
16110
|
|
|
16110
|
-
const _hoisted_1$
|
|
16111
|
+
const _hoisted_1$j = { class: "kds-multi-select-dropdown-options" };
|
|
16111
16112
|
const _hoisted_2$8 = { class: "kds-multi-select-dropdown-search" };
|
|
16112
16113
|
const _hoisted_3$7 = {
|
|
16113
16114
|
key: 0,
|
|
16114
16115
|
class: "kds-multi-select-dropdown-footer"
|
|
16115
16116
|
};
|
|
16116
|
-
const _sfc_main$
|
|
16117
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
16117
16118
|
__name: "MultiSelectDropdownContainer",
|
|
16118
16119
|
props: /* @__PURE__ */ mergeModels({
|
|
16119
16120
|
emptyText: {},
|
|
@@ -16229,7 +16230,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
16229
16230
|
}
|
|
16230
16231
|
});
|
|
16231
16232
|
return (_ctx, _cache) => {
|
|
16232
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16233
|
+
return openBlock(), createElementBlock("div", _hoisted_1$j, [
|
|
16233
16234
|
createElementVNode("div", _hoisted_2$8, [
|
|
16234
16235
|
createVNode(BaseInput, {
|
|
16235
16236
|
ref_key: "searchEl",
|
|
@@ -16272,9 +16273,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
16272
16273
|
}
|
|
16273
16274
|
});
|
|
16274
16275
|
|
|
16275
|
-
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
16276
|
+
const MultiSelectDropdownContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-9b631765"]]);
|
|
16276
16277
|
|
|
16277
|
-
const _sfc_main$
|
|
16278
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
16278
16279
|
__name: "KdsMultiSelectDropdown",
|
|
16279
16280
|
props: /* @__PURE__ */ mergeModels({
|
|
16280
16281
|
placeholder: { default: "Select" },
|
|
@@ -16401,9 +16402,9 @@ const kdsDimensionComponentHeight20x = 320;
|
|
|
16401
16402
|
const kdsSpacingContainer0p10x = 1;
|
|
16402
16403
|
const kdsSpacingContainer0p25x = 4;
|
|
16403
16404
|
|
|
16404
|
-
const _hoisted_1$
|
|
16405
|
+
const _hoisted_1$i = { class: "kds-resize-handle-area" };
|
|
16405
16406
|
const _hoisted_2$7 = ["aria-label"];
|
|
16406
|
-
const _sfc_main$
|
|
16407
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
16407
16408
|
__name: "ResizeHandle",
|
|
16408
16409
|
props: {
|
|
16409
16410
|
numberOfHandles: { default: 1 },
|
|
@@ -16425,7 +16426,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16425
16426
|
return `calc((100% - ${n - 1} * ${gap}) / ${2 * n})`;
|
|
16426
16427
|
});
|
|
16427
16428
|
return (_ctx, _cache) => {
|
|
16428
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16429
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
16429
16430
|
(openBlock(true), createElementBlock(Fragment, null, renderList(normalizedNumberOfHandles.value, (i) => {
|
|
16430
16431
|
return openBlock(), createElementBlock("button", {
|
|
16431
16432
|
key: i,
|
|
@@ -16441,15 +16442,15 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
16441
16442
|
}
|
|
16442
16443
|
});
|
|
16443
16444
|
|
|
16444
|
-
const ResizeHandle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
16445
|
+
const ResizeHandle = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__scopeId", "data-v-df3803d4"]]);
|
|
16445
16446
|
|
|
16446
|
-
const _hoisted_1$
|
|
16447
|
+
const _hoisted_1$h = {
|
|
16447
16448
|
ref: "content",
|
|
16448
16449
|
class: "kds-resize-container-content"
|
|
16449
16450
|
};
|
|
16450
16451
|
const DEFAULT_INITIAL_HEIGHT = 200;
|
|
16451
16452
|
const KEYBOARD_RESIZE_STEP = 10;
|
|
16452
|
-
const _sfc_main$
|
|
16453
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
16453
16454
|
__name: "KdsResizeContainer",
|
|
16454
16455
|
props: {
|
|
16455
16456
|
height: { default: () => DEFAULT_INITIAL_HEIGHT },
|
|
@@ -16512,7 +16513,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16512
16513
|
return openBlock(), createElementBlock("div", {
|
|
16513
16514
|
class: normalizeClass(["kds-resize-container", { dragging: unref(activePointerId) !== null }])
|
|
16514
16515
|
}, [
|
|
16515
|
-
createElementVNode("div", _hoisted_1$
|
|
16516
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
16516
16517
|
renderSlot(_ctx.$slots, "default", { contentStyle: contentStyle.value }, void 0, true)
|
|
16517
16518
|
], 512),
|
|
16518
16519
|
createVNode(ResizeHandle, {
|
|
@@ -16530,7 +16531,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
16530
16531
|
}
|
|
16531
16532
|
});
|
|
16532
16533
|
|
|
16533
|
-
const KdsResizeContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
16534
|
+
const KdsResizeContainer = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__scopeId", "data-v-46b33b01"]]);
|
|
16534
16535
|
|
|
16535
16536
|
const CLICK_META_KEY_TIMEOUT = 250;
|
|
16536
16537
|
const useMultiSelectListBoxSelection = ({
|
|
@@ -16822,7 +16823,7 @@ const useMultiSelectListBoxSelection = ({
|
|
|
16822
16823
|
};
|
|
16823
16824
|
};
|
|
16824
16825
|
|
|
16825
|
-
const _hoisted_1$
|
|
16826
|
+
const _hoisted_1$g = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-label", "aria-invalid", "aria-activedescendant", "aria-disabled", "onKeydown"];
|
|
16826
16827
|
const _hoisted_2$6 = { class: "kds-multiselect-list-box-content-grid" };
|
|
16827
16828
|
const _hoisted_3$6 = {
|
|
16828
16829
|
key: 0,
|
|
@@ -16832,7 +16833,7 @@ const _hoisted_4$5 = {
|
|
|
16832
16833
|
key: 0,
|
|
16833
16834
|
class: "kds-multiselect-empty"
|
|
16834
16835
|
};
|
|
16835
|
-
const _sfc_main$
|
|
16836
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
16836
16837
|
__name: "KdsMultiSelectListBox",
|
|
16837
16838
|
props: /* @__PURE__ */ mergeModels({
|
|
16838
16839
|
description: {},
|
|
@@ -17132,7 +17133,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17132
17133
|
}, null, 8, ["id", "label", "accessory", "missing", "data-option-index", "selected", "disabled", "active", "trailing-icon"])
|
|
17133
17134
|
])) : createCommentVNode("", true)
|
|
17134
17135
|
])
|
|
17135
|
-
], 16, _hoisted_1$
|
|
17136
|
+
], 16, _hoisted_1$g),
|
|
17136
17137
|
visiblePossibleValues.value.length === 0 && !visibleBottomValue.value ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
17137
17138
|
createVNode(KdsEmptyState, {
|
|
17138
17139
|
headline: __props.loading ? "Loading data…" : __props.emptyStateLabel,
|
|
@@ -17150,9 +17151,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
17150
17151
|
}
|
|
17151
17152
|
});
|
|
17152
17153
|
|
|
17153
|
-
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17154
|
+
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__scopeId", "data-v-24af1af0"]]);
|
|
17154
17155
|
|
|
17155
|
-
const _hoisted_1$
|
|
17156
|
+
const _hoisted_1$f = { class: "kds-list-column" };
|
|
17156
17157
|
const _hoisted_2$5 = { class: "kds-list-header" };
|
|
17157
17158
|
const _hoisted_3$5 = { class: "kds-list-label" };
|
|
17158
17159
|
const _hoisted_4$4 = {
|
|
@@ -17168,7 +17169,7 @@ const _hoisted_9 = {
|
|
|
17168
17169
|
class: "kds-list-count"
|
|
17169
17170
|
};
|
|
17170
17171
|
const UNKNOWN_VALUE_ID = "__unknown-value-option__";
|
|
17171
|
-
const _sfc_main$
|
|
17172
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
17172
17173
|
__name: "TwinListBody",
|
|
17173
17174
|
props: /* @__PURE__ */ mergeModels({
|
|
17174
17175
|
disabled: { type: Boolean, default: false },
|
|
@@ -17342,7 +17343,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17342
17343
|
class: "kds-twin-list-body",
|
|
17343
17344
|
style: normalizeStyle(contentStyle)
|
|
17344
17345
|
}, [
|
|
17345
|
-
createElementVNode("div", _hoisted_1$
|
|
17346
|
+
createElementVNode("div", _hoisted_1$f, [
|
|
17346
17347
|
createElementVNode("div", _hoisted_2$5, [
|
|
17347
17348
|
createElementVNode("span", _hoisted_3$5, toDisplayString(__props.excludeLabel), 1),
|
|
17348
17349
|
!__props.loading && __props.searchTerm ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString(leftOptions.value.length) + " of " + toDisplayString(excludedItems.value.length), 1)) : createCommentVNode("", true)
|
|
@@ -17365,7 +17366,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17365
17366
|
}, null, 8, ["modelValue", "possible-values", "ariaLabel", "disabled", "error", "loading", "empty-state-label", "bottom-value"])
|
|
17366
17367
|
]),
|
|
17367
17368
|
createElementVNode("div", _hoisted_5$1, [
|
|
17368
|
-
createVNode(unref(_sfc_main$
|
|
17369
|
+
createVNode(unref(_sfc_main$14), {
|
|
17369
17370
|
"leading-icon": "chevron-right",
|
|
17370
17371
|
ariaLabel: "Move selected values right",
|
|
17371
17372
|
title: "Move selected values right",
|
|
@@ -17374,7 +17375,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17374
17375
|
disabled: effectiveDisabled.value || leftSelected.value.length === 0,
|
|
17375
17376
|
onClick: _cache[2] || (_cache[2] = ($event) => moveRight(leftSelected.value))
|
|
17376
17377
|
}, null, 8, ["disabled"]),
|
|
17377
|
-
createVNode(unref(_sfc_main$
|
|
17378
|
+
createVNode(unref(_sfc_main$14), {
|
|
17378
17379
|
"leading-icon": "chevron-right-double",
|
|
17379
17380
|
ariaLabel: "Move all values right",
|
|
17380
17381
|
title: "Move all values right",
|
|
@@ -17386,7 +17387,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17386
17387
|
...showUnknownValues.value && !modelValue.value.includeUnknownValues ? [UNKNOWN_VALUE_ID] : []
|
|
17387
17388
|
]))
|
|
17388
17389
|
}, null, 8, ["disabled"]),
|
|
17389
|
-
createVNode(unref(_sfc_main$
|
|
17390
|
+
createVNode(unref(_sfc_main$14), {
|
|
17390
17391
|
"leading-icon": "chevron-left",
|
|
17391
17392
|
ariaLabel: "Move selected values left",
|
|
17392
17393
|
title: "Move selected values left",
|
|
@@ -17395,7 +17396,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17395
17396
|
disabled: effectiveDisabled.value || rightSelected.value.length === 0,
|
|
17396
17397
|
onClick: _cache[4] || (_cache[4] = ($event) => moveLeft(rightSelected.value))
|
|
17397
17398
|
}, null, 8, ["disabled"]),
|
|
17398
|
-
createVNode(unref(_sfc_main$
|
|
17399
|
+
createVNode(unref(_sfc_main$14), {
|
|
17399
17400
|
"leading-icon": "chevron-left-double",
|
|
17400
17401
|
ariaLabel: "Move all values left",
|
|
17401
17402
|
title: "Move all values left",
|
|
@@ -17438,7 +17439,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
17438
17439
|
}
|
|
17439
17440
|
});
|
|
17440
17441
|
|
|
17441
|
-
const TwinListBody = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17442
|
+
const TwinListBody = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-8a9e1b15"]]);
|
|
17442
17443
|
|
|
17443
17444
|
const kdsTwinListSearchMode = {
|
|
17444
17445
|
MANUAL: "manual",
|
|
@@ -17447,7 +17448,7 @@ const kdsTwinListSearchMode = {
|
|
|
17447
17448
|
};
|
|
17448
17449
|
const kdsTwinListSearchModes = Object.values(kdsTwinListSearchMode);
|
|
17449
17450
|
|
|
17450
|
-
const _sfc_main$
|
|
17451
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
17451
17452
|
__name: "TwinListHeader",
|
|
17452
17453
|
props: /* @__PURE__ */ mergeModels({
|
|
17453
17454
|
filterTypes: { default: () => void 0 },
|
|
@@ -17523,7 +17524,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17523
17524
|
ariaLabel: "Search values",
|
|
17524
17525
|
placeholder: "Search",
|
|
17525
17526
|
disabled: __props.disabled
|
|
17526
|
-
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$
|
|
17527
|
+
}, null, 8, ["modelValue", "disabled"])) : mode.value === unref(kdsTwinListSearchMode).PATTERN ? (openBlock(), createBlock(unref(_sfc_main$u), {
|
|
17527
17528
|
key: 2,
|
|
17528
17529
|
modelValue: pattern.value,
|
|
17529
17530
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pattern.value = $event),
|
|
@@ -17537,7 +17538,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17537
17538
|
placeholder: "Pattern",
|
|
17538
17539
|
disabled: __props.disabled,
|
|
17539
17540
|
"onUpdate:regex": _cache[6] || (_cache[6] = ($event) => emit("update:regex", $event))
|
|
17540
|
-
}, null, 8, ["modelValue", "case-sensitive", "exclude-matches", "use-regex", "disabled"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
17541
|
+
}, null, 8, ["modelValue", "case-sensitive", "exclude-matches", "use-regex", "disabled"])) : (openBlock(), createBlock(unref(_sfc_main$m), {
|
|
17541
17542
|
key: 3,
|
|
17542
17543
|
modelValue: selectedTypes.value,
|
|
17543
17544
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => selectedTypes.value = $event),
|
|
@@ -17551,8 +17552,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
17551
17552
|
}
|
|
17552
17553
|
});
|
|
17553
17554
|
|
|
17554
|
-
const _hoisted_1$
|
|
17555
|
-
const _sfc_main$
|
|
17555
|
+
const _hoisted_1$e = { class: "kds-twin-list" };
|
|
17556
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
17556
17557
|
__name: "KdsTwinList",
|
|
17557
17558
|
props: /* @__PURE__ */ mergeModels({
|
|
17558
17559
|
description: {},
|
|
@@ -17683,8 +17684,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
17683
17684
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
17684
17685
|
}, {
|
|
17685
17686
|
default: withCtx(() => [
|
|
17686
|
-
createElementVNode("div", _hoisted_1$
|
|
17687
|
-
createVNode(_sfc_main$
|
|
17687
|
+
createElementVNode("div", _hoisted_1$e, [
|
|
17688
|
+
createVNode(_sfc_main$h, {
|
|
17688
17689
|
mode: mode.value,
|
|
17689
17690
|
"onUpdate:mode": _cache[0] || (_cache[0] = ($event) => mode.value = $event),
|
|
17690
17691
|
pattern: pattern.value,
|
|
@@ -17725,7 +17726,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
17725
17726
|
}
|
|
17726
17727
|
});
|
|
17727
17728
|
|
|
17728
|
-
const KdsTwinList = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17729
|
+
const KdsTwinList = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-1a9327b5"]]);
|
|
17729
17730
|
|
|
17730
17731
|
const useSortableListBoxReorder = ({
|
|
17731
17732
|
orderedIds,
|
|
@@ -17784,11 +17785,11 @@ const useSortableListBoxReorder = ({
|
|
|
17784
17785
|
};
|
|
17785
17786
|
};
|
|
17786
17787
|
|
|
17787
|
-
const _hoisted_1$
|
|
17788
|
+
const _hoisted_1$d = { class: "kds-sortable-list-box-wrapper" };
|
|
17788
17789
|
const _hoisted_2$4 = { class: "kds-sortable-top-buttons" };
|
|
17789
17790
|
const _hoisted_3$4 = { class: "kds-sortable-top-buttons-left" };
|
|
17790
17791
|
const _hoisted_4$3 = { class: "kds-sortable-footer-buttons" };
|
|
17791
|
-
const _sfc_main$
|
|
17792
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
17792
17793
|
__name: "KdsSortableListBox",
|
|
17793
17794
|
props: /* @__PURE__ */ mergeModels({
|
|
17794
17795
|
possibleValues: {},
|
|
@@ -17845,10 +17846,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17845
17846
|
"preserve-sub-text-space": __props.preserveSubTextSpace
|
|
17846
17847
|
}), {
|
|
17847
17848
|
default: withCtx(() => [
|
|
17848
|
-
createElementVNode("div", _hoisted_1$
|
|
17849
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
17849
17850
|
createElementVNode("div", _hoisted_2$4, [
|
|
17850
17851
|
createElementVNode("div", _hoisted_3$4, [
|
|
17851
|
-
createVNode(_sfc_main$
|
|
17852
|
+
createVNode(_sfc_main$14, {
|
|
17852
17853
|
size: "small",
|
|
17853
17854
|
variant: "transparent",
|
|
17854
17855
|
"leading-icon": "sort-descending",
|
|
@@ -17856,7 +17857,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17856
17857
|
disabled: __props.disabled,
|
|
17857
17858
|
onClick: _cache[0] || (_cache[0] = ($event) => applyReorder(unref(sortByText)(true, optionLookup.value)))
|
|
17858
17859
|
}, null, 8, ["disabled"]),
|
|
17859
|
-
createVNode(_sfc_main$
|
|
17860
|
+
createVNode(_sfc_main$14, {
|
|
17860
17861
|
size: "small",
|
|
17861
17862
|
variant: "transparent",
|
|
17862
17863
|
"leading-icon": "sort-ascending",
|
|
@@ -17865,7 +17866,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17865
17866
|
onClick: _cache[1] || (_cache[1] = ($event) => applyReorder(unref(sortByText)(false, optionLookup.value)))
|
|
17866
17867
|
}, null, 8, ["disabled"])
|
|
17867
17868
|
]),
|
|
17868
|
-
createVNode(_sfc_main$
|
|
17869
|
+
createVNode(_sfc_main$14, {
|
|
17869
17870
|
size: "small",
|
|
17870
17871
|
variant: "transparent",
|
|
17871
17872
|
destructive: "",
|
|
@@ -17887,7 +17888,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17887
17888
|
/* fallback only for TS */
|
|
17888
17889
|
}, null, 8, ["modelValue", "possible-values", "disabled", "error", "ariaLabel"]),
|
|
17889
17890
|
createElementVNode("div", _hoisted_4$3, [
|
|
17890
|
-
createVNode(_sfc_main$
|
|
17891
|
+
createVNode(_sfc_main$14, {
|
|
17891
17892
|
size: "small",
|
|
17892
17893
|
variant: "transparent",
|
|
17893
17894
|
"leading-icon": "to-top",
|
|
@@ -17896,7 +17897,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17896
17897
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
17897
17898
|
onClick: moveToTop
|
|
17898
17899
|
}, null, 8, ["disabled"]),
|
|
17899
|
-
createVNode(_sfc_main$
|
|
17900
|
+
createVNode(_sfc_main$14, {
|
|
17900
17901
|
size: "small",
|
|
17901
17902
|
variant: "transparent",
|
|
17902
17903
|
"leading-icon": "to-bottom",
|
|
@@ -17905,7 +17906,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17905
17906
|
disabled: __props.disabled || !unref(canMoveDown),
|
|
17906
17907
|
onClick: moveToBottom
|
|
17907
17908
|
}, null, 8, ["disabled"]),
|
|
17908
|
-
createVNode(_sfc_main$
|
|
17909
|
+
createVNode(_sfc_main$14, {
|
|
17909
17910
|
size: "small",
|
|
17910
17911
|
variant: "transparent",
|
|
17911
17912
|
"leading-icon": "arrow-up",
|
|
@@ -17914,7 +17915,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17914
17915
|
disabled: __props.disabled || !unref(canMoveUp),
|
|
17915
17916
|
onClick: moveUp
|
|
17916
17917
|
}, null, 8, ["disabled"]),
|
|
17917
|
-
createVNode(_sfc_main$
|
|
17918
|
+
createVNode(_sfc_main$14, {
|
|
17918
17919
|
size: "small",
|
|
17919
17920
|
variant: "transparent",
|
|
17920
17921
|
"leading-icon": "arrow-down",
|
|
@@ -17932,10 +17933,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
17932
17933
|
}
|
|
17933
17934
|
});
|
|
17934
17935
|
|
|
17935
|
-
const KdsSortableListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17936
|
+
const KdsSortableListBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__scopeId", "data-v-ee7b63e2"]]);
|
|
17936
17937
|
|
|
17937
|
-
const _hoisted_1$
|
|
17938
|
-
const _sfc_main$
|
|
17938
|
+
const _hoisted_1$c = { class: "kds-info-popover-content" };
|
|
17939
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
17939
17940
|
__name: "InfoPopover",
|
|
17940
17941
|
props: {
|
|
17941
17942
|
content: {}
|
|
@@ -17943,7 +17944,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
17943
17944
|
setup(__props) {
|
|
17944
17945
|
const props = __props;
|
|
17945
17946
|
return (_ctx, _cache) => {
|
|
17946
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
17947
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
17947
17948
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
17948
17949
|
createTextVNode(toDisplayString(props.content), 1)
|
|
17949
17950
|
], true)
|
|
@@ -17952,11 +17953,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
17952
17953
|
}
|
|
17953
17954
|
});
|
|
17954
17955
|
|
|
17955
|
-
const InfoPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
17956
|
+
const InfoPopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-951f2a2b"]]);
|
|
17956
17957
|
|
|
17957
|
-
const _hoisted_1$
|
|
17958
|
+
const _hoisted_1$b = ["aria-pressed", "aria-expanded", "aria-controls"];
|
|
17958
17959
|
const TITLE = "Click for more information";
|
|
17959
|
-
const _sfc_main$
|
|
17960
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
17960
17961
|
__name: "KdsInfoToggleButton",
|
|
17961
17962
|
props: /* @__PURE__ */ mergeModels({
|
|
17962
17963
|
content: {},
|
|
@@ -17998,7 +17999,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
17998
17999
|
name: "circle-question",
|
|
17999
18000
|
size: "small"
|
|
18000
18001
|
})
|
|
18001
|
-
], 16, _hoisted_1$
|
|
18002
|
+
], 16, _hoisted_1$b),
|
|
18002
18003
|
createVNode(KdsPopover, {
|
|
18003
18004
|
ref_key: "popoverEl",
|
|
18004
18005
|
ref: popoverEl,
|
|
@@ -18025,18 +18026,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
18025
18026
|
}
|
|
18026
18027
|
});
|
|
18027
18028
|
|
|
18028
|
-
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18029
|
+
const KdsInfoToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-2e9ef96a"]]);
|
|
18029
18030
|
|
|
18030
18031
|
const KdsInfoToggleButton$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
18031
18032
|
__proto__: null,
|
|
18032
18033
|
default: KdsInfoToggleButton
|
|
18033
18034
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
18034
18035
|
|
|
18035
|
-
const _hoisted_1$
|
|
18036
|
+
const _hoisted_1$a = {
|
|
18036
18037
|
class: "kds-variable-popover",
|
|
18037
18038
|
tabindex: "0"
|
|
18038
18039
|
};
|
|
18039
|
-
const _sfc_main$
|
|
18040
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
18040
18041
|
__name: "VariablePopover",
|
|
18041
18042
|
props: {
|
|
18042
18043
|
content: {}
|
|
@@ -18044,7 +18045,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18044
18045
|
setup(__props) {
|
|
18045
18046
|
const props = __props;
|
|
18046
18047
|
return (_ctx, _cache) => {
|
|
18047
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18048
|
+
return openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
18048
18049
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
18049
18050
|
createTextVNode(toDisplayString(props.content), 1)
|
|
18050
18051
|
], true)
|
|
@@ -18053,10 +18054,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
18053
18054
|
}
|
|
18054
18055
|
});
|
|
18055
18056
|
|
|
18056
|
-
const VariablePopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18057
|
+
const VariablePopover = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-8a0c56d0"]]);
|
|
18057
18058
|
|
|
18058
|
-
const _hoisted_1$
|
|
18059
|
-
const _sfc_main$
|
|
18059
|
+
const _hoisted_1$9 = ["title", "aria-label", "aria-pressed", "aria-expanded", "aria-controls"];
|
|
18060
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
18060
18061
|
__name: "KdsVariableToggleButton",
|
|
18061
18062
|
props: /* @__PURE__ */ mergeModels({
|
|
18062
18063
|
content: {},
|
|
@@ -18145,7 +18146,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18145
18146
|
name: iconName.value,
|
|
18146
18147
|
size: "small"
|
|
18147
18148
|
}, null, 8, ["name"])
|
|
18148
|
-
], 16, _hoisted_1$
|
|
18149
|
+
], 16, _hoisted_1$9),
|
|
18149
18150
|
createVNode(KdsPopover, {
|
|
18150
18151
|
ref_key: "popoverEl",
|
|
18151
18152
|
ref: popoverEl,
|
|
@@ -18173,10 +18174,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
18173
18174
|
}
|
|
18174
18175
|
});
|
|
18175
18176
|
|
|
18176
|
-
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18177
|
+
const KdsVariableToggleButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$b, [["__scopeId", "data-v-b6d29842"]]);
|
|
18177
18178
|
|
|
18178
|
-
const _hoisted_1$
|
|
18179
|
-
const _sfc_main$
|
|
18179
|
+
const _hoisted_1$8 = ["aria-label", "aria-labelledby", "aria-pressed", "disabled"];
|
|
18180
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
18180
18181
|
__name: "KdsCardClickable",
|
|
18181
18182
|
props: /* @__PURE__ */ mergeModels({
|
|
18182
18183
|
variant: { default: "filled" },
|
|
@@ -18211,12 +18212,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
18211
18212
|
onClick: handleClick
|
|
18212
18213
|
}, [
|
|
18213
18214
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
18214
|
-
], 10, _hoisted_1$
|
|
18215
|
+
], 10, _hoisted_1$8);
|
|
18215
18216
|
};
|
|
18216
18217
|
}
|
|
18217
18218
|
});
|
|
18218
18219
|
|
|
18219
|
-
const KdsCardClickable = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18220
|
+
const KdsCardClickable = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["__scopeId", "data-v-4607badd"]]);
|
|
18220
18221
|
|
|
18221
18222
|
const kdsCardVariant = {
|
|
18222
18223
|
FILLED: "filled",
|
|
@@ -18225,7 +18226,36 @@ const kdsCardVariant = {
|
|
|
18225
18226
|
};
|
|
18226
18227
|
const kdsCardVariants = Object.values(kdsCardVariant);
|
|
18227
18228
|
|
|
18228
|
-
const
|
|
18229
|
+
const _hoisted_1$7 = { class: "kds-panel-header" };
|
|
18230
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
18231
|
+
__name: "KdsPanelHeader",
|
|
18232
|
+
props: {
|
|
18233
|
+
headline: {}
|
|
18234
|
+
},
|
|
18235
|
+
emits: ["close"],
|
|
18236
|
+
setup(__props, { emit: __emit }) {
|
|
18237
|
+
const emit = __emit;
|
|
18238
|
+
const handleClick = (event) => emit("close", event);
|
|
18239
|
+
return (_ctx, _cache) => {
|
|
18240
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
18241
|
+
createElementVNode("h6", null, toDisplayString(__props.headline), 1),
|
|
18242
|
+
createVNode(_sfc_main$14, {
|
|
18243
|
+
class: "kds-close-button",
|
|
18244
|
+
type: "button",
|
|
18245
|
+
"leading-icon": "x-close",
|
|
18246
|
+
size: "small",
|
|
18247
|
+
ariaLabel: "Close panel",
|
|
18248
|
+
variant: "transparent",
|
|
18249
|
+
onClick: handleClick
|
|
18250
|
+
})
|
|
18251
|
+
]);
|
|
18252
|
+
};
|
|
18253
|
+
}
|
|
18254
|
+
});
|
|
18255
|
+
|
|
18256
|
+
const KdsPanelHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["__scopeId", "data-v-be5bccc5"]]);
|
|
18257
|
+
|
|
18258
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
18229
18259
|
__name: "TabBarItemAccessory",
|
|
18230
18260
|
props: {
|
|
18231
18261
|
accessory: {},
|
|
@@ -18355,7 +18385,7 @@ const useTabBarAdaptiveLayout = ({
|
|
|
18355
18385
|
};
|
|
18356
18386
|
};
|
|
18357
18387
|
|
|
18358
|
-
const _hoisted_1$
|
|
18388
|
+
const _hoisted_1$6 = { class: "kds-tab-bar-wrapper" };
|
|
18359
18389
|
const _hoisted_2$3 = ["id", "title", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick", "onKeydown"];
|
|
18360
18390
|
const _hoisted_3$3 = { class: "kds-tab-label" };
|
|
18361
18391
|
const _hoisted_4$2 = {
|
|
@@ -18363,7 +18393,7 @@ const _hoisted_4$2 = {
|
|
|
18363
18393
|
class: "kds-tab-indicator"
|
|
18364
18394
|
};
|
|
18365
18395
|
const MIN_TAB_WIDTH_TOKEN = "--kds-dimension-component-width-4x";
|
|
18366
|
-
const _sfc_main$
|
|
18396
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
18367
18397
|
__name: "KdsTabBar",
|
|
18368
18398
|
props: /* @__PURE__ */ mergeModels({
|
|
18369
18399
|
tabs: {},
|
|
@@ -18487,7 +18517,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18487
18517
|
{ immediate: true }
|
|
18488
18518
|
);
|
|
18489
18519
|
return (_ctx, _cache) => {
|
|
18490
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
18520
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
18491
18521
|
createElementVNode("div", {
|
|
18492
18522
|
ref_key: "availableWidthContainer",
|
|
18493
18523
|
ref: availableWidthContainer,
|
|
@@ -18517,7 +18547,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18517
18547
|
onClick: ($event) => selectTab(tab),
|
|
18518
18548
|
onKeydown: ($event) => handleKeydown($event, tab)
|
|
18519
18549
|
}, [
|
|
18520
|
-
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$
|
|
18550
|
+
tab.accessory && !(tab.accessory.type === "icon" && unref(shouldHideIcons)) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
18521
18551
|
key: 0,
|
|
18522
18552
|
accessory: tab.accessory,
|
|
18523
18553
|
"icon-size": __props.size === "large" ? "large" : "medium",
|
|
@@ -18533,7 +18563,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
18533
18563
|
}
|
|
18534
18564
|
});
|
|
18535
18565
|
|
|
18536
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18566
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-d5737ccf"]]);
|
|
18537
18567
|
|
|
18538
18568
|
const kdsTabBarSize = {
|
|
18539
18569
|
SMALL: "small",
|
|
@@ -18541,7 +18571,7 @@ const kdsTabBarSize = {
|
|
|
18541
18571
|
};
|
|
18542
18572
|
const kdsTabBarSizes = Object.values(kdsTabBarSize);
|
|
18543
18573
|
|
|
18544
|
-
const _sfc_main$
|
|
18574
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
18545
18575
|
__name: "LoadingSkeletonItem",
|
|
18546
18576
|
props: {
|
|
18547
18577
|
shape: { default: "text" }
|
|
@@ -18556,9 +18586,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
18556
18586
|
}
|
|
18557
18587
|
});
|
|
18558
18588
|
|
|
18559
|
-
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18589
|
+
const LoadingSkeletonItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-86829b28"]]);
|
|
18560
18590
|
|
|
18561
|
-
const _hoisted_1$
|
|
18591
|
+
const _hoisted_1$5 = {
|
|
18562
18592
|
key: 0,
|
|
18563
18593
|
class: "kds-loading-skeleton",
|
|
18564
18594
|
"aria-busy": "true"
|
|
@@ -18573,7 +18603,7 @@ const _hoisted_4$1 = {
|
|
|
18573
18603
|
class: "kds-loading-skeleton-input-with-label"
|
|
18574
18604
|
};
|
|
18575
18605
|
const _hoisted_5 = { class: "kds-loading-skeleton-list-item-text" };
|
|
18576
|
-
const _sfc_main$
|
|
18606
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
18577
18607
|
__name: "KdsLoadingSkeleton",
|
|
18578
18608
|
props: {
|
|
18579
18609
|
variant: { default: "text" },
|
|
@@ -18586,7 +18616,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
18586
18616
|
"v59c08829": _ctx.repeatGap
|
|
18587
18617
|
}));
|
|
18588
18618
|
return (_ctx, _cache) => {
|
|
18589
|
-
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
18619
|
+
return __props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
18590
18620
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.repeat, (index) => {
|
|
18591
18621
|
return openBlock(), createElementBlock(Fragment, {
|
|
18592
18622
|
key: `skeleton-${index}`
|
|
@@ -18641,7 +18671,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
18641
18671
|
}
|
|
18642
18672
|
});
|
|
18643
18673
|
|
|
18644
|
-
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18674
|
+
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-e6597718"]]);
|
|
18645
18675
|
|
|
18646
18676
|
const loadingSkeletonItemShape = {
|
|
18647
18677
|
TEXT: "text",
|
|
@@ -18668,6 +18698,42 @@ const kdsLoadingSkeletonVariants = Object.values(
|
|
|
18668
18698
|
kdsLoadingSkeletonVariant
|
|
18669
18699
|
);
|
|
18670
18700
|
|
|
18701
|
+
const _hoisted_1$4 = { class: "kds-panel-button-bar" };
|
|
18702
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
18703
|
+
__name: "KdsPanelButtonBar",
|
|
18704
|
+
props: {
|
|
18705
|
+
applyLabel: { default: "Apply" },
|
|
18706
|
+
cancelLabel: { default: "Cancel" },
|
|
18707
|
+
disabled: { type: Boolean, default: false }
|
|
18708
|
+
},
|
|
18709
|
+
emits: ["cancel", "apply"],
|
|
18710
|
+
setup(__props, { emit: __emit }) {
|
|
18711
|
+
const emit = __emit;
|
|
18712
|
+
const handleCancel = (event) => emit("cancel", event);
|
|
18713
|
+
const handleApply = (event) => emit("apply", event);
|
|
18714
|
+
return (_ctx, _cache) => {
|
|
18715
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
18716
|
+
createVNode(_sfc_main$14, {
|
|
18717
|
+
disabled: __props.disabled,
|
|
18718
|
+
label: __props.cancelLabel,
|
|
18719
|
+
size: "small",
|
|
18720
|
+
variant: "transparent",
|
|
18721
|
+
onClick: handleCancel
|
|
18722
|
+
}, null, 8, ["disabled", "label"]),
|
|
18723
|
+
createVNode(_sfc_main$14, {
|
|
18724
|
+
disabled: __props.disabled,
|
|
18725
|
+
label: __props.applyLabel,
|
|
18726
|
+
size: "small",
|
|
18727
|
+
variant: "filled",
|
|
18728
|
+
onClick: handleApply
|
|
18729
|
+
}, null, 8, ["disabled", "label"])
|
|
18730
|
+
]);
|
|
18731
|
+
};
|
|
18732
|
+
}
|
|
18733
|
+
});
|
|
18734
|
+
|
|
18735
|
+
const KdsPanelButtonBar = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-aeb00620"]]);
|
|
18736
|
+
|
|
18671
18737
|
const createUnwrappedPromise = () => {
|
|
18672
18738
|
let resolve = () => {
|
|
18673
18739
|
};
|
|
@@ -18715,14 +18781,14 @@ const kdsModalVariants = Object.values(kdsModalVariant);
|
|
|
18715
18781
|
width: kdsModalWidth.MEDIUM,
|
|
18716
18782
|
closedby: kdsModalClosedBy.CLOSEREQUEST});
|
|
18717
18783
|
|
|
18718
|
-
const _hoisted_1$
|
|
18784
|
+
const _hoisted_1$3 = { class: "modal-header" };
|
|
18719
18785
|
const _hoisted_2$1 = { class: "modal-header-headline" };
|
|
18720
18786
|
const _hoisted_3$1 = ["data-variant"];
|
|
18721
18787
|
const _hoisted_4 = {
|
|
18722
18788
|
key: 0,
|
|
18723
18789
|
class: "modal-footer"
|
|
18724
18790
|
};
|
|
18725
|
-
const _sfc_main$
|
|
18791
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
18726
18792
|
...{ inheritAttrs: false },
|
|
18727
18793
|
__name: "KdsModalLayout",
|
|
18728
18794
|
props: {
|
|
@@ -18739,14 +18805,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18739
18805
|
const props = createPropsRestProxy(__props, ["headline", "variant", "overflow"]);
|
|
18740
18806
|
return (_ctx, _cache) => {
|
|
18741
18807
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
18742
|
-
createElementVNode("header", _hoisted_1$
|
|
18808
|
+
createElementVNode("header", _hoisted_1$3, [
|
|
18743
18809
|
props.leadingIcon ? (openBlock(), createBlock(KdsIcon, {
|
|
18744
18810
|
key: 0,
|
|
18745
18811
|
name: props.leadingIcon,
|
|
18746
18812
|
size: "medium"
|
|
18747
18813
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
18748
18814
|
createElementVNode("div", _hoisted_2$1, toDisplayString(__props.headline), 1),
|
|
18749
|
-
createVNode(_sfc_main$
|
|
18815
|
+
createVNode(_sfc_main$14, {
|
|
18750
18816
|
"leading-icon": "x-close",
|
|
18751
18817
|
variant: "transparent",
|
|
18752
18818
|
size: "medium",
|
|
@@ -18769,10 +18835,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18769
18835
|
}
|
|
18770
18836
|
});
|
|
18771
18837
|
|
|
18772
|
-
const KdsModalLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18838
|
+
const KdsModalLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-62740dc9"]]);
|
|
18773
18839
|
|
|
18774
|
-
const _hoisted_1$
|
|
18775
|
-
const _sfc_main$
|
|
18840
|
+
const _hoisted_1$2 = ["closedby"];
|
|
18841
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
18776
18842
|
__name: "KdsModal",
|
|
18777
18843
|
props: {
|
|
18778
18844
|
leadingIcon: {},
|
|
@@ -18868,12 +18934,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18868
18934
|
_: 3
|
|
18869
18935
|
}, 8, ["headline", "leading-icon", "variant", "overflow"])
|
|
18870
18936
|
], true)
|
|
18871
|
-
], 42, _hoisted_1$
|
|
18937
|
+
], 42, _hoisted_1$2)) : createCommentVNode("", true);
|
|
18872
18938
|
};
|
|
18873
18939
|
}
|
|
18874
18940
|
});
|
|
18875
18941
|
|
|
18876
|
-
const KdsModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18942
|
+
const KdsModal = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-f4a6776f"]]);
|
|
18877
18943
|
|
|
18878
18944
|
const defaultCancelButton = {
|
|
18879
18945
|
type: "cancel",
|
|
@@ -18954,7 +19020,7 @@ const useKdsDynamicModal = () => {
|
|
|
18954
19020
|
};
|
|
18955
19021
|
};
|
|
18956
19022
|
|
|
18957
|
-
const _hoisted_1 = {
|
|
19023
|
+
const _hoisted_1$1 = {
|
|
18958
19024
|
key: 1,
|
|
18959
19025
|
class: "confirmation"
|
|
18960
19026
|
};
|
|
@@ -18963,7 +19029,7 @@ const _hoisted_3 = {
|
|
|
18963
19029
|
key: 0,
|
|
18964
19030
|
class: "ask-again"
|
|
18965
19031
|
};
|
|
18966
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19032
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
18967
19033
|
__name: "KdsDynamicModalProvider",
|
|
18968
19034
|
setup(__props) {
|
|
18969
19035
|
const askAgain = ref(false);
|
|
@@ -19016,10 +19082,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19016
19082
|
unref(config)?.type === "confirm" ? {
|
|
19017
19083
|
name: "body",
|
|
19018
19084
|
fn: withCtx(() => [
|
|
19019
|
-
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
19085
|
+
unref(internal).isTemplateBasedConfirm(unref(config).value) ? (openBlock(), createBlock(resolveDynamicComponent(unref(config).value.component), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
19020
19086
|
createElementVNode("div", _hoisted_2, toDisplayString(unref(config).value.message), 1),
|
|
19021
19087
|
unref(config).value.doNotAskAgain ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
19022
|
-
createVNode(_sfc_main$
|
|
19088
|
+
createVNode(_sfc_main$O, {
|
|
19023
19089
|
modelValue: askAgain.value,
|
|
19024
19090
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => askAgain.value = $event),
|
|
19025
19091
|
label: unref(config).value.doNotAskAgain.label,
|
|
@@ -19034,7 +19100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19034
19100
|
name: "footer",
|
|
19035
19101
|
fn: withCtx(() => [
|
|
19036
19102
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(config).value.buttons, (button, index) => {
|
|
19037
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19103
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19038
19104
|
key: index,
|
|
19039
19105
|
destructive: button.destructive,
|
|
19040
19106
|
autofocus: button.autofocus,
|
|
@@ -19064,7 +19130,158 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19064
19130
|
}
|
|
19065
19131
|
});
|
|
19066
19132
|
|
|
19067
|
-
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-41fc8d84"]]);
|
|
19133
|
+
const KdsDynamicModalProvider = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-41fc8d84"]]);
|
|
19134
|
+
|
|
19135
|
+
const _hoisted_1 = {
|
|
19136
|
+
ref: "measureContainer",
|
|
19137
|
+
class: "kds-button-group-measure",
|
|
19138
|
+
"aria-hidden": "true",
|
|
19139
|
+
inert: ""
|
|
19140
|
+
};
|
|
19141
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19142
|
+
...{ inheritAttrs: false },
|
|
19143
|
+
__name: "KdsResponsiveButtonGroup",
|
|
19144
|
+
props: {
|
|
19145
|
+
buttons: {},
|
|
19146
|
+
alignment: { default: "left" }
|
|
19147
|
+
},
|
|
19148
|
+
emits: ["buttonClick"],
|
|
19149
|
+
setup(__props, { emit: __emit }) {
|
|
19150
|
+
const emit = __emit;
|
|
19151
|
+
const measureContainerEl = useTemplateRef("measureContainer");
|
|
19152
|
+
const measureButtonEls = useTemplateRef("measureButton");
|
|
19153
|
+
const measureMenuButtonEl = useTemplateRef("measureMenuButton");
|
|
19154
|
+
const buttonsContainerEl = useTemplateRef("buttonsContainer");
|
|
19155
|
+
const { width: containerWidth } = useElementSize(buttonsContainerEl);
|
|
19156
|
+
const gap = ref(0);
|
|
19157
|
+
const buttonWidths = ref([]);
|
|
19158
|
+
const menuButtonWidth = ref(0);
|
|
19159
|
+
const splitIndex = computed(() => {
|
|
19160
|
+
const availableSpace = containerWidth.value;
|
|
19161
|
+
const widths = buttonWidths.value;
|
|
19162
|
+
const buttonsCount = __props.buttons.length;
|
|
19163
|
+
if (!availableSpace || buttonsCount === 0) {
|
|
19164
|
+
return 0;
|
|
19165
|
+
}
|
|
19166
|
+
let buttonsWidth = 0;
|
|
19167
|
+
for (let i = 0; i < buttonsCount; i++) {
|
|
19168
|
+
if (i > 0) {
|
|
19169
|
+
buttonsWidth += gap.value;
|
|
19170
|
+
}
|
|
19171
|
+
buttonsWidth += widths[i] ?? 0;
|
|
19172
|
+
}
|
|
19173
|
+
if (buttonsWidth <= availableSpace) {
|
|
19174
|
+
return buttonsCount;
|
|
19175
|
+
}
|
|
19176
|
+
let usedWidth = menuButtonWidth.value;
|
|
19177
|
+
let count = 0;
|
|
19178
|
+
for (let i = 0; i < buttonsCount; i++) {
|
|
19179
|
+
const buttonWidth = widths[i] ?? 0;
|
|
19180
|
+
const gapBefore = count > 0 ? gap.value : 0;
|
|
19181
|
+
const gapAfterForMenu = gap.value;
|
|
19182
|
+
const totalWidth = usedWidth + gapBefore + buttonWidth + gapAfterForMenu;
|
|
19183
|
+
if (totalWidth > availableSpace) {
|
|
19184
|
+
break;
|
|
19185
|
+
}
|
|
19186
|
+
usedWidth += gapBefore + buttonWidth;
|
|
19187
|
+
count++;
|
|
19188
|
+
}
|
|
19189
|
+
return count;
|
|
19190
|
+
});
|
|
19191
|
+
const visibleButtons = computed(() => {
|
|
19192
|
+
return __props.buttons.slice(0, splitIndex.value);
|
|
19193
|
+
});
|
|
19194
|
+
const overflowButtons = computed(() => {
|
|
19195
|
+
return __props.buttons.slice(splitIndex.value);
|
|
19196
|
+
});
|
|
19197
|
+
const overflowMenuItems = computed(() => {
|
|
19198
|
+
return overflowButtons.value.map((a) => ({
|
|
19199
|
+
id: a.id,
|
|
19200
|
+
text: a.label,
|
|
19201
|
+
disabled: a.disabled,
|
|
19202
|
+
accessory: a.leadingIcon ? { type: "icon", name: a.leadingIcon } : void 0
|
|
19203
|
+
}));
|
|
19204
|
+
});
|
|
19205
|
+
const onMenuItemClick = (id) => {
|
|
19206
|
+
if (id) {
|
|
19207
|
+
emit("buttonClick", id);
|
|
19208
|
+
}
|
|
19209
|
+
};
|
|
19210
|
+
const measureButtons = async () => {
|
|
19211
|
+
await nextTick();
|
|
19212
|
+
if (!measureContainerEl.value) {
|
|
19213
|
+
return;
|
|
19214
|
+
}
|
|
19215
|
+
buttonWidths.value = Array.from(measureButtonEls.value ?? []).map(
|
|
19216
|
+
(button) => button?.$el.offsetWidth
|
|
19217
|
+
);
|
|
19218
|
+
menuButtonWidth.value = measureMenuButtonEl.value?.menuButtonEl?.$el.offsetWidth ?? 0;
|
|
19219
|
+
};
|
|
19220
|
+
watch(() => __props.buttons, measureButtons, { deep: true });
|
|
19221
|
+
onMounted(() => {
|
|
19222
|
+
if (buttonsContainerEl.value) {
|
|
19223
|
+
gap.value = Number.parseFloat(getComputedStyle(buttonsContainerEl.value).gap) || 0;
|
|
19224
|
+
}
|
|
19225
|
+
measureButtons();
|
|
19226
|
+
});
|
|
19227
|
+
return (_ctx, _cache) => {
|
|
19228
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
19229
|
+
createElementVNode("div", _hoisted_1, [
|
|
19230
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttons, (button) => {
|
|
19231
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19232
|
+
ref_for: true,
|
|
19233
|
+
ref: "measureButton",
|
|
19234
|
+
key: button.id,
|
|
19235
|
+
label: button.label,
|
|
19236
|
+
variant: button.variant ?? "outlined",
|
|
19237
|
+
"leading-icon": button.leadingIcon
|
|
19238
|
+
}, null, 8, ["label", "variant", "leading-icon"]);
|
|
19239
|
+
}), 128)),
|
|
19240
|
+
createVNode(_sfc_main$T, {
|
|
19241
|
+
ref: "measureMenuButton",
|
|
19242
|
+
"leading-icon": "more-actions",
|
|
19243
|
+
ariaLabel: "More actions",
|
|
19244
|
+
items: [{ id: "_", text: "_" }]
|
|
19245
|
+
}, null, 512)
|
|
19246
|
+
], 512),
|
|
19247
|
+
createElementVNode("div", mergeProps({ ref: "buttonsContainer" }, _ctx.$attrs, {
|
|
19248
|
+
class: ["kds-button-group", __props.alignment]
|
|
19249
|
+
}), [
|
|
19250
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleButtons.value, (button) => {
|
|
19251
|
+
return openBlock(), createBlock(_sfc_main$14, {
|
|
19252
|
+
key: button.id,
|
|
19253
|
+
label: button.label,
|
|
19254
|
+
variant: button.variant ?? "outlined",
|
|
19255
|
+
disabled: button.disabled,
|
|
19256
|
+
"leading-icon": button.leadingIcon,
|
|
19257
|
+
destructive: button.destructive,
|
|
19258
|
+
title: button.title,
|
|
19259
|
+
onClick: ($event) => emit("buttonClick", button.id)
|
|
19260
|
+
}, null, 8, ["label", "variant", "disabled", "leading-icon", "destructive", "title", "onClick"]);
|
|
19261
|
+
}), 128)),
|
|
19262
|
+
overflowButtons.value.length ? (openBlock(), createBlock(_sfc_main$T, {
|
|
19263
|
+
key: 0,
|
|
19264
|
+
"leading-icon": "more-actions",
|
|
19265
|
+
ariaLabel: "More actions",
|
|
19266
|
+
items: overflowMenuItems.value,
|
|
19267
|
+
onItemClick: onMenuItemClick
|
|
19268
|
+
}, null, 8, ["items"])) : createCommentVNode("", true)
|
|
19269
|
+
], 16)
|
|
19270
|
+
], 64);
|
|
19271
|
+
};
|
|
19272
|
+
}
|
|
19273
|
+
});
|
|
19274
|
+
|
|
19275
|
+
const KdsResponsiveButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-a945c295"]]);
|
|
19276
|
+
|
|
19277
|
+
const kdsResponsiveButtonGroupAlignment = {
|
|
19278
|
+
LEFT: "left",
|
|
19279
|
+
RIGHT: "right",
|
|
19280
|
+
MIDDLE: "middle"
|
|
19281
|
+
};
|
|
19282
|
+
const kdsResponsiveButtonGroupAlignments = Object.values(
|
|
19283
|
+
kdsResponsiveButtonGroupAlignment
|
|
19284
|
+
);
|
|
19068
19285
|
|
|
19069
|
-
export { KdsAvatar, KdsBadge, _sfc_main$
|
|
19286
|
+
export { KdsAvatar, KdsBadge, _sfc_main$14 as KdsButton, KdsCardClickable, _sfc_main$O as KdsCheckbox, KdsCheckboxGroup, _sfc_main$B as KdsColorInput, KdsColorSwatch, KdsDataType, _sfc_main$x as KdsDateInput, _sfc_main$v as KdsDateTimeFormatInput, _sfc_main$p as KdsDropdown, KdsDynamicModalProvider, KdsEmptyState, KdsIcon, KdsInfoToggleButton, KdsInlineMessage, KdsLabel, KdsLink, _sfc_main$13 as KdsLinkButton, KdsLiveStatus, KdsLoadingSkeleton, KdsLoadingSpinner, _sfc_main$T as KdsMenuButton, KdsModal, KdsModalLayout, _sfc_main$m as KdsMultiSelectDropdown, _sfc_main$F as KdsNumberInput, KdsPanelButtonBar, KdsPanelHeader, _sfc_main$A as KdsPasswordInput, _sfc_main$u as KdsPatternInput, KdsProgressButton, KdsRadioButton, KdsRadioButtonGroup, KdsResponsiveButtonGroup, KdsSearchInput, KdsSortableListBox, KdsSplitButton, KdsSubText, KdsTabBar, KdsTextInput, KdsTextarea, _sfc_main$11 as KdsToggleButton, KdsTwinList, _sfc_main$z as KdsUsernameInput, 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, kdsDateFormatCategories, kdsDateFormatCategory, kdsIconName, iconNames as kdsIconNames, kdsIconSize, kdsIconSizes, kdsInlineMessageVariant, kdsInlineMessageVariants, kdsLiveStatusSize, kdsLiveStatusSizes, kdsLiveStatusStatus, kdsLiveStatusStatuses, kdsLoadingSkeletonVariant, kdsLoadingSkeletonVariants, kdsLoadingSpinnerVariant, kdsLoadingSpinnerVariants, kdsModalClosedBy, kdsModalClosedByOptions, kdsModalHeight, kdsModalHeightSizes, kdsModalVariant, kdsModalVariants, kdsModalWidth, kdsModalWidthSizes, kdsPasswordInputAutocomplete, kdsPasswordInputAutocompletes, kdsPasswordInputVariant, kdsPasswordInputVariants, kdsProgressButtonState, kdsProgressButtonStates, kdsRadioButtonGroupAlignment, kdsRadioButtonGroupAlignments, kdsResponsiveButtonGroupAlignment, kdsResponsiveButtonGroupAlignments, kdsTabBarSize, kdsTabBarSizes, kdsTemporalType, kdsTemporalTypes, kdsToggleButtonVariant, kdsToggleButtonVariants, kdsTwinListSearchMode, kdsTwinListSearchModes, kdsTypeIconName, typeIconNames as kdsTypeIconNames, kdsUsernameInputAutocomplete, kdsUsernameInputAutocompletes, kdsValueSwitchSize, kdsValueSwitchSizes, kdsValueSwitchVariant, kdsValueSwitchVariants, useKdsDarkMode, useKdsDynamicModal, useKdsIsTruncated, useKdsLegacyMode };
|
|
19070
19287
|
//# sourceMappingURL=index.js.map
|