@salesql/sql_components_vue3 3.8.2 → 3.10.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 (30) hide show
  1. package/dist/constants/contact-data.d.ts +5 -0
  2. package/dist/constants/events.d.ts +16 -0
  3. package/dist/constants/pickers.d.ts +2 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.ts +4 -2
  7. package/dist/index.es.js +2700 -2153
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/sql_components_vue3.css +1 -1
  10. package/dist/ui/DsContactCell/DsContactCell.types.d.ts +16 -1
  11. package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +40 -2
  12. package/dist/ui/DsContactList/DsContactList.types.d.ts +2 -0
  13. package/dist/ui/DsContactList/DsContactList.vue.d.ts +9 -0
  14. package/dist/ui/DsMaskedValue/DsMaskedValue.types.d.ts +2 -0
  15. package/dist/ui/DsMaskedValue/DsMaskedValue.vue.d.ts +9 -0
  16. package/dist/ui/DsOrganizerForm/DsOrganizerForm.types.d.ts +35 -0
  17. package/dist/ui/DsOrganizerForm/DsOrganizerForm.vue.d.ts +150 -0
  18. package/dist/ui/DsOrganizerForm/index.d.ts +2 -0
  19. package/dist/ui/DsPickerRowActions/DsPickerRowActions.types.d.ts +11 -0
  20. package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +57 -0
  21. package/dist/ui/DsPickerRowActions/index.d.ts +2 -0
  22. package/dist/ui/DsPopover/DsPopover.vue.d.ts +9 -0
  23. package/dist/ui/DsPopover/popoverLayers.d.ts +6 -0
  24. package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +30 -0
  25. package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +158 -3
  26. package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +31 -1
  27. package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +156 -1
  28. package/llms-full.txt +246 -62
  29. package/llms.txt +2 -1
  30. package/package.json +1 -1
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.8.2)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.10.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 (50)
40
+ ## Components (51)
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
@@ -47,8 +47,9 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
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
49
  - **DsDeliverabilityBadge** (Contact data) — The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
50
- - **DsMaskedValue** (Contact data) — An email or phone string rendered **verbatim**, with the contract's two-tone treatment when
50
+ - **DsMaskedValue** (Contact data) — An email or phone string with the contract's two-tone treatment when the **server** masked
51
51
  - **DsMoreCountChip** (Contact data) — The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
52
+ - **DsOrganizerForm** (Contact data) — The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
52
53
  - **DsProfileGroupBar** (Contact data) — The band that names one contact-data type inside a profile card — «Work email», «Direct
53
54
  - **DsSavedButton** (Contact data) — **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
54
55
  - **DsTagPicker** (Contact data) — The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
@@ -318,40 +319,52 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
318
319
 
319
320
  ### Props
320
321
 
