@salesql/sql_components_vue3 3.37.0 → 4.1.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.
@@ -17,6 +17,8 @@ export interface DsContactCardProps {
17
17
  selectable?: boolean;
18
18
  /** v-model:selected — the checkbox, and the accent background of the card. */
19
19
  selected?: boolean;
20
+ /** Disables the checkbox while the app cannot take a selection change, e.g. during a bulk action. The open button stays enabled. */
21
+ selectDisabled?: boolean;
20
22
  /** Accessible name of the checkbox (it has no visible label), e.g. «Select Ada Lovelace». App copy. */
21
23
  selectLabel?: string;
22
24
  /** Accessible name of the open button. Optional: the visible name already names it; when set it must contain it (WCAG 2.5.3). App copy. */
@@ -29,6 +29,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
29
29
  };
30
30
  selectable: BooleanConstructor;
31
31
  selected: BooleanConstructor;
32
+ selectDisabled: BooleanConstructor;
32
33
  selectLabel: {
33
34
  type: StringConstructor;
34
35
  default: string;
@@ -67,6 +68,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
67
68
  };
68
69
  selectable: BooleanConstructor;
69
70
  selected: BooleanConstructor;
71
+ selectDisabled: BooleanConstructor;
70
72
  selectLabel: {
71
73
  type: StringConstructor;
72
74
  default: string;
@@ -93,6 +95,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
93
95
  jobTitle: string;
94
96
  openLabel: string;
95
97
  selectLabel: string;
98
+ selectDisabled: boolean;
96
99
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
97
100
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
98
101
  export default _default;
@@ -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,3 @@
1
+ export { default as DsHighlightText } from './DsHighlightText.vue';
2
+ export * from './DsHighlightText.types';
3
+ export { splitHighlights } from './splitHighlights';
@@ -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
- /** Job title / one-line summary. Empty → the headline row is not rendered at all. */
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
- jobTitle: {
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
- jobTitle: {
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 (v3.37.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v4.1.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 (92)
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 export's
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
 
@@ -381,7 +382,7 @@ value is the `row` slot.
381
382
  ### API
382
383
 
383
384
  `firstName` · `lastName` · `jobTitle` · `image` · `uid` · `selectable` (the checkbox is opt-in) ·
384
- `selected` (v-model:selected) · `selectLabel` · `openLabel` · `rows: { id, label }[]`.
385
+ `selected` (v-model:selected) · `selectDisabled` (disables only the checkbox) · `selectLabel` · `openLabel` · `rows: { id, label }[]`.
385
386
  Slot `row` receives `{ row }`. Events: `open`, `update:selected` (boolean).
386
387
 
387
388
  ### Not DsContactRow
@@ -5026,17 +5027,22 @@ prospector, full-profile and contact-list drawers, and in the extension.
5026
5027
 
5027
5028
  ### Props
5028
5029
 
5029
- | Prop | Type | Default | Description |
5030
- | --------------- | -------- | ----------- | ------------------------------------------------------------------------ |
5031
- | `image` | `string` | `''` | Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. |
5032
- | `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
5033
- | `lastName` | `string` | `''` | See `firstName`. |
5034
- | `headline` | `string` | `''` | Job title / one-line summary. Empty → the headline row is not rendered. |
5035
- | `company` | `string` | `''` | Second column, first line (name's style). With `jobTitle`, see below. |
5036
- | `jobTitle` | `string` | `''` | Second column, second line (headline's style). |
5037
- | `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
5038
- | `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
5039
- | `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
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
- - **Headline:** single line, ellipsized. Hidden entirely when empty (no empty row, no
5057
- empty tooltip wrapper).
5058
-
5059
- ### Second column (company / job title)
5060
-
5061
- Passing `company` and/or `jobTitle` splits the body (the avatar is not counted) into two
5062
- columns, **60% / 40%**. Column 1 is what the hero always had: name, headline, LinkedIn
5063
- badge. Column 2 is top-aligned with the name and left-aligned: `company` in the name's text
5064
- style, `jobTitle` below it in the headline's. Only one of them → column 2 shows just that
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 headline (and, in the two-column layout, the name, company and job title) is wrapped in a `DsTooltip`, but **a tooltip that repeats the fully visible
5078
- text is noise** (Diego's rule) — so it only activates when the text is genuinely cut off.
5079
- On `mouseenter` / `focus` the component compares each text `<span>`'s `scrollWidth` to
5080
- its `clientWidth`; DsTooltip's own `disabled` prop is driven by that result (mirroring
5081
- how `DsSavedButton` gates its tooltip with `:disabled="!tooltip || open"`), so the
5082
- `content` prop stays the full text throughout — only `disabled` changes. It's also
5083
- re-measured on mount and whenever its text (or the column layout) changes, so the very first hover isn't the
5084
- only path to a correct state.
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. Headline 12.5px
5099
- (off-scale, follows the export), `slate-main`, line-height 1.4. Links row: gap 8,
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**:…
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.37.0",
3
+ "version": "4.1.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",