@salesql/sql_components_vue3 3.17.0 → 3.19.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.
Files changed (38) hide show
  1. package/dist/composables/useViewportClamp.d.ts +9 -4
  2. package/dist/constants/contact-data.d.ts +31 -1
  3. package/dist/constants/events.d.ts +6 -0
  4. package/dist/icons/icons.types.d.ts +38 -0
  5. package/dist/icons/registry.d.ts +30 -0
  6. package/dist/icons/registry.generated.d.ts +4 -0
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.ts +13 -6
  10. package/dist/index.es.js +4005 -2668
  11. package/dist/index.es.js.map +1 -1
  12. package/dist/sql_components_vue3.css +1 -1
  13. package/dist/ui/DsActionMenu/DsActionMenu.vue.d.ts +1 -1
  14. package/dist/ui/DsCheckbox/DsCheckbox.vue.d.ts +1 -1
  15. package/dist/ui/DsContactCell/DsContactCell.types.d.ts +43 -1
  16. package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +81 -4
  17. package/dist/ui/DsContactList/DsContactList.types.d.ts +11 -1
  18. package/dist/ui/DsContactList/DsContactList.vue.d.ts +36 -0
  19. package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.types.d.ts +10 -2
  20. package/dist/ui/DsDeliverabilityBadge/DsDeliverabilityBadge.vue.d.ts +11 -1
  21. package/dist/ui/DsEmailEditor/DsEmailEditor.types.d.ts +42 -0
  22. package/dist/ui/DsEmailEditor/DsEmailEditor.vue.d.ts +40 -0
  23. package/dist/ui/DsEmailEditor/index.d.ts +2 -0
  24. package/dist/ui/DsIcon/DsIcon.story-weights.d.ts +2 -0
  25. package/dist/ui/DsIcon/DsIcon.types.d.ts +31 -0
  26. package/dist/ui/DsIcon/DsIcon.vue.d.ts +66 -0
  27. package/dist/ui/DsIcon/index.d.ts +2 -0
  28. package/dist/ui/DsInput/DsInput.types.d.ts +1 -0
  29. package/dist/ui/DsPopover/DsPopover.types.d.ts +12 -1
  30. package/dist/ui/DsPopover/DsPopover.vue.d.ts +10 -1
  31. package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +1 -1
  32. package/llms-full.txt +367 -83
  33. package/llms.txt +3 -1
  34. package/package.json +10 -2
  35. package/scripts/generate-icons.mjs +107 -0
  36. package/scripts/icons-svg.mjs +185 -0
  37. package/src/icons/NOTICE +8 -0
  38. package/src/icons/manifest.json +138 -0
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.17.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.19.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
 
@@ -37,7 +37,7 @@ Components that draw an icon emit `<i class="material-symbols-filled">{ligature}
37
37
 
38
38
  Components size their own glyphs (their scoped rules outrank the 20px default), so the class only has to supply the family and fill. Consumers with a `#leading`/`#trailing` slot may pass any element they like instead.
39
39
 
40
- ## Components (53)
40
+ ## Components (55)
41
41
 
42
42
  - **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
43
43
  - **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
@@ -46,7 +46,8 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
46
46
  - **DsContactCell** (Contact data) — The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
47
47
  - **DsContactList** (Contact data) — The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
48
48
  - **DsContactPlaceholder** (Contact data) — The row a contact-data group shows when it has no rows to show — the non-data rows of the
49
- - **DsDeliverabilityBadge** (Contact data) — The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
49
+ - **DsDeliverabilityBadge** (Contact data) — The verification badge. By default (§3.3, «modelo Lusha») a bare green `A+` superscript with
50
+ - **DsEmailEditor** (Contact data) — The **«Edit emails» form** of a contact: a header (title, optional back and close), one input per
50
51
  - **DsMaskedValue** (Contact data) — An email or phone string with the contract's two-tone treatment when the **server** masked
51
52
  - **DsMoreCountChip** (Contact data) — The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
52
53
  - **DsOrganizerForm** (Contact data) — The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
@@ -56,6 +57,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
56
57
  - **DsAvatar** (Core) — Contact/user avatar: an image, generated initials with a deterministic color hash, or an
57
58
  - **DsBadge** (Core) — Solid, white-text pill for value types and counts (e.g. "Work", "New"). **Presentational
58
59
  - **DsButton** (Core) — Standard clickable control with the DS variant/size vocabulary, plus icon-only
60
+ - **DsIcon** (Core) — A Material Symbols icon drawn as inline SVG, with the font axes fixed by size. **Presentational
59
61
  - **DsSpinner** (Core) — Indeterminate loading indicator — a circular SVG spinner. **Presentational only**: no
60
62
  - **DsTag** (Core) — Small bordered chip with an optional × close control. **Presentational only**: `close`
61
63
  - **DsCell** (Data) — A single `<td>` cell in the `DsTable` compound API. **Presentational only**: no props
@@ -309,8 +311,10 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
309
311
 
310
312
  ### Behaviour — hover opens, click pins, ESC closes
311
313
 
312
- - **Hover** anywhere on the cell opens the popover (1 or N items, revealed or not) and emits
313
- `update:open(true)` — lazy-load the group there if you need to.
314
+ - **Hover** anywhere on the cell opens the popover (1 or N items, revealed or not) after
315
+ `enterDelay` (200 ms) and emits `update:open(true)` — lazy-load the group there if you need
316
+ to. Sweeping the pointer across a column opens nothing: leaving before the delay cancels it.
317
+ A click opens at once, and moving into the open panel is never delayed.
314
318
  - **Leaving** closes after `leaveDelay` (220 ms) unless pinned. Re-entering cancels.
