fds-vue-core 4.7.1 → 4.7.3

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.
@@ -865,11 +865,12 @@ const _hoisted_2$j = {
865
865
  class: "flex items-center mr-4"
866
866
  };
867
867
  const _hoisted_3$b = { class: "inline-flex items-center" };
868
- const _hoisted_4$a = {
868
+ const _hoisted_4$a = { class: "flex items-center gap-2" };
869
+ const _hoisted_5$9 = {
869
870
  key: 0,
870
871
  class: "w-full flex mt-2"
871
872
  };
872
- const _hoisted_5$9 = ["aria-hidden"];
873
+ const _hoisted_6$6 = ["aria-hidden"];
873
874
  const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
874
875
  ...{
875
876
  inheritAttrs: false
@@ -958,7 +959,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
958
959
  }, vue.toDisplayString(__props.heading), 3)
959
960
  ])
960
961
  ], 2),
961
- vue.createElementVNode("span", null, [
962
+ vue.createElementVNode("span", _hoisted_4$a, [
962
963
  __props.stickerText && __props.stickerColor ? (vue.openBlock(), vue.createBlock(_sfc_main$A, {
963
964
  key: 0,
964
965
  variant: __props.stickerColor
@@ -976,7 +977,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
976
977
  ])
977
978
  ])
978
979
  ], 2),
979
- vue.unref(hasExtraRowSlot) && !isOpen.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$a, [
980
+ vue.unref(hasExtraRowSlot) && !isOpen.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, [
980
981
  vue.renderSlot(_ctx.$slots, "extra-row")
981
982
  ])) : vue.createCommentVNode("", true)
982
983
  ], 16),
@@ -985,7 +986,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
985
986
  class: "mb-0-last-child block px-4 pb-6 rounded-b-2xl bg-white"
986
987
  }, [
987
988
  vue.renderSlot(_ctx.$slots, "default")
988
- ], 8, _hoisted_5$9), [
989
+ ], 8, _hoisted_6$6), [
989
990
  [vue.vShow, isOpen.value]
990
991
  ])
991
992
  ], 16);
@@ -1004,12 +1005,12 @@ const _hoisted_4$9 = {
1004
1005
  };
1005
1006
  const _hoisted_5$8 = { class: "flex items-start justify-between gap-4" };
1006
1007
  const _hoisted_6$5 = { class: "m-0 text-base font-main font-bold tracking-wide" };
1007
- const _hoisted_7$4 = { class: "flex items-start gap-3" };
1008
- const _hoisted_8$3 = {
1008
+ const _hoisted_7$5 = { class: "flex items-start gap-3" };
1009
+ const _hoisted_8$4 = {
1009
1010
  key: 1,
1010
1011
  class: "mb-0-last-child"
1011
1012
  };
1012
- const _hoisted_9$3 = { key: 1 };
1013
+ const _hoisted_9$4 = { key: 1 };
1013
1014
  const _hoisted_10$2 = { class: "flex items-start justify-between gap-4" };
1014
1015
  const _hoisted_11$2 = { class: "flex items-center gap-3" };
1015
1016
  const _hoisted_12$1 = { class: "m-0 text-base font-main font-bold tracking-wide" };
@@ -1059,16 +1060,16 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
1059
1060
  __props.heading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$9, [
1060
1061
  vue.createElementVNode("header", _hoisted_5$8, [
1061
1062
  vue.createElementVNode("h3", _hoisted_6$5, vue.toDisplayString(__props.heading), 1),
1062
- vue.createElementVNode("div", _hoisted_7$4, [
1063
+ vue.createElementVNode("div", _hoisted_7$5, [
1063
1064
  vue.renderSlot(_ctx.$slots, "headerInfo")
1064
1065
  ])
1065
1066
  ])
1066
1067
  ])) : vue.createCommentVNode("", true),
1067
- vue.unref(hasSlot) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$3, [
1068
+ vue.unref(hasSlot) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$4, [
1068
1069
  vue.renderSlot(_ctx.$slots, "default")
1069
1070
  ])) : vue.createCommentVNode("", true)
1070
1071
  ])