321
- | Prop | Type | Default | Description |
322
- | ------------------------------ | -------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
323
- | `items` | `DsContactItem[]` | — | The group, **primary first**; `items[0]` is what the cell shows (required). |
324
- | `count` | `number \| null` | `null` | Group size the chip subtracts from (`+N` = count − 1). Server count when it exists; else `items.length`. |
325
- | `sections` | `DsContactSection[]` | `[]` | Unified columns (Emails: Work + Direct; Phones: Direct + HQ): the popover bands each type, one total. `items` still drives the cell. |
326
- | `kind` | `'email' \| 'phone'` | — | Masked split rule; badge eligibility (required). |
327
- | `type` | `DsContactType` | `''` | Full-profile row: draws the type glyph. Table cells omit it (the header names the type). |
328
- | `label` | `string` | — | The popover variant name ("Work emails"). App copy (required). |
329
- | `badgeLabel` | `string` | — | `A_PLUS_BADGE` (required). |
330
- | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
331
- | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip ("2 more emails"). |
332
- | `emptyLabel` | `string` | `'—'` | Rendered when `items` is empty (a typographic dash, not copy). |
333
- | `showRate` | `boolean` | `false` | Thumbs up / down in the popover rows. |
334
- | `disabled` | `boolean` | `false` | No popover at all. |
335
- | `placement` | `DsPopoverPlacement` | `'over-start'` | Popover side / alignment. `over-start` covers the cell like the export; `bottom-start` opens below it. |
336
- | `offset` | `string` | `'25%'` | Popover anchor shift along the cell (the contract's ¼). |
337
- | `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
338
- | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
339
- | `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
322
+ | Prop | Type | Default | Description |
323
+ | ------------------------------ | -------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
324
+ | `items` | `DsContactItem[]` | — | The group, **primary first**; `items[0]` is what the cell shows (required). |
325
+ | `count` | `number \| null` | `null` | Group size the chip subtracts from (`+N` = count − 1). Server count when it exists; else `items.length`. |
326
+ | `sections` | `DsContactSection[]` | `[]` | Unified columns (Emails: Work + Direct; Phones: Direct + HQ): the popover bands each type, one total. `items` still drives the cell. |
327
+ | `kind` | `'email' \| 'phone'` | — | Masked split rule; badge eligibility (required). |
328
+ | `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`. |
329
+ | `label` | `string` | — | The popover variant name ("Work emails"). App copy (required). |
330
+ | `badgeLabel` | `string` | — | `A_PLUS_BADGE` (required). |
331
+ | `badgeTooltip` | `string` | — | `A_PLUS_TOOLTIP` (required). |
332
+ | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip ("2 more emails"). |
333
+ | `emptyLabel` | `string` | `'—'` | Rendered when `items` is empty (a typographic dash, not copy). |
334
+ | `showRate` | `boolean` | `false` | Thumbs up / down in the popover rows. |
335
+ | `disabled` | `boolean` | `false` | No popover at all. |
336
+ | `placement` | `DsPopoverPlacement` | `'over-start'` | Popover side / alignment. `over-start` covers the cell like the export; `bottom-start` opens below it. |
337
+ | `offset` | `string` | `'25%'` | Popover anchor shift along the cell (the contract's ¼). |
338
+ | `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
339
+ | `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. |
340
+ | `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). |
341
+ | `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
342
+ | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
343
+ | `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
340
344
 
341
345
  ### Events
342
346
 
343
- | Event | Payload | When |
344
- | ------------- | --------------- | -------------------------------------------------------- |
345
- | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
346
- | `copy` | `DsContactItem` | A row's value was copied (re-emitted from the list). |
347
- | `correct` | `DsContactItem` | Thumbs-up on a row. |
348
- | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
347
+ | Event | Payload | When |
348
+ | ------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
349
+ | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
350
+ | `copy` | `DsContactItem` | A row's value was copied (re-emitted from the list). |
351
+ | `correct` | `DsContactItem` | Thumbs-up on a row. |
352
+ | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
353
+ | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
349
354
 
350
355
  ### Slots
351
356
 
352
- | Slot | Where | Use |
353
- | --------- | ---------------------------------- | -------------------------------------- |
354
- | `actions` | Right side of the popover's header | The app's Show details / Edit control. |
357
+ | Slot | Where | Use |
358
+ | --------- | ---------------------------------- | ---------------------------------------------------- |
359
+ | `actions` | Right side of the popover's header | The app's Edit control. Sits next to the reveal CTA. |
360
+
361
+ ### Teleported popover (tables and scrollers)
362
+
363
+ Inside an `overflow: auto` scroller the panel of a cell in the bottom rows or right columns is
364
+ cut at the scroller's edge (see the story «In a scrolling table»: untick _Teleported_ to see it).
365
+ `teleported` renders the panel in `<body>`; the cell keeps the hover alive across the trigger →
366
+ panel travel (the panel's enter / leave cancel and restart the same close timer), and
367
+ `DsPopover` closes it once the cell's row scrolls out of view.
355
368
 
356
369
  ### Feeding it from the app's view model
357
370
 
@@ -550,19 +563,21 @@ colour `$contact-data-badge-a-plus-ink`. Mirrored 1:1 from the contract partial.
550
563
 
551
564
  ## DsMaskedValue
552
565
 
553
- An email or phone string rendered **verbatim**, with the contract's two-tone treatment when
554
- the **server** masked it (§3.7): the redacted part in the mask tone, the visible part —
555
- domain, country prefix — in the inherited ink. It never masks anything itself. _The front
566
+ An email or phone string with the contract's two-tone treatment when the **server** masked
567
+ it (§3.7): the redacted part in the mask tone **drawn as circles** (`•••••@acme.com`, like the
568
+ export), the visible part — domain, country prefix — verbatim in the inherited ink. It never
569
+ masks anything itself. _The front
556
570
  is never what obfuscates a value we sell_: to mask, it would have to hold the full value,
557
571
  and holding it is the leak.
558
572
 
559
573
  ### Props
560
574
 
561
- | Prop | Type | Default | Description |
562
- | -------- | -------------------- | ------- | ---------------------------------------------------------------------- |
563
- | `value` | `string` | — | The string exactly as the API sent it — masked preview or full value. |
564
- | `kind` | `'email' \| 'phone'` | — | Split rule: whole local part for emails, glyph runs for phones. |
565
- | `masked` | `boolean` | `false` | `true` when `value` is the server's masked form. Off = one plain span. |
575
+ | Prop | Type | Default | Description |
576
+ | ------------- | -------------------- | ---------- | ---------------------------------------------------------------------- |
577
+ | `value` | `string` | — | The string exactly as the API sent it — masked preview or full value. |
578
+ | `kind` | `'email' \| 'phone'` | — | Split rule: whole local part for emails, glyph runs for phones. |
579
+ | `masked` | `boolean` | `false` | `true` when `value` is the server's masked form. Off = one plain span. |
580
+ | `maskedLabel` | `string` | `'Hidden'` | Spoken once per masked value in place of the circles (app copy). |
566
581
 
567
582
  The consumer decides `masked`: `isMasked` on the legacy view model, `!is_revealed` on the
568
583
  typed block. Shape detection is never applied here.
@@ -572,15 +587,32 @@ typed block. Shape detection is never applied here.
572
587
  - **Email** — the local part is the redaction (`***`, `...`, `•••`); no `@` → all masked.
573
588
  - **Phone** — every run of `*` / `•` / `.` is a redaction; a **single** dot is a real
574
589
  separator (`+1.415.555.0100`). No prefix is assumed (`8008...` ships with none).
575
- - Concatenating the segments always yields the input. Nothing is re-grouped.
590
+ - The visible segments are the server's text, verbatim; nothing is re-grouped.
591
+
592
+ ### Circles (presentation only)
593
+
594
+ Each redaction is drawn with the export's bullet (`•`, U+2022), never with the asterisk the
595
+ server sent — `*` sits at cap height in Mulish and reads as a superscript.
596
+
597
+ - **Email** — a fixed **5** circles for the local part (export `maskEmail`), whatever the
598
+ server masked (`*`, `***`, `...`). A local part that still has visible characters
599
+ (`ad***@…`) is not a pure redaction and renders as received.
600
+ - **Phone** — **one circle per mask character**: the server's grouping (`+91 99••• •••••`)
601
+ carries the layout, so it is kept (the export's fixed `•• ••• •••` is placeholder data).
602
+ - A single `.` is a separator, not a mask: `+1.415.555.0100` has no circles.
603
+ - **a11y** — the circles are `aria-hidden`; one visually-hidden `maskedLabel` per value is
604
+ what a screen reader announces.
605
+
606
+ This departs from §3.7's «the front does not normalize the backend's `***`» (Diego, 01/10):
607
+ it restyles characters the server already hid; the front still never holds the hidden value.
576
608
 
577
609
  ### Design parity
578
610
 
579
- - Mask tone `$contact-data-mask-ink` (#b6bbc0) from the contract partial; the redacted run is
580
- bold and letter-spaced 1px like the export's `DOTS`. Asterisk runs are pulled down
581
- (`vertical-align: -0.16em`) because Mulish draws `*` at cap height — without it the stars
582
- float above the domain. A redaction that follows a visible prefix gets a 2px margin (the
583
- export's `{tail} {dots}` gap) instead of an inserted space, so the text stays verbatim.
611
+ - Mask tone `$contact-data-mask-ink` (#b6bbc0) from the contract partial; the circles are
612
+ `$contact-data-value-weight` and letter-spaced 1px like the export's `DOTS`, at the text's
613
+ own size. The bullet glyph is centred on the x-height by the typeface (measured: 0.2px off
614
+ the x-height middle at 13 and 14px). A redaction that follows a visible prefix gets a 2px
615
+ margin (the export's `{tail} {dots}` gap) instead of an inserted space.
584
616
  - `title` exposes the full value only when unmasked (the export does the same).
585
617
 
586
618
  ### When to use
@@ -624,6 +656,64 @@ Only inside `DsContactCell` / `DsContactList` compositions. It is not a generic
624
656
 
625
657
  ---
626
658
 
659
+ <!-- DsOrganizerForm · Contact data -->
660
+
661
+ ## DsOrganizerForm
662
+
663
+ The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
664
+ a name field, a colour swatch grid and a submit button. Measured from the design export's
665
+ `FolderMenu` form view. `DsSavedButton` / `DsTagPicker` embed it; it works on its own inside any
666
+ ~300px panel.
667
+
668
+ Presentational and **controlled**: `name` and `color` come in by props, every change goes out as
669
+ `update:name` / `update:color` (use `v-model:name` / `v-model:color`). The form never closes
670
+ itself and never persists anything — `submit` hands you `{ name, color }` (name trimmed).
671
+
672
+ ### Props
673
+
674
+ | Prop | Type | Default | Description |
675
+ | ------------------ | ---------- | -------------------- | ------------------------------------------------------------------------------------ |
676
+ | `title` | `string` | — | Title row text (required). |
677
+ | `name` | `string` | `''` | The name field (`v-model:name`). |
678
+ | `color` | `string` | `''` | The selected swatch (`v-model:color`). Empty = none selected. |
679
+ | `colors` | `string[]` | — | Swatches, hex strings. The consumer owns the palette (required). |
680
+ | `submitLabel` | `string` | — | Submit button label (required). |
681
+ | `loading` | `boolean` | `false` | Spinner on the button; every submit path is blocked. |
682
+ | `setColorLabel` | `string` | `'Set Color'` | Label above the swatches. |
683
+ | `namePlaceholder` | `string` | `'Name'` | |
684
+ | `backLabel` | `string` | `'Back'` | Accessible name of the back row. |
685
+ | `errorMissingName` | `string` | `'Name is required'` | Shown when the name is empty or whitespace-only. |
686
+ | `errorTooLongName` | `string` | `'Name is too long'` | Shown when the trimmed name is longer than `maxNameLength`. |
687
+ | `maxNameLength` | `number` | `128` | |
688
+ | `errorMessage` | `string` | `''` | An external error (a failed request); shown unless the form has an error of its own. |
689
+ | `originalName` | `string` | `undefined` | Edit mode: the name the form opened with. Set = the submit waits for a change. |
690
+ | `originalColor` | `string` | `undefined` | Edit mode: the colour the form opened with (needs `originalName`). |
691
+
692
+ ### Events
693
+
694
+ | Event | Payload | When |
695
+ | -------------- | --------------------------------- | ---------------------------------------------------- |
696
+ | `back` | — | The title row was used. |
697
+ | `submit` | `{ name: string; color: string }` | Valid form submitted (button or Enter in the field). |
698
+ | `update:name` | `string` | Every change of the field. |
699
+ | `update:color` | `string` | A swatch was picked (click or arrow keys). |
700
+
701
+ ### Behaviour
702
+
703
+ - Errors wait for the user: an empty create form does not open showing «required». They appear
704
+ after the first edit or the first submit attempt (Enter), and update on every change.
705
+ - The submit button is disabled while the name is empty or invalid; Enter in the field still
706
+ counts as an attempt and reveals why.
707
+ - **Edit mode** is on when `originalName` is set (the form is controlled, so it can't recover the
708
+ baseline from its own props). The submit is then disabled, and Enter does nothing, until the
709
+ trimmed name differs from `originalName` or the colour differs from `originalColor`
710
+ (case-insensitive). Reverting both disables it again. Without `originalName` (create) there is
711
+ no change check.
712
+ - Swatches are a radio group (one tab stop, arrow keys move and select). The field takes focus
713
+ on mount; `focus()` is exposed.
714
+
715
+ ---
716
+
627
717
  <!-- DsProfileGroupBar · Contact data -->
628
718
 
629
719
  ## DsProfileGroupBar
@@ -678,7 +768,17 @@ A folder-tinted glyph, a neutral label and a caret; the folder **name** lives in
678
768
  never in the label; click opens the folder picker to re-file. Measured from the design
679
769
  export's `SavedButton` / `FolderMenu`.
680
770
 
681
- Folder CRUD stays in the app: the footer only tells you the user wants a new one.
771
+ Folder CRUD is **opt-in**. By default the footer only tells you the user wants a new folder
772
+ (`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
773
+
774
+ - `colors` (non-empty) — the footer opens the create / edit form **inside the panel** (a
775
+ `DsOrganizerForm`: back arrow, name, swatches, submit) instead of emitting `create`.
776
+ - `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
777
+ The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
778
+
779
+ The component never persists anything and never guesses that a save worked: it emits intent
780
+ (`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
781
+ `closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit.
682
782
 
683
783
  ### Props
684
784
 
@@ -696,18 +796,40 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
696
796
  | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Add contacts to»). Off = the design's table / profile trigger. |
697
797
  | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
698
798
  | `disabled` | `boolean` | `false` | |
799
+ | `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the footer emits `create` as before. |
800
+ | `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
801
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
802
+ | `formError` | `string` | `''` | A failed save, shown under the name field. |
803
+
804
+ Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
805
+ `editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Folder'`),
806
+ `editFormTitle` (`'Edit Folder'`), `createSubmitLabel` (`'Create & Select'`), `editSubmitLabel`
807
+ (`'Save'`), `formNamePlaceholder` (`'Folder name'`), `setColorLabel` (`'Set Color'`), `backLabel`
808
+ (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own defaults). `createLabel` is
809
+ still the footer button text — without it (and without a `footer` slot) there is no footer, so
810
+ the form flow has no entry point.
699
811
 
700
812
  `DsPickerOption` is `{ id, name, color? }` — map frontend-app's `Folder` with
701
813
  `{ id: f.uuid, name: f.name, color: f.color }`.
702
814
 
703
815
  ### Events
704
816
 
705
- | Event | Payload | When |
706
- | ------------- | ---------------- | --------------------------------------------------------------- |
707
- | `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
708
- | `create` | `string` | "New Folder" clicked; payload is the search text typed so far. |
709
- | `search` | `string` | The search text changed (filtering is local). |
710
- | `update:open` | `boolean` | The panel opened or closed. |
817
+ | Event | Payload | When |
818
+ | --------------- | --------------------- | ---------------------------------------------------------------------------------------------- |
819
+ | `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
820
+ | `create` | `string` | "New Folder" clicked **without `colors`**; payload is the search text typed so far. Unchanged. |
821
+ | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
822
+ | `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
823
+ | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
824
+ | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
825
+ | `search` | `string` | The search text changed (filtering is local). |
826
+ | `update:open` | `boolean` | The panel opened or closed. |
827
+
828
+ ### Exposed
829
+
830
+ | Member | Description |
831
+ | ------------- | ------------------------------------------------------------------------------------------------------------- |
832
+ | `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
711
833
 
712
834
  ### Slots
713
835
 
@@ -721,7 +843,15 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
721
843
  `aria-haspopup="listbox"` / `aria-expanded`, and the DS focus ring, hover and disabled
722
844
  states for free; the folder list is a native radio group (`DsRadio`, one `name` per
723
845
  instance), so arrow keys move the selection.
724
- - The whole row is the radio's label: any click on it picks.
846
+ - The whole row is the radio's label: any click on it picks. The ⋮ is a **sibling** of that label
847
+ (a real `<button aria-haspopup="menu" aria-expanded>`), so it never picks or toggles the radio.
848
+ It appears on row hover, on keyboard focus and while its menu is open (opacity, so it stays in
849
+ the tab order; always visible on touch).
850
+ - The ⋮ menu is `role="menu"` with real `role="menuitem"` buttons: it takes focus on open,
851
+ ↑ ↓ / Home / End move, Escape and Tab close it and return focus to the ⋮. Only one row menu
852
+ is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
853
+ pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
854
+ - Back from the form (or `closeForm()`) returns focus to the search field.
725
855
 
726
856
  ### Design parity (export `SavedButton` / `FolderMenu`)
727
857
 
@@ -737,8 +867,11 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
737
867
  - **Logged deltas (accepted, pending Ariel's confirmation of the ramp):** the trigger is the
738
868
  DS `DsButton outline` composed (not redrawn): the export's hairline ring, but radius 4 vs its
739
869
  6 and the 14px token vs 12.5px; folder glyph 15px → 16; panel chrome is `DsPopover`'s
740
- (radius 6) rather than the export's radius 8. The per-row Edit / Delete menu and the create
741
- form are app flows, not library UI.
870
+ (radius 6) rather than the export's radius 8.
871
+ - Row menu: 150px, 8px padding, 32px items, Edit in slate and Delete in red with a light red
872
+ hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
873
+ is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
874
+ (`edit` / `delete`), as in production.
742
875
 
743
876
  ---
744
877
 
@@ -756,6 +889,22 @@ Named `DsTagPicker`, not `DsTag`: `DsTag` is already the DS outlined chip.
756
889
  **Selection is a working copy.** Toggling checkboxes changes nothing outside the panel;
757
890
  `apply` fires once, with the final list. Closing without Apply discards.
758
891
 
892
+ Tag CRUD is **opt-in**. By default the create row only tells you the user wants a new tag
893
+ (`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
894
+
895
+ - `colors` (non-empty) — the create row and a footer **«+ New …»** text button (the same
896
+ `createLabel`, a `+` glyph on the left, Apply stays on the right) open the create / edit form
897
+ **inside the panel** (a `DsOrganizerForm`: back arrow, name, swatches, submit) instead of
898
+ emitting `create`. The name arrives pre-filled with the search text.
899
+ - `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
900
+ The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
901
+
902
+ The component never persists anything and never guesses that a save worked: it emits intent
903
+ (`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
904
+ `closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit. Going to the
905
+ form and back keeps the search and the working-copy selection; the picker never selects the tag it
906
+ created — the app decides.
907
+
759
908
  ### Props
760
909
 
761
910
  | Prop | Type | Default | Description |
@@ -767,30 +916,58 @@ Named `DsTagPicker`, not `DsTag`: `DsTag` is already the DS outlined chip.
767
916
  | `applyLabel` | `string` | — | The footer confirm (required). |
768
917
  | `searchPlaceholder` | `string` | `''` | |
769
918
  | `emptyLabel` | `string` | `''` | Shown when nothing matches and nothing can be created. |
770
- | `createLabel` | `string` | `''` | Prefix of the create row («Create “{query}”»). Empty = no create row. |
919
+ | `createLabel` | `string` | `''` | Prefix of the create row («Create “{query}”») and, with `colors`, the text of the footer «+ New» button. Empty = neither. |
771
920
  | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip. |
772
921
  | `size` | `'medium' \| 'large'` | `'medium'` | |
773
922
  | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
774
923
  | `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
775
924
  | `disabled` | `boolean` | `false` | |
925
+ | `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the create row emits `create` as before. |
926
+ | `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
927
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
928
+ | `formError` | `string` | `''` | A failed save, shown under the name field. |
929
+
930
+ Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
931
+ `editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Tag'`),
932
+ `editFormTitle` (`'Edit Tag'`), `createSubmitLabel` (`'Create'`), `editSubmitLabel` (`'Save'`),
933
+ `formNamePlaceholder` (`'Tag name'`), `setColorLabel` (`'Set Color'`), `backLabel` (`'Back'`),
934
+ `errorMissingName` / `errorTooLongName` (the form's own defaults).
776
935
 
777
936
  Map frontend-app's `Tag` with `{ id: t.id, name: t.name, color: t.color }` — the API takes
778
937
  tags by numeric `id` (`projects_ids`), unlike folders.
779
938
 
780
939
  ### Events
781
940
 
782
- | Event | Payload | When |
783
- | ------------- | ------------------ | ------------------------------------------------------------------------ |
784
- | `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. |
785
- | `create` | `string` | The create row was clicked; payload is the typed text. |
786
- | `search` | `string` | The search text changed (filtering is local). |
787
- | `update:open` | `boolean` | The panel opened or closed. |
941
+ | Event | Payload | When |
942
+ | --------------- | --------------------- | ------------------------------------------------------------------------------------------ |
943
+ | `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. |
944
+ | `create` | `string` | The create row was clicked **without `colors`**; payload is the typed text. Unchanged. |
945
+ | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
946
+ | `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
947
+ | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
948
+ | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
949
+ | `search` | `string` | The search text changed (filtering is local). |
950
+ | `update:open` | `boolean` | The panel opened or closed. |
951
+
952
+ ### Exposed
953
+
954
+ | Member | Description |
955
+ | ------------- | ------------------------------------------------------------------------------------------------------------- |
956
+ | `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
788
957
 
789
958
  ### Accessibility
790
959
 
791
960
  - The trigger is a `DsButton` (`outline`, `medium` / `large`) with `aria-haspopup="dialog"` /
792
961
  `aria-expanded`; rows are `DsCheckbox` labels spanning the whole row; the create row is a
793
962
  real button.
963
+ - The ⋮ is a **sibling** of the checkbox label (a real `<button aria-haspopup="menu"
964
+ aria-expanded>`), so it never toggles the tag. It appears on row hover, on keyboard focus and
965
+ while its menu is open (opacity, so it stays in the tab order; always visible on touch).
966
+ - The ⋮ menu is `role="menu"` with real `role="menuitem"` buttons: it takes focus on open,
967
+ ↑ ↓ / Home / End move, Escape and Tab close it and return focus to the ⋮. Only one row menu
968
+ is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
969
+ pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
970
+ - Back from the form (or `closeForm()`) returns focus to the search field.
794
971
 
795
972
  ### Design parity (export `tagsLine` / `tagMenu`)
796
973
 
@@ -808,6 +985,13 @@ tags by numeric `id` (`projects_ids`), unlike folders.
808
985
  the 14px token vs 13px; the `+N` here is `DsMoreCountChip` (the contract's global circular
809
986
  chip, cursor inherited from the button) rather than the export's smaller filled variant;
810
987
  Apply is `DsButton` medium (32px) vs 34; panel radius 6 vs 8.
988
+ - Row menu: 150px, 8px padding, 32px items, Edit in slate and Delete in red with a light red
989
+ hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
990
+ is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
991
+ (`edit` / `delete`), as in production.
992
+ - Footer with `colors`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
993
+ Apply on the right; the panel stays 240px in the form view, which drops its padding to bring
994
+ its own rows.
811
995
 
812
996
  ---
813
997
 
package/llms.txt CHANGED
@@ -12,8 +12,9 @@
12
12
  - DsContactList (Contact data): The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
13
13
  - DsContactPlaceholder (Contact data): The row a contact-data group shows when it has no rows to show — the non-data rows of the
14
14
  - DsDeliverabilityBadge (Contact data): The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
15
- - DsMaskedValue (Contact data): An email or phone string rendered **verbatim**, with the contract's two-tone treatment when
15
+ - DsMaskedValue (Contact data): An email or phone string with the contract's two-tone treatment when the **server** masked
16
16
  - DsMoreCountChip (Contact data): The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
17
+ - DsOrganizerForm (Contact data): The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
17
18
  - DsProfileGroupBar (Contact data): The band that names one contact-data type inside a profile card — «Work email», «Direct
18
19
  - DsSavedButton (Contact data): **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
19
20
  - DsTagPicker (Contact data): The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.8.2",
3
+ "version": "3.10.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",