@salesql/sql_components_vue3 3.18.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.
- package/dist/constants/events.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +2500 -2440
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +20 -0
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +26 -3
- package/dist/ui/DsEmailEditor/DsEmailEditor.types.d.ts +7 -0
- package/dist/ui/DsEmailEditor/DsEmailEditor.vue.d.ts +11 -1
- package/llms-full.txt +59 -15
- 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.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
|
|
|
@@ -324,6 +324,35 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
|
|
|
324
324
|
pointer. «Una lista se puede escanear sin clicks.» (contract §3.5)
|
|
325
325
|
- `disabled` removes the popover entirely — `+N` stays plain text (contract §3.10, class B1).
|
|
326
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
|
+
|
|
327
356
|
### Props
|
|
328
357
|
|
|
329
358
|
| Prop | Type | Default | Description |
|
|
@@ -348,6 +377,8 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
|
|
|
348
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). |
|
|
349
378
|
| `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
|
|
350
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. |
|
|
351
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»). |
|
|
352
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. |
|
|
353
384
|
| `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
|
|
@@ -355,19 +386,22 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
|
|
|
355
386
|
|
|
356
387
|
### Events
|
|
357
388
|
|
|
358
|
-
| Event
|
|
359
|
-
|
|
|
360
|
-
| `update:open`
|
|
361
|
-
| `copy`
|
|
362
|
-
| `correct`
|
|
363
|
-
| `incorrect`
|
|
364
|
-
| `reveal`
|
|
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). |
|
|
365
398
|
|
|
366
399
|
### Slots
|
|
367
400
|
|
|
368
|
-
| Slot | Where | Use
|
|
369
|
-
| --------- | ---------------------------------- |
|
|
370
|
-
| `actions` | Right side of the popover's header |
|
|
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. |
|
|
371
405
|
|
|
372
406
|
### Teleported popover (tables and scrollers)
|
|
373
407
|
|
|
@@ -429,6 +463,10 @@ Labels and badge strings come from the app's `contact-data-contract/contactDataC
|
|
|
429
463
|
- The panel sits _over_ the trigger (`top: −8`) exactly like the export: `DsPopover` gained
|
|
430
464
|
`over-start` / `over-end` for it (Diego, 22/09). The ¼ shift is the contract's (§3.5), not
|
|
431
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.
|
|
432
470
|
- **Logged deltas (accepted):** popover chrome is `DsPopover`'s (radius 6, dropdown shadow)
|
|
433
471
|
rather than the export's (radius 8, deeper shadow). Type glyph 17px → `icon-size(16)`.
|
|
434
472
|
|
|
@@ -618,10 +656,11 @@ job. There are no status marks (pills) inside the editor: the state is not shown
|
|
|
618
656
|
|
|
619
657
|
### Props
|
|
620
658
|
|
|
621
|
-
| Prop
|
|
622
|
-
|
|
|
623
|
-
| `items`
|
|
624
|
-
| `copy`
|
|
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»). |
|
|
625
664
|
|
|
626
665
|
#### `copy` keys
|
|
627
666
|
|
|
@@ -656,6 +695,11 @@ job. There are no status marks (pills) inside the editor: the state is not shown
|
|
|
656
695
|
later occurrences. An invalid text is never also reported as a duplicate. Empty rows are
|
|
657
696
|
discarded, never an error. With errors, Save emits nothing and focuses the first failing row.
|
|
658
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.
|
|
659
703
|
- Enter in an input is swallowed (`preventDefault`): it never submits a host `<form>` and does not save.
|
|
660
704
|
Escape is not handled: closing is the container's job, like in the other library forms.
|
|
661
705
|
- A11y: each input has a visually hidden `<label>`; an error sets `aria-invalid` and is linked with
|