@salesql/sql_components_vue3 3.32.0 → 3.33.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/constants/events.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.es.js +4614 -4023
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +3 -10
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -0
- package/dist/ui/DsColumnList/DsColumnList.types.d.ts +26 -0
- package/dist/ui/DsColumnList/DsColumnList.vue.d.ts +66 -0
- package/dist/ui/DsColumnList/index.d.ts +2 -0
- package/dist/ui/DsContactCard/DsContactCard.types.d.ts +30 -0
- package/dist/ui/DsContactCard/DsContactCard.vue.d.ts +103 -0
- package/dist/ui/DsContactCard/index.d.ts +2 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.types.d.ts +23 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.vue.d.ts +56 -0
- package/dist/ui/DsCreditsChip/index.d.ts +2 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.types.d.ts +15 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.vue.d.ts +46 -0
- package/dist/ui/DsCreditsNotice/index.d.ts +2 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.types.d.ts +46 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.vue.d.ts +108 -0
- package/dist/ui/DsCreditsPopover/index.d.ts +2 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.types.d.ts +42 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.vue.d.ts +51 -0
- package/dist/ui/DsCreditsSummary/creditsLevel.d.ts +13 -0
- package/dist/ui/DsCreditsSummary/index.d.ts +3 -0
- package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +11 -0
- package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +29 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +8 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +3 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +9 -0
- package/llms-full.txt +236 -4
- package/llms.txt +6 -0
- package/package.json +1 -1
- package/src/icons/manifest.json +3 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsCredits, type DsCreditsCopy, type DsCreditsLevel } from './DsCreditsSummary.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
credits: {
|
|
5
|
+
type: PropType<DsCredits>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
level: {
|
|
9
|
+
type: PropType<DsCreditsLevel>;
|
|
10
|
+
default: "normal";
|
|
11
|
+
};
|
|
12
|
+
prominent: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
planLabel: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
copy: {
|
|
21
|
+
type: PropType<Partial<DsCreditsCopy>>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
credits: {
|
|
26
|
+
type: PropType<DsCredits>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
level: {
|
|
30
|
+
type: PropType<DsCreditsLevel>;
|
|
31
|
+
default: "normal";
|
|
32
|
+
};
|
|
33
|
+
prominent: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
planLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
copy: {
|
|
42
|
+
type: PropType<Partial<DsCreditsCopy>>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
copy: Partial<DsCreditsCopy>;
|
|
47
|
+
level: DsCreditsLevel;
|
|
48
|
+
prominent: boolean;
|
|
49
|
+
planLabel: string;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DsCreditsLevel } from './DsCreditsSummary.types';
|
|
2
|
+
/** Below this share of the base the balance turns amber (Free 50: 9 or less). */
|
|
3
|
+
export declare const CREDITS_LOW_SHARE = 0.2;
|
|
4
|
+
export interface CreditsLevelInput {
|
|
5
|
+
available?: number | null;
|
|
6
|
+
/** What «low» is measured against: the plan's monthly credits, else the period's total. */
|
|
7
|
+
base?: number | null;
|
|
8
|
+
lowShare?: number;
|
|
9
|
+
/** A free plan still being set up: never coloured, not even at 0. */
|
|
10
|
+
pendingSetup?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** `out` at 0 or below (with or without a base), `low` under `base × lowShare`, else `normal`. */
|
|
13
|
+
export declare function getCreditsLevel({ available, base, lowShare, pendingSetup, }: CreditsLevelInput): DsCreditsLevel;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/** Size of the round holder of `icon`: medium 56px (28px glyph), large 64px (32px glyph). */
|
|
2
|
+
export declare const DS_EMPTY_STATE_ICON_SIZES: {
|
|
3
|
+
readonly MEDIUM: "medium";
|
|
4
|
+
readonly LARGE: "large";
|
|
5
|
+
};
|
|
6
|
+
export type DsEmptyStateIconSize = (typeof DS_EMPTY_STATE_ICON_SIZES)[keyof typeof DS_EMPTY_STATE_ICON_SIZES];
|
|
1
7
|
export interface DsEmptyStateProps {
|
|
2
8
|
/** Illustration URL rendered above the title. Decorative — always renders with alt="". */
|
|
3
9
|
image?: string;
|
|
10
|
+
/** Material Symbols name of a glyph in a round holder above the title. An alternative to `image`: when both are set, `image` wins. */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** Colour of the glyph (any CSS colour). Default: the muted grey of the holder. */
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
iconSize?: DsEmptyStateIconSize;
|
|
4
15
|
/** Empty-state heading. Rendered as a styled `<p>`, never an `<h1>` — a reusable
|
|
5
16
|
* component must not hardcode a heading level, or it would corrupt the consuming
|
|
6
17
|
* page's heading outline. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { type DsEmptyStateIconSize } from './DsEmptyState.types';
|
|
1
3
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
4
|
type __VLS_Slots = {} & {
|
|
3
5
|
'table-header'?: (props: typeof __VLS_1) => any;
|
|
@@ -9,6 +11,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
9
11
|
type: StringConstructor;
|
|
10
12
|
default: string;
|
|
11
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
iconColor: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
iconSize: {
|
|
23
|
+
type: PropType<DsEmptyStateIconSize>;
|
|
24
|
+
default: "medium";
|
|
25
|
+
};
|
|
12
26
|
title: {
|
|
13
27
|
type: StringConstructor;
|
|
14
28
|
default: string;
|
|
@@ -26,6 +40,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
26
40
|
type: StringConstructor;
|
|
27
41
|
default: string;
|
|
28
42
|
};
|
|
43
|
+
icon: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
iconColor: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
iconSize: {
|
|
52
|
+
type: PropType<DsEmptyStateIconSize>;
|
|
53
|
+
default: "medium";
|
|
54
|
+
};
|
|
29
55
|
title: {
|
|
30
56
|
type: StringConstructor;
|
|
31
57
|
default: string;
|
|
@@ -41,6 +67,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
41
67
|
}>> & Readonly<{}>, {
|
|
42
68
|
title: string;
|
|
43
69
|
image: string;
|
|
70
|
+
iconSize: DsEmptyStateIconSize;
|
|
71
|
+
icon: string;
|
|
72
|
+
iconColor: string;
|
|
44
73
|
subtitle: string;
|
|
45
74
|
roundedBorder: boolean;
|
|
46
75
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -98,4 +98,12 @@ export interface DsPopoverProps {
|
|
|
98
98
|
* `teleported` inside tables and scrollers. Off (default) = no layer. Additive (SALESQL-4183).
|
|
99
99
|
*/
|
|
100
100
|
modal?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* A box the `modal` layer leaves uncovered (same shape as `boundary`): what is there keeps the
|
|
103
|
+
* pointer (hover, clicks), and a press on it still counts as outside for `closeOnOutside`.
|
|
104
|
+
* Re-measured on open, resize and scroll. `null` (default) = the layer covers everything.
|
|
105
|
+
*/
|
|
106
|
+
modalExclude?: DsPopoverBoundary;
|
|
107
|
+
/** Accessible name of the `dialog` panel. Empty = none. Additive. */
|
|
108
|
+
ariaLabel?: string;
|
|
101
109
|
}
|
|
@@ -58,6 +58,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
|
+
modalExclude: {
|
|
62
|
+
type: PropType<DsPopoverBoundary>;
|
|
63
|
+
default: null;
|
|
64
|
+
};
|
|
65
|
+
ariaLabel: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
61
69
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
70
|
"update:open": (...args: any[]) => void;
|
|
63
71
|
"backdrop-click": (...args: any[]) => void;
|
|
@@ -111,12 +119,21 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
111
119
|
type: BooleanConstructor;
|
|
112
120
|
default: boolean;
|
|
113
121
|
};
|
|
122
|
+
modalExclude: {
|
|
123
|
+
type: PropType<DsPopoverBoundary>;
|
|
124
|
+
default: null;
|
|
125
|
+
};
|
|
126
|
+
ariaLabel: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
114
130
|
}>> & Readonly<{
|
|
115
131
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
116
132
|
"onBackdrop-click"?: ((...args: any[]) => any) | undefined;
|
|
117
133
|
}>, {
|
|
118
134
|
width: string;
|
|
119
135
|
open: boolean;
|
|
136
|
+
ariaLabel: string;
|
|
120
137
|
block: boolean;
|
|
121
138
|
flush: boolean;
|
|
122
139
|
closeOnEscape: boolean;
|
|
@@ -128,6 +145,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
128
145
|
triggerOnClick: boolean;
|
|
129
146
|
boundary: DsPopoverBoundary;
|
|
130
147
|
modal: boolean;
|
|
148
|
+
modalExclude: DsPopoverBoundary;
|
|
131
149
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
132
150
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
133
151
|
export default _default;
|
|
@@ -10,7 +10,7 @@ export interface DsSavedButtonCopy extends DsPickerOrganizerCopy {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const DS_SAVED_BUTTON_COPY: DsSavedButtonCopy;
|
|
12
12
|
export interface DsSavedButtonProps {
|
|
13
|
-
/** The neutral label ("Saved", or "Save" before the first save). App copy. */
|
|
13
|
+
/** The neutral label ("Saved", or "Save" before the first save); a table cell passes the folder name. It ellipsizes at the width it is given. App copy. */
|
|
14
14
|
label: string;
|
|
15
15
|
/** "Saved in {folder} · change folder". Shown whenever non-empty, and hidden while the panel is open. */
|
|
16
16
|
tooltip?: string;
|
|
@@ -19,6 +19,8 @@ export interface DsSavedButtonProps {
|
|
|
19
19
|
/** Material Symbols ligature for the folder glyph. */
|
|
20
20
|
icon?: string;
|
|
21
21
|
size?: DsPickerSize;
|
|
22
|
+
/** While the panel is open the trigger takes the accent tint (`accent-bg`, `accent-mid` border). The table's Folder cell. */
|
|
23
|
+
tintOpen?: boolean;
|
|
22
24
|
/** Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton`. Off = the design's table / profile trigger. */
|
|
23
25
|
pill?: boolean;
|
|
24
26
|
align?: DsPickerAlign;
|
|
@@ -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
|
+
tintOpen: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
53
57
|
align: {
|
|
54
58
|
type: PropType<DsPickerAlign>;
|
|
55
59
|
default: "end";
|
|
@@ -198,6 +202,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
198
202
|
type: BooleanConstructor;
|
|
199
203
|
default: boolean;
|
|
200
204
|
};
|
|
205
|
+
tintOpen: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
201
209
|
align: {
|
|
202
210
|
type: PropType<DsPickerAlign>;
|
|
203
211
|
default: "end";
|
|
@@ -335,6 +343,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
335
343
|
deleteLabel: string;
|
|
336
344
|
createFormTitle: string;
|
|
337
345
|
editFormTitle: string;
|
|
346
|
+
tintOpen: boolean;
|
|
338
347
|
align: DsPickerAlign;
|
|
339
348
|
rowActions: boolean | DsPickerRowActionsMode;
|
|
340
349
|
defaultColor: string;
|
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (v3.
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v3.33.0)
|
|
2
2
|
|
|
3
3
|
> Librería de componentes Vue 3 (SalesQL) Presentational-only Vue 3 components (props in, events out; the consuming app owns state, i18n and data). This file is auto-generated from the component stories for LLM/agent consumption — do not edit by hand.
|
|
4
4
|
|
|
@@ -48,12 +48,13 @@ app.provide(DS_TELEPORT_TARGET, overlayLayer); // an element inside the shadow r
|
|
|
48
48
|
|
|
49
49
|
Browsers ignore `@font-face` declared inside a shadow root: register the fonts on the page document.
|
|
50
50
|
|
|
51
|
-
## Components (
|
|
51
|
+
## Components (89)
|
|
52
52
|
|
|
53
53
|
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
54
54
|
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
55
55
|
- **DsProfileCompanyCard** (Company) — The company card of the full-profile drawer, always shown (before and after reveal) — the
|
|
56
56
|
- **DsAddToSequence** (Contact data) — The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
57
|
+
- **DsContactCard** (Contact data) — One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
|
|
57
58
|
- **DsContactCell** (Contact data) — The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
58
59
|
- **DsContactGroups** (Contact data) — One contact's data, **always open**: a band per type with its count («WORK (1)») over its values,
|
|
59
60
|
- **DsContactList** (Contact data) — The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|
|
@@ -92,6 +93,10 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
92
93
|
- **DsAddToBar** (Extension panel) — The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
93
94
|
- **DsBulkBar** (Extension panel) — The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
94
95
|
- **DsContactRow** (Extension panel) — One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
96
|
+
- **DsCreditsChip** (Extension panel) — The credits button of the side panel header: `toll` + the available balance (`en-US`, never
|
|
97
|
+
- **DsCreditsNotice** (Extension panel) — A short `role="status"` notice inside the credits popover.
|
|
98
|
+
- **DsCreditsPopover** (Extension panel) — The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
|
|
99
|
+
- **DsCreditsSummary** (Extension panel) — The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
|
|
95
100
|
- **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
96
101
|
- **DsPanelHeader** (Extension panel) — The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
97
102
|
- **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
@@ -126,6 +131,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
126
131
|
- **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
|
|
127
132
|
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
128
133
|
- **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
134
|
+
- **DsColumnList** (Toolbar) — The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
129
135
|
- **DsFilterChip** (Toolbar) — A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
|
|
130
136
|
- **DsMenuBackRow** (Toolbar) — The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
|
|
131
137
|
- **DsMenuDrillRow** (Toolbar) — A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron.…
|
|
@@ -363,6 +369,33 @@ so Add never sends a campaign the user cannot see. One still listed keeps its pl
|
|
|
363
369
|
|
|
364
370
|
---
|
|
365
371
|
|
|
372
|
+
<!-- DsContactCard · Contact data -->
|
|
373
|
+
|
|
374
|
+
One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
|
|
375
|
+
that emits `open`; an optional checkbox sits before it; each entry of `rows` is a labelled line whose
|
|
376
|
+
value is the `row` slot.
|
|
377
|
+
|
|
378
|
+
### API
|
|
379
|
+
|
|
380
|
+
`firstName` · `lastName` · `jobTitle` · `image` · `uid` · `selectable` (the checkbox is opt-in) ·
|
|
381
|
+
`selected` (v-model:selected) · `selectLabel` · `openLabel` · `rows: { id, label }[]`.
|
|
382
|
+
Slot `row` receives `{ row }`. Events: `open`, `update:selected` (boolean).
|
|
383
|
+
|
|
384
|
+
### Not DsContactRow
|
|
385
|
+
|
|
386
|
+
`DsContactRow` is the extension panel's border-top list row (checkbox always on, `#action` slot,
|
|
387
|
+
radius-8 photo). The card has its own chrome (hairline, 8px radius, accent when selected) and the
|
|
388
|
+
labelled rows; sharing a component would have rewritten most of it.
|
|
389
|
+
|
|
390
|
+
### Accessibility
|
|
391
|
+
|
|
392
|
+
- The head is a real `<button>`; the visible name is its name, `openLabel` replaces it (and must
|
|
393
|
+
contain it). The photo and the chevron are decorative.
|
|
394
|
+
- The checkbox has no visible label: `selectLabel` names it.
|
|
395
|
+
- Design deltas: photo 42 → 40 (DS), name 15 → 14 and title 13 (DS type scale), label 11.5 → 12.
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
366
399
|
<!-- DsContactCell · Contact data -->
|
|
367
400
|
|
|
368
401
|
## DsContactCell
|
|
@@ -2646,8 +2679,9 @@ back to the `mail` icon. No per-mailbox Disconnect.
|
|
|
2646
2679
|
|
|
2647
2680
|
- `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
|
|
2648
2681
|
below it, kept 8px inside the viewport and capped to the room below (side panel height − 54).
|
|
2649
|
-
- A click anywhere outside closes it
|
|
2650
|
-
|
|
2682
|
+
- A click anywhere outside closes it. Inside `DsPanelHeader` the click-catching layer leaves the
|
|
2683
|
+
header uncovered (`modalExclude`): one click on another header control (the credits chip,
|
|
2684
|
+
«Open SalesQL») closes this menu and acts on that control; a click below the header only closes it.
|
|
2651
2685
|
- Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
|
|
2652
2686
|
|
|
2653
2687
|
### Accessibility
|
|
@@ -2881,6 +2915,166 @@ and text, 8px gap between the top line and the data block, `#action` at the righ
|
|
|
2881
2915
|
|
|
2882
2916
|
---
|
|
2883
2917
|
|
|
2918
|
+
<!-- DsCreditsChip · Extension panel -->
|
|
2919
|
+
|
|
2920
|
+
## DsCreditsChip
|
|
2921
|
+
|
|
2922
|
+
The credits button of the side panel header: `toll` + the available balance (`en-US`, never
|
|
2923
|
+
below 0). Usually rendered by `DsCreditsPopover` as its trigger; on its own it is a plain button.
|
|
2924
|
+
|
|
2925
|
+
### Props
|
|
2926
|
+
|
|
2927
|
+
| Prop | Type | Default | Description |
|
|
2928
|
+
| ----------- | ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
2929
|
+
| `available` | `number` | — | The balance. |
|
|
2930
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | White / amber / red (`getCreditsLevel`). |
|
|
2931
|
+
| `open` | `boolean` | — | Passed (even `false`): `aria-haspopup="dialog"` + `aria-expanded`, open look. |
|
|
2932
|
+
| `tooltip` | `string` | `''` | Off while open. |
|
|
2933
|
+
| `copy` | `Partial<DsCreditsChipCopy>` | English | `label(formatted, available, level)` → «412 credits available», «9 credits available, running low» (the `aria-label`). |
|
|
2934
|
+
|
|
2935
|
+
Events: `click`. Class, style and `data-*` go on the `<button>`.
|
|
2936
|
+
|
|
2937
|
+
### Design parity (canvas «Header-menu-uso» L61, `CREDIT_CHIP`)
|
|
2938
|
+
|
|
2939
|
+
- 28px = `control-height('compact')`, `radius-full`, gap 4, text `font-size('label')` 12.5 bold.
|
|
2940
|
+
- Colours from the new DS steps: low `amber-tint-soft` / `amber-mid-soft` / `amber-deep`, open
|
|
2941
|
+
`amber-tint-strong` / `amber-mid-strong`; out `error-tint-soft` / `error-mid-soft` /
|
|
2942
|
+
`error-shadow-strong`, open `error-tint-strong` / `error-mid-strong`; icon `amber-main` /
|
|
2943
|
+
`error-main` / `accent-main`. Normal open = `accent-bg` + `accent-mid`.
|
|
2944
|
+
- Logged deltas: left padding 7 → 6 (`spacing(0.75)`, the DS's 2px unit); hover
|
|
2945
|
+
`brightness(.97)` → `slate-bg` (normal) or the level's `tint-strong`; focus ring `accent-mid`
|
|
2946
|
+
as the avatar's.
|
|
2947
|
+
|
|
2948
|
+
---
|
|
2949
|
+
|
|
2950
|
+
<!-- DsCreditsNotice · Extension panel -->
|
|
2951
|
+
|
|
2952
|
+
## DsCreditsNotice
|
|
2953
|
+
|
|
2954
|
+
A short `role="status"` notice inside the credits popover.
|
|
2955
|
+
|
|
2956
|
+
| Prop | Type | Default | Description |
|
|
2957
|
+
| ----------- | -------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2958
|
+
| `text` | `string` | — | App copy. |
|
|
2959
|
+
| `tone` | `'info' \| 'low' \| 'out'` | `info` | info: `accent-bg`, no icon, no border. low / out: `error` icon, `*-bg`, 1px `*-mid-soft` border, text `amber-deep` / `error-shadow-strong`. |
|
|
2960
|
+
| `linkLabel` | `string` | `''` | Inline link after the text («More info.»). |
|
|
2961
|
+
| `href` | `string` | `''` | Opens in a new tab. Empty = a button that emits `click`. |
|
|
2962
|
+
|
|
2963
|
+
### Design parity («Header-menu-uso» P:credits pending notice, «Upsell» warnBox)
|
|
2964
|
+
|
|
2965
|
+
Caption 12 with `$line-height-snug` 1.45, radius 6. Info 10/12 padding, 500, no border;
|
|
2966
|
+
low / out 8/10 padding, 600, 1px border. Logged deltas: icon 15 → 16 (DsIcon), icon gap 7 → 6.
|
|
2967
|
+
|
|
2968
|
+
---
|
|
2969
|
+
|
|
2970
|
+
<!-- DsCreditsPopover · Extension panel -->
|
|
2971
|
+
|
|
2972
|
+
## DsCreditsPopover
|
|
2973
|
+
|
|
2974
|
+
The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
|
|
2975
|
+
`usage` slot, before «Open SalesQL». **Presentational only**: the app decides the level, the
|
|
2976
|
+
action or the note for the account, and opens the page on `action`.
|
|
2977
|
+
|
|
2978
|
+
Order, as the design: summary (`toll` «Credits», plan chip; the balance as a 26px figure with
|
|
2979
|
+
«available»; meter; «{used} of {total} used» · «Resets {date}») · the low / out notice · the
|
|
2980
|
+
`notice` slot · one button (`action`) · the member line (`note`).
|
|
2981
|
+
|
|
2982
|
+
### Props
|
|
2983
|
+
|
|
2984
|
+
| Prop | Type | Default | Description |
|
|
2985
|
+
| ----------- | ------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
|
|
2986
|
+
| `open` | `boolean` | — | `v-model:open`. Omitted = manages itself. Bind it to keep one popover open at a time. |
|
|
2987
|
+
| `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }`, as `DsAccountMenu`'s credits. |
|
|
2988
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | Colours the chip, the figure and the meter; `low` / `out` add their notice. |
|
|
2989
|
+
| `planLabel` | `string` | `''` | The plan chip («Pro plan»). Empty = none. |
|
|
2990
|
+
| `action` | `{ kind, label } \| null` | `null` | `kind`: `upgrade`, `update_payment` (primary) or `see_plans` (outline). Full width, 36px, `open_in_new`. |
|
|
2991
|
+
| `note` | `string` | `''` | A line with the `group` icon instead of a button («Your team admin manages the plan»). |
|
|
2992
|
+
| `width` | `number \| string` | `264` | Panel width (also its max, so past 320 is not clipped); a number is px. The viewport still caps it. |
|
|
2993
|
+
| `tooltip` | `string` | `''` | The chip's tooltip («412 credits · resets Dec 1»), off while open. |
|
|
2994
|
+
| `copy` | `Partial<DsCreditsPopoverCopy>` | English | Summary strings, `chipLabel`, `dialog`, `lowNotice`, `outNotice`. |
|
|
2995
|
+
|
|
2996
|
+
Slots: `trigger` (replaces the chip; gets `{ open }`) · `notice` (the pending-setup unlock note:
|
|
2997
|
+
put a `DsCreditsNotice` with `linkLabel` + `href` there).
|
|
2998
|
+
|
|
2999
|
+
Events: `update:open` (boolean) · `action` (the kind). An action also closes the popover.
|
|
3000
|
+
|
|
3001
|
+
### The app's rules (not in the component)
|
|
3002
|
+
|
|
3003
|
+
- Which content, in this order: member → `note`; past due → `update_payment`; Free still
|
|
3004
|
+
pending setup (plan identifier `500`) → `notice` slot, no action, level `normal`; Free →
|
|
3005
|
+
`upgrade`; paid or gift admin → `see_plans`. The component renders whatever it receives.
|
|
3006
|
+
- Level: `getCreditsLevel({ available, base, pendingSetup })` with `CREDITS_LOW_SHARE` 0.2.
|
|
3007
|
+
`base` = the plan's monthly credits when known, else the period's total. 0 or below → `out`
|
|
3008
|
+
(with or without a base); no base → never `low`; `pendingSetup` → always `normal`.
|
|
3009
|
+
- The out notice's second sentence («Upgrade to keep revealing today.») follows the action: pass
|
|
3010
|
+
it through `copy.outNotice` only when the action is `upgrade`.
|
|
3011
|
+
|
|
3012
|
+
### Behaviour and accessibility
|
|
3013
|
+
|
|
3014
|
+
- `DsPopover` `teleported`, non-modal, `bottom-end`: right-aligned with the chip, 6px below it,
|
|
3015
|
+
kept inside the viewport and capped to the room below (it scrolls, bar hidden).
|
|
3016
|
+
- The chip is a `<button>` with `aria-label` «412 credits available» («…, running low» at `low`,
|
|
3017
|
+
so the level is not colour only), `aria-haspopup="dialog"` and `aria-expanded`. The panel is a
|
|
3018
|
+
`dialog` named «Credits» (`copy.dialog`). Escape, an action, or Tab / Shift+Tab out of the
|
|
3019
|
+
panel close it and put the focus on the chip (on the `trigger` slot's first focusable), also
|
|
3020
|
+
where a click does not focus the button (Safari / Firefox). Escape stops there: a drawer behind
|
|
3021
|
+
does not close. A click outside closes it too.
|
|
3022
|
+
- The notices are `role="status"`; the meter is a `progressbar`.
|
|
3023
|
+
|
|
3024
|
+
### Design parity (canvas «Header-menu-uso» P:credits, «Upsell» P:credits)
|
|
3025
|
+
|
|
3026
|
+
Composition, order and copy follow the boards. Logged deltas:
|
|
3027
|
+
|
|
3028
|
+
- New DS tokens (Diego, 2026-11-20: every off-scale value of the boards goes to the DS): the
|
|
3029
|
+
amber / error in-between steps `bg`, `tint-soft`, `tint-strong`, `mid-soft`, `mid-strong`
|
|
3030
|
+
(`-soft` a notch lighter than its step, `-strong` a notch darker) plus the text steps
|
|
3031
|
+
`amber-deep` and `error-shadow-strong` (chip, notices, figure), `font-size('display')` 26 + `$weight-extrabold` 800 + `$letter-spacing-tight` -0.3px
|
|
3032
|
+
- `$line-height-display` 1.1 (the figure), `font-size('label')` 12.5 (chip, «available»),
|
|
3033
|
+
`$line-height-snug` 1.45 (notices).
|
|
3034
|
+
- Kept from DsAccountMenu (SALESQL-4790) so the menu and the popover match: popover chrome is
|
|
3035
|
+
`DsPopover`'s (6px radius, `shadow-dropdown`) instead of 8px and `0 8px 28px`; plan chip
|
|
3036
|
+
10.5/800 → `micro` 10 bold; foot 11.5 → `caption` 12; `#888F97` text → `slate-soft` (AA);
|
|
3037
|
+
track `#E5E7EB` → `grey-2`; meter-to-foot 7 → 8px.
|
|
3038
|
+
- Icons are `DsIcon` at 16 (the board's 15 → 16: DsIcon draws 16 / 20 / 24).
|
|
3039
|
+
- Buttons are `DsButton` `large` (36px, 14/500, radius 4, 20px glyph) instead of 13/700, radius 6
|
|
3040
|
+
and a 15px glyph.
|
|
3041
|
+
- Notice icon-to-text gap 7 → 6px; member line `#5C6670` → `slate-soft`.
|
|
3042
|
+
- «See plans»: the trailing `open_in_new` keeps the board's `slate-muted` (`#888F97`); the label
|
|
3043
|
+
stays `slate-main`.
|
|
3044
|
+
|
|
3045
|
+
---
|
|
3046
|
+
|
|
3047
|
+
<!-- DsCreditsSummary · Extension panel -->
|
|
3048
|
+
|
|
3049
|
+
## DsCreditsSummary
|
|
3050
|
+
|
|
3051
|
+
The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
|
|
3052
|
+
|
|
3053
|
+
| Prop | Type | Default | Description |
|
|
3054
|
+
| ----------- | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
3055
|
+
| `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }` (each number also `null`). |
|
|
3056
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | Low / out colour the balance (`amber-deep` / `error-shadow-strong`) and make the meter solid (`amber-main` / `error-main`). |
|
|
3057
|
+
| `prominent` | `boolean` | `false` | «Credits» + plan chip, then the balance as a 26px figure + «available». |
|
|
3058
|
+
| `planLabel` | `string` | `''` | The plan chip, prominent only. |
|
|
3059
|
+
| `copy` | `Partial<DsCreditsCopy>` | English | `title`, `available`, `availableLabel`, `used`, `resets`, `progress`. |
|
|
3060
|
+
|
|
3061
|
+
Rules as DsAccountMenu's: `available` wins (even above `total`, never below 0), else `total − used`; `used`
|
|
3062
|
+
omitted = `total − available`; the meter is clipped to 0–100% and `aria-valuenow` never goes
|
|
3063
|
+
below 0; no `total` = no meter and no «… used».
|
|
3064
|
+
|
|
3065
|
+
`getCreditsLevel({ available, base, lowShare?, pendingSetup? })` and `CREDITS_LOW_SHARE` (0.2) live
|
|
3066
|
+
here too: 0 or below is `out` with or without a base, no base is never `low`, `pendingSetup` is
|
|
3067
|
+
always `normal`.
|
|
3068
|
+
|
|
3069
|
+
### Design parity
|
|
3070
|
+
|
|
3071
|
+
Row: identical to the account menu's block (SALESQL-4790). Prominent: the figure is
|
|
3072
|
+
`font-size('display')` 26 / `$weight-extrabold` / `$line-height-display` / `$letter-spacing-tight`;
|
|
3073
|
+
«available» `font-size('label')` 12.5 semibold in `slate-soft` (board `#888F97`); 10px from the
|
|
3074
|
+
header and to the meter; meter-to-foot 7 → 8px.
|
|
3075
|
+
|
|
3076
|
+
---
|
|
3077
|
+
|
|
2884
3078
|
<!-- DsPanelFrame · Extension panel -->
|
|
2885
3079
|
|
|
2886
3080
|
## DsPanelFrame
|
|
@@ -4211,6 +4405,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
|
|
|
4211
4405
|
| `block` | `boolean` | `false` | Root and trigger fill their container, so the whole surface opens the panel (a table cell painted as clickable end to end). |
|
|
4212
4406
|
| `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the panel must stay inside besides the viewport. See **Boundary** below. |
|
|
4213
4407
|
| `modal` | `boolean` | `false` | Blocks the page behind the panel with a transparent full-viewport layer and emits `backdrop-click`. See **Modal** below. |
|
|
4408
|
+
| `modalExclude` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | A box the `modal` layer leaves uncovered (a header whose controls stay clickable). See **Modal** below. |
|
|
4214
4409
|
|
|
4215
4410
|
### Placement
|
|
4216
4411
|
|
|
@@ -4324,6 +4519,10 @@ shift (it is `position: fixed`).
|
|
|
4324
4519
|
root. Inline it only covers what the panel's own stacking context covers, so use `teleported` in
|
|
4325
4520
|
tables and scrollers. While the panel fades out the layer stops intercepting, so the next click
|
|
4326
4521
|
is not swallowed.
|
|
4522
|
+
- `modalExclude` cuts a hole in the layer (an element, or a getter for its rect; re-measured on
|
|
4523
|
+
open, resize and scroll): what is there keeps the pointer, and a press on it is still an outside
|
|
4524
|
+
press. `DsAccountMenu` passes `DsPanelHeader`'s box, so one click on another header control
|
|
4525
|
+
closes the menu and acts on that control.
|
|
4327
4526
|
- The `mousedown` on the layer is cancelled, so a focused field inside the panel keeps its focus.
|
|
4328
4527
|
- Without it nothing changes (no layer).
|
|
4329
4528
|
|
|
@@ -4833,6 +5032,39 @@ accent is too faint for 14px text on the tint.
|
|
|
4833
5032
|
|
|
4834
5033
|
---
|
|
4835
5034
|
|
|
5035
|
+
<!-- DsColumnList · Toolbar -->
|
|
5036
|
+
|
|
5037
|
+
The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
5038
|
+
included**, each with a drag handle, under an optional locked first row. It holds no order: the app
|
|
5039
|
+
owns `columns` and answers `toggle` and `reorder`.
|
|
5040
|
+
|
|
5041
|
+
### API
|
|
5042
|
+
|
|
5043
|
+
`columns: { id, label, visible, disabled?, hint? }[]` · `lockedLabel` / `lockedHint` (the always-first
|
|
5044
|
+
row, with a lock; empty draws none) · `dragLabel` (handle tooltip) · `ariaLabel` · `reorderHint`.
|
|
5045
|
+
Every string is app copy.
|
|
5046
|
+
|
|
5047
|
+
### Events
|
|
5048
|
+
|
|
5049
|
+
`toggle` (column id) · `reorder` (the **full** list of ids in the new order, hidden columns included).
|
|
5050
|
+
|
|
5051
|
+
### Behaviour
|
|
5052
|
+
|
|
5053
|
+
- Native HTML5 drag and drop on the rows. A 2px accent line shows where the column lands: under the
|
|
5054
|
+
row when it moves down, over it when it moves up. A column can reach the last place. The dragged
|
|
5055
|
+
row is at 40% opacity.
|
|
5056
|
+
- A disabled column (it does not apply here) keeps its handle: it can be moved, not toggled.
|
|
5057
|
+
|
|
5058
|
+
### Accessibility
|
|
5059
|
+
|
|
5060
|
+
- The list is a `group` with `aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"`; when the app gives
|
|
5061
|
+
`reorderHint` it is read as the group's description (visually hidden).
|
|
5062
|
+
- Keyboard path: with focus on a row's checkbox, **Alt+ArrowUp / Alt+ArrowDown** moves the column one
|
|
5063
|
+
place and emits `reorder`. Plain arrows are untouched. The handle and the lock are decorative.
|
|
5064
|
+
- Not covered: the app may announce the move in its own live region.
|
|
5065
|
+
|
|
5066
|
+
---
|
|
5067
|
+
|
|
4836
5068
|
<!-- DsFilterChip · Toolbar -->
|
|
4837
5069
|
|
|
4838
5070
|
## DsFilterChip
|
package/llms.txt
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
- DsCompanyLogo (Company): A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
9
9
|
- DsProfileCompanyCard (Company): The company card of the full-profile drawer, always shown (before and after reveal) — the
|
|
10
10
|
- DsAddToSequence (Contact data): The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
11
|
+
- DsContactCard (Contact data): One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
|
|
11
12
|
- DsContactCell (Contact data): The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
12
13
|
- DsContactGroups (Contact data): One contact's data, **always open**: a band per type with its count («WORK (1)») over its values,
|
|
13
14
|
- DsContactList (Contact data): The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|
|
@@ -46,6 +47,10 @@
|
|
|
46
47
|
- DsAddToBar (Extension panel): The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
47
48
|
- DsBulkBar (Extension panel): The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
48
49
|
- DsContactRow (Extension panel): One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
50
|
+
- DsCreditsChip (Extension panel): The credits button of the side panel header: `toll` + the available balance (`en-US`, never
|
|
51
|
+
- DsCreditsNotice (Extension panel): A short `role="status"` notice inside the credits popover.
|
|
52
|
+
- DsCreditsPopover (Extension panel): The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
|
|
53
|
+
- DsCreditsSummary (Extension panel): The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
|
|
49
54
|
- DsPanelFrame (Extension panel): The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
50
55
|
- DsPanelHeader (Extension panel): The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
51
56
|
- DsPanelLauncher (Extension panel): The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
@@ -80,6 +85,7 @@
|
|
|
80
85
|
- DsProfileRichSections (Profile): The sections of a full profile that come from the person's own record: **Details**
|
|
81
86
|
- DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
82
87
|
- DsUpgradeNotice (Profile): The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
88
|
+
- DsColumnList (Toolbar): The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
83
89
|
- DsFilterChip (Toolbar): A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
|
|
84
90
|
- DsMenuBackRow (Toolbar): The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
|
|
85
91
|
- DsMenuDrillRow (Toolbar): A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron.…
|
package/package.json
CHANGED