1071
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$3, [
1072
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$4, [
1072
1073
  __props.heading ? (vue.openBlock(), vue.createElementBlock("div", {
1073
1074
  key: 0,
1074
1075
  class: vue.normalizeClass({ "mb-2": vue.unref(hasSlot) })
@@ -8828,9 +8829,9 @@ const _hoisted_3$8 = {
8828
8829
  const _hoisted_4$7 = { class: "w-full text-left text-xs border-collapse" };
8829
8830
  const _hoisted_5$7 = ["onClick"];
8830
8831
  const _hoisted_6$4 = { class: "py-1.5 px-3 font-mono break-all" };
8831
- const _hoisted_7$3 = { class: "py-1.5 px-3 font-mono whitespace-pre-wrap break-all" };
8832
- const _hoisted_8$2 = { class: "mt-4 space-y-2" };
8833
- const _hoisted_9$2 = { class: "flex flex-col gap-1" };
8832
+ const _hoisted_7$4 = { class: "py-1.5 px-3 font-mono whitespace-pre-wrap break-all" };
8833
+ const _hoisted_8$3 = { class: "mt-4 space-y-2" };
8834
+ const _hoisted_9$3 = { class: "flex flex-col gap-1" };
8834
8835
  const _hoisted_10$1 = { class: "flex flex-col gap-1" };
8835
8836
  const _hoisted_11$1 = {
8836
8837
  key: 0,
@@ -9133,14 +9134,14 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
9133
9134
  onClick: ($event) => selectLocalEntry(entry)
9134
9135
  }, [
9135
9136
  vue.createElementVNode("td", _hoisted_6$4, vue.toDisplayString(entry.key), 1),
9136
- vue.createElementVNode("td", _hoisted_7$3, vue.toDisplayString(entry.value), 1)
9137
+ vue.createElementVNode("td", _hoisted_7$4, vue.toDisplayString(entry.value), 1)
9137
9138
  ], 8, _hoisted_5$7);
9138
9139
  }), 128))
9139
9140
  ])
9140
9141
  ])
9141
9142
  ])),
9142
- vue.createElementVNode("div", _hoisted_8$2, [
9143
- vue.createElementVNode("div", _hoisted_9$2, [
9143
+ vue.createElementVNode("div", _hoisted_8$3, [
9144
+ vue.createElementVNode("div", _hoisted_9$3, [
9144
9145
  _cache[13] || (_cache[13] = vue.createElementVNode("label", { class: "text-xs font-semibold" }, "Nyckel", -1)),
9145
9146
  vue.withDirectives(vue.createElementVNode("input", {
9146
9147
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => localEditKey.value = $event),
@@ -9710,9 +9711,9 @@ const _hoisted_6$3 = {
9710
9711
  key: 0,
9711
9712
  class: "flex justify-center p-4"
9712
9713
  };
9713
- const _hoisted_7$2 = ["id", "onMouseup"];
9714
- const _hoisted_8$1 = ["id", "onKeydown"];
9715
- const _hoisted_9$1 = ["for", "innerHTML"];
9714
+ const _hoisted_7$3 = ["id", "onMouseup"];
9715
+ const _hoisted_8$2 = ["id", "onKeydown"];
9716
+ const _hoisted_9$2 = ["for", "innerHTML"];
9716
9717
  const _hoisted_10 = {
9717
9718
  key: 2,
9718
9719
  class: "block m-0 list-none p-0"
@@ -10203,13 +10204,13 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
10203
10204
  vue.withKeys((e) => handleClick(e, item), ["enter"]),
10204
10205
  vue.withKeys(vue.withModifiers((e) => handleClick(e, item), ["prevent"]), ["space"])
10205
10206
  ]
10206
- }, null, 40, _hoisted_8$1),
10207
+ }, null, 40, _hoisted_8$2),
10207
10208
  vue.createElementVNode("label", {
10208
10209
  for: `search-select-radio-${index}`,
10209
10210
  class: vue.normalizeClass([labelClasses.value, listItemClasses.value]),
10210
10211
  innerHTML: handleMatchingString(item)
10211
- }, null, 10, _hoisted_9$1)
10212
- ], 42, _hoisted_7$2);
10212
+ }, null, 10, _hoisted_9$2)
10213
+ ], 42, _hoisted_7$3);
10213
10214
  }), 128))
