@salesql/sql_components_vue3 3.33.0 → 3.35.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/composables/useOrganizerFields.d.ts +4 -0
- package/dist/composables/usePickerOrganizer.d.ts +15 -0
- package/dist/constants/events.d.ts +4 -0
- package/dist/constants/pickers.d.ts +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.es.js +4875 -4522
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +19 -2
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +15 -2
- package/dist/ui/DsConfirmDialog/DsConfirmDialog.types.d.ts +24 -0
- package/dist/ui/DsConfirmDialog/DsConfirmDialog.vue.d.ts +91 -0
- package/dist/ui/DsConfirmDialog/index.d.ts +2 -0
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +6 -0
- package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +9 -0
- package/dist/ui/DsModal/DsModal.types.d.ts +8 -0
- package/dist/ui/DsModal/DsModal.vue.d.ts +25 -0
- package/dist/ui/DsModal/modalStack.d.ts +9 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +5 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +24 -4
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +16 -1
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +21 -2
- package/llms-full.txt +206 -67
- package/llms.txt +1 -0
- 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.35.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
|
|
|
@@ -48,7 +48,7 @@ app.provide(DS_TELEPORT_TARGET, overlayLayer); // an element inside the shadow r
|
|
|
48
48
|
|
|
49
49
|
Browsers ignore `@font-face` declared inside a shadow root: register the fonts on the page document.
|
|
50
50
|
|
|
51
|
-
## Components (
|
|
51
|
+
## Components (90)
|
|
52
52
|
|
|
53
53
|
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
54
54
|
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
@@ -119,6 +119,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
119
119
|
- **DsMenuItem** (Navigation) — Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
120
120
|
- **DsSidePanel** (Navigation) — A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
121
121
|
- **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
122
|
+
- **DsConfirmDialog** (Overlays) — A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
|
|
122
123
|
- **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
123
124
|
- **DsOrganizerDialog** (Overlays) — The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
124
125
|
- **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
@@ -1309,7 +1310,15 @@ supplies the palette.
|
|
|
1309
1310
|
|
|
1310
1311
|
The component never persists anything and never guesses that a save worked: it emits intent
|
|
1311
1312
|
(`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
|
|
1312
|
-
`closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the
|
|
1313
|
+
`closeForm(created?, session?)` (or sets `formError`). While it saves, `formLoading` blocks the
|
|
1314
|
+
submit. With `selectOnCreate` and the folder it just created, `closeForm(created)` emits `pick`
|
|
1315
|
+
with it and closes the panel («Create & select»); `closeForm()`, or `closeForm(created)` without
|
|
1316
|
+
`selectOnCreate`, only goes back to the list. It picks only on the save of the form still open:
|
|
1317
|
+
if the user closed the panel (Esc, outside click), went back or opened another form during the
|
|
1318
|
+
save, it returns `'not-taken'`, leaves the open form alone and the app selects the new folder
|
|
1319
|
+
itself. If a newer submit or pick came after that save, it returns `'stale'`: the app lists the
|
|
1320
|
+
folder but does not select it, so an older save never overwrites a newer choice. To tie each
|
|
1321
|
+
answer to its form, read `submitSession()` in the `create-option` handler and pass it back.
|
|
1313
1322
|
|
|
1314
1323
|
### Rules
|
|
1315
1324
|
|
|
@@ -1320,6 +1329,12 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1320
1329
|
- **`colors` gates nothing:** without `create` or `rowActions` it changes nothing visible.
|
|
1321
1330
|
- **Footer slot:** it always renders when passed (in every `create` mode) and replaces the
|
|
1322
1331
|
default button; it receives `openCreateForm(name?)` to open the form from the app's own control.
|
|
1332
|
+
- **Plan limit:** keep `create` at `'none'` and pass the `footer` slot with a `DsUpgradeNotice`
|
|
1333
|
+
(see «Folder limit (Free)»): the folders stay pickable and nothing offers to create.
|
|
1334
|
+
- **Re-pick:** the checked radio fires no `change`, so by default clicking the current folder
|
|
1335
|
+
emits nothing. With `repick` that click (or Space / Enter on it) emits `pick` with it and
|
|
1336
|
+
closes, for a picker whose checked option is a destination (the extension's bulk «Saved ▾»
|
|
1337
|
+
moves a selection into it).
|
|
1323
1338
|
- **Copy:** `copy` is partial; the keys it carries override the English defaults
|
|
1324
1339
|
(`DS_SAVED_BUTTON_COPY`), the rest stays.
|
|
1325
1340
|
|
|
@@ -1343,6 +1358,8 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1343
1358
|
| `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
|
|
1344
1359
|
| `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a folder without colour) starts at. Empty = the first of `colors`. |
|
|
1345
1360
|
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
1361
|
+
| `selectOnCreate` | `boolean` | `false` | `closeForm(created)` also picks the new folder (`pick`) and closes. Off = it only goes back to the list. |
|
|
1362
|
+
| `repick` | `boolean` | `false` | Clicking the checked folder (mouse, Space or Enter) also emits `pick` with it and closes. Off = the checked folder emits nothing. |
|
|
1346
1363
|
| `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown when it reopens. |
|
|
1347
1364
|
| `copy` | `Partial<DsSavedButtonCopy>` | `{}` | Every string, merged over `DS_SAVED_BUTTON_COPY`. See below. |
|
|
1348
1365
|
|
|
@@ -1352,7 +1369,7 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1352
1369
|
`deleteConfirm` (`'Are you sure?'`) and `deleteConfirmAction` (`'Yes, delete'`), the row after the
|
|
1353
1370
|
first click on Delete,
|
|
1354
1371
|
`createFormTitle` (`'New Folder'`), `editFormTitle` (`'Edit Folder'`), `createSubmit`
|
|
1355
|
-
(`'Create &
|
|
1372
|
+
(`'Create & select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
|
|
1356
1373
|
(`'Set Color'`), `back` (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own
|
|
1357
1374
|
defaults when unset).
|
|
1358
1375
|
|
|
@@ -1377,12 +1394,12 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1377
1394
|
|
|
1378
1395
|
| Event | Payload | When |
|
|
1379
1396
|
| ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1380
|
-
| `pick` | `DsPickerOption` | A folder was chosen
|
|
1397
|
+
| `pick` | `DsPickerOption` | A folder was chosen, or created and handed back with `closeForm(created)`. The panel closes. PATCH `folder_ids` here. With `repick`, also the checked folder. |
|
|
1381
1398
|
| `create` | `string` | The footer was clicked with `create="event"`; payload is the search text typed so far. The panel closes. |
|
|
1382
1399
|
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
|
|
1383
1400
|
| `delete` | `DsPickerOption` | Delete confirmed in a row's ⋮ («Are you sure? · Yes, delete»). Set `deleting: true` on that folder in the handler: the ⋮ and the panel stay open with the row in loading until the app removes the folder (success) or clears `deleting` (error, the row is back to Delete). Without `deleting` the ⋮ closes. |
|
|
1384
|
-
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`.
|
|
1385
|
-
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()
|
|
1401
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. Read `submitSession()` here for `closeForm(created, session)`. |
|
|
1402
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`, and `submitSession()` too. |
|
|
1386
1403
|
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
|
|
1387
1404
|
| `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked (`{ hint, tooltip? }`: the item stays focusable, `aria-disabled`, with the hint after its label). |
|
|
1388
1405
|
| `search` | `string` | The search text changed (filtering is local). |
|
|
@@ -1390,9 +1407,10 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1390
1407
|
|
|
1391
1408
|
### Exposed
|
|
1392
1409
|
|
|
1393
|
-
| Member
|
|
1394
|
-
|
|
|
1395
|
-
| `closeForm()` |
|
|
1410
|
+
| Member | Description |
|
|
1411
|
+
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1412
|
+
| `closeForm(created?, session?)` | Call it once the save succeeded. With `selectOnCreate` and the folder just created (create form open): emits `pick` with it, closes and returns `'taken'`. Without the argument or `selectOnCreate`, or after an edit, it returns to the list and `'not-taken'`. Once the panel closed, the form was left or another form opened, it leaves that form alone and returns `'not-taken'`: the app selects the folder itself. When a newer submit or pick superseded that save it returns `'stale'`: the app lists the folder but does not select it. `session` (from `submitSession()`) ties each answer to the form that sent it, also when two saves overlap. Closing the panel also resets it. |
|
|
1413
|
+
| `submitSession()` | The session of the last submit (`undefined` before any). Read it in the `create-option` / `update-option` handler and pass it to `closeForm`. |
|
|
1396
1414
|
|
|
1397
1415
|
### Slots
|
|
1398
1416
|
|
|
@@ -1478,7 +1496,15 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1478
1496
|
`closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit. Going to the
|
|
1479
1497
|
form and back keeps the search and the working-copy selection. A tag the app just created is
|
|
1480
1498
|
checked only if the app says so: `closeForm(created)` adds it to the working copy, and Apply keeps
|
|
1481
|
-
it even when `options` does not carry it yet.
|
|
1499
|
+
it even when `options` does not carry it yet. With `selection="single"` and `selectOnCreate`,
|
|
1500
|
+
`closeForm(created)` picks it instead: `apply [created]` and the panel closes, so the form's
|
|
1501
|
+
submit reads `copy.createSelectSubmit` («Create & select»; an app that only translated
|
|
1502
|
+
`createSubmit` keeps that text). Without `selectOnCreate`, single selection just goes back to the
|
|
1503
|
+
list. Either way it acts only on the save of the form still open: if the user closed the panel,
|
|
1504
|
+
went back or opened another form during the save, it returns `'not-taken'`, leaves the open form
|
|
1505
|
+
alone and the app applies the new tag itself. If a newer submit or selection came after that save,
|
|
1506
|
+
it returns `'stale'`: the app lists the tag but does not apply it. To tie each answer to its form,
|
|
1507
|
+
read `submitSession()` in the `create-option` handler and pass it back to `closeForm`.
|
|
1482
1508
|
|
|
1483
1509
|
A row's Delete can be blocked with its reason: set `deleteDisabled: { hint, tooltip? }` on the
|
|
1484
1510
|
option. The item stays focusable (`aria-disabled`), shows the `hint` after its label and the
|
|
@@ -1493,40 +1519,55 @@ what Delete needs and update the option while the menu is open.
|
|
|
1493
1519
|
- **Two create texts:** `copy.createRow` is the inline «Create “q”» row and `copy.newButton` is the
|
|
1494
1520
|
footer «+ New Tag» (only with `create="form"`). The deprecated `createLabel` fed both.
|
|
1495
1521
|
- **Tooltip:** automatic. The trigger shows the full label only while it is truncated, and hides
|
|
1496
|
-
while the panel is open.
|
|
1522
|
+
while the panel is open. With `iconOnly` it is always on (except while the panel is open): every
|
|
1523
|
+
applied tag's name (`copy.tagList`), or `label` while untagged.
|
|
1524
|
+
- **Icon only (narrow panels):** `iconOnly` keeps the `sell` glyph in the first tag's colour and
|
|
1525
|
+
the `+N` chip, and hides «Tagged as …» visually; the text stays for screen readers (the
|
|
1526
|
+
`DsItemSelectorButton` technique). Untagged, only the `label` glyph shows and `label` names it.
|
|
1527
|
+
The glyph is then the only cue, so a tag colour under 3:1 on the trigger (white, or `slate-bg`
|
|
1528
|
+
on hover) gets a 1px `slate-main` outline around the glyph, its colour intact (WCAG 1.4.11):
|
|
1529
|
+
15 of the 24 `DS_ORGANIZER_COLORS`, the yellow `#FEEE5E` among them.
|
|
1530
|
+
Touch has no hover, so the open panel starts with «Applied: …» (`copy.appliedList`), naming
|
|
1531
|
+
every applied tag, also those missing from `options`.
|
|
1497
1532
|
- **Copy:** `copy` is partial; the keys it carries override the English defaults
|
|
1498
1533
|
(`DS_TAG_PICKER_COPY`), the rest stays.
|
|
1499
1534
|
|
|
1500
1535
|
### Props
|
|
1501
1536
|
|
|
1502
|
-
| Prop
|
|
1503
|
-
|
|
|
1504
|
-
| `label`
|
|
1505
|
-
| `tags`
|
|
1506
|
-
| `options`
|
|
1507
|
-
| `size`
|
|
1508
|
-
| `
|
|
1509
|
-
| `
|
|
1510
|
-
| `
|
|
1511
|
-
| `
|
|
1512
|
-
| `
|
|
1513
|
-
| `
|
|
1514
|
-
| `
|
|
1515
|
-
| `
|
|
1516
|
-
| `
|
|
1517
|
-
| `
|
|
1518
|
-
| `
|
|
1519
|
-
| `
|
|
1537
|
+
| Prop | Type | Default | Description |
|
|
1538
|
+
| ---------------- | ----------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1539
|
+
| `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
|
|
1540
|
+
| `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
|
|
1541
|
+
| `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
|
|
1542
|
+
| `size` | `'medium' \| 'large'` | `'medium'` | |
|
|
1543
|
+
| `iconOnly` | `boolean` | `false` | Narrow panels: the trigger shows only the glyph and the `+N` chip; the label stays for screen readers and the tooltip lists every tag (`copy.tagList`), as does the open panel (`copy.appliedList`). Untagged: the `label` glyph, `label` as tooltip and accessible name. |
|
|
1544
|
+
| `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
|
|
1545
|
+
| `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
|
|
1546
|
+
| `disabled` | `boolean` | `false` | |
|
|
1547
|
+
| `selection` | `'multiple' \| 'single'` | `'multiple'` | `single`: at most one tag (the extension's header). Radio rows; picking applies at once and closes (so does the `create="event"` row); «Remove tag» (`copy.removeTag`) applies `[]`. No Apply. A pick emits `[option]` alone: other applied tags are not kept. `DS_TAG_PICKER_SELECTIONS`. |
|
|
1548
|
+
| `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
|
|
1549
|
+
| `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the create affordance does. `DS_PICKER_CREATE_MODES`. |
|
|
1550
|
+
| `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
|
|
1551
|
+
| `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
|
|
1552
|
+
| `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a tag without colour) starts at. Empty = the first of `colors`. |
|
|
1553
|
+
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
1554
|
+
| `selectOnCreate` | `boolean` | `false` | With `selection="single"`: `closeForm(created)` applies the new tag and closes («Create & select», `copy.createSelectSubmit`). Off = it only goes back to the list. |
|
|
1555
|
+
| `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown on reopen. |
|
|
1556
|
+
| `copy` | `Partial<DsTagPickerCopy>` | `{}` | Every string, merged over `DS_TAG_PICKER_COPY`. See below. |
|
|
1520
1557
|
|
|
1521
1558
|
`DsTagPickerCopy` keys (English defaults): `taggedAs` (`'Tagged as'`), `apply` (`'Apply'`),
|
|
1522
1559
|
`searchPlaceholder` (`'Search tags'`), `empty` (`'No tags found'`, empty string = nothing), `more`
|
|
1523
|
-
(`''`, the `+N` chip's accessible name), `
|
|
1560
|
+
(`''`, the `+N` chip's accessible name), `formatMore` (optional `(n) => string` that gets the
|
|
1561
|
+
overflow and wins over `more`, e.g. `` (n) => `${n} more tags` ``), `createRow` (`'Create'`), `newButton` (`'New Tag'`),
|
|
1524
1562
|
`actions` (`'Actions'`, the ⋮ `aria-label`), `edit` (`'Edit'`), `delete` (`'Delete'`),
|
|
1525
1563
|
`deleteConfirm` (`'Are you sure?'`) and `deleteConfirmAction` (`'Yes, delete'`), the row after the
|
|
1526
1564
|
first click on Delete,
|
|
1527
1565
|
`createFormTitle` (`'New Tag'`), `editFormTitle` (`'Edit Tag'`), `createSubmit` (`'Create'`),
|
|
1528
1566
|
`editSubmit` (`'Save'`), `namePlaceholder` (`'Tag name'`), `setColor` (`'Set Color'`), `back`
|
|
1529
|
-
(`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `
|
|
1567
|
+
(`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `createSelectSubmit`
|
|
1568
|
+
(`'Create & select'`, the create submit with `selection="single"` and `selectOnCreate`; falls back to an explicit `createSubmit`), `tagList` (`(names) => names.join(', ')`, the
|
|
1569
|
+
`iconOnly` tooltip from every applied tag's name), `appliedList` (`` (names) => `Applied: ${names.join(', ')}` ``, the
|
|
1570
|
+
`iconOnly` line atop the open panel), `errorMissingName` /
|
|
1530
1571
|
`errorTooLongName` (the form's own defaults when unset).
|
|
1531
1572
|
|
|
1532
1573
|
Map frontend-app's `Tag` with `{ id: t.id, name: t.name, color: t.color }` — the API takes
|
|
@@ -1556,8 +1597,8 @@ always wins over its alias. When `create` is not set it is inferred as before: `
|
|
|
1556
1597
|
| `create` | `string` | The create row was clicked with `create="event"`; payload is the typed text. |
|
|
1557
1598
|
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
|
|
1558
1599
|
| `delete` | `DsPickerOption` | Delete confirmed in a row's ⋮ («Are you sure? · Yes, delete»). Set `deleting: true` on that tag in the handler: the ⋮ and the panel stay open with the row in loading until the app removes the tag (success) or clears `deleting` (error, the row is back to Delete). Without `deleting` the ⋮ closes. |
|
|
1559
|
-
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`.
|
|
1560
|
-
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()
|
|
1600
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. Read `submitSession()` here for `closeForm(created, session)`. |
|
|
1601
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`, and `submitSession()` too. |
|
|
1561
1602
|
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
|
|
1562
1603
|
| `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked. |
|
|
1563
1604
|
| `search` | `string` | The search text changed (filtering is local). |
|
|
@@ -1565,9 +1606,10 @@ always wins over its alias. When `create` is not set it is inferred as before: `
|
|
|
1565
1606
|
|
|
1566
1607
|
### Exposed
|
|
1567
1608
|
|
|
1568
|
-
| Member
|
|
1569
|
-
|
|
|
1570
|
-
| `closeForm(created?)` | Returns the panel to the list. Call it once the save succeeded. With the tag just created (create form
|
|
1609
|
+
| Member | Description |
|
|
1610
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1611
|
+
| `closeForm(created?, session?)` | Returns the panel to the list. Call it once the save succeeded. With the tag just created (create form): `selection="multiple"` checks it in the selection and stays open; `selection="single"` with `selectOnCreate` emits `apply [created]` and closes. Returns `'taken'` when it took the tag; `'not-taken'` otherwise (single without `selectOnCreate`, or the panel closed, the form was left or another form opened meanwhile: that form is left alone and the app applies the tag itself); `'stale'` when a newer submit or selection superseded that save (the app lists the tag but does not apply it). `session` (from `submitSession()`) ties each answer to the form that sent it, also when two saves overlap. Closing the panel also resets it to the list. |
|
|
1612
|
+
| `submitSession()` | The session of the last submit (`undefined` before any). Read it in the `create-option` / `update-option` handler and pass it to `closeForm`. |
|
|
1571
1613
|
|
|
1572
1614
|
### Slots
|
|
1573
1615
|
|
|
@@ -1588,6 +1630,10 @@ aria-expanded>`), so it never toggles the tag. It appears on row hover, on keybo
|
|
|
1588
1630
|
is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
|
|
1589
1631
|
pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
|
|
1590
1632
|
- Back from the form (or `closeForm()`) returns focus to the search field.
|
|
1633
|
+
- With `iconOnly` the trigger is still named by its text («Tagged as {first}», or `label`),
|
|
1634
|
+
hidden visually but read; give the `+N` chip a name with `copy.formatMore` (``(n) => `${n} more tags` ``)
|
|
1635
|
+
so the count is announced too. The tooltip (every tag) is its description; on touch the open
|
|
1636
|
+
panel names every applied tag («Applied: …»).
|
|
1591
1637
|
|
|
1592
1638
|
### Design parity (export `tagsLine` / `tagMenu`)
|
|
1593
1639
|
|
|
@@ -2635,20 +2681,21 @@ no dead buttons.
|
|
|
2635
2681
|
|
|
2636
2682
|
### Props
|
|
2637
2683
|
|
|
2638
|
-
| Prop | Type
|
|
2639
|
-
| ---------------------- |
|
|
2640
|
-
| `open` | `boolean`
|
|
2641
|
-
| `user` | `DsAccountMenuUser`
|
|
2642
|
-
| `credits` | `DsAccountMenuCredits \| null`
|
|
2643
|
-
| `mailboxes` | `DsAccountMenuMailbox[] \| null`
|
|
2644
|
-
| `
|
|
2645
|
-
| `
|
|
2646
|
-
| `
|
|
2647
|
-
| `
|
|
2648
|
-
| `
|
|
2649
|
-
| `
|
|
2650
|
-
| `
|
|
2651
|
-
| `
|
|
2684
|
+
| Prop | Type | Default | Description |
|
|
2685
|
+
| ---------------------- | ---------------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
|
|
2686
|
+
| `open` | `boolean` | `undefined` | `v-model:open`. Omitted = the menu manages itself. Bind it to keep one popover open at a time. |
|
|
2687
|
+
| `user` | `DsAccountMenuUser` | — | `{ name, email, initials?, plan? }`. No `initials` = first letters of the name. |
|
|
2688
|
+
| `credits` | `DsAccountMenuCredits \| null` | `null` | `{ used?, total?, available?, resetsOn? }`. See below. `null` = no block. |
|
|
2689
|
+
| `mailboxes` | `DsAccountMenuMailbox[] \| null` | `null` | `null` = no campaigns access (no block). `[]` = «Connect a mailbox». See below. |
|
|
2690
|
+
| `mailboxesState` | `'ready' \| 'error' \| 'retrying'` | `'ready'` | The mailboxes read failed (`error`) or is being retried (`retrying`). See below. |
|
|
2691
|
+
| `getStarted` | `{ done, total } \| null` | `null` | «Get started · n of total», while the onboarding checklist is hidden. |
|
|
2692
|
+
| `showBulkSave` | `boolean` | `false` | «Bulk save from LinkedIn URLs». |
|
|
2693
|
+
| `showLinkedinAccounts` | `boolean` | `false` | «LinkedIn accounts» (opens in a new tab: trailing `open_in_new`). |
|
|
2694
|
+
| `language` | `string` | `''` | Current language's name; non-empty shows the Language row with it on the right. |
|
|
2695
|
+
| `showHelp` | `boolean` | `false` | «Help & support». |
|
|
2696
|
+
| `showWhatsNew` | `boolean` | `false` | «What's new». |
|
|
2697
|
+
| `whatsNewUnread` | `number` | `0` | Above 0, an unread dot (accessible name from `copy.whatsNewUnread`). |
|
|
2698
|
+
| `copy` | `Partial<DsAccountMenuCopy>` | English | Every string; a partial overrides only its keys (`DS_ACCOUNT_MENU_COPY`). |
|
|
2652
2699
|
|
|
2653
2700
|
#### Credits
|
|
2654
2701
|
|
|
@@ -2669,11 +2716,25 @@ reads «Mailboxes · N connected», N = mailboxes without `needsReconnect`; with
|
|
|
2669
2716
|
«Mailboxes». The provider logo is the brand mark only, no name; a provider without a logo falls
|
|
2670
2717
|
back to the `mail` icon. No per-mailbox Disconnect.
|
|
2671
2718
|
|
|
2719
|
+
#### Mailboxes that failed to load
|
|
2720
|
+
|
|
2721
|
+
`mailboxesState` (`DS_ACCOUNT_MENU_MAILBOXES_STATES`) is `ready` by default. With `error` or
|
|
2722
|
+
`retrying` the group shows even when `mailboxes` is `null`, and ignores `mailboxes`: the title is
|
|
2723
|
+
only «Mailboxes» (no count), one row says «We couldn’t load your mailboxes» (`copy.mailboxesError`)
|
|
2724
|
+
with an amber «Retry» pill (`copy.retry`, `sync` icon, styled like «Reconnect» but with `amber-deep` text for AA), and
|
|
2725
|
+
there is no Connect row, since nothing says whether a mailbox exists. «Retry» emits `retry-mailboxes` and,
|
|
2726
|
+
unlike every other row, keeps the menu open so the user sees the outcome in place. While
|
|
2727
|
+
`retrying` the pill's icon spins (not with reduced motion), it is `aria-busy` and
|
|
2728
|
+
`aria-disabled`, and a click does nothing. Back to `ready`, the list replaces the row. Only
|
|
2729
|
+
`error` and `retrying` show the row: `null` silently behaves like `ready` (Vue skips the validator
|
|
2730
|
+
for `null`), and any other non-null value behaves like `ready` and warns in dev.
|
|
2731
|
+
|
|
2672
2732
|
### Events
|
|
2673
2733
|
|
|
2674
|
-
`update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `
|
|
2675
|
-
`linkedin-accounts` · `language` · `help` · `whats-new` · `logout`.
|
|
2676
|
-
`reconnect` carry no payload.
|
|
2734
|
+
`update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `retry-mailboxes` ·
|
|
2735
|
+
`get-started` · `bulk-save` · `linkedin-accounts` · `language` · `help` · `whats-new` · `logout`.
|
|
2736
|
+
All but `update:open` and `reconnect` carry no payload. Every row action closes the menu except
|
|
2737
|
+
`retry-mailboxes`.
|
|
2677
2738
|
|
|
2678
2739
|
### Behaviour
|
|
2679
2740
|
|
|
@@ -2697,6 +2758,12 @@ back to the `mail` icon. No per-mailbox Disconnect.
|
|
|
2697
2758
|
- Mailboxes are a `group` named «Mailboxes · N connected». A connected mailbox is an
|
|
2698
2759
|
`aria-disabled` `menuitem` named «{email}, connected» (`copy.mailboxConnectedLabel`), so arrows
|
|
2699
2760
|
and screen readers reach it; on a disconnected one the `menuitem` is «Reconnect {email}».
|
|
2761
|
+
- After a failed read, «Retry» is a `menuitem` named by its visible text (`copy.retry`, WCAG 2.5.3
|
|
2762
|
+
label in name) and described by the error message (`aria-describedby`). While retrying it keeps focus and
|
|
2763
|
+
stays in the arrow order (`aria-disabled`, not `disabled`); when the list replaces it, focus
|
|
2764
|
+
moves to the row now in its place. A retry that fails again (`retrying` → `error`) is announced
|
|
2765
|
+
by a visually hidden `role="status"` region outside the menu: «Still couldn’t load your
|
|
2766
|
+
mailboxes» (`copy.mailboxesRetryFailed`).
|
|
2700
2767
|
|
|
2701
2768
|
### Design parity (canvas «Header-menu-uso» L402-494, «Onboarding» L581-612)
|
|
2702
2769
|
|
|
@@ -2734,6 +2801,13 @@ The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `D
|
|
|
2734
2801
|
- **Default slot:** the selectors. The panel composes `DsSavedButton` and `DsTagPicker`
|
|
2735
2802
|
(`selection="single"`), each with a `DsItemSelectorButton` trigger, as above.
|
|
2736
2803
|
- **Where saves go is the app's:** the bar emits nothing and keeps no state.
|
|
2804
|
+
- **With create:** each picker takes `create="form"`, `colors` and `selectOnCreate`. In the
|
|
2805
|
+
`create-option` handler the app reads the picker's `submitSession()`; once it saved the new
|
|
2806
|
+
folder or tag it adds it to its list and calls `closeForm(created, session)`, which selects it
|
|
2807
|
+
and closes the menu («Create & select», `'taken'`). `'not-taken'`: the menu was closed or the
|
|
2808
|
+
form left during the save, so the app selects it itself. `'stale'`: a newer save or pick came
|
|
2809
|
+
after it, so the app leaves the selection alone. On a Free plan at its folder limit, see
|
|
2810
|
+
`DsSavedButton` «Folder limit (Free)».
|
|
2737
2811
|
- **Spacing:** 12px vertical (DS); 20px horizontal, the panel header's inset (export chrome, no
|
|
2738
2812
|
DS token), so the label lines up with the logo.
|
|
2739
2813
|
|
|
@@ -3316,19 +3390,22 @@ on `close`.
|
|
|
3316
3390
|
|
|
3317
3391
|
### Props
|
|
3318
3392
|
|
|
3319
|
-
| Prop | Type
|
|
3320
|
-
| ----------------- |
|
|
3321
|
-
| `open` | `boolean`
|
|
3322
|
-
| `title` | `string`
|
|
3323
|
-
| `showClose` | `boolean`
|
|
3324
|
-
| `width` | `string`
|
|
3325
|
-
| `height` | `string`
|
|
3326
|
-
| `top` | `string`
|
|
3327
|
-
| `center` | `boolean`
|
|
3328
|
-
| `fixed` | `boolean`
|
|
3329
|
-
| `closeOnBackdrop` | `boolean`
|
|
3330
|
-
| `closeOnEscape` | `boolean`
|
|
3331
|
-
| `closeLabel` | `string`
|
|
3393
|
+
| Prop | Type | Default | Description |
|
|
3394
|
+
| ----------------- | --------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
3395
|
+
| `open` | `boolean` | `false` | Controls dialog visibility. |
|
|
3396
|
+
| `title` | `string` | `''` | Optional heading text; shows the header row (with `showClose`). |
|
|
3397
|
+
| `showClose` | `boolean` | `true` | Show the icon-only × close button in the header. |
|
|
3398
|
+
| `width` | `string` | `'440px'` | Dialog width (any CSS length). |
|
|
3399
|
+
| `height` | `string` | `''` | Explicit dialog height (any CSS length). Empty = content height. |
|
|
3400
|
+
| `top` | `string` | `''` | Opt-in top offset (any CSS length, portal mode). Empty = vertically centered; set (e.g. `'15vh'`) = anchored at that offset. |
|
|
3401
|
+
| `center` | `boolean` | `false` | Center-align the body **text** only. It does not affect the vertical placement (that is the default; use `top` to anchor). |
|
|
3402
|
+
| `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. |
|
|
3403
|
+
| `closeOnBackdrop` | `boolean` | `true` | Clicking the backdrop emits `close` (portal mode only). |
|
|
3404
|
+
| `closeOnEscape` | `boolean` | `true` | Pressing Escape emits `close` (portal mode only). |
|
|
3405
|
+
| `closeLabel` | `string` | `'Close'` | `aria-label` for the icon-only close button. |
|
|
3406
|
+
| `busy` | `boolean` | `false` | Work in flight: the × is disabled and the dialog is `aria-busy` (the app keeps it open). |
|
|
3407
|
+
| `describedby` | `string` | `''` | Id of the element that describes the dialog (`aria-describedby`). Empty = none. |
|
|
3408
|
+
| `role` | `'dialog' \| 'alertdialog'` | `'dialog'` | `alertdialog` for a question that interrupts the flow (`DsConfirmDialog`). |
|
|
3332
3409
|
|
|
3333
3410
|
### Slots
|
|
3334
3411
|
|
|
@@ -3350,9 +3427,13 @@ on `close`.
|
|
|
3350
3427
|
- `role="dialog"` with `aria-modal="true"` in portal mode (`fixed`), `"false"` when in-flow.
|
|
3351
3428
|
- `aria-labelledby` points at the title when set; falls back to `aria-label="dialog"` when
|
|
3352
3429
|
there is no title.
|
|
3430
|
+
- `describedby` (an element id) becomes `aria-describedby`, so the question or message is read
|
|
3431
|
+
with the title. `role="alertdialog"` (prop `role`) for a question that interrupts the flow.
|
|
3353
3432
|
- Focus trap (portal mode): Tab/Shift+Tab cycles within the dialog; focus moves to the
|
|
3354
3433
|
first focusable element on open and restores to the previously focused element on close.
|
|
3355
3434
|
- Escape closes the dialog when `closeOnEscape` is true (portal mode only).
|
|
3435
|
+
- Stacked modals: only the topmost one handles Escape and Tab (one Escape never closes both), and
|
|
3436
|
+
the page scroll stays locked until the last one closes.
|
|
3356
3437
|
- Body scroll locks (`overflow: hidden`) while a fixed/open modal is mounted.
|
|
3357
3438
|
|
|
3358
3439
|
### When to use
|
|
@@ -3709,6 +3790,7 @@ only the current selection it's handed via `item`.
|
|
|
3709
3790
|
| `ariaLabel` | `string` | `''` | Accessible name for the button. Required when the empty state has no `emptyTitle` (otherwise the button would have no name); when `item.name`/`emptyTitle` render, that visible text already names it. |
|
|
3710
3791
|
| `disabled` | `boolean` | `false` | Disables the button (opacity 0.6) and blocks the click handler. |
|
|
3711
3792
|
| `labelMaxWidth` | `number \| string \| null` | `null` | Max width of the label before it ellipsizes (CSS default 200px). A number is px; a string is any CSS length. |
|
|
3793
|
+
| `iconOnly` | `boolean` | `false` | Shows only the icon: no gap and symmetric padding (a 42px chip). The label stays visually hidden, so `item.name` (or `ariaLabel`) is still the accessible name; pair it with a tooltip with the name. |
|
|
3712
3794
|
|
|
3713
3795
|
### Events
|
|
3714
3796
|
|
|
@@ -3720,6 +3802,7 @@ only the current selection it's handed via `item`.
|
|
|
3720
3802
|
|
|
3721
3803
|
- `aria-haspopup="listbox"` signals that activating the button opens a picker.
|
|
3722
3804
|
- The label truncates with ellipsis at ~200px so long names stay legible; the full name is still the button's accessible name via the visible text node.
|
|
3805
|
+
- With `iconOnly` the label is visually hidden, not removed: the button keeps `item.name` (or `ariaLabel`) as its name and its focus border. Without an `icon` it has no effect, so the chip never renders blank.
|
|
3723
3806
|
- Pass `ariaLabel` whenever the empty state has no `emptyTitle` — otherwise the button has no accessible name.
|
|
3724
3807
|
- Native `<button>` gets Enter/Space activation for free; keyboard focus (`:focus-visible`) turns the border dark grey, with no ring.
|
|
3725
3808
|
|
|
@@ -4211,6 +4294,62 @@ the current step (`value`) and the button copy.
|
|
|
4211
4294
|
|
|
4212
4295
|
---
|
|
4213
4296
|
|
|
4297
|
+
<!-- DsConfirmDialog · Overlays -->
|
|
4298
|
+
|
|
4299
|
+
## DsConfirmDialog
|
|
4300
|
+
|
|
4301
|
+
A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
|
|
4302
|
+
actions, the safe one (secondary) and the primary one. Built for «Keep in current folder» /
|
|
4303
|
+
«Move to new folder» in the extension, mirroring the Prospector's `AlreadyAssignedFoldersModal`.
|
|
4304
|
+
|
|
4305
|
+
### Rules
|
|
4306
|
+
|
|
4307
|
+
- **Controlled:** it never closes itself. The app sets `open` and closes it when it answers.
|
|
4308
|
+
- **Two ways to say no:** the secondary emits `cancel` with `'action'` (the user chose the safe
|
|
4309
|
+
option); Esc, the X and the backdrop emit `cancel` with `'dismiss'` (the user walked away).
|
|
4310
|
+
`DS_CONFIRM_DIALOG_CANCEL_REASONS`.
|
|
4311
|
+
- **Focus:** on open it lands on the safe action, never on the primary or the X.
|
|
4312
|
+
- **`loading`:** the primary spins, both actions are disabled and Esc, the X and the backdrop
|
|
4313
|
+
emit nothing until the app clears it. The focus waits on the dialog itself (not on a disabled
|
|
4314
|
+
action, nor on the X, which does nothing meanwhile), also when it opens already loading, and
|
|
4315
|
+
goes to the safe action when `loading` ends.
|
|
4316
|
+
- **Narrow screens:** the actions stack when they don't fit side by side, and a label longer
|
|
4317
|
+
than the dialog wraps inside its button (see «Narrow screen (long labels)» at 320px).
|
|
4318
|
+
- **Assistive tech:** `role="alertdialog"`, labelled by the title and described by the text (or
|
|
4319
|
+
the default slot) and the notice, so the question is read before the focused action.
|
|
4320
|
+
- **Copy:** every string is the app's (`closeLabel` defaults to `'Close'`, like `DsModal`).
|
|
4321
|
+
|
|
4322
|
+
### Props
|
|
4323
|
+
|
|
4324
|
+
| Prop | Type | Default | Description |
|
|
4325
|
+
| -------------- | --------- | --------- | ----------------------------------------------------------- |
|
|
4326
|
+
| `open` | `boolean` | `false` | |
|
|
4327
|
+
| `title` | `string` | — | The header (required). |
|
|
4328
|
+
| `text` | `string` | `''` | The question. The default slot replaces it. |
|
|
4329
|
+
| `notice` | `string` | `''` | A secondary line under the text (stale data). Empty = none. |
|
|
4330
|
+
| `confirmLabel` | `string` | — | The primary action (required); emits `confirm`. |
|
|
4331
|
+
| `cancelLabel` | `string` | — | The safe action (required); emits `cancel` with `'action'`. |
|
|
4332
|
+
| `closeLabel` | `string` | `'Close'` | Accessible name of the X. |
|
|
4333
|
+
| `loading` | `boolean` | `false` | The app is acting on the answer: every path is blocked. |
|
|
4334
|
+
|
|
4335
|
+
### Events
|
|
4336
|
+
|
|
4337
|
+
| Event | Payload | When |
|
|
4338
|
+
| --------- | ------------------------- | ---------------------------------------------------- |
|
|
4339
|
+
| `confirm` | — | The primary action was clicked. |
|
|
4340
|
+
| `cancel` | `'action'` \| `'dismiss'` | The secondary action, or Esc / the X / the backdrop. |
|
|
4341
|
+
|
|
4342
|
+
Both events are declared with validators, so listeners are typed: `onCancel` receives a
|
|
4343
|
+
`DsConfirmDialogCancelReason`.
|
|
4344
|
+
|
|
4345
|
+
### Slots
|
|
4346
|
+
|
|
4347
|
+
| Slot | Use |
|
|
4348
|
+
| --------- | --------------------------------------------- |
|
|
4349
|
+
| `default` | Replaces the text paragraph (richer content). |
|
|
4350
|
+
|
|
4351
|
+
---
|
|
4352
|
+
|
|
4214
4353
|
<!-- DsDrawer · Overlays -->
|
|
4215
4354
|
|
|
4216
4355
|
## DsDrawer
|
package/llms.txt
CHANGED
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
- DsMenuItem (Navigation): Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
74
74
|
- DsSidePanel (Navigation): A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
75
75
|
- DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
76
|
+
- DsConfirmDialog (Overlays): A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
|
|
76
77
|
- DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
77
78
|
- DsOrganizerDialog (Overlays): The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
78
79
|
- DsPopover (Overlays): Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|