@salesql/sql_components_vue3 3.32.0 → 3.34.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.
Files changed (51) hide show
  1. package/dist/composables/usePickerOrganizer.d.ts +15 -0
  2. package/dist/constants/events.d.ts +10 -0
  3. package/dist/constants/pickers.d.ts +13 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.ts +21 -7
  7. package/dist/index.es.js +5288 -4376
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/sql_components_vue3.css +1 -1
  10. package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +22 -12
  11. package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +16 -3
  12. package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -0
  13. package/dist/ui/DsColumnList/DsColumnList.types.d.ts +26 -0
  14. package/dist/ui/DsColumnList/DsColumnList.vue.d.ts +66 -0
  15. package/dist/ui/DsColumnList/index.d.ts +2 -0
  16. package/dist/ui/DsConfirmDialog/DsConfirmDialog.types.d.ts +24 -0
  17. package/dist/ui/DsConfirmDialog/DsConfirmDialog.vue.d.ts +91 -0
  18. package/dist/ui/DsConfirmDialog/index.d.ts +2 -0
  19. package/dist/ui/DsContactCard/DsContactCard.types.d.ts +30 -0
  20. package/dist/ui/DsContactCard/DsContactCard.vue.d.ts +103 -0
  21. package/dist/ui/DsContactCard/index.d.ts +2 -0
  22. package/dist/ui/DsCreditsChip/DsCreditsChip.types.d.ts +23 -0
  23. package/dist/ui/DsCreditsChip/DsCreditsChip.vue.d.ts +56 -0
  24. package/dist/ui/DsCreditsChip/index.d.ts +2 -0
  25. package/dist/ui/DsCreditsNotice/DsCreditsNotice.types.d.ts +15 -0
  26. package/dist/ui/DsCreditsNotice/DsCreditsNotice.vue.d.ts +46 -0
  27. package/dist/ui/DsCreditsNotice/index.d.ts +2 -0
  28. package/dist/ui/DsCreditsPopover/DsCreditsPopover.types.d.ts +46 -0
  29. package/dist/ui/DsCreditsPopover/DsCreditsPopover.vue.d.ts +108 -0
  30. package/dist/ui/DsCreditsPopover/index.d.ts +2 -0
  31. package/dist/ui/DsCreditsSummary/DsCreditsSummary.types.d.ts +42 -0
  32. package/dist/ui/DsCreditsSummary/DsCreditsSummary.vue.d.ts +51 -0
  33. package/dist/ui/DsCreditsSummary/creditsLevel.d.ts +13 -0
  34. package/dist/ui/DsCreditsSummary/index.d.ts +3 -0
  35. package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +11 -0
  36. package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +29 -0
  37. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +6 -0
  38. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +9 -0
  39. package/dist/ui/DsModal/DsModal.types.d.ts +8 -0
  40. package/dist/ui/DsModal/DsModal.vue.d.ts +25 -0
  41. package/dist/ui/DsModal/modalStack.d.ts +9 -0
  42. package/dist/ui/DsPopover/DsPopover.types.d.ts +8 -0
  43. package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
  44. package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +8 -2
  45. package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +33 -4
  46. package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +6 -1
  47. package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +12 -2
  48. package/llms-full.txt +421 -67
  49. package/llms.txt +7 -0
  50. package/package.json +1 -1
  51. package/src/icons/manifest.json +3 -0
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.32.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.34.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,12 +48,13 @@ 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 (83)
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
55
55
  - **DsProfileCompanyCard** (Company) — The company card of the full-profile drawer, always shown (before and after reveal) — the
56
56
  - **DsAddToSequence** (Contact data) — The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
57
+ - **DsContactCard** (Contact data) — One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
57
58
  - **DsContactCell** (Contact data) — The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
58
59
  - **DsContactGroups** (Contact data) — One contact's data, **always open**: a band per type with its count («WORK (1)») over its values,
59
60
  - **DsContactList** (Contact data) — The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
@@ -92,6 +93,10 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
92
93
  - **DsAddToBar** (Extension panel) — The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
93
94
  - **DsBulkBar** (Extension panel) — The selection bar above a list: a **select-all checkbox** with its count text, a flexible
94
95
  - **DsContactRow** (Extension panel) — One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
96
+ - **DsCreditsChip** (Extension panel) — The credits button of the side panel header: `toll` + the available balance (`en-US`, never
97
+ - **DsCreditsNotice** (Extension panel) — A short `role="status"` notice inside the credits popover.
98
+ - **DsCreditsPopover** (Extension panel) — The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
99
+ - **DsCreditsSummary** (Extension panel) — The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
95
100
  - **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
96
101
  - **DsPanelHeader** (Extension panel) — The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
97
102
  - **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
@@ -114,6 +119,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
114
119
  - **DsMenuItem** (Navigation) — Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
115
120
  - **DsSidePanel** (Navigation) — A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
116
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
117
123
  - **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
118
124
  - **DsOrganizerDialog** (Overlays) — The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
119
125
  - **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
@@ -126,6 +132,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
126
132
  - **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
127
133
  - **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
128
134
  - **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
135
+ - **DsColumnList** (Toolbar) — The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
129
136
  - **DsFilterChip** (Toolbar) — A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
130
137
  - **DsMenuBackRow** (Toolbar) — The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
131
138
  - **DsMenuDrillRow** (Toolbar) — A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron.…
@@ -363,6 +370,33 @@ so Add never sends a campaign the user cannot see. One still listed keeps its pl
363
370
 
364
371
  ---
365
372
 
373
+ <!-- DsContactCard · Contact data -->
374
+
375
+ One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
376
+ that emits `open`; an optional checkbox sits before it; each entry of `rows` is a labelled line whose
377
+ value is the `row` slot.
378
+
379
+ ### API
380
+
381
+ `firstName` · `lastName` · `jobTitle` · `image` · `uid` · `selectable` (the checkbox is opt-in) ·
382
+ `selected` (v-model:selected) · `selectLabel` · `openLabel` · `rows: { id, label }[]`.
383
+ Slot `row` receives `{ row }`. Events: `open`, `update:selected` (boolean).
384
+
385
+ ### Not DsContactRow
386
+
387
+ `DsContactRow` is the extension panel's border-top list row (checkbox always on, `#action` slot,
388
+ radius-8 photo). The card has its own chrome (hairline, 8px radius, accent when selected) and the
389
+ labelled rows; sharing a component would have rewritten most of it.
390
+
391
+ ### Accessibility
392
+
393
+ - The head is a real `<button>`; the visible name is its name, `openLabel` replaces it (and must
394
+ contain it). The photo and the chevron are decorative.
395
+ - The checkbox has no visible label: `selectLabel` names it.
396
+ - Design deltas: photo 42 → 40 (DS), name 15 → 14 and title 13 (DS type scale), label 11.5 → 12.
397
+
398
+ ---
399
+
366
400
  <!-- DsContactCell · Contact data -->
