@salesql/sql_components_vue3 3.1.0 → 3.3.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.
- package/README.md +46 -0
- package/dist/composables/useViewportClamp.d.ts +9 -2
- package/dist/constants/contact-data.d.ts +100 -0
- package/dist/constants/events.d.ts +8 -0
- package/dist/constants/pickers.d.ts +36 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.es.js +2372 -1354
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/stories/StoryStage.vue.d.ts +12 -0
- package/dist/ui/DsAddToSequence/DsAddToSequence.types.d.ts +35 -0
- package/dist/ui/DsAddToSequence/DsAddToSequence.vue.d.ts +146 -0
- package/dist/ui/DsAddToSequence/index.d.ts +2 -0
- package/dist/ui/DsButton/DsButton.types.d.ts +1 -0
- package/dist/ui/DsButton/DsButton.vue.d.ts +3 -0
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +45 -0
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +203 -0
- package/dist/ui/DsContactCell/index.d.ts +2 -0
- package/dist/ui/DsContactList/DsContactList.types.d.ts +26 -0
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +139 -0
- package/dist/ui/DsContactList/index.d.ts +2 -0
- package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.types.d.ts +13 -0
- package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.vue.d.ts +41 -0
- package/dist/ui/DsDeliverabilityBadge/index.d.ts +2 -0
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +1 -1
- package/dist/ui/DsMaskedValue/DsMaskedValue.types.d.ts +9 -0
- package/dist/ui/DsMaskedValue/DsMaskedValue.vue.d.ts +32 -0
- package/dist/ui/DsMaskedValue/index.d.ts +2 -0
- package/dist/ui/DsMoreCountChip/DsMoreCountChip.types.d.ts +8 -0
- package/dist/ui/DsMoreCountChip/DsMoreCountChip.vue.d.ts +31 -0
- package/dist/ui/DsMoreCountChip/index.d.ts +2 -0
- package/dist/ui/DsPill/DsPill.types.d.ts +1 -1
- package/dist/ui/DsPopover/DsPopover.types.d.ts +35 -1
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +23 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +135 -0
- package/dist/ui/DsSavedButton/index.d.ts +2 -0
- package/dist/ui/DsSelect/DsSelect.types.d.ts +1 -1
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +25 -0
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +130 -0
- package/dist/ui/DsTagPicker/index.d.ts +2 -0
- package/llms-full.txt +568 -15
- package/llms.txt +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsPopoverPlacement } from '@shared/ui/DsPopover';
|
|
3
|
+
import { type DsContactItem, type DsContactKind, type DsContactSection, type DsContactType } from '@shared/constants/contact-data';
|
|
4
|
+
declare var __VLS_31: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
actions?: (props: typeof __VLS_31) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
items: {
|
|
10
|
+
type: PropType<DsContactItem[]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
count: {
|
|
14
|
+
type: PropType<number | null>;
|
|
15
|
+
default: null;
|
|
16
|
+
};
|
|
17
|
+
sections: {
|
|
18
|
+
type: PropType<DsContactSection[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
kind: {
|
|
22
|
+
type: PropType<DsContactKind>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
type: {
|
|
26
|
+
type: PropType<DsContactType | "">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
badgeLabel: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
badgeTooltip: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
moreLabel: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
emptyLabel: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
showRate: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
disabled: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
placement: {
|
|
58
|
+
type: PropType<DsPopoverPlacement>;
|
|
59
|
+
default: "over-start";
|
|
60
|
+
};
|
|
61
|
+
offset: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
popoverWidth: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
leaveDelay: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
copyLabel: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
copiedLabel: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
correctLabel: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
incorrectLabel: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
copy: (...args: any[]) => void;
|
|
91
|
+
correct: (...args: any[]) => void;
|
|
92
|
+
incorrect: (...args: any[]) => void;
|
|
93
|
+
"update:open": (...args: any[]) => void;
|
|
94
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
95
|
+
items: {
|
|
96
|
+
type: PropType<DsContactItem[]>;
|
|
97
|
+
required: true;
|
|
98
|
+
};
|
|
99
|
+
count: {
|
|
100
|
+
type: PropType<number | null>;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
sections: {
|
|
104
|
+
type: PropType<DsContactSection[]>;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
kind: {
|
|
108
|
+
type: PropType<DsContactKind>;
|
|
109
|
+
required: true;
|
|
110
|
+
};
|
|
111
|
+
type: {
|
|
112
|
+
type: PropType<DsContactType | "">;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
label: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
badgeLabel: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
badgeTooltip: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
required: true;
|
|
126
|
+
};
|
|
127
|
+
moreLabel: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
emptyLabel: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
showRate: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
placement: {
|
|
144
|
+
type: PropType<DsPopoverPlacement>;
|
|
145
|
+
default: "over-start";
|
|
146
|
+
};
|
|
147
|
+
offset: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
popoverWidth: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
leaveDelay: {
|
|
156
|
+
type: NumberConstructor;
|
|
157
|
+
default: number;
|
|
158
|
+
};
|
|
159
|
+
copyLabel: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
copiedLabel: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
correctLabel: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
incorrectLabel: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
}>> & Readonly<{
|
|
176
|
+
onCopy?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
onCorrect?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
onIncorrect?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
180
|
+
}>, {
|
|
181
|
+
type: "" | DsContactType;
|
|
182
|
+
disabled: boolean;
|
|
183
|
+
placement: DsPopoverPlacement;
|
|
184
|
+
showRate: boolean;
|
|
185
|
+
copyLabel: string;
|
|
186
|
+
copiedLabel: string;
|
|
187
|
+
correctLabel: string;
|
|
188
|
+
incorrectLabel: string;
|
|
189
|
+
emptyLabel: string;
|
|
190
|
+
moreLabel: string;
|
|
191
|
+
offset: string;
|
|
192
|
+
sections: DsContactSection[];
|
|
193
|
+
count: number | null;
|
|
194
|
+
popoverWidth: string;
|
|
195
|
+
leaveDelay: number;
|
|
196
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
197
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
198
|
+
export default _default;
|
|
199
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
200
|
+
new (): {
|
|
201
|
+
$slots: S;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DsContactItem, DsContactKind, DsContactSection, DsContactType } from '@shared/constants/contact-data';
|
|
2
|
+
export interface DsContactListProps {
|
|
3
|
+
/** The group's items, primary first, exactly as the view model delivers them. */
|
|
4
|
+
items?: DsContactItem[];
|
|
5
|
+
/** Unified variants: one band per type. When present, `items` is ignored for the rows. */
|
|
6
|
+
sections?: DsContactSection[];
|
|
7
|
+
/** Email or phone — decides the masked split rule and whether a badge may ever render. */
|
|
8
|
+
kind: DsContactKind;
|
|
9
|
+
/** The group's type; sets the left glyph on every row. Omit for no glyph. */
|
|
10
|
+
type?: DsContactType | '';
|
|
11
|
+
/** The variant name shown in the header ("Work emails"). Copy: the app passes it. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** The badge glyph (`A_PLUS_BADGE`) — rendered only on valid emails. */
|
|
14
|
+
badgeLabel: string;
|
|
15
|
+
/** The badge meaning (`A_PLUS_TOOLTIP`). */
|
|
16
|
+
badgeTooltip: string;
|
|
17
|
+
/** Adds the thumbs up / down actions to unmasked rows. */
|
|
18
|
+
showRate?: boolean;
|
|
19
|
+
/** Shown instead of rows when there are none. Omit to render nothing. */
|
|
20
|
+
emptyLabel?: string;
|
|
21
|
+
/** Accessible labels for the icon-only actions (English DS defaults; the app owns i18n). */
|
|
22
|
+
copyLabel?: string;
|
|
23
|
+
copiedLabel?: string;
|
|
24
|
+
correctLabel?: string;
|
|
25
|
+
incorrectLabel?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsContactItem, type DsContactKind, type DsContactSection, type DsContactType } from '@shared/constants/contact-data';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
actions?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
items: {
|
|
9
|
+
type: PropType<DsContactItem[]>;
|
|
10
|
+
default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
sections: {
|
|
13
|
+
type: PropType<DsContactSection[]>;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
kind: {
|
|
17
|
+
type: PropType<DsContactKind>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
type: {
|
|
21
|
+
type: PropType<DsContactType | "">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
title: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
badgeLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
badgeTooltip: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
showRate: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
emptyLabel: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
copyLabel: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
copiedLabel: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
correctLabel: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
incorrectLabel: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
copy: (...args: any[]) => void;
|
|
62
|
+
correct: (...args: any[]) => void;
|
|
63
|
+
incorrect: (...args: any[]) => void;
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
items: {
|
|
66
|
+
type: PropType<DsContactItem[]>;
|
|
67
|
+
default: () => never[];
|
|
68
|
+
};
|
|
69
|
+
sections: {
|
|
70
|
+
type: PropType<DsContactSection[]>;
|
|
71
|
+
default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
kind: {
|
|
74
|
+
type: PropType<DsContactKind>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
type: {
|
|
78
|
+
type: PropType<DsContactType | "">;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
title: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
badgeLabel: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
badgeTooltip: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
showRate: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
emptyLabel: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
copyLabel: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
copiedLabel: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
correctLabel: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
incorrectLabel: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
}>> & Readonly<{
|
|
118
|
+
onCopy?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onCorrect?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onIncorrect?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
}>, {
|
|
122
|
+
type: "" | DsContactType;
|
|
123
|
+
title: string;
|
|
124
|
+
showRate: boolean;
|
|
125
|
+
copyLabel: string;
|
|
126
|
+
copiedLabel: string;
|
|
127
|
+
correctLabel: string;
|
|
128
|
+
incorrectLabel: string;
|
|
129
|
+
emptyLabel: string;
|
|
130
|
+
items: DsContactItem[];
|
|
131
|
+
sections: DsContactSection[];
|
|
132
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
134
|
+
export default _default;
|
|
135
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
136
|
+
new (): {
|
|
137
|
+
$slots: S;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DsTooltipPlacement } from '@shared/ui/DsTooltip';
|
|
2
|
+
export interface DsDeliverabilityBadgeProps {
|
|
3
|
+
/** The glyph text. The app passes the contract's constant (`A_PLUS_BADGE`). */
|
|
4
|
+
label: string;
|
|
5
|
+
/** The meaning, shown on hover/focus and used as the accessible name (`A_PLUS_TOOLTIP`). */
|
|
6
|
+
tooltip: string;
|
|
7
|
+
placement?: DsTooltipPlacement;
|
|
8
|
+
/**
|
|
9
|
+
* Standalone, the glyph is a tab stop (default). Inside an already-focusable trigger
|
|
10
|
+
* — the cell button — pass `false`: nested focusables inside a button are invalid.
|
|
11
|
+
*/
|
|
12
|
+
focusable?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsTooltipPlacement } from '@shared/ui/DsTooltip';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
label: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
tooltip: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
placement: {
|
|
13
|
+
type: PropType<DsTooltipPlacement>;
|
|
14
|
+
default: "top";
|
|
15
|
+
};
|
|
16
|
+
focusable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
label: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
tooltip: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
placement: {
|
|
30
|
+
type: PropType<DsTooltipPlacement>;
|
|
31
|
+
default: "top";
|
|
32
|
+
};
|
|
33
|
+
focusable: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
placement: DsTooltipPlacement;
|
|
39
|
+
focusable: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface DsSelectorItem {
|
|
|
6
6
|
export interface DsItemSelectorButtonProps {
|
|
7
7
|
/** Selected item, or null/undefined for the empty state. */
|
|
8
8
|
item?: DsSelectorItem | null;
|
|
9
|
-
/** Material
|
|
9
|
+
/** Material Symbols ligature name (e.g. `folder`). */
|
|
10
10
|
icon?: string;
|
|
11
11
|
/** Label shown when no item is selected (app owns the wording). */
|
|
12
12
|
emptyTitle?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DsContactKind } from '@shared/constants/contact-data';
|
|
2
|
+
export interface DsMaskedValueProps {
|
|
3
|
+
/** The string to show, exactly as the API sent it — masked preview or full value. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Decides the split rule: local part for emails, glyph runs for phones. */
|
|
6
|
+
kind: DsContactKind;
|
|
7
|
+
/** `true` when `value` is the server's masked form. Off, the value renders as one span. */
|
|
8
|
+
masked?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsContactKind } from '@shared/constants/contact-data';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
kind: {
|
|
9
|
+
type: PropType<DsContactKind>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
masked: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
value: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
kind: {
|
|
22
|
+
type: PropType<DsContactKind>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
masked: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
masked: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DsMoreCountChipProps {
|
|
2
|
+
/** How many items exist beyond the one shown. At 0 or less the chip renders nothing. */
|
|
3
|
+
overflow: number;
|
|
4
|
+
/** Accent state while the cell's popover is open (the cell owns that knowledge). */
|
|
5
|
+
active?: boolean;
|
|
6
|
+
/** Accessible name when `+N` alone is not enough context ("2 more emails"). App wording. */
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
overflow: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
active: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
overflow: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
active: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
label: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
label: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface DsPillProps {
|
|
2
|
-
/** Material
|
|
2
|
+
/** Material Symbols ligature name; when set, renders a trailing icon button. */
|
|
3
3
|
icon?: string;
|
|
4
4
|
/**
|
|
5
5
|
* Free-form CSS color (e.g. a dynamic tag/folder color chosen by the user);
|
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Where the panel opens, as `side` or `side-alignment`.
|
|
3
|
+
*
|
|
4
|
+
* The bare side centres the panel on the trigger; `-start` / `-end` align it to the
|
|
5
|
+
* trigger's leading / trailing edge on the cross axis (left/right for a top or bottom
|
|
6
|
+
* side, top/bottom for a left or right one).
|
|
7
|
+
*
|
|
8
|
+
* The aligned forms are not decoration: the DS company card is
|
|
9
|
+
* `{ position: absolute, top: 'calc(100% + 6px)', left: 0 }`
|
|
10
|
+
* (`prospector/ProspectorRedesignApp.jsx`, `CompanyCell`) — i.e. `bottom-start`.
|
|
11
|
+
* Centring it would move the card off its trigger's edge.
|
|
12
|
+
*
|
|
13
|
+
* `over-start` / `over-end` (SALESQL-3535) cover the trigger instead of sitting beside it:
|
|
14
|
+
* the panel's top lands 8px above the trigger's top, aligned to its leading / trailing edge —
|
|
15
|
+
* the design export's contact-data `TypedCell` (`top: −8`), which the contract (§3.5) pairs
|
|
16
|
+
* with a ¼ `offset` so the leading quarter of a column stays a free hover lane.
|
|
17
|
+
*/
|
|
2
18
|
export declare const DS_POPOVER_PLACEMENTS: {
|
|
3
19
|
readonly TOP: "top";
|
|
20
|
+
readonly TOP_START: "top-start";
|
|
21
|
+
readonly TOP_END: "top-end";
|
|
4
22
|
readonly BOTTOM: "bottom";
|
|
23
|
+
readonly BOTTOM_START: "bottom-start";
|
|
24
|
+
readonly BOTTOM_END: "bottom-end";
|
|
5
25
|
readonly LEFT: "left";
|
|
26
|
+
readonly LEFT_START: "left-start";
|
|
27
|
+
readonly LEFT_END: "left-end";
|
|
6
28
|
readonly RIGHT: "right";
|
|
29
|
+
readonly RIGHT_START: "right-start";
|
|
30
|
+
readonly RIGHT_END: "right-end";
|
|
31
|
+
readonly OVER_START: "over-start";
|
|
32
|
+
readonly OVER_END: "over-end";
|
|
7
33
|
};
|
|
8
34
|
export type DsPopoverPlacement = (typeof DS_POPOVER_PLACEMENTS)[keyof typeof DS_POPOVER_PLACEMENTS];
|
|
9
35
|
export interface DsPopoverProps {
|
|
@@ -17,4 +43,12 @@ export interface DsPopoverProps {
|
|
|
17
43
|
closeOnOutside?: boolean;
|
|
18
44
|
/** Let the trigger slot toggle the panel on click. Off for consumer-driven opening. */
|
|
19
45
|
triggerOnClick?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Moves the panel's anchor along the trigger's cross axis — any CSS length; a percentage
|
|
48
|
+
* resolves against the trigger box (`'25%'` = the contact-data cell rule, contract §3.5).
|
|
49
|
+
* Empty keeps the panel flush with the edge. Additive (SALESQL-3535).
|
|
50
|
+
*/
|
|
51
|
+
offset?: string;
|
|
52
|
+
/** Drop the 8px card padding for content that brings its own rows and dividers. */
|
|
53
|
+
flush?: boolean;
|
|
20
54
|
}
|
|
@@ -28,6 +28,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
28
28
|
type: BooleanConstructor;
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
|
+
offset: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
flush: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
31
39
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
40
|
"update:open": (...args: any[]) => void;
|
|
33
41
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -52,6 +60,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
52
60
|
type: BooleanConstructor;
|
|
53
61
|
default: boolean;
|
|
54
62
|
};
|
|
63
|
+
offset: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
flush: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
55
71
|
}>> & Readonly<{
|
|
56
72
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
57
73
|
}>, {
|
|
@@ -61,6 +77,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
61
77
|
placement: DsPopoverPlacement;
|
|
62
78
|
closeOnOutside: boolean;
|
|
63
79
|
triggerOnClick: boolean;
|
|
80
|
+
offset: string;
|
|
81
|
+
flush: boolean;
|
|
64
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
83
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
66
84
|
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DsPickerAlign, DsPickerOption, DsPickerSize } from '@shared/constants/pickers';
|
|
2
|
+
export interface DsSavedButtonProps {
|
|
3
|
+
/** The neutral label ("Saved", or "Save" before the first save). App copy. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** "Saved in {folder} · change folder" — where the folder name goes. Empty = no tooltip. */
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
/** The folder the contact lives in; tints the glyph. `null` = not saved yet (no glyph). */
|
|
8
|
+
folder?: DsPickerOption | null;
|
|
9
|
+
/** Every folder the user can pick. */
|
|
10
|
+
folders: DsPickerOption[];
|
|
11
|
+
searchPlaceholder?: string;
|
|
12
|
+
/** Shown when the search matches nothing. Empty = nothing. */
|
|
13
|
+
emptyLabel?: string;
|
|
14
|
+
/** Footer action ("New Folder"). Empty and no `footer` slot = no footer. */
|
|
15
|
+
createLabel?: string;
|
|
16
|
+
/** Material Symbols ligature for the folder glyph. */
|
|
17
|
+
icon?: string;
|
|
18
|
+
size?: DsPickerSize;
|
|
19
|
+
/** Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton`. Off = the design's table / profile trigger. */
|
|
20
|
+
pill?: boolean;
|
|
21
|
+
align?: DsPickerAlign;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|