@fkui/vue 5.46.0 → 5.46.2

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.
@@ -6884,6 +6884,9 @@ const _sfc_main$X = vue.defineComponent({
6884
6884
  },
6885
6885
  errorStyle() {
6886
6886
  return `--i-popup-error-offset: ${this.arrowOffset}px`;
6887
+ },
6888
+ teleportTarget() {
6889
+ return config.teleportTarget;
6887
6890
  }
6888
6891
  },
6889
6892
  watch: {
@@ -6976,7 +6979,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6976
6979
  const _component_f_icon = vue.resolveComponent("f-icon");
6977
6980
  return _ctx.isOpen ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
6978
6981
  key: 0,
6979
- to: "body",
6982
+ to: _ctx.teleportTarget,
6980
6983
  disabled: _ctx.teleportDisabled
6981
6984
  }, [vue.createElementVNode("div", {
6982
6985
  ref: "popup",
@@ -6994,7 +6997,7 @@ function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
6994
6997
  }, [vue.createVNode(_component_f_icon, {
6995
6998
  name: "close",
6996
6999
  class: "button__icon"
6997
- })])], 6)], 512)], 2)], 8, ["disabled"])) : vue.createCommentVNode("", true);
7000
+ })])], 6)], 512)], 2)], 8, ["to", "disabled"])) : vue.createCommentVNode("", true);
6998
7001
  }
6999
7002
  const IPopupError = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$K]]);
7000
7003
  function numItems(itemHeight, availableHeight, verticalSpacing) {
@@ -17260,10 +17263,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
17260
17263
  class: "wizard-step-body",
17261
17264
  onSubmit: _ctx.onSubmit
17262
17265
  }, {
17263
- "error-message": vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "error-message", vue.normalizeProps(vue.guardReactiveProps({
17264
- stepNumber: _ctx.stepNumber,
17265
- totalSteps: _ctx.totalSteps
17266
- })), () => [vue.createTextVNode(vue.toDisplayString(_ctx.$t("fkui.wizard-step.errorlist.title", "Oj, du har glömt att fylla i något. Gå till:")), 1)])]),
17266
+ "error-message": vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "error-message", {}, () => [vue.createTextVNode(vue.toDisplayString(_ctx.$t("fkui.wizard-step.errorlist.title", "Oj, du har glömt att fylla i något. Gå till:")), 1)])]),
17267
17267
  default: vue.withCtx(() => [vue.renderSlot(_ctx.$slots, "default"), _cache[14] || (_cache[14] = vue.createTextVNode()), vue.createElementVNode("div", _hoisted_10, [vue.createElementVNode("button", {
17268
17268
  "data-test": "submit-button",
17269
17269
  "data-disabled": _ctx.ignoreClick ? "true" : "false",
@@ -17281,7 +17281,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
17281
17281
  type: "button",
17282
17282
  class: "button button--secondary button-group__item button--large",
17283
17283
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onCancel && _ctx.onCancel(...args))
17284
- }, [vue.renderSlot(_ctx.$slots, "cancel-button-text", {}, () => [vue.createTextVNode(vue.toDisplayString(_ctx.$t("fkui.wizard-step.button.cancel.text", "Avbryt")), 1)])])])]),
17284
+ }, [vue.renderSlot(_ctx.$slots, "cancel-button-text", vue.normalizeProps(vue.guardReactiveProps({
17285
+ stepNumber: _ctx.stepNumber,
17286
+ totalSteps: _ctx.totalSteps
17287
+ })), () => [vue.createTextVNode(vue.toDisplayString(_ctx.$t("fkui.wizard-step.button.cancel.text", "Avbryt")), 1)])])])]),
17285
17288
  _: 3
17286
17289
  }, 8, ["id", "before-submit", "before-validation", "use-error-list", "onSubmit"])]),
17287
17290
  _: 3