10214
10215
  ], 32),
10215
10216
  __props.page !== void 0 && totalPages.value !== null && totalPages.value > 1 ? (vue.openBlock(), vue.createBlock(_sfc_main$j, {
@@ -10957,9 +10958,9 @@ const _hoisted_6$2 = {
10957
10958
  key: 2,
10958
10959
  class: "items-center max-h-[28px]"
10959
10960
  };
10960
- const _hoisted_7$1 = { class: "flex flex-col gap-2" };
10961
- const _hoisted_8 = ["onClick"];
10962
- const _hoisted_9 = { key: 0 };
10961
+ const _hoisted_7$2 = { class: "flex flex-col gap-2" };
10962
+ const _hoisted_8$1 = ["onClick"];
10963
+ const _hoisted_9$1 = { key: 0 };
10963
10964
  const popoverWidth = 327;
10964
10965
  const popoverHeight = 80;
10965
10966
  const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
@@ -11234,7 +11235,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
11234
11235
  }, ["stop"])),
11235
11236
  onFocusout: onPanelFocusOut
11236
11237
  }, [
11237
- vue.createElementVNode("div", _hoisted_7$1, [
11238
+ vue.createElementVNode("div", _hoisted_7$2, [
11238
11239
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(options, (option) => {
11239
11240
  return vue.createElementVNode("div", {
11240
11241
  key: option.value,
@@ -11254,7 +11255,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
11254
11255
  onBlur: closePopover,
11255
11256
  label: option.label
11256
11257
  }, null, 8, ["modelValue", "id", "name", "value", "label"])
11257
- ], 8, _hoisted_8);
11258
+ ], 8, _hoisted_8$1);
11258
11259
  }), 64))
11259
11260
  ]),
11260
11261
  vue.createVNode(_sfc_main$D, vue.mergeProps({
@@ -11272,7 +11273,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
11272
11273
  ])) : vue.createCommentVNode("", true)
11273
11274
  ])
11274
11275
  ], 4),
11275
- vue.unref(expandedNodes).has(props.nodeId) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
11276
+ vue.unref(expandedNodes).has(props.nodeId) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$1, [
11276
11277
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredNodes.value, (child) => {
11277
11278
  return vue.openBlock(), vue.createBlock(_component_TreeNode, {
11278
11279
  key: child.nodeId,
@@ -11572,13 +11573,41 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
11572
11573
  };
11573
11574
  }
11574
11575
  });
11575
- const _hoisted_1$4 = { class: "h-[2px] absolute top-[22px] left-[50%] bg-white-solid transform -translate-x-1/2 w-[calc(100%-50px)]" };
11576
- const _hoisted_2$3 = { class: "flex justify-between list-none mb-8 p-0" };
11577
- const _hoisted_3$3 = { class: "flex justify-between w-full" };
11578
- const _hoisted_4$3 = ["onClick", "disabled"];
11579
- const _hoisted_5$3 = { key: 0 };
11580
- const _hoisted_6$1 = { class: "text-blue-600 font-bold text-sm" };
11581
11576
  const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