367
401
 
368
402
  ## DsContactCell
@@ -1276,7 +1310,15 @@ supplies the palette.
1276
1310
 
1277
1311
  The component never persists anything and never guesses that a save worked: it emits intent
1278
1312
  (`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
1279
- `closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit.
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.
1280
1322
 
1281
1323
  ### Rules
1282
1324
 
@@ -1287,6 +1329,12 @@ The component never persists anything and never guesses that a save worked: it e
1287
1329
  - **`colors` gates nothing:** without `create` or `rowActions` it changes nothing visible.
1288
1330
  - **Footer slot:** it always renders when passed (in every `create` mode) and replaces the
1289
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).
1290
1338
  - **Copy:** `copy` is partial; the keys it carries override the English defaults
1291
1339
  (`DS_SAVED_BUTTON_COPY`), the rest stays.
1292
1340
 
@@ -1310,6 +1358,8 @@ The component never persists anything and never guesses that a save worked: it e
1310
1358
  | `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
1311
1359
  | `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a folder without colour) starts at. Empty = the first of `colors`. |
1312
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. |
1313
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. |
1314
1364
  | `copy` | `Partial<DsSavedButtonCopy>` | `{}` | Every string, merged over `DS_SAVED_BUTTON_COPY`. See below. |
1315
1365
 
@@ -1319,7 +1369,7 @@ The component never persists anything and never guesses that a save worked: it e
1319
1369
  `deleteConfirm` (`'Are you sure?'`) and `deleteConfirmAction` (`'Yes, delete'`), the row after the
1320
1370
  first click on Delete,
1321
1371
  `createFormTitle` (`'New Folder'`), `editFormTitle` (`'Edit Folder'`), `createSubmit`
1322
- (`'Create & Select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
1372
+ (`'Create & select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
1323
1373
  (`'Set Color'`), `back` (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own
1324
1374
  defaults when unset).
1325
1375
 
@@ -1344,12 +1394,12 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
1344
1394
 
1345
1395
  | Event | Payload | When |
1346
1396
  | ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1347
- | `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
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. |
1348
1398
  | `create` | `string` | The footer was clicked with `create="event"`; payload is the search text typed so far. The panel closes. |
1349
1399
  | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
1350
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. |
1351
- | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
1352
- | `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. |
1353
1403
  | `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
1354
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). |
1355
1405
  | `search` | `string` | The search text changed (filtering is local). |
@@ -1357,9 +1407,10 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
1357
1407
 
1358
1408
  ### Exposed
1359
1409
 
1360
- | Member | Description |
1361
- | ------------- | ------------------------------------------------------------------------------------------------------------- |
1362
- | `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
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`. |
1363
1414
 
1364
1415
  ### Slots
1365
1416
 
@@ -1445,7 +1496,15 @@ The component never persists anything and never guesses that a save worked: it e
1445
1496
  `closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit. Going to the
1446
1497
  form and back keeps the search and the working-copy selection. A tag the app just created is
1447
1498
  checked only if the app says so: `closeForm(created)` adds it to the working copy, and Apply keeps
1448
- 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`.
1449
1508
 
1450
1509
  A row's Delete can be blocked with its reason: set `deleteDisabled: { hint, tooltip? }` on the
1451
1510
  option. The item stays focusable (`aria-disabled`), shows the `hint` after its label and the
@@ -1466,24 +1525,25 @@ what Delete needs and update the option while the menu is open.
1466
1525
 
1467
1526
  ### Props
1468
1527
 
1469
- | Prop | Type | Default | Description |
1470
- | -------------- | ----------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1471
- | `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
1472
- | `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
1473
- | `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
1474
- | `size` | `'medium' \| 'large'` | `'medium'` | |
1475
- | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
1476
- | `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
1477
- | `disabled` | `boolean` | `false` | |
1478
- | `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`. |
1479
- | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
1480
- | `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the create affordance does. `DS_PICKER_CREATE_MODES`. |
1481
- | `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
1482
- | `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
1483
- | `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a tag without colour) starts at. Empty = the first of `colors`. |
1484
- | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
1485
- | `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. |
1486
- | `copy` | `Partial<DsTagPickerCopy>` | `{}` | Every string, merged over `DS_TAG_PICKER_COPY`. See below. |
1528
+ | Prop | Type | Default | Description |
1529
+ | ---------------- | ----------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1530
+ | `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
1531
+ | `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
1532
+ | `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
1533
+ | `size` | `'medium' \| 'large'` | `'medium'` | |
1534
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
1535
+ | `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
1536
+ | `disabled` | `boolean` | `false` | |
1537
+ | `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`. |
1538
+ | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
1539
+ | `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the create affordance does. `DS_PICKER_CREATE_MODES`. |
1540
+ | `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
1541
+ | `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
1542
+ | `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a tag without colour) starts at. Empty = the first of `colors`. |
1543
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
1544
+ | `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. |
1545
+ | `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. |
1546
+ | `copy` | `Partial<DsTagPickerCopy>` | `{}` | Every string, merged over `DS_TAG_PICKER_COPY`. See below. |
1487
1547
 
