@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.
- package/dist/composables/useClipboardCopy.d.ts +7 -0
- package/dist/composables/useTeleportAnchor.d.ts +9 -0
- package/dist/composables/useViewportClamp.d.ts +6 -5
- package/dist/constants/contact-data.d.ts +6 -4
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +2089 -2071
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +1 -1
- package/dist/ui/DsDrawer/DsDrawer.vue.d.ts +2 -2
- package/dist/ui/DsMenuItem/DsMenuItem.vue.d.ts +1 -1
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +2 -2
- package/dist/ui/DsTooltip/DsTooltip.vue.d.ts +1 -1
- package/llms-full.txt +17 -14
- package/package.json +1 -1
|
@@ -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
|
|
17
|
-
* header). `trigger` is the element the floating panel is placed against:
|
|
18
|
-
* whose rect a `teleported` anchor mirrors, so this is the same ref either
|
|
19
|
-
* the CSS gap between panel and trigger, so the free-space math matches
|
|
20
|
-
* actually renders (
|
|
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
|
|
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
|
|
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[];
|