fds-vue-core 8.5.2 → 8.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,10 @@ declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: Readonly<{
6
6
  default?: Slot;
7
+ 'drawer-footer'?: Slot;
7
8
  }> & {
8
9
  default?: Slot;
10
+ 'drawer-footer'?: Slot;
9
11
  };
10
12
  refs: {
11
13
  drawerInnerRef: HTMLDivElement;
@@ -11624,6 +11624,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
11624
11624
  const drawerInnerRef = vue.ref(null);
11625
11625
  const previouslyFocusedElement = vue.ref(null);
11626
11626
  const { activate: activateFocusTrap, deactivate: deactivateFocusTrap } = useFocusTrap();
11627
+ const hasFooterSlot = useHasSlot("drawer-footer");
11627
11628
  const { t } = useFdsI18n();
11628
11629
  const drawerOuterClasses = vue.computed(() => ["fixed top-0 left-0 w-full h-full z-100"]);
11629
11630
  const drawerInnerClasses = vue.computed(() => [
@@ -11640,7 +11641,15 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
11640
11641
  }
11641
11642
  ]);
11642
11643
  const headerClasses = vue.computed(() => ["shrink-0 flex justify-between bg-white p-6", "rounded-t-lg md:rounded-none"]);
11643
- const contentClasses = vue.computed(() => ["flex-1 min-h-0 overflow-auto px-6 pb-6 mb-0-last-child"]);
11644
+ const contentClasses = vue.computed(() => [
11645
+ "flex-1 min-h-0 overflow-auto px-6 mb-0-last-child",
11646
+ hasFooterSlot.value ? "pb-4" : "pb-6"
11647
+ ]);
11648
+ const footerClasses = vue.computed(() => [
11649
+ "shrink-0 flex flex-col gap-4 px-6 pb-6 pt-4 bg-white z-[2]",
11650
+ "sm:flex-row sm:justify-end",
11651
+ "shadow-[0px_-8px_16px_0px_rgba(255,255,255,0.59)]"
11652
+ ]);
11644
11653
  const headerTitleClasses = vue.computed(() => ["m-0"]);
11645
11654
  const iconName = vue.computed(() => {
11646
11655
  if (props.info === "valid") return "check";
@@ -11775,7 +11784,13 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
11775
11784
  class: vue.normalizeClass(contentClasses.value)
11776
11785
  }, [
11777
11786
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
11778
- ], 2)
11787
+ ], 2),
11788
+ vue.unref(hasFooterSlot) ? (vue.openBlock(), vue.createElementBlock("div", {
11789
+ key: 0,
11790
+ class: vue.normalizeClass(footerClasses.value)
11791
+ }, [
11792
+ vue.renderSlot(_ctx.$slots, "drawer-footer", {}, void 0, true)
11793
+ ], 2)) : vue.createCommentVNode("", true)
11779
11794
  ], 16)
11780
11795
  ], 2)) : vue.createCommentVNode("", true)
11781
11796
  ]),
@@ -11792,7 +11807,7 @@ const _export_sfc = (sfc, props) => {
11792
11807
  }
11793
11808
  return target;
11794
11809
  };
11795
- const FdsDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-afc45d1a"]]);
11810
+ const FdsDrawer = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-d72556a2"]]);
11796
11811
  function debounce(fn, delayMs) {
11797
11812
  let timeoutId;
11798
11813
  const debounced = (...args) => {