1488
1548
  `DsTagPickerCopy` keys (English defaults): `taggedAs` (`'Tagged as'`), `apply` (`'Apply'`),
1489
1549
  `searchPlaceholder` (`'Search tags'`), `empty` (`'No tags found'`, empty string = nothing), `more`
@@ -1493,7 +1553,8 @@ what Delete needs and update the option while the menu is open.
1493
1553
  first click on Delete,
1494
1554
  `createFormTitle` (`'New Tag'`), `editFormTitle` (`'Edit Tag'`), `createSubmit` (`'Create'`),
1495
1555
  `editSubmit` (`'Save'`), `namePlaceholder` (`'Tag name'`), `setColor` (`'Set Color'`), `back`
1496
- (`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `errorMissingName` /
1556
+ (`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `createSelectSubmit`
1557
+ (`'Create & select'`, the create submit with `selection="single"` and `selectOnCreate`; falls back to an explicit `createSubmit`), `errorMissingName` /
1497
1558
  `errorTooLongName` (the form's own defaults when unset).
1498
1559
 
1499
1560
  Map frontend-app's `Tag` with `{ id: t.id, name: t.name, color: t.color }` — the API takes
@@ -1523,8 +1584,8 @@ always wins over its alias. When `create` is not set it is inferred as before: `
1523
1584
  | `create` | `string` | The create row was clicked with `create="event"`; payload is the typed text. |
1524
1585
  | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
1525
1586
  | `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. |
1526
- | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
1527
- | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
1587
+ | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. Read `submitSession()` here for `closeForm(created, session)`. |
1588
+ | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`, and `submitSession()` too. |
1528
1589
  | `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
1529
1590
  | `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked. |
1530
1591
  | `search` | `string` | The search text changed (filtering is local). |
@@ -1532,9 +1593,10 @@ always wins over its alias. When `create` is not set it is inferred as before: `
1532
1593
 
1533
1594
  ### Exposed
1534
1595
 
1535
- | Member | Description |
1536
- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1537
- | `closeForm(created?)` | Returns the panel to the list. Call it once the save succeeded. With the tag just created (create form, `selection="multiple"`) that tag enters the selection checked. Closing the panel also resets it to the list. |
1596
+ | Member | Description |
1597
+ | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1598
+ | `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. |
1599
+ | `submitSession()` | The session of the last submit (`undefined` before any). Read it in the `create-option` / `update-option` handler and pass it to `closeForm`. |
1538
1600
 
1539
1601
  ### Slots
1540
1602
 
@@ -2602,20 +2664,21 @@ no dead buttons.
2602
2664
 
2603
2665
  ### Props
2604
2666
 
2605
- | Prop | Type | Default | Description |
2606
- | ---------------------- | -------------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
2607
- | `open` | `boolean` | `undefined` | `v-model:open`. Omitted = the menu manages itself. Bind it to keep one popover open at a time. |
2608
- | `user` | `DsAccountMenuUser` | — | `{ name, email, initials?, plan? }`. No `initials` = first letters of the name. |
2609
- | `credits` | `DsAccountMenuCredits \| null` | `null` | `{ used?, total?, available?, resetsOn? }`. See below. `null` = no block. |
2610
- | `mailboxes` | `DsAccountMenuMailbox[] \| null` | `null` | `null` = no campaigns access (no block). `[]` = «Connect a mailbox». See below. |
2611
- | `getStarted` | `{ done, total } \| null` | `null` | «Get started · n of total», while the onboarding checklist is hidden. |
2612
- | `showBulkSave` | `boolean` | `false` | «Bulk save from LinkedIn URLs». |
2613
- | `showLinkedinAccounts` | `boolean` | `false` | «LinkedIn accounts» (opens in a new tab: trailing `open_in_new`). |
2614
- | `language` | `string` | `''` | Current language's name; non-empty shows the Language row with it on the right. |
2615
- | `showHelp` | `boolean` | `false` | «Help & support». |
2616
- | `showWhatsNew` | `boolean` | `false` | «What's new». |
2617
- | `whatsNewUnread` | `number` | `0` | Above 0, an unread dot (accessible name from `copy.whatsNewUnread`). |
2618
- | `copy` | `Partial<DsAccountMenuCopy>` | English | Every string; a partial overrides only its keys (`DS_ACCOUNT_MENU_COPY`). |
2667
+ | Prop | Type | Default | Description |
2668
+ | ---------------------- | ---------------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
2669
+ | `open` | `boolean` | `undefined` | `v-model:open`. Omitted = the menu manages itself. Bind it to keep one popover open at a time. |
2670
+ | `user` | `DsAccountMenuUser` | — | `{ name, email, initials?, plan? }`. No `initials` = first letters of the name. |
2671
+ | `credits` | `DsAccountMenuCredits \| null` | `null` | `{ used?, total?, available?, resetsOn? }`. See below. `null` = no block. |
2672
+ | `mailboxes` | `DsAccountMenuMailbox[] \| null` | `null` | `null` = no campaigns access (no block). `[]` = «Connect a mailbox». See below. |
2673
+ | `mailboxesState` | `'ready' \| 'error' \| 'retrying'` | `'ready'` | The mailboxes read failed (`error`) or is being retried (`retrying`). See below. |
2674
+ | `getStarted` | `{ done, total } \| null` | `null` | «Get started · n of total», while the onboarding checklist is hidden. |
2675
+ | `showBulkSave` | `boolean` | `false` | «Bulk save from LinkedIn URLs». |
2676
+ | `showLinkedinAccounts` | `boolean` | `false` | «LinkedIn accounts» (opens in a new tab: trailing `open_in_new`). |
2677
+ | `language` | `string` | `''` | Current language's name; non-empty shows the Language row with it on the right. |
2678
+ | `showHelp` | `boolean` | `false` | «Help & support». |
2679
+ | `showWhatsNew` | `boolean` | `false` | «What's new». |
2680
+ | `whatsNewUnread` | `number` | `0` | Above 0, an unread dot (accessible name from `copy.whatsNewUnread`). |
2681
+ | `copy` | `Partial<DsAccountMenuCopy>` | English | Every string; a partial overrides only its keys (`DS_ACCOUNT_MENU_COPY`). |
2619
2682
 
2620
2683
  #### Credits
2621
2684
 
@@ -2636,18 +2699,33 @@ reads «Mailboxes · N connected», N = mailboxes without `needsReconnect`; with
2636
2699
  «Mailboxes». The provider logo is the brand mark only, no name; a provider without a logo falls
2637
2700
  back to the `mail` icon. No per-mailbox Disconnect.
2638
2701
 
2702
+ #### Mailboxes that failed to load
2703
+
2704
+ `mailboxesState` (`DS_ACCOUNT_MENU_MAILBOXES_STATES`) is `ready` by default. With `error` or
2705
+ `retrying` the group shows even when `mailboxes` is `null`, and ignores `mailboxes`: the title is
2706
+ only «Mailboxes» (no count), one row says «We couldn’t load your mailboxes» (`copy.mailboxesError`)
2707
+ with an amber «Retry» pill (`copy.retry`, `sync` icon, styled like «Reconnect» but with `amber-deep` text for AA), and
2708
+ there is no Connect row, since nothing says whether a mailbox exists. «Retry» emits `retry-mailboxes` and,
2709
+ unlike every other row, keeps the menu open so the user sees the outcome in place. While
2710
+ `retrying` the pill's icon spins (not with reduced motion), it is `aria-busy` and
2711
+ `aria-disabled`, and a click does nothing. Back to `ready`, the list replaces the row. Only
2712
+ `error` and `retrying` show the row: `null` silently behaves like `ready` (Vue skips the validator
2713
+ for `null`), and any other non-null value behaves like `ready` and warns in dev.
2714
+
2639
2715
  ### Events
2640
2716
 
2641
- `update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `get-started` · `bulk-save` ·
2642
- `linkedin-accounts` · `language` · `help` · `whats-new` · `logout`. All but `update:open` and
2643
- `reconnect` carry no payload.
2717
+ `update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `retry-mailboxes` ·
2718
+ `get-started` · `bulk-save` · `linkedin-accounts` · `language` · `help` · `whats-new` · `logout`.
2719
+ All but `update:open` and `reconnect` carry no payload. Every row action closes the menu except
2720
+ `retry-mailboxes`.
2644
2721
 
2645
2722
  ### Behaviour
2646
2723
 
2647
2724
  - `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
2648
2725
  below it, kept 8px inside the viewport and capped to the room below (side panel height − 54).
2649
- - A click anywhere outside closes it; the click-catching layer covers the header too, so the
2650
- first click on another header control only closes this menu (one popover at a time).
2726
+ - A click anywhere outside closes it. Inside `DsPanelHeader` the click-catching layer leaves the
2727
+ header uncovered (`modalExclude`): one click on another header control (the credits chip,
2728
+ «Open SalesQL») closes this menu and acts on that control; a click below the header only closes it.
2651
2729
  - Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
2652
2730
 
2653
2731
  ### Accessibility
@@ -2663,6 +2741,12 @@ back to the `mail` icon. No per-mailbox Disconnect.
2663
2741
  - Mailboxes are a `group` named «Mailboxes · N connected». A connected mailbox is an
2664
2742
  `aria-disabled` `menuitem` named «{email}, connected» (`copy.mailboxConnectedLabel`), so arrows
2665
2743
  and screen readers reach it; on a disconnected one the `menuitem` is «Reconnect {email}».
2744
+ - After a failed read, «Retry» is a `menuitem` named by its visible text (`copy.retry`, WCAG 2.5.3
2745
+ label in name) and described by the error message (`aria-describedby`). While retrying it keeps focus and
2746
+ stays in the arrow order (`aria-disabled`, not `disabled`); when the list replaces it, focus
2747
+ moves to the row now in its place. A retry that fails again (`retrying` → `error`) is announced
2748
+ by a visually hidden `role="status"` region outside the menu: «Still couldn’t load your
2749
+ mailboxes» (`copy.mailboxesRetryFailed`).
2666
2750
 
2667
2751
  ### Design parity (canvas «Header-menu-uso» L402-494, «Onboarding» L581-612)
2668
2752
 
@@ -2700,6 +2784,13 @@ The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `D
2700
2784
  - **Default slot:** the selectors. The panel composes `DsSavedButton` and `DsTagPicker`
2701
2785
  (`selection="single"`), each with a `DsItemSelectorButton` trigger, as above.
2702
2786
  - **Where saves go is the app's:** the bar emits nothing and keeps no state.
2787
+ - **With create:** each picker takes `create="form"`, `colors` and `selectOnCreate`. In the
2788
+ `create-option` handler the app reads the picker's `submitSession()`; once it saved the new
2789
+ folder or tag it adds it to its list and calls `closeForm(created, session)`, which selects it
2790
+ and closes the menu («Create & select», `'taken'`). `'not-taken'`: the menu was closed or the
2791
+ form left during the save, so the app selects it itself. `'stale'`: a newer save or pick came
2792
+ after it, so the app leaves the selection alone. On a Free plan at its folder limit, see
2793
+ `DsSavedButton` «Folder limit (Free)».
2703
2794
  - **Spacing:** 12px vertical (DS); 20px horizontal, the panel header's inset (export chrome, no
2704
2795
  DS token), so the label lines up with the logo.
2705
2796
 
@@ -2881,6 +2972,166 @@ and text, 8px gap between the top line and the data block, `#action` at the righ
2881
2972
 
2882
2973
  ---
2883
2974
 
2975
+ <!-- DsCreditsChip · Extension panel -->
2976
+
2977
+ ## DsCreditsChip
2978
+
2979
+ The credits button of the side panel header: `toll` + the available balance (`en-US`, never
2980
+ below 0). Usually rendered by `DsCreditsPopover` as its trigger; on its own it is a plain button.
2981
+
2982
+ ### Props
2983
+
2984
+ | Prop | Type | Default | Description |
2985
+ | ----------- | ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
2986
+ | `available` | `number` | — | The balance. |
2987
+ | `level` | `'normal' \| 'low' \| 'out'` | `normal` | White / amber / red (`getCreditsLevel`). |
2988
+ | `open` | `boolean` | — | Passed (even `false`): `aria-haspopup="dialog"` + `aria-expanded`, open look. |
2989
+ | `tooltip` | `string` | `''` | Off while open. |
2990
+ | `copy` | `Partial<DsCreditsChipCopy>` | English | `label(formatted, available, level)` → «412 credits available», «9 credits available, running low» (the `aria-label`). |
2991
+
2992
+ Events: `click`. Class, style and `data-*` go on the `<button>`.
2993
+
2994
+ ### Design parity (canvas «Header-menu-uso» L61, `CREDIT_CHIP`)
2995
+
2996
+ - 28px = `control-height('compact')`, `radius-full`, gap 4, text `font-size('label')` 12.5 bold.
2997
+ - Colours from the new DS steps: low `amber-tint-soft` / `amber-mid-soft` / `amber-deep`, open
2998
+ `amber-tint-strong` / `amber-mid-strong`; out `error-tint-soft` / `error-mid-soft` /
2999
+ `error-shadow-strong`, open `error-tint-strong` / `error-mid-strong`; icon `amber-main` /
3000
+ `error-main` / `accent-main`. Normal open = `accent-bg` + `accent-mid`.
3001
+ - Logged deltas: left padding 7 → 6 (`spacing(0.75)`, the DS's 2px unit); hover
3002
+ `brightness(.97)` → `slate-bg` (normal) or the level's `tint-strong`; focus ring `accent-mid`
3003
+ as the avatar's.
3004
+
3005
+ ---
3006
+
3007
+ <!-- DsCreditsNotice · Extension panel -->
3008
+
3009
+ ## DsCreditsNotice
3010
+
3011
+ A short `role="status"` notice inside the credits popover.
3012
+
3013
+ | Prop | Type | Default | Description |
3014
+ | ----------- | -------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
3015
+ | `text` | `string` | — | App copy. |
3016
+ | `tone` | `'info' \| 'low' \| 'out'` | `info` | info: `accent-bg`, no icon, no border. low / out: `error` icon, `*-bg`, 1px `*-mid-soft` border, text `amber-deep` / `error-shadow-strong`. |
3017
+ | `linkLabel` | `string` | `''` | Inline link after the text («More info.»). |
3018
+ | `href` | `string` | `''` | Opens in a new tab. Empty = a button that emits `click`. |
3019
+
3020
+ ### Design parity («Header-menu-uso» P:credits pending notice, «Upsell» warnBox)
3021
+
3022
+ Caption 12 with `$line-height-snug` 1.45, radius 6. Info 10/12 padding, 500, no border;
3023
+ low / out 8/10 padding, 600, 1px border. Logged deltas: icon 15 → 16 (DsIcon), icon gap 7 → 6.
3024
+
3025
+ ---
3026
+
3027
+ <!-- DsCreditsPopover · Extension panel -->
3028
+
3029
+ ## DsCreditsPopover
3030
+
3031
+ The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
3032
+ `usage` slot, before «Open SalesQL». **Presentational only**: the app decides the level, the
3033
+ action or the note for the account, and opens the page on `action`.
3034
+
3035
+ Order, as the design: summary (`toll` «Credits», plan chip; the balance as a 26px figure with
3036
+ «available»; meter; «{used} of {total} used» · «Resets {date}») · the low / out notice · the
3037
+ `notice` slot · one button (`action`) · the member line (`note`).
3038
+
3039
+ ### Props
3040
+
3041
+ | Prop | Type | Default | Description |
3042
+ | ----------- | ------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
3043
+ | `open` | `boolean` | — | `v-model:open`. Omitted = manages itself. Bind it to keep one popover open at a time. |
3044
+ | `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }`, as `DsAccountMenu`'s credits. |
3045
+ | `level` | `'normal' \| 'low' \| 'out'` | `normal` | Colours the chip, the figure and the meter; `low` / `out` add their notice. |
3046
+ | `planLabel` | `string` | `''` | The plan chip («Pro plan»). Empty = none. |
3047
+ | `action` | `{ kind, label } \| null` | `null` | `kind`: `upgrade`, `update_payment` (primary) or `see_plans` (outline). Full width, 36px, `open_in_new`. |
3048
+ | `note` | `string` | `''` | A line with the `group` icon instead of a button («Your team admin manages the plan»). |
3049
+ | `width` | `number \| string` | `264` | Panel width (also its max, so past 320 is not clipped); a number is px. The viewport still caps it. |
3050
+ | `tooltip` | `string` | `''` | The chip's tooltip («412 credits · resets Dec 1»), off while open. |
3051
+ | `copy` | `Partial<DsCreditsPopoverCopy>` | English | Summary strings, `chipLabel`, `dialog`, `lowNotice`, `outNotice`. |
3052
+
3053
+ Slots: `trigger` (replaces the chip; gets `{ open }`) · `notice` (the pending-setup unlock note:
3054
+ put a `DsCreditsNotice` with `linkLabel` + `href` there).
3055
+
3056
+ Events: `update:open` (boolean) · `action` (the kind). An action also closes the popover.
3057
+
3058
+ ### The app's rules (not in the component)
3059
+
3060
+ - Which content, in this order: member → `note`; past due → `update_payment`; Free still
3061
+ pending setup (plan identifier `500`) → `notice` slot, no action, level `normal`; Free →
3062
+ `upgrade`; paid or gift admin → `see_plans`. The component renders whatever it receives.
3063
+ - Level: `getCreditsLevel({ available, base, pendingSetup })` with `CREDITS_LOW_SHARE` 0.2.
3064
+ `base` = the plan's monthly credits when known, else the period's total. 0 or below → `out`
3065
+ (with or without a base); no base → never `low`; `pendingSetup` → always `normal`.
3066
+ - The out notice's second sentence («Upgrade to keep revealing today.») follows the action: pass
3067
+ it through `copy.outNotice` only when the action is `upgrade`.
3068
+
3069
+ ### Behaviour and accessibility
3070
+
3071
+ - `DsPopover` `teleported`, non-modal, `bottom-end`: right-aligned with the chip, 6px below it,
3072
+ kept inside the viewport and capped to the room below (it scrolls, bar hidden).
3073
+ - The chip is a `<button>` with `aria-label` «412 credits available» («…, running low» at `low`,
3074
+ so the level is not colour only), `aria-haspopup="dialog"` and `aria-expanded`. The panel is a
3075
+ `dialog` named «Credits» (`copy.dialog`). Escape, an action, or Tab / Shift+Tab out of the
3076
+ panel close it and put the focus on the chip (on the `trigger` slot's first focusable), also
3077
+ where a click does not focus the button (Safari / Firefox). Escape stops there: a drawer behind
3078
+ does not close. A click outside closes it too.
3079
+ - The notices are `role="status"`; the meter is a `progressbar`.
3080
+
3081
+ ### Design parity (canvas «Header-menu-uso» P:credits, «Upsell» P:credits)
3082
+
3083
+ Composition, order and copy follow the boards. Logged deltas:
3084
+
3085
+ - New DS tokens (Diego, 2026-11-20: every off-scale value of the boards goes to the DS): the
3086
+ amber / error in-between steps `bg`, `tint-soft`, `tint-strong`, `mid-soft`, `mid-strong`
3087
+ (`-soft` a notch lighter than its step, `-strong` a notch darker) plus the text steps
3088
+ `amber-deep` and `error-shadow-strong` (chip, notices, figure), `font-size('display')` 26 + `$weight-extrabold` 800 + `$letter-spacing-tight` -0.3px
3089
+ - `$line-height-display` 1.1 (the figure), `font-size('label')` 12.5 (chip, «available»),
3090
+ `$line-height-snug` 1.45 (notices).
3091
+ - Kept from DsAccountMenu (SALESQL-4790) so the menu and the popover match: popover chrome is
3092
+ `DsPopover`'s (6px radius, `shadow-dropdown`) instead of 8px and `0 8px 28px`; plan chip
3093
+ 10.5/800 → `micro` 10 bold; foot 11.5 → `caption` 12; `#888F97` text → `slate-soft` (AA);
3094
+ track `#E5E7EB` → `grey-2`; meter-to-foot 7 → 8px.
3095
+ - Icons are `DsIcon` at 16 (the board's 15 → 16: DsIcon draws 16 / 20 / 24).
3096
+ - Buttons are `DsButton` `large` (36px, 14/500, radius 4, 20px glyph) instead of 13/700, radius 6
3097
+ and a 15px glyph.
3098
+ - Notice icon-to-text gap 7 → 6px; member line `#5C6670` → `slate-soft`.
3099
+ - «See plans»: the trailing `open_in_new` keeps the board's `slate-muted` (`#888F97`); the label
3100
+ stays `slate-main`.
3101
+
3102
+ ---
3103
+
3104
+ <!-- DsCreditsSummary · Extension panel -->
3105
+
3106
+ ## DsCreditsSummary
3107
+
3108
+ The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
3109
+
3110
+ | Prop | Type | Default | Description |
3111
+ | ----------- | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
3112
+ | `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }` (each number also `null`). |
3113
+ | `level` | `'normal' \| 'low' \| 'out'` | `normal` | Low / out colour the balance (`amber-deep` / `error-shadow-strong`) and make the meter solid (`amber-main` / `error-main`). |
3114
+ | `prominent` | `boolean` | `false` | «Credits» + plan chip, then the balance as a 26px figure + «available». |
3115
+ | `planLabel` | `string` | `''` | The plan chip, prominent only. |
3116
+ | `copy` | `Partial<DsCreditsCopy>` | English | `title`, `available`, `availableLabel`, `used`, `resets`, `progress`. |
3117
+
3118
+ Rules as DsAccountMenu's: `available` wins (even above `total`, never below 0), else `total − used`; `used`
3119
+ omitted = `total − available`; the meter is clipped to 0–100% and `aria-valuenow` never goes
3120
+ below 0; no `total` = no meter and no «… used».
3121
+
3122
+ `getCreditsLevel({ available, base, lowShare?, pendingSetup? })` and `CREDITS_LOW_SHARE` (0.2) live
3123
+ here too: 0 or below is `out` with or without a base, no base is never `low`, `pendingSetup` is
3124
+ always `normal`.
3125
+
3126
+ ### Design parity
3127
+
3128
+ Row: identical to the account menu's block (SALESQL-4790). Prominent: the figure is
3129
+ `font-size('display')` 26 / `$weight-extrabold` / `$line-height-display` / `$letter-spacing-tight`;
3130
+ «available» `font-size('label')` 12.5 semibold in `slate-soft` (board `#888F97`); 10px from the
3131
+ header and to the meter; meter-to-foot 7 → 8px.
3132
+
3133
+ ---
3134
+
2884
3135
  <!-- DsPanelFrame · Extension panel -->
2885
3136
 
2886
3137
  ## DsPanelFrame
@@ -3122,19 +3373,22 @@ on `close`.
3122
3373
 
3123
3374
  ### Props
3124
3375
 
3125
- | Prop | Type | Default | Description |
3126
- | ----------------- | --------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3127
- | `open` | `boolean` | `false` | Controls dialog visibility. |
3128
- | `title` | `string` | `''` | Optional heading text; shows the header row (with `showClose`). |
3129
- | `showClose` | `boolean` | `true` | Show the icon-only × close button in the header. |
3130
- | `width` | `string` | `'440px'` | Dialog width (any CSS length). |
3131
- | `height` | `string` | `''` | Explicit dialog height (any CSS length). Empty = content height. |
3132
- | `top` | `string` | `''` | Opt-in top offset (any CSS length, portal mode). Empty = vertically centered; set (e.g. `'15vh'`) = anchored at that offset. |
3133
- | `center` | `boolean` | `false` | Center-align the body **text** only. It does not affect the vertical placement (that is the default; use `top` to anchor). |
3134
- | `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. |
3135
- | `closeOnBackdrop` | `boolean` | `true` | Clicking the backdrop emits `close` (portal mode only). |
3136
- | `closeOnEscape` | `boolean` | `true` | Pressing Escape emits `close` (portal mode only). |
3137
- | `closeLabel` | `string` | `'Close'` | `aria-label` for the icon-only close button. |
3376
+ | Prop | Type | Default | Description |
3377
+ | ----------------- | --------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3378
+ | `open` | `boolean` | `false` | Controls dialog visibility. |
3379
+ | `title` | `string` | `''` | Optional heading text; shows the header row (with `showClose`). |
3380
+ | `showClose` | `boolean` | `true` | Show the icon-only × close button in the header. |
3381
+ | `width` | `string` | `'440px'` | Dialog width (any CSS length). |
3382
+ | `height` | `string` | `''` | Explicit dialog height (any CSS length). Empty = content height. |
3383
+ | `top` | `string` | `''` | Opt-in top offset (any CSS length, portal mode). Empty = vertically centered; set (e.g. `'15vh'`) = anchored at that offset. |
3384
+ | `center` | `boolean` | `false` | Center-align the body **text** only. It does not affect the vertical placement (that is the default; use `top` to anchor). |
3385
+ | `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. |
3386
+ | `closeOnBackdrop` | `boolean` | `true` | Clicking the backdrop emits `close` (portal mode only). |
3387
+ | `closeOnEscape` | `boolean` | `true` | Pressing Escape emits `close` (portal mode only). |
3388
+ | `closeLabel` | `string` | `'Close'` | `aria-label` for the icon-only close button. |
3389
+ | `busy` | `boolean` | `false` | Work in flight: the × is disabled and the dialog is `aria-busy` (the app keeps it open). |
3390
+ | `describedby` | `string` | `''` | Id of the element that describes the dialog (`aria-describedby`). Empty = none. |
3391
+ | `role` | `'dialog' \| 'alertdialog'` | `'dialog'` | `alertdialog` for a question that interrupts the flow (`DsConfirmDialog`). |
3138
3392
 
3139
3393
  ### Slots
3140
3394
 
@@ -3156,9 +3410,13 @@ on `close`.
3156
3410
  - `role="dialog"` with `aria-modal="true"` in portal mode (`fixed`), `"false"` when in-flow.
3157
3411
  - `aria-labelledby` points at the title when set; falls back to `aria-label="dialog"` when
3158
3412
  there is no title.
3413
+ - `describedby` (an element id) becomes `aria-describedby`, so the question or message is read
3414
+ with the title. `role="alertdialog"` (prop `role`) for a question that interrupts the flow.
3159
3415
  - Focus trap (portal mode): Tab/Shift+Tab cycles within the dialog; focus moves to the
3160
3416
  first focusable element on open and restores to the previously focused element on close.
3161
3417
  - Escape closes the dialog when `closeOnEscape` is true (portal mode only).
3418
+ - Stacked modals: only the topmost one handles Escape and Tab (one Escape never closes both), and
3419
+ the page scroll stays locked until the last one closes.
3162
3420
  - Body scroll locks (`overflow: hidden`) while a fixed/open modal is mounted.
3163
3421
 
3164
3422
  ### When to use
@@ -3515,6 +3773,7 @@ only the current selection it's handed via `item`.
3515
3773
  | `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. |
3516
3774
  | `disabled` | `boolean` | `false` | Disables the button (opacity 0.6) and blocks the click handler. |
3517
3775
  | `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. |
3776
+ | `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. |
3518
3777
 
3519
3778
  ### Events
3520
3779
 
@@ -3526,6 +3785,7 @@ only the current selection it's handed via `item`.
3526
3785
 
3527
3786
  - `aria-haspopup="listbox"` signals that activating the button opens a picker.
3528
3787
  - 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.
3788
+ - 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.
3529
3789
  - Pass `ariaLabel` whenever the empty state has no `emptyTitle` — otherwise the button has no accessible name.
3530
3790
  - Native `<button>` gets Enter/Space activation for free; keyboard focus (`:focus-visible`) turns the border dark grey, with no ring.
3531
3791
 
@@ -4017,6 +4277,62 @@ the current step (`value`) and the button copy.
4017
4277
 
4018
4278
  ---
4019
4279
 
4280
+ <!-- DsConfirmDialog · Overlays -->
4281
+
4282
+ ## DsConfirmDialog
4283
+
4284
+ A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
4285
+ actions, the safe one (secondary) and the primary one. Built for «Keep in current folder» /
4286
+ «Move to new folder» in the extension, mirroring the Prospector's `AlreadyAssignedFoldersModal`.
4287
+
4288
+ ### Rules
4289
+
4290
+ - **Controlled:** it never closes itself. The app sets `open` and closes it when it answers.
4291
+ - **Two ways to say no:** the secondary emits `cancel` with `'action'` (the user chose the safe
4292
+ option); Esc, the X and the backdrop emit `cancel` with `'dismiss'` (the user walked away).
4293
+ `DS_CONFIRM_DIALOG_CANCEL_REASONS`.
4294
+ - **Focus:** on open it lands on the safe action, never on the primary or the X.
4295
+ - **`loading`:** the primary spins, both actions are disabled and Esc, the X and the backdrop
4296
+ emit nothing until the app clears it. The focus waits on the dialog itself (not on a disabled
4297
+ action, nor on the X, which does nothing meanwhile), also when it opens already loading, and
4298
+ goes to the safe action when `loading` ends.
4299
+ - **Narrow screens:** the actions stack when they don't fit side by side, and a label longer
4300
+ than the dialog wraps inside its button (see «Narrow screen (long labels)» at 320px).
4301
+ - **Assistive tech:** `role="alertdialog"`, labelled by the title and described by the text (or
4302
+ the default slot) and the notice, so the question is read before the focused action.
4303
+ - **Copy:** every string is the app's (`closeLabel` defaults to `'Close'`, like `DsModal`).
4304
+
4305
+ ### Props
4306
+
4307
+ | Prop | Type | Default | Description |
4308
+ | -------------- | --------- | --------- | ----------------------------------------------------------- |
4309
+ | `open` | `boolean` | `false` | |
4310
+ | `title` | `string` | — | The header (required). |
4311
+ | `text` | `string` | `''` | The question. The default slot replaces it. |
4312
+ | `notice` | `string` | `''` | A secondary line under the text (stale data). Empty = none. |
4313
+ | `confirmLabel` | `string` | — | The primary action (required); emits `confirm`. |
4314
+ | `cancelLabel` | `string` | — | The safe action (required); emits `cancel` with `'action'`. |
4315
+ | `closeLabel` | `string` | `'Close'` | Accessible name of the X. |
4316
+ | `loading` | `boolean` | `false` | The app is acting on the answer: every path is blocked. |
4317
+
4318
+ ### Events
4319
+
4320
+ | Event | Payload | When |
4321
+ | --------- | ------------------------- | ---------------------------------------------------- |
4322
+ | `confirm` | — | The primary action was clicked. |
4323
+ | `cancel` | `'action'` \| `'dismiss'` | The secondary action, or Esc / the X / the backdrop. |
4324
+
4325
+ Both events are declared with validators, so listeners are typed: `onCancel` receives a
4326
+ `DsConfirmDialogCancelReason`.
4327
+
4328
+ ### Slots
4329
+
4330
+ | Slot | Use |
4331
+ | --------- | --------------------------------------------- |
4332
+ | `default` | Replaces the text paragraph (richer content). |
4333
+
4334
+ ---
4335
+
4020
4336
  <!-- DsDrawer · Overlays -->
4021
4337
 
4022
4338
  ## DsDrawer
@@ -4211,6 +4527,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
4211
4527
  | `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). |
4212
4528
  | `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the panel must stay inside besides the viewport. See **Boundary** below. |
4213
4529
  | `modal` | `boolean` | `false` | Blocks the page behind the panel with a transparent full-viewport layer and emits `backdrop-click`. See **Modal** below. |
4530
+ | `modalExclude` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | A box the `modal` layer leaves uncovered (a header whose controls stay clickable). See **Modal** below. |
4214
4531
 
4215
4532
  ### Placement
4216
4533
 
@@ -4324,6 +4641,10 @@ shift (it is `position: fixed`).
4324
4641
  root. Inline it only covers what the panel's own stacking context covers, so use `teleported` in
4325
4642
  tables and scrollers. While the panel fades out the layer stops intercepting, so the next click
4326
4643
  is not swallowed.
4644
+ - `modalExclude` cuts a hole in the layer (an element, or a getter for its rect; re-measured on
4645
+ open, resize and scroll): what is there keeps the pointer, and a press on it is still an outside
4646
+ press. `DsAccountMenu` passes `DsPanelHeader`'s box, so one click on another header control
4647
+ closes the menu and acts on that control.
4327
4648
  - The `mousedown` on the layer is cancelled, so a focused field inside the panel keeps its focus.
4328
4649
  - Without it nothing changes (no layer).
4329
4650
 
@@ -4833,6 +5154,39 @@ accent is too faint for 14px text on the tint.
4833
5154
 
4834
5155
  ---
4835
5156
 
5157
+ <!-- DsColumnList · Toolbar -->
5158
+
5159
+ The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
5160
+ included**, each with a drag handle, under an optional locked first row. It holds no order: the app
5161
+ owns `columns` and answers `toggle` and `reorder`.
5162
+
5163
+ ### API
5164
+
5165
+ `columns: { id, label, visible, disabled?, hint? }[]` · `lockedLabel` / `lockedHint` (the always-first
5166
+ row, with a lock; empty draws none) · `dragLabel` (handle tooltip) · `ariaLabel` · `reorderHint`.
5167
+ Every string is app copy.
5168
+
5169
+ ### Events
5170
+
5171
+ `toggle` (column id) · `reorder` (the **full** list of ids in the new order, hidden columns included).
5172
+
5173
+ ### Behaviour
5174
+
5175
+ - Native HTML5 drag and drop on the rows. A 2px accent line shows where the column lands: under the
5176
+ row when it moves down, over it when it moves up. A column can reach the last place. The dragged
5177
+ row is at 40% opacity.
5178
+ - A disabled column (it does not apply here) keeps its handle: it can be moved, not toggled.
5179
+
5180
+ ### Accessibility
5181
+
5182
+ - The list is a `group` with `aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"`; when the app gives
5183
+ `reorderHint` it is read as the group's description (visually hidden).
5184
+ - Keyboard path: with focus on a row's checkbox, **Alt+ArrowUp / Alt+ArrowDown** moves the column one
5185
+ place and emits `reorder`. Plain arrows are untouched. The handle and the lock are decorative.
5186
+ - Not covered: the app may announce the move in its own live region.
5187
+
5188
+ ---
5189
+
4836
5190
  <!-- DsFilterChip · Toolbar -->
4837
5191
 
4838
5192
  ## DsFilterChip