fds-vue-core 8.3.2 → 8.4.1
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 +2 -0
- package/dist/components/FdsDrawer/FdsDrawer.vue.d.ts +39 -0
- package/dist/components/FdsDrawer/types.d.ts +11 -0
- package/dist/composables/useFocusTrap.d.ts +8 -0
- package/dist/composables/useRouteFilters.d.ts +73 -0
- package/dist/fds-vue-core.cjs.js +781 -275
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +782 -276
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/slot-styles.css +40 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -4
- package/src/components/FdsDrawer/FdsDrawer.stories.ts +155 -0
- package/src/components/FdsDrawer/FdsDrawer.vue +236 -0
- package/src/components/FdsDrawer/types.ts +12 -0
- package/src/components/FdsModal/FdsModal.vue +6 -57
- package/src/composables/useFocusTrap.spec.ts +57 -0
- package/src/composables/useFocusTrap.ts +72 -0
- package/src/composables/useRouteFilters.spec.ts +157 -0
- package/src/composables/useRouteFilters.ts +500 -0
- package/src/index.ts +26 -0
- package/src/lang/en.json +1 -0
- package/src/lang/sv.json +1 -0
- package/src/slot-styles.css +40 -0
- package/src/style.css +45 -1
package/dist/fds-vue-core.es.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { useAttrs, computed, useSlots, Comment, inject, defineComponent, openBlock, createElementBlock, mergeProps, createBlock, ref, watch, createElementVNode, normalizeClass, unref, createVNode, toDisplayString, createCommentVNode, renderSlot, withCtx, createTextVNode, withDirectives, vShow, resolveDynamicComponent, normalizeStyle, onMounted, toValue, onUnmounted, onBeforeUnmount, Fragment, renderList, useModel, nextTick, vModelCheckbox, mergeModels, Teleport, withModifiers, provide, getCurrentInstance, vModelText, withKeys, watchEffect, reactive, resolveComponent,
|
|
1
|
+
import { useAttrs, computed, useSlots, Comment, inject, defineComponent, openBlock, createElementBlock, mergeProps, createBlock, ref, watch, createElementVNode, normalizeClass, unref, createVNode, toDisplayString, createCommentVNode, renderSlot, withCtx, createTextVNode, withDirectives, vShow, resolveDynamicComponent, normalizeStyle, onMounted, toValue, onUnmounted, onBeforeUnmount, Fragment, renderList, useModel, nextTick, vModelCheckbox, mergeModels, Teleport, withModifiers, provide, getCurrentInstance, vModelText, Transition, withKeys, watchEffect, reactive, resolveComponent, normalizeProps, guardReactiveProps, vModelSelect } from "vue";
|
|
2
|
+
import { useRoute, useRouter } from "vue-router";
|
|
2
3
|
function useAttrsWithDefaults(props) {
|
|
3
4
|
const attrs = useAttrs();
|
|
4
5
|
return {
|
|
@@ -75,6 +76,7 @@ const en = {
|
|
|
75
76
|
"FdsInput.today": "(today)",
|
|
76
77
|
"FdsListHeading.loading": "Loading...",
|
|
77
78
|
"FdsListHeading.separator": "of",
|
|
79
|
+
"FdsDrawer.closeDrawer": "Close drawer",
|
|
78
80
|
"FdsModal.closeModal": "Close modal window",
|
|
79
81
|
"FdsPagination.currentPage": "Current page",
|
|
80
82
|
"FdsPagination.firstPage": "Go to first page",
|
|
@@ -150,6 +152,7 @@ const sv = {
|
|
|
150
152
|
"FdsInput.today": "(idag)",
|
|
151
153
|
"FdsListHeading.loading": "Laddar...",
|
|
152
154
|
"FdsListHeading.separator": "av",
|
|
155
|
+
"FdsDrawer.closeDrawer": "Stäng sidopanel",
|
|
153
156
|
"FdsModal.closeModal": "Stäng dialogruta",
|
|
154
157
|
"FdsPagination.currentPage": "Aktuell sida",
|
|
155
158
|
"FdsPagination.firstPage": "Gå till första sidan",
|
|
@@ -752,8 +755,8 @@ const icons = {
|
|
|
752
755
|
</defs>
|
|
753
756
|
</svg>`
|
|
754
757
|
};
|
|
755
|
-
const _hoisted_1$
|
|
756
|
-
const _sfc_main$
|
|
758
|
+
const _hoisted_1$C = ["innerHTML"];
|
|
759
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
757
760
|
__name: "FdsIcon",
|
|
758
761
|
props: {
|
|
759
762
|
name: {},
|
|
@@ -786,11 +789,11 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
786
789
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
787
790
|
class: "flex items-center justify-center align-middle",
|
|
788
791
|
style: { width: pixelSize.value, height: pixelSize.value }
|
|
789
|
-
}, rootAttrs.value, { innerHTML: svgHtml.value }), null, 16, _hoisted_1$
|
|
792
|
+
}, rootAttrs.value, { innerHTML: svgHtml.value }), null, 16, _hoisted_1$C);
|
|
790
793
|
};
|
|
791
794
|
}
|
|
792
795
|
});
|
|
793
|
-
const _sfc_main$
|
|
796
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
794
797
|
__name: "FdsButtonIcon",
|
|
795
798
|
props: {
|
|
796
799
|
icon: {},
|
|
@@ -834,12 +837,12 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
834
837
|
class: buttonClasses.value,
|
|
835
838
|
onClick
|
|
836
839
|
}), [
|
|
837
|
-
!__props.loading ? (openBlock(), createBlock(_sfc_main$
|
|
840
|
+
!__props.loading ? (openBlock(), createBlock(_sfc_main$O, {
|
|
838
841
|
key: 0,
|
|
839
842
|
size: iconSize.value,
|
|
840
843
|
name: __props.icon,
|
|
841
844
|
"aria-hidden": "true"
|
|
842
|
-
}, null, 8, ["size", "name"])) : (openBlock(), createBlock(_sfc_main$
|
|
845
|
+
}, null, 8, ["size", "name"])) : (openBlock(), createBlock(_sfc_main$O, {
|
|
843
846
|
key: 1,
|
|
844
847
|
size: iconSize.value,
|
|
845
848
|
name: "spinner",
|
|
@@ -850,7 +853,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
850
853
|
};
|
|
851
854
|
}
|
|
852
855
|
});
|
|
853
|
-
const _hoisted_1$
|
|
856
|
+
const _hoisted_1$B = { class: "flex items-start gap-2" };
|
|
854
857
|
const _hoisted_2$q = { class: "h-7 flex items-center" };
|
|
855
858
|
const _hoisted_3$l = { class: "leading-7" };
|
|
856
859
|
const _hoisted_4$j = { class: "relative h-7" };
|
|
@@ -858,7 +861,7 @@ const _hoisted_5$h = {
|
|
|
858
861
|
key: 1,
|
|
859
862
|
class: "fds-block-alert-slot mb-0-last-child"
|
|
860
863
|
};
|
|
861
|
-
const _sfc_main$
|
|
864
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
862
865
|
__name: "FdsBlockAlert",
|
|
863
866
|
props: {
|
|
864
867
|
visible: { type: Boolean, default: true },
|
|
@@ -876,7 +879,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
876
879
|
const { t } = useFdsI18n();
|
|
877
880
|
const emit = __emit;
|
|
878
881
|
const isExpanded = ref(props.expanded);
|
|
879
|
-
const
|
|
882
|
+
const isVisible2 = ref(props.visible);
|
|
880
883
|
const expandLabel = computed(() => t("FdsBlockAlert.showMore"));
|
|
881
884
|
const collapseLabel = computed(() => t("FdsBlockAlert.showLess"));
|
|
882
885
|
const closeLabel = computed(() => t("FdsBlockAlert.close"));
|
|
@@ -884,7 +887,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
884
887
|
watch(
|
|
885
888
|
() => props.visible,
|
|
886
889
|
(v) => {
|
|
887
|
-
|
|
890
|
+
isVisible2.value = v;
|
|
888
891
|
}
|
|
889
892
|
);
|
|
890
893
|
const alertClasses = computed(() => [
|
|
@@ -898,7 +901,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
898
901
|
...props.dataTestid && { "data-testid": props.dataTestid }
|
|
899
902
|
}));
|
|
900
903
|
function handleClose() {
|
|
901
|
-
|
|
904
|
+
isVisible2.value = false;
|
|
902
905
|
emit("update:visible", false);
|
|
903
906
|
emit("close");
|
|
904
907
|
}
|
|
@@ -907,16 +910,16 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
907
910
|
emit("toggle");
|
|
908
911
|
}
|
|
909
912
|
return (_ctx, _cache) => {
|
|
910
|
-
return
|
|
913
|
+
return isVisible2.value ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, rootAttrs.value, { class: alertClasses.value }), [
|
|
911
914
|
createElementVNode("div", null, [
|
|
912
915
|
createElementVNode("div", null, [
|
|
913
916
|
__props.heading ? (openBlock(), createElementBlock("div", {
|
|
914
917
|
key: 0,
|
|
915
918
|
class: normalizeClass(["font-bold w-full justify-between items-start flex gap-2", { "mb-2": (isExpanded.value || !__props.collapsable) && unref(hasSlot) }])
|
|
916
919
|
}, [
|
|
917
|
-
createElementVNode("div", _hoisted_1$
|
|
920
|
+
createElementVNode("div", _hoisted_1$B, [
|
|
918
921
|
createElementVNode("div", _hoisted_2$q, [
|
|
919
|
-
createVNode(_sfc_main$
|
|
922
|
+
createVNode(_sfc_main$O, {
|
|
920
923
|
name: "alert",
|
|
921
924
|
size: 24,
|
|
922
925
|
class: "fill-yellow-700"
|
|
@@ -925,13 +928,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
925
928
|
createElementVNode("span", _hoisted_3$l, toDisplayString(__props.heading), 1)
|
|
926
929
|
]),
|
|
927
930
|
createElementVNode("div", _hoisted_4$j, [
|
|
928
|
-
__props.closeable ? (openBlock(), createBlock(_sfc_main$
|
|
931
|
+
__props.closeable ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
929
932
|
key: 0,
|
|
930
933
|
icon: "cross",
|
|
931
934
|
size: 28,
|
|
932
935
|
onClick: handleClose
|
|
933
936
|
}, { "aria-label": closeLabel.value }, { class: ["fill-gray-900! hover:bg-gray-100 active:bg-gray-200"] }), null, 16)) : createCommentVNode("", true),
|
|
934
|
-
__props.collapsable ? (openBlock(), createBlock(_sfc_main$
|
|
937
|
+
__props.collapsable ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
935
938
|
key: 1,
|
|
936
939
|
icon: "arrowDown",
|
|
937
940
|
size: 28,
|
|
@@ -954,7 +957,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
954
957
|
};
|
|
955
958
|
}
|
|
956
959
|
});
|
|
957
|
-
const _hoisted_1$
|
|
960
|
+
const _hoisted_1$A = ["id"];
|
|
958
961
|
const _hoisted_2$p = {
|
|
959
962
|
key: 0,
|
|
960
963
|
class: "flex items-start justify-between gap-4 mb-4"
|
|
@@ -962,7 +965,7 @@ const _hoisted_2$p = {
|
|
|
962
965
|
const _hoisted_3$k = { class: "flex items-center gap-3" };
|
|
963
966
|
const _hoisted_4$i = { class: "flex items-start gap-3 leading-8" };
|
|
964
967
|
const _hoisted_5$g = { class: "mb-0-last-child" };
|
|
965
|
-
const _sfc_main$
|
|
968
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
966
969
|
__name: "FdsBlockContent",
|
|
967
970
|
props: {
|
|
968
971
|
heading: { default: void 0 },
|
|
@@ -1019,11 +1022,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1019
1022
|
createElementVNode("div", _hoisted_5$g, [
|
|
1020
1023
|
renderSlot(_ctx.$slots, "default")
|
|
1021
1024
|
])
|
|
1022
|
-
], 16, _hoisted_1$
|
|
1025
|
+
], 16, _hoisted_1$A);
|
|
1023
1026
|
};
|
|
1024
1027
|
}
|
|
1025
1028
|
});
|
|
1026
|
-
const _sfc_main$
|
|
1029
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1027
1030
|
__name: "FdsSticker",
|
|
1028
1031
|
props: {
|
|
1029
1032
|
variant: { default: "blue" },
|
|
@@ -1071,7 +1074,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1071
1074
|
};
|
|
1072
1075
|
}
|
|
1073
1076
|
});
|
|
1074
|
-
const _hoisted_1$
|
|
1077
|
+
const _hoisted_1$z = { class: "leading-6 w-full flex justify-between gap-4" };
|
|
1075
1078
|
const _hoisted_2$o = {
|
|
1076
1079
|
key: 0,
|
|
1077
1080
|
class: "flex items-center mr-4"
|
|
@@ -1083,7 +1086,7 @@ const _hoisted_5$f = {
|
|
|
1083
1086
|
class: "w-full flex mt-2"
|
|
1084
1087
|
};
|
|
1085
1088
|
const _hoisted_6$b = ["aria-hidden"];
|
|
1086
|
-
const _sfc_main$
|
|
1089
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1087
1090
|
...{
|
|
1088
1091
|
inheritAttrs: false
|
|
1089
1092
|
},
|
|
@@ -1155,12 +1158,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1155
1158
|
createElementVNode("span", {
|
|
1156
1159
|
class: normalizeClass(buttonRowClasses.value)
|
|
1157
1160
|
}, [
|
|
1158
|
-
createElementVNode("span", _hoisted_1$
|
|
1161
|
+
createElementVNode("span", _hoisted_1$z, [
|
|
1159
1162
|
createElementVNode("span", {
|
|
1160
1163
|
class: normalizeClass(["flex items-center", { "inline-flex items-start": __props.icon }])
|
|
1161
1164
|
}, [
|
|
1162
1165
|
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_2$o, [
|
|
1163
|
-
createVNode(_sfc_main$
|
|
1166
|
+
createVNode(_sfc_main$O, {
|
|
1164
1167
|
name: __props.icon,
|
|
1165
1168
|
size: 24,
|
|
1166
1169
|
class: normalizeClass(["fill-blue-500", [{ "fill-gray-500": __props.disabled }, __props.iconClass]])
|
|
@@ -1173,7 +1176,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1173
1176
|
])
|
|
1174
1177
|
], 2),
|
|
1175
1178
|
createElementVNode("span", _hoisted_4$h, [
|
|
1176
|
-
__props.stickerText && __props.stickerColor ? (openBlock(), createBlock(_sfc_main$
|
|
1179
|
+
__props.stickerText && __props.stickerColor ? (openBlock(), createBlock(_sfc_main$K, {
|
|
1177
1180
|
key: 0,
|
|
1178
1181
|
variant: __props.stickerColor
|
|
1179
1182
|
}, {
|
|
@@ -1182,7 +1185,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1182
1185
|
]),
|
|
1183
1186
|
_: 1
|
|
1184
1187
|
}, 8, ["variant"])) : createCommentVNode("", true),
|
|
1185
|
-
createVNode(_sfc_main$
|
|
1188
|
+
createVNode(_sfc_main$O, {
|
|
1186
1189
|
name: "arrowDown",
|
|
1187
1190
|
size: 24,
|
|
1188
1191
|
class: normalizeClass(["transition-transform duration-200 fill-blue-500 min-w-6 min-h-6", { "rotate-180": isOpen.value, "fill-gray-500": __props.disabled }])
|
|
@@ -1206,7 +1209,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1206
1209
|
};
|
|
1207
1210
|
}
|
|
1208
1211
|
});
|
|
1209
|
-
const _hoisted_1$
|
|
1212
|
+
const _hoisted_1$y = ["id"];
|
|
1210
1213
|
const _hoisted_2$n = {
|
|
1211
1214
|
key: 0,
|
|
1212
1215
|
class: "flex items-start gap-4"
|
|
@@ -1231,7 +1234,7 @@ const _hoisted_13$2 = { class: "flex items-start gap-3" };
|
|
|
1231
1234
|
const _hoisted_14$2 = { class: "mb-0-last-child" };
|
|
1232
1235
|
const smallIconSize = 24;
|
|
1233
1236
|
const largeIconSize = 48;
|
|
1234
|
-
const _sfc_main$
|
|
1237
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1235
1238
|
__name: "FdsBlockInfo",
|
|
1236
1239
|
props: {
|
|
1237
1240
|
heading: { default: void 0 },
|
|
@@ -1264,7 +1267,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1264
1267
|
class: contentClasses.value
|
|
1265
1268
|
}, rootAttrs.value), [
|
|
1266
1269
|
__props.iconSize === "large" && __props.icon ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
|
|
1267
|
-
createVNode(_sfc_main$
|
|
1270
|
+
createVNode(_sfc_main$O, {
|
|
1268
1271
|
name: __props.icon,
|
|
1269
1272
|
size: largeIconSize,
|
|
1270
1273
|
class: "fill-blue-500"
|
|
@@ -1289,7 +1292,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1289
1292
|
}, [
|
|
1290
1293
|
createElementVNode("header", _hoisted_10$4, [
|
|
1291
1294
|
createElementVNode("div", _hoisted_11$4, [
|
|
1292
|
-
__props.icon && __props.iconSize === "small" ? (openBlock(), createBlock(_sfc_main$
|
|
1295
|
+
__props.icon && __props.iconSize === "small" ? (openBlock(), createBlock(_sfc_main$O, {
|
|
1293
1296
|
key: 0,
|
|
1294
1297
|
name: __props.icon,
|
|
1295
1298
|
size: smallIconSize,
|
|
@@ -1306,16 +1309,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
1306
1309
|
renderSlot(_ctx.$slots, "default")
|
|
1307
1310
|
])
|
|
1308
1311
|
]))
|
|
1309
|
-
], 16, _hoisted_1$
|
|
1312
|
+
], 16, _hoisted_1$y);
|
|
1310
1313
|
};
|
|
1311
1314
|
}
|
|
1312
1315
|
});
|
|
1313
|
-
const _hoisted_1$
|
|
1316
|
+
const _hoisted_1$x = { class: "mb-0-last-child" };
|
|
1314
1317
|
const _hoisted_2$m = {
|
|
1315
1318
|
key: 0,
|
|
1316
1319
|
class: "flex items-end"
|
|
1317
1320
|
};
|
|
1318
|
-
const _sfc_main$
|
|
1321
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1319
1322
|
...{
|
|
1320
1323
|
inheritAttrs: false
|
|
1321
1324
|
},
|
|
@@ -1428,7 +1431,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1428
1431
|
createElementVNode("div", {
|
|
1429
1432
|
class: normalizeClass(["flex w-full flex-1", contentClasses.value])
|
|
1430
1433
|
}, [
|
|
1431
|
-
__props.icon ? (openBlock(), createBlock(_sfc_main$
|
|
1434
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$O, {
|
|
1432
1435
|
key: 0,
|
|
1433
1436
|
name: __props.icon,
|
|
1434
1437
|
size: 24,
|
|
@@ -1447,7 +1450,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1447
1450
|
createElementVNode("div", {
|
|
1448
1451
|
class: normalizeClass(slotWrapperClasses.value)
|
|
1449
1452
|
}, [
|
|
1450
|
-
createElementVNode("div", _hoisted_1$
|
|
1453
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
1451
1454
|
renderSlot(_ctx.$slots, "default")
|
|
1452
1455
|
]),
|
|
1453
1456
|
unref(hasStickerSlot) ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
|
|
@@ -1456,7 +1459,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1456
1459
|
], 2)
|
|
1457
1460
|
], 2)
|
|
1458
1461
|
], 2),
|
|
1459
|
-
__props.variant === "link" ? (openBlock(), createBlock(_sfc_main$
|
|
1462
|
+
__props.variant === "link" ? (openBlock(), createBlock(_sfc_main$O, {
|
|
1460
1463
|
key: 0,
|
|
1461
1464
|
name: "arrowRight",
|
|
1462
1465
|
size: 24,
|
|
@@ -1468,8 +1471,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1468
1471
|
};
|
|
1469
1472
|
}
|
|
1470
1473
|
});
|
|
1471
|
-
const _hoisted_1$
|
|
1472
|
-
const _sfc_main$
|
|
1474
|
+
const _hoisted_1$w = ["aria-label"];
|
|
1475
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1473
1476
|
__name: "FdsSpinner",
|
|
1474
1477
|
props: {
|
|
1475
1478
|
size: { default: "48px" },
|
|
@@ -1549,13 +1552,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1549
1552
|
key: 0,
|
|
1550
1553
|
class: normalizeClass(__props.labelPosition === "bottom" ? "font-bold" : "")
|
|
1551
1554
|
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)
|
|
1552
|
-
], 16, _hoisted_1$
|
|
1555
|
+
], 16, _hoisted_1$w);
|
|
1553
1556
|
};
|
|
1554
1557
|
}
|
|
1555
1558
|
});
|
|
1556
|
-
const _hoisted_1$
|
|
1559
|
+
const _hoisted_1$v = ["aria-disabled"];
|
|
1557
1560
|
const elBase$2 = "box-border appearance-none inline-flex items-center justify-center w-fit min-h-0 shadow-none p-0.5 text-base select-none m-0 rounded-md text-left align-middle no-underline transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
1558
|
-
const _sfc_main$
|
|
1561
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
1559
1562
|
...{
|
|
1560
1563
|
inheritAttrs: false
|
|
1561
1564
|
},
|
|
@@ -1640,7 +1643,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1640
1643
|
onClick
|
|
1641
1644
|
}), {
|
|
1642
1645
|
default: withCtx(() => [
|
|
1643
|
-
__props.loading ? (openBlock(), createBlock(_sfc_main$
|
|
1646
|
+
__props.loading ? (openBlock(), createBlock(_sfc_main$G, {
|
|
1644
1647
|
key: 0,
|
|
1645
1648
|
class: "mr-2",
|
|
1646
1649
|
size: "24px",
|
|
@@ -1650,7 +1653,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1650
1653
|
class: normalizeClass(iconOrderClasses.value),
|
|
1651
1654
|
"aria-hidden": "true"
|
|
1652
1655
|
}, [
|
|
1653
|
-
createVNode(_sfc_main$
|
|
1656
|
+
createVNode(_sfc_main$O, {
|
|
1654
1657
|
class: normalizeClass(iconFillClass2.value),
|
|
1655
1658
|
name: __props.icon,
|
|
1656
1659
|
size: __props.iconSize
|
|
@@ -1660,15 +1663,15 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1660
1663
|
]),
|
|
1661
1664
|
_: 1
|
|
1662
1665
|
}, 16, ["type", "disabled", "data-testid", "class"]))
|
|
1663
|
-
], 10, _hoisted_1$
|
|
1666
|
+
], 10, _hoisted_1$v);
|
|
1664
1667
|
};
|
|
1665
1668
|
}
|
|
1666
1669
|
});
|
|
1667
|
-
const _hoisted_1$
|
|
1670
|
+
const _hoisted_1$u = {
|
|
1668
1671
|
key: 0,
|
|
1669
1672
|
class: "flex items-center gap-2 h-7"
|
|
1670
1673
|
};
|
|
1671
|
-
const _sfc_main$
|
|
1674
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1672
1675
|
__name: "FdsButtonCopy",
|
|
1673
1676
|
props: {
|
|
1674
1677
|
value: { default: "" },
|
|
@@ -1730,10 +1733,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1730
1733
|
}
|
|
1731
1734
|
});
|
|
1732
1735
|
return (_ctx, _cache) => {
|
|
1733
|
-
return isCopied.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1734
|
-
createVNode(_sfc_main$
|
|
1736
|
+
return isCopied.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
1737
|
+
createVNode(_sfc_main$O, { name: "bigSuccess" }),
|
|
1735
1738
|
createElementVNode("span", null, toDisplayString(props.copiedText), 1)
|
|
1736
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
1739
|
+
])) : (openBlock(), createBlock(_sfc_main$F, {
|
|
1737
1740
|
key: 1,
|
|
1738
1741
|
type: "button",
|
|
1739
1742
|
disabled: props.disabled,
|
|
@@ -5024,8 +5027,8 @@ function useDownload() {
|
|
|
5024
5027
|
isDownloading
|
|
5025
5028
|
};
|
|
5026
5029
|
}
|
|
5027
|
-
const _hoisted_1$
|
|
5028
|
-
const _sfc_main$
|
|
5030
|
+
const _hoisted_1$t = ["disabled", "aria-disabled"];
|
|
5031
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
5029
5032
|
__name: "FdsButtonDownload",
|
|
5030
5033
|
props: {
|
|
5031
5034
|
loading: { type: Boolean, default: false },
|
|
@@ -5126,23 +5129,23 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
5126
5129
|
class: normalizeClass(iconOrderClasses.value),
|
|
5127
5130
|
"aria-hidden": "true"
|
|
5128
5131
|
}, [
|
|
5129
|
-
createVNode(_sfc_main$
|
|
5132
|
+
createVNode(_sfc_main$O, {
|
|
5130
5133
|
class: normalizeClass(iconFillClass2.value),
|
|
5131
5134
|
name: "download",
|
|
5132
5135
|
size: 24
|
|
5133
5136
|
}, null, 8, ["class"])
|
|
5134
5137
|
], 2),
|
|
5135
5138
|
createTextVNode(" " + toDisplayString(__props.text), 1)
|
|
5136
|
-
], 16, _hoisted_1$
|
|
5139
|
+
], 16, _hoisted_1$t);
|
|
5137
5140
|
};
|
|
5138
5141
|
}
|
|
5139
5142
|
});
|
|
5140
|
-
const _hoisted_1$
|
|
5143
|
+
const _hoisted_1$s = ["aria-disabled"];
|
|
5141
5144
|
const _hoisted_2$l = { key: 2 };
|
|
5142
5145
|
const elBase$1 = "fds-button-primary box-border appearance-none inline-flex items-center justify-center select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
5143
5146
|
const variantClasses$1 = "bg-blue-600 border border-blue-600 text-white hover:bg-blue-700";
|
|
5144
5147
|
const iconFillClass$1 = "fill-white";
|
|
5145
|
-
const _sfc_main$
|
|
5148
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
5146
5149
|
...{
|
|
5147
5150
|
inheritAttrs: false
|
|
5148
5151
|
},
|
|
@@ -5225,7 +5228,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5225
5228
|
onClick
|
|
5226
5229
|
}), {
|
|
5227
5230
|
default: withCtx(() => [
|
|
5228
|
-
__props.loading ? (openBlock(), createBlock(_sfc_main$
|
|
5231
|
+
__props.loading ? (openBlock(), createBlock(_sfc_main$G, {
|
|
5229
5232
|
key: 0,
|
|
5230
5233
|
size: __props.size === "sm" ? "18px" : "24px",
|
|
5231
5234
|
color: "inherit"
|
|
@@ -5234,7 +5237,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5234
5237
|
class: normalizeClass(iconOrderClasses.value),
|
|
5235
5238
|
"aria-hidden": "true"
|
|
5236
5239
|
}, [
|
|
5237
|
-
createVNode(_sfc_main$
|
|
5240
|
+
createVNode(_sfc_main$O, {
|
|
5238
5241
|
class: normalizeClass(iconFillClass$1),
|
|
5239
5242
|
name: __props.icon,
|
|
5240
5243
|
size: __props.iconSize
|
|
@@ -5244,16 +5247,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
5244
5247
|
]),
|
|
5245
5248
|
_: 1
|
|
5246
5249
|
}, 16, ["type", "disabled", "data-testid", "class"]))
|
|
5247
|
-
], 10, _hoisted_1$
|
|
5250
|
+
], 10, _hoisted_1$s);
|
|
5248
5251
|
};
|
|
5249
5252
|
}
|
|
5250
5253
|
});
|
|
5251
|
-
const _hoisted_1$
|
|
5254
|
+
const _hoisted_1$r = ["aria-disabled"];
|
|
5252
5255
|
const _hoisted_2$k = { key: 2 };
|
|
5253
5256
|
const elBase = "fds-button-secondary box-border appearance-none inline-flex items-center justify-center select-none w-full min-h-0 min-w-12 m-0 rounded-lg text-center align-middle whitespace-nowrap no-underline shadow-[0_2px_4px_rgba(12,72,153,0.12)] transition-[box-shadow,border-color,background-color] duration-200 font-main font-bold text-base leading-5 tracking-normal focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500";
|
|
5254
5257
|
const variantClasses = "bg-white border-2 border-blue-500 text-blue-600 hover:bg-blue_t-100 hover:border-blue-500 hover:text-blue-600 active:bg-blue_t-200 active:border-blue-500 active:text-blue-600";
|
|
5255
5258
|
const iconFillClass = "fill-blue-500";
|
|
5256
|
-
const _sfc_main$
|
|
5259
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
5257
5260
|
...{
|
|
5258
5261
|
inheritAttrs: false
|
|
5259
5262
|
},
|
|
@@ -5337,7 +5340,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5337
5340
|
onClick
|
|
5338
5341
|
}), {
|
|
5339
5342
|
default: withCtx(() => [
|
|
5340
|
-
__props.loading ? (openBlock(), createBlock(_sfc_main$
|
|
5343
|
+
__props.loading ? (openBlock(), createBlock(_sfc_main$G, {
|
|
5341
5344
|
key: 0,
|
|
5342
5345
|
size: __props.size === "sm" ? "18px" : "24px",
|
|
5343
5346
|
color: "inherit"
|
|
@@ -5346,7 +5349,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5346
5349
|
class: normalizeClass(iconOrderClasses.value),
|
|
5347
5350
|
"aria-hidden": "true"
|
|
5348
5351
|
}, [
|
|
5349
|
-
createVNode(_sfc_main$
|
|
5352
|
+
createVNode(_sfc_main$O, {
|
|
5350
5353
|
class: normalizeClass(iconFillClass),
|
|
5351
5354
|
name: __props.icon,
|
|
5352
5355
|
size: __props.iconSize
|
|
@@ -5356,7 +5359,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
5356
5359
|
]),
|
|
5357
5360
|
_: 1
|
|
5358
5361
|
}, 16, ["type", "disabled", "data-testid", "class"]))
|
|
5359
|
-
], 10, _hoisted_1$
|
|
5362
|
+
], 10, _hoisted_1$r);
|
|
5360
5363
|
};
|
|
5361
5364
|
}
|
|
5362
5365
|
});
|
|
@@ -5678,8 +5681,8 @@ function useViewportBreakpoint() {
|
|
|
5678
5681
|
breakpoints
|
|
5679
5682
|
};
|
|
5680
5683
|
}
|
|
5681
|
-
const _hoisted_1$
|
|
5682
|
-
const _sfc_main$
|
|
5684
|
+
const _hoisted_1$q = ["title"];
|
|
5685
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
5683
5686
|
__name: "FdsBreakpointIndicator",
|
|
5684
5687
|
props: {
|
|
5685
5688
|
popoverClass: {}
|
|
@@ -5718,7 +5721,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
5718
5721
|
class: "px-2 py-1 rounded text-xs bg-white bg-opacity-20 text-black hover:bg-opacity-30 cursor-pointer",
|
|
5719
5722
|
title: `${unref(windowWidth)}px`,
|
|
5720
5723
|
onClick: toggleBreakpointList
|
|
5721
|
-
}, toDisplayString(unref(currentBreakpoint)), 9, _hoisted_1$
|
|
5724
|
+
}, toDisplayString(unref(currentBreakpoint)), 9, _hoisted_1$q),
|
|
5722
5725
|
showBreakpointList.value ? (openBlock(), createElementBlock("div", {
|
|
5723
5726
|
key: 0,
|
|
5724
5727
|
class: normalizeClass(["absolute bottom-full left-0 mb-2 rounded-lg shadow-lg p-2 text-xs font-mono whitespace-nowrap z-10", __props.popoverClass])
|
|
@@ -5798,9 +5801,9 @@ function useDevModePoEditor() {
|
|
|
5798
5801
|
setI18nKeysVisibility
|
|
5799
5802
|
};
|
|
5800
5803
|
}
|
|
5801
|
-
const _hoisted_1$
|
|
5804
|
+
const _hoisted_1$p = ["for"];
|
|
5802
5805
|
const _hoisted_2$j = ["value", "disabled", "required"];
|
|
5803
|
-
const _sfc_main$
|
|
5806
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
5804
5807
|
...{
|
|
5805
5808
|
inheritAttrs: false
|
|
5806
5809
|
},
|
|
@@ -5968,14 +5971,14 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
5968
5971
|
createTextVNode(toDisplayString(props.label), 1)
|
|
5969
5972
|
], 64)) : createCommentVNode("", true)
|
|
5970
5973
|
], 2)) : createCommentVNode("", true)
|
|
5971
|
-
], 16, _hoisted_1$
|
|
5974
|
+
], 16, _hoisted_1$p)
|
|
5972
5975
|
], 2);
|
|
5973
5976
|
};
|
|
5974
5977
|
}
|
|
5975
5978
|
});
|
|
5976
|
-
const _hoisted_1$
|
|
5979
|
+
const _hoisted_1$o = ["for"];
|
|
5977
5980
|
const _hoisted_2$i = ["value", "checked", "disabled", "required"];
|
|
5978
|
-
const _sfc_main$
|
|
5981
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
5979
5982
|
...{
|
|
5980
5983
|
inheritAttrs: false
|
|
5981
5984
|
},
|
|
@@ -6106,7 +6109,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
6106
6109
|
createTextVNode(toDisplayString(props.label), 1)
|
|
6107
6110
|
], 64)) : createCommentVNode("", true)
|
|
6108
6111
|
], 2)) : createCommentVNode("", true)
|
|
6109
|
-
], 16, _hoisted_1$
|
|
6112
|
+
], 16, _hoisted_1$o)
|
|
6110
6113
|
], 2);
|
|
6111
6114
|
};
|
|
6112
6115
|
}
|
|
@@ -6123,7 +6126,7 @@ function classValueToString(value) {
|
|
|
6123
6126
|
}
|
|
6124
6127
|
return String(value);
|
|
6125
6128
|
}
|
|
6126
|
-
const _sfc_main$
|
|
6129
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
6127
6130
|
...{
|
|
6128
6131
|
inheritAttrs: false
|
|
6129
6132
|
},
|
|
@@ -6154,7 +6157,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
6154
6157
|
};
|
|
6155
6158
|
}
|
|
6156
6159
|
});
|
|
6157
|
-
const _hoisted_1$
|
|
6160
|
+
const _hoisted_1$n = {
|
|
6158
6161
|
key: 0,
|
|
6159
6162
|
class: "absolute bottom-full right-0 mb-3 z-60 flex min-w-54 flex-col font-normal"
|
|
6160
6163
|
};
|
|
@@ -6170,7 +6173,7 @@ const _hoisted_5$d = {
|
|
|
6170
6173
|
};
|
|
6171
6174
|
const _hoisted_6$9 = { key: 2 };
|
|
6172
6175
|
const OVERLAY_OPEN_KEY = "devModeOverlayOpen";
|
|
6173
|
-
const _sfc_main$
|
|
6176
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
6174
6177
|
__name: "FdsDevModeOverlay",
|
|
6175
6178
|
props: {
|
|
6176
6179
|
environment: { default: null },
|
|
@@ -6237,11 +6240,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6237
6240
|
() => checkToggles.value.length > 0 || radioToggles.value.length > 0 || buttonToggles.value.length > 0 || canToggleI18nKeys.value || showLocaleSwitcher.value
|
|
6238
6241
|
);
|
|
6239
6242
|
return (_ctx, _cache) => {
|
|
6240
|
-
return hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6243
|
+
return hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
6241
6244
|
isOpen.value ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
|
|
6242
6245
|
createElementVNode("div", _hoisted_3$h, [
|
|
6243
6246
|
createElementVNode("div", null, [
|
|
6244
|
-
unref(canToggleI18nKeys) ? (openBlock(), createBlock(_sfc_main$
|
|
6247
|
+
unref(canToggleI18nKeys) ? (openBlock(), createBlock(_sfc_main$z, {
|
|
6245
6248
|
key: 0,
|
|
6246
6249
|
checked: unref(showingTranslationKeys),
|
|
6247
6250
|
onChange: unref(setI18nKeysVisibility),
|
|
@@ -6253,7 +6256,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6253
6256
|
_: 1
|
|
6254
6257
|
}, 8, ["checked", "onChange"])) : createCommentVNode("", true),
|
|
6255
6258
|
(openBlock(true), createElementBlock(Fragment, null, renderList(checkToggles.value, (toggle) => {
|
|
6256
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6259
|
+
return openBlock(), createBlock(_sfc_main$z, {
|
|
6257
6260
|
key: `${toggle.key}-${toggle.checked}`,
|
|
6258
6261
|
checked: toggle.checked,
|
|
6259
6262
|
class: "mb-0!",
|
|
@@ -6268,7 +6271,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6268
6271
|
]),
|
|
6269
6272
|
radioToggles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$f, [
|
|
6270
6273
|
(openBlock(true), createElementBlock(Fragment, null, renderList(radioToggles.value, (toggle) => {
|
|
6271
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6274
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
6272
6275
|
key: `${toggle.key}-${toggle.checked}`,
|
|
6273
6276
|
name: toggle.group,
|
|
6274
6277
|
value: toggle.value,
|
|
@@ -6285,7 +6288,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6285
6288
|
])) : createCommentVNode("", true),
|
|
6286
6289
|
buttonToggles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
6287
6290
|
(openBlock(true), createElementBlock(Fragment, null, renderList(buttonToggles.value, (toggle) => {
|
|
6288
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6291
|
+
return openBlock(), createBlock(_sfc_main$F, {
|
|
6289
6292
|
key: toggle.key,
|
|
6290
6293
|
size: "sm",
|
|
6291
6294
|
block: "",
|
|
@@ -6296,7 +6299,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6296
6299
|
])) : createCommentVNode("", true),
|
|
6297
6300
|
showLocaleSwitcher.value ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
6298
6301
|
(openBlock(true), createElementBlock(Fragment, null, renderList(localeOptions.value, (localeCode) => {
|
|
6299
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6302
|
+
return openBlock(), createBlock(_sfc_main$y, {
|
|
6300
6303
|
key: localeCode,
|
|
6301
6304
|
name: "fds-dev-mode-locale",
|
|
6302
6305
|
value: localeCode,
|
|
@@ -6320,13 +6323,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6320
6323
|
onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
|
|
6321
6324
|
class: "flex w-full cursor-pointer justify-between gap-2 px-3 py-2 active:bg-gray-100"
|
|
6322
6325
|
}, [
|
|
6323
|
-
createVNode(_sfc_main$
|
|
6326
|
+
createVNode(_sfc_main$x, { class: "mb-0!" }, {
|
|
6324
6327
|
default: withCtx(() => [
|
|
6325
6328
|
createTextVNode(toDisplayString(unref(t)("FdsDevMode.overlay.quickSettings")), 1)
|
|
6326
6329
|
]),
|
|
6327
6330
|
_: 1
|
|
6328
6331
|
}),
|
|
6329
|
-
createVNode(_sfc_main$
|
|
6332
|
+
createVNode(_sfc_main$O, {
|
|
6330
6333
|
name: isOpen.value ? "arrowUp" : "arrowDown",
|
|
6331
6334
|
size: 20,
|
|
6332
6335
|
class: "fill-gray-700"
|
|
@@ -6337,10 +6340,60 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
6337
6340
|
};
|
|
6338
6341
|
}
|
|
6339
6342
|
});
|
|
6340
|
-
const
|
|
6343
|
+
const FOCUSABLE_SELECTOR = [
|
|
6344
|
+
"a[href]:not([disabled])",
|
|
6345
|
+
"button:not([disabled])",
|
|
6346
|
+
"textarea:not([disabled])",
|
|
6347
|
+
'input:not([disabled]):not([type="hidden"])',
|
|
6348
|
+
"select:not([disabled])",
|
|
6349
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
6350
|
+
].join(", ");
|
|
6351
|
+
const isVisible = (el) => !!(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
|
|
6352
|
+
const getFocusableElements = (container) => Array.from(container.querySelectorAll(FOCUSABLE_SELECTOR)).filter(
|
|
6353
|
+
(el) => el.tabIndex >= 0 && !el.hasAttribute("disabled") && isVisible(el)
|
|
6354
|
+
);
|
|
6355
|
+
function useFocusTrap() {
|
|
6356
|
+
let cleanup = null;
|
|
6357
|
+
const deactivate = () => {
|
|
6358
|
+
cleanup?.();
|
|
6359
|
+
cleanup = null;
|
|
6360
|
+
};
|
|
6361
|
+
const activate = (getContainer) => {
|
|
6362
|
+
deactivate();
|
|
6363
|
+
nextTick(() => {
|
|
6364
|
+
const container = getContainer();
|
|
6365
|
+
if (!container) return;
|
|
6366
|
+
const focusable = getFocusableElements(container);
|
|
6367
|
+
if (focusable.length > 0) {
|
|
6368
|
+
focusable[0].focus();
|
|
6369
|
+
}
|
|
6370
|
+
const handleTabKey = (e) => {
|
|
6371
|
+
if (e.key !== "Tab") return;
|
|
6372
|
+
const current = getFocusableElements(container);
|
|
6373
|
+
if (current.length === 0) return;
|
|
6374
|
+
const first = current[0];
|
|
6375
|
+
const last = current[current.length - 1];
|
|
6376
|
+
if (e.shiftKey && document.activeElement === first) {
|
|
6377
|
+
last.focus();
|
|
6378
|
+
e.preventDefault();
|
|
6379
|
+
} else if (!e.shiftKey && document.activeElement === last) {
|
|
6380
|
+
first.focus();
|
|
6381
|
+
e.preventDefault();
|
|
6382
|
+
}
|
|
6383
|
+
};
|
|
6384
|
+
container.addEventListener("keydown", handleTabKey, true);
|
|
6385
|
+
cleanup = () => {
|
|
6386
|
+
container.removeEventListener("keydown", handleTabKey, true);
|
|
6387
|
+
};
|
|
6388
|
+
});
|
|
6389
|
+
};
|
|
6390
|
+
onBeforeUnmount(deactivate);
|
|
6391
|
+
return { activate, deactivate };
|
|
6392
|
+
}
|
|
6393
|
+
const _hoisted_1$m = { class: "flex justify-between mb-4" };
|
|
6341
6394
|
const _hoisted_2$g = { class: "flex items-center gap-2" };
|
|
6342
6395
|
const _hoisted_3$g = { class: "mb-0-last-child" };
|
|
6343
|
-
const _sfc_main$
|
|
6396
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
6344
6397
|
__name: "FdsModal",
|
|
6345
6398
|
props: {
|
|
6346
6399
|
open: { type: Boolean, default: false },
|
|
@@ -6362,8 +6415,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6362
6415
|
const props = __props;
|
|
6363
6416
|
const emit = __emit;
|
|
6364
6417
|
const isOpen = ref(props.open);
|
|
6365
|
-
let cleanupFocusTrap = null;
|
|
6366
6418
|
const previouslyFocusedElement = ref(null);
|
|
6419
|
+
const { activate: activateFocusTrap, deactivate: deactivateFocusTrap } = useFocusTrap();
|
|
6367
6420
|
const hasFooterSlot = useHasSlot("modal-footer");
|
|
6368
6421
|
const { t } = useFdsI18n();
|
|
6369
6422
|
const modalInnerRef = ref(null);
|
|
@@ -6459,39 +6512,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6459
6512
|
handleClose();
|
|
6460
6513
|
}
|
|
6461
6514
|
};
|
|
6462
|
-
const getTabList = (modal) => modal.querySelectorAll(
|
|
6463
|
-
'a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'
|
|
6464
|
-
);
|
|
6465
|
-
const trapFocus = () => {
|
|
6466
|
-
if (!isOpen.value) return;
|
|
6467
|
-
nextTick(() => {
|
|
6468
|
-
const modal = document.querySelector(".fds-modal-inner");
|
|
6469
|
-
if (!modal) return;
|
|
6470
|
-
const tabList = getTabList(modal);
|
|
6471
|
-
if (tabList.length > 0) {
|
|
6472
|
-
tabList[0].focus();
|
|
6473
|
-
}
|
|
6474
|
-
const handleTabKey = (e) => {
|
|
6475
|
-
if (e.key !== "Tab") return;
|
|
6476
|
-
const currentTabList = getTabList(modal);
|
|
6477
|
-
if (currentTabList.length === 0) return;
|
|
6478
|
-
const firstFocusableEl = currentTabList[0];
|
|
6479
|
-
const lastFocusableEl = currentTabList[currentTabList.length - 1];
|
|
6480
|
-
const isTabOrderReversed = e.shiftKey;
|
|
6481
|
-
if (isTabOrderReversed && document.activeElement === firstFocusableEl) {
|
|
6482
|
-
lastFocusableEl.focus();
|
|
6483
|
-
e.preventDefault();
|
|
6484
|
-
} else if (!isTabOrderReversed && document.activeElement === lastFocusableEl) {
|
|
6485
|
-
firstFocusableEl.focus();
|
|
6486
|
-
e.preventDefault();
|
|
6487
|
-
}
|
|
6488
|
-
};
|
|
6489
|
-
modal.addEventListener("keydown", handleTabKey, true);
|
|
6490
|
-
cleanupFocusTrap = () => {
|
|
6491
|
-
modal.removeEventListener("keydown", handleTabKey, true);
|
|
6492
|
-
};
|
|
6493
|
-
});
|
|
6494
|
-
};
|
|
6495
6515
|
watch(
|
|
6496
6516
|
() => props.open,
|
|
6497
6517
|
(newValue) => {
|
|
@@ -6502,14 +6522,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6502
6522
|
if (props.lockScroll) {
|
|
6503
6523
|
setHtmlOverflow("hidden");
|
|
6504
6524
|
}
|
|
6505
|
-
|
|
6525
|
+
activateFocusTrap(() => modalInnerRef.value);
|
|
6506
6526
|
} else {
|
|
6507
6527
|
setHtmlOverflow("auto");
|
|
6508
6528
|
resetDragResize();
|
|
6509
|
-
|
|
6510
|
-
cleanupFocusTrap();
|
|
6511
|
-
cleanupFocusTrap = null;
|
|
6512
|
-
}
|
|
6529
|
+
deactivateFocusTrap();
|
|
6513
6530
|
nextTick(() => {
|
|
6514
6531
|
if (previouslyFocusedElement.value) {
|
|
6515
6532
|
previouslyFocusedElement.value.focus();
|
|
@@ -6527,16 +6544,14 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6527
6544
|
if (props.lockScroll) {
|
|
6528
6545
|
setHtmlOverflow("hidden");
|
|
6529
6546
|
}
|
|
6530
|
-
|
|
6547
|
+
activateFocusTrap(() => modalInnerRef.value);
|
|
6531
6548
|
}
|
|
6532
6549
|
});
|
|
6533
6550
|
onBeforeUnmount(() => {
|
|
6534
6551
|
document.removeEventListener("keydown", handleKeyDown, true);
|
|
6535
6552
|
cleanupDragResize();
|
|
6536
6553
|
setHtmlOverflow("auto");
|
|
6537
|
-
|
|
6538
|
-
cleanupFocusTrap();
|
|
6539
|
-
}
|
|
6554
|
+
deactivateFocusTrap();
|
|
6540
6555
|
});
|
|
6541
6556
|
const modalAttrs = computed(() => {
|
|
6542
6557
|
const attrs = {};
|
|
@@ -6569,9 +6584,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6569
6584
|
createElementVNode("div", {
|
|
6570
6585
|
class: normalizeClass(__props.resizable ? "overflow-auto flex-1 min-h-0" : "")
|
|
6571
6586
|
}, [
|
|
6572
|
-
createElementVNode("div", _hoisted_1$
|
|
6587
|
+
createElementVNode("div", _hoisted_1$m, [
|
|
6573
6588
|
createElementVNode("div", _hoisted_2$g, [
|
|
6574
|
-
iconName.value ? (openBlock(), createBlock(_sfc_main$
|
|
6589
|
+
iconName.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
6575
6590
|
key: 0,
|
|
6576
6591
|
name: iconName.value,
|
|
6577
6592
|
size: 24,
|
|
@@ -6582,7 +6597,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
6582
6597
|
class: normalizeClass(headerTitleClasses.value)
|
|
6583
6598
|
}, toDisplayString(__props.heading), 3)
|
|
6584
6599
|
]),
|
|
6585
|
-
!__props.strict ? (openBlock(), createBlock(_sfc_main$
|
|
6600
|
+
!__props.strict ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
6586
6601
|
key: 0,
|
|
6587
6602
|
icon: "cross",
|
|
6588
6603
|
size: 28,
|
|
@@ -9844,7 +9859,7 @@ try {
|
|
|
9844
9859
|
globalThis.IMask = IMask;
|
|
9845
9860
|
} catch {
|
|
9846
9861
|
}
|
|
9847
|
-
const _sfc_main$
|
|
9862
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
9848
9863
|
...{
|
|
9849
9864
|
inheritAttrs: false
|
|
9850
9865
|
},
|
|
@@ -9875,7 +9890,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9875
9890
|
};
|
|
9876
9891
|
}
|
|
9877
9892
|
});
|
|
9878
|
-
const _hoisted_1$
|
|
9893
|
+
const _hoisted_1$l = ["for", "id"];
|
|
9879
9894
|
const _hoisted_2$f = { class: "relative" };
|
|
9880
9895
|
const _hoisted_3$f = ["type", "required", "disabled", "tabindex", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "autocomplete", "placeholder", "pattern", "searchIcon"];
|
|
9881
9896
|
const _hoisted_4$e = {
|
|
@@ -9883,7 +9898,7 @@ const _hoisted_4$e = {
|
|
|
9883
9898
|
class: "text-red-700 font-bold mt-1"
|
|
9884
9899
|
};
|
|
9885
9900
|
const inputPaddingClasses = "px-3 py-[calc(0.75rem-1px)]";
|
|
9886
|
-
const _sfc_main$
|
|
9901
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9887
9902
|
...{
|
|
9888
9903
|
inheritAttrs: false
|
|
9889
9904
|
},
|
|
@@ -10183,8 +10198,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10183
10198
|
for: inputId.value,
|
|
10184
10199
|
id: labelId.value,
|
|
10185
10200
|
class: ["block font-bold text-gray-900 cursor-pointer", { "mb-0": props.meta, "mb-1": !props.meta }]
|
|
10186
|
-
}, labelAttrs.value), toDisplayString(props.label), 17, _hoisted_1$
|
|
10187
|
-
props.meta ? (openBlock(), createBlock(_sfc_main$
|
|
10201
|
+
}, labelAttrs.value), toDisplayString(props.label), 17, _hoisted_1$l)) : createCommentVNode("", true),
|
|
10202
|
+
props.meta ? (openBlock(), createBlock(_sfc_main$u, {
|
|
10188
10203
|
key: 1,
|
|
10189
10204
|
id: metaId.value,
|
|
10190
10205
|
class: normalizeClass({ "mb-1": !props.labelLeft })
|
|
@@ -10229,7 +10244,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10229
10244
|
createElementVNode("div", {
|
|
10230
10245
|
class: normalizeClass(rightIconsContainerClasses.value)
|
|
10231
10246
|
}, [
|
|
10232
|
-
showDateIcon.value ? (openBlock(), createBlock(_sfc_main$
|
|
10247
|
+
showDateIcon.value ? (openBlock(), createBlock(_sfc_main$N, {
|
|
10233
10248
|
key: 0,
|
|
10234
10249
|
"aria-label": dateButtonLabel.value,
|
|
10235
10250
|
onClick: onDateIconClick,
|
|
@@ -10237,29 +10252,29 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10237
10252
|
size: 28,
|
|
10238
10253
|
class: "fill-blue-500"
|
|
10239
10254
|
}, null, 8, ["aria-label"])) : createCommentVNode("", true),
|
|
10240
|
-
isInvalid.value ? (openBlock(), createBlock(_sfc_main$
|
|
10255
|
+
isInvalid.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
10241
10256
|
key: 1,
|
|
10242
10257
|
name: "alert",
|
|
10243
10258
|
class: "fill-red-700"
|
|
10244
10259
|
})) : createCommentVNode("", true),
|
|
10245
|
-
isValid2.value ? (openBlock(), createBlock(_sfc_main$
|
|
10260
|
+
isValid2.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
10246
10261
|
key: 2,
|
|
10247
10262
|
name: "bigSuccess"
|
|
10248
10263
|
})) : createCommentVNode("", true),
|
|
10249
|
-
props.searchIcon ? (openBlock(), createBlock(_sfc_main$
|
|
10264
|
+
props.searchIcon ? (openBlock(), createBlock(_sfc_main$O, {
|
|
10250
10265
|
key: 3,
|
|
10251
10266
|
name: "search",
|
|
10252
10267
|
size: 24,
|
|
10253
10268
|
class: "fill-blue-500"
|
|
10254
10269
|
})) : createCommentVNode("", true),
|
|
10255
|
-
showClearButton.value ? (openBlock(), createBlock(_sfc_main$
|
|
10270
|
+
showClearButton.value ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
10256
10271
|
key: 4,
|
|
10257
10272
|
icon: "cross"
|
|
10258
10273
|
}, { "aria-label": clearButtonLabel.value }, {
|
|
10259
10274
|
onClick: onClear,
|
|
10260
10275
|
size: 30
|
|
10261
10276
|
}), null, 16)) : createCommentVNode("", true),
|
|
10262
|
-
showPasswordToggle.value ? (openBlock(), createBlock(_sfc_main$
|
|
10277
|
+
showPasswordToggle.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
10263
10278
|
key: 5,
|
|
10264
10279
|
icon: showPassword.value ? "viewOff" : "viewOn",
|
|
10265
10280
|
text: showPassword.value ? passwordButtonHideLabel.value : passwordButtonShowLabel.value,
|
|
@@ -10279,7 +10294,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
10279
10294
|
};
|
|
10280
10295
|
}
|
|
10281
10296
|
});
|
|
10282
|
-
const _sfc_main$
|
|
10297
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
10283
10298
|
__name: "FdsTabs",
|
|
10284
10299
|
props: {
|
|
10285
10300
|
block: { type: Boolean, default: false },
|
|
@@ -10312,7 +10327,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
10312
10327
|
};
|
|
10313
10328
|
}
|
|
10314
10329
|
});
|
|
10315
|
-
const _sfc_main$
|
|
10330
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
10316
10331
|
...{
|
|
10317
10332
|
inheritAttrs: false
|
|
10318
10333
|
},
|
|
@@ -10427,7 +10442,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
10427
10442
|
};
|
|
10428
10443
|
}
|
|
10429
10444
|
});
|
|
10430
|
-
const _hoisted_1$
|
|
10445
|
+
const _hoisted_1$k = { class: "space-y-6" };
|
|
10431
10446
|
const _hoisted_2$e = {
|
|
10432
10447
|
key: 0,
|
|
10433
10448
|
class: "text-sm text-gray-600"
|
|
@@ -10526,7 +10541,7 @@ const _hoisted_59 = {
|
|
|
10526
10541
|
class: "mt-2"
|
|
10527
10542
|
};
|
|
10528
10543
|
const _hoisted_60 = { class: "mt-4 flex justify-end gap-3" };
|
|
10529
|
-
const _sfc_main$
|
|
10544
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
10530
10545
|
__name: "FdsDevModeStorage",
|
|
10531
10546
|
props: {
|
|
10532
10547
|
open: { type: Boolean, default: false },
|
|
@@ -10699,7 +10714,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10699
10714
|
loadStorageEntries();
|
|
10700
10715
|
};
|
|
10701
10716
|
return (_ctx, _cache) => {
|
|
10702
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10717
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
10703
10718
|
open: isOpen.value,
|
|
10704
10719
|
heading: "DevTools",
|
|
10705
10720
|
size: "xl",
|
|
@@ -10709,31 +10724,31 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10709
10724
|
onClose: _cache[11] || (_cache[11] = () => handleOpenChange(false))
|
|
10710
10725
|
}, {
|
|
10711
10726
|
default: withCtx(() => [
|
|
10712
|
-
createElementVNode("div", _hoisted_1$
|
|
10713
|
-
createVNode(_sfc_main$
|
|
10727
|
+
createElementVNode("div", _hoisted_1$k, [
|
|
10728
|
+
createVNode(_sfc_main$s, {
|
|
10714
10729
|
variant: "secondary",
|
|
10715
10730
|
class: "flex-wrap overflow-visible! *:w-auto!"
|
|
10716
10731
|
}, {
|
|
10717
10732
|
default: withCtx(() => [
|
|
10718
|
-
createVNode(_sfc_main$
|
|
10733
|
+
createVNode(_sfc_main$r, {
|
|
10719
10734
|
label: unref(t)("FdsDevModeStorage.tabs.localStorage"),
|
|
10720
10735
|
active: activeTab.value === "local",
|
|
10721
10736
|
as: "button",
|
|
10722
10737
|
onClick: _cache[0] || (_cache[0] = ($event) => activeTab.value = "local")
|
|
10723
10738
|
}, null, 8, ["label", "active"]),
|
|
10724
|
-
createVNode(_sfc_main$
|
|
10739
|
+
createVNode(_sfc_main$r, {
|
|
10725
10740
|
label: unref(t)("FdsDevModeStorage.tabs.sessionStorage"),
|
|
10726
10741
|
active: activeTab.value === "session",
|
|
10727
10742
|
as: "button",
|
|
10728
10743
|
onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "session")
|
|
10729
10744
|
}, null, 8, ["label", "active"]),
|
|
10730
|
-
createVNode(_sfc_main$
|
|
10745
|
+
createVNode(_sfc_main$r, {
|
|
10731
10746
|
label: unref(t)("FdsDevModeStorage.tabs.cookies"),
|
|
10732
10747
|
active: activeTab.value === "cookies",
|
|
10733
10748
|
as: "button",
|
|
10734
10749
|
onClick: _cache[2] || (_cache[2] = ($event) => activeTab.value = "cookies")
|
|
10735
10750
|
}, null, 8, ["label", "active"]),
|
|
10736
|
-
createVNode(_sfc_main$
|
|
10751
|
+
createVNode(_sfc_main$r, {
|
|
10737
10752
|
label: unref(t)("FdsDevModeStorage.tabs.actions"),
|
|
10738
10753
|
active: activeTab.value === "actions",
|
|
10739
10754
|
as: "button",
|
|
@@ -10742,7 +10757,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10742
10757
|
]),
|
|
10743
10758
|
_: 1
|
|
10744
10759
|
}),
|
|
10745
|
-
activeTab.value === "local" ? (openBlock(), createBlock(_sfc_main$
|
|
10760
|
+
activeTab.value === "local" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
10746
10761
|
key: 0,
|
|
10747
10762
|
heading: unref(t)("FdsDevModeStorage.tabs.localStorage"),
|
|
10748
10763
|
icon: "information",
|
|
@@ -10796,12 +10811,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10796
10811
|
])
|
|
10797
10812
|
]),
|
|
10798
10813
|
localEditKey.value ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
10799
|
-
createVNode(_sfc_main$
|
|
10814
|
+
createVNode(_sfc_main$B, {
|
|
10800
10815
|
text: unref(t)("FdsDevModeStorage.actions.delete"),
|
|
10801
10816
|
size: "sm",
|
|
10802
10817
|
onClick: deleteLocalEntry
|
|
10803
10818
|
}, null, 8, ["text"]),
|
|
10804
|
-
createVNode(_sfc_main$
|
|
10819
|
+
createVNode(_sfc_main$C, {
|
|
10805
10820
|
text: unref(t)("FdsDevModeStorage.actions.save"),
|
|
10806
10821
|
size: "sm",
|
|
10807
10822
|
onClick: saveLocalEntry
|
|
@@ -10810,7 +10825,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10810
10825
|
])
|
|
10811
10826
|
]),
|
|
10812
10827
|
_: 1
|
|
10813
|
-
}, 8, ["heading"])) : activeTab.value === "session" ? (openBlock(), createBlock(_sfc_main$
|
|
10828
|
+
}, 8, ["heading"])) : activeTab.value === "session" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
10814
10829
|
key: 1,
|
|
10815
10830
|
heading: unref(t)("FdsDevModeStorage.tabs.sessionStorage"),
|
|
10816
10831
|
icon: "information",
|
|
@@ -10864,12 +10879,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10864
10879
|
])
|
|
10865
10880
|
]),
|
|
10866
10881
|
sessionEditKey.value ? (openBlock(), createElementBlock("div", _hoisted_35, [
|
|
10867
|
-
createVNode(_sfc_main$
|
|
10882
|
+
createVNode(_sfc_main$B, {
|
|
10868
10883
|
text: unref(t)("FdsDevModeStorage.actions.delete"),
|
|
10869
10884
|
size: "sm",
|
|
10870
10885
|
onClick: deleteSessionEntry
|
|
10871
10886
|
}, null, 8, ["text"]),
|
|
10872
|
-
createVNode(_sfc_main$
|
|
10887
|
+
createVNode(_sfc_main$C, {
|
|
10873
10888
|
text: unref(t)("FdsDevModeStorage.actions.save"),
|
|
10874
10889
|
size: "sm",
|
|
10875
10890
|
onClick: saveSessionEntry
|
|
@@ -10878,7 +10893,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10878
10893
|
])
|
|
10879
10894
|
]),
|
|
10880
10895
|
_: 1
|
|
10881
|
-
}, 8, ["heading"])) : activeTab.value === "cookies" ? (openBlock(), createBlock(_sfc_main$
|
|
10896
|
+
}, 8, ["heading"])) : activeTab.value === "cookies" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
10882
10897
|
key: 2,
|
|
10883
10898
|
heading: unref(t)("FdsDevModeStorage.tabs.cookies"),
|
|
10884
10899
|
icon: "information",
|
|
@@ -10932,12 +10947,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10932
10947
|
])
|
|
10933
10948
|
]),
|
|
10934
10949
|
cookieEditKey.value ? (openBlock(), createElementBlock("div", _hoisted_52, [
|
|
10935
|
-
createVNode(_sfc_main$
|
|
10950
|
+
createVNode(_sfc_main$B, {
|
|
10936
10951
|
text: unref(t)("FdsDevModeStorage.actions.delete"),
|
|
10937
10952
|
size: "sm",
|
|
10938
10953
|
onClick: deleteCookieEntry
|
|
10939
10954
|
}, null, 8, ["text"]),
|
|
10940
|
-
createVNode(_sfc_main$
|
|
10955
|
+
createVNode(_sfc_main$C, {
|
|
10941
10956
|
text: unref(t)("FdsDevModeStorage.actions.save"),
|
|
10942
10957
|
size: "sm",
|
|
10943
10958
|
onClick: saveCookieEntry
|
|
@@ -10946,7 +10961,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10946
10961
|
])
|
|
10947
10962
|
]),
|
|
10948
10963
|
_: 1
|
|
10949
|
-
}, 8, ["heading"])) : activeTab.value === "actions" ? (openBlock(), createBlock(_sfc_main$
|
|
10964
|
+
}, 8, ["heading"])) : activeTab.value === "actions" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
10950
10965
|
key: 3,
|
|
10951
10966
|
heading: unref(t)("FdsDevModeStorage.tabs.actions"),
|
|
10952
10967
|
icon: "information",
|
|
@@ -10964,14 +10979,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10964
10979
|
createElementVNode("div", _hoisted_57, toDisplayString(action.label), 1),
|
|
10965
10980
|
action.description ? (openBlock(), createElementBlock("div", _hoisted_58, toDisplayString(action.description), 1)) : createCommentVNode("", true)
|
|
10966
10981
|
]),
|
|
10967
|
-
createVNode(_sfc_main$
|
|
10982
|
+
createVNode(_sfc_main$B, {
|
|
10968
10983
|
text: action.label,
|
|
10969
10984
|
size: "sm",
|
|
10970
10985
|
onClick: ($event) => runAction(index, action)
|
|
10971
10986
|
}, null, 8, ["text", "onClick"])
|
|
10972
10987
|
]),
|
|
10973
10988
|
action.input ? (openBlock(), createElementBlock("div", _hoisted_59, [
|
|
10974
|
-
createVNode(_sfc_main$
|
|
10989
|
+
createVNode(_sfc_main$t, {
|
|
10975
10990
|
type: action.input.type ?? "text",
|
|
10976
10991
|
modelValue: getActionInputValue(index, action.input.defaultValue),
|
|
10977
10992
|
placeholder: action.input.placeholder,
|
|
@@ -10985,11 +11000,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10985
11000
|
_: 1
|
|
10986
11001
|
}, 8, ["heading"])) : createCommentVNode("", true),
|
|
10987
11002
|
createElementVNode("div", _hoisted_60, [
|
|
10988
|
-
createVNode(_sfc_main$
|
|
11003
|
+
createVNode(_sfc_main$B, {
|
|
10989
11004
|
text: unref(t)("FdsDevModeStorage.actions.refresh"),
|
|
10990
11005
|
onClick: refreshStorageEntries
|
|
10991
11006
|
}, null, 8, ["text"]),
|
|
10992
|
-
createVNode(_sfc_main$
|
|
11007
|
+
createVNode(_sfc_main$C, {
|
|
10993
11008
|
text: unref(t)("FdsDevModeStorage.actions.close"),
|
|
10994
11009
|
onClick: _cache[10] || (_cache[10] = ($event) => handleOpenChange(false))
|
|
10995
11010
|
}, null, 8, ["text"])
|
|
@@ -11001,11 +11016,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
11001
11016
|
};
|
|
11002
11017
|
}
|
|
11003
11018
|
});
|
|
11004
|
-
const _hoisted_1$
|
|
11019
|
+
const _hoisted_1$j = { class: "relative px-2 py-1" };
|
|
11005
11020
|
const _hoisted_2$d = { class: "flex flex-col sm:flex-row items-center gap-2 sm:gap-1" };
|
|
11006
11021
|
const _hoisted_3$d = { class: "flex items-center gap-1" };
|
|
11007
11022
|
const _hoisted_4$c = { class: "flex items-center gap-1" };
|
|
11008
|
-
const _sfc_main$
|
|
11023
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
11009
11024
|
__name: "FdsDevMode",
|
|
11010
11025
|
props: /* @__PURE__ */ mergeModels({
|
|
11011
11026
|
environment: { default: null },
|
|
@@ -11167,8 +11182,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
11167
11182
|
onMousedown: _cache[1] || (_cache[1] = //@ts-ignore
|
|
11168
11183
|
(...args) => unref(onDragStart) && unref(onDragStart)(...args))
|
|
11169
11184
|
}, [
|
|
11170
|
-
createElementVNode("div", _hoisted_1$
|
|
11171
|
-
unref(isDevMode) ? (openBlock(), createBlock(_sfc_main$
|
|
11185
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
11186
|
+
unref(isDevMode) ? (openBlock(), createBlock(_sfc_main$w, {
|
|
11172
11187
|
key: 0,
|
|
11173
11188
|
environment: __props.environment,
|
|
11174
11189
|
toggles: overlayToggles.value,
|
|
@@ -11178,7 +11193,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
11178
11193
|
}, null, 8, ["environment", "toggles"])) : createCommentVNode("", true),
|
|
11179
11194
|
createElementVNode("div", _hoisted_2$d, [
|
|
11180
11195
|
createElementVNode("div", _hoisted_3$d, [
|
|
11181
|
-
createVNode(_sfc_main$
|
|
11196
|
+
createVNode(_sfc_main$A, { "popover-class": envBannerClasses.value }, null, 8, ["popover-class"]),
|
|
11182
11197
|
createElementVNode("span", null, toDisplayString(unref(environmentText)), 1)
|
|
11183
11198
|
]),
|
|
11184
11199
|
createElementVNode("div", _hoisted_4$c, [
|
|
@@ -11187,13 +11202,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
11187
11202
|
(...args) => unref(toggleDevMode) && unref(toggleDevMode)(...args)),
|
|
11188
11203
|
class: "py-1 px-2 rounded text-xs font-bold bg-white bg-opacity-20 text-black hover:bg-opacity-30 min-w-[120px] cursor-pointer"
|
|
11189
11204
|
}, toDisplayString(devModeButtonText.value), 1),
|
|
11190
|
-
createVNode(_sfc_main$
|
|
11205
|
+
createVNode(_sfc_main$N, {
|
|
11191
11206
|
icon: "settings",
|
|
11192
11207
|
size: 24,
|
|
11193
11208
|
class: normalizeClass(envBannerFillColor.value),
|
|
11194
11209
|
onClick: openStorageModal
|
|
11195
11210
|
}, null, 8, ["class"]),
|
|
11196
|
-
createVNode(_sfc_main$
|
|
11211
|
+
createVNode(_sfc_main$N, {
|
|
11197
11212
|
onClick: handleEnvBanner,
|
|
11198
11213
|
icon: "cross",
|
|
11199
11214
|
size: 24,
|
|
@@ -11203,7 +11218,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
11203
11218
|
])
|
|
11204
11219
|
])
|
|
11205
11220
|
], 38)) : createCommentVNode("", true),
|
|
11206
|
-
createVNode(_sfc_main$
|
|
11221
|
+
createVNode(_sfc_main$q, {
|
|
11207
11222
|
open: isStorageModalOpen.value,
|
|
11208
11223
|
"onUpdate:open": _cache[2] || (_cache[2] = ($event) => isStorageModalOpen.value = $event),
|
|
11209
11224
|
customActions: __props.customActions
|
|
@@ -11212,8 +11227,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
11212
11227
|
};
|
|
11213
11228
|
}
|
|
11214
11229
|
});
|
|
11215
|
-
const _hoisted_1$
|
|
11216
|
-
const _sfc_main$
|
|
11230
|
+
const _hoisted_1$i = { class: "flex justify-between gap-6 w-full" };
|
|
11231
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
11217
11232
|
__name: "FdsExitModal",
|
|
11218
11233
|
props: {
|
|
11219
11234
|
showExitConfirmModal: {},
|
|
@@ -11228,7 +11243,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
11228
11243
|
const props = __props;
|
|
11229
11244
|
const isOpen = computed(() => props.showExitConfirmModal.value);
|
|
11230
11245
|
return (_ctx, _cache) => {
|
|
11231
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11246
|
+
return openBlock(), createBlock(_sfc_main$v, {
|
|
11232
11247
|
heading: props.heading,
|
|
11233
11248
|
size: "sm",
|
|
11234
11249
|
open: isOpen.value,
|
|
@@ -11236,13 +11251,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
11236
11251
|
onClose: props.cancelExit
|
|
11237
11252
|
}, {
|
|
11238
11253
|
"modal-footer": withCtx(() => [
|
|
11239
|
-
createElementVNode("div", _hoisted_1$
|
|
11240
|
-
createVNode(_sfc_main$
|
|
11254
|
+
createElementVNode("div", _hoisted_1$i, [
|
|
11255
|
+
createVNode(_sfc_main$B, {
|
|
11241
11256
|
text: props.stayText,
|
|
11242
11257
|
onClick: props.cancelExit,
|
|
11243
11258
|
block: ""
|
|
11244
11259
|
}, null, 8, ["text", "onClick"]),
|
|
11245
|
-
createVNode(_sfc_main$
|
|
11260
|
+
createVNode(_sfc_main$B, {
|
|
11246
11261
|
text: props.leaveText,
|
|
11247
11262
|
onClick: props.confirmExit,
|
|
11248
11263
|
block: ""
|
|
@@ -11257,6 +11272,196 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
11257
11272
|
};
|
|
11258
11273
|
}
|
|
11259
11274
|
});
|
|
11275
|
+
const _hoisted_1$h = { class: "flex items-center gap-2 min-w-0" };
|
|
11276
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
11277
|
+
__name: "FdsDrawer",
|
|
11278
|
+
props: {
|
|
11279
|
+
open: { type: Boolean, default: false },
|
|
11280
|
+
heading: { default: "" },
|
|
11281
|
+
size: { default: "md" },
|
|
11282
|
+
strict: { type: Boolean, default: false },
|
|
11283
|
+
lockScroll: { type: Boolean, default: false },
|
|
11284
|
+
info: { default: void 0 },
|
|
11285
|
+
dataTestid: { default: void 0 },
|
|
11286
|
+
onClose: {}
|
|
11287
|
+
},
|
|
11288
|
+
emits: ["close", "update:open"],
|
|
11289
|
+
setup(__props, { emit: __emit }) {
|
|
11290
|
+
const props = __props;
|
|
11291
|
+
const emit = __emit;
|
|
11292
|
+
const isOpen = ref(props.open);
|
|
11293
|
+
const drawerInnerRef = ref(null);
|
|
11294
|
+
const previouslyFocusedElement = ref(null);
|
|
11295
|
+
const { activate: activateFocusTrap, deactivate: deactivateFocusTrap } = useFocusTrap();
|
|
11296
|
+
const { t } = useFdsI18n();
|
|
11297
|
+
const drawerOuterClasses = computed(() => ["fixed top-0 left-0 w-full h-full z-100"]);
|
|
11298
|
+
const drawerInnerClasses = computed(() => [
|
|
11299
|
+
"bg-white shadow-lg z-[99999] overflow-hidden flex flex-col",
|
|
11300
|
+
// Mobile: bottom sheet
|
|
11301
|
+
"fixed bottom-0 left-0 right-0 max-h-[90vh] rounded-t-lg",
|
|
11302
|
+
// Desktop: right panel
|
|
11303
|
+
"md:top-0 md:right-0 md:bottom-auto md:left-auto md:h-full md:max-h-none md:rounded-none md:w-full",
|
|
11304
|
+
{
|
|
11305
|
+
"md:max-w-[320px]": props.size === "sm",
|
|
11306
|
+
"md:max-w-[400px]": props.size === "md",
|
|
11307
|
+
"md:max-w-[480px]": props.size === "lg",
|
|
11308
|
+
"md:max-w-[588px]": props.size === "xl"
|
|
11309
|
+
}
|
|
11310
|
+
]);
|
|
11311
|
+
const headerClasses = computed(() => ["shrink-0 flex justify-between bg-white p-6", "rounded-t-lg md:rounded-none"]);
|
|
11312
|
+
const contentClasses = computed(() => ["flex-1 min-h-0 overflow-auto px-6 pb-6 mb-0-last-child"]);
|
|
11313
|
+
const headerTitleClasses = computed(() => ["m-0"]);
|
|
11314
|
+
const iconName = computed(() => {
|
|
11315
|
+
if (props.info === "valid") return "check";
|
|
11316
|
+
if (props.info === "invalid" || props.info === "warning") return "alert";
|
|
11317
|
+
return null;
|
|
11318
|
+
});
|
|
11319
|
+
const iconClasses = computed(() => [
|
|
11320
|
+
{
|
|
11321
|
+
"fill-green-600": props.info === "valid",
|
|
11322
|
+
"fill-red-600": props.info === "invalid",
|
|
11323
|
+
"fill-yellow-600": props.info === "warning"
|
|
11324
|
+
}
|
|
11325
|
+
]);
|
|
11326
|
+
const closeLabel = computed(() => t("FdsDrawer.closeDrawer"));
|
|
11327
|
+
const setHtmlOverflow = (value) => {
|
|
11328
|
+
if (typeof document === "undefined") return;
|
|
11329
|
+
const htmlEl = document.documentElement;
|
|
11330
|
+
if (htmlEl) {
|
|
11331
|
+
htmlEl.style.overflow = value;
|
|
11332
|
+
}
|
|
11333
|
+
};
|
|
11334
|
+
const handleBackdropClick = () => {
|
|
11335
|
+
handleClose();
|
|
11336
|
+
};
|
|
11337
|
+
const restoreFocus = () => {
|
|
11338
|
+
if (previouslyFocusedElement.value) {
|
|
11339
|
+
previouslyFocusedElement.value.focus();
|
|
11340
|
+
previouslyFocusedElement.value = null;
|
|
11341
|
+
}
|
|
11342
|
+
};
|
|
11343
|
+
const handleClose = () => {
|
|
11344
|
+
if (props.strict) {
|
|
11345
|
+
return;
|
|
11346
|
+
}
|
|
11347
|
+
isOpen.value = false;
|
|
11348
|
+
setHtmlOverflow("auto");
|
|
11349
|
+
emit("close");
|
|
11350
|
+
emit("update:open", false);
|
|
11351
|
+
};
|
|
11352
|
+
const handleKeyDown = (e) => {
|
|
11353
|
+
if (isOpen.value && e.code === "Escape") {
|
|
11354
|
+
handleClose();
|
|
11355
|
+
}
|
|
11356
|
+
};
|
|
11357
|
+
watch(
|
|
11358
|
+
() => props.open,
|
|
11359
|
+
(newValue) => {
|
|
11360
|
+
isOpen.value = newValue;
|
|
11361
|
+
if (newValue) {
|
|
11362
|
+
previouslyFocusedElement.value = document.activeElement;
|
|
11363
|
+
if (props.lockScroll) {
|
|
11364
|
+
setHtmlOverflow("hidden");
|
|
11365
|
+
}
|
|
11366
|
+
activateFocusTrap(() => drawerInnerRef.value);
|
|
11367
|
+
} else {
|
|
11368
|
+
setHtmlOverflow("auto");
|
|
11369
|
+
deactivateFocusTrap();
|
|
11370
|
+
}
|
|
11371
|
+
}
|
|
11372
|
+
);
|
|
11373
|
+
onMounted(() => {
|
|
11374
|
+
document.addEventListener("keydown", handleKeyDown, true);
|
|
11375
|
+
if (props.open) {
|
|
11376
|
+
previouslyFocusedElement.value = document.activeElement;
|
|
11377
|
+
if (props.lockScroll) {
|
|
11378
|
+
setHtmlOverflow("hidden");
|
|
11379
|
+
}
|
|
11380
|
+
activateFocusTrap(() => drawerInnerRef.value);
|
|
11381
|
+
}
|
|
11382
|
+
});
|
|
11383
|
+
onBeforeUnmount(() => {
|
|
11384
|
+
document.removeEventListener("keydown", handleKeyDown, true);
|
|
11385
|
+
setHtmlOverflow("auto");
|
|
11386
|
+
deactivateFocusTrap();
|
|
11387
|
+
});
|
|
11388
|
+
const drawerAttrs = computed(() => {
|
|
11389
|
+
const attrs = {};
|
|
11390
|
+
if (props.dataTestid) {
|
|
11391
|
+
attrs["data-testid"] = props.dataTestid;
|
|
11392
|
+
}
|
|
11393
|
+
return attrs;
|
|
11394
|
+
});
|
|
11395
|
+
return (_ctx, _cache) => {
|
|
11396
|
+
return openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
11397
|
+
createVNode(Transition, {
|
|
11398
|
+
name: "fds-drawer",
|
|
11399
|
+
duration: { enter: 280, leave: 180 },
|
|
11400
|
+
onAfterLeave: restoreFocus
|
|
11401
|
+
}, {
|
|
11402
|
+
default: withCtx(() => [
|
|
11403
|
+
isOpen.value ? (openBlock(), createElementBlock("div", {
|
|
11404
|
+
key: 0,
|
|
11405
|
+
onClick: handleBackdropClick,
|
|
11406
|
+
class: normalizeClass(drawerOuterClasses.value)
|
|
11407
|
+
}, [
|
|
11408
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "fds-drawer-backdrop fixed top-0 left-0 w-full h-full bg-black/34 z-99" }, null, -1)),
|
|
11409
|
+
createElementVNode("div", mergeProps({
|
|
11410
|
+
ref_key: "drawerInnerRef",
|
|
11411
|
+
ref: drawerInnerRef,
|
|
11412
|
+
class: ["fds-drawer-inner", drawerInnerClasses.value],
|
|
11413
|
+
role: "dialog",
|
|
11414
|
+
"aria-modal": "true"
|
|
11415
|
+
}, drawerAttrs.value, {
|
|
11416
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
11417
|
+
}, ["stop"]))
|
|
11418
|
+
}), [
|
|
11419
|
+
createElementVNode("div", {
|
|
11420
|
+
class: normalizeClass(headerClasses.value)
|
|
11421
|
+
}, [
|
|
11422
|
+
createElementVNode("div", _hoisted_1$h, [
|
|
11423
|
+
iconName.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
11424
|
+
key: 0,
|
|
11425
|
+
name: iconName.value,
|
|
11426
|
+
size: 24,
|
|
11427
|
+
class: normalizeClass(iconClasses.value)
|
|
11428
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
11429
|
+
createElementVNode("h3", {
|
|
11430
|
+
tabindex: "-1",
|
|
11431
|
+
class: normalizeClass(headerTitleClasses.value)
|
|
11432
|
+
}, toDisplayString(__props.heading), 3)
|
|
11433
|
+
]),
|
|
11434
|
+
createElementVNode("div", null, [
|
|
11435
|
+
!__props.strict ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
11436
|
+
key: 0,
|
|
11437
|
+
icon: "cross",
|
|
11438
|
+
size: 28,
|
|
11439
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
|
|
11440
|
+
}, { "aria-label": closeLabel.value }, { class: "ml-4 shrink-0" }), null, 16)) : createCommentVNode("", true)
|
|
11441
|
+
])
|
|
11442
|
+
], 2),
|
|
11443
|
+
createElementVNode("div", {
|
|
11444
|
+
class: normalizeClass(contentClasses.value)
|
|
11445
|
+
}, [
|
|
11446
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
11447
|
+
], 2)
|
|
11448
|
+
], 16)
|
|
11449
|
+
], 2)) : createCommentVNode("", true)
|
|
11450
|
+
]),
|
|
11451
|
+
_: 3
|
|
11452
|
+
})
|
|
11453
|
+
]);
|
|
11454
|
+
};
|
|
11455
|
+
}
|
|
11456
|
+
});
|
|
11457
|
+
const _export_sfc = (sfc, props) => {
|
|
11458
|
+
const target = sfc.__vccOpts || sfc;
|
|
11459
|
+
for (const [key, val] of props) {
|
|
11460
|
+
target[key] = val;
|
|
11461
|
+
}
|
|
11462
|
+
return target;
|
|
11463
|
+
};
|
|
11464
|
+
const FdsDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-afc45d1a"]]);
|
|
11260
11465
|
function debounce(fn, delayMs) {
|
|
11261
11466
|
let timeoutId;
|
|
11262
11467
|
const debounced = (...args) => {
|
|
@@ -11372,11 +11577,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11372
11577
|
id: inputId.value
|
|
11373
11578
|
}, rootAttrs.value), [
|
|
11374
11579
|
createElementVNode("div", _hoisted_2$c, [
|
|
11375
|
-
__props.loading && loadingIndicator.value === "start" ? (openBlock(), createBlock(_sfc_main$
|
|
11580
|
+
__props.loading && loadingIndicator.value === "start" ? (openBlock(), createBlock(_sfc_main$G, {
|
|
11376
11581
|
key: 0,
|
|
11377
11582
|
size: "32px",
|
|
11378
11583
|
color: "blue"
|
|
11379
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
11584
|
+
})) : (openBlock(), createBlock(_sfc_main$N, mergeProps({ key: 1 }, { "aria-disabled": __props.current === 1 }, {
|
|
11380
11585
|
type: "button",
|
|
11381
11586
|
"aria-label": firstPageLabel.value,
|
|
11382
11587
|
icon: "first",
|
|
@@ -11385,11 +11590,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11385
11590
|
class: [{ "hidden!": __props.current === 1 }, "w-8 h-8 sm:w-12 sm:h-12"],
|
|
11386
11591
|
onClick: _cache[0] || (_cache[0] = ($event) => handlePagination("start"))
|
|
11387
11592
|
}), null, 16, ["aria-label", "disabled", "class"])),
|
|
11388
|
-
__props.loading && loadingIndicator.value === "prev" ? (openBlock(), createBlock(_sfc_main$
|
|
11593
|
+
__props.loading && loadingIndicator.value === "prev" ? (openBlock(), createBlock(_sfc_main$G, {
|
|
11389
11594
|
key: 2,
|
|
11390
11595
|
size: "24px",
|
|
11391
11596
|
color: "blue"
|
|
11392
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
11597
|
+
})) : (openBlock(), createBlock(_sfc_main$N, mergeProps({ key: 3 }, { "aria-disabled": __props.current === 1 }, {
|
|
11393
11598
|
type: "button",
|
|
11394
11599
|
"aria-label": prevPageLabel.value,
|
|
11395
11600
|
icon: "arrowLeft",
|
|
@@ -11400,14 +11605,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11400
11605
|
}), null, 16, ["aria-label", "disabled", "class"]))
|
|
11401
11606
|
]),
|
|
11402
11607
|
createElementVNode("div", _hoisted_3$c, [
|
|
11403
|
-
__props.loading && loadingIndicator.value === "input" ? (openBlock(), createBlock(_sfc_main$
|
|
11608
|
+
__props.loading && loadingIndicator.value === "input" ? (openBlock(), createBlock(_sfc_main$G, {
|
|
11404
11609
|
key: 0,
|
|
11405
11610
|
size: "24px",
|
|
11406
11611
|
color: "blue",
|
|
11407
11612
|
label: loadingLabel.value,
|
|
11408
11613
|
"label-position": "right"
|
|
11409
11614
|
}, null, 8, ["label"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
11410
|
-
createVNode(_sfc_main$
|
|
11615
|
+
createVNode(_sfc_main$t, {
|
|
11411
11616
|
style: { "text-align": "center" },
|
|
11412
11617
|
value: inputValue.value,
|
|
11413
11618
|
type: "text",
|
|
@@ -11421,11 +11626,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11421
11626
|
], 64))
|
|
11422
11627
|
]),
|
|
11423
11628
|
createElementVNode("div", _hoisted_5$b, [
|
|
11424
|
-
__props.loading && loadingIndicator.value === "next" ? (openBlock(), createBlock(_sfc_main$
|
|
11629
|
+
__props.loading && loadingIndicator.value === "next" ? (openBlock(), createBlock(_sfc_main$G, {
|
|
11425
11630
|
key: 0,
|
|
11426
11631
|
size: "24px",
|
|
11427
11632
|
color: "blue"
|
|
11428
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
11633
|
+
})) : (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
11429
11634
|
key: 1,
|
|
11430
11635
|
type: "button",
|
|
11431
11636
|
"aria-label": nextPageLabel.value,
|
|
@@ -11436,11 +11641,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11436
11641
|
class: [{ "hidden!": __props.current === __props.max }, "w-8 h-8 sm:w-12 sm:h-12"],
|
|
11437
11642
|
onClick: _cache[2] || (_cache[2] = ($event) => handlePagination("next"))
|
|
11438
11643
|
}), null, 16, ["aria-label", "disabled", "class"])),
|
|
11439
|
-
__props.loading && loadingIndicator.value === "end" ? (openBlock(), createBlock(_sfc_main$
|
|
11644
|
+
__props.loading && loadingIndicator.value === "end" ? (openBlock(), createBlock(_sfc_main$G, {
|
|
11440
11645
|
key: 2,
|
|
11441
11646
|
size: "24px",
|
|
11442
11647
|
color: "blue"
|
|
11443
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
11648
|
+
})) : (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
11444
11649
|
key: 3,
|
|
11445
11650
|
type: "button",
|
|
11446
11651
|
"aria-label": lastPageLabel.value,
|
|
@@ -11602,13 +11807,13 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11602
11807
|
}, { ...popoverAttrs.value, popover: "auto" }), [
|
|
11603
11808
|
__props.label ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
11604
11809
|
createElementVNode("div", _hoisted_4$a, [
|
|
11605
|
-
createVNode(_sfc_main$
|
|
11810
|
+
createVNode(_sfc_main$x, { class: "mb-0! min-w-0 grow balance-text whitespace-normal" }, {
|
|
11606
11811
|
default: withCtx(() => [
|
|
11607
11812
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
11608
11813
|
]),
|
|
11609
11814
|
_: 1
|
|
11610
11815
|
}),
|
|
11611
|
-
createVNode(_sfc_main$
|
|
11816
|
+
createVNode(_sfc_main$N, {
|
|
11612
11817
|
icon: "cross",
|
|
11613
11818
|
size: 28,
|
|
11614
11819
|
"aria-label": __props.closeAriaLabel,
|
|
@@ -11626,7 +11831,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11626
11831
|
createTextVNode(toDisplayString(__props.body), 1)
|
|
11627
11832
|
])
|
|
11628
11833
|
]),
|
|
11629
|
-
createVNode(_sfc_main$
|
|
11834
|
+
createVNode(_sfc_main$N, {
|
|
11630
11835
|
icon: "cross",
|
|
11631
11836
|
size: 28,
|
|
11632
11837
|
"aria-label": __props.closeAriaLabel,
|
|
@@ -12124,7 +12329,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
12124
12329
|
createElementVNode("div", _hoisted_1$e, [
|
|
12125
12330
|
!singleItemName.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
12126
12331
|
createElementVNode("div", _hoisted_3$a, [
|
|
12127
|
-
createVNode(_sfc_main$
|
|
12332
|
+
createVNode(_sfc_main$t, mergeProps({
|
|
12128
12333
|
ref_key: "inputComponentRef",
|
|
12129
12334
|
ref: inputComponentRef,
|
|
12130
12335
|
label: __props.label,
|
|
@@ -12158,7 +12363,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
12158
12363
|
style: normalizeStyle(listWrapperStyle.value)
|
|
12159
12364
|
}, [
|
|
12160
12365
|
__props.loading ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
12161
|
-
createVNode(_sfc_main$
|
|
12366
|
+
createVNode(_sfc_main$G, {
|
|
12162
12367
|
color: "blue",
|
|
12163
12368
|
size: "48px"
|
|
12164
12369
|
})
|
|
@@ -13233,7 +13438,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13233
13438
|
createElementVNode("div", _hoisted_1$d, [
|
|
13234
13439
|
createElementVNode("div", _hoisted_2$9, [
|
|
13235
13440
|
createElementVNode("div", _hoisted_3$9, [
|
|
13236
|
-
createVNode(_sfc_main$
|
|
13441
|
+
createVNode(_sfc_main$t, mergeProps({
|
|
13237
13442
|
ref_key: "inputComponentRef",
|
|
13238
13443
|
ref: inputComponentRef,
|
|
13239
13444
|
label: __props.label,
|
|
@@ -13269,19 +13474,19 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13269
13474
|
class: normalizeClass([headerClasses.value, "flex items-center justify-between gap-3 min-h-[53px]"])
|
|
13270
13475
|
}, [
|
|
13271
13476
|
createElementVNode("div", _hoisted_4$8, [
|
|
13272
|
-
createVNode(_sfc_main$
|
|
13477
|
+
createVNode(_sfc_main$u, null, {
|
|
13273
13478
|
default: withCtx(() => [
|
|
13274
13479
|
createTextVNode(toDisplayString(searchTerm.value && searchTerm.value.length ? `${totalMatchingItems.value} ${__props.searchContext.linkWord} ${totalCount.value} ${__props.searchContext.context}` : `${totalCount.value} ${__props.searchContext.context}`), 1)
|
|
13275
13480
|
]),
|
|
13276
13481
|
_: 1
|
|
13277
13482
|
}),
|
|
13278
|
-
isSearching.value ? (openBlock(), createBlock(_sfc_main$
|
|
13483
|
+
isSearching.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
13279
13484
|
key: 0,
|
|
13280
13485
|
color: "blue",
|
|
13281
13486
|
size: "20px"
|
|
13282
13487
|
})) : createCommentVNode("", true)
|
|
13283
13488
|
]),
|
|
13284
|
-
__props.multiple && __props.showSelectedToggle && selectedItems.value.length > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
13489
|
+
__props.multiple && __props.showSelectedToggle && selectedItems.value.length > 0 ? (openBlock(), createBlock(_sfc_main$z, {
|
|
13285
13490
|
key: 0,
|
|
13286
13491
|
label: `${__props.selectedToggleLabel} (${selectedItems.value.length})`,
|
|
13287
13492
|
checked: showSelectedOnly.value,
|
|
@@ -13316,7 +13521,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13316
13521
|
class: normalizeClass([labelClasses.value, listItemClasses.value]),
|
|
13317
13522
|
style: normalizeStyle(unref(optionPaddingStyle)(item))
|
|
13318
13523
|
}, [
|
|
13319
|
-
__props.multiple ? (openBlock(), createBlock(_sfc_main$
|
|
13524
|
+
__props.multiple ? (openBlock(), createBlock(_sfc_main$z, {
|
|
13320
13525
|
key: 0,
|
|
13321
13526
|
id: `search-select-radio-${index}`,
|
|
13322
13527
|
name: `search-select-checkbox-group-${inputId}`,
|
|
@@ -13333,7 +13538,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13333
13538
|
}, null, 8, _hoisted_8$3)
|
|
13334
13539
|
]),
|
|
13335
13540
|
_: 2
|
|
13336
|
-
}, 1032, ["id", "name", "checked", "onChange"])) : (openBlock(), createBlock(_sfc_main$
|
|
13541
|
+
}, 1032, ["id", "name", "checked", "onChange"])) : (openBlock(), createBlock(_sfc_main$y, {
|
|
13337
13542
|
key: 1,
|
|
13338
13543
|
id: `search-select-radio-${index}`,
|
|
13339
13544
|
name: "search-select-radio-group",
|
|
@@ -13368,7 +13573,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13368
13573
|
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => !__props.loadingMore && handleLoadMore(), ["prevent"]), ["space"]))
|
|
13369
13574
|
]
|
|
13370
13575
|
}, [
|
|
13371
|
-
createVNode(_sfc_main$
|
|
13576
|
+
createVNode(_sfc_main$N, {
|
|
13372
13577
|
icon: "sync",
|
|
13373
13578
|
loading: __props.loadingMore,
|
|
13374
13579
|
"aria-label": __props.loadingMore ? resolvedLoadingMoreLabel.value : resolvedLoadMoreLabel.value,
|
|
@@ -13382,7 +13587,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13382
13587
|
], 64)) : (openBlock(), createElementBlock("ul", _hoisted_12, [
|
|
13383
13588
|
createElementVNode("li", _hoisted_13, [
|
|
13384
13589
|
!isSearching.value ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(__props.noResultPrompt), 1)) : createCommentVNode("", true),
|
|
13385
|
-
isSearching.value ? (openBlock(), createBlock(_sfc_main$
|
|
13590
|
+
isSearching.value ? (openBlock(), createBlock(_sfc_main$G, {
|
|
13386
13591
|
key: 1,
|
|
13387
13592
|
color: "blue",
|
|
13388
13593
|
size: "20px"
|
|
@@ -14128,7 +14333,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14128
14333
|
class: normalizeClass("pt-2 pb-2")
|
|
14129
14334
|
}, [
|
|
14130
14335
|
createElementVNode("div", _hoisted_1$c, [
|
|
14131
|
-
hasChildrenNodes.value ? (openBlock(), createBlock(_sfc_main$
|
|
14336
|
+
hasChildrenNodes.value ? (openBlock(), createBlock(_sfc_main$N, mergeProps({
|
|
14132
14337
|
key: 0,
|
|
14133
14338
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(treeState)?.toggleExpandNode(props.nodeId))
|
|
14134
14339
|
}, { "aria-label": props.title ? childrenToggleAriaLabel(props.title) : void 0 }, {
|
|
@@ -14141,7 +14346,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14141
14346
|
style: normalizeStyle({ minWidth: `${__props.indentation}px` })
|
|
14142
14347
|
}, null, 4)) : createCommentVNode("", true),
|
|
14143
14348
|
createElementVNode("div", _hoisted_2$8, [
|
|
14144
|
-
createVNode(_sfc_main$
|
|
14349
|
+
createVNode(_sfc_main$z, {
|
|
14145
14350
|
id: `checkbox-${props.nodeId}`,
|
|
14146
14351
|
checked: nodeIsSelected.value,
|
|
14147
14352
|
indeterminate: nodeIsIndeterminate.value,
|
|
@@ -14160,7 +14365,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14160
14365
|
}, 8, ["id", "checked", "indeterminate"])
|
|
14161
14366
|
]),
|
|
14162
14367
|
shouldShowPopoverActions.value ? (openBlock(), createElementBlock("div", _hoisted_6$4, [
|
|
14163
|
-
createVNode(_sfc_main$
|
|
14368
|
+
createVNode(_sfc_main$N, mergeProps({
|
|
14164
14369
|
ref_key: "triggerRef",
|
|
14165
14370
|
ref: triggerRef,
|
|
14166
14371
|
icon: "more",
|
|
@@ -14208,7 +14413,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14208
14413
|
},
|
|
14209
14414
|
class: "cursor-pointer"
|
|
14210
14415
|
}, [
|
|
14211
|
-
createVNode(_sfc_main$
|
|
14416
|
+
createVNode(_sfc_main$y, {
|
|
14212
14417
|
modelValue: selectedOption.value,
|
|
14213
14418
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedOption.value = $event),
|
|
14214
14419
|
id: `tree-popover-${props.nodeId}-${option.value}`,
|
|
@@ -14220,7 +14425,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14220
14425
|
], 8, _hoisted_8$2);
|
|
14221
14426
|
}), 64))
|
|
14222
14427
|
]),
|
|
14223
|
-
createVNode(_sfc_main$
|
|
14428
|
+
createVNode(_sfc_main$N, mergeProps({
|
|
14224
14429
|
icon: "cross",
|
|
14225
14430
|
id: "tree-popover-close-button",
|
|
14226
14431
|
size: 24,
|
|
@@ -14370,7 +14575,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14370
14575
|
ref: searchContainerRef,
|
|
14371
14576
|
class: "pb-4"
|
|
14372
14577
|
}, [
|
|
14373
|
-
createVNode(_sfc_main$
|
|
14578
|
+
createVNode(_sfc_main$t, {
|
|
14374
14579
|
value: unref(treeState)?.searchTerm?.value ?? "",
|
|
14375
14580
|
onInput: _cache[0] || (_cache[0] = ($event) => unref(treeState)?.setSearchTerm($event.target.value)),
|
|
14376
14581
|
class: "w-full",
|
|
@@ -14387,7 +14592,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14387
14592
|
props.searchCountTemplate && unref(treeState)?.searchTerm?.value && String(unref(treeState)?.searchTerm?.value || "").trim().length >= (unref(treeState)?.triggerLength ?? 1) ? (openBlock(), createElementBlock("h2", _hoisted_2$7, toDisplayString(props.searchCountTemplate.replace("[[filteredNodes]]", unref(treeState)?.filteredMatchCount.value.toString()).replace("[[totalNodes]]", totalNodeCount.value.toString())), 1)) : (openBlock(), createElementBlock("h2", _hoisted_3$7, toDisplayString(props.searchCountTemplateUnfiltered?.replace("[[totalNodes]]", totalNodeCount.value.toString()).replace("[[totalNodes]]", totalNodeCount.value.toString())), 1))
|
|
14388
14593
|
])) : createCommentVNode("", true)
|
|
14389
14594
|
], 512)) : createCommentVNode("", true),
|
|
14390
|
-
unref(treeState)?.isEmptySearchResult?.value ? (openBlock(), createBlock(_sfc_main$
|
|
14595
|
+
unref(treeState)?.isEmptySearchResult?.value ? (openBlock(), createBlock(_sfc_main$L, {
|
|
14391
14596
|
key: 1,
|
|
14392
14597
|
class: "mt-4"
|
|
14393
14598
|
}, {
|
|
@@ -14395,7 +14600,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14395
14600
|
createTextVNode(toDisplayString(props.searchResultNoMatchesTitle), 1)
|
|
14396
14601
|
]),
|
|
14397
14602
|
default: withCtx(() => [
|
|
14398
|
-
createVNode(_sfc_main$
|
|
14603
|
+
createVNode(_sfc_main$u, null, {
|
|
14399
14604
|
default: withCtx(() => [
|
|
14400
14605
|
createTextVNode(toDisplayString(props.searchResultNoMatchesBody), 1)
|
|
14401
14606
|
]),
|
|
@@ -14487,7 +14692,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
14487
14692
|
return openBlock(), createElementBlock("div", mergeProps({ class: "block mb-4" }, rootAttrs.value), [
|
|
14488
14693
|
hasContent.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
14489
14694
|
createElementVNode("span", null, toDisplayString(truncatedText.value), 1),
|
|
14490
|
-
isTruncated.value ? (openBlock(), createBlock(_sfc_main$
|
|
14695
|
+
isTruncated.value ? (openBlock(), createBlock(_sfc_main$F, {
|
|
14491
14696
|
key: 0,
|
|
14492
14697
|
icon: isOpen.value ? "arrowUp" : "arrowDown",
|
|
14493
14698
|
iconPos: "right",
|
|
@@ -16142,12 +16347,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
16142
16347
|
createElementVNode("span", {
|
|
16143
16348
|
class: normalizeClass(weekdayLabelClasses.value)
|
|
16144
16349
|
}, [
|
|
16145
|
-
__props.isToday ? (openBlock(), createBlock(_sfc_main$
|
|
16350
|
+
__props.isToday ? (openBlock(), createBlock(_sfc_main$u, { key: 0 }, {
|
|
16146
16351
|
default: withCtx(() => [
|
|
16147
16352
|
createTextVNode(toDisplayString(unref(t)("FdsWeekCalendar.today")), 1)
|
|
16148
16353
|
]),
|
|
16149
16354
|
_: 1
|
|
16150
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
16355
|
+
})) : (openBlock(), createBlock(_sfc_main$u, { key: 1 }, {
|
|
16151
16356
|
default: withCtx(() => [
|
|
16152
16357
|
createTextVNode(toDisplayString(weekdayLabel.value), 1)
|
|
16153
16358
|
]),
|
|
@@ -16307,13 +16512,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16307
16512
|
createElementVNode("div", _hoisted_3$6, [
|
|
16308
16513
|
createElementVNode("p", _hoisted_4$6, toDisplayString(weekText.value), 1),
|
|
16309
16514
|
createElementVNode("div", _hoisted_5$6, [
|
|
16310
|
-
createVNode(_sfc_main$
|
|
16515
|
+
createVNode(_sfc_main$N, {
|
|
16311
16516
|
icon: "arrowLeft",
|
|
16312
16517
|
disabled: disableLastWeekInteraction.value,
|
|
16313
16518
|
"aria-label": unref(t)("FdsWeekCalendar.previousWeek"),
|
|
16314
16519
|
onClick: decrementWeek
|
|
16315
16520
|
}, null, 8, ["disabled", "aria-label"]),
|
|
16316
|
-
createVNode(_sfc_main$
|
|
16521
|
+
createVNode(_sfc_main$N, {
|
|
16317
16522
|
icon: "arrowRight",
|
|
16318
16523
|
disabled: disableNextWeekInteraction.value,
|
|
16319
16524
|
"aria-label": unref(t)("FdsWeekCalendar.nextWeek"),
|
|
@@ -16349,7 +16554,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
16349
16554
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class", "leave-to-class"])
|
|
16350
16555
|
]),
|
|
16351
16556
|
__props.loading?.loading ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
16352
|
-
createVNode(_sfc_main$
|
|
16557
|
+
createVNode(_sfc_main$G),
|
|
16353
16558
|
createElementVNode("p", _hoisted_8$1, toDisplayString(__props.loading.label), 1)
|
|
16354
16559
|
])) : createCommentVNode("", true)
|
|
16355
16560
|
])
|
|
@@ -16830,7 +17035,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
16830
17035
|
createElementVNode("span", {
|
|
16831
17036
|
class: normalizeClass(["relative mb-6 flex flex-col items-center text-blue-600 font-bold justify-center transition-all duration-200 ease-in-out rounded-full w-[44px] h-[44px] bg-white-solid", setStepClasses(entry.index)])
|
|
16832
17037
|
}, [
|
|
16833
|
-
entry.index >= internalCompletedTo.value + 1 ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(entry.index + 1), 1)) : (openBlock(), createBlock(_sfc_main$
|
|
17038
|
+
entry.index >= internalCompletedTo.value + 1 ? (openBlock(), createElementBlock("span", _hoisted_7$2, toDisplayString(entry.index + 1), 1)) : (openBlock(), createBlock(_sfc_main$O, {
|
|
16834
17039
|
key: 1,
|
|
16835
17040
|
name: "checkmark",
|
|
16836
17041
|
size: 24
|
|
@@ -19018,7 +19223,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19018
19223
|
"aria-hidden": "true",
|
|
19019
19224
|
onMousedown: withModifiers(onArrowPointerDown, ["prevent"])
|
|
19020
19225
|
}, [
|
|
19021
|
-
createVNode(_sfc_main$
|
|
19226
|
+
createVNode(_sfc_main$O, {
|
|
19022
19227
|
name: "arrowDown",
|
|
19023
19228
|
size: 24,
|
|
19024
19229
|
class: normalizeClass(arrowClasses.value)
|
|
@@ -19060,7 +19265,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
19060
19265
|
createElementVNode("span", _hoisted_10, "(" + toDisplayString(unref(t)("common.plus")) + toDisplayString(option.countryCode) + ")", 1)
|
|
19061
19266
|
]),
|
|
19062
19267
|
createElementVNode("span", _hoisted_11, [
|
|
19063
|
-
option.value === country.value ? (openBlock(), createBlock(_sfc_main$
|
|
19268
|
+
option.value === country.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
19064
19269
|
key: 0,
|
|
19065
19270
|
name: "check",
|
|
19066
19271
|
size: 24,
|
|
@@ -19297,7 +19502,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
19297
19502
|
class: normalizeClass(["mb-0! shrink-0", __props.selectClass ?? ""]),
|
|
19298
19503
|
onNoCountryResults
|
|
19299
19504
|
}, null, 8, ["modelValue", "items", "valid", "disabled", "ariaLabel", "data-testid", "class"]),
|
|
19300
|
-
createVNode(_sfc_main$
|
|
19505
|
+
createVNode(_sfc_main$t, mergeProps({
|
|
19301
19506
|
"model-value": unref(nationalNumber),
|
|
19302
19507
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => nationalNumber.value = $event ?? ""),
|
|
19303
19508
|
mask: phoneMask.value,
|
|
@@ -19765,7 +19970,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
19765
19970
|
}
|
|
19766
19971
|
return (_ctx, _cache) => {
|
|
19767
19972
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
19768
|
-
createVNode(_sfc_main$
|
|
19973
|
+
createVNode(_sfc_main$t, mergeProps({
|
|
19769
19974
|
"model-value": modelValue.value,
|
|
19770
19975
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event ?? ""),
|
|
19771
19976
|
mask: ssnMask.value,
|
|
@@ -19912,7 +20117,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
19912
20117
|
[vModelSelect, internalValue.value]
|
|
19913
20118
|
]),
|
|
19914
20119
|
createElementVNode("div", _hoisted_6, [
|
|
19915
|
-
createVNode(_sfc_main$
|
|
20120
|
+
createVNode(_sfc_main$O, {
|
|
19916
20121
|
name: "arrowDown",
|
|
19917
20122
|
size: 24,
|
|
19918
20123
|
class: normalizeClass({
|
|
@@ -20079,12 +20284,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
20079
20284
|
createElementVNode("div", {
|
|
20080
20285
|
class: normalizeClass(validationIconClasses.value)
|
|
20081
20286
|
}, [
|
|
20082
|
-
isInvalid.value ? (openBlock(), createBlock(_sfc_main$
|
|
20287
|
+
isInvalid.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
20083
20288
|
key: 0,
|
|
20084
20289
|
name: "alert",
|
|
20085
20290
|
class: "fill-red-600"
|
|
20086
20291
|
})) : createCommentVNode("", true),
|
|
20087
|
-
isValid2.value ? (openBlock(), createBlock(_sfc_main$
|
|
20292
|
+
isValid2.value ? (openBlock(), createBlock(_sfc_main$O, {
|
|
20088
20293
|
key: 1,
|
|
20089
20294
|
name: "bigSuccess"
|
|
20090
20295
|
})) : createCommentVNode("", true)
|
|
@@ -20175,7 +20380,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
20175
20380
|
unref(hasSlot) ? (openBlock(), createElementBlock("span", _hoisted_2, [
|
|
20176
20381
|
renderSlot(_ctx.$slots, "default")
|
|
20177
20382
|
])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.heading), 1)),
|
|
20178
|
-
createVNode(_sfc_main$
|
|
20383
|
+
createVNode(_sfc_main$O, {
|
|
20179
20384
|
name: iconName.value,
|
|
20180
20385
|
size: "24px",
|
|
20181
20386
|
class: "fill-blue-500 ml-1"
|
|
@@ -20407,7 +20612,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20407
20612
|
});
|
|
20408
20613
|
return (_ctx, _cache) => {
|
|
20409
20614
|
return openBlock(), createElementBlock("div", mergeProps({ class: wrapperClasses.value }, rootAttrs.value), [
|
|
20410
|
-
__props.loading ? (openBlock(), createBlock(_sfc_main$
|
|
20615
|
+
__props.loading ? (openBlock(), createBlock(_sfc_main$G, {
|
|
20411
20616
|
key: 0,
|
|
20412
20617
|
size: "24px",
|
|
20413
20618
|
color: "blue",
|
|
@@ -20616,6 +20821,302 @@ const teardownRouterLinkInterceptor = () => {
|
|
|
20616
20821
|
}
|
|
20617
20822
|
globalRouter = null;
|
|
20618
20823
|
};
|
|
20824
|
+
const isArr = (v) => Array.isArray(v);
|
|
20825
|
+
const clone = (v) => isArr(v) ? [...v] : v;
|
|
20826
|
+
const cloneRecord = (defaults2) => {
|
|
20827
|
+
const out = {};
|
|
20828
|
+
for (const k in defaults2) {
|
|
20829
|
+
out[k] = clone(defaults2[k]);
|
|
20830
|
+
}
|
|
20831
|
+
return out;
|
|
20832
|
+
};
|
|
20833
|
+
const isDefault = (v, def) => {
|
|
20834
|
+
if (isArr(def)) return isArr(v) && v.length === 0;
|
|
20835
|
+
return v === def;
|
|
20836
|
+
};
|
|
20837
|
+
const parseValue = (key, query, def) => {
|
|
20838
|
+
const raw = query[key];
|
|
20839
|
+
if (isArr(def)) {
|
|
20840
|
+
if (raw === void 0 || raw === null) return [];
|
|
20841
|
+
if (Array.isArray(raw)) return raw.filter((x) => x != null).map(String);
|
|
20842
|
+
return [String(raw)];
|
|
20843
|
+
}
|
|
20844
|
+
if (typeof def === "boolean") return raw === "true";
|
|
20845
|
+
if (typeof def === "number") {
|
|
20846
|
+
if (raw === void 0 || raw === null || raw === "") return def;
|
|
20847
|
+
const n = Number(Array.isArray(raw) ? raw[0] : raw);
|
|
20848
|
+
return Number.isFinite(n) ? n : def;
|
|
20849
|
+
}
|
|
20850
|
+
if (raw === void 0 || raw === null) return def;
|
|
20851
|
+
return String(Array.isArray(raw) ? raw[0] : raw);
|
|
20852
|
+
};
|
|
20853
|
+
const serializeValue = (v, def) => {
|
|
20854
|
+
if (isDefault(v, def)) return void 0;
|
|
20855
|
+
if (isArr(def)) return isArr(v) && v.length > 0 ? v : void 0;
|
|
20856
|
+
if (typeof def === "boolean") return v === true ? "true" : void 0;
|
|
20857
|
+
if (typeof def === "number") return String(v);
|
|
20858
|
+
if (typeof v === "string" && v !== "") return v;
|
|
20859
|
+
return void 0;
|
|
20860
|
+
};
|
|
20861
|
+
const normalizeQuery = (q) => {
|
|
20862
|
+
const out = {};
|
|
20863
|
+
for (const k of Object.keys(q).sort()) {
|
|
20864
|
+
const v = q[k];
|
|
20865
|
+
if (v === void 0 || v === null) continue;
|
|
20866
|
+
if (Array.isArray(v)) {
|
|
20867
|
+
const items = v.filter((x) => x != null).map(String);
|
|
20868
|
+
if (items.length) out[k] = items;
|
|
20869
|
+
} else {
|
|
20870
|
+
out[k] = String(v);
|
|
20871
|
+
}
|
|
20872
|
+
}
|
|
20873
|
+
return out;
|
|
20874
|
+
};
|
|
20875
|
+
const queriesEqual = (a, b) => JSON.stringify(normalizeQuery(a)) === JSON.stringify(normalizeQuery(b));
|
|
20876
|
+
const statesEqual = (a, b) => {
|
|
20877
|
+
for (const k in a) {
|
|
20878
|
+
const av = a[k];
|
|
20879
|
+
const bv = b[k];
|
|
20880
|
+
if (isArr(av)) {
|
|
20881
|
+
if (!isArr(bv) || av.length !== bv.length || av.some((x, i) => x !== bv[i])) return false;
|
|
20882
|
+
} else if (av !== bv) {
|
|
20883
|
+
return false;
|
|
20884
|
+
}
|
|
20885
|
+
}
|
|
20886
|
+
return true;
|
|
20887
|
+
};
|
|
20888
|
+
const applyInPlace = (target, source, defaults2) => {
|
|
20889
|
+
for (const k in defaults2) {
|
|
20890
|
+
const next = source[k];
|
|
20891
|
+
const current = target[k];
|
|
20892
|
+
if (isArr(defaults2[k])) {
|
|
20893
|
+
const na = next;
|
|
20894
|
+
const ca = current;
|
|
20895
|
+
if (na.length !== ca.length || na.some((x, i) => x !== ca[i])) {
|
|
20896
|
+
ca.splice(0, ca.length, ...na);
|
|
20897
|
+
}
|
|
20898
|
+
} else if (current !== next) {
|
|
20899
|
+
target[k] = next;
|
|
20900
|
+
}
|
|
20901
|
+
}
|
|
20902
|
+
};
|
|
20903
|
+
const copyPlain = (source, target, keys) => {
|
|
20904
|
+
for (const k of keys) {
|
|
20905
|
+
const v = source[k];
|
|
20906
|
+
if (isArr(v)) {
|
|
20907
|
+
const ca = target[k];
|
|
20908
|
+
if (Array.isArray(ca)) {
|
|
20909
|
+
ca.splice(0, ca.length, ...v);
|
|
20910
|
+
} else {
|
|
20911
|
+
target[k] = [...v];
|
|
20912
|
+
}
|
|
20913
|
+
} else {
|
|
20914
|
+
target[k] = clone(v);
|
|
20915
|
+
}
|
|
20916
|
+
}
|
|
20917
|
+
};
|
|
20918
|
+
const SEARCH_KEY = "_search";
|
|
20919
|
+
const PAGE_KEY = "_page";
|
|
20920
|
+
const SORT_KEY = "_sort";
|
|
20921
|
+
function useRouteFilters(schema) {
|
|
20922
|
+
const route = useRoute();
|
|
20923
|
+
const router = useRouter();
|
|
20924
|
+
const filterDefaults = schema.filter;
|
|
20925
|
+
const draftDefaults = schema.draft ?? {};
|
|
20926
|
+
const sortDefault = schema.sort ?? {};
|
|
20927
|
+
const searchDefault = schema.search ?? "";
|
|
20928
|
+
const pageDefault = schema.page ?? 0;
|
|
20929
|
+
const draftKeys = Object.keys(draftDefaults);
|
|
20930
|
+
const schemaQueryKeys = /* @__PURE__ */ new Set([...Object.keys(filterDefaults), ...draftKeys, SEARCH_KEY, PAGE_KEY, SORT_KEY]);
|
|
20931
|
+
const filterState = reactive(cloneRecord(filterDefaults));
|
|
20932
|
+
const draftState = reactive(cloneRecord(draftDefaults));
|
|
20933
|
+
const searchRef = ref(searchDefault);
|
|
20934
|
+
const pageRef = ref(pageDefault);
|
|
20935
|
+
const defaultSortValue = sortDefault.field && sortDefault.dir ? `${sortDefault.dir === "desc" ? "-" : "+"}${sortDefault.field}` : "";
|
|
20936
|
+
const sortValueRef = ref(defaultSortValue);
|
|
20937
|
+
const filterRaw = filterState;
|
|
20938
|
+
const draftRaw = draftState;
|
|
20939
|
+
const draftKeyStrings = draftKeys;
|
|
20940
|
+
let syncingFromRoute = false;
|
|
20941
|
+
let syncingToRoute = false;
|
|
20942
|
+
const readFromRoute = () => {
|
|
20943
|
+
const q = route.query;
|
|
20944
|
+
const parsed = cloneRecord(filterDefaults);
|
|
20945
|
+
for (const k in filterDefaults) {
|
|
20946
|
+
parsed[k] = parseValue(k, q, filterDefaults[k]);
|
|
20947
|
+
}
|
|
20948
|
+
if (!statesEqual(filterState, parsed)) {
|
|
20949
|
+
applyInPlace(filterState, parsed, filterDefaults);
|
|
20950
|
+
}
|
|
20951
|
+
const rawSearch = q[SEARCH_KEY];
|
|
20952
|
+
const nextSearch = rawSearch !== void 0 && rawSearch !== null ? String(Array.isArray(rawSearch) ? rawSearch[0] : rawSearch) : searchDefault;
|
|
20953
|
+
if (searchRef.value !== nextSearch) searchRef.value = nextSearch;
|
|
20954
|
+
const rawPage = q[PAGE_KEY];
|
|
20955
|
+
const nextPage = rawPage !== void 0 && rawPage !== null ? Number(Array.isArray(rawPage) ? rawPage[0] : rawPage) || pageDefault : pageDefault;
|
|
20956
|
+
if (pageRef.value !== nextPage) pageRef.value = nextPage;
|
|
20957
|
+
const rawSort = q[SORT_KEY];
|
|
20958
|
+
const nextSort = typeof rawSort === "string" && rawSort !== "" ? rawSort : defaultSortValue;
|
|
20959
|
+
if (sortValueRef.value !== nextSort) sortValueRef.value = nextSort;
|
|
20960
|
+
if (draftKeys.length > 0) {
|
|
20961
|
+
copyPlain(
|
|
20962
|
+
filterState,
|
|
20963
|
+
draftState,
|
|
20964
|
+
draftKeys
|
|
20965
|
+
);
|
|
20966
|
+
}
|
|
20967
|
+
};
|
|
20968
|
+
readFromRoute();
|
|
20969
|
+
const buildQuery = () => {
|
|
20970
|
+
const q = {};
|
|
20971
|
+
for (const k in route.query) {
|
|
20972
|
+
if (!schemaQueryKeys.has(k)) q[k] = route.query[k];
|
|
20973
|
+
}
|
|
20974
|
+
for (const k in filterDefaults) {
|
|
20975
|
+
const s = serializeValue(filterState[k], filterDefaults[k]);
|
|
20976
|
+
if (s !== void 0) q[k] = s;
|
|
20977
|
+
}
|
|
20978
|
+
if (searchRef.value !== searchDefault && searchRef.value !== "") {
|
|
20979
|
+
q[SEARCH_KEY] = searchRef.value;
|
|
20980
|
+
}
|
|
20981
|
+
if (pageRef.value !== pageDefault) {
|
|
20982
|
+
q[PAGE_KEY] = String(pageRef.value);
|
|
20983
|
+
}
|
|
20984
|
+
if (sortValueRef.value !== "" && sortValueRef.value !== defaultSortValue) {
|
|
20985
|
+
q[SORT_KEY] = sortValueRef.value;
|
|
20986
|
+
} else if (defaultSortValue !== "" && sortValueRef.value === defaultSortValue) ;
|
|
20987
|
+
return q;
|
|
20988
|
+
};
|
|
20989
|
+
const pushRoute = () => {
|
|
20990
|
+
if (syncingFromRoute || syncingToRoute) return;
|
|
20991
|
+
const next = buildQuery();
|
|
20992
|
+
if (queriesEqual(route.query, next)) return;
|
|
20993
|
+
syncingToRoute = true;
|
|
20994
|
+
return router.replace({ query: next }).then(() => void 0).finally(() => {
|
|
20995
|
+
syncingToRoute = false;
|
|
20996
|
+
});
|
|
20997
|
+
};
|
|
20998
|
+
watch(
|
|
20999
|
+
() => route.query,
|
|
21000
|
+
() => {
|
|
21001
|
+
if (syncingToRoute) return;
|
|
21002
|
+
syncingFromRoute = true;
|
|
21003
|
+
readFromRoute();
|
|
21004
|
+
syncingFromRoute = false;
|
|
21005
|
+
}
|
|
21006
|
+
);
|
|
21007
|
+
watch(
|
|
21008
|
+
filterState,
|
|
21009
|
+
() => {
|
|
21010
|
+
pushRoute();
|
|
21011
|
+
},
|
|
21012
|
+
{ deep: true }
|
|
21013
|
+
);
|
|
21014
|
+
watch(searchRef, () => {
|
|
21015
|
+
pushRoute();
|
|
21016
|
+
});
|
|
21017
|
+
watch(pageRef, () => {
|
|
21018
|
+
pushRoute();
|
|
21019
|
+
});
|
|
21020
|
+
watch(sortValueRef, () => {
|
|
21021
|
+
pushRoute();
|
|
21022
|
+
});
|
|
21023
|
+
const sort = {
|
|
21024
|
+
get value() {
|
|
21025
|
+
return sortValueRef.value;
|
|
21026
|
+
},
|
|
21027
|
+
get field() {
|
|
21028
|
+
return sortValueRef.value.length > 1 ? sortValueRef.value.slice(1) : "";
|
|
21029
|
+
},
|
|
21030
|
+
get dir() {
|
|
21031
|
+
if (!sortValueRef.value) return "";
|
|
21032
|
+
return sortValueRef.value[0] === "-" ? "desc" : "asc";
|
|
21033
|
+
},
|
|
21034
|
+
toggle(field) {
|
|
21035
|
+
if (sortValueRef.value === `-${field}`) {
|
|
21036
|
+
sortValueRef.value = `+${field}`;
|
|
21037
|
+
} else if (sortValueRef.value === `+${field}`) {
|
|
21038
|
+
sortValueRef.value = "";
|
|
21039
|
+
} else {
|
|
21040
|
+
sortValueRef.value = `-${field}`;
|
|
21041
|
+
}
|
|
21042
|
+
},
|
|
21043
|
+
set(field, dir) {
|
|
21044
|
+
sortValueRef.value = `${dir === "desc" ? "-" : "+"}${field}`;
|
|
21045
|
+
},
|
|
21046
|
+
clear() {
|
|
21047
|
+
sortValueRef.value = "";
|
|
21048
|
+
},
|
|
21049
|
+
iconFor(field) {
|
|
21050
|
+
if (sortValueRef.value.slice(1) !== field) return "sort";
|
|
21051
|
+
return sortValueRef.value[0] === "-" ? "descending" : "ascending";
|
|
21052
|
+
}
|
|
21053
|
+
};
|
|
21054
|
+
const draft = {
|
|
21055
|
+
state: draftState,
|
|
21056
|
+
open() {
|
|
21057
|
+
copyPlain(filterRaw, draftRaw, draftKeyStrings);
|
|
21058
|
+
},
|
|
21059
|
+
apply() {
|
|
21060
|
+
copyPlain(draftRaw, filterRaw, draftKeyStrings);
|
|
21061
|
+
},
|
|
21062
|
+
cancel() {
|
|
21063
|
+
copyPlain(filterRaw, draftRaw, draftKeyStrings);
|
|
21064
|
+
},
|
|
21065
|
+
reset() {
|
|
21066
|
+
const defClone = cloneRecord(draftDefaults);
|
|
21067
|
+
copyPlain(defClone, draftRaw, draftKeyStrings);
|
|
21068
|
+
}
|
|
21069
|
+
};
|
|
21070
|
+
const reset = async () => {
|
|
21071
|
+
syncingFromRoute = true;
|
|
21072
|
+
applyInPlace(filterState, cloneRecord(filterDefaults), filterDefaults);
|
|
21073
|
+
searchRef.value = searchDefault;
|
|
21074
|
+
pageRef.value = pageDefault;
|
|
21075
|
+
sortValueRef.value = defaultSortValue;
|
|
21076
|
+
if (draftKeys.length > 0) {
|
|
21077
|
+
copyPlain(filterRaw, draftRaw, draftKeyStrings);
|
|
21078
|
+
}
|
|
21079
|
+
syncingFromRoute = false;
|
|
21080
|
+
await pushRoute();
|
|
21081
|
+
};
|
|
21082
|
+
const clear = async () => {
|
|
21083
|
+
syncingToRoute = true;
|
|
21084
|
+
applyInPlace(filterState, cloneRecord(filterDefaults), filterDefaults);
|
|
21085
|
+
searchRef.value = searchDefault;
|
|
21086
|
+
pageRef.value = pageDefault;
|
|
21087
|
+
sortValueRef.value = defaultSortValue;
|
|
21088
|
+
if (draftKeys.length > 0) {
|
|
21089
|
+
copyPlain(filterRaw, draftRaw, draftKeyStrings);
|
|
21090
|
+
}
|
|
21091
|
+
await router.replace({ query: {} }).finally(() => {
|
|
21092
|
+
syncingToRoute = false;
|
|
21093
|
+
});
|
|
21094
|
+
};
|
|
21095
|
+
return {
|
|
21096
|
+
filter: filterState,
|
|
21097
|
+
draft,
|
|
21098
|
+
sort,
|
|
21099
|
+
search: searchRef,
|
|
21100
|
+
page: pageRef,
|
|
21101
|
+
reset,
|
|
21102
|
+
clear
|
|
21103
|
+
};
|
|
21104
|
+
}
|
|
21105
|
+
const parseRouteFiltersFromQuery = (query, defaults2) => {
|
|
21106
|
+
const out = cloneRecord(defaults2);
|
|
21107
|
+
for (const k in defaults2) {
|
|
21108
|
+
out[k] = parseValue(k, query, defaults2[k]);
|
|
21109
|
+
}
|
|
21110
|
+
return out;
|
|
21111
|
+
};
|
|
21112
|
+
const serializeRouteFiltersToQuery = (state, defaults2) => {
|
|
21113
|
+
const q = {};
|
|
21114
|
+
for (const k in defaults2) {
|
|
21115
|
+
const s = serializeValue(state[k], defaults2[k]);
|
|
21116
|
+
if (s !== void 0) q[k] = s;
|
|
21117
|
+
}
|
|
21118
|
+
return q;
|
|
21119
|
+
};
|
|
20619
21120
|
function useRouteScrollPositions(currentRoute) {
|
|
20620
21121
|
const scrollPositions = ref({});
|
|
20621
21122
|
watch(
|
|
@@ -20697,33 +21198,34 @@ const FdsVueCorePlugin = {
|
|
|
20697
21198
|
app.provide(FDS_VUE_CORE_I18N_KEY, options.i18n);
|
|
20698
21199
|
}
|
|
20699
21200
|
app.component("FdsTreeView", _sfc_main$h);
|
|
20700
|
-
app.component("FdsButtonPrimary", _sfc_main$
|
|
20701
|
-
app.component("FdsButtonSecondary", _sfc_main$
|
|
20702
|
-
app.component("FdsButtonMinor", _sfc_main$
|
|
20703
|
-
app.component("FdsButtonIcon", _sfc_main$
|
|
20704
|
-
app.component("FdsButtonCopy", _sfc_main$
|
|
20705
|
-
app.component("FdsButtonDownload", _sfc_main$
|
|
20706
|
-
app.component("FdsDevMode", _sfc_main$
|
|
20707
|
-
app.component("FdsIcon", _sfc_main$
|
|
20708
|
-
app.component("FdsSpinner", _sfc_main$
|
|
20709
|
-
app.component("FdsRadio", _sfc_main$
|
|
20710
|
-
app.component("FdsCheckbox", _sfc_main$
|
|
21201
|
+
app.component("FdsButtonPrimary", _sfc_main$C);
|
|
21202
|
+
app.component("FdsButtonSecondary", _sfc_main$B);
|
|
21203
|
+
app.component("FdsButtonMinor", _sfc_main$F);
|
|
21204
|
+
app.component("FdsButtonIcon", _sfc_main$N);
|
|
21205
|
+
app.component("FdsButtonCopy", _sfc_main$E);
|
|
21206
|
+
app.component("FdsButtonDownload", _sfc_main$D);
|
|
21207
|
+
app.component("FdsDevMode", _sfc_main$p);
|
|
21208
|
+
app.component("FdsIcon", _sfc_main$O);
|
|
21209
|
+
app.component("FdsSpinner", _sfc_main$G);
|
|
21210
|
+
app.component("FdsRadio", _sfc_main$y);
|
|
21211
|
+
app.component("FdsCheckbox", _sfc_main$z);
|
|
20711
21212
|
app.component("FdsTextarea", _sfc_main$7);
|
|
20712
21213
|
app.component("FdsPhonenumber", _sfc_main$a);
|
|
20713
21214
|
app.component("FdsSsn", _sfc_main$9);
|
|
20714
21215
|
app.component("FdsSelect", _sfc_main$8);
|
|
20715
21216
|
app.component("FdsTable", _sfc_main$6);
|
|
20716
21217
|
app.component("FdsTableHead", _sfc_main$5);
|
|
20717
|
-
app.component("FdsInput", _sfc_main$
|
|
20718
|
-
app.component("FdsBlockContent", _sfc_main$
|
|
20719
|
-
app.component("FdsBlockInfo", _sfc_main$
|
|
20720
|
-
app.component("FdsBlockAlert", _sfc_main$
|
|
20721
|
-
app.component("FdsBlockExpander", _sfc_main$
|
|
20722
|
-
app.component("FdsBlockLink", _sfc_main$
|
|
20723
|
-
app.component("FdsSticker", _sfc_main$
|
|
20724
|
-
app.component("FdsTabs", _sfc_main$
|
|
20725
|
-
app.component("FdsTabsItem", _sfc_main$
|
|
20726
|
-
app.component("
|
|
21218
|
+
app.component("FdsInput", _sfc_main$t);
|
|
21219
|
+
app.component("FdsBlockContent", _sfc_main$L);
|
|
21220
|
+
app.component("FdsBlockInfo", _sfc_main$I);
|
|
21221
|
+
app.component("FdsBlockAlert", _sfc_main$M);
|
|
21222
|
+
app.component("FdsBlockExpander", _sfc_main$J);
|
|
21223
|
+
app.component("FdsBlockLink", _sfc_main$H);
|
|
21224
|
+
app.component("FdsSticker", _sfc_main$K);
|
|
21225
|
+
app.component("FdsTabs", _sfc_main$s);
|
|
21226
|
+
app.component("FdsTabsItem", _sfc_main$r);
|
|
21227
|
+
app.component("FdsDrawer", FdsDrawer);
|
|
21228
|
+
app.component("FdsModal", _sfc_main$v);
|
|
20727
21229
|
app.component("FdsPagination", _sfc_main$m);
|
|
20728
21230
|
app.component("FdsPopover", _sfc_main$l);
|
|
20729
21231
|
app.component("FdsSearchSelect", _sfc_main$k);
|
|
@@ -20735,53 +21237,54 @@ const FdsVueCorePlugin = {
|
|
|
20735
21237
|
app.component("FdsH2", _sfc_main$3);
|
|
20736
21238
|
app.component("FdsH3", _sfc_main$2);
|
|
20737
21239
|
app.component("FdsHr", _sfc_main$1);
|
|
20738
|
-
app.component("FdsLabel", _sfc_main$
|
|
21240
|
+
app.component("FdsLabel", _sfc_main$x);
|
|
20739
21241
|
app.component("FdsLead", _sfc_main$d);
|
|
20740
|
-
app.component("FdsMeta", _sfc_main$
|
|
21242
|
+
app.component("FdsMeta", _sfc_main$u);
|
|
20741
21243
|
app.component("FdsListHeading", _sfc_main);
|
|
20742
21244
|
}
|
|
20743
21245
|
};
|
|
20744
21246
|
export {
|
|
20745
21247
|
FDS_VUE_CORE_I18N_KEY,
|
|
20746
|
-
_sfc_main$
|
|
20747
|
-
_sfc_main$
|
|
20748
|
-
_sfc_main$
|
|
20749
|
-
_sfc_main$
|
|
20750
|
-
_sfc_main$
|
|
20751
|
-
_sfc_main$
|
|
20752
|
-
_sfc_main$
|
|
20753
|
-
_sfc_main$
|
|
20754
|
-
_sfc_main$
|
|
20755
|
-
_sfc_main$
|
|
20756
|
-
_sfc_main$
|
|
20757
|
-
_sfc_main$
|
|
20758
|
-
_sfc_main$
|
|
20759
|
-
|
|
21248
|
+
_sfc_main$M as FdsBlockAlert,
|
|
21249
|
+
_sfc_main$L as FdsBlockContent,
|
|
21250
|
+
_sfc_main$J as FdsBlockExpander,
|
|
21251
|
+
_sfc_main$I as FdsBlockInfo,
|
|
21252
|
+
_sfc_main$H as FdsBlockLink,
|
|
21253
|
+
_sfc_main$E as FdsButtonCopy,
|
|
21254
|
+
_sfc_main$D as FdsButtonDownload,
|
|
21255
|
+
_sfc_main$N as FdsButtonIcon,
|
|
21256
|
+
_sfc_main$F as FdsButtonMinor,
|
|
21257
|
+
_sfc_main$C as FdsButtonPrimary,
|
|
21258
|
+
_sfc_main$B as FdsButtonSecondary,
|
|
21259
|
+
_sfc_main$z as FdsCheckbox,
|
|
21260
|
+
_sfc_main$p as FdsDevMode,
|
|
21261
|
+
FdsDrawer,
|
|
21262
|
+
_sfc_main$o as FdsExitModal,
|
|
20760
21263
|
_sfc_main$4 as FdsH1,
|
|
20761
21264
|
_sfc_main$3 as FdsH2,
|
|
20762
21265
|
_sfc_main$2 as FdsH3,
|
|
20763
21266
|
_sfc_main$1 as FdsHr,
|
|
20764
|
-
_sfc_main$
|
|
20765
|
-
_sfc_main$
|
|
20766
|
-
_sfc_main$
|
|
21267
|
+
_sfc_main$O as FdsIcon,
|
|
21268
|
+
_sfc_main$t as FdsInput,
|
|
21269
|
+
_sfc_main$x as FdsLabel,
|
|
20767
21270
|
_sfc_main$d as FdsLead,
|
|
20768
21271
|
_sfc_main as FdsListHeading,
|
|
20769
|
-
_sfc_main$
|
|
20770
|
-
_sfc_main$
|
|
21272
|
+
_sfc_main$u as FdsMeta,
|
|
21273
|
+
_sfc_main$v as FdsModal,
|
|
20771
21274
|
_sfc_main$m as FdsPagination,
|
|
20772
21275
|
_sfc_main$a as FdsPhonenumber,
|
|
20773
21276
|
_sfc_main$l as FdsPopover,
|
|
20774
|
-
_sfc_main$
|
|
21277
|
+
_sfc_main$y as FdsRadio,
|
|
20775
21278
|
_sfc_main$k as FdsSearchSelect,
|
|
20776
21279
|
_sfc_main$j as FdsSearchSelectPro,
|
|
20777
21280
|
_sfc_main$8 as FdsSelect,
|
|
20778
|
-
_sfc_main$
|
|
21281
|
+
_sfc_main$G as FdsSpinner,
|
|
20779
21282
|
_sfc_main$9 as FdsSsn,
|
|
20780
|
-
_sfc_main$
|
|
21283
|
+
_sfc_main$K as FdsSticker,
|
|
20781
21284
|
_sfc_main$6 as FdsTable,
|
|
20782
21285
|
_sfc_main$5 as FdsTableHead,
|
|
20783
|
-
_sfc_main$
|
|
20784
|
-
_sfc_main$
|
|
21286
|
+
_sfc_main$s as FdsTabs,
|
|
21287
|
+
_sfc_main$r as FdsTabsItem,
|
|
20785
21288
|
_sfc_main$7 as FdsTextarea,
|
|
20786
21289
|
_sfc_main$h as FdsTreeView,
|
|
20787
21290
|
_sfc_main$g as FdsTruncatedText,
|
|
@@ -20810,7 +21313,9 @@ export {
|
|
|
20810
21313
|
logoFeelgoodColored,
|
|
20811
21314
|
logoFeelgoodLight,
|
|
20812
21315
|
normalizePidSearchValue,
|
|
21316
|
+
parseRouteFiltersFromQuery,
|
|
20813
21317
|
resolveRouterLinkTarget,
|
|
21318
|
+
serializeRouteFiltersToQuery,
|
|
20814
21319
|
setupExitConfirmationGuard,
|
|
20815
21320
|
setupRouterLinkInterceptor,
|
|
20816
21321
|
shouldBlockNavigation,
|
|
@@ -20828,6 +21333,7 @@ export {
|
|
|
20828
21333
|
useFileSizeValidation,
|
|
20829
21334
|
useFileValidation,
|
|
20830
21335
|
useIsPid,
|
|
21336
|
+
useRouteFilters,
|
|
20831
21337
|
useRouteScrollPositions,
|
|
20832
21338
|
useTreeState,
|
|
20833
21339
|
useViewportBreakpoint,
|