11577
+ ...{
11578
+ inheritAttrs: false
11579
+ },
11580
+ __name: "FdsLead",
11581
+ props: {
11582
+ dataTestid: { default: void 0 }
11583
+ },
11584
+ setup(__props) {
11585
+ const props = __props;
11586
+ const attrs = vue.useAttrs();
11587
+ const rootAttrs = vue.computed(() => {
11588
+ const result = { ...attrs };
11589
+ if (props.dataTestid) {
11590
+ result["data-testid"] = props.dataTestid;
11591
+ }
11592
+ return result;
11593
+ });
11594
+ return (_ctx, _cache) => {
11595
+ return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: "inline-block font-light text-lg" }, rootAttrs.value), [
11596
+ vue.renderSlot(_ctx.$slots, "default")
11597
+ ], 16);
11598
+ };
11599
+ }
11600
+ });
11601
+ const _hoisted_1$4 = { class: "mb-6" };
11602
+ const _hoisted_2$3 = { class: "mb-0" };
11603
+ const _hoisted_3$3 = { class: "relative" };
11604
+ const _hoisted_4$3 = { class: "h-[2px] absolute top-[22px] left-[50%] bg-white-solid transform -translate-x-1/2 w-[calc(100%-50px)]" };
11605
+ const _hoisted_5$3 = { class: "flex justify-between list-none mb-8 p-0" };
11606
+ const _hoisted_6$1 = { class: "flex justify-between w-full" };
11607
+ const _hoisted_7$1 = ["onClick", "disabled"];
11608
+ const _hoisted_8 = { key: 0 };
11609
+ const _hoisted_9 = { class: "text-blue-600 font-bold text-sm" };
11610
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
11582
11611
  __name: "FdsWizard",
11583
11612
  props: {
11584
11613
  routes: {},
@@ -11592,11 +11621,16 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
11592
11621
  },
11593
11622
  emits: ["go"],