315
319
  - **Click** on the value pins it (leaving no longer closes); a second click releases.
316
320
  - **ESC** (anywhere in the document) and a **click outside** close and un-pin.
@@ -320,47 +324,84 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
320
324
  pointer. «Una lista se puede escanear sin clicks.» (contract §3.5)
321
325
  - `disabled` removes the popover entirely — `+N` stays plain text (contract §3.10, class B1).
322
326
 
327
+ ### Edit mode — the editor inside the same popover
328
+
329
+ With `edit-label` the popover header gets a text link on the right («Edit emails»: accent, 600,
330
+ 13px, pointer; the export's 12.5px snaps to the `small` step, the same as the title next to it).
331
+ It renders only while no item is masked (reveal comes first) and only when the app passes the
332
+ copy, so a phone column gets no link unless the app wants it. A click emits `edit`; if the app
333
+ also provides the `editor` slot, the same 300px popover swaps the list for that slot
334
+ (`v-model:editing`, `update:editing`).
335
+
336
+ ```vue
337
+ <DsContactCell v-model:editing="editing" edit-label="Edit emails" … @edit="track">
338
+ <template #editor="{ close, cancel }">
339
+ <DsEmailEditor :items="items" :copy="copy" :saving="saving" @save="persist" @cancel="cancel" @close="close" />
340
+ </template>
341
+ </DsContactCell>
342
+ ```
343
+
344
+ - **`cancel()`** (back, Cancel) returns to the list; the popover stays open and pinned.
345
+ - **`close()`** (the editor's close) closes the popover, un-pins it and leaves the mode.
346
+ - A **successful save** is the app's call: set `editing` to `false` (back to the list with the new
347
+ items) or call `close()`. On error leave it as it is: the editor keeps what the user typed.
348
+ - Entering edit mode **pins** the popover (leaving the cell no longer closes it) and the popover
349
+ **stops closing on an outside click** while editing, so a stray click cannot drop what was typed
350
+ or a save in flight. ESC, a click on the trigger and `close()` still close it. Whatever closes
351
+ the popover leaves the mode, so reopening shows the list.
352
+ - Focus moves to the first field of the editor, and back to the link when the user returns to the list.
353
+ - Without `edit-label` and the `editor` slot nothing changes: the list, hover, pin and outside click
354
+ behave as before.
355
+
323
356
  ### Props
324
357
 
325
- | Prop | Type | Default | Description |
326
- | ------------------------------ | -------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
327
- | `items` | `DsContactItem[]` | — | The group, **primary first**; `items[0]` is what the cell shows (required). |
328
- | `count` | `number \| null` | `null` | Group size the chip subtracts from (`+N` = count − 1). Server count when it exists; else `items.length`. |
329
- | `sections` | `DsContactSection[]` | `[]` | Unified columns (Emails: Work + Direct; Phones: Direct + HQ): the popover bands each type, one total. `items` still drives the cell. |
330
- | `kind` | `'email' \| 'phone'` | — | Masked split rule; badge eligibility (required). |
331
- | `type` | `DsContactType` | `''` | Draws the type glyph. Omitted, the **primary item's** `type` is used (a unified column shows the glyph of the value it shows); an explicit value wins. A `direct` phone draws `call`, a `direct` email `mail`. |
332
- | `label` | `string` | — | The popover variant name ("Work emails"). App copy (required). |
333
- | `badgeLabel` | `string` | — | `A_PLUS_BADGE` (required). |
334
- | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
335
- | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip ("2 more emails"). |
336
- | `emptyLabel` | `string` | `'—'` | Rendered when `items` is empty (a typographic dash, not copy). |
337
- | `showRate` | `boolean` | `false` | Thumbs up / down in the popover rows. |
338
- | `disabled` | `boolean` | `false` | No popover at all. |
339
- | `placement` | `DsPopoverPlacement` | `'over-start'` | Popover side / alignment. `over-start` covers the cell like the export; `bottom-start` opens below it. |
340
- | `offset` | `string` | `'25%'` | Popover anchor shift along the cell (the contract's ¼). |
341
- | `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
342
- | `teleported` | `boolean` | `false` | Renders the popover in `<body>` so a scroller or clipping cell (the prospector table) cannot cut it. Hover still travels cell → panel. |
343
- | `revealLabel` | `string` | `''` | Copy of the «Show details» CTA in the popover header. Rendered only while some item is `masked` **and** this is non-empty (opt-in). |
344
- | `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
345
- | `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
346
- | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
347
- | `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
358
+ | Prop | Type | Default | Description |
359
+ | ----------------------------------- | ------------------------------------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
360
+ | `items` | `DsContactItem[]` | — | The group, **primary first**; `items[0]` is what the cell shows (required). |
361
+ | `count` | `number \| null` | `null` | Group size the chip subtracts from (`+N` = count − 1). Server count when it exists; else `items.length`. |
362
+ | `sections` | `DsContactSection[]` | `[]` | Unified columns (Emails: Work + Direct; Phones: Direct + HQ): the popover bands each type, one total. `items` still drives the cell. |
363
+ | `kind` | `'email' \| 'phone'` | — | Masked split rule; badge eligibility (required). |
364
+ | `type` | `DsContactType` | `''` | Draws the type glyph. Omitted, the **primary item's** `type` is used (a unified column shows the glyph of the value it shows); an explicit value wins. A `direct` phone draws `call`, a `direct` email `mail`. |
365
+ | `label` | `string` | — | The popover variant name ("Work emails"). App copy (required). |
366
+ | `badgeLabel` | `string` | — | `A_PLUS_BADGE` (required). |
367
+ | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
368
+ | `verifyingLabel` … `invalidTooltip` | `string` | `''` | Copy of the «Verifying» / «Invalid» pills of the **popover rows** (never the cell). Each pill renders only when its label is non-empty (opt-in); the tooltip is its meaning and accessible name. |
369
+ | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip ("2 more emails"). |
370
+ | `emptyLabel` | `string` | `'—'` | Rendered when `items` is empty (a typographic dash, not copy). |
371
+ | `showRate` | `boolean` | `false` | Thumbs up / down in the popover rows (a row with `rateable: false` keeps only Copy). |
372
+ | `disabled` | `boolean` | `false` | No popover at all. |
373
+ | `placement` | `DsPopoverPlacement` | `'over-start'` | Popover side / alignment. `over-start` covers the cell like the export; `bottom-start` opens below it. |
374
+ | `offset` | `string` | `'25%'` | Popover anchor shift along the cell (the contract's ¼). |
375
+ | `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
376
+ | `teleported` | `boolean` | `false` | Renders the popover in `<body>` so a scroller or clipping cell (the prospector table) cannot cut it. Hover still travels cell → panel. |
377
+ | `revealLabel` | `string` | `''` | Copy of the «Show details» CTA in the popover header. Rendered only while some item is `masked` **and** this is non-empty (opt-in). |
378
+ | `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
379
+ | `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
380
+ | `editLabel` | `string` | `''` | Copy of the «Edit emails» link in the popover header. Empty = no link (opt-in); hidden while an item is masked. Click emits `edit`. |
381
+ | `editing` | `boolean` | `false` | `v-model:editing`: the popover shows the `editor` slot instead of the list. Only meaningful while open: the popover always opens on the list and closing it always leaves the mode. |
382
+ | `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the popover must stay inside, besides the viewport — forwarded to `DsPopover`. For a sticky «Actions» column, pass the area to its left (see the story «Boundary»). |
383
+ | `enterDelay` | `number` | `200` | How long hover must last before the popover opens (ms). Leaving sooner cancels; click still opens at once; `0` opens on enter. |
384
+ | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
385
+ | `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
348
386
 
349
387
  ### Events
350
388
 
351
- | Event | Payload | When |
352
- | ------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
353
- | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
354
- | `copy` | `DsContactItem` | Emitted once a row's value is on the clipboard (re-emitted from the list). |
355
- | `correct` | `DsContactItem` | Thumbs-up on a row. |
356
- | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
357
- | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
389
+ | Event | Payload | When |
390
+ | ---------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
391
+ | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
392
+ | `copy` | `DsContactItem` | Emitted once a row's value is on the clipboard (re-emitted from the list). |
393
+ | `correct` | `DsContactItem` | Thumbs-up on a row. |
394
+ | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
395
+ | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
396
+ | `edit` | — | The «Edit emails» link was clicked (`edit-label`). With an `editor` slot the popover also enters edit mode. |
397
+ | `update:editing` | `boolean` | Edit mode was entered or left (link, `cancel()`, `close()`, ESC, the popover closing). |
358
398
 
359
399
  ### Slots
360
400
 
361
- | Slot | Where | Use |
362
- | --------- | ---------------------------------- | ---------------------------------------------------- |
363
- | `actions` | Right side of the popover's header | The app's Edit control. Sits next to the reveal CTA. |
401
+ | Slot | Where | Use |
402
+ | --------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
403
+ | `actions` | Right side of the popover's header | Extra header controls of the app. Sits next to the reveal CTA and the edit link. |
404
+ | `editor` | The whole popover, in edit mode | The editor (`DsEmailEditor`). Slot props `{ close, cancel }`: `close()` closes the popover, `cancel()` returns to the list. |
364
405
 
365
406
  ### Teleported popover (tables and scrollers)
366
407
 
@@ -370,6 +411,15 @@ cut at the scroller's edge (see the story «In a scrolling table»: untick _Tele
370
411
  panel travel (the panel's enter / leave cancel and restart the same close timer), and
371
412
  `DsPopover` closes it once the cell's row scrolls out of view.
372
413
 
414
+ ### Keeping clear of the Actions column
415
+
416
+ In the prospector the last contact column sits against the sticky «Actions» column, and the
417
+ panel — over the cell, ¼ in, 300px wide — used to open on top of it. `boundary` (forwarded to
418
+ `DsPopover`) is the area the panel must stay inside, so pass the area to the **left** of
419
+ Actions, as a getter: `() => new DOMRect(0, 0, actionsHeader.getBoundingClientRect().left,
420
+ window.innerHeight)`. The panel then stops flush against Actions (and is narrowed if it is
421
+ wider than the room left). Story: «Boundary — sticky Actions column».
422
+
373
423
  ### Feeding it from the app's view model
374
424
 
375
425
  The cell classifies nothing. The consumer passes one **bucket** and adapts each item to
@@ -390,6 +440,11 @@ const toItem = (it) => ({ const toItem = (it) => ({
390
440
  // count = mobile + direct — NEVER vm.counts.phones (it includes HQ)
391
441
  ```
392
442
 
443
+ `status` is optional and wins over `valid` — set it when the app can tell more than valid / not:
444
+ `'verifying'` and `'invalid'` draw a pill on the popover **rows** (never in the cell); `valid`
445
+ alone keeps working untouched. The item still counts in `+N`, and the app owns the order.
446
+ `rateable: false` marks a row whose thumbs must not show (a value the user typed in): Copy stays.
447
+
393
448
  Labels and badge strings come from the app's `contact-data-contract/contactDataCopy.js`
394
449
  (`COLUMN_LABEL`, `TYPE_LABEL`, `A_PLUS_BADGE`, `A_PLUS_TOOLTIP`).
395
450
 
@@ -408,6 +463,10 @@ Labels and badge strings come from the app's `contact-data-contract/contactDataC
408
463
  - The panel sits _over_ the trigger (`top: −8`) exactly like the export: `DsPopover` gained
409
464
  `over-start` / `over-end` for it (Diego, 22/09). The ¼ shift is the contract's (§3.5), not
410
465
  the export's.
466
+ - The edit link and the editor swap follow `DataPopover` (`startEdit` → the editor with its own
467
+ header, back returns to the list). Library rules win where they differ: the editor's inputs keep
468
+ the library's focus and rest border (see `DsEmailEditor`), and while editing the popover also
469
+ ignores outside clicks (the export closes it), to protect typed text and a save in flight.
411
470
  - **Logged deltas (accepted):** popover chrome is `DsPopover`'s (radius 6, dropdown shadow)
412
471
  rather than the export's (radius 8, deeper shadow). Type glyph 17px → `icon-size(16)`.
413
472
 
@@ -427,24 +486,28 @@ quiet uppercase band per type («WORK (2)»), its rows under it, and one total i
427
486
 
428
487
  ### Props
429
488
 
430
- | Prop | Type | Default | Description |
431
- | ---------------- | -------------------- | ------------- | -------------------------------------------------------------------------------------------------------------- |
432
- | `items` | `DsContactItem[]` | `[]` | The group, primary first, as the view model delivers it. Never reordered. Omit when `sections` drive the rows. |
433
- | `sections` | `DsContactSection[]` | `[]` | Unified variants: `{ type, label, items }` per type → a band + its rows; empty types are skipped. |
434
- | `kind` | `'email' \| 'phone'` | — | Masked split rule, and whether a badge may ever render (required). |
435
- | `type` | `DsContactType` | `''` | `work` · `direct` · `mobile` · `hq` · `other` → the left glyph. Omit for none. |
436
- | `title` | `string` | `''` | Variant name in the header ("Work emails"). The total `(N)` is appended. App copy. |
437
- | `badgeLabel` | `string` | — | `A_PLUS_BADGE` — rendered only on valid emails (required). |
438
- | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
439
- | `showRate` | `boolean` | `false` | Adds thumbs up / down to unmasked rows. |
440
- | `emptyLabel` | `string` | `''` | Shown when `items` is empty. Omit to render nothing. |
441
- | `copyLabel` | `string` | `'Copy'` | Accessible label / title of the copy button. |
442
- | `copiedLabel` | `string` | `'Copied!'` | Shown for ~1.2 s after a copy. |
443
- | `correctLabel` | `string` | `'Correct'` | Accessible label of thumbs-up. |
444
- | `incorrectLabel` | `string` | `'Incorrect'` | Accessible label of thumbs-down. |
445
-
446
- `DsContactItem` is `{ id, value, masked, valid, primary, rating? }` — see `DsContactCell`
447
- for the mapping from the app's view model.
489
+ | Prop | Type | Default | Description |
490
+ | ------------------ | -------------------- | ------------- | -------------------------------------------------------------------------------------------------------------- |
491
+ | `items` | `DsContactItem[]` | `[]` | The group, primary first, as the view model delivers it. Never reordered. Omit when `sections` drive the rows. |
492
+ | `sections` | `DsContactSection[]` | `[]` | Unified variants: `{ type, label, items }` per type → a band + its rows; empty types are skipped. |
493
+ | `kind` | `'email' \| 'phone'` | — | Masked split rule, and whether a badge may ever render (required). |
494
+ | `type` | `DsContactType` | `''` | `work` · `direct` · `mobile` · `hq` · `other` → the left glyph. Omit for none. |
495
+ | `title` | `string` | `''` | Variant name in the header ("Work emails"). The total `(N)` is appended. App copy. |
496
+ | `badgeLabel` | `string` | — | `A_PLUS_BADGE` — rendered only on valid emails (required). |
497
+ | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
498
+ | `verifyingLabel` | `string` | `''` | Text of the «Verifying» pill (`status: 'verifying'`). The pill renders only when this is non-empty. |
499
+ | `verifyingTooltip` | `string` | `''` | The pill's meaning and accessible name. |
500
+ | `invalidLabel` | `string` | `''` | Text of the «Invalid» pill (`status: 'invalid'`). Same opt-in. |
501
+ | `invalidTooltip` | `string` | `''` | The pill's meaning and accessible name. |
502
+ | `showRate` | `boolean` | `false` | Adds thumbs up / down to unmasked rows (except those with `rateable: false`). |
503
+ | `emptyLabel` | `string` | `''` | Shown when `items` is empty. Omit to render nothing. |
504
+ | `copyLabel` | `string` | `'Copy'` | Accessible label / title of the copy button. |
505
+ | `copiedLabel` | `string` | `'Copied!'` | Shown for ~1.2 s after a copy. |
506
+ | `correctLabel` | `string` | `'Correct'` | Accessible label of thumbs-up. |
507
+ | `incorrectLabel` | `string` | `'Incorrect'` | Accessible label of thumbs-down. |
508
+
509
+ `DsContactItem` is `{ id, value, masked, valid, primary, rating?, status?, rateable? }` — see
510
+ `DsContactCell` for the mapping from the app's view model.
448
511
 
449
512
  ### Events
450
513
 
@@ -462,7 +525,11 @@ for the mapping from the app's view model.
462
525
 
463
526
  ### Rules it enforces
464
527
 
465
- - **Badge** = `kind === 'email' && item.valid`. Phones never; masked valid emails yes.
528
+ - **Badge** = `kind === 'email'` and a verdict: `status` (when set) wins over `valid`;
529
+ `valid` → A+, `verifying` / `invalid` → a pill (once its copy is passed). Phones never;
530
+ masked emails with a verdict yes. No verdict, no mark. Rows are never reordered.
531
+ - **Rate** = `showRate && item.rateable !== false`. A user-added row sets `rateable: false`:
532
+ it offers Copy only, while the other rows keep the thumbs.
466
533
  - **Masked rows have no actions** — there is no full value to copy or judge.
467
534
  - **Keys** are `item.id`, falling back to the value. Never the index.
468
535
 
@@ -530,27 +597,35 @@ already rules that edge), as `DsProfileGroupBar` does.
530
597
 
531
598
  ## DsDeliverabilityBadge
532
599
 
533
- The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
534
- superscript with the tooltip that carries its meaning. Valid / Unverifiable / accept-all /
535
- last-verified badges were retired on 2026-07-09 — nothing else renders.
600
+ The verification badge. By default (§3.3, «modelo Lusha») a bare green `A+` superscript with
601
+ the tooltip that carries its meaning. Valid / Unverifiable / accept-all / last-verified badges
602
+ were retired on 2026-07-09 — `status` adds only the two states a row can be in besides A+:
603
+
604
+ - `verifying` — grey pill with a 12px spinner (`DsSpinner`, `dark`) and the word.
605
+ - `invalid` — text-only pill on the error tint, text in `error-deep`.
536
606
 
537
- **It does not decide whether to show.** The rule is the composer's and it is one line:
538
- `valid && kind === 'email'`. Phones never carry verification, whatever their status; a
539
- masked preview that is valid still gets the badge.
607
+ Both pills are `caption` bold, `radius-control`, 24px tall (`control-height('small')`, the
608
+ smallest step of the height scale).
609
+
610
+ **It does not decide whether to show.** The rule is the composer's: an email with a verdict
611
+ (`valid` → A+, `verifying`, `invalid`). Phones never carry verification, whatever their
612
+ status; a masked preview with a verdict still gets its badge.
540
613
 
541
614
  ### Props
542
615
 
543
- | Prop | Type | Default | Description |
544
- | ----------- | ---------------------------------------- | ------- | ------------------------------------------------------------------------------------------- |
545
- | `label` | `string` | — | The glyph text. The app passes the contract's `A_PLUS_BADGE` (required). |
546
- | `tooltip` | `string` | — | The meaning — `A_PLUS_TOOLTIP` — shown on hover/focus; also the accessible name (required). |
547
- | `placement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'top'` | Tooltip side. |
548
- | `focusable` | `boolean` | `true` | Standalone, the glyph is a tab stop. Inside a focusable trigger pass `false`. |
616
+ | Prop | Type | Default | Description |
617
+ | ----------- | ---------------------------------------- | ---------- | ----------------------------------------------------------------------------- |
618
+ | `status` | `'a-plus' \| 'verifying' \| 'invalid'` | `'a-plus'` | Which badge. `a-plus` is the bare glyph; the other two are pills. |
619
+ | `label` | `string` | — | The visible text: `A_PLUS_BADGE` or the pill's word. App copy (required). |
620
+ | `tooltip` | `string` | — | The meaning, shown on hover/focus; also the accessible name (required). |
621
+ | `placement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'top'` | Tooltip side. |
622
+ | `focusable` | `boolean` | `true` | Standalone, the glyph is a tab stop. Inside a focusable trigger pass `false`. |
549
623
 
550
624
  ### Accessibility
551
625
 
552
626
  - The glyph is `role="img"` with `aria-label` = `tooltip`, so a screen reader announces the
553
- meaning rather than two letters.
627
+ meaning rather than two letters (or the pill's word). The pill's spinner is decorative
628
+ (`aria-hidden`) and stops rotating under `prefers-reduced-motion`.
554
629
  - Standalone it is keyboard-reachable (`tabindex="0"`) and the tooltip opens on focus.
555
630
  - **Known gap, recorded by the contract:** `#2E9E6E` on white is 3.37:1 at 9px, below the
556
631
  4.5:1 AA floor. It is frozen because three surfaces must match; raising it is a design
@@ -563,6 +638,90 @@ colour `$contact-data-badge-a-plus-ink`. Mirrored 1:1 from the contract partial.
563
638
 
564
639
  ---
565
640
 
641
+ <!-- DsEmailEditor · Contact data -->
642
+
643
+ ## DsEmailEditor
644
+
645
+ The **«Edit emails» form** of a contact: a header (title, optional back and close), one input per
646
+ email with a remove button, «+ Add email», the verification note and Cancel / Save. It is shown
647
+ inside the contact cell popover and in the full-profile contact card, and works on its own in any
648
+ ~300-320px panel.
649
+
650
+ The editor draws its own dividers (under the header, over the footer) and has no outer padding or
651
+ border: the container supplies the surface, radius and shadow, and the editor fills it edge to edge.
652
+
653
+ Presentational and **uncontrolled**: it edits a working copy of `items` (seeded when it mounts)
654
+ and reports intent. `cancel` closes nothing and `save` persists nothing, both are the consumer's
655
+ job. There are no status marks (pills) inside the editor: the state is not shown while editing.
656
+
657
+ ### Props
658
+
659
+ | Prop | Type | Default | Description |
660
+ | -------- | --------------------- | ------- | --------------------------------------------------------------------------------------------- |
661
+ | `items` | `{ value: string }[]` | — | The current emails (required). Seeds the rows on mount and is the baseline of «what changed». |
662
+ | `copy` | `DsEmailEditorCopy` | — | Every visible string (required). The app owns it. |
663
+ | `saving` | `boolean` | `false` | The app's save is in flight: Save spins and the whole form is locked (see «Saving»). |
664
+
665
+ #### `copy` keys
666
+
667
+ | Key | Used for |
668
+ | ---------------- | -------------------------------------------------------------------------------------- |
669
+ | `title` | Heading of the form; it names the group. |
670
+ | `back` | `aria-label` of the header's back button. Optional: the button renders only when set. |
671
+ | `close` | `aria-label` of the header's close button. Optional: the button renders only when set. |
672
+ | `addEmail` | The «+ Add email» button. |
673
+ | `emailLabel` | Visually hidden label of every email input. |
674
+ | `placeholder` | Placeholder of every email input. |
675
+ | `note` | The info note (verification credit warning). |
676
+ | `cancel`, `save` | The footer buttons. |
677
+ | `invalidEmail` | Error under a row whose text is not an email. |
678
+ | `duplicateEmail` | Error under the later occurrence of a repeated email. |
679
+ | `removeEmail` | `aria-label` of every row's remove button. |
680
+
681
+ ### Events
682
+
683
+ | Event | Payload | When |
684
+ | -------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
685
+ | `cancel` | — | Cancel or the header's back button was used (leave without saving). |
686
+ | `close` | — | The header's close button was used. Dismissing the host (popover, panel) is the consumer's job. |
687
+ | `save` | `(values: string[], changedCount: number)` | Save with no errors. `values`: the final non-empty trimmed emails, in order. `changedCount`: how many are new or have different text than `items` (the app prices «1 verification credit each» with it). |
688
+
689
+ ### Behaviour
690
+
691
+ - Save is disabled while nothing changed: same emails in the same order after trimming and
692
+ dropping empty rows. Removing a row, editing one or reordering all count as a change.
693
+ - Validation runs on the first Save attempt and is live from then on. A text that is not an
694
+ email gets `invalidEmail`; a repeat (trimmed, case-insensitive) gets `duplicateEmail` on the
695
+ later occurrences. An invalid text is never also reported as a duplicate. Empty rows are
696
+ discarded, never an error. With errors, Save emits nothing and focuses the first failing row.
697
+ - «+ Add email» appends an empty row and focuses it.
698
+ - **Saving**: with `saving` the Save button shows its own loading state (`DsButton` `loading`: spinner,
699
+ `aria-busy`, not clickable) and the inputs, «Add email», the remove buttons, Cancel, back and close are
700
+ disabled, so there are no edits and no double submit; `save` is not emitted again. The form region
701
+ carries `aria-busy`. When `saving` goes back to `false` the form is usable again with what the user
702
+ typed intact: the app keeps it open on error and closes it (or leaves the edit mode) on success.
703
+ - Enter in an input is swallowed (`preventDefault`): it never submits a host `<form>` and does not save.
704
+ Escape is not handled: closing is the container's job, like in the other library forms.
705
+ - A11y: each input has a visually hidden `<label>`; an error sets `aria-invalid` and is linked with
706
+ `aria-describedby`; the remove buttons carry `copy.removeEmail`.
707
+ - The input height is 32px (`control-height('medium')`), the focus border is the library's dark grey token
708
+ (never the accent) and the text weight does not change on focus.
709
+ - Sections: header (`6px 8px 6px 6px`, hairline below), body (`12px 12px 4px`, rows 8px apart, max
710
+ height 248px with the library scrollbar), note, footer (`10px 12px`, hairline above, 32px buttons).
711
+ - Every icon is a `DsIcon`: remove `do_not_disturb_on` (20, `danger`), add `add` (20, accent),
712
+ note `info` (16, `muted`), back `chevron_left` (20, filled, `default`), close `close` (20, `muted`).
713
+ The design's 18px and 14px glyphs move to 20 and 16, the sizes `DsIcon` has.
714
+
715
+ #### Where it deliberately differs from the design export
716
+
717
+ The export's input draws an accent focus border, bold text on focus and a dark rest border. The
718
+ library's input rule wins (`DsInput`: focus `slate-main`, no bold, rest `slate-muted`), so the
719
+ inputs here follow it. The 12.5px / 11.5px type snaps to the 12px caption token and the 13px
720
+ buttons to the `small` size; the header icon buttons and «Add email» are native 28px controls
721
+ because `DsButton` has no 28px size.
722
+
723
+ ---
724
+
566
725
  <!-- DsMaskedValue · Contact data -->
567
726
 
568
727
  ## DsMaskedValue
@@ -1201,6 +1360,114 @@ next.
1201
1360
 
1202
1361
  ---
1203
1362
 
1363
+ <!-- DsIcon · Core -->
1364
+
1365
+ ## DsIcon
1366
+
1367
+ A Material Symbols icon drawn as inline SVG, with the font axes fixed by size. **Presentational
1368
+ only**: no events, no state. It draws the same symbols the `material-symbols-*` font classes do,
1369
+ but the stroke is a fixed weight (500 by default) that no longer depends on what the app loads.
1370
+
1371
+ ```vue
1372
+ <DsIcon name="close" variant="rounded" :size="16" />
1373
+ <DsIcon name="check_circle" variant="rounded" fill color="success" />
1374
+ ```
1375
+
1376
+ ### Props
1377
+
1378
+ | Prop | Type | Default | Description |
1379
+ | --------- | -------------------------------------------------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------- |
1380
+ | `name` | `string` | (required) | Material Symbols name. Built-in or added with `registerIcons`. Legacy aliases resolve. |
1381
+ | `size` | `16 \| 20 \| 24` | `20` | Box in px. 16 and 20 use the optical size 20 drawing; 24 uses optical size 24. |
1382
+ | `variant` | `'outlined' \| 'rounded'` | `'outlined'` | Symbol family. |
1383
+ | `weight` | `100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700` | `500` | Stroke weight. The library ships 500; another weight draws once the app registers it, otherwise 500 is drawn and it warns. |
1384
+ | `fill` | `boolean` | `false` | The FILL 1 drawing: active or selected states and status icons. |
1385
+ | `color` | `'default' \| 'muted' \| 'success' \| 'warning' \| 'danger' \| 'disabled'` | none | A DS color. Without it the icon inherits `currentColor`. |
1386
+
1387
+ `color` tokens: `default` slate-main, `muted` slate-soft, `success` success-deep, `warning`
1388
+ warning-shadow, `danger` error-shadow, `disabled` slate-mid.
1389
+
1390
+ ### Registry
1391
+
1392
+ The registry is curated, not the full Material Symbols set: it holds the icons the library draws
1393
+ today, in the `outlined` and `rounded` families, at weight 500. The drawings are the official SVGs
1394
+ of `google/material-design-icons` pinned to a commit (`src/icons/manifest.json`), generated into
1395
+ `registry.generated.ts` by `pnpm icons:generate`. Adding a built-in icon is a manifest edit plus a
1396
+ regenerate.
1397
+
1398
+ An app adds its own icons with `registerIcons`, once at startup. Drawings are keyed by family and
1399
+ weight:
1400
+
1401
+ ```ts
1402
+ import { registerIcons } from '@salesql/sql_components_vue3';
1403
+
1404
+ registerIcons({
1405
+ my_logo: {
1406
+ rounded: {
1407
+ 500: {
1408
+ compact: 'M…', // sizes 16 and 20
1409
+ compactFill: 'M…', // sizes 16 and 20, fill
1410
+ regular: 'M…', // size 24
1411
+ regularFill: 'M…', // size 24, fill
1412
+ },
1413
+ },
1414
+ },
1415
+ });
1416
+ ```
1417
+
1418
+ A drawing is the `d` of the path in the `0 -960 960 960` viewBox, or `{ d, viewBox }` for another
1419
+ box. If the icon has a single drawing, pass the same one four times. A family without the weight
1420
+ level (`rounded: { compact, … }`) counts as weight 500.
1421
+
1422
+ - A new family or weight of an existing icon is added without `override`; the 500 of a built-in
1423
+ icon is not touched. `registerIcons(map)` never replaces a drawing that already exists for the
1424
+ same name, family and weight (built-in, alias or already registered): it warns once and keeps the
1425
+ original. `registerIcons(map, { override: true })` replaces just that drawing.
1426
+ - A registration after an icon was mounted updates it.
1427
+
1428
+ ### Other weights
1429
+
1430
+ The library ships weight 500 only. To draw `<DsIcon weight="600" />`, the app generates the
1431
+ drawings it needs from the same SVG source and registers them:
1432
+
1433
+ ```bash
1434
+ pnpm exec salesql-icons --weight 600 --names error,info --out src/icons/weight600.generated.ts
1435
+ ```
1436
+
1437
+ ```ts
1438
+ import { registerIcons } from '@salesql/sql_components_vue3';
1439
+ import { ICONS } from './icons/weight600.generated';
1440
+
1441
+ registerIcons(ICONS);
1442
+ ```
1443
+
1444
+ Options: `--weight 100..700` (default 500), `--names a,b,c` (default: the library icons),
1445
+ `--families outlined,rounded` and `--out <path>` (writes the module). It needs Node 18 or newer.
1446
+ A weight that is not registered draws 500 and warns once per icon and weight.
1447
+
1448
+ ### Variants and fallbacks
1449
+
1450
+ - A `variant` the icon does not have warns once per icon and variant, and draws the other family.
1451
+ Every built-in icon ships both families, so this only happens with icons an app registers with a
1452
+ single family.
1453
+ - An unknown name draws an empty `<svg>` of the same box (the layout holds) and warns once per
1454
+ name.
1455
+ - Legacy names resolve to their canonical icon: `email` → `mail`, `mode_edit` → `edit`,
1456
+ `phone` → `call`, `people_alt` → `group`, `save_alt` → `download`.
1457
+
1458
+ ### Accessibility
1459
+
1460
+ `DsIcon` is always `aria-hidden="true"` and `focusable="false"`, with no role or label. When an
1461
+ icon carries meaning on its own, the container wraps it:
1462
+
1463
+ ```vue
1464
+ <span role="img" aria-label="Verified"><DsIcon name="verified" variant="rounded" fill /></span>
1465
+ ```
1466
+
1467
+ Icon-only buttons name the button, not the icon.
1468
+
1469
+ ---
1470
+
1204
1471
  <!-- DsSpinner · Core -->
1205
1472
 
1206
1473
  ## DsSpinner
@@ -2199,7 +2466,7 @@ via `v-model` (its `modelValue` is the current string value).
2199
2466
  | --------------- | --------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
2200
2467
  | `modelValue` | `string` | `''` | v-model — current text value. |
2201
2468
  | `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'number' \| 'search' \| 'url'` | `'text'` | Native input type. `password` renders a reveal toggle when `toggleLabel` is set; `search` always renders as a styled text input with a left search icon. |
2202
- | `size` | `'sm' \| 'md'` | `'sm'` | Control height (36px / 48px). |
2469
+ | `size` | `'xs' \| 'sm' \| 'md'` | `'sm'` | Control height (32px / 36px / 48px). Padding, type scale and borders are the same for all; the suffix glyph is 16 / 18 / 24. |
2203
2470
  | `placeholder` | `string` | `''` | Native placeholder text. |
2204
2471
  | `disabled` | `boolean` | `false` | Disables the control. |
2205
2472
  | `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
@@ -2736,18 +3003,19 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
2736
3003
 
2737
3004
  ### Props
2738
3005
 
2739
- | Prop | Type | Default | Description |
2740
- | ---------------- | ------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
2741
- | `open` | `boolean` | `false` | Visibility. Pair with `v-model:open`. |
2742
- | `placement` | `DsPopoverPlacement` (14) | `'bottom'` | Where the panel opens — see **Placement** below. |
2743
- | `width` | `string` | `''` | Panel width (any CSS length). Empty = fit content. |
2744
- | `closeOnEscape` | `boolean` | `true` | Escape requests a close. |
2745
- | `closeOnOutside` | `boolean` | `true` | A press outside the trigger and panel requests a close. |
2746
- | `triggerOnClick` | `boolean` | `true` | Let the trigger slot toggle the panel. Off = consumer-driven. |
2747
- | `offset` | `string` | `''` | Moves the anchor along the trigger's cross axis (any CSS length; `%` = of the trigger box). The contact-data cell uses `'25%'`. |
2748
- | `flush` | `boolean` | `false` | Drops the 8px card padding for content with its own rows/dividers (e.g. `DsContactList`). |
2749
- | `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
2750
- | `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). |
3006
+ | Prop | Type | Default | Description |
3007
+ | ---------------- | ------------------------------------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------- |
3008
+ | `open` | `boolean` | `false` | Visibility. Pair with `v-model:open`. |
3009
+ | `placement` | `DsPopoverPlacement` (14) | `'bottom'` | Where the panel opens — see **Placement** below. |
3010
+ | `width` | `string` | `''` | Panel width (any CSS length). Empty = fit content. |
3011
+ | `closeOnEscape` | `boolean` | `true` | Escape requests a close. |
3012
+ | `closeOnOutside` | `boolean` | `true` | A press outside the trigger and panel requests a close. |
3013
+ | `triggerOnClick` | `boolean` | `true` | Let the trigger slot toggle the panel. Off = consumer-driven. |
3014
+ | `offset` | `string` | `''` | Moves the anchor along the trigger's cross axis (any CSS length; `%` = of the trigger box). The contact-data cell uses `'25%'`. |
3015
+ | `flush` | `boolean` | `false` | Drops the 8px card padding for content with its own rows/dividers (e.g. `DsContactList`). |
3016
+ | `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
3017
+ | `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). |
3018
+ | `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the panel must stay inside besides the viewport. See **Boundary** below. |
2751
3019
 
2752
3020
  ### Placement
2753
3021
 
@@ -2807,6 +3075,22 @@ viewport-only check would miss a row hidden by a scroller that is itself on scre
2807
3075
 
2808
3076
  `DsCompanyCard`'s «In a scrolling table (teleported, block)» variant shows both behaviours.
2809
3077
 
3078
+ ### Boundary
3079
+
3080
+ The viewport clamp only knows the window's edges, so in a table the panel of the last data
3081
+ column opened on top of the sticky «Actions» column (SALESQL-4428). `boundary` adds a second
3082
+ box the panel must stay inside — an element, or a getter returning its `DOMRect` (`null` = no
3083
+ boundary right now). The limits are the **intersection** of the viewport and that box, on all
3084
+ four edges: against the viewport the panel keeps its 8px margin, against the boundary it may
3085
+ sit flush. The panel is also capped to the width left between the limits, and a `left` /
3086
+ `right` / `top` / `bottom` placement flips when the boundary leaves it no room on its side.
3087
+
3088
+ The boundary is the **allowed area**, not the thing to avoid: to keep clear of a column, pass
3089
+ the area on its other side — a getter such as
3090
+ `() => new DOMRect(0, 0, actionsColumn.getBoundingClientRect().left, window.innerHeight)`.
3091
+ It is read on every measurement (open, scroll, resize), so a moving column is followed.
3092
+ Works inline and `teleported`. Without it nothing changes.
3093
+
2810
3094
  ### Slots
2811
3095
 
2812
3096
  | Slot | Description |