@salesql/sql_components_vue3 3.17.0 → 3.18.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/dist/composables/useViewportClamp.d.ts +9 -4
- package/dist/constants/contact-data.d.ts +31 -1
- package/dist/constants/events.d.ts +4 -0
- package/dist/icons/icons.types.d.ts +38 -0
- package/dist/icons/registry.d.ts +30 -0
- package/dist/icons/registry.generated.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.es.js +3842 -2565
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.vue.d.ts +1 -1
- package/dist/ui/DsCheckbox/DsCheckbox.vue.d.ts +1 -1
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +23 -1
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +55 -1
- package/dist/ui/DsContactList/DsContactList.types.d.ts +11 -1
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +36 -0
- package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.types.d.ts +10 -2
- package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.vue.d.ts +11 -1
- package/dist/ui/DsEmailEditor/DsEmailEditor.types.d.ts +35 -0
- package/dist/ui/DsEmailEditor/DsEmailEditor.vue.d.ts +30 -0
- package/dist/ui/DsEmailEditor/index.d.ts +2 -0
- package/dist/ui/DsIcon/DsIcon.story-weights.d.ts +2 -0
- package/dist/ui/DsIcon/DsIcon.types.d.ts +31 -0
- package/dist/ui/DsIcon/DsIcon.vue.d.ts +66 -0
- package/dist/ui/DsIcon/index.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.types.d.ts +1 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +12 -1
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +10 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +1 -1
- package/llms-full.txt +313 -73
- package/llms.txt +3 -1
- package/package.json +10 -2
- package/scripts/generate-icons.mjs +107 -0
- package/scripts/icons-svg.mjs +185 -0
- package/src/icons/NOTICE +8 -0
- package/src/icons/manifest.json +138 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsPopoverPlacement } from '../../ui/DsPopover';
|
|
2
|
+
import { type DsPopoverBoundary, type DsPopoverPlacement } from '../../ui/DsPopover';
|
|
3
3
|
import { type DsContactItem, type DsContactKind, type DsContactSection, type DsContactType } from '../../constants/contact-data';
|
|
4
4
|
declare var __VLS_45: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
@@ -38,6 +38,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
38
38
|
type: StringConstructor;
|
|
39
39
|
required: true;
|
|
40
40
|
};
|
|
41
|
+
verifyingLabel: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
verifyingTooltip: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
invalidLabel: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
invalidTooltip: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
41
57
|
moreLabel: {
|
|
42
58
|
type: StringConstructor;
|
|
43
59
|
default: string;
|
|
@@ -62,6 +78,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
78
|
type: BooleanConstructor;
|
|
63
79
|
default: boolean;
|
|
64
80
|
};
|
|
81
|
+
boundary: {
|
|
82
|
+
type: PropType<DsPopoverBoundary>;
|
|
83
|
+
default: null;
|
|
84
|
+
};
|
|
65
85
|
revealLabel: {
|
|
66
86
|
type: StringConstructor;
|
|
67
87
|
default: string;
|
|
@@ -82,6 +102,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
102
|
type: StringConstructor;
|
|
83
103
|
default: string;
|
|
84
104
|
};
|
|
105
|
+
enterDelay: {
|
|
106
|
+
type: NumberConstructor;
|
|
107
|
+
default: number;
|
|
108
|
+
};
|
|
85
109
|
leaveDelay: {
|
|
86
110
|
type: NumberConstructor;
|
|
87
111
|
default: number;
|
|
@@ -145,6 +169,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
145
169
|
type: StringConstructor;
|
|
146
170
|
required: true;
|
|
147
171
|
};
|
|
172
|
+
verifyingLabel: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: string;
|
|
175
|
+
};
|
|
176
|
+
verifyingTooltip: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
invalidLabel: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
default: string;
|
|
183
|
+
};
|
|
184
|
+
invalidTooltip: {
|
|
185
|
+
type: StringConstructor;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
148
188
|
moreLabel: {
|
|
149
189
|
type: StringConstructor;
|
|
150
190
|
default: string;
|
|
@@ -169,6 +209,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
169
209
|
type: BooleanConstructor;
|
|
170
210
|
default: boolean;
|
|
171
211
|
};
|
|
212
|
+
boundary: {
|
|
213
|
+
type: PropType<DsPopoverBoundary>;
|
|
214
|
+
default: null;
|
|
215
|
+
};
|
|
172
216
|
revealLabel: {
|
|
173
217
|
type: StringConstructor;
|
|
174
218
|
default: string;
|
|
@@ -189,6 +233,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
189
233
|
type: StringConstructor;
|
|
190
234
|
default: string;
|
|
191
235
|
};
|
|
236
|
+
enterDelay: {
|
|
237
|
+
type: NumberConstructor;
|
|
238
|
+
default: number;
|
|
239
|
+
};
|
|
192
240
|
leaveDelay: {
|
|
193
241
|
type: NumberConstructor;
|
|
194
242
|
default: number;
|
|
@@ -232,13 +280,19 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
232
280
|
incorrectLabel: string;
|
|
233
281
|
emptyLabel: string;
|
|
234
282
|
moreLabel: string;
|
|
283
|
+
boundary: DsPopoverBoundary;
|
|
235
284
|
maskedLabel: string;
|
|
236
285
|
sections: DsContactSection[];
|
|
286
|
+
verifyingLabel: string;
|
|
287
|
+
verifyingTooltip: string;
|
|
288
|
+
invalidLabel: string;
|
|
289
|
+
invalidTooltip: string;
|
|
237
290
|
count: number | null;
|
|
238
291
|
revealLabel: string;
|
|
239
292
|
revealTooltip: string;
|
|
240
293
|
revealing: boolean;
|
|
241
294
|
popoverWidth: string;
|
|
295
|
+
enterDelay: number;
|
|
242
296
|
leaveDelay: number;
|
|
243
297
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
244
298
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -14,7 +14,17 @@ export interface DsContactListProps {
|
|
|
14
14
|
badgeLabel: string;
|
|
15
15
|
/** The badge meaning (`A_PLUS_TOOLTIP`). */
|
|
16
16
|
badgeTooltip: string;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Copy of the «Verifying» pill (an email whose `status` is `verifying`). The pill renders
|
|
19
|
+
* only when this is non-empty — the app opts in. `verifyingTooltip` is its meaning and
|
|
20
|
+
* accessible name.
|
|
21
|
+
*/
|
|
22
|
+
verifyingLabel?: string;
|
|
23
|
+
verifyingTooltip?: string;
|
|
24
|
+
/** Same for the «Invalid» pill (`status: 'invalid'`). */
|
|
25
|
+
invalidLabel?: string;
|
|
26
|
+
invalidTooltip?: string;
|
|
27
|
+
/** Adds the thumbs up / down actions to unmasked rows, except those with `rateable: false`. */
|
|
18
28
|
showRate?: boolean;
|
|
19
29
|
/** Shown instead of rows when there are none. Omit to render nothing. */
|
|
20
30
|
emptyLabel?: string;
|
|
@@ -33,6 +33,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
|
+
verifyingLabel: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
verifyingTooltip: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
invalidLabel: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
invalidTooltip: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
36
52
|
showRate: {
|
|
37
53
|
type: BooleanConstructor;
|
|
38
54
|
default: boolean;
|
|
@@ -94,6 +110,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
94
110
|
type: StringConstructor;
|
|
95
111
|
required: true;
|
|
96
112
|
};
|
|
113
|
+
verifyingLabel: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
verifyingTooltip: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
invalidLabel: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
invalidTooltip: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
97
129
|
showRate: {
|
|
98
130
|
type: BooleanConstructor;
|
|
99
131
|
default: boolean;
|
|
@@ -138,6 +170,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
138
170
|
items: DsContactItem[];
|
|
139
171
|
maskedLabel: string;
|
|
140
172
|
sections: DsContactSection[];
|
|
173
|
+
verifyingLabel: string;
|
|
174
|
+
verifyingTooltip: string;
|
|
175
|
+
invalidLabel: string;
|
|
176
|
+
invalidTooltip: string;
|
|
141
177
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
142
178
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
143
179
|
export default _default;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { DsTooltipPlacement } from '../../ui/DsTooltip';
|
|
2
|
+
export declare const DS_DELIVERABILITY_BADGE_STATUSES: {
|
|
3
|
+
readonly A_PLUS: "a-plus";
|
|
4
|
+
readonly VERIFYING: "verifying";
|
|
5
|
+
readonly INVALID: "invalid";
|
|
6
|
+
};
|
|
7
|
+
export type DsDeliverabilityBadgeStatus = (typeof DS_DELIVERABILITY_BADGE_STATUSES)[keyof typeof DS_DELIVERABILITY_BADGE_STATUSES];
|
|
2
8
|
export interface DsDeliverabilityBadgeProps {
|
|
3
|
-
/**
|
|
9
|
+
/** Which badge to draw. `a-plus` (default) is the bare glyph; the others are pills. */
|
|
10
|
+
status?: DsDeliverabilityBadgeStatus;
|
|
11
|
+
/** The visible text: the glyph (`A_PLUS_BADGE`) or the pill's word. The app owns the copy. */
|
|
4
12
|
label: string;
|
|
5
|
-
/** The meaning, shown on hover/focus and used as the accessible name
|
|
13
|
+
/** The meaning, shown on hover/focus and used as the accessible name. */
|
|
6
14
|
tooltip: string;
|
|
7
15
|
placement?: DsTooltipPlacement;
|
|
8
16
|
/**
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import { type DsTooltipPlacement } from '../../ui/DsTooltip';
|
|
3
|
+
import { type DsDeliverabilityBadgeStatus } from './DsDeliverabilityBadge.types';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
status: {
|
|
6
|
+
type: PropType<DsDeliverabilityBadgeStatus>;
|
|
7
|
+
default: "a-plus";
|
|
8
|
+
};
|
|
4
9
|
label: {
|
|
5
10
|
type: StringConstructor;
|
|
6
11
|
required: true;
|
|
@@ -18,6 +23,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
23
|
default: boolean;
|
|
19
24
|
};
|
|
20
25
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
status: {
|
|
27
|
+
type: PropType<DsDeliverabilityBadgeStatus>;
|
|
28
|
+
default: "a-plus";
|
|
29
|
+
};
|
|
21
30
|
label: {
|
|
22
31
|
type: StringConstructor;
|
|
23
32
|
required: true;
|
|
@@ -35,7 +44,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
35
44
|
default: boolean;
|
|
36
45
|
};
|
|
37
46
|
}>> & Readonly<{}>, {
|
|
38
|
-
|
|
47
|
+
status: DsDeliverabilityBadgeStatus;
|
|
39
48
|
focusable: boolean;
|
|
49
|
+
placement: DsTooltipPlacement;
|
|
40
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
51
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface DsEmailEditorItem {
|
|
2
|
+
value: string;
|
|
3
|
+
}
|
|
4
|
+
/** Every string the editor shows or announces. The app owns it (and its i18n). */
|
|
5
|
+
export interface DsEmailEditorCopy {
|
|
6
|
+
/** Heading of the form ("Edit emails"). */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Accessible name of the header's back button. The button only renders when this is set. */
|
|
9
|
+
back?: string;
|
|
10
|
+
/** Accessible name of the header's close button. The button only renders when this is set. */
|
|
11
|
+
close?: string;
|
|
12
|
+
/** The link-style button that appends a row ("Add email"). */
|
|
13
|
+
addEmail: string;
|
|
14
|
+
/** Accessible name of every email input ("Email address"). */
|
|
15
|
+
emailLabel: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
/** Info note under the rows (the verification credit warning). */
|
|
18
|
+
note: string;
|
|
19
|
+
cancel: string;
|
|
20
|
+
save: string;
|
|
21
|
+
/** Under a row whose text is not an email ("Please enter a valid email."). */
|
|
22
|
+
invalidEmail: string;
|
|
23
|
+
/** Under the later occurrence of a repeated email ("This email is duplicated."). */
|
|
24
|
+
duplicateEmail: string;
|
|
25
|
+
/** Accessible name of every row's remove button ("Remove email"). */
|
|
26
|
+
removeEmail: string;
|
|
27
|
+
}
|
|
28
|
+
export interface DsEmailEditorProps {
|
|
29
|
+
/**
|
|
30
|
+
* The current emails. Read when the editor mounts and as the baseline of «what changed»:
|
|
31
|
+
* a later change of the array does not reset what the user is typing.
|
|
32
|
+
*/
|
|
33
|
+
items: DsEmailEditorItem[];
|
|
34
|
+
copy: DsEmailEditorCopy;
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DsEmailEditorCopy, DsEmailEditorItem } from './DsEmailEditor.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<DsEmailEditorItem[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
copy: {
|
|
9
|
+
type: PropType<DsEmailEditorCopy>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
close: (...args: any[]) => void;
|
|
14
|
+
cancel: (...args: any[]) => void;
|
|
15
|
+
save: (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
items: {
|
|
18
|
+
type: PropType<DsEmailEditorItem[]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
copy: {
|
|
22
|
+
type: PropType<DsEmailEditorCopy>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const DS_ICON_SIZES: {
|
|
2
|
+
readonly SMALL: 16;
|
|
3
|
+
readonly MEDIUM: 20;
|
|
4
|
+
readonly LARGE: 24;
|
|
5
|
+
};
|
|
6
|
+
export type DsIconSize = (typeof DS_ICON_SIZES)[keyof typeof DS_ICON_SIZES];
|
|
7
|
+
export declare const DS_ICON_WEIGHTS: {
|
|
8
|
+
readonly THIN: 100;
|
|
9
|
+
readonly EXTRA_LIGHT: 200;
|
|
10
|
+
readonly LIGHT: 300;
|
|
11
|
+
readonly REGULAR: 400;
|
|
12
|
+
readonly MEDIUM: 500;
|
|
13
|
+
readonly SEMI_BOLD: 600;
|
|
14
|
+
readonly BOLD: 700;
|
|
15
|
+
};
|
|
16
|
+
export type DsIconWeight = (typeof DS_ICON_WEIGHTS)[keyof typeof DS_ICON_WEIGHTS];
|
|
17
|
+
export declare const DEFAULT_ICON_WEIGHT: DsIconWeight;
|
|
18
|
+
export declare const DS_ICON_VARIANTS: {
|
|
19
|
+
readonly OUTLINED: "outlined";
|
|
20
|
+
readonly ROUNDED: "rounded";
|
|
21
|
+
};
|
|
22
|
+
export type DsIconVariant = (typeof DS_ICON_VARIANTS)[keyof typeof DS_ICON_VARIANTS];
|
|
23
|
+
export declare const DS_ICON_COLORS: {
|
|
24
|
+
readonly DEFAULT: "default";
|
|
25
|
+
readonly MUTED: "muted";
|
|
26
|
+
readonly SUCCESS: "success";
|
|
27
|
+
readonly WARNING: "warning";
|
|
28
|
+
readonly DANGER: "danger";
|
|
29
|
+
readonly DISABLED: "disabled";
|
|
30
|
+
};
|
|
31
|
+
export type DsIconColor = (typeof DS_ICON_COLORS)[keyof typeof DS_ICON_COLORS];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsIconColor, type DsIconSize, type DsIconVariant, type DsIconWeight } from './DsIcon.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
name: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: PropType<DsIconSize>;
|
|
10
|
+
default: 20;
|
|
11
|
+
validator: (value: number) => boolean;
|
|
12
|
+
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: PropType<DsIconVariant>;
|
|
15
|
+
default: "outlined";
|
|
16
|
+
};
|
|
17
|
+
weight: {
|
|
18
|
+
type: PropType<DsIconWeight>;
|
|
19
|
+
default: DsIconWeight;
|
|
20
|
+
validator: (value: number) => boolean;
|
|
21
|
+
};
|
|
22
|
+
fill: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
type: PropType<DsIconColor | undefined>;
|
|
28
|
+
default: undefined;
|
|
29
|
+
validator: (value: string) => boolean;
|
|
30
|
+
};
|
|
31
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
name: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
type: PropType<DsIconSize>;
|
|
38
|
+
default: 20;
|
|
39
|
+
validator: (value: number) => boolean;
|
|
40
|
+
};
|
|
41
|
+
variant: {
|
|
42
|
+
type: PropType<DsIconVariant>;
|
|
43
|
+
default: "outlined";
|
|
44
|
+
};
|
|
45
|
+
weight: {
|
|
46
|
+
type: PropType<DsIconWeight>;
|
|
47
|
+
default: DsIconWeight;
|
|
48
|
+
validator: (value: number) => boolean;
|
|
49
|
+
};
|
|
50
|
+
fill: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
color: {
|
|
55
|
+
type: PropType<DsIconColor | undefined>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
validator: (value: string) => boolean;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{}>, {
|
|
60
|
+
size: DsIconSize;
|
|
61
|
+
fill: boolean;
|
|
62
|
+
variant: DsIconVariant;
|
|
63
|
+
color: DsIconColor | undefined;
|
|
64
|
+
weight: DsIconWeight;
|
|
65
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
66
|
+
export default _default;
|
|
@@ -40,6 +40,11 @@ export declare const DS_POPOVER_PLACEMENTS: {
|
|
|
40
40
|
readonly OVER_END: "over-end";
|
|
41
41
|
};
|
|
42
42
|
export type DsPopoverPlacement = (typeof DS_POPOVER_PLACEMENTS)[keyof typeof DS_POPOVER_PLACEMENTS];
|
|
43
|
+
/**
|
|
44
|
+
* A box the panel must stay inside, on top of the viewport: an element, or a getter for its
|
|
45
|
+
* rect (`null` = no boundary right now). Re-read on every measurement.
|
|
46
|
+
*/
|
|
47
|
+
export type DsPopoverBoundary = HTMLElement | (() => DOMRect | null) | null;
|
|
43
48
|
export interface DsPopoverProps {
|
|
44
49
|
/** Visibility. Controlled — pair with `v-model:open`. */
|
|
45
50
|
open?: boolean;
|
|
@@ -72,5 +77,11 @@ export interface DsPopoverProps {
|
|
|
72
77
|
* Root and trigger fill their container instead of hugging the trigger's content: the
|
|
73
78
|
* whole surface opens the panel (a table cell painted as clickable end to end). SALESQL-4056.
|
|
74
79
|
*/
|
|
75
|
-
block?: boolean;
|
|
80
|
+
block?: boolean; /**
|
|
81
|
+
* Keeps the panel inside this box as well as the viewport — an element, or a getter for its
|
|
82
|
+
* rect. The panel's edges stop at the boundary's (flush, no margin) and it is capped to the
|
|
83
|
+
* width left, so it never covers what is beyond it: the prospector table's sticky «Actions»
|
|
84
|
+
* column. `null` (default) = viewport only. Additive (SALESQL-4428).
|
|
85
|
+
*/
|
|
86
|
+
boundary?: DsPopoverBoundary;
|
|
76
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsPopoverPlacement } from './DsPopover.types';
|
|
2
|
+
import { type DsPopoverBoundary, type DsPopoverPlacement } from './DsPopover.types';
|
|
3
3
|
declare var __VLS_1: {}, __VLS_11: {}, __VLS_17: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
trigger?: (props: typeof __VLS_1) => any;
|
|
@@ -50,6 +50,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
|
+
boundary: {
|
|
54
|
+
type: PropType<DsPopoverBoundary>;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
53
57
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
58
|
"update:open": (...args: any[]) => void;
|
|
55
59
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -94,6 +98,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: boolean;
|
|
96
100
|
};
|
|
101
|
+
boundary: {
|
|
102
|
+
type: PropType<DsPopoverBoundary>;
|
|
103
|
+
default: null;
|
|
104
|
+
};
|
|
97
105
|
}>> & Readonly<{
|
|
98
106
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
99
107
|
}>, {
|
|
@@ -108,6 +116,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
108
116
|
growTo: string;
|
|
109
117
|
closeOnOutside: boolean;
|
|
110
118
|
triggerOnClick: boolean;
|
|
119
|
+
boundary: DsPopoverBoundary;
|
|
111
120
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
121
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
113
122
|
export default _default;
|
|
@@ -300,6 +300,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
300
300
|
create: DsPickerCreateMode;
|
|
301
301
|
disabled: boolean;
|
|
302
302
|
pill: boolean;
|
|
303
|
+
folder: DsPickerOption | null;
|
|
303
304
|
icon: string;
|
|
304
305
|
tooltip: string;
|
|
305
306
|
teleported: boolean;
|
|
@@ -317,7 +318,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
317
318
|
createFormTitle: string;
|
|
318
319
|
editFormTitle: string;
|
|
319
320
|
tooltipPlacement: DsTooltipPlacement;
|
|
320
|
-
folder: DsPickerOption | null;
|
|
321
321
|
align: DsPickerAlign;
|
|
322
322
|
rowActions: boolean | DsPickerRowActionsMode;
|
|
323
323
|
formLoading: boolean;
|