11594
11623
  setup(__props, { expose: __expose, emit: __emit }) {
11624
+ const mainHeading = vue.ref("");
11625
+ const mainLead = vue.ref("");
11626
+ const contentClass = vue.ref("max-w-screen-sm");
11595
11627
  const props = __props;
11596
11628
  const emit = __emit;
11597
11629
  const instance = vue.getCurrentInstance();
11598
11630
  const internalCompletedTo = vue.ref(0);
11599
11631
  const internalMaxStep = vue.ref(0);
11632
+ const wizardData = vue.ref({});
11633
+ const validatedRouteNames = vue.ref({});
11600
11634
  const router = vue.computed(() => {
11601
11635
  try {
11602
11636
  return instance?.appContext.config.globalProperties.$router;
@@ -11686,29 +11720,50 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
11686
11720
  }
11687
11721
  return classes.join(" ");
11688
11722
  };
11689
- const isStepDisabled = (step) => {
11690
- const routeDisabled = props.routes[step]?.disabled === true;
11691
- const completionDisabled = effectiveCompletedTo.value < step - 1;
11692
- const maxStepDisabled = step > internalMaxStep.value;
11693
- return routeDisabled || completionDisabled || maxStepDisabled;
11723
+ const isRouteValidated = (route) => {
11724
+ if (!route) return false;
11725
+ return validatedRouteNames.value[route.routeName] === true;
11726
+ };
11727
+ const canGoToStep = (from, to) => {
11728
+ const toRoute = props.routes[to];
11729
+ if (!toRoute) return false;
11730
+ if (toRoute.disabled === true) return false;
11731
+ if (to === from) return false;
11732
+ if (to < from) return true;
11733
+ const anyValidated = Object.keys(validatedRouteNames.value).length > 0;
11734
+ if (!anyValidated) return false;
11735
+ return isRouteValidated(toRoute);
11736
+ };
11737
+ const validateStep = (routeName2) => {
11738
+ if (!routeName2) return;
11739
+ validatedRouteNames.value = {
11740
+ ...validatedRouteNames.value,
11741
+ [routeName2]: true
11742
+ };
11743
+ };
11744
+ const setWizardData = (patch) => {
11745
+ wizardData.value = {
11746
+ ...wizardData.value,
11747
+ ...patch
11748
+ };
11694
11749
  };
11695
11750
  const goToStep = (step) => {
11696
- if (isStepDisabled(step)) return;
11751
+ const from = currentStepIndex.value;
11697
11752
  const route = props.routes[step];
11698
11753
  if (!route) return;
11699
- if (router.value) {
11700
- if (route.routeName) {
11701
- router.value.push({
11702
- name: route.routeName,
11703
- params: route.params,
11704
- query: route.query
11705
- });
11706
- } else if (route.to) {
11707
- router.value.push({
11708
- path: route.to,
11709
- query: route.query
11710
- });
11711
- }
11754
+ if (!router.value) return;
11755
+ if (!canGoToStep(from, step)) return;
11756
+ if (route.routeName) {
11757
+ router.value.push({
11758
+ name: route.routeName,
11759
+ params: route.params,
11760
+ query: route.query
11761
+ });
11762
+ } else if (route.to) {
11763
+ router.value.push({
11764
+ path: route.to,
11765
+ query: route.query
11766
+ });
11712
11767
  }
11713
11768
  emit("go", { index: step, route });
11714
11769
  };
@@ -11724,63 +11779,102 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
11724
11779
  goToStep(prev);
11725
11780
  }
11726
11781
  };
11782
+ const setHeading = (heading) => {
11783
+ mainHeading.value = heading;
11784
+ };
11785
+ const setLead = (lead) => {
11786
+ mainLead.value = lead;
11787
+ };
11788
+ const setContentClass = (classes) => {
11789
+ contentClass.value = classes;
11790
+ };
11727
11791
  __expose({
11728
11792
  goToStep,
11729
11793
  nextStep,
11730
11794
  previousStep,
11731
11795
  currentStep: currentStepIndex,
11732
11796
  completedTo: internalCompletedTo,
11733
- maxStep: internalMaxStep
11797
+ maxStep: internalMaxStep,
11798
+ wizardData,
11799
+ setWizardData,
11800
+ validateStep,
11801
+ setHeading,
11802
+ setLead,
11803
+ setContentClass
11734
11804
  });
11735
11805
  return (_ctx, _cache) => {
11736
11806
  return vue.openBlock(), vue.createElementBlock("div", vue.normalizeProps(vue.guardReactiveProps(rootAttrs.value)), [
11737
11807
  !shouldHideEntireSteps.value ? (vue.openBlock(), vue.createElementBlock("nav", {
11738
11808
  key: 0,
11739
- class: "max-w-[480px] mx-auto relative",
11809
+ class: "max-w-[480px] mx-auto",
11740
11810
  style: vue.normalizeStyle(stepWidthStyle.value)
11741
11811
  }, [
11742
- vue.createElementVNode("span", _hoisted_1$4, [
11743
- vue.createElementVNode("span", {
11744
- class: "block h-full max-w-full bg-blue-600",
11745
- style: vue.normalizeStyle({ width: progressWidth.value })
11746
- }, null, 4)
11812
+ vue.createElementVNode("header", _hoisted_1$4, [
11813
+ vue.createElementVNode("h1", {
11814
+ ref: "mainHeader",
11815
+ tabindex: "-1"
11816
+ }, vue.toDisplayString(mainHeading.value), 513),
11817
+ vue.createVNode(_sfc_main$b, null, {
11818
+ default: vue.withCtx(() => [
11819
+ vue.createElementVNode("p", _hoisted_2$3, vue.toDisplayString(mainLead.value), 1)
11820
+ ]),
11821
+ _: 1
11822
+ })
11747
11823
  ]),
11748
- vue.createElementVNode("div", _hoisted_2$3, [
11749
- vue.createElementVNode("ol", _hoisted_3$3, [
11750
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleStepEntries.value, (entry) => {
11751
- return vue.openBlock(), vue.createElementBlock("li", {
11752
- class: "flex flex-col justify-center items-center mb-0",
11753
- key: entry.route.id
11754
- }, [
11755
- vue.createElementVNode("button", {
11756
- type: "button",
11757
- class: vue.normalizeClass(["flex flex-col items-center", { "cursor-not-allowed": isStepDisabled(entry.index) }]),
11758
- onClick: ($event) => __props.disableStepJump ? null : goToStep(entry.index),
11759
- disabled: isStepDisabled(entry.index)
11824
+ vue.createElementVNode("div", _hoisted_3$3, [
11825
+ vue.createElementVNode("span", _hoisted_4$3, [
11826
+ vue.createElementVNode("span", {
11827
+ class: "block h-full max-w-full bg-blue-600",
11828
+ style: vue.normalizeStyle({ width: progressWidth.value })
11829
+ }, null, 4)
11830
+ ]),
11831
+ vue.createElementVNode("div", _hoisted_5$3, [
11832
+ vue.createElementVNode("ol", _hoisted_6$1, [
11833
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(visibleStepEntries.value, (entry) => {
11834
+ return vue.openBlock(), vue.createElementBlock("li", {
11835
+ class: "flex flex-col justify-center items-center mb-0",
11836
+ key: entry.route.id
11760
11837
  }, [
11761
- vue.createElementVNode("span", {
11762
- class: vue.normalizeClass(["relative flex flex-col items-center text-blue-600 font-bold justify-center transition-all duration-200 ease-in-out mb-2 rounded-full w-[44px] h-[44px] bg-white-solid", setStepClasses(entry.index)])
11838
+ vue.createElementVNode("button", {
11839
+ type: "button",
11840
+ class: vue.normalizeClass(["flex flex-col items-center", { "cursor-not-allowed": !canGoToStep(currentStepIndex.value, entry.index) }]),
11841
+ onClick: ($event) => __props.disableStepJump ? null : goToStep(entry.index),
11842
+ disabled: !canGoToStep(currentStepIndex.value, entry.index)
11763
11843
  }, [
11764
- entry.index >= effectiveCompletedTo.value + 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$3, vue.toDisplayString(entry.index + 1), 1)) : (vue.openBlock(), vue.createBlock(_sfc_main$E, {
11765
- key: 1,
11766
- name: "checkmark",
11767
- size: 24
11768
- }))
11769
- ], 2),
11770
- vue.createElementVNode("span", _hoisted_6$1, vue.toDisplayString(entry.route.name), 1)
11771
- ], 10, _hoisted_4$3)
11772
- ]);
11773
- }), 128))
11844
+ vue.createElementVNode("span", {
11845
+ class: vue.normalizeClass(["relative flex flex-col items-center text-blue-600 font-bold justify-center transition-all duration-200 ease-in-out mb-2 rounded-full w-[44px] h-[44px] bg-white-solid", setStepClasses(entry.index)])
11846
+ }, [
11847
+ entry.index >= effectiveCompletedTo.value + 1 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(entry.index + 1), 1)) : (vue.openBlock(), vue.createBlock(_sfc_main$E, {
11848
+ key: 1,
11849
+ name: "checkmark",
11850
+ size: 24
11851
+ }))
11852
+ ], 2),
11853
+ vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(entry.route.name), 1)
11854
+ ], 10, _hoisted_7$1)
11855
+ ]);
11856
+ }), 128))
11857
+ ])
11774
11858
  ])
11775
11859
  ])
11776
11860
  ], 4)) : vue.createCommentVNode("", true),
11777
- vue.renderSlot(_ctx.$slots, "default", {
11778
- currentStepIndex: currentStepIndex.value,
11779
- currentRoute: currentRoute.value,
11780
- goToStep,
11781
- nextStep,
11782
- previousStep
11783
- })
11861
+ vue.createElementVNode("div", {
11862
+ class: vue.normalizeClass([contentClass.value, "mx-auto"])
11863
+ }, [
11864
+ vue.renderSlot(_ctx.$slots, "default", {
11865
+ currentStepIndex: currentStepIndex.value,
11866
+ currentRoute: currentRoute.value,
11867
+ goToStep,
11868
+ nextStep,
11869
+ previousStep,
11870
+ wizardData: wizardData.value,
11871
+ setWizardData,
11872
+ validateStep,
11873
+ setHeading,
11874
+ setLead,
11875
+ setContentClass
11876
+ })
11877
+ ], 2)
11784
11878
  ], 16);
