fds-vue-core 2.1.9 → 2.1.11
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/components.d.ts +5 -3
- package/dist/fds-vue-core.cjs.js +249 -226
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +249 -226
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +4 -2
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.vue +7 -0
- package/src/components/Blocks/FdsBlockLink/types.ts +2 -0
- package/src/components/Buttons/ButtonBaseProps.ts +1 -0
- package/src/components/Buttons/FdsButtonCopy/types.ts +1 -0
- package/src/components/Buttons/FdsButtonDownload/FdsButtonDownload.vue +3 -15
- package/src/components/Buttons/FdsButtonDownload/types.ts +20 -0
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue +1 -1
- package/src/components/Buttons/FdsButtonIcon/types.ts +1 -0
- package/src/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue +1 -1
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue +5 -0
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue +1 -1
- package/src/components/FdsModal/types.ts +1 -0
- package/src/components/FdsPagination/types.ts +3 -0
- package/src/components/FdsSearchSelect/FdsSearchSelect.vue +7 -30
- package/src/components/FdsSearchSelect/types.ts +7 -0
- package/src/components/FdsTreeView/types.ts +4 -1
- package/src/components/Form/FdsCheckbox/types.ts +2 -0
- package/src/components/Form/FdsInput/types.ts +4 -0
- package/src/components/Form/FdsRadio/types.ts +1 -0
- package/src/index.ts +1 -1
- package/src/.DS_Store +0 -0
package/dist/fds-vue-core.es.js
CHANGED
|
@@ -562,7 +562,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
562
562
|
type: { default: "button" },
|
|
563
563
|
ariaLabel: { default: void 0 },
|
|
564
564
|
id: {},
|
|
565
|
-
ariaDisabled: { type: Boolean }
|
|
565
|
+
ariaDisabled: { type: Boolean },
|
|
566
|
+
onClick: {}
|
|
566
567
|
},
|
|
567
568
|
emits: ["click"],
|
|
568
569
|
setup(__props, { emit: __emit }) {
|
|
@@ -573,27 +574,27 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
573
574
|
"inline-flex items-center justify-center rounded-md p-[2px] max-w-[48px] max-h-[48px] transition-colors duration-200 fill-blue-500 hover:bg-blue_t-100 active:bg-blue_t-200 focus-visible:outline-dashed focus-visible:outline-2 outline-blue-500",
|
|
574
575
|
props.disabled ? "opacity-20 cursor-not-allowed" : "cursor-pointer"
|
|
575
576
|
]);
|
|
576
|
-
|
|
577
|
+
const onClick = (ev) => {
|
|
577
578
|
if (props.disabled || props.loading) {
|
|
578
579
|
ev.preventDefault();
|
|
579
580
|
return;
|
|
580
581
|
}
|
|
581
582
|
emit("click", ev);
|
|
582
|
-
}
|
|
583
|
+
};
|
|
583
584
|
return (_ctx, _cache) => {
|
|
584
585
|
return openBlock(), createElementBlock("button", {
|
|
585
|
-
id:
|
|
586
|
-
type:
|
|
587
|
-
disabled:
|
|
588
|
-
"aria-label":
|
|
589
|
-
"aria-disabled":
|
|
586
|
+
id: _ctx.id,
|
|
587
|
+
type: _ctx.type,
|
|
588
|
+
disabled: _ctx.disabled,
|
|
589
|
+
"aria-label": _ctx.ariaLabel,
|
|
590
|
+
"aria-disabled": _ctx.ariaDisabled,
|
|
590
591
|
class: normalizeClass(buttonClasses.value),
|
|
591
592
|
onClick
|
|
592
593
|
}, [
|
|
593
|
-
!
|
|
594
|
+
!_ctx.loading ? (openBlock(), createBlock(_sfc_main$w, {
|
|
594
595
|
key: 0,
|
|
595
596
|
size: iconSize.value,
|
|
596
|
-
name:
|
|
597
|
+
name: _ctx.icon
|
|
597
598
|
}, null, 8, ["size", "name"])) : (openBlock(), createBlock(_sfc_main$w, {
|
|
598
599
|
key: 1,
|
|
599
600
|
size: iconSize.value,
|
|
@@ -662,9 +663,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
662
663
|
}, [
|
|
663
664
|
createElementVNode("div", null, [
|
|
664
665
|
createElementVNode("div", null, [
|
|
665
|
-
|
|
666
|
+
_ctx.label ? (openBlock(), createElementBlock("div", {
|
|
666
667
|
key: 0,
|
|
667
|
-
class: normalizeClass(["font-bold w-full justify-between items-center h-[24px] flex gap-2", { "mb-4": (isExpanded.value || !
|
|
668
|
+
class: normalizeClass(["font-bold w-full justify-between items-center h-[24px] flex gap-2", { "mb-4": (isExpanded.value || !_ctx.collapsable) && unref(hasSlot) }])
|
|
668
669
|
}, [
|
|
669
670
|
createElementVNode("div", _hoisted_2$k, [
|
|
670
671
|
createVNode(_sfc_main$w, {
|
|
@@ -672,10 +673,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
672
673
|
size: 24,
|
|
673
674
|
class: "fill-yellow-700"
|
|
674
675
|
}),
|
|
675
|
-
createElementVNode("span", null, toDisplayString(
|
|
676
|
+
createElementVNode("span", null, toDisplayString(_ctx.label), 1)
|
|
676
677
|
]),
|
|
677
678
|
createElementVNode("div", _hoisted_3$b, [
|
|
678
|
-
|
|
679
|
+
_ctx.closeable ? (openBlock(), createBlock(_sfc_main$v, {
|
|
679
680
|
key: 0,
|
|
680
681
|
icon: "cross",
|
|
681
682
|
size: 24,
|
|
@@ -683,7 +684,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
683
684
|
ariaLabel: closeLabel.value,
|
|
684
685
|
class: normalizeClass(["fill-gray-900! hover:bg-gray-100 active:bg-gray-200"])
|
|
685
686
|
}, null, 8, ["ariaLabel"])) : createCommentVNode("", true),
|
|
686
|
-
|
|
687
|
+
_ctx.collapsable ? (openBlock(), createBlock(_sfc_main$v, {
|
|
687
688
|
key: 1,
|
|
688
689
|
icon: "arrowDown",
|
|
689
690
|
size: 24,
|
|
@@ -697,7 +698,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
697
698
|
}, null, 8, ["ariaLabel", "class"])) : createCommentVNode("", true)
|
|
698
699
|
])
|
|
699
700
|
], 2)) : createCommentVNode("", true),
|
|
700
|
-
isExpanded.value || !
|
|
701
|
+
isExpanded.value || !_ctx.collapsable ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
701
702
|
renderSlot(_ctx.$slots, "default")
|
|
702
703
|
])) : createCommentVNode("", true)
|
|
703
704
|
])
|
|
@@ -750,11 +751,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
750
751
|
class: normalizeClass(contentClasses.value),
|
|
751
752
|
style: normalizeStyle(borderLeftStyle.value)
|
|
752
753
|
}, [
|
|
753
|
-
|
|
754
|
+
_ctx.heading ? (openBlock(), createElementBlock("header", _hoisted_2$j, [
|
|
754
755
|
createElementVNode("div", _hoisted_3$a, [
|
|
755
756
|
createElementVNode("h3", {
|
|
756
757
|
class: normalizeClass(headerClasses.value)
|
|
757
|
-
}, toDisplayString(
|
|
758
|
+
}, toDisplayString(_ctx.heading), 3)
|
|
758
759
|
]),
|
|
759
760
|
createElementVNode("div", _hoisted_4$9, [
|
|
760
761
|
renderSlot(_ctx.$slots, "headerInfo")
|
|
@@ -817,23 +818,23 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
817
818
|
onClick: handleToggle
|
|
818
819
|
}, [
|
|
819
820
|
createElementVNode("span", _hoisted_1$m, [
|
|
820
|
-
|
|
821
|
+
_ctx.preIcon ? (openBlock(), createElementBlock("span", _hoisted_2$i, [
|
|
821
822
|
createVNode(_sfc_main$w, {
|
|
822
|
-
name:
|
|
823
|
+
name: _ctx.preIcon,
|
|
823
824
|
size: 24,
|
|
824
|
-
class: normalizeClass(["fill-blue-500", { "fill-gray-500":
|
|
825
|
+
class: normalizeClass(["fill-blue-500", { "fill-gray-500": _ctx.disabled }])
|
|
825
826
|
}, null, 8, ["name", "class"])
|
|
826
827
|
])) : createCommentVNode("", true),
|
|
827
828
|
createElementVNode("span", _hoisted_3$9, [
|
|
828
829
|
createElementVNode("span", {
|
|
829
|
-
class: normalizeClass(["font-bold font-heading text-lg leading-md", { "text-gray-500":
|
|
830
|
-
}, toDisplayString(
|
|
830
|
+
class: normalizeClass(["font-bold font-heading text-lg leading-md", { "text-gray-500": _ctx.disabled }])
|
|
831
|
+
}, toDisplayString(_ctx.label), 3)
|
|
831
832
|
])
|
|
832
833
|
]),
|
|
833
834
|
createVNode(_sfc_main$w, {
|
|
834
835
|
name: "arrowDown",
|
|
835
836
|
size: 24,
|
|
836
|
-
class: normalizeClass(["ml-4 transition-transform duration-200 fill-blue-500 min-w-6 min-h-6", { "rotate-180": isOpen.value, "fill-gray-500":
|
|
837
|
+
class: normalizeClass(["ml-4 transition-transform duration-200 fill-blue-500 min-w-6 min-h-6", { "rotate-180": isOpen.value, "fill-gray-500": _ctx.disabled }])
|
|
837
838
|
}, null, 8, ["class"])
|
|
838
839
|
], 2),
|
|
839
840
|
withDirectives(createElementVNode("div", {
|
|
@@ -899,16 +900,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
899
900
|
id: contentBlockId.value,
|
|
900
901
|
class: normalizeClass(contentClasses.value)
|
|
901
902
|
}, [
|
|
902
|
-
|
|
903
|
+
_ctx.size === "large" && _ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
903
904
|
createVNode(_sfc_main$w, {
|
|
904
|
-
name:
|
|
905
|
+
name: _ctx.icon,
|
|
905
906
|
size: largeIconSize,
|
|
906
907
|
class: "fill-blue-500"
|
|
907
908
|
}, null, 8, ["name"]),
|
|
908
909
|
createElementVNode("div", _hoisted_3$8, [
|
|
909
|
-
|
|
910
|
+
_ctx.heading ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
910
911
|
createElementVNode("header", _hoisted_5$7, [
|
|
911
|
-
createElementVNode("h3", _hoisted_6$4, toDisplayString(
|
|
912
|
+
createElementVNode("h3", _hoisted_6$4, toDisplayString(_ctx.heading), 1),
|
|
912
913
|
createElementVNode("div", _hoisted_7$4, [
|
|
913
914
|
renderSlot(_ctx.$slots, "headerInfo")
|
|
914
915
|
])
|
|
@@ -919,19 +920,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
919
920
|
])) : createCommentVNode("", true)
|
|
920
921
|
])
|
|
921
922
|
])) : (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
922
|
-
|
|
923
|
+
_ctx.heading ? (openBlock(), createElementBlock("div", {
|
|
923
924
|
key: 0,
|
|
924
925
|
class: normalizeClass({ "mb-4": unref(hasSlot) })
|
|
925
926
|
}, [
|
|
926
927
|
createElementVNode("header", _hoisted_10$1, [
|
|
927
928
|
createElementVNode("div", _hoisted_11$1, [
|
|
928
|
-
|
|
929
|
+
_ctx.icon && _ctx.size === "small" ? (openBlock(), createBlock(_sfc_main$w, {
|
|
929
930
|
key: 0,
|
|
930
|
-
name:
|
|
931
|
+
name: _ctx.icon,
|
|
931
932
|
size: smallIconSize,
|
|
932
933
|
class: "fill-blue-500"
|
|
933
934
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
934
|
-
createElementVNode("h3", _hoisted_12$1, toDisplayString(
|
|
935
|
+
createElementVNode("h3", _hoisted_12$1, toDisplayString(_ctx.heading), 1)
|
|
935
936
|
]),
|
|
936
937
|
createElementVNode("div", _hoisted_13$1, [
|
|
937
938
|
renderSlot(_ctx.$slots, "headerInfo")
|
|
@@ -958,6 +959,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
958
959
|
__name: "FdsBlockLink",
|
|
959
960
|
props: {
|
|
960
961
|
label: {},
|
|
962
|
+
id: { default: void 0 },
|
|
961
963
|
arrow: { type: Boolean, default: false },
|
|
962
964
|
disabled: { type: Boolean, default: false },
|
|
963
965
|
download: { default: void 0 },
|
|
@@ -966,6 +968,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
966
968
|
rel: { default: void 0 },
|
|
967
969
|
icon: { default: void 0 },
|
|
968
970
|
interactive: { type: Boolean, default: true },
|
|
971
|
+
dataTestid: { default: void 0 },
|
|
969
972
|
as: { default: "router-link" }
|
|
970
973
|
},
|
|
971
974
|
emits: ["click"],
|
|
@@ -975,6 +978,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
975
978
|
const hasSlot = useHasSlot();
|
|
976
979
|
const hasStickerSlot = useHasSlot("sticker");
|
|
977
980
|
const emit = __emit;
|
|
981
|
+
const autoId = `fds-block-link-${Math.random().toString(36).slice(2, 9)}`;
|
|
982
|
+
const blockLinkId = computed(() => props.id ?? autoId);
|
|
978
983
|
const innerClasses = computed(() => [
|
|
979
984
|
props.disabled ? "cursor-not-allowed shadow-none hover:border-transparent active:bg-transparent" : "cursor-pointer",
|
|
980
985
|
!props.interactive && "cursor-auto"
|
|
@@ -1022,22 +1027,24 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1022
1027
|
});
|
|
1023
1028
|
return (_ctx, _cache) => {
|
|
1024
1029
|
return openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps(componentAttrs.value, {
|
|
1030
|
+
id: blockLinkId.value,
|
|
1025
1031
|
class: ["box-border appearance-none text-left w-full flex items-start bg-white p-[calc(1rem-2px)] mb-3 text-blue-600 shadow-lg shadow-blue-200 rounded-2xl no-underline border-2 border-transparent transition-all duration-200 hover:border-blue-600 hover:border-2 active:border-transparent active:shadow-none active:bg-blue_t-100 focus-visible:border-blue-500 focus-visible:border-dashed focus-visible:outline-0", innerClasses.value],
|
|
1026
|
-
target: componentType.value === "a" ?
|
|
1027
|
-
rel: componentType.value === "a" ?
|
|
1028
|
-
download: componentType.value === "a" ?
|
|
1029
|
-
disabled: componentType.value === "button" ?
|
|
1030
|
-
"aria-disabled":
|
|
1032
|
+
target: componentType.value === "a" ? _ctx.target : void 0,
|
|
1033
|
+
rel: componentType.value === "a" ? _ctx.rel : void 0,
|
|
1034
|
+
download: componentType.value === "a" ? _ctx.download : void 0,
|
|
1035
|
+
disabled: componentType.value === "button" ? _ctx.disabled : void 0,
|
|
1036
|
+
"aria-disabled": _ctx.disabled,
|
|
1031
1037
|
onClick: handleClick,
|
|
1032
|
-
onKeydown: handleKeydown
|
|
1038
|
+
onKeydown: handleKeydown,
|
|
1039
|
+
"data-testid": _ctx.dataTestid
|
|
1033
1040
|
}), {
|
|
1034
1041
|
default: withCtx(() => [
|
|
1035
1042
|
createElementVNode("div", {
|
|
1036
1043
|
class: normalizeClass(["flex w-full flex-1", contentClasses.value])
|
|
1037
1044
|
}, [
|
|
1038
|
-
|
|
1045
|
+
_ctx.icon ? (openBlock(), createBlock(_sfc_main$w, {
|
|
1039
1046
|
key: 0,
|
|
1040
|
-
name:
|
|
1047
|
+
name: _ctx.icon,
|
|
1041
1048
|
size: 24,
|
|
1042
1049
|
class: normalizeClass(["flex items-center justify-center w-6 h-6 fill-blue-500", iconClasses.value])
|
|
1043
1050
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
@@ -1049,7 +1056,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1049
1056
|
}, [
|
|
1050
1057
|
createElementVNode("h3", {
|
|
1051
1058
|
class: normalizeClass(["flex-1 font-heading text-lg tracking-normal m-0 leading-md", headerTextClasses.value])
|
|
1052
|
-
}, toDisplayString(
|
|
1059
|
+
}, toDisplayString(_ctx.label), 3)
|
|
1053
1060
|
], 2),
|
|
1054
1061
|
createElementVNode("div", {
|
|
1055
1062
|
class: normalizeClass(slotWrapperClasses.value)
|
|
@@ -1063,7 +1070,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1063
1070
|
], 2)
|
|
1064
1071
|
], 2)
|
|
1065
1072
|
], 2),
|
|
1066
|
-
|
|
1073
|
+
_ctx.arrow ? (openBlock(), createBlock(_sfc_main$w, {
|
|
1067
1074
|
key: 0,
|
|
1068
1075
|
name: "arrowRight",
|
|
1069
1076
|
size: 20,
|
|
@@ -1071,7 +1078,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1071
1078
|
}, null, 8, ["class"])) : createCommentVNode("", true)
|
|
1072
1079
|
]),
|
|
1073
1080
|
_: 3
|
|
1074
|
-
}, 16, ["class", "target", "rel", "download", "disabled", "aria-disabled"]);
|
|
1081
|
+
}, 16, ["id", "class", "target", "rel", "download", "disabled", "aria-disabled", "data-testid"]);
|
|
1075
1082
|
};
|
|
1076
1083
|
}
|
|
1077
1084
|
});
|
|
@@ -1107,7 +1114,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1107
1114
|
return openBlock(), createElementBlock("div", {
|
|
1108
1115
|
class: normalizeClass(wrapperClasses.value),
|
|
1109
1116
|
role: "status",
|
|
1110
|
-
"aria-label":
|
|
1117
|
+
"aria-label": _ctx.label || "Laddar"
|
|
1111
1118
|
}, [
|
|
1112
1119
|
createElementVNode("div", {
|
|
1113
1120
|
class: "relative",
|
|
@@ -1144,10 +1151,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1144
1151
|
}, null, -1)
|
|
1145
1152
|
])], 2))
|
|
1146
1153
|
], 4),
|
|
1147
|
-
|
|
1154
|
+
_ctx.label ? (openBlock(), createElementBlock("div", {
|
|
1148
1155
|
key: 0,
|
|
1149
|
-
class: normalizeClass(
|
|
1150
|
-
}, toDisplayString(
|
|
1156
|
+
class: normalizeClass(_ctx.labelPosition === "bottom" ? "font-bold" : "")
|
|
1157
|
+
}, toDisplayString(_ctx.label), 3)) : createCommentVNode("", true)
|
|
1151
1158
|
], 10, _hoisted_1$j);
|
|
1152
1159
|
};
|
|
1153
1160
|
}
|
|
@@ -1175,7 +1182,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1175
1182
|
href: { default: void 0 },
|
|
1176
1183
|
target: { default: void 0 },
|
|
1177
1184
|
rel: { default: void 0 },
|
|
1178
|
-
type: { default: "button" }
|
|
1185
|
+
type: { default: "button" },
|
|
1186
|
+
onClick: {}
|
|
1179
1187
|
},
|
|
1180
1188
|
emits: ["click"],
|
|
1181
1189
|
setup(__props, { emit: __emit }) {
|
|
@@ -1201,13 +1209,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1201
1209
|
props.textSelection && "select-text"
|
|
1202
1210
|
]);
|
|
1203
1211
|
const iconFillClass2 = computed(() => props.invert ? "fill-white" : "fill-blue-500");
|
|
1204
|
-
|
|
1212
|
+
const onClick = (ev) => {
|
|
1205
1213
|
if (props.disabled || props.loading) {
|
|
1206
1214
|
ev.preventDefault();
|
|
1207
1215
|
return;
|
|
1208
1216
|
}
|
|
1209
1217
|
emit("click", ev);
|
|
1210
|
-
}
|
|
1218
|
+
};
|
|
1211
1219
|
const linkAttrs = computed(() => {
|
|
1212
1220
|
if (props.as === "a") return { href: props.href };
|
|
1213
1221
|
if (props.as === "router-link") return { to: props.href };
|
|
@@ -1220,34 +1228,34 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1220
1228
|
return (_ctx, _cache) => {
|
|
1221
1229
|
return openBlock(), createElementBlock("div", {
|
|
1222
1230
|
class: normalizeClass(rootClasses.value),
|
|
1223
|
-
"aria-disabled":
|
|
1231
|
+
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
1224
1232
|
}, [
|
|
1225
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
1226
|
-
type:
|
|
1227
|
-
disabled:
|
|
1228
|
-
target:
|
|
1229
|
-
rel:
|
|
1233
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps(componentAttrs.value, {
|
|
1234
|
+
type: _ctx.as === "button" ? _ctx.type : void 0,
|
|
1235
|
+
disabled: _ctx.as === "button" ? _ctx.disabled : void 0,
|
|
1236
|
+
target: _ctx.as === "a" ? _ctx.target : void 0,
|
|
1237
|
+
rel: _ctx.as === "a" ? _ctx.rel : void 0,
|
|
1230
1238
|
class: buttonClasses.value,
|
|
1231
1239
|
onClick
|
|
1232
1240
|
}), {
|
|
1233
1241
|
default: withCtx(() => [
|
|
1234
|
-
|
|
1242
|
+
_ctx.loading ? (openBlock(), createBlock(_sfc_main$p, {
|
|
1235
1243
|
key: 0,
|
|
1236
1244
|
class: "mr-2",
|
|
1237
1245
|
size: "24px",
|
|
1238
1246
|
color: "inherit"
|
|
1239
|
-
})) :
|
|
1247
|
+
})) : _ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
1240
1248
|
key: 1,
|
|
1241
1249
|
class: normalizeClass(iconOrderClasses.value),
|
|
1242
1250
|
"aria-hidden": "true"
|
|
1243
1251
|
}, [
|
|
1244
1252
|
createVNode(_sfc_main$w, {
|
|
1245
1253
|
class: normalizeClass(iconFillClass2.value),
|
|
1246
|
-
name:
|
|
1254
|
+
name: _ctx.icon,
|
|
1247
1255
|
size: 24
|
|
1248
1256
|
}, null, 8, ["class", "name"])
|
|
1249
1257
|
], 2)) : createCommentVNode("", true),
|
|
1250
|
-
createElementVNode("span", _hoisted_2$f, toDisplayString(
|
|
1258
|
+
createElementVNode("span", _hoisted_2$f, toDisplayString(_ctx.text), 1)
|
|
1251
1259
|
]),
|
|
1252
1260
|
_: 1
|
|
1253
1261
|
}, 16, ["type", "disabled", "target", "rel", "class"]))
|
|
@@ -1267,7 +1275,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1267
1275
|
label: { default: "Kopiera" },
|
|
1268
1276
|
copiedLabel: { default: "Kopierat!" },
|
|
1269
1277
|
timeoutMs: { default: 800 },
|
|
1270
|
-
disabled: { type: Boolean, default: false }
|
|
1278
|
+
disabled: { type: Boolean, default: false },
|
|
1279
|
+
onClick: {}
|
|
1271
1280
|
},
|
|
1272
1281
|
emits: ["click"],
|
|
1273
1282
|
setup(__props) {
|
|
@@ -1343,19 +1352,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1343
1352
|
},
|
|
1344
1353
|
__name: "FdsButtonDownload",
|
|
1345
1354
|
props: {
|
|
1346
|
-
text: {},
|
|
1347
1355
|
loading: { type: Boolean, default: false },
|
|
1348
1356
|
disabled: { type: Boolean, default: false },
|
|
1349
|
-
block: { type: Boolean },
|
|
1350
|
-
state: {},
|
|
1351
1357
|
iconPos: { default: "left" },
|
|
1352
|
-
size: {},
|
|
1353
|
-
textSelection: { type: Boolean },
|
|
1354
1358
|
href: { default: void 0 },
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
downloadOptions: { default: void 0 }
|
|
1359
|
+
downloadOptions: { default: void 0 },
|
|
1360
|
+
text: { default: "" },
|
|
1361
|
+
onClick: {}
|
|
1359
1362
|
},
|
|
1360
1363
|
emits: ["click"],
|
|
1361
1364
|
setup(__props, { emit: __emit }) {
|
|
@@ -1449,7 +1452,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1449
1452
|
isDownloading.value = false;
|
|
1450
1453
|
}
|
|
1451
1454
|
}
|
|
1452
|
-
|
|
1455
|
+
const onClick = (ev) => {
|
|
1453
1456
|
if (props.downloadOptions) {
|
|
1454
1457
|
handleDownload(ev);
|
|
1455
1458
|
} else {
|
|
@@ -1459,15 +1462,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1459
1462
|
}
|
|
1460
1463
|
emit("click", ev);
|
|
1461
1464
|
}
|
|
1462
|
-
}
|
|
1465
|
+
};
|
|
1463
1466
|
return (_ctx, _cache) => {
|
|
1464
1467
|
return openBlock(), createElementBlock("div", {
|
|
1465
1468
|
class: normalizeClass(rootClasses.value),
|
|
1466
|
-
"aria-disabled":
|
|
1469
|
+
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
1467
1470
|
}, [
|
|
1468
1471
|
createElementVNode("button", mergeProps(_ctx.$attrs, {
|
|
1469
1472
|
class: buttonClasses.value,
|
|
1470
|
-
disabled:
|
|
1473
|
+
disabled: _ctx.disabled || _ctx.loading || isDownloading.value,
|
|
1471
1474
|
type: "button",
|
|
1472
1475
|
onClick
|
|
1473
1476
|
}), [
|
|
@@ -1481,7 +1484,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1481
1484
|
size: 24
|
|
1482
1485
|
}, null, 8, ["class"])
|
|
1483
1486
|
], 2),
|
|
1484
|
-
createTextVNode(" " + toDisplayString(
|
|
1487
|
+
createTextVNode(" " + toDisplayString(_ctx.text), 1)
|
|
1485
1488
|
], 16, _hoisted_2$e)
|
|
1486
1489
|
], 10, _hoisted_1$g);
|
|
1487
1490
|
};
|
|
@@ -1508,7 +1511,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1508
1511
|
href: { default: void 0 },
|
|
1509
1512
|
target: {},
|
|
1510
1513
|
rel: {},
|
|
1511
|
-
type: { default: "button" }
|
|
1514
|
+
type: { default: "button" },
|
|
1515
|
+
onClick: {}
|
|
1512
1516
|
},
|
|
1513
1517
|
emits: ["click"],
|
|
1514
1518
|
setup(__props, { emit: __emit }) {
|
|
@@ -1539,6 +1543,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1539
1543
|
ev.preventDefault();
|
|
1540
1544
|
return;
|
|
1541
1545
|
}
|
|
1546
|
+
if (props.onClick) {
|
|
1547
|
+
const handlers = Array.isArray(props.onClick) ? props.onClick : [props.onClick];
|
|
1548
|
+
handlers.forEach((handler) => handler(ev));
|
|
1549
|
+
}
|
|
1542
1550
|
emit("click", ev);
|
|
1543
1551
|
}
|
|
1544
1552
|
const linkAttrs = computed(() => {
|
|
@@ -1549,31 +1557,31 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1549
1557
|
return (_ctx, _cache) => {
|
|
1550
1558
|
return openBlock(), createElementBlock("div", {
|
|
1551
1559
|
class: normalizeClass(rootClasses.value),
|
|
1552
|
-
"aria-disabled":
|
|
1560
|
+
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
1553
1561
|
}, [
|
|
1554
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
1555
|
-
type:
|
|
1556
|
-
disabled:
|
|
1562
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps(linkAttrs.value, {
|
|
1563
|
+
type: _ctx.as === "button" ? _ctx.type : void 0,
|
|
1564
|
+
disabled: _ctx.as === "button" ? _ctx.disabled : void 0,
|
|
1557
1565
|
class: buttonClasses.value,
|
|
1558
1566
|
onClick
|
|
1559
1567
|
}), {
|
|
1560
1568
|
default: withCtx(() => [
|
|
1561
|
-
|
|
1569
|
+
_ctx.loading ? (openBlock(), createBlock(_sfc_main$p, {
|
|
1562
1570
|
key: 0,
|
|
1563
1571
|
size: "24px",
|
|
1564
1572
|
color: "inherit"
|
|
1565
|
-
})) :
|
|
1573
|
+
})) : _ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
1566
1574
|
key: 1,
|
|
1567
1575
|
class: normalizeClass(iconOrderClasses.value),
|
|
1568
1576
|
"aria-hidden": "true"
|
|
1569
1577
|
}, [
|
|
1570
1578
|
createVNode(_sfc_main$w, {
|
|
1571
1579
|
class: normalizeClass(iconFillClass$1),
|
|
1572
|
-
name:
|
|
1580
|
+
name: _ctx.icon,
|
|
1573
1581
|
size: 24
|
|
1574
1582
|
}, null, 8, ["name"])
|
|
1575
1583
|
], 2)) : createCommentVNode("", true),
|
|
1576
|
-
|
|
1584
|
+
_ctx.text ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
|
|
1577
1585
|
]),
|
|
1578
1586
|
_: 1
|
|
1579
1587
|
}, 16, ["type", "disabled", "class"]))
|
|
@@ -1602,7 +1610,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1602
1610
|
href: { default: void 0 },
|
|
1603
1611
|
target: {},
|
|
1604
1612
|
rel: {},
|
|
1605
|
-
type: { default: "button" }
|
|
1613
|
+
type: { default: "button" },
|
|
1614
|
+
onClick: {}
|
|
1606
1615
|
},
|
|
1607
1616
|
emits: ["click"],
|
|
1608
1617
|
setup(__props, { emit: __emit }) {
|
|
@@ -1628,13 +1637,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1628
1637
|
props.textSelection && "select-text",
|
|
1629
1638
|
(props.icon || props.text) && "gap-2"
|
|
1630
1639
|
]);
|
|
1631
|
-
|
|
1640
|
+
const onClick = (ev) => {
|
|
1632
1641
|
if (props.disabled || props.loading) {
|
|
1633
1642
|
ev.preventDefault();
|
|
1634
1643
|
return;
|
|
1635
1644
|
}
|
|
1636
1645
|
emit("click", ev);
|
|
1637
|
-
}
|
|
1646
|
+
};
|
|
1638
1647
|
const linkAttrs = computed(() => {
|
|
1639
1648
|
if (props.as === "a") return { href: props.href };
|
|
1640
1649
|
if (props.as === "router-link") return { to: props.href };
|
|
@@ -1643,31 +1652,31 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1643
1652
|
return (_ctx, _cache) => {
|
|
1644
1653
|
return openBlock(), createElementBlock("div", {
|
|
1645
1654
|
class: normalizeClass(rootClasses.value),
|
|
1646
|
-
"aria-disabled":
|
|
1655
|
+
"aria-disabled": _ctx.disabled ? "true" : void 0
|
|
1647
1656
|
}, [
|
|
1648
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
1649
|
-
type:
|
|
1650
|
-
disabled:
|
|
1657
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps(linkAttrs.value, {
|
|
1658
|
+
type: _ctx.as === "button" ? _ctx.type : void 0,
|
|
1659
|
+
disabled: _ctx.as === "button" ? _ctx.disabled : void 0,
|
|
1651
1660
|
class: buttonClasses.value,
|
|
1652
1661
|
onClick
|
|
1653
1662
|
}), {
|
|
1654
1663
|
default: withCtx(() => [
|
|
1655
|
-
|
|
1664
|
+
_ctx.loading ? (openBlock(), createBlock(_sfc_main$p, {
|
|
1656
1665
|
key: 0,
|
|
1657
1666
|
size: "24px",
|
|
1658
1667
|
color: "inherit"
|
|
1659
|
-
})) :
|
|
1668
|
+
})) : _ctx.icon ? (openBlock(), createElementBlock("span", {
|
|
1660
1669
|
key: 1,
|
|
1661
1670
|
class: normalizeClass(iconOrderClasses.value),
|
|
1662
1671
|
"aria-hidden": "true"
|
|
1663
1672
|
}, [
|
|
1664
1673
|
createVNode(_sfc_main$w, {
|
|
1665
1674
|
class: normalizeClass(iconFillClass),
|
|
1666
|
-
name:
|
|
1675
|
+
name: _ctx.icon,
|
|
1667
1676
|
size: 24
|
|
1668
1677
|
}, null, 8, ["name"])
|
|
1669
1678
|
], 2)) : createCommentVNode("", true),
|
|
1670
|
-
|
|
1679
|
+
_ctx.text ? (openBlock(), createElementBlock("span", _hoisted_2$c, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
|
|
1671
1680
|
]),
|
|
1672
1681
|
_: 1
|
|
1673
1682
|
}, 16, ["type", "disabled", "class"]))
|
|
@@ -1689,7 +1698,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1689
1698
|
strict: { type: Boolean, default: false },
|
|
1690
1699
|
lockScroll: { type: Boolean, default: false },
|
|
1691
1700
|
info: { default: void 0 },
|
|
1692
|
-
locale: { default: "sv" }
|
|
1701
|
+
locale: { default: "sv" },
|
|
1702
|
+
onClose: {}
|
|
1693
1703
|
},
|
|
1694
1704
|
emits: ["close", "update:open"],
|
|
1695
1705
|
setup(__props, { emit: __emit }) {
|
|
@@ -1866,9 +1876,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1866
1876
|
size: 24,
|
|
1867
1877
|
class: normalizeClass(iconClasses.value)
|
|
1868
1878
|
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
1869
|
-
createTextVNode(" " + toDisplayString(
|
|
1879
|
+
createTextVNode(" " + toDisplayString(_ctx.heading), 1)
|
|
1870
1880
|
], 2),
|
|
1871
|
-
!
|
|
1881
|
+
!_ctx.strict ? (openBlock(), createBlock(_sfc_main$v, {
|
|
1872
1882
|
key: 0,
|
|
1873
1883
|
icon: "cross",
|
|
1874
1884
|
size: 28,
|
|
@@ -5092,7 +5102,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5092
5102
|
size: {},
|
|
5093
5103
|
maxlength: {},
|
|
5094
5104
|
mask: { default: void 0 },
|
|
5095
|
-
maskOptions: { default: void 0 }
|
|
5105
|
+
maskOptions: { default: void 0 },
|
|
5106
|
+
modelValue: {},
|
|
5107
|
+
onClearInput: {},
|
|
5108
|
+
onKeyup: {},
|
|
5109
|
+
onInput: {}
|
|
5096
5110
|
}, {
|
|
5097
5111
|
"modelValue": { default: void 0, required: false },
|
|
5098
5112
|
"modelModifiers": {}
|
|
@@ -5201,35 +5215,35 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5201
5215
|
return (_ctx, _cache) => {
|
|
5202
5216
|
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
5203
5217
|
createElementVNode("div", {
|
|
5204
|
-
class: normalizeClass({ "flex flex-row gap-4":
|
|
5218
|
+
class: normalizeClass({ "flex flex-row gap-4": _ctx.labelLeft })
|
|
5205
5219
|
}, [
|
|
5206
5220
|
createElementVNode("div", null, [
|
|
5207
|
-
|
|
5221
|
+
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
5208
5222
|
key: 0,
|
|
5209
5223
|
for: inputId.value,
|
|
5210
|
-
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0":
|
|
5211
|
-
}, toDisplayString(
|
|
5212
|
-
|
|
5224
|
+
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0": _ctx.meta, "mb-1": !_ctx.meta }])
|
|
5225
|
+
}, toDisplayString(_ctx.label), 11, _hoisted_2$a)) : createCommentVNode("", true),
|
|
5226
|
+
_ctx.meta ? (openBlock(), createElementBlock("div", {
|
|
5213
5227
|
key: 1,
|
|
5214
|
-
class: normalizeClass(["font-thin", { "mb-1": !
|
|
5215
|
-
}, toDisplayString(
|
|
5228
|
+
class: normalizeClass(["font-thin", { "mb-1": !_ctx.labelLeft }])
|
|
5229
|
+
}, toDisplayString(_ctx.meta), 3)) : createCommentVNode("", true)
|
|
5216
5230
|
]),
|
|
5217
5231
|
createElementVNode("div", {
|
|
5218
|
-
class: normalizeClass({ "flex-1":
|
|
5232
|
+
class: normalizeClass({ "flex-1": _ctx.labelLeft })
|
|
5219
5233
|
}, [
|
|
5220
5234
|
createElementVNode("div", _hoisted_3$7, [
|
|
5221
5235
|
withDirectives(createElementVNode("input", mergeProps({
|
|
5222
5236
|
ref_key: "inputRef",
|
|
5223
5237
|
ref: inputRef,
|
|
5224
5238
|
id: inputId.value,
|
|
5225
|
-
name:
|
|
5226
|
-
type: isPasswordType.value ? showPassword.value ? "text" : "password" :
|
|
5227
|
-
disabled:
|
|
5228
|
-
required:
|
|
5229
|
-
size:
|
|
5230
|
-
maxlength:
|
|
5239
|
+
name: _ctx.name || void 0,
|
|
5240
|
+
type: isPasswordType.value ? showPassword.value ? "text" : "password" : _ctx.type,
|
|
5241
|
+
disabled: _ctx.disabled,
|
|
5242
|
+
required: _ctx.required,
|
|
5243
|
+
size: _ctx.size,
|
|
5244
|
+
maxlength: _ctx.maxlength,
|
|
5231
5245
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalValue.value = $event),
|
|
5232
|
-
"aria-invalid":
|
|
5246
|
+
"aria-invalid": _ctx.valid === "false" ? "true" : void 0,
|
|
5233
5247
|
class: inputClasses.value
|
|
5234
5248
|
}, _ctx.$attrs, {
|
|
5235
5249
|
onInput: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("input", $event))
|
|
@@ -5248,7 +5262,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5248
5262
|
key: 1,
|
|
5249
5263
|
name: "bigSuccess"
|
|
5250
5264
|
})) : createCommentVNode("", true),
|
|
5251
|
-
|
|
5265
|
+
_ctx.clearButton && !!internalValue.value && !_ctx.disabled ? (openBlock(), createBlock(_sfc_main$v, {
|
|
5252
5266
|
key: 2,
|
|
5253
5267
|
icon: "cross",
|
|
5254
5268
|
ariaLabel: clearButtonLabel.value,
|
|
@@ -5264,7 +5278,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
5264
5278
|
])
|
|
5265
5279
|
], 2)
|
|
5266
5280
|
], 2),
|
|
5267
|
-
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, toDisplayString(
|
|
5281
|
+
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_5$6, toDisplayString(_ctx.invalidMessage), 1)) : createCommentVNode("", true)
|
|
5268
5282
|
]);
|
|
5269
5283
|
};
|
|
5270
5284
|
}
|
|
@@ -5280,7 +5294,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5280
5294
|
id: { default: void 0 },
|
|
5281
5295
|
current: {},
|
|
5282
5296
|
max: {},
|
|
5283
|
-
loading: { type: Boolean, default: false }
|
|
5297
|
+
loading: { type: Boolean, default: false },
|
|
5298
|
+
onPaginate: {}
|
|
5284
5299
|
},
|
|
5285
5300
|
emits: ["paginate"],
|
|
5286
5301
|
setup(__props, { emit: __emit }) {
|
|
@@ -5357,7 +5372,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5357
5372
|
id: inputId.value
|
|
5358
5373
|
}, [
|
|
5359
5374
|
createElementVNode("div", _hoisted_2$9, [
|
|
5360
|
-
|
|
5375
|
+
_ctx.loading && loadingIndicator.value === "start" ? (openBlock(), createBlock(_sfc_main$p, {
|
|
5361
5376
|
key: 0,
|
|
5362
5377
|
size: "32px",
|
|
5363
5378
|
color: "blue"
|
|
@@ -5365,12 +5380,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5365
5380
|
key: 1,
|
|
5366
5381
|
icon: "first",
|
|
5367
5382
|
size: 28,
|
|
5368
|
-
disabled:
|
|
5369
|
-
ariaDisabled:
|
|
5370
|
-
class: normalizeClass([{ "hidden!":
|
|
5383
|
+
disabled: _ctx.current === 1,
|
|
5384
|
+
ariaDisabled: _ctx.current === 1,
|
|
5385
|
+
class: normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
5371
5386
|
onClick: _cache[0] || (_cache[0] = ($event) => handlePagination("start"))
|
|
5372
5387
|
}, null, 8, ["disabled", "ariaDisabled", "class"])),
|
|
5373
|
-
|
|
5388
|
+
_ctx.loading && loadingIndicator.value === "prev" ? (openBlock(), createBlock(_sfc_main$p, {
|
|
5374
5389
|
key: 2,
|
|
5375
5390
|
size: "24px",
|
|
5376
5391
|
color: "blue"
|
|
@@ -5378,14 +5393,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5378
5393
|
key: 3,
|
|
5379
5394
|
icon: "arrowLeft",
|
|
5380
5395
|
size: 28,
|
|
5381
|
-
disabled:
|
|
5382
|
-
ariaDisabled:
|
|
5383
|
-
class: normalizeClass([{ "hidden!":
|
|
5396
|
+
disabled: _ctx.current === 1,
|
|
5397
|
+
ariaDisabled: _ctx.current === 1,
|
|
5398
|
+
class: normalizeClass([{ "hidden!": _ctx.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
5384
5399
|
onClick: _cache[1] || (_cache[1] = ($event) => handlePagination("prev"))
|
|
5385
5400
|
}, null, 8, ["disabled", "ariaDisabled", "class"]))
|
|
5386
5401
|
]),
|
|
5387
5402
|
createElementVNode("div", _hoisted_3$6, [
|
|
5388
|
-
|
|
5403
|
+
_ctx.loading && loadingIndicator.value === "input" ? (openBlock(), createBlock(_sfc_main$p, {
|
|
5389
5404
|
key: 0,
|
|
5390
5405
|
size: "24px",
|
|
5391
5406
|
color: "blue",
|
|
@@ -5395,16 +5410,16 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5395
5410
|
createVNode(_sfc_main$i, {
|
|
5396
5411
|
value: inputValue.value,
|
|
5397
5412
|
type: "text",
|
|
5398
|
-
size:
|
|
5399
|
-
maxlength:
|
|
5413
|
+
size: _ctx.max.toString().length,
|
|
5414
|
+
maxlength: _ctx.max.toString().length,
|
|
5400
5415
|
onInput: unref(handlePageChange),
|
|
5401
5416
|
class: "mb-0! text-center"
|
|
5402
5417
|
}, null, 8, ["value", "size", "maxlength", "onInput"]),
|
|
5403
|
-
createElementVNode("div", _hoisted_4$5, "/ " + toDisplayString(
|
|
5418
|
+
createElementVNode("div", _hoisted_4$5, "/ " + toDisplayString(_ctx.max), 1)
|
|
5404
5419
|
], 64))
|
|
5405
5420
|
]),
|
|
5406
5421
|
createElementVNode("div", _hoisted_5$5, [
|
|
5407
|
-
|
|
5422
|
+
_ctx.loading && loadingIndicator.value === "next" ? (openBlock(), createBlock(_sfc_main$p, {
|
|
5408
5423
|
key: 0,
|
|
5409
5424
|
size: "24px",
|
|
5410
5425
|
color: "blue"
|
|
@@ -5412,12 +5427,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5412
5427
|
key: 1,
|
|
5413
5428
|
icon: "arrowRight",
|
|
5414
5429
|
size: 28,
|
|
5415
|
-
disabled:
|
|
5416
|
-
ariaDisabled:
|
|
5417
|
-
class: normalizeClass([{ "hidden!":
|
|
5430
|
+
disabled: _ctx.current === _ctx.max,
|
|
5431
|
+
ariaDisabled: _ctx.current === _ctx.max,
|
|
5432
|
+
class: normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
5418
5433
|
onClick: _cache[2] || (_cache[2] = ($event) => handlePagination("next"))
|
|
5419
5434
|
}, null, 8, ["disabled", "ariaDisabled", "class"])),
|
|
5420
|
-
|
|
5435
|
+
_ctx.loading && loadingIndicator.value === "end" ? (openBlock(), createBlock(_sfc_main$p, {
|
|
5421
5436
|
key: 2,
|
|
5422
5437
|
size: "24px",
|
|
5423
5438
|
color: "blue"
|
|
@@ -5425,9 +5440,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
5425
5440
|
key: 3,
|
|
5426
5441
|
icon: "last",
|
|
5427
5442
|
size: 28,
|
|
5428
|
-
disabled:
|
|
5429
|
-
ariaDisabled:
|
|
5430
|
-
class: normalizeClass([{ "hidden!":
|
|
5443
|
+
disabled: _ctx.current === _ctx.max,
|
|
5444
|
+
ariaDisabled: _ctx.current === _ctx.max,
|
|
5445
|
+
class: normalizeClass([{ "hidden!": _ctx.current === _ctx.max }, "w-8 h-8 sm:w-12 sm:h-12"]),
|
|
5431
5446
|
onClick: _cache[3] || (_cache[3] = ($event) => handlePagination("end"))
|
|
5432
5447
|
}, null, 8, ["disabled", "ariaDisabled", "class"]))
|
|
5433
5448
|
])
|
|
@@ -5527,7 +5542,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5527
5542
|
marginless: { type: Boolean, default: false },
|
|
5528
5543
|
maxListHeight: { default: void 0 },
|
|
5529
5544
|
locale: { default: "sv" },
|
|
5530
|
-
clearTrigger: { type: Boolean, default: false }
|
|
5545
|
+
clearTrigger: { type: Boolean, default: false },
|
|
5546
|
+
onChange: {},
|
|
5547
|
+
onSearchSelected: {},
|
|
5548
|
+
onPaginate: {},
|
|
5549
|
+
onTotal: {}
|
|
5531
5550
|
},
|
|
5532
5551
|
emits: ["searchSelected", "paginate", "total", "change"],
|
|
5533
5552
|
setup(__props, { emit: __emit }) {
|
|
@@ -5879,14 +5898,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5879
5898
|
!singleItemName.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
5880
5899
|
createElementVNode("div", _hoisted_3$5, [
|
|
5881
5900
|
createVNode(_sfc_main$i, {
|
|
5882
|
-
label:
|
|
5883
|
-
meta:
|
|
5884
|
-
labelLeft:
|
|
5901
|
+
label: _ctx.label,
|
|
5902
|
+
meta: _ctx.meta ?? void 0,
|
|
5903
|
+
labelLeft: _ctx.labelLeft,
|
|
5885
5904
|
class: "relative mb-0! w-full!",
|
|
5886
5905
|
valid: valid.value,
|
|
5887
|
-
invalidMessage:
|
|
5888
|
-
disabled:
|
|
5889
|
-
locale:
|
|
5906
|
+
invalidMessage: _ctx.invalidMessage,
|
|
5907
|
+
disabled: _ctx.disabled,
|
|
5908
|
+
locale: _ctx.locale,
|
|
5890
5909
|
type: "search",
|
|
5891
5910
|
value: searchTerm.value,
|
|
5892
5911
|
id: inputId,
|
|
@@ -5896,7 +5915,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5896
5915
|
onInput: handleInput,
|
|
5897
5916
|
onClearInput: handleClear
|
|
5898
5917
|
}, null, 8, ["label", "meta", "labelLeft", "valid", "invalidMessage", "disabled", "locale", "value", "clearButton", "mask"]),
|
|
5899
|
-
!
|
|
5918
|
+
!_ctx.disabled && !hasInputValue.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
5900
5919
|
key: 0,
|
|
5901
5920
|
name: "search",
|
|
5902
5921
|
size: 24,
|
|
@@ -5904,10 +5923,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5904
5923
|
})) : createCommentVNode("", true)
|
|
5905
5924
|
])
|
|
5906
5925
|
])) : (openBlock(), createElementBlock("div", _hoisted_4$4, [
|
|
5907
|
-
createElementVNode("div", _hoisted_5$4, toDisplayString(
|
|
5926
|
+
createElementVNode("div", _hoisted_5$4, toDisplayString(_ctx.singleItemLabel), 1),
|
|
5908
5927
|
createElementVNode("div", null, toDisplayString(singleItemName.value), 1)
|
|
5909
5928
|
])),
|
|
5910
|
-
dropdownVisible.value && !singleItemName.value.length && !
|
|
5929
|
+
dropdownVisible.value && !singleItemName.value.length && !_ctx.disabled ? (openBlock(), createElementBlock("div", {
|
|
5911
5930
|
key: 2,
|
|
5912
5931
|
class: normalizeClass(listWrapperClasses.value),
|
|
5913
5932
|
style: normalizeStyle(listWrapperStyle.value),
|
|
@@ -5915,13 +5934,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5915
5934
|
"aria-expanded": "false",
|
|
5916
5935
|
"aria-controls": "select-dropdown"
|
|
5917
5936
|
}, [
|
|
5918
|
-
|
|
5937
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
5919
5938
|
createVNode(_sfc_main$p, {
|
|
5920
5939
|
color: "blue",
|
|
5921
5940
|
size: "48px"
|
|
5922
5941
|
})
|
|
5923
5942
|
])) : displayedItems.value && displayedItems.value.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5924
|
-
searchTerm.value && searchTerm.value.length ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(displayedItems.value.length) + " " + toDisplayString(
|
|
5943
|
+
searchTerm.value && searchTerm.value.length ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(displayedItems.value.length) + " " + toDisplayString(_ctx.searchContext.linkWord) + " " + toDisplayString(totalCount.value) + " " + toDisplayString(_ctx.searchContext.context), 1)) : !searchTerm.value.length ? (openBlock(), createElementBlock("div", _hoisted_8$2, toDisplayString(totalCount.value) + " " + toDisplayString(_ctx.searchContext.context), 1)) : createCommentVNode("", true),
|
|
5925
5944
|
createElementVNode("ul", {
|
|
5926
5945
|
class: "block m-0 list-none p-0",
|
|
5927
5946
|
role: "listbox",
|
|
@@ -5960,15 +5979,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
5960
5979
|
], 42, _hoisted_9$2);
|
|
5961
5980
|
}), 128))
|
|
5962
5981
|
], 32),
|
|
5963
|
-
|
|
5982
|
+
_ctx.page !== void 0 && totalPages.value !== null && totalPages.value > 1 ? (openBlock(), createBlock(_sfc_main$h, {
|
|
5964
5983
|
key: 2,
|
|
5965
|
-
current:
|
|
5984
|
+
current: _ctx.page,
|
|
5966
5985
|
max: totalPages.value,
|
|
5967
5986
|
onPaginate: handlePagination,
|
|
5968
5987
|
class: "my-4! px-2"
|
|
5969
5988
|
}, null, 8, ["current", "max"])) : createCommentVNode("", true)
|
|
5970
|
-
], 64)) : !
|
|
5971
|
-
createElementVNode("li", _hoisted_13, toDisplayString(
|
|
5989
|
+
], 64)) : !_ctx.loading ? (openBlock(), createElementBlock("ul", _hoisted_12, [
|
|
5990
|
+
createElementVNode("li", _hoisted_13, toDisplayString(_ctx.noResultPrompt), 1)
|
|
5972
5991
|
])) : createCommentVNode("", true)
|
|
5973
5992
|
], 6)) : createCommentVNode("", true)
|
|
5974
5993
|
])
|
|
@@ -6009,7 +6028,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
6009
6028
|
return openBlock(), createElementBlock("span", {
|
|
6010
6029
|
class: normalizeClass(stickerClasses.value)
|
|
6011
6030
|
}, [
|
|
6012
|
-
|
|
6031
|
+
_ctx.bullet ? (openBlock(), createElementBlock("span", {
|
|
6013
6032
|
key: 0,
|
|
6014
6033
|
class: normalizeClass(bulletDotClasses.value)
|
|
6015
6034
|
}, null, 2)) : createCommentVNode("", true),
|
|
@@ -6433,7 +6452,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
6433
6452
|
value: { default: void 0 },
|
|
6434
6453
|
name: { default: void 0 },
|
|
6435
6454
|
id: { default: void 0 },
|
|
6436
|
-
required: { type: Boolean, default: false }
|
|
6455
|
+
required: { type: Boolean, default: false },
|
|
6456
|
+
modelValue: { type: [Boolean, Array] },
|
|
6457
|
+
onChange: {}
|
|
6437
6458
|
}, {
|
|
6438
6459
|
"modelValue": { type: [Boolean, Array], ...{
|
|
6439
6460
|
default: void 0,
|
|
@@ -6527,26 +6548,26 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
6527
6548
|
}, [
|
|
6528
6549
|
createElementVNode("label", mergeProps({
|
|
6529
6550
|
for: inputId.value,
|
|
6530
|
-
class: [innerWrapperClasses.value, { "cursor-not-allowed":
|
|
6551
|
+
class: [innerWrapperClasses.value, { "cursor-not-allowed": _ctx.disabled }]
|
|
6531
6552
|
}, _ctx.$attrs), [
|
|
6532
6553
|
withDirectives(createElementVNode("input", {
|
|
6533
6554
|
id: inputId.value,
|
|
6534
|
-
name:
|
|
6535
|
-
value:
|
|
6555
|
+
name: _ctx.name,
|
|
6556
|
+
value: _ctx.value,
|
|
6536
6557
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalChecked.value = $event),
|
|
6537
|
-
disabled:
|
|
6538
|
-
required:
|
|
6558
|
+
disabled: _ctx.disabled,
|
|
6559
|
+
required: _ctx.required,
|
|
6539
6560
|
type: "checkbox",
|
|
6540
6561
|
class: normalizeClass([checkboxClasses.value])
|
|
6541
6562
|
}, null, 10, _hoisted_2$7), [
|
|
6542
6563
|
[vModelCheckbox, internalChecked.value]
|
|
6543
6564
|
]),
|
|
6544
|
-
unref(hasLabelSlot) ||
|
|
6565
|
+
unref(hasLabelSlot) || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
6545
6566
|
key: 0,
|
|
6546
|
-
class: normalizeClass(["relative inline-block leading-6 pl-1 select-none", { "cursor-not-allowed":
|
|
6567
|
+
class: normalizeClass(["relative inline-block leading-6 pl-1 select-none", { "cursor-not-allowed": _ctx.disabled }])
|
|
6547
6568
|
}, [
|
|
6548
|
-
unref(hasLabelSlot) ? renderSlot(_ctx.$slots, "default", { key: 0 }) :
|
|
6549
|
-
createTextVNode(toDisplayString(
|
|
6569
|
+
unref(hasLabelSlot) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6570
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
6550
6571
|
], 64)) : createCommentVNode("", true)
|
|
6551
6572
|
], 2)) : createCommentVNode("", true)
|
|
6552
6573
|
], 16, _hoisted_1$9)
|
|
@@ -6566,6 +6587,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6566
6587
|
name: { default: void 0 },
|
|
6567
6588
|
id: { default: void 0 },
|
|
6568
6589
|
required: { type: Boolean, default: false },
|
|
6590
|
+
modelValue: {},
|
|
6569
6591
|
onKeydown: {},
|
|
6570
6592
|
onBlur: {},
|
|
6571
6593
|
onChange: {}
|
|
@@ -6608,26 +6630,26 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
6608
6630
|
}, [
|
|
6609
6631
|
createElementVNode("label", mergeProps({
|
|
6610
6632
|
for: inputId.value,
|
|
6611
|
-
class: [innerWrapperClasses.value, { "cursor-not-allowed":
|
|
6633
|
+
class: [innerWrapperClasses.value, { "cursor-not-allowed": _ctx.disabled }]
|
|
6612
6634
|
}, _ctx.$attrs), [
|
|
6613
6635
|
withDirectives(createElementVNode("input", {
|
|
6614
6636
|
id: inputId.value,
|
|
6615
|
-
name:
|
|
6616
|
-
value:
|
|
6637
|
+
name: _ctx.name,
|
|
6638
|
+
value: _ctx.value,
|
|
6617
6639
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => radioModel.value = $event),
|
|
6618
|
-
disabled:
|
|
6619
|
-
required:
|
|
6640
|
+
disabled: _ctx.disabled,
|
|
6641
|
+
required: _ctx.required,
|
|
6620
6642
|
type: "radio",
|
|
6621
6643
|
class: normalizeClass([inputClasses.value, "m-[2px]"])
|
|
6622
6644
|
}, null, 10, _hoisted_2$6), [
|
|
6623
6645
|
[vModelRadio, radioModel.value]
|
|
6624
6646
|
]),
|
|
6625
|
-
unref(hasLabelSlot) ||
|
|
6647
|
+
unref(hasLabelSlot) || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
6626
6648
|
key: 0,
|
|
6627
|
-
class: normalizeClass(["relative inline-block leading-6 pl-1 select-none", { "cursor-not-allowed":
|
|
6649
|
+
class: normalizeClass(["relative inline-block leading-6 pl-1 select-none", { "cursor-not-allowed": _ctx.disabled }])
|
|
6628
6650
|
}, [
|
|
6629
|
-
unref(hasLabelSlot) ? renderSlot(_ctx.$slots, "default", { key: 0 }) :
|
|
6630
|
-
createTextVNode(toDisplayString(
|
|
6651
|
+
unref(hasLabelSlot) ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.label ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6652
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
6631
6653
|
], 64)) : createCommentVNode("", true)
|
|
6632
6654
|
], 2)) : createCommentVNode("", true)
|
|
6633
6655
|
], 16, _hoisted_1$8)
|
|
@@ -6684,7 +6706,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6684
6706
|
searchCountTemplate: {},
|
|
6685
6707
|
searchCountTemplateUnfiltered: {},
|
|
6686
6708
|
titleTemplate: {},
|
|
6687
|
-
|
|
6709
|
+
onGetSearchContainerHeight: {},
|
|
6710
|
+
selectedNodes: {}
|
|
6688
6711
|
},
|
|
6689
6712
|
setup(__props) {
|
|
6690
6713
|
const props = __props;
|
|
@@ -6860,21 +6883,21 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6860
6883
|
}, null, 8, ["ariaLabel", "icon"])) : createCommentVNode("", true),
|
|
6861
6884
|
!hasChildrenNodes.value ? (openBlock(), createElementBlock("div", {
|
|
6862
6885
|
key: 1,
|
|
6863
|
-
style: normalizeStyle({ minWidth: `${
|
|
6886
|
+
style: normalizeStyle({ minWidth: `${_ctx.indentation}px` })
|
|
6864
6887
|
}, null, 4)) : createCommentVNode("", true),
|
|
6865
6888
|
createElementVNode("div", _hoisted_2$5, [
|
|
6866
6889
|
createVNode(_sfc_main$e, {
|
|
6867
6890
|
id: `checkbox-${props.nodeId}`,
|
|
6868
6891
|
checked: unref(treeState)?.isNodeSelected(props.nodeId),
|
|
6869
|
-
indeterminate:
|
|
6892
|
+
indeterminate: _ctx.showIndeterminate && (unref(treeState)?.isNodeIndeterminateById(props.nodeId) ?? false),
|
|
6870
6893
|
onChange: _cache[1] || (_cache[1] = ($event) => unref(treeState)?.toggleSelectNode(props.nodeId, props.title, props.data))
|
|
6871
6894
|
}, {
|
|
6872
6895
|
default: withCtx(() => [
|
|
6873
6896
|
createElementVNode("span", null, [
|
|
6874
|
-
shouldHighlightSearch.value &&
|
|
6897
|
+
shouldHighlightSearch.value && _ctx.title ? (openBlock(), createElementBlock("span", {
|
|
6875
6898
|
key: 0,
|
|
6876
|
-
innerHTML: unref(treeState)?.highlightText(
|
|
6877
|
-
}, null, 8, _hoisted_3$4)) : (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(
|
|
6899
|
+
innerHTML: unref(treeState)?.highlightText(_ctx.title, unref(treeState)?.searchTerm?.value)
|
|
6900
|
+
}, null, 8, _hoisted_3$4)) : (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(_ctx.title), 1))
|
|
6878
6901
|
]),
|
|
6879
6902
|
childCount.value !== null ? (openBlock(), createElementBlock("span", _hoisted_5$3, " (+" + toDisplayString(childCount.value) + ")", 1)) : createCommentVNode("", true)
|
|
6880
6903
|
]),
|
|
@@ -6888,7 +6911,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6888
6911
|
icon: "more",
|
|
6889
6912
|
size: 24,
|
|
6890
6913
|
onClick: togglePopover,
|
|
6891
|
-
ariaLabel: `Fler val för ${
|
|
6914
|
+
ariaLabel: `Fler val för ${_ctx.title}`,
|
|
6892
6915
|
class: "items-center"
|
|
6893
6916
|
}, null, 8, ["ariaLabel"]),
|
|
6894
6917
|
createVNode(Transition, {
|
|
@@ -6972,17 +6995,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
6972
6995
|
indentation: props.indentation,
|
|
6973
6996
|
nodeExpandIcon: props.nodeExpandIcon,
|
|
6974
6997
|
nodeCollapseIcon: props.nodeCollapseIcon,
|
|
6975
|
-
showNodeDescription:
|
|
6976
|
-
showChildrenCount:
|
|
6977
|
-
expandChildrenOnSelect:
|
|
6978
|
-
showIndeterminate:
|
|
6979
|
-
showIndeterminateOnlyOnChildrenSelection:
|
|
6980
|
-
expandChildrenOnParentCheck:
|
|
6981
|
-
expandAllChildrenOnParentCheck:
|
|
6982
|
-
searchEnabled:
|
|
6983
|
-
searchExpandNodes:
|
|
6984
|
-
searchMatchParams:
|
|
6985
|
-
searchHighlighting:
|
|
6998
|
+
showNodeDescription: _ctx.showNodeDescription,
|
|
6999
|
+
showChildrenCount: _ctx.showChildrenCount,
|
|
7000
|
+
expandChildrenOnSelect: _ctx.expandChildrenOnSelect,
|
|
7001
|
+
showIndeterminate: _ctx.showIndeterminate,
|
|
7002
|
+
showIndeterminateOnlyOnChildrenSelection: _ctx.showIndeterminateOnlyOnChildrenSelection,
|
|
7003
|
+
expandChildrenOnParentCheck: _ctx.expandChildrenOnParentCheck,
|
|
7004
|
+
expandAllChildrenOnParentCheck: _ctx.expandAllChildrenOnParentCheck,
|
|
7005
|
+
searchEnabled: _ctx.searchEnabled,
|
|
7006
|
+
searchExpandNodes: _ctx.searchExpandNodes,
|
|
7007
|
+
searchMatchParams: _ctx.searchMatchParams,
|
|
7008
|
+
searchHighlighting: _ctx.searchHighlighting,
|
|
6986
7009
|
titleTemplate: props.titleTemplate,
|
|
6987
7010
|
popoverLabels: props.popoverLabels
|
|
6988
7011
|
}, null, 8, ["nodes", "title", "nodeId", "data", "depth", "indentation", "nodeExpandIcon", "nodeCollapseIcon", "showNodeDescription", "showChildrenCount", "expandChildrenOnSelect", "showIndeterminate", "showIndeterminateOnlyOnChildrenSelection", "expandChildrenOnParentCheck", "expandAllChildrenOnParentCheck", "searchEnabled", "searchExpandNodes", "searchMatchParams", "searchHighlighting", "titleTemplate", "popoverLabels"]);
|
|
@@ -7069,9 +7092,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
7069
7092
|
searchCountTemplate: {},
|
|
7070
7093
|
searchCountTemplateUnfiltered: {},
|
|
7071
7094
|
titleTemplate: { default: "[[title]]" },
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7095
|
+
onGetSearchContainerHeight: {},
|
|
7096
|
+
selectedNodes: {},
|
|
7097
|
+
data: {}
|
|
7075
7098
|
},
|
|
7076
7099
|
emits: ["update:selectedNodes", "getSearchContainerHeight"],
|
|
7077
7100
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -7254,12 +7277,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
7254
7277
|
ref: contentRef,
|
|
7255
7278
|
class: normalizeClass(["content", { open: isOpen.value }]),
|
|
7256
7279
|
style: normalizeStyle({ maxWidth: `${containerWidth.value}px` })
|
|
7257
|
-
}, toDisplayString(
|
|
7280
|
+
}, toDisplayString(_ctx.content), 7)),
|
|
7258
7281
|
shouldShowButton.value ? (openBlock(), createBlock(_sfc_main$o, {
|
|
7259
7282
|
key: 2,
|
|
7260
7283
|
icon: isOpen.value ? "arrowUp" : "arrowDown",
|
|
7261
7284
|
iconPos: "right",
|
|
7262
|
-
text: isOpen.value ?
|
|
7285
|
+
text: isOpen.value ? _ctx.btnCollapse : _ctx.btnExpand,
|
|
7263
7286
|
onClick: toggleComponent
|
|
7264
7287
|
}, null, 8, ["icon", "text"])) : createCommentVNode("", true)
|
|
7265
7288
|
]);
|
|
@@ -7338,26 +7361,26 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
7338
7361
|
}
|
|
7339
7362
|
return (_ctx, _cache) => {
|
|
7340
7363
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
7341
|
-
|
|
7364
|
+
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
7342
7365
|
key: 0,
|
|
7343
7366
|
for: selectId.value,
|
|
7344
|
-
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0":
|
|
7345
|
-
}, toDisplayString(
|
|
7346
|
-
|
|
7367
|
+
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0": _ctx.meta, "mb-1": !_ctx.meta }])
|
|
7368
|
+
}, toDisplayString(_ctx.label), 11, _hoisted_2$3)) : createCommentVNode("", true),
|
|
7369
|
+
_ctx.meta ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(_ctx.meta), 1)) : createCommentVNode("", true),
|
|
7347
7370
|
createElementVNode("div", _hoisted_4$2, [
|
|
7348
7371
|
withDirectives(createElementVNode("select", mergeProps({
|
|
7349
7372
|
id: selectId.value,
|
|
7350
|
-
name:
|
|
7351
|
-
disabled:
|
|
7373
|
+
name: _ctx.name || void 0,
|
|
7374
|
+
disabled: _ctx.disabled,
|
|
7352
7375
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalValue.value = $event),
|
|
7353
|
-
"aria-invalid":
|
|
7376
|
+
"aria-invalid": _ctx.valid === "false" ? "true" : void 0,
|
|
7354
7377
|
class: selectClasses.value
|
|
7355
7378
|
}, _ctx.$attrs, {
|
|
7356
7379
|
onChange: handleChange,
|
|
7357
7380
|
onInput: _cache[1] || (_cache[1] = (e) => emit("input", e))
|
|
7358
7381
|
}), [
|
|
7359
|
-
|
|
7360
|
-
!hasDefaultSlot.value &&
|
|
7382
|
+
_ctx.placeholder && !hasDefaultSlot.value ? (openBlock(), createElementBlock("option", _hoisted_6$1, toDisplayString(_ctx.placeholder), 1)) : createCommentVNode("", true),
|
|
7383
|
+
!hasDefaultSlot.value && _ctx.options ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.options, (option) => {
|
|
7361
7384
|
return openBlock(), createElementBlock("option", {
|
|
7362
7385
|
key: option.value,
|
|
7363
7386
|
value: option.value,
|
|
@@ -7372,14 +7395,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
7372
7395
|
name: "arrowDown",
|
|
7373
7396
|
size: 24,
|
|
7374
7397
|
class: normalizeClass({
|
|
7375
|
-
"fill-gray-500":
|
|
7376
|
-
"fill-red-500": isInvalid.value && !
|
|
7377
|
-
"fill-blue-500": !
|
|
7398
|
+
"fill-gray-500": _ctx.disabled,
|
|
7399
|
+
"fill-red-500": isInvalid.value && !_ctx.disabled,
|
|
7400
|
+
"fill-blue-500": !_ctx.disabled && !isInvalid.value
|
|
7378
7401
|
})
|
|
7379
7402
|
}, null, 8, ["class"])
|
|
7380
7403
|
])
|
|
7381
7404
|
]),
|
|
7382
|
-
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(
|
|
7405
|
+
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(_ctx.invalidMessage), 1)) : createCommentVNode("", true)
|
|
7383
7406
|
]);
|
|
7384
7407
|
};
|
|
7385
7408
|
}
|
|
@@ -7446,20 +7469,20 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
7446
7469
|
return (_ctx, _cache) => {
|
|
7447
7470
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
7448
7471
|
createElementVNode("div", _hoisted_1$3, [
|
|
7449
|
-
|
|
7472
|
+
_ctx.label ? (openBlock(), createElementBlock("label", {
|
|
7450
7473
|
key: 0,
|
|
7451
7474
|
for: textareaId.value,
|
|
7452
|
-
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0":
|
|
7453
|
-
}, toDisplayString(
|
|
7454
|
-
|
|
7475
|
+
class: normalizeClass(["block font-bold text-gray-900 cursor-pointer", { "mb-0": _ctx.meta, "mb-1": !_ctx.meta }])
|
|
7476
|
+
}, toDisplayString(_ctx.label), 11, _hoisted_2$2)) : createCommentVNode("", true),
|
|
7477
|
+
_ctx.meta ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(_ctx.meta), 1)) : createCommentVNode("", true),
|
|
7455
7478
|
createElementVNode("div", _hoisted_4$1, [
|
|
7456
7479
|
withDirectives(createElementVNode("textarea", mergeProps({
|
|
7457
7480
|
id: textareaId.value,
|
|
7458
|
-
name:
|
|
7459
|
-
disabled:
|
|
7460
|
-
rows:
|
|
7481
|
+
name: _ctx.name || void 0,
|
|
7482
|
+
disabled: _ctx.disabled,
|
|
7483
|
+
rows: _ctx.rows,
|
|
7461
7484
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalValue.value = $event),
|
|
7462
|
-
"aria-invalid":
|
|
7485
|
+
"aria-invalid": _ctx.valid === "false" ? "true" : void 0,
|
|
7463
7486
|
class: inputClasses.value
|
|
7464
7487
|
}, _ctx.$attrs, {
|
|
7465
7488
|
onInput: _cache[1] || (_cache[1] = (e) => emit("input", e))
|
|
@@ -7480,7 +7503,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
7480
7503
|
})) : createCommentVNode("", true)
|
|
7481
7504
|
], 2)
|
|
7482
7505
|
]),
|
|
7483
|
-
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(
|
|
7506
|
+
showInvalidMessage.value ? (openBlock(), createElementBlock("div", _hoisted_6, toDisplayString(_ctx.invalidMessage), 1)) : createCommentVNode("", true)
|
|
7484
7507
|
]),
|
|
7485
7508
|
isValid.value ? (openBlock(), createElementBlock("div", _hoisted_7, "OK")) : createCommentVNode("", true)
|
|
7486
7509
|
], 64);
|
|
@@ -7541,7 +7564,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7541
7564
|
}, [
|
|
7542
7565
|
unref(hasSlot) ? (openBlock(), createElementBlock("span", _hoisted_2$1, [
|
|
7543
7566
|
renderSlot(_ctx.$slots, "default")
|
|
7544
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(
|
|
7567
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(_ctx.heading), 1)),
|
|
7545
7568
|
createVNode(_sfc_main$w, {
|
|
7546
7569
|
name: iconName.value,
|
|
7547
7570
|
size: "24px",
|
|
@@ -7553,7 +7576,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
7553
7576
|
}, [
|
|
7554
7577
|
unref(hasSlot) ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
7555
7578
|
renderSlot(_ctx.$slots, "default")
|
|
7556
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(
|
|
7579
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(_ctx.heading), 1))
|
|
7557
7580
|
], 2))
|
|
7558
7581
|
]);
|
|
7559
7582
|
};
|
|
@@ -7676,13 +7699,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
7676
7699
|
return (_ctx, _cache) => {
|
|
7677
7700
|
return openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps(componentAttrs.value, {
|
|
7678
7701
|
class: buttonClasses.value,
|
|
7679
|
-
disabled: componentType.value === "button" ?
|
|
7680
|
-
"aria-disabled":
|
|
7702
|
+
disabled: componentType.value === "button" ? _ctx.disabled : void 0,
|
|
7703
|
+
"aria-disabled": _ctx.disabled,
|
|
7681
7704
|
"aria-current": isActive.value ? "page" : void 0
|
|
7682
7705
|
}), {
|
|
7683
7706
|
default: withCtx(() => [
|
|
7684
7707
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
7685
|
-
createTextVNode(toDisplayString(
|
|
7708
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
7686
7709
|
])
|
|
7687
7710
|
]),
|
|
7688
7711
|
_: 3
|
|
@@ -7729,11 +7752,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
7729
7752
|
return responsiveMap[element];
|
|
7730
7753
|
}
|
|
7731
7754
|
return (_ctx, _cache) => {
|
|
7732
|
-
return openBlock(), createBlock(resolveDynamicComponent(
|
|
7755
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.type), {
|
|
7733
7756
|
class: normalizeClass(headingClasses.value)
|
|
7734
7757
|
}, {
|
|
7735
7758
|
default: withCtx(() => [
|
|
7736
|
-
createTextVNode(toDisplayString(
|
|
7759
|
+
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
7737
7760
|
]),
|
|
7738
7761
|
_: 1
|
|
7739
7762
|
}, 8, ["class"]);
|
|
@@ -7783,7 +7806,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
7783
7806
|
};
|
|
7784
7807
|
return (_ctx, _cache) => {
|
|
7785
7808
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
7786
|
-
|
|
7809
|
+
_ctx.loading ? (openBlock(), createBlock(_sfc_main$p, {
|
|
7787
7810
|
key: 0,
|
|
7788
7811
|
size: "24px",
|
|
7789
7812
|
color: "blue",
|