@salesql/sql_components_vue3 3.22.0 → 3.23.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.
@@ -3,6 +3,10 @@ import { type Ref } from 'vue';
3
3
  export declare const VIEWPORT_SHIFT_VAR = "--ds-overlay-shift";
4
4
  /** Custom property the panel CSS reads to cap its width to the space a boundary leaves. */
5
5
  export declare const VIEWPORT_MAX_WIDTH_VAR = "--ds-overlay-max-width";
6
+ /** Custom property the panel CSS reads to cap its height to the room left on its side. */
7
+ export declare const VIEWPORT_MAX_HEIGHT_VAR = "--ds-overlay-max-height";
8
+ /** How far an `over-*` panel overlaps its trigger, in px — mirrors the CSS `top: -8px` in DsPopover. */
9
+ export declare const OVER_OVERLAP = 8;
6
10
  /** Gap kept between the floating element and the viewport edge, in px. */
7
11
  export declare const VIEWPORT_MARGIN = 8;
8
12
  /** The side a floating element opens on. `over` (DsPopover) covers the trigger and aligns on X. */
@@ -25,6 +29,11 @@ export type ClampPlacement = ClampSide | `${ClampSide}-start` | `${ClampSide}-en
25
29
  export interface ClampFlipOptions {
26
30
  trigger: Ref<HTMLElement | null>;
27
31
  gap: number;
32
+ /**
33
+ * Also cap the panel's height to the room on its side, re-measure when its own size changes,
34
+ * and flip `over-*`. DsPopover only — see FIT HEIGHT in the module header. Default `false`.
35
+ */
36
+ fitHeight?: boolean;
28
37
  }
29
38
  /**
30
39
  * A second box the floating element must stay inside, on top of the viewport: an element,
@@ -35,6 +44,8 @@ export declare function useViewportClamp(elRef: Ref<HTMLElement | null>, placeme
35
44
  shift: Ref<number, number>;
36
45
  shiftStyle: import("vue").ComputedRef<Record<string, string> | null>;
37
46
  resolvedPlacement: import("vue").ComputedRef<ClampPlacement>;
47
+ flipped: Ref<boolean, boolean>;
48
+ capped: import("vue").ComputedRef<boolean>;
38
49
  measure: () => Promise<void>;
39
50
  activate: () => void;
40
51
  deactivate: () => void;