11785
11879
  };
11786
11880
  }
@@ -11802,7 +11896,7 @@ const _hoisted_7 = {
11802
11896
  key: 2,
11803
11897
  class: "text-red-600 font-bold mt-1"
11804
11898
  };
11805
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
11899
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
11806
11900
  ...{
11807
11901
  inheritAttrs: false
11808
11902
  },
@@ -11940,7 +12034,7 @@ const _hoisted_5$1 = {
11940
12034
  key: 2,
11941
12035
  class: "text-red-600 font-bold mt-1"
11942
12036
  };
11943
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
12037
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
11944
12038
  ...{
11945
12039
  inheritAttrs: false
11946
12040
  },
@@ -12066,7 +12160,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
12066
12160
  };
12067
12161
  }
12068
12162
  });
12069
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
12163
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
12070
12164
  __name: "FdsTable",
12071
12165
  props: {
12072
12166
  bordered: { type: Boolean, default: false },
@@ -12099,7 +12193,7 @@ const _hoisted_2 = { key: 0 };
12099
12193
  const _hoisted_3 = { key: 1 };
12100
12194
  const _hoisted_4 = { key: 0 };
12101
12195
  const _hoisted_5 = { key: 1 };
12102
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
12196
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
12103
12197
  __name: "FdsTableHead",
12104
12198
  props: {
12105
12199
  heading: { default: void 0 },
@@ -12160,7 +12254,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
12160
12254
  };
12161
12255
  }
12162
12256
  });
12163
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
12257
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
12164
12258
  ...{
12165
12259
  inheritAttrs: false
12166
12260
  },
@@ -12202,7 +12296,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
12202
12296
  };
12203
12297
  }
12204
12298
  });
12205
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
12299
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
12206
12300
  ...{
12207
12301
  inheritAttrs: false
12208
12302
  },
@@ -12244,7 +12338,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
12244
12338
  };
12245
12339
  }
12246
12340
  });
12247
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
12341
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
12248
12342
  ...{
12249
12343
  inheritAttrs: false
12250
12344
  },
@@ -12286,7 +12380,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
12286
12380
  };
12287
12381
  }
12288
12382
  });
12289
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
12383
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
12290
12384
  ...{
12291
12385
  inheritAttrs: false
12292
12386
  },
@@ -12309,7 +12403,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
12309
12403
  };
12310
12404
  }
12311
12405
  });
12312
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
12406
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
12313
12407
  ...{
12314
12408
  inheritAttrs: false
12315
12409
  },
@@ -12334,31 +12428,6 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
12334
12428
  };
12335
12429
  }
12336
12430
  });
12337
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
12338
- ...{
12339
- inheritAttrs: false
12340
- },
12341
- __name: "FdsLead",
12342
- props: {
12343
- dataTestid: { default: void 0 }
12344
- },
12345
- setup(__props) {
12346
- const props = __props;
12347
- const attrs = vue.useAttrs();
12348
- const rootAttrs = vue.computed(() => {
12349
- const result = { ...attrs };
12350
- if (props.dataTestid) {
12351
- result["data-testid"] = props.dataTestid;
12352
- }
12353
- return result;
12354
- });
12355
- return (_ctx, _cache) => {
12356
- return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: "inline-block font-light text-lg" }, rootAttrs.value), [
12357
- vue.renderSlot(_ctx.$slots, "default")
12358
- ], 16);
12359
- };
12360
- }
12361
- });
12362
12431
  const _hoisted_1 = {
12363
12432
  key: 1,
12364
12433
  class: "heading font-heading text-xl m-0"
@@ -12488,10 +12557,10 @@ const FdsVueCorePlugin = {
12488
12557
  app.component("FdsSpinner", _sfc_main$w);
12489
12558
  app.component("FdsRadio", _sfc_main$g);
12490
12559
  app.component("FdsCheckbox", _sfc_main$h);
12491
- app.component("FdsTextarea", _sfc_main$9);
12492
- app.component("FdsSelect", _sfc_main$a);
12493
- app.component("FdsTable", _sfc_main$8);
12494
- app.component("FdsTableHead", _sfc_main$7);
12560
+ app.component("FdsTextarea", _sfc_main$8);
12561
+ app.component("FdsSelect", _sfc_main$9);
12562
+ app.component("FdsTable", _sfc_main$7);
12563
+ app.component("FdsTableHead", _sfc_main$6);
12495
12564
  app.component("FdsInput", _sfc_main$o);
12496
12565
  app.component("FdsBlockContent", _sfc_main$B);
12497
12566
  app.component("FdsBlockInfo", _sfc_main$y);
@@ -12505,13 +12574,13 @@ const FdsVueCorePlugin = {
12505
12574
  app.component("FdsPagination", _sfc_main$j);
12506
12575
  app.component("FdsSearchSelect", _sfc_main$i);
12507
12576
  app.component("FdsTruncatedText", _sfc_main$c);
12508
- app.component("FdsWizard", _sfc_main$b);
12509
- app.component("FdsH1", _sfc_main$6);
12510
- app.component("FdsH2", _sfc_main$5);
12511
- app.component("FdsH3", _sfc_main$4);
12512
- app.component("FdsHr", _sfc_main$3);
12513
- app.component("FdsLabel", _sfc_main$2);
12514
- app.component("FdsLead", _sfc_main$1);
12577
+ app.component("FdsWizard", _sfc_main$a);
12578
+ app.component("FdsH1", _sfc_main$5);
12579
+ app.component("FdsH2", _sfc_main$4);
12580
+ app.component("FdsH3", _sfc_main$3);
12581
+ app.component("FdsHr", _sfc_main$2);
12582
+ app.component("FdsLabel", _sfc_main$1);
12583
+ app.component("FdsLead", _sfc_main$b);
12515
12584
  app.component("FdsMeta", _sfc_main$e);
12516
12585
  app.component("FdsListHeading", _sfc_main);
12517
12586
  }
@@ -12529,31 +12598,31 @@ exports.FdsButtonPrimary = _sfc_main$s;
12529
12598
  exports.FdsButtonSecondary = _sfc_main$r;
12530
12599
  exports.FdsCheckbox = _sfc_main$h;
12531
12600
  exports.FdsDevMode = _sfc_main$k;
12532
- exports.FdsH1 = _sfc_main$6;
12533
- exports.FdsH2 = _sfc_main$5;
12534
- exports.FdsH3 = _sfc_main$4;
12535
- exports.FdsHr = _sfc_main$3;
12601
+ exports.FdsH1 = _sfc_main$5;
12602
+ exports.FdsH2 = _sfc_main$4;
12603
+ exports.FdsH3 = _sfc_main$3;
12604
+ exports.FdsHr = _sfc_main$2;
12536
12605
  exports.FdsIcon = _sfc_main$E;
12537
12606
  exports.FdsInput = _sfc_main$o;
12538
- exports.FdsLabel = _sfc_main$2;
12539
- exports.FdsLead = _sfc_main$1;
12607
+ exports.FdsLabel = _sfc_main$1;
12608
+ exports.FdsLead = _sfc_main$b;
12540
12609
  exports.FdsListHeading = _sfc_main;
12541
12610
  exports.FdsMeta = _sfc_main$e;
12542
12611
  exports.FdsModal = _sfc_main$p;
12543
12612
  exports.FdsPagination = _sfc_main$j;
12544
12613
  exports.FdsRadio = _sfc_main$g;
12545
12614
  exports.FdsSearchSelect = _sfc_main$i;
12546
- exports.FdsSelect = _sfc_main$a;
12615
+ exports.FdsSelect = _sfc_main$9;
12547
12616
  exports.FdsSpinner = _sfc_main$w;
12548
12617
  exports.FdsSticker = _sfc_main$A;
12549
- exports.FdsTable = _sfc_main$8;
12550
- exports.FdsTableHead = _sfc_main$7;
12618
+ exports.FdsTable = _sfc_main$7;
12619
+ exports.FdsTableHead = _sfc_main$6;
12551
12620
  exports.FdsTabs = _sfc_main$n;
12552
12621
  exports.FdsTabsItem = _sfc_main$m;
12553
- exports.FdsTextarea = _sfc_main$9;
12622
+ exports.FdsTextarea = _sfc_main$8;
12554
12623
  exports.FdsTreeView = _sfc_main$d;
12555
12624
  exports.FdsTruncatedText = _sfc_main$c;
12556
- exports.FdsWizard = _sfc_main$b;
12625
+ exports.FdsWizard = _sfc_main$a;
12557
12626
  exports.bankid = bankid;
12558
12627
  exports.default = FdsVueCorePlugin;
12559
12628
  exports.isPidString = isPidString;