@salesql/sql_components_vue3 3.28.0 → 3.29.1

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/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.28.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.29.1)
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
 
@@ -278,39 +278,43 @@ switches look with `variant` and `size`.
278
278
  The library knows nothing about campaigns or sending: it renders the list you pass and
279
279
  emits the intent.
280
280
 
281
+ A chosen campaign never leaves sight: when a search or a reload leaves it out of
282
+ `campaigns`, it stays checked on top of the list (above the spinner and the empty state too),
283
+ so Add never sends a campaign the user cannot see. One still listed keeps its place.
284
+
281
285
  ### Props
282
286
 
283
- | Prop | Type | Default | Description |
284
- | ------------------- | --------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------- |
285
- | `label` | `string` | — | Trigger label (required). |
286
- | `tooltip` | `string` | `''` | Empty = no tooltip. Leave it empty when it would only repeat the label (the export's tip does); it hides while the panel is open. |
287
- | `channelsLabel` | `string` | — | Caption above the radios ("Send to") (required). |
288
- | `channels` | `DsSequenceChannelOption[]` | — | `{ value: 'work' \| 'direct', label }` — the app passes the labels (required). |
289
- | `defaultChannel` | `'work' \| 'direct'` | `'work'` | Initially selected channel. |
290
- | `campaignsLabel` | `string` | `''` | Caption above the list ("Recent campaigns"). Empty = none. |
291
- | `campaigns` | `DsPickerOption[]` | — | The campaigns to offer (required). |
292
- | `selection` | `'multiple' \| 'single'` | `'multiple'` | `multiple`: checkboxes. `single`: radios, one campaign per Add. |
293
- | `loading` | `boolean` | `false` | The app is fetching campaigns: a spinner replaces the list and the empty state. The search stays usable. |
294
- | `loadingLabel` | `string` | `''` | Accessible name of the spinner. Empty = DsSpinner's own ("Loading"). |
295
- | `searchPlaceholder` | `string` | `''` | |
296
- | `emptyLabel` | `string` | `''` | Shown when the list is empty: no campaigns, or a search with no matches. |
297
- | `createLabel` | `string` | `''` | The empty state's CTA ("Create campaign"): a tertiary `DsButton` under `emptyLabel` that emits `create`. Empty = no CTA. |
298
- | `addLabel` | `string` | — | The confirm (required). |
299
- | `variant` | `'secondary' \| 'primary'` | `'secondary'` | `DsButton outline` (white, hairline ring) or `DsButton primary` (solid accent). |
300
- | `size` | `'medium' \| 'large'` | `'medium'` | 32px / 36px trigger. |
301
- | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) — the bulk-bar look beside `DsItemSelectorButton`. |
302
- | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 288px panel hangs from. |
303
- | `disabled` | `boolean` | `false` | |
304
- | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
287
+ | Prop | Type | Default | Description |
288
+ | ------------------- | --------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
289
+ | `label` | `string` | — | Trigger label (required). |
290
+ | `tooltip` | `string` | `''` | Empty = no tooltip. Leave it empty when it would only repeat the label (the export's tip does); it hides while the panel is open. |
291
+ | `channelsLabel` | `string` | — | Caption above the radios ("Send to") (required). |
292
+ | `channels` | `DsSequenceChannelOption[]` | — | `{ value: 'work' \| 'direct', label }` — the app passes the labels (required). |
293
+ | `defaultChannel` | `'work' \| 'direct'` | `'work'` | Initially selected channel. |
294
+ | `campaignsLabel` | `string` | `''` | Caption above the list ("Recent campaigns"). Empty = none. |
295
+ | `campaigns` | `DsPickerOption[]` | — | The campaigns to offer (required). |
296
+ | `selection` | `'multiple' \| 'single'` | `'multiple'` | `multiple`: checkboxes. `single`: radios, one campaign per Add. |
297
+ | `loading` | `boolean` | `false` | The app is fetching campaigns: a spinner replaces the list and the empty state, under any pinned chosen campaign. The search stays usable. |
298
+ | `loadingLabel` | `string` | `''` | Accessible name of the spinner. Empty = DsSpinner's own ("Loading"). |
299
+ | `searchPlaceholder` | `string` | `''` | |
300
+ | `emptyLabel` | `string` | `''` | Shown when the list is empty: no campaigns, or a search with no matches. |
301
+ | `createLabel` | `string` | `''` | The empty state's CTA ("Create campaign"): a tertiary `DsButton` under `emptyLabel` that emits `create`. Empty = no CTA. |
302
+ | `addLabel` | `string` | — | The confirm (required). |
303
+ | `variant` | `'secondary' \| 'primary'` | `'secondary'` | `DsButton outline` (white, hairline ring) or `DsButton primary` (solid accent). |
304
+ | `size` | `'medium' \| 'large'` | `'medium'` | 32px / 36px trigger. |
305
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) — the bulk-bar look beside `DsItemSelectorButton`. |
306
+ | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 288px panel hangs from. |
307
+ | `disabled` | `boolean` | `false` | |
308
+ | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
305
309
 
306
310
  ### Events
307
311
 
308
- | Event | Payload | When |
309
- | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
310
- | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. `campaigns` keeps the order they were chosen in (one item in `single`). |
311
- | `search` | `string` | Every keystroke, no debounce. The list also filters locally; an app that searches on the server debounces this and swaps `campaigns` (with `loading` while it waits). A chosen campaign survives the swap. |
312
- | `create` | `string` | The empty state's CTA was clicked. Payload: the search text, trimmed. Panel closes; the app owns creation (it navigates to Campaigns). |
313
- | `update:open` | `boolean` | The panel opened or closed. |
312
+ | Event | Payload | When |
313
+ | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
314
+ | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. `campaigns` keeps the order they were chosen in (one item in `single`). |
315
+ | `search` | `string` | Every keystroke, no debounce. The list also filters locally; an app that searches on the server debounces this and swaps `campaigns` (with `loading` while it waits). A chosen campaign survives the swap and stays pinned on top. |
316
+ | `create` | `string` | The empty state's CTA was clicked. Payload: the search text, trimmed. Panel closes; the app owns creation (it navigates to Campaigns). |
317
+ | `update:open` | `boolean` | The panel opened or closed. |
314
318
 
315
319
  ### Accessibility
316
320
 
@@ -4143,6 +4147,8 @@ prospector, full-profile and contact-list drawers, and in the extension.
4143
4147
  | `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
4144
4148
  | `lastName` | `string` | `''` | See `firstName`. |
4145
4149
  | `headline` | `string` | `''` | Job title / one-line summary. Empty → the headline row is not rendered. |
4150
+ | `company` | `string` | `''` | Second column, first line (name's style). With `jobTitle`, see below. |
4151
+ | `jobTitle` | `string` | `''` | Second column, second line (headline's style). |
4146
4152
  | `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
4147
4153
  | `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
4148
4154
  | `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
@@ -4165,15 +4171,31 @@ prospector, full-profile and contact-list drawers, and in the extension.
4165
4171
  - **Headline:** single line, ellipsized. Hidden entirely when empty (no empty row, no
4166
4172
  empty tooltip wrapper).
4167
4173
 
4174
+ ### Second column (company / job title)
4175
+
4176
+ Passing `company` and/or `jobTitle` splits the body (the avatar is not counted) into two
4177
+ columns, **60% / 40%**. Column 1 is what the hero always had: name, headline, LinkedIn
4178
+ badge. Column 2 is top-aligned with the name and left-aligned: `company` in the name's text
4179
+ style, `jobTitle` below it in the headline's. Only one of them → column 2 shows just that
4180
+ line. Neither → no second column and the hero renders as before (name wraps, no name
4181
+ tooltip).
4182
+
4183
+ In the two-column layout **every text ellipsizes** (name, headline, company, job title).
4184
+ The 14px gutter between the columns lives inside column 1's 60%, so the split is exact.
4185
+
4186
+ **With `#actions`:** the icon sits over column 2's top-right corner, so the 24px
4187
+ `padding-right` that the name carries in the single-column hero moves to column 2's first
4188
+ line (the company, or the job title when there is no company). The name no longer needs it.
4189
+
4168
4190
  ### Tooltip: only when actually truncated
4169
4191
 
4170
- The headline is wrapped in a `DsTooltip`, but **a tooltip that repeats the fully visible
4192
+ 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
4171
4193
  text is noise** (Diego's rule) — so it only activates when the text is genuinely cut off.
4172
- On `mouseenter` / `focus` the component compares the headline `<span>`'s `scrollWidth` to
4194
+ On `mouseenter` / `focus` the component compares each text `<span>`'s `scrollWidth` to
4173
4195
  its `clientWidth`; DsTooltip's own `disabled` prop is driven by that result (mirroring
4174
4196
  how `DsSavedButton` gates its tooltip with `:disabled="!tooltip || open"`), so the
4175
- `content` prop stays the full headline throughout — only `disabled` changes. It's also
4176
- re-measured on mount and whenever `headline` changes, so the very first hover isn't the
4197
+ `content` prop stays the full text throughout — only `disabled` changes. It's also
4198
+ re-measured on mount and whenever its text (or the column layout) changes, so the very first hover isn't the
4177
4199
  only path to a correct state.
4178
4200
 
4179
4201
  ### Accessibility
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.28.0",
3
+ "version": "3.29.1",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",