@salesql/sql_components_vue3 3.37.0 → 4.0.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +3558 -3518
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsHighlightText/DsHighlightText.types.d.ts +10 -0
- package/dist/ui/DsHighlightText/DsHighlightText.vue.d.ts +23 -0
- package/dist/ui/DsHighlightText/index.d.ts +3 -0
- package/dist/ui/DsHighlightText/splitHighlights.d.ts +6 -0
- package/dist/ui/DsProfileHero/DsProfileHero.types.d.ts +14 -8
- package/dist/ui/DsProfileHero/DsProfileHero.vue.d.ts +48 -2
- package/llms-full.txt +66 -43
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface DsHighlightSegment {
|
|
2
|
+
text: string;
|
|
3
|
+
/** True for a run that matched one of the terms. */
|
|
4
|
+
match: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface DsHighlightTextProps {
|
|
7
|
+
text: string;
|
|
8
|
+
/** Case- and accent-insensitive plain text; blank ones ignored. Empty → nothing marked. */
|
|
9
|
+
terms?: string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
text: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
terms: {
|
|
8
|
+
type: PropType<string[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
text: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
terms: {
|
|
17
|
+
type: PropType<string[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
|
+
terms: string[];
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DsHighlightSegment } from './DsHighlightText.types';
|
|
2
|
+
/**
|
|
3
|
+
* Splits `text` into marked and unmarked runs, ignoring case and accents; overlapping or
|
|
4
|
+
* touching matches merge into one run. Terms are plain text, never patterns.
|
|
5
|
+
*/
|
|
6
|
+
export declare function splitHighlights(text: string, terms: readonly string[]): DsHighlightSegment[];
|
|
@@ -3,16 +3,22 @@ export interface DsProfileHeroProps {
|
|
|
3
3
|
image?: string;
|
|
4
4
|
firstName?: string;
|
|
5
5
|
lastName?: string;
|
|
6
|
-
/**
|
|
6
|
+
/** The LinkedIn headline, grey, clamped to 2 lines. Empty → not rendered. */
|
|
7
7
|
headline?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Current company, first line of the second column (name's text style). With `company`
|
|
10
|
-
* or `jobTitle` the body splits 60/40 and every text ellipsizes, each with a tooltip
|
|
11
|
-
* only when actually truncated. Neither → no second column, the hero looks as before.
|
|
12
|
-
*/
|
|
13
|
-
company?: string;
|
|
14
|
-
/** Job title at that company, second line of the second column (headline's text style). */
|
|
8
|
+
/** Job title of the primary position, in bold. Empty → no title line, only the headline. */
|
|
15
9
|
jobTitle?: string;
|
|
10
|
+
/** Company of the primary position, after `atLabel` on the title line. */
|
|
11
|
+
company?: string;
|
|
12
|
+
/** The connector between title and company («at»), translated. Empty → no company. */
|
|
13
|
+
atLabel?: string;
|
|
14
|
+
/** Terms marked in the job title and the headline (case-insensitive). */
|
|
15
|
+
highlightTerms?: string[];
|
|
16
|
+
/** The job title matched only through the headline: shows `headlineMatchedLabel`. */
|
|
17
|
+
headlineMatched?: boolean;
|
|
18
|
+
/** The badge's text («Matched in headline»), translated. Empty → no badge. */
|
|
19
|
+
headlineMatchedLabel?: string;
|
|
20
|
+
/** Small line under the headline, joined with « · »; empty items are dropped. */
|
|
21
|
+
details?: string[];
|
|
16
22
|
/** Header LinkedIn badge target. Empty → no badge, no links row. */
|
|
17
23
|
linkedinUrl?: string;
|
|
18
24
|
/** Accessible name and tooltip content of the LinkedIn badge. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
1
2
|
declare var __VLS_19: {};
|
|
2
3
|
type __VLS_Slots = {} & {
|
|
3
4
|
actions?: (props: typeof __VLS_19) => any;
|
|
@@ -19,14 +20,34 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
19
20
|
type: StringConstructor;
|
|
20
21
|
default: string;
|
|
21
22
|
};
|
|
23
|
+
jobTitle: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
22
27
|
company: {
|
|
23
28
|
type: StringConstructor;
|
|
24
29
|
default: string;
|
|
25
30
|
};
|
|
26
|
-
|
|
31
|
+
atLabel: {
|
|
27
32
|
type: StringConstructor;
|
|
28
33
|
default: string;
|
|
29
34
|
};
|
|
35
|
+
highlightTerms: {
|
|
36
|
+
type: PropType<string[]>;
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
headlineMatched: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
headlineMatchedLabel: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
details: {
|
|
48
|
+
type: PropType<string[]>;
|
|
49
|
+
default: () => never[];
|
|
50
|
+
};
|
|
30
51
|
linkedinUrl: {
|
|
31
52
|
type: StringConstructor;
|
|
32
53
|
default: string;
|
|
@@ -56,14 +77,34 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
56
77
|
type: StringConstructor;
|
|
57
78
|
default: string;
|
|
58
79
|
};
|
|
80
|
+
jobTitle: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
59
84
|
company: {
|
|
60
85
|
type: StringConstructor;
|
|
61
86
|
default: string;
|
|
62
87
|
};
|
|
63
|
-
|
|
88
|
+
atLabel: {
|
|
64
89
|
type: StringConstructor;
|
|
65
90
|
default: string;
|
|
66
91
|
};
|
|
92
|
+
highlightTerms: {
|
|
93
|
+
type: PropType<string[]>;
|
|
94
|
+
default: () => never[];
|
|
95
|
+
};
|
|
96
|
+
headlineMatched: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
headlineMatchedLabel: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
details: {
|
|
105
|
+
type: PropType<string[]>;
|
|
106
|
+
default: () => never[];
|
|
107
|
+
};
|
|
67
108
|
linkedinUrl: {
|
|
68
109
|
type: StringConstructor;
|
|
69
110
|
default: string;
|
|
@@ -77,6 +118,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
77
118
|
default: undefined;
|
|
78
119
|
};
|
|
79
120
|
}>> & Readonly<{}>, {
|
|
121
|
+
details: string[];
|
|
80
122
|
image: string;
|
|
81
123
|
firstName: string;
|
|
82
124
|
lastName: string;
|
|
@@ -86,6 +128,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
86
128
|
linkedinLabel: string;
|
|
87
129
|
headline: string;
|
|
88
130
|
jobTitle: string;
|
|
131
|
+
atLabel: string;
|
|
132
|
+
highlightTerms: string[];
|
|
133
|
+
headlineMatched: boolean;
|
|
134
|
+
headlineMatchedLabel: string;
|
|
89
135
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
136
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
91
137
|
export default _default;
|
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v4.0.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,7 +48,7 @@ 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 (93)
|
|
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
|
|
@@ -134,6 +134,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
134
134
|
- **DsProfileSkeleton** (Profile) — The full profile while the panel reads SalesQL, in place of a spinner. Grey `DsSkeleton` blocks
|
|
135
135
|
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
136
136
|
- **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
137
|
+
- **DsHighlightText** (Text) — A text with every occurrence of some terms wrapped in `<mark>`: the terms a search
|
|
137
138
|
- **DsColumnList** (Toolbar) — The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
138
139
|
- **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;…
|
|
139
140
|
- **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**:…
|
|
@@ -228,8 +229,8 @@ design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
|
228
229
|
"in" badge.
|
|
229
230
|
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
230
231
|
that appears only when the text is actually cut (`DsClampedText`).
|
|
231
|
-
- **Fields:** one label / value row per field, in the order received — the
|
|
232
|
-
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
232
|
+
- **Fields:** one label / value row per field, in the order received — the drawer's
|
|
233
|
+
Headquarters, **HQ phone**, **Founded**, **Type**, Website. A field with an empty value is **not
|
|
233
234
|
rendered**; one with `href` is a link in the accent ink.
|
|
234
235
|
- **No company** (`name` empty): the card shows `emptyLabel` with a building glyph.
|
|
235
236
|
|
|
@@ -5026,17 +5027,22 @@ prospector, full-profile and contact-list drawers, and in the extension.
|
|
|
5026
5027
|
|
|
5027
5028
|
### Props
|
|
5028
5029
|
|
|
5029
|
-
| Prop
|
|
5030
|
-
|
|
|
5031
|
-
| `image`
|
|
5032
|
-
| `firstName`
|
|
5033
|
-
| `lastName`
|
|
5034
|
-
| `headline`
|
|
5035
|
-
| `
|
|
5036
|
-
| `
|
|
5037
|
-
| `
|
|
5038
|
-
| `
|
|
5039
|
-
| `
|
|
5030
|
+
| Prop | Type | Default | Description |
|
|
5031
|
+
| ---------------------- | ---------- | ----------- | --------------------------------------------------------------------------------------------- |
|
|
5032
|
+
| `image` | `string` | `''` | Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. |
|
|
5033
|
+
| `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
|
|
5034
|
+
| `lastName` | `string` | `''` | See `firstName`. |
|
|
5035
|
+
| `headline` | `string` | `''` | The LinkedIn headline, grey, up to 2 lines. Empty → not rendered. |
|
|
5036
|
+
| `jobTitle` | `string` | `''` | Job title of the primary position, bold, first part of the title line. Empty → no title line. |
|
|
5037
|
+
| `company` | `string` | `''` | Company of the primary position, after `atLabel`. |
|
|
5038
|
+
| `atLabel` | `string` | `''` | The connector («at»), translated by the app. Empty → the company is left out. |
|
|
5039
|
+
| `highlightTerms` | `string[]` | `[]` | Terms marked in the job title and the headline (`DsHighlightText`). |
|
|
5040
|
+
| `headlineMatched` | `boolean` | `false` | The title matched only through the headline → shows the match badge. |
|
|
5041
|
+
| `headlineMatchedLabel` | `string` | `''` | The badge's text («Matched in headline»). Empty → no badge. |
|
|
5042
|
+
| `details` | `string[]` | `[]` | Small line under the headline, joined with « · »; empty items dropped. |
|
|
5043
|
+
| `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
|
|
5044
|
+
| `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
|
|
5045
|
+
| `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
|
|
5040
5046
|
|
|
5041
5047
|
### Slots
|
|
5042
5048
|
|
|
@@ -5053,35 +5059,26 @@ prospector, full-profile and contact-list drawers, and in the extension.
|
|
|
5053
5059
|
- **Name:** `{firstName} {lastName}`, trimmed — a lone first or last name renders without
|
|
5054
5060
|
a stray leading/trailing space. Gains `padding-right: 24px` when `#actions` is present,
|
|
5055
5061
|
so a long name never runs under the icon.
|
|
5056
|
-
- **
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
line. Neither → no second column and the hero renders as before (name wraps, no name
|
|
5066
|
-
tooltip).
|
|
5067
|
-
|
|
5068
|
-
In the two-column layout **every text ellipsizes** (name, headline, company, job title).
|
|
5069
|
-
The 14px gutter between the columns lives inside column 1's 60%, so the split is exact.
|
|
5070
|
-
|
|
5071
|
-
**With `#actions`:** the icon sits over column 2's top-right corner, so the 24px
|
|
5072
|
-
`padding-right` that the name carries in the single-column hero moves to column 2's first
|
|
5073
|
-
line (the company, or the job title when there is no company). The name no longer needs it.
|
|
5062
|
+
- **Title line:** `<strong>{jobTitle}</strong> {atLabel} {company}`, one line, ellipsized.
|
|
5063
|
+
Rendered only with a `jobTitle`: without one, the hero shows just the headline (the
|
|
5064
|
+
company is already in the company card).
|
|
5065
|
+
- **Headline:** grey, clamped to 2 lines with an ellipsis. Hidden when empty.
|
|
5066
|
+
- **Match badge:** «Matched in headline» under the headline when `headlineMatched` and its
|
|
5067
|
+
label are set; never without a headline. Accent tint and accent-shadow ink.
|
|
5068
|
+
- **Details:** «In role since 2021 · 12 years of experience», caption size, `slate-soft`.
|
|
5069
|
+
- **Highlight:** `highlightTerms` are marked with `DsHighlightText` in the title and the
|
|
5070
|
+
headline: the same component the prospector's row uses, so both read the same.
|
|
5074
5071
|
|
|
5075
5072
|
### Tooltip: only when actually truncated
|
|
5076
5073
|
|
|
5077
|
-
The
|
|
5078
|
-
text is
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5074
|
+
The title line and the headline are wrapped in a `DsTooltip` that **only activates when
|
|
5075
|
+
the text is genuinely cut off** (a tooltip repeating visible text is noise). The title line
|
|
5076
|
+
compares `scrollWidth` to `clientWidth`; the 2-line headline compares `scrollHeight` to
|
|
5077
|
+
`clientHeight` (1px of slack for fractional line-heights). Measured on mount, on
|
|
5078
|
+
`mouseenter` / `focus`, and whenever the text changes; `content` stays the full text and
|
|
5079
|
+
only `disabled` changes.
|
|
5080
|
+
While cut, the text also gets `tabindex="0"` (and a focus ring), so keyboard users
|
|
5081
|
+
can reach the tooltip; a text that fits stays out of the tab order.
|
|
5085
5082
|
|
|
5086
5083
|
### Accessibility
|
|
5087
5084
|
|
|
@@ -5095,8 +5092,9 @@ only path to a correct state.
|
|
|
5095
5092
|
|
|
5096
5093
|
Root: flex row, gap 14, padding 14, white, 1px `slate-tint` border, radius 6. Avatar 64,
|
|
5097
5094
|
radius 6, accent `colors.$accent-bg` / `colors.$accent-shadow`, initials 20px / 800,
|
|
5098
|
-
letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2.
|
|
5099
|
-
|
|
5095
|
+
letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2. Title line 13px (`small`), `slate-main`,
|
|
5096
|
+
the job title bold in `grey-10`. Headline 12.5px (`label`), `slate-soft`, line-height 1.4,
|
|
5097
|
+
2 lines. Badge 10px (`micro`) / 800, padding 2 × 6. Links row: gap 8,
|
|
5100
5098
|
margin-top 4. LinkedIn badge 22 × 22, radius 4 (`DsProfileCompanyCard`'s value, not
|
|
5101
5099
|
`DsCompanyCard`'s off-scale 5), 11px / 800.
|
|
5102
5100
|
|
|
@@ -5375,6 +5373,31 @@ accent is too faint for 14px text on the tint.
|
|
|
5375
5373
|
|
|
5376
5374
|
---
|
|
5377
5375
|
|
|
5376
|
+
<!-- DsHighlightText · Text -->
|
|
5377
|
+
|
|
5378
|
+
## DsHighlightText
|
|
5379
|
+
|
|
5380
|
+
A text with every occurrence of some terms wrapped in `<mark>`: the terms a search
|
|
5381
|
+
matched, e.g. the prospector's job-title filter on the table row and in `DsProfileHero`.
|
|
5382
|
+
Using the same component in both places keeps the highlight identical.
|
|
5383
|
+
|
|
5384
|
+
### Props
|
|
5385
|
+
|
|
5386
|
+
| Prop | Type | Default | Description |
|
|
5387
|
+
| ------- | ---------- | ------- | --------------------------------------------------------------------------------- |
|
|
5388
|
+
| `text` | `string` | — | The text. Rendered as text nodes, never as HTML. |
|
|
5389
|
+
| `terms` | `string[]` | `[]` | Ignores case and accents; trimmed; blank ones ignored; overlapping matches merge. |
|
|
5390
|
+
|
|
5391
|
+
`splitHighlights(text, terms)` is exported too, for a consumer that needs the runs
|
|
5392
|
+
(`{ text, match }[]`) without the component.
|
|
5393
|
+
|
|
5394
|
+
### Design
|
|
5395
|
+
|
|
5396
|
+
The mark is `amber-tint-strong` with `radius-control`, keeping the text's own colour and
|
|
5397
|
+
weight, so it works inside a bold title and a grey headline alike.
|
|
5398
|
+
|
|
5399
|
+
---
|
|
5400
|
+
|
|
5378
5401
|
<!-- DsColumnList · Toolbar -->
|
|
5379
5402
|
|
|
5380
5403
|
The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
package/llms.txt
CHANGED
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
- DsProfileSkeleton (Profile): The full profile while the panel reads SalesQL, in place of a spinner. Grey `DsSkeleton` blocks
|
|
89
89
|
- DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
90
90
|
- DsUpgradeNotice (Profile): The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
91
|
+
- DsHighlightText (Text): A text with every occurrence of some terms wrapped in `<mark>`: the terms a search
|
|
91
92
|
- DsColumnList (Toolbar): The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
92
93
|
- 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;…
|
|
93
94
|
- 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**:…
|