@salesql/sql_components_vue3 3.18.0 → 3.21.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.
@@ -61,6 +61,25 @@ export interface DsContactCellProps {
61
61
  revealTooltip?: string;
62
62
  /** The consumer's reveal is in flight: the CTA shows its spinner and ignores clicks. */
63
63
  revealing?: boolean;
64
+ /**
65
+ * Copy of the «Edit emails» link, on the right of the popover header. It renders only while no
66
+ * item is masked (reveal comes first) and this is non-empty — the app opts in, so phones never
67
+ * get it unless the app passes it. Click emits `edit`; with an `editor` slot it also switches
68
+ * the popover to edit mode.
69
+ */
70
+ editLabel?: string;
71
+ /**
72
+ * v-model:editing — the popover shows the `editor` slot in place of the list. The cell pins
73
+ * the popover and stops closing it on an outside click while it lasts; ESC, the trigger and
74
+ * `close()` still close it. Closing the popover always leaves the mode.
75
+ *
76
+ * While editing, a transparent backdrop (DsPopover `modal`) blocks the page behind the popover,
77
+ * so nothing else can be opened mid-edit. A click on it leaves edit mode (like `cancel()`) when
78
+ * the editor reports no unsaved changes through the slot's `setDirty`, and otherwise stays and
79
+ * refocuses the form. Without `teleported` the backdrop only covers what the popover's own
80
+ * stacking context covers: use `teleported` in tables and scrollers.
81
+ */
82
+ editing?: boolean;
64
83
  /** Adds thumbs up / down to the popover rows. */
65
84
  showRate?: boolean;
66
85
  /** No popover at all — `+N` stays plain text (contract §3.10, class B1 surfaces). */
@@ -85,3 +104,18 @@ export interface DsContactCellProps {
85
104
  correctLabel?: string;
86
105
  incorrectLabel?: string;
87
106
  }
107
+ /** Slot props of `#editor`, the content of the popover in edit mode. */
108
+ export interface DsContactCellEditorSlotProps {
109
+ /** Closes the popover (unpins it and leaves the edit mode). */
110
+ close: () => void;
111
+ /** Returns to the list; the popover stays open. */
112
+ cancel: () => void;
113
+ /**
114
+ * Reports whether the editor holds unsaved changes (wire a `DsEmailEditor`'s
115
+ * `@dirty-change="setDirty"`). While edit mode lasts a transparent backdrop blocks the page:
116
+ * a click on it returns to the list when the editor is clean, and keeps the editor and moves
117
+ * the focus back into the form when it is dirty. An editor that never reports counts as clean.
118
+ * The flag resets every time edit mode is entered or left.
119
+ */
120
+ setDirty: (dirty: boolean) => void;
121
+ }
@@ -1,9 +1,10 @@
1
1
  import { type PropType } from 'vue';
2
2
  import { type DsPopoverBoundary, type DsPopoverPlacement } from '../../ui/DsPopover';
3
3
  import { type DsContactItem, type DsContactKind, type DsContactSection, type DsContactType } from '../../constants/contact-data';
4
- declare var __VLS_45: {};
5
- type __VLS_Slots = {} & {
6
- actions?: (props: typeof __VLS_45) => any;
4
+ import type { DsContactCellEditorSlotProps } from './DsContactCell.types';
5
+ type __VLS_Slots = {
6
+ actions?(): unknown;
7
+ editor?(props: DsContactCellEditorSlotProps): unknown;
7
8
  };
8
9
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
10
  items: {
@@ -94,6 +95,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
94
95
  type: BooleanConstructor;
95
96
  default: boolean;
96
97
  };
98
+ editLabel: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ editing: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
97
106
  offset: {
98
107
  type: StringConstructor;
99
108
  default: string;
@@ -135,6 +144,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
135
144
  reveal: (...args: any[]) => void;
136
145
  correct: (...args: any[]) => void;
137
146
  incorrect: (...args: any[]) => void;
147
+ edit: (...args: any[]) => void;
148
+ "update:editing": (...args: any[]) => void;
138
149
  "update:open": (...args: any[]) => void;
139
150
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
140
151
  items: {
@@ -225,6 +236,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
225
236
  type: BooleanConstructor;
226
237
  default: boolean;
227
238
  };
239
+ editLabel: {
240
+ type: StringConstructor;
241
+ default: string;
242
+ };
243
+ editing: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
228
247
  offset: {
229
248
  type: StringConstructor;
230
249
  default: string;
@@ -266,6 +285,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
266
285
  onReveal?: ((...args: any[]) => any) | undefined;
267
286
  onCorrect?: ((...args: any[]) => any) | undefined;
268
287
  onIncorrect?: ((...args: any[]) => any) | undefined;
288
+ onEdit?: ((...args: any[]) => any) | undefined;
289
+ "onUpdate:editing"?: ((...args: any[]) => any) | undefined;
269
290
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
270
291
  }>, {
271
292
  type: "" | DsContactType;
@@ -278,6 +299,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
278
299
  copiedLabel: string;
279
300
  correctLabel: string;
280
301
  incorrectLabel: string;
302
+ editLabel: string;
281
303
  emptyLabel: string;
282
304
  moreLabel: string;
283
305
  boundary: DsPopoverBoundary;
@@ -291,6 +313,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
291
313
  revealLabel: string;
292
314
  revealTooltip: string;
293
315
  revealing: boolean;
316
+ editing: boolean;
294
317
  popoverWidth: string;
295
318
  enterDelay: number;
296
319
  leaveDelay: number;
@@ -32,4 +32,11 @@ export interface DsEmailEditorProps {
32
32
  */
33
33
  items: DsEmailEditorItem[];
34
34
  copy: DsEmailEditorCopy;
35
+ /**
36
+ * The consumer's save is in flight. Save shows its spinner and ignores clicks, and the inputs,
37
+ * «Add email», the remove buttons, Cancel, back and close are disabled; `save` is not emitted
38
+ * again. The form region carries `aria-busy`. Back to `false` it is usable again, with what
39
+ * the user typed intact (the consumer keeps it open on error, closes it on success).
40
+ */
41
+ saving?: boolean;
35
42
  }
@@ -9,8 +9,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
9
  type: PropType<DsEmailEditorCopy>;
10
10
  required: true;
11
11
  };
12
+ saving: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
12
16
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
17
  close: (...args: any[]) => void;
18
+ "dirty-change": (...args: any[]) => void;
14
19
  cancel: (...args: any[]) => void;
15
20
  save: (...args: any[]) => void;
16
21
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -22,9 +27,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
27
  type: PropType<DsEmailEditorCopy>;
23
28
  required: true;
24
29
  };
30
+ saving: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
25
34
  }>> & Readonly<{
26
35
  onClose?: ((...args: any[]) => any) | undefined;
36
+ "onDirty-change"?: ((...args: any[]) => any) | undefined;
27
37
  onCancel?: ((...args: any[]) => any) | undefined;
28
38
  onSave?: ((...args: any[]) => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
+ }>, {
40
+ saving: boolean;
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
42
  export default _default;
@@ -5,9 +5,12 @@ export interface DsModalProps {
5
5
  width?: string;
6
6
  /** Explicit dialog height (any CSS length). Unset = content height. */
7
7
  height?: string;
8
- /** Top offset of the dialog inside the fixed backdrop (portal mode). */
8
+ /**
9
+ * Opt-in top offset (any CSS length, portal mode). Unset = vertically centered; set = the
10
+ * dialog is anchored at that offset (for long or variable-height content).
11
+ */
9
12
  top?: string;
10
- /** Center the body text. */
13
+ /** Center-align the body text. It does not affect the vertical placement. */
11
14
  center?: boolean;
12
15
  /** false = render in-flow (no backdrop / portal / scroll-lock) for specimen cards. */
13
16
  fixed?: boolean;
@@ -77,11 +77,22 @@ export interface DsPopoverProps {
77
77
  * Root and trigger fill their container instead of hugging the trigger's content: the
78
78
  * whole surface opens the panel (a table cell painted as clickable end to end). SALESQL-4056.
79
79
  */
80
- block?: boolean; /**
80
+ block?: boolean;
81
+ /**
81
82
  * Keeps the panel inside this box as well as the viewport — an element, or a getter for its
82
83
  * rect. The panel's edges stop at the boundary's (flush, no margin) and it is capped to the
83
84
  * width left, so it never covers what is beyond it: the prospector table's sticky «Actions»
84
85
  * column. `null` (default) = viewport only. Additive (SALESQL-4428).
85
86
  */
86
- boundary?: DsPopoverBoundary;
87
+ boundary?: DsPopoverBoundary; /**
88
+ * Behaves like a modal while open: a transparent full-viewport layer sits right under the
89
+ * panel and above the page, so nothing behind it can be clicked or hovered. It does not dim
90
+ * and the panel does not move. A click on it emits `backdrop-click`; the popover does not
91
+ * close for that on its own (the consumer decides: close, refocus…) except through
92
+ * `closeOnOutside`, which treats a press on the layer as any outside press. Teleported, the
93
+ * layer lives in the same fixed anchor as the panel; inline, it sits in the root next to the
94
+ * panel, so it only covers what the panel's own stacking context covers — pair it with
95
+ * `teleported` inside tables and scrollers. Off (default) = no layer. Additive (SALESQL-4183).
96
+ */
97
+ modal?: boolean;
87
98
  }
@@ -54,8 +54,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
54
54
  type: PropType<DsPopoverBoundary>;
55
55
  default: null;
56
56
  };
57
+ modal: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
57
61
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
62
  "update:open": (...args: any[]) => void;
63
+ "backdrop-click": (...args: any[]) => void;
59
64
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
60
65
  open: BooleanConstructor;
61
66
  placement: {
@@ -102,8 +107,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
102
107
  type: PropType<DsPopoverBoundary>;
103
108
  default: null;
104
109
  };
110
+ modal: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
105
114
  }>> & Readonly<{
106
115
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
116
+ "onBackdrop-click"?: ((...args: any[]) => any) | undefined;
107
117
  }>, {
108
118
  width: string;
109
119
  flush: boolean;
@@ -117,6 +127,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
117
127
  closeOnOutside: boolean;
118
128
  triggerOnClick: boolean;
119
129
  boundary: DsPopoverBoundary;
130
+ modal: boolean;
120
131
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
121
132
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
122
133
  export default _default;
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.18.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.21.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
 
@@ -75,7 +75,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
75
75
  - **DsTable** (Data) — Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
76
76
  - **DsVerificationIcon** (Data) — Status glyph for a contact data point (email/phone): verified, unverified, or newly
77
77
  - **DsAlert** (Feedback) — Inline banner for status/confirmation messages (success, info, warning, error). It
78
- - **DsModal** (Feedback) — Centered dialog with an optional header (title + close button) and footer action row.
78
+ - **DsModal** (Feedback) — Dialog with an optional header (title + close button) and footer action row, vertically
79
79
  - **DsNotification** (Feedback) — Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
80
80
  - **DsTooltip** (Feedback) — Dark bubble that describes a wrapped trigger on hover or keyboard focus, with 4-way
81
81
  - **DsCheckbox** (Forms) — Checked / unchecked / indeterminate selection control. **Presentational only**.
@@ -243,10 +243,11 @@ Off-scale values (10.5px, 13.5px, 1.45) follow the export (Diego, 2026-09-23).
243
243
  ## DsAddToSequence
244
244
 
245
245
  The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
246
- (Work / Direct email as stacked radio cards), a searchable multi-select of campaigns and an
247
- **Add** confirm that stays disabled until something is selected. Measured from the design
248
- export's `SequenceButton` / `sequenceMenu`. One affordance for the full profile and the
249
- bulk bars — the trigger switches look with `variant` and `size`.
246
+ (Work / Direct email as stacked radio cards), a searchable list of campaigns (multi-select,
247
+ or one campaign per Add with `selection="single"`) and an **Add** confirm that stays disabled
248
+ until something is selected. Measured from the design export's `SequenceButton` /
249
+ `sequenceMenu`. One affordance for the full profile and the bulk bars — the trigger
250
+ switches look with `variant` and `size`.
250
251
 
251
252
  The library knows nothing about campaigns or sending: it renders the list you pass and
252
253
  emits the intent.
@@ -262,8 +263,12 @@ emits the intent.
262
263
  | `defaultChannel` | `'work' \| 'direct'` | `'work'` | Initially selected channel. |
263
264
  | `campaignsLabel` | `string` | `''` | Caption above the list ("Recent campaigns"). Empty = none. |
264
265
  | `campaigns` | `DsPickerOption[]` | — | The campaigns to offer (required). |
266
+ | `selection` | `'multiple' \| 'single'` | `'multiple'` | `multiple`: checkboxes. `single`: radios, one campaign per Add. |
267
+ | `loading` | `boolean` | `false` | The app is fetching campaigns: a spinner replaces the list and the empty state. The search stays usable. |
268
+ | `loadingLabel` | `string` | `''` | Accessible name of the spinner. Empty = DsSpinner's own ("Loading"). |
265
269
  | `searchPlaceholder` | `string` | `''` | |
266
- | `emptyLabel` | `string` | `''` | Shown when the search matches nothing. |
270
+ | `emptyLabel` | `string` | `''` | Shown when the list is empty: no campaigns, or a search with no matches. |
271
+ | `createLabel` | `string` | `''` | The empty state's CTA ("Create campaign"): a tertiary `DsButton` under `emptyLabel` that emits `create`. Empty = no CTA. |
267
272
  | `addLabel` | `string` | — | The confirm (required). |
268
273
  | `variant` | `'secondary' \| 'primary'` | `'secondary'` | `DsButton outline` (white, hairline ring) or `DsButton primary` (solid accent). |
269
274
  | `size` | `'medium' \| 'large'` | `'medium'` | 32px / 36px trigger. |
@@ -273,17 +278,22 @@ emits the intent.
273
278
 
274
279
  ### Events
275
280
 
276
- | Event | Payload | When |
277
- | ------------- | -------------------------------------------------------------- | --------------------------------------------- |
278
- | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. |
279
- | `search` | `string` | The search text changed (filtering is local). |
280
- | `update:open` | `boolean` | The panel opened or closed. |
281
+ | Event | Payload | When |
282
+ | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
283
+ | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. `campaigns` keeps the order they were chosen in (one item in `single`). |
284
+ | `search` | `string` | Every keystroke, no debounce. The list also filters locally; an app that searches on the server debounces this and swaps `campaigns` (with `loading` while it waits). A chosen campaign survives the swap. |
285
+ | `create` | `string` | The empty state's CTA was clicked. Payload: the search text, trimmed. Panel closes; the app owns creation (it navigates to Campaigns). |
286
+ | `update:open` | `boolean` | The panel opened or closed. |
281
287
 
282
288
  ### Accessibility
283
289
 
284
290
  - The trigger is a `DsButton` (`outline` / `primary`, `medium` / `large`) with
285
291
  `aria-haspopup="dialog"` / `aria-expanded`; the channels are a native radio group
286
- (`DsRadio`, one `name` per instance); campaigns are `DsCheckbox` rows.
292
+ (`DsRadio`, one `name` per instance); campaigns are `DsCheckbox` rows in a `group`, or
293
+ `DsRadio` rows in their own `radiogroup` with `selection="single"`.
294
+ - While `loading`, the list is `aria-busy` and holds a `DsSpinner` (`role="status"`).
295
+ - With nothing to list, the group / radiogroup is not rendered (an empty radiogroup is
296
+ invalid ARIA): the empty label and the CTA sit after the caption instead.
287
297
  - `Add` is a real disabled `DsButton` until a campaign is selected.
288
298
 
289
299
  ### Design parity (export `SequenceButton`)
@@ -298,6 +308,10 @@ emits the intent.
298
308
  label vs 13.5px/700; trigger height 40px → `large` (36px) / default `medium` (32px); Add is
299
309
  `DsButton` medium (32) vs 34; section captions 10.5px → `micro` (10px) in `slate-soft`
300
310
  (`#5e666f`) vs the export's `#5c6670`; panel radius 6 vs 8.
311
+ - **Not in the export:** `selection="single"` reuses the campaign row with a `DsRadio`
312
+ (the `DsSavedButton` single-pick language), `loading` is the centred small `DsSpinner`
313
+ `DsSelect` shows while it fetches, and the empty state's CTA is the tertiary `add` button
314
+ of `DsSavedButton`'s create footer, under the empty label (Diego, 26/10).
301
315
 
302
316
  ---
303
317
 
@@ -324,6 +338,62 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
324
338
  pointer. «Una lista se puede escanear sin clicks.» (contract §3.5)
325
339
  - `disabled` removes the popover entirely — `+N` stays plain text (contract §3.10, class B1).
326
340
 
341
+ ### Edit mode — the editor inside the same popover
342
+
343
+ With `edit-label` the popover header gets a text link on the right («Edit emails»: accent, 600,
344
+ 13px, pointer; the export's 12.5px snaps to the `small` step, the same as the title next to it).
345
+ It renders only while no item is masked (reveal comes first) and only when the app passes the
346
+ copy, so a phone column gets no link unless the app wants it. A click emits `edit`; if the app
347
+ also provides the `editor` slot, the same 300px popover swaps the list for that slot
348
+ (`v-model:editing`, `update:editing`).
349
+
350
+ ```vue
351
+ <DsContactCell v-model:editing="editing" edit-label="Edit emails" … @edit="track">
352
+ <template #editor="{ close, cancel }">
353
+ <DsEmailEditor :items="items" :copy="copy" :saving="saving" @save="persist" @cancel="cancel" @close="close" />
354
+ </template>
355
+ </DsContactCell>
356
+ ```
357
+
358
+ - **`cancel()`** (back, Cancel) returns to the list; the popover stays open and pinned.
359
+ - **`close()`** (the editor's close) closes the popover, un-pins it and leaves the mode.
360
+ - A **successful save** is the app's call: set `editing` to `false` (back to the list with the new
361
+ items) or call `close()`. On error leave it as it is: the editor keeps what the user typed.
362
+ - Entering edit mode **pins** the popover (leaving the cell no longer closes it) and the popover
363
+ **stops closing on an outside click** while editing, so a stray click cannot drop what was typed
364
+ or a save in flight. ESC, a click on the trigger and `close()` still close it. Whatever closes
365
+ the popover leaves the mode, so reopening shows the list.
366
+ - Focus moves to the first field of the editor, and back to the link when the user returns to the list.
367
+ - Without `edit-label` and the `editor` slot nothing changes: the list, hover, pin and outside click
368
+ behave as before.
369
+
370
+ #### The page is blocked while editing (backdrop)
371
+
372
+ While editing, the popover is `modal`: a transparent, full-viewport layer sits right under it and
373
+ above the page, so nothing behind can be clicked or hovered (no full profile, no reveal, no other
374
+ cell's popover). It does not dim and the popover does not move; it exists only while editing and
375
+ is gone when the mode is left or the cell unmounts. A click on it is the way out:
376
+
377
+ - **Nothing unsaved** → leaves edit mode like `cancel()` (`update:editing` `false`, back to the list,
378
+ focus on the «Edit emails» link).
379
+ - **Unsaved changes** → stays in edit mode and moves the focus back into the form (the last field
380
+ the user was in, or the first one). Nothing is lost.
381
+ - ESC still closes the popover and leaves the mode, as before. The trigger sits under the layer, so
382
+ a pointer click on it is a click on the layer; the keyboard path (`close()`, ESC) is unchanged.
383
+
384
+ The cell cannot see inside the slot, so the editor reports its state: the `#editor` slot gets
385
+ `setDirty`, and `DsEmailEditor` emits `dirty-change`:
386
+
387
+ ```vue
388
+ <template #editor="{ close, cancel, setDirty }">
389
+ <DsEmailEditor … @dirty-change="setDirty" @cancel="cancel" @close="close" />
390
+ </template>
391
+ ```
392
+
393
+ An editor that never reports counts as clean, so existing apps get «click on the layer leaves edit
394
+ mode». Use `teleported` in tables and scrollers: inline, the layer only covers what the popover's own
395
+ stacking context covers. Keyboard focus is not trapped: Tab can still leave the popover.
396
+
327
397
  ### Props
328
398
 
329
399
  | Prop | Type | Default | Description |
@@ -348,6 +418,8 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
348
418
  | `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
419
  | `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
350
420
  | `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
421
+ | `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`. |
422
+ | `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
423
  | `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
424
  | `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
425
  | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
@@ -355,19 +427,22 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
355
427
 
356
428
  ### Events
357
429
 
358
- | Event | Payload | When |
359
- | ------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
360
- | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
361
- | `copy` | `DsContactItem` | Emitted once a row's value is on the clipboard (re-emitted from the list). |
362
- | `correct` | `DsContactItem` | Thumbs-up on a row. |
363
- | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
364
- | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
430
+ | Event | Payload | When |
431
+ | ---------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
432
+ | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
433
+ | `copy` | `DsContactItem` | Emitted once a row's value is on the clipboard (re-emitted from the list). |
434
+ | `correct` | `DsContactItem` | Thumbs-up on a row. |
435
+ | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
436
+ | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
437
+ | `edit` | — | The «Edit emails» link was clicked (`edit-label`). With an `editor` slot the popover also enters edit mode. |
438
+ | `update:editing` | `boolean` | Edit mode was entered or left (link, `cancel()`, `close()`, ESC, a click on the backdrop with a clean editor, the popover closing). |
365
439
 
366
440
  ### Slots
367
441
 
368
- | Slot | Where | Use |
369
- | --------- | ---------------------------------- | ---------------------------------------------------- |
370
- | `actions` | Right side of the popover's header | The app's Edit control. Sits next to the reveal CTA. |
442
+ | Slot | Where | Use |
443
+ | --------- | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
444
+ | `actions` | Right side of the popover's header | Extra header controls of the app. Sits next to the reveal CTA and the edit link. |
445
+ | `editor` | The whole popover, in edit mode | The editor (`DsEmailEditor`). Slot props `{ close, cancel, setDirty }`: `close()` closes the popover, `cancel()` returns to the list, `setDirty(boolean)` reports unsaved changes (wire `@dirty-change="setDirty"`): a click on the backdrop leaves edit mode when clean and refocuses the form when dirty. |
371
446
 
372
447
  ### Teleported popover (tables and scrollers)
373
448
 
@@ -429,6 +504,10 @@ Labels and badge strings come from the app's `contact-data-contract/contactDataC
429
504
  - The panel sits _over_ the trigger (`top: −8`) exactly like the export: `DsPopover` gained
430
505
  `over-start` / `over-end` for it (Diego, 22/09). The ¼ shift is the contract's (§3.5), not
431
506
  the export's.
507
+ - The edit link and the editor swap follow `DataPopover` (`startEdit` → the editor with its own
508
+ header, back returns to the list). Library rules win where they differ: the editor's inputs keep
509
+ the library's focus and rest border (see `DsEmailEditor`), and while editing the popover also
510
+ ignores outside clicks (the export closes it), to protect typed text and a save in flight.
432
511
  - **Logged deltas (accepted):** popover chrome is `DsPopover`'s (radius 6, dropdown shadow)
433
512
  rather than the export's (radius 8, deeper shadow). Type glyph 17px → `icon-size(16)`.
434
513
 
@@ -618,10 +697,11 @@ job. There are no status marks (pills) inside the editor: the state is not shown
618
697
 
619
698
  ### Props
620
699
 
621
- | Prop | Type | Default | Description |
622
- | ------- | --------------------- | ------- | --------------------------------------------------------------------------------------------- |
623
- | `items` | `{ value: string }[]` | — | The current emails (required). Seeds the rows on mount and is the baseline of «what changed». |
624
- | `copy` | `DsEmailEditorCopy` | — | Every visible string (required). The app owns it. |
700
+ | Prop | Type | Default | Description |
701
+ | -------- | --------------------- | ------- | --------------------------------------------------------------------------------------------- |
702
+ | `items` | `{ value: string }[]` | — | The current emails (required). Seeds the rows on mount and is the baseline of «what changed». |
703
+ | `copy` | `DsEmailEditorCopy` | — | Every visible string (required). The app owns it. |
704
+ | `saving` | `boolean` | `false` | The app's save is in flight: Save spins and the whole form is locked (see «Saving»). |
625
705
 
626
706
  #### `copy` keys
627
707
 
@@ -641,11 +721,12 @@ job. There are no status marks (pills) inside the editor: the state is not shown
641
721
 
642
722
  ### Events
643
723
 
644
- | Event | Payload | When |
645
- | -------- | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
646
- | `cancel` | — | Cancel or the header's back button was used (leave without saving). |
647
- | `close` | — | The header's close button was used. Dismissing the host (popover, panel) is the consumer's job. |
648
- | `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). |
724
+ | Event | Payload | When |
725
+ | -------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
726
+ | `cancel` | — | Cancel or the header's back button was used (leave without saving). |
727
+ | `close` | — | The header's close button was used. Dismissing the host (popover, panel) is the consumer's job. |
728
+ | `dirty-change` | `boolean` | What the form shows started (`true`) or stopped (`false`) differing from `items`: the same rule that enables Save (blank rows and surrounding spaces do not count; typing the original back is clean). Emitted on changes only: a fresh editor is clean and says nothing. In a `DsContactCell` wire it to the slot's `setDirty` (`@dirty-change="setDirty"`) so a click on the edit-mode backdrop does not drop unsaved edits. |
729
+ | `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). |
649
730
 
650
731
  ### Behaviour
651
732
 
@@ -656,6 +737,11 @@ job. There are no status marks (pills) inside the editor: the state is not shown
656
737
  later occurrences. An invalid text is never also reported as a duplicate. Empty rows are
657
738
  discarded, never an error. With errors, Save emits nothing and focuses the first failing row.
658
739
  - «+ Add email» appends an empty row and focuses it.
740
+ - **Saving**: with `saving` the Save button shows its own loading state (`DsButton` `loading`: spinner,
741
+ `aria-busy`, not clickable) and the inputs, «Add email», the remove buttons, Cancel, back and close are
742
+ disabled, so there are no edits and no double submit; `save` is not emitted again. The form region
743
+ carries `aria-busy`. When `saving` goes back to `false` the form is usable again with what the user
744
+ typed intact: the app keeps it open on error and closes it (or leaves the edit mode) on success.
659
745
  - Enter in an input is swallowed (`preventDefault`): it never submits a host `<form>` and does not save.
660
746
  Escape is not handled: closing is the container's job, like in the other library forms.
661
747
  - A11y: each input has a visually hidden `<label>`; an error sets `aria-invalid` and is linked with
@@ -2192,7 +2278,11 @@ consumer can opt into controlling it via `v-model:visible`.
2192
2278
 
2193
2279
  ## DsModal
2194
2280
 
2195
- Centered dialog with an optional header (title + close button) and footer action row.
2281
+ Dialog with an optional header (title + close button) and footer action row, vertically
2282
+ centered in the viewport by default. It never overflows the viewport: past the available
2283
+ height the body scrolls inside while the header and footer stay visible. Pass `top` to
2284
+ anchor it at an offset instead (long or variable-height forms, so it does not jump while
2285
+ the content grows).
2196
2286
  Portal-based by default (`fixed`), with a focus trap, scroll lock, and Escape-to-close;
2197
2287
  opting out of `fixed` renders it in-flow for specimen/embedded use. **Presentational
2198
2288
  only**: it never closes itself — the consumer holds the `open` boolean and flips it off
@@ -2207,8 +2297,8 @@ on `close`.
2207
2297
  | `showClose` | `boolean` | `true` | Show the icon-only × close button in the header. |
2208
2298
  | `width` | `string` | `'440px'` | Dialog width (any CSS length). |
2209
2299
  | `height` | `string` | `''` | Explicit dialog height (any CSS length). Empty = content height. |
2210
- | `top` | `string` | `'15vh'` | Top offset of the dialog inside the fixed backdrop (portal mode). |
2211
- | `center` | `boolean` | `false` | Center-align the body text. |
2300
+ | `top` | `string` | `''` | Opt-in top offset (any CSS length, portal mode). Empty = vertically centered; set (e.g. `'15vh'`) = anchored at that offset. |
2301
+ | `center` | `boolean` | `false` | Center-align the body **text** only. It does not affect the vertical placement (that is the default; use `top` to anchor). |
2212
2302
  | `fixed` | `boolean` | `true` | `true` portals to `body` with a backdrop, focus trap, scroll lock and Escape-to-close. `false` renders in-flow with none of that, for specimen/embedded use. |
2213
2303
  | `closeOnBackdrop` | `boolean` | `true` | Clicking the backdrop emits `close` (portal mode only). |
2214
2304
  | `closeOnEscape` | `boolean` | `true` | Pressing Escape emits `close` (portal mode only). |
@@ -2243,6 +2333,9 @@ on `close`.
2243
2333
 
2244
2334
  - Blocking decisions or confirmations (delete, discard changes) — pair with the `footer`
2245
2335
  slot for the action buttons.
2336
+ - Short, fixed-height dialogs (credits, confirmations): keep the default, centered.
2337
+ - Long or variable-height forms: pass `top` (e.g. `top="15vh"`) so the dialog stays pinned
2338
+ while its content grows instead of re-centering and jumping.
2246
2339
  - Use `fixed="false"` only for a static, in-flow specimen; real usage should keep the
2247
2340
  portal, focus trap, and scroll lock.
2248
2341
  - For transient, non-blocking feedback use `DsNotification` instead.
@@ -2972,6 +3065,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
2972
3065
  | `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
2973
3066
  | `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). |
2974
3067
  | `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the panel must stay inside besides the viewport. See **Boundary** below. |
3068
+ | `modal` | `boolean` | `false` | Blocks the page behind the panel with a transparent full-viewport layer and emits `backdrop-click`. See **Modal** below. |
2975
3069
 
2976
3070
  ### Placement
2977
3071
 
@@ -3047,6 +3141,26 @@ the area on its other side — a getter such as
3047
3141
  It is read on every measurement (open, scroll, resize), so a moving column is followed.
3048
3142
  Works inline and `teleported`. Without it nothing changes.
3049
3143
 
3144
+ ### Modal
3145
+
3146
+ `modal` (SALESQL-4183) makes the popover behave like a modal while it is open: a **transparent**,
3147
+ full-viewport layer sits right under the panel and above the page, so nothing behind it can be
3148
+ clicked or hovered. It does not dim (DsModal's `colors.$backdrop` is the dimming one) and the panel
3149
+ does not move; it exists only while `open` and is removed on close and on unmount, with no layout
3150
+ shift (it is `position: fixed`).
3151
+
3152
+ - A click on the layer emits **`backdrop-click`**. The popover does not decide what it means: the
3153
+ consumer closes it, refocuses a form, etc. (`DsContactCell` leaves edit mode or refocuses).
3154
+ - `closeOnOutside` keeps its meaning: a press on the layer is an outside press, inline and teleported
3155
+ alike. Turn it off when `backdrop-click` is the only thing that should react.
3156
+ - The layer is rendered next to the panel: teleported, inside the same fixed anchor in `<body>`
3157
+ (z-index 1999 under the panel's 2000, inside the anchor's 2002 stacking context); inline, in the
3158
+ root. Inline it only covers what the panel's own stacking context covers, so use `teleported` in
3159
+ tables and scrollers. While the panel fades out the layer stops intercepting, so the next click
3160
+ is not swallowed.
3161
+ - The `mousedown` on the layer is cancelled, so a focused field inside the panel keeps its focus.
3162
+ - Without it nothing changes (no layer).
3163
+
3050
3164
  ### Slots
3051
3165
 
3052
3166
  | Slot | Description |
@@ -3056,9 +3170,10 @@ Works inline and `teleported`. Without it nothing changes.
3056
3170
 
3057
3171
  ### Events
3058
3172
 
3059
- | Event | Payload | When |
3060
- | ------------- | --------- | ----------------------------------------------------------- |
3061
- | `update:open` | `boolean` | Trigger clicked, Escape pressed, or a press landed outside. |
3173
+ | Event | Payload | When |
3174
+ | ---------------- | --------- | ----------------------------------------------------------- |
3175
+ | `update:open` | `boolean` | Trigger clicked, Escape pressed, or a press landed outside. |
3176
+ | `backdrop-click` | — | A click landed on the `modal` layer. |
3062
3177
 
3063
3178
  ```vue
3064
3179
  <DsPopover v-model:open="open" width="260px">
@@ -3074,6 +3189,9 @@ Works inline and `teleported`. Without it nothing changes.
3074
3189
  - Escape closes when `closeOnEscape` is true.
3075
3190
  - Outside dismissal listens on `mousedown`, so a press that starts outside dismisses the
3076
3191
  panel even if the pointer is released over it.
3192
+ - `modal` blocks the pointer only: the layer is `aria-hidden`, keyboard focus is **not** trapped
3193
+ (Tab can still leave the panel) and the panel does not claim `aria-modal`. Keep that in mind
3194
+ before using it for anything beyond blocking stray clicks.
3077
3195
 
3078
3196
  ### Chrome
3079
3197
 
package/llms.txt CHANGED
@@ -40,7 +40,7 @@
40
40
  - DsTable (Data): Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
41
41
  - DsVerificationIcon (Data): Status glyph for a contact data point (email/phone): verified, unverified, or newly
42
42
  - DsAlert (Feedback): Inline banner for status/confirmation messages (success, info, warning, error). It
43
- - DsModal (Feedback): Centered dialog with an optional header (title + close button) and footer action row.
43
+ - DsModal (Feedback): Dialog with an optional header (title + close button) and footer action row, vertically
44
44
  - DsNotification (Feedback): Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
45
45
  - DsTooltip (Feedback): Dark bubble that describes a wrapped trigger on hover or keyboard focus, with 4-way
46
46
  - DsCheckbox (Forms): Checked / unchecked / indeterminate selection control. **Presentational only**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.18.0",
3
+ "version": "3.21.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",