@salesql/sql_components_vue3 3.19.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.
- package/dist/constants/events.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +2922 -2813
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAddToSequence/DsAddToSequence.types.d.ts +16 -1
- package/dist/ui/DsAddToSequence/DsAddToSequence.vue.d.ts +39 -1
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +14 -0
- package/dist/ui/DsEmailEditor/DsEmailEditor.vue.d.ts +2 -0
- package/dist/ui/DsModal/DsModal.types.d.ts +5 -2
- package/dist/ui/DsPopover/DsPopover.types.d.ts +13 -2
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +11 -0
- package/llms-full.txt +111 -37
- package/llms.txt +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
15
15
|
};
|
|
16
16
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
17
|
close: (...args: any[]) => void;
|
|
18
|
+
"dirty-change": (...args: any[]) => void;
|
|
18
19
|
cancel: (...args: any[]) => void;
|
|
19
20
|
save: (...args: any[]) => void;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -32,6 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
32
33
|
};
|
|
33
34
|
}>> & Readonly<{
|
|
34
35
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
"onDirty-change"?: ((...args: any[]) => any) | undefined;
|
|
35
37
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
36
38
|
onSave?: ((...args: any[]) => any) | undefined;
|
|
37
39
|
}>, {
|
|
@@ -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
|
-
/**
|
|
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.
|
|
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) —
|
|
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
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
|
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
|
|
280
|
-
| `
|
|
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
|
|
|
@@ -353,6 +367,33 @@ also provides the `editor` slot, the same 300px popover swaps the list for that
|
|
|
353
367
|
- Without `edit-label` and the `editor` slot nothing changes: the list, hover, pin and outside click
|
|
354
368
|
behave as before.
|
|
355
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
|
+
|
|
356
397
|
### Props
|
|
357
398
|
|
|
358
399
|
| Prop | Type | Default | Description |
|
|
@@ -386,22 +427,22 @@ also provides the `editor` slot, the same 300px popover swaps the list for that
|
|
|
386
427
|
|
|
387
428
|
### Events
|
|
388
429
|
|
|
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).
|
|
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). |
|
|
398
439
|
|
|
399
440
|
### Slots
|
|
400
441
|
|
|
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. |
|
|
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. |
|
|
405
446
|
|
|
406
447
|
### Teleported popover (tables and scrollers)
|
|
407
448
|
|
|
@@ -680,11 +721,12 @@ job. There are no status marks (pills) inside the editor: the state is not shown
|
|
|
680
721
|
|
|
681
722
|
### Events
|
|
682
723
|
|
|
683
|
-
| Event
|
|
684
|
-
|
|
|
685
|
-
| `cancel`
|
|
686
|
-
| `close`
|
|
687
|
-
| `
|
|
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). |
|
|
688
730
|
|
|
689
731
|
### Behaviour
|
|
690
732
|
|
|
@@ -2236,7 +2278,11 @@ consumer can opt into controlling it via `v-model:visible`.
|
|
|
2236
2278
|
|
|
2237
2279
|
## DsModal
|
|
2238
2280
|
|
|
2239
|
-
|
|
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).
|
|
2240
2286
|
Portal-based by default (`fixed`), with a focus trap, scroll lock, and Escape-to-close;
|
|
2241
2287
|
opting out of `fixed` renders it in-flow for specimen/embedded use. **Presentational
|
|
2242
2288
|
only**: it never closes itself — the consumer holds the `open` boolean and flips it off
|
|
@@ -2251,8 +2297,8 @@ on `close`.
|
|
|
2251
2297
|
| `showClose` | `boolean` | `true` | Show the icon-only × close button in the header. |
|
|
2252
2298
|
| `width` | `string` | `'440px'` | Dialog width (any CSS length). |
|
|
2253
2299
|
| `height` | `string` | `''` | Explicit dialog height (any CSS length). Empty = content height. |
|
|
2254
|
-
| `top` | `string` | `'
|
|
2255
|
-
| `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). |
|
|
2256
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. |
|
|
2257
2303
|
| `closeOnBackdrop` | `boolean` | `true` | Clicking the backdrop emits `close` (portal mode only). |
|
|
2258
2304
|
| `closeOnEscape` | `boolean` | `true` | Pressing Escape emits `close` (portal mode only). |
|
|
@@ -2287,6 +2333,9 @@ on `close`.
|
|
|
2287
2333
|
|
|
2288
2334
|
- Blocking decisions or confirmations (delete, discard changes) — pair with the `footer`
|
|
2289
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.
|
|
2290
2339
|
- Use `fixed="false"` only for a static, in-flow specimen; real usage should keep the
|
|
2291
2340
|
portal, focus trap, and scroll lock.
|
|
2292
2341
|
- For transient, non-blocking feedback use `DsNotification` instead.
|
|
@@ -3016,6 +3065,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
|
|
|
3016
3065
|
| `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
|
|
3017
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). |
|
|
3018
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. |
|
|
3019
3069
|
|
|
3020
3070
|
### Placement
|
|
3021
3071
|
|
|
@@ -3091,6 +3141,26 @@ the area on its other side — a getter such as
|
|
|
3091
3141
|
It is read on every measurement (open, scroll, resize), so a moving column is followed.
|
|
3092
3142
|
Works inline and `teleported`. Without it nothing changes.
|
|
3093
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
|
+
|
|
3094
3164
|
### Slots
|
|
3095
3165
|
|
|
3096
3166
|
| Slot | Description |
|
|
@@ -3100,9 +3170,10 @@ Works inline and `teleported`. Without it nothing changes.
|
|
|
3100
3170
|
|
|
3101
3171
|
### Events
|
|
3102
3172
|
|
|
3103
|
-
| Event
|
|
3104
|
-
|
|
|
3105
|
-
| `update:open`
|
|
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. |
|
|
3106
3177
|
|
|
3107
3178
|
```vue
|
|
3108
3179
|
<DsPopover v-model:open="open" width="260px">
|
|
@@ -3118,6 +3189,9 @@ Works inline and `teleported`. Without it nothing changes.
|
|
|
3118
3189
|
- Escape closes when `closeOnEscape` is true.
|
|
3119
3190
|
- Outside dismissal listens on `mousedown`, so a press that starts outside dismisses the
|
|
3120
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.
|
|
3121
3195
|
|
|
3122
3196
|
### Chrome
|
|
3123
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):
|
|
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**.
|