@salesql/sql_components_vue3 3.8.2 → 3.10.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/dist/constants/contact-data.d.ts +9 -2
- package/dist/constants/events.d.ts +16 -0
- package/dist/constants/pickers.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.es.js +2738 -2186
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +16 -1
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +40 -2
- package/dist/ui/DsContactList/DsContactList.types.d.ts +2 -0
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +9 -0
- package/dist/ui/DsMaskedValue/DsMaskedValue.types.d.ts +2 -0
- package/dist/ui/DsMaskedValue/DsMaskedValue.vue.d.ts +9 -0
- package/dist/ui/DsOrganizerForm/DsOrganizerForm.types.d.ts +35 -0
- package/dist/ui/DsOrganizerForm/DsOrganizerForm.vue.d.ts +150 -0
- package/dist/ui/DsOrganizerForm/index.d.ts +2 -0
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.types.d.ts +11 -0
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +57 -0
- package/dist/ui/DsPickerRowActions/index.d.ts +2 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +9 -0
- package/dist/ui/DsPopover/popoverLayers.d.ts +6 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +30 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +158 -3
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +31 -1
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +156 -1
- package/llms-full.txt +248 -62
- package/llms.txt +2 -1
- package/package.json +1 -1
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (v3.
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v3.10.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
|
|
|
@@ -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 (
|
|
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
|
|
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` | `''` |
|
|
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
|
-
| `
|
|
339
|
-
| `
|
|
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
|
|
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
|
|
554
|
-
|
|
555
|
-
domain, country prefix — in the inherited ink. It never
|
|
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
|
|
562
|
-
|
|
|
563
|
-
| `value`
|
|
564
|
-
| `kind`
|
|
565
|
-
| `masked`
|
|
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,34 @@ 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
|
-
-
|
|
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 hyphen touching a redaction (`+1 51•-•••-••••`) is drawn as a space; hyphens between
|
|
603
|
+
visible digits (`555-0100`) stay.
|
|
604
|
+
- A single `.` is a separator, not a mask: `+1.415.555.0100` has no circles.
|
|
605
|
+
- **a11y** — the circles are `aria-hidden`; one visually-hidden `maskedLabel` per value is
|
|
606
|
+
what a screen reader announces.
|
|
607
|
+
|
|
608
|
+
This departs from §3.7's «the front does not normalize the backend's `***`» (Diego, 01/10):
|
|
609
|
+
it restyles characters the server already hid; the front still never holds the hidden value.
|
|
576
610
|
|
|
577
611
|
### Design parity
|
|
578
612
|
|
|
579
|
-
- Mask tone `$contact-data-mask-ink` (#b6bbc0) from the contract partial; the
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
export's `{tail} {dots}` gap) instead of an inserted space
|
|
613
|
+
- Mask tone `$contact-data-mask-ink` (#b6bbc0) from the contract partial; the circles are
|
|
614
|
+
`$contact-data-value-weight` and letter-spaced 1px like the export's `DOTS`, at the text's
|
|
615
|
+
own size. The bullet glyph is centred on the x-height by the typeface (measured: 0.2px off
|
|
616
|
+
the x-height middle at 13 and 14px). A redaction that follows a visible prefix gets a 2px
|
|
617
|
+
margin (the export's `{tail} {dots}` gap) instead of an inserted space.
|
|
584
618
|
- `title` exposes the full value only when unmasked (the export does the same).
|
|
585
619
|
|
|
586
620
|
### When to use
|
|
@@ -624,6 +658,64 @@ Only inside `DsContactCell` / `DsContactList` compositions. It is not a generic
|
|
|
624
658
|
|
|
625
659
|
---
|
|
626
660
|
|
|
661
|
+
<!-- DsOrganizerForm · Contact data -->
|
|
662
|
+
|
|
663
|
+
## DsOrganizerForm
|
|
664
|
+
|
|
665
|
+
The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
|
|
666
|
+
a name field, a colour swatch grid and a submit button. Measured from the design export's
|
|
667
|
+
`FolderMenu` form view. `DsSavedButton` / `DsTagPicker` embed it; it works on its own inside any
|
|
668
|
+
~300px panel.
|
|
669
|
+
|
|
670
|
+
Presentational and **controlled**: `name` and `color` come in by props, every change goes out as
|
|
671
|
+
`update:name` / `update:color` (use `v-model:name` / `v-model:color`). The form never closes
|
|
672
|
+
itself and never persists anything — `submit` hands you `{ name, color }` (name trimmed).
|
|
673
|
+
|
|
674
|
+
### Props
|
|
675
|
+
|
|
676
|
+
| Prop | Type | Default | Description |
|
|
677
|
+
| ------------------ | ---------- | -------------------- | ------------------------------------------------------------------------------------ |
|
|
678
|
+
| `title` | `string` | — | Title row text (required). |
|
|
679
|
+
| `name` | `string` | `''` | The name field (`v-model:name`). |
|
|
680
|
+
| `color` | `string` | `''` | The selected swatch (`v-model:color`). Empty = none selected. |
|
|
681
|
+
| `colors` | `string[]` | — | Swatches, hex strings. The consumer owns the palette (required). |
|
|
682
|
+
| `submitLabel` | `string` | — | Submit button label (required). |
|
|
683
|
+
| `loading` | `boolean` | `false` | Spinner on the button; every submit path is blocked. |
|
|
684
|
+
| `setColorLabel` | `string` | `'Set Color'` | Label above the swatches. |
|
|
685
|
+
| `namePlaceholder` | `string` | `'Name'` | |
|
|
686
|
+
| `backLabel` | `string` | `'Back'` | Accessible name of the back row. |
|
|
687
|
+
| `errorMissingName` | `string` | `'Name is required'` | Shown when the name is empty or whitespace-only. |
|
|
688
|
+
| `errorTooLongName` | `string` | `'Name is too long'` | Shown when the trimmed name is longer than `maxNameLength`. |
|
|
689
|
+
| `maxNameLength` | `number` | `128` | |
|
|
690
|
+
| `errorMessage` | `string` | `''` | An external error (a failed request); shown unless the form has an error of its own. |
|
|
691
|
+
| `originalName` | `string` | `undefined` | Edit mode: the name the form opened with. Set = the submit waits for a change. |
|
|
692
|
+
| `originalColor` | `string` | `undefined` | Edit mode: the colour the form opened with (needs `originalName`). |
|
|
693
|
+
|
|
694
|
+
### Events
|
|
695
|
+
|
|
696
|
+
| Event | Payload | When |
|
|
697
|
+
| -------------- | --------------------------------- | ---------------------------------------------------- |
|
|
698
|
+
| `back` | — | The title row was used. |
|
|
699
|
+
| `submit` | `{ name: string; color: string }` | Valid form submitted (button or Enter in the field). |
|
|
700
|
+
| `update:name` | `string` | Every change of the field. |
|
|
701
|
+
| `update:color` | `string` | A swatch was picked (click or arrow keys). |
|
|
702
|
+
|
|
703
|
+
### Behaviour
|
|
704
|
+
|
|
705
|
+
- Errors wait for the user: an empty create form does not open showing «required». They appear
|
|
706
|
+
after the first edit or the first submit attempt (Enter), and update on every change.
|
|
707
|
+
- The submit button is disabled while the name is empty or invalid; Enter in the field still
|
|
708
|
+
counts as an attempt and reveals why.
|
|
709
|
+
- **Edit mode** is on when `originalName` is set (the form is controlled, so it can't recover the
|
|
710
|
+
baseline from its own props). The submit is then disabled, and Enter does nothing, until the
|
|
711
|
+
trimmed name differs from `originalName` or the colour differs from `originalColor`
|
|
712
|
+
(case-insensitive). Reverting both disables it again. Without `originalName` (create) there is
|
|
713
|
+
no change check.
|
|
714
|
+
- Swatches are a radio group (one tab stop, arrow keys move and select). The field takes focus
|
|
715
|
+
on mount; `focus()` is exposed.
|
|
716
|
+
|
|
717
|
+
---
|
|
718
|
+
|
|
627
719
|
<!-- DsProfileGroupBar · Contact data -->
|
|
628
720
|
|
|
629
721
|
## DsProfileGroupBar
|
|
@@ -678,7 +770,17 @@ A folder-tinted glyph, a neutral label and a caret; the folder **name** lives in
|
|
|
678
770
|
never in the label; click opens the folder picker to re-file. Measured from the design
|
|
679
771
|
export's `SavedButton` / `FolderMenu`.
|
|
680
772
|
|
|
681
|
-
Folder CRUD
|
|
773
|
+
Folder CRUD is **opt-in**. By default the footer only tells you the user wants a new folder
|
|
774
|
+
(`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
|
|
775
|
+
|
|
776
|
+
- `colors` (non-empty) — the footer opens the create / edit form **inside the panel** (a
|
|
777
|
+
`DsOrganizerForm`: back arrow, name, swatches, submit) instead of emitting `create`.
|
|
778
|
+
- `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
|
|
779
|
+
The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
|
|
780
|
+
|
|
781
|
+
The component never persists anything and never guesses that a save worked: it emits intent
|
|
782
|
+
(`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
|
|
783
|
+
`closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit.
|
|
682
784
|
|
|
683
785
|
### Props
|
|
684
786
|
|
|
@@ -696,18 +798,40 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
|
|
|
696
798
|
| `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
799
|
| `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
|
|
698
800
|
| `disabled` | `boolean` | `false` | |
|
|
801
|
+
| `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the footer emits `create` as before. |
|
|
802
|
+
| `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
|
|
803
|
+
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
804
|
+
| `formError` | `string` | `''` | A failed save, shown under the name field. |
|
|
805
|
+
|
|
806
|
+
Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
|
|
807
|
+
`editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Folder'`),
|
|
808
|
+
`editFormTitle` (`'Edit Folder'`), `createSubmitLabel` (`'Create & Select'`), `editSubmitLabel`
|
|
809
|
+
(`'Save'`), `formNamePlaceholder` (`'Folder name'`), `setColorLabel` (`'Set Color'`), `backLabel`
|
|
810
|
+
(`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own defaults). `createLabel` is
|
|
811
|
+
still the footer button text — without it (and without a `footer` slot) there is no footer, so
|
|
812
|
+
the form flow has no entry point.
|
|
699
813
|
|
|
700
814
|
`DsPickerOption` is `{ id, name, color? }` — map frontend-app's `Folder` with
|
|
701
815
|
`{ id: f.uuid, name: f.name, color: f.color }`.
|
|
702
816
|
|
|
703
817
|
### Events
|
|
704
818
|
|
|
705
|
-
| Event
|
|
706
|
-
|
|
|
707
|
-
| `pick`
|
|
708
|
-
| `create`
|
|
709
|
-
| `
|
|
710
|
-
| `
|
|
819
|
+
| Event | Payload | When |
|
|
820
|
+
| --------------- | --------------------- | ---------------------------------------------------------------------------------------------- |
|
|
821
|
+
| `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
|
|
822
|
+
| `create` | `string` | "New Folder" clicked **without `colors`**; payload is the search text typed so far. Unchanged. |
|
|
823
|
+
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
|
|
824
|
+
| `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
|
|
825
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
|
|
826
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
|
|
827
|
+
| `search` | `string` | The search text changed (filtering is local). |
|
|
828
|
+
| `update:open` | `boolean` | The panel opened or closed. |
|
|
829
|
+
|
|
830
|
+
### Exposed
|
|
831
|
+
|
|
832
|
+
| Member | Description |
|
|
833
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
834
|
+
| `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
|
|
711
835
|
|
|
712
836
|
### Slots
|
|
713
837
|
|
|
@@ -721,7 +845,15 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
|
|
|
721
845
|
`aria-haspopup="listbox"` / `aria-expanded`, and the DS focus ring, hover and disabled
|
|
722
846
|
states for free; the folder list is a native radio group (`DsRadio`, one `name` per
|
|
723
847
|
instance), so arrow keys move the selection.
|
|
724
|
-
- The whole row is the radio's label: any click on it picks.
|
|
848
|
+
- The whole row is the radio's label: any click on it picks. The ⋮ is a **sibling** of that label
|
|
849
|
+
(a real `<button aria-haspopup="menu" aria-expanded>`), so it never picks or toggles the radio.
|
|
850
|
+
It appears on row hover, on keyboard focus and while its menu is open (opacity, so it stays in
|
|
851
|
+
the tab order; always visible on touch).
|
|
852
|
+
- The ⋮ menu is `role="menu"` with real `role="menuitem"` buttons: it takes focus on open,
|
|
853
|
+
↑ ↓ / Home / End move, Escape and Tab close it and return focus to the ⋮. Only one row menu
|
|
854
|
+
is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
|
|
855
|
+
pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
|
|
856
|
+
- Back from the form (or `closeForm()`) returns focus to the search field.
|
|
725
857
|
|
|
726
858
|
### Design parity (export `SavedButton` / `FolderMenu`)
|
|
727
859
|
|
|
@@ -737,8 +869,11 @@ Folder CRUD stays in the app: the footer only tells you the user wants a new one
|
|
|
737
869
|
- **Logged deltas (accepted, pending Ariel's confirmation of the ramp):** the trigger is the
|
|
738
870
|
DS `DsButton outline` composed (not redrawn): the export's hairline ring, but radius 4 vs its
|
|
739
871
|
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.
|
|
741
|
-
|
|
872
|
+
(radius 6) rather than the export's radius 8.
|
|
873
|
+
- Row menu: 150px, 8px padding, 32px items, Edit in slate and Delete in red with a light red
|
|
874
|
+
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
875
|
+
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
876
|
+
(`edit` / `delete`), as in production.
|
|
742
877
|
|
|
743
878
|
---
|
|
744
879
|
|
|
@@ -756,6 +891,22 @@ Named `DsTagPicker`, not `DsTag`: `DsTag` is already the DS outlined chip.
|
|
|
756
891
|
**Selection is a working copy.** Toggling checkboxes changes nothing outside the panel;
|
|
757
892
|
`apply` fires once, with the final list. Closing without Apply discards.
|
|
758
893
|
|
|
894
|
+
Tag CRUD is **opt-in**. By default the create row only tells you the user wants a new tag
|
|
895
|
+
(`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
|
|
896
|
+
|
|
897
|
+
- `colors` (non-empty) — the create row and a footer **«+ New …»** text button (the same
|
|
898
|
+
`createLabel`, a `+` glyph on the left, Apply stays on the right) open the create / edit form
|
|
899
|
+
**inside the panel** (a `DsOrganizerForm`: back arrow, name, swatches, submit) instead of
|
|
900
|
+
emitting `create`. The name arrives pre-filled with the search text.
|
|
901
|
+
- `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
|
|
902
|
+
The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
|
|
903
|
+
|
|
904
|
+
The component never persists anything and never guesses that a save worked: it emits intent
|
|
905
|
+
(`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
|
|
906
|
+
`closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit. Going to the
|
|
907
|
+
form and back keeps the search and the working-copy selection; the picker never selects the tag it
|
|
908
|
+
created — the app decides.
|
|
909
|
+
|
|
759
910
|
### Props
|
|
760
911
|
|
|
761
912
|
| Prop | Type | Default | Description |
|
|
@@ -767,30 +918,58 @@ Named `DsTagPicker`, not `DsTag`: `DsTag` is already the DS outlined chip.
|
|
|
767
918
|
| `applyLabel` | `string` | — | The footer confirm (required). |
|
|
768
919
|
| `searchPlaceholder` | `string` | `''` | |
|
|
769
920
|
| `emptyLabel` | `string` | `''` | Shown when nothing matches and nothing can be created. |
|
|
770
|
-
| `createLabel` | `string` | `''` | Prefix of the create row («Create “{query}”»). Empty =
|
|
921
|
+
| `createLabel` | `string` | `''` | Prefix of the create row («Create “{query}”») and, with `colors`, the text of the footer «+ New» button. Empty = neither. |
|
|
771
922
|
| `moreLabel` | `string` | `''` | Accessible name for the `+N` chip. |
|
|
772
923
|
| `size` | `'medium' \| 'large'` | `'medium'` | |
|
|
773
924
|
| `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
|
|
774
925
|
| `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
|
|
775
926
|
| `disabled` | `boolean` | `false` | |
|
|
927
|
+
| `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the create row emits `create` as before. |
|
|
928
|
+
| `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
|
|
929
|
+
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
930
|
+
| `formError` | `string` | `''` | A failed save, shown under the name field. |
|
|
931
|
+
|
|
932
|
+
Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
|
|
933
|
+
`editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Tag'`),
|
|
934
|
+
`editFormTitle` (`'Edit Tag'`), `createSubmitLabel` (`'Create'`), `editSubmitLabel` (`'Save'`),
|
|
935
|
+
`formNamePlaceholder` (`'Tag name'`), `setColorLabel` (`'Set Color'`), `backLabel` (`'Back'`),
|
|
936
|
+
`errorMissingName` / `errorTooLongName` (the form's own defaults).
|
|
776
937
|
|
|
777
938
|
Map frontend-app's `Tag` with `{ id: t.id, name: t.name, color: t.color }` — the API takes
|
|
778
939
|
tags by numeric `id` (`projects_ids`), unlike folders.
|
|
779
940
|
|
|
780
941
|
### Events
|
|
781
942
|
|
|
782
|
-
| Event
|
|
783
|
-
|
|
|
784
|
-
| `apply`
|
|
785
|
-
| `create`
|
|
786
|
-
| `
|
|
787
|
-
| `
|
|
943
|
+
| Event | Payload | When |
|
|
944
|
+
| --------------- | --------------------- | ------------------------------------------------------------------------------------------ |
|
|
945
|
+
| `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. |
|
|
946
|
+
| `create` | `string` | The create row was clicked **without `colors`**; payload is the typed text. Unchanged. |
|
|
947
|
+
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
|
|
948
|
+
| `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
|
|
949
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
|
|
950
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
|
|
951
|
+
| `search` | `string` | The search text changed (filtering is local). |
|
|
952
|
+
| `update:open` | `boolean` | The panel opened or closed. |
|
|
953
|
+
|
|
954
|
+
### Exposed
|
|
955
|
+
|
|
956
|
+
| Member | Description |
|
|
957
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------- |
|
|
958
|
+
| `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
|
|
788
959
|
|
|
789
960
|
### Accessibility
|
|
790
961
|
|
|
791
962
|
- The trigger is a `DsButton` (`outline`, `medium` / `large`) with `aria-haspopup="dialog"` /
|
|
792
963
|
`aria-expanded`; rows are `DsCheckbox` labels spanning the whole row; the create row is a
|
|
793
964
|
real button.
|
|
965
|
+
- The ⋮ is a **sibling** of the checkbox label (a real `<button aria-haspopup="menu"
|
|
966
|
+
aria-expanded>`), so it never toggles the tag. It appears on row hover, on keyboard focus and
|
|
967
|
+
while its menu is open (opacity, so it stays in the tab order; always visible on touch).
|
|
968
|
+
- The ⋮ menu is `role="menu"` with real `role="menuitem"` buttons: it takes focus on open,
|
|
969
|
+
↑ ↓ / Home / End move, Escape and Tab close it and return focus to the ⋮. Only one row menu
|
|
970
|
+
is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
|
|
971
|
+
pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
|
|
972
|
+
- Back from the form (or `closeForm()`) returns focus to the search field.
|
|
794
973
|
|
|
795
974
|
### Design parity (export `tagsLine` / `tagMenu`)
|
|
796
975
|
|
|
@@ -808,6 +987,13 @@ tags by numeric `id` (`projects_ids`), unlike folders.
|
|
|
808
987
|
the 14px token vs 13px; the `+N` here is `DsMoreCountChip` (the contract's global circular
|
|
809
988
|
chip, cursor inherited from the button) rather than the export's smaller filled variant;
|
|
810
989
|
Apply is `DsButton` medium (32px) vs 34; panel radius 6 vs 8.
|
|
990
|
+
- Row menu: 150px, 8px padding, 32px items, Edit in slate and Delete in red with a light red
|
|
991
|
+
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
992
|
+
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
993
|
+
(`edit` / `delete`), as in production.
|
|
994
|
+
- Footer with `colors`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
|
|
995
|
+
Apply on the right; the panel stays 240px in the form view, which drops its padding to bring
|
|
996
|
+
its own rows.
|
|
811
997
|
|
|
812
998
|
---
|
|
813
999
|
|
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
|
|
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
|