@salesql/sql_components_vue3 3.10.0 → 3.10.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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Writes to the system clipboard. `copy` resolves `true` only once the text is on the
3
+ * clipboard and the component is still mounted; it never rejects. Internal.
4
+ */
5
+ export declare function useClipboardCopy(): {
6
+ copy: (text: string) => Promise<boolean>;
7
+ };
@@ -0,0 +1,9 @@
1
+ import { type CSSProperties, type Ref } from 'vue';
2
+ export interface TeleportAnchorOptions {
3
+ onTriggerHidden?: () => void;
4
+ }
5
+ export declare function useTeleportAnchor(rootRef: Ref<HTMLElement | null>, { onTriggerHidden }?: TeleportAnchorOptions): {
6
+ anchorStyle: import("vue").ComputedRef<CSSProperties>;
7
+ track: () => void;
8
+ untrack: () => void;
9
+ };
@@ -13,11 +13,12 @@ export type ClampSide = 'top' | 'bottom' | 'left' | 'right' | 'over';
13
13
  */
14
14
  export type ClampPlacement = ClampSide | `${ClampSide}-start` | `${ClampSide}-end`;
15
15
  /**
16
- * Turns the main-axis FLIP on for `useViewportClamp` (DsPopover only — see the module
17
- * header). `trigger` is the element the floating panel is placed against: DsPopover's root,
18
- * whose rect a `teleported` anchor mirrors, so this is the same ref either way. `gap` mirrors
19
- * the CSS gap between panel and trigger, so the free-space math matches what the CSS
20
- * actually renders (DsPopover's `PANEL_GAP`, next to the `calc(100% + 6px)` it repeats).
16
+ * Turns the main-axis FLIP on for `useViewportClamp` (DsPopover and DsTooltip pass it — see
17
+ * the module header). `trigger` is the element the floating panel is placed against: the
18
+ * component's root, whose rect a `teleported` anchor mirrors, so this is the same ref either
19
+ * way. `gap` mirrors the CSS gap between panel and trigger, so the free-space math matches
20
+ * what the CSS actually renders (`PANEL_GAP` in DsPopover, `BUBBLE_GAP` in DsTooltip, each
21
+ * next to the `calc(100% + 6px)` it repeats).
21
22
  */
22
23
  export interface ClampFlipOptions {
23
24
  trigger: Ref<HTMLElement | null>;
@@ -35,8 +35,8 @@ export declare function contactTypeIcon(type: DsContactType, kind?: DsContactKin
35
35
  *
36
36
  * legacy view model (§3.8) typed `contact_data` block (§3.11)
37
37
  * id: item.id item.uid
38
- * value: item.value item.is_revealed ? item.value : item.preview
39
- * masked: item.isMasked !item.is_revealed
38
+ * value: item.value masked ? item.preview : item.value
39
+ * masked: item.isMasked !item.is_revealed || item.value === null
40
40
  * valid: item.status === 'valid' item.verification === 'valid'
41
41
  * primary: item.isPrimary item.is_primary
42
42
  *
@@ -98,8 +98,10 @@ export declare function overflowFromGroupSize(groupSize: number): number;
98
98
  * signal). No `@` means the server masked the whole thing.
99
99
  * - Phone: every run of mask glyphs is a redaction; a SINGLE dot is a real separator
100
100
  * (`+1.415.555.0100`), so it stays visible. No prefix is assumed: `8008...` was
101
- * measured with no `+` at all.
101
+ * measured with no `+` at all. A hyphen touching a redaction (`•-•`) is the server's
102
+ * grouping and comes out as a space; hyphens between visible digits are kept.
102
103
  *
103
- * Concatenating the segments always yields the input — nothing is re-grouped.
104
+ * Concatenating the segments yields the input — nothing is re-grouped — except for that
105
+ * phone hyphen.
104
106
  */
105
107
  export declare function splitMaskedValue(value: string, kind: DsContactKind): DsMaskedSegment[];