@salesql/sql_components_vue3 3.31.0 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/events.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +28 -2
- package/dist/index.es.js +4848 -3921
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +3 -10
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -0
- package/dist/ui/DsColumnList/DsColumnList.types.d.ts +26 -0
- package/dist/ui/DsColumnList/DsColumnList.vue.d.ts +66 -0
- package/dist/ui/DsColumnList/index.d.ts +2 -0
- package/dist/ui/DsContactCard/DsContactCard.types.d.ts +30 -0
- package/dist/ui/DsContactCard/DsContactCard.vue.d.ts +103 -0
- package/dist/ui/DsContactCard/index.d.ts +2 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.types.d.ts +23 -0
- package/dist/ui/DsCreditsChip/DsCreditsChip.vue.d.ts +56 -0
- package/dist/ui/DsCreditsChip/index.d.ts +2 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.types.d.ts +15 -0
- package/dist/ui/DsCreditsNotice/DsCreditsNotice.vue.d.ts +46 -0
- package/dist/ui/DsCreditsNotice/index.d.ts +2 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.types.d.ts +46 -0
- package/dist/ui/DsCreditsPopover/DsCreditsPopover.vue.d.ts +108 -0
- package/dist/ui/DsCreditsPopover/index.d.ts +2 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.types.d.ts +42 -0
- package/dist/ui/DsCreditsSummary/DsCreditsSummary.vue.d.ts +51 -0
- package/dist/ui/DsCreditsSummary/creditsLevel.d.ts +13 -0
- package/dist/ui/DsCreditsSummary/index.d.ts +3 -0
- package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +11 -0
- package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +29 -0
- package/dist/ui/DsFilterChip/DsFilterChip.types.d.ts +11 -0
- package/dist/ui/DsFilterChip/DsFilterChip.vue.d.ts +43 -0
- package/dist/ui/DsFilterChip/index.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.types.d.ts +2 -0
- package/dist/ui/DsInput/DsInput.vue.d.ts +15 -0
- package/dist/ui/DsMenuBackRow/DsMenuBackRow.types.d.ts +6 -0
- package/dist/ui/DsMenuBackRow/DsMenuBackRow.vue.d.ts +26 -0
- package/dist/ui/DsMenuBackRow/index.d.ts +2 -0
- package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.types.d.ts +8 -0
- package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.vue.d.ts +35 -0
- package/dist/ui/DsMenuDrillRow/index.d.ts +2 -0
- package/dist/ui/DsMenuEmpty/DsMenuEmpty.types.d.ts +4 -0
- package/dist/ui/DsMenuEmpty/DsMenuEmpty.vue.d.ts +24 -0
- package/dist/ui/DsMenuEmpty/index.d.ts +2 -0
- package/dist/ui/DsMenuOption/DsMenuOption.types.d.ts +20 -0
- package/dist/ui/DsMenuOption/DsMenuOption.vue.d.ts +77 -0
- package/dist/ui/DsMenuOption/index.d.ts +2 -0
- package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.types.d.ts +6 -0
- package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.vue.d.ts +26 -0
- package/dist/ui/DsMenuSectionLabel/index.d.ts +2 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +8 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +18 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +3 -1
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +9 -0
- package/dist/ui/DsToolbarButton/DsToolbarButton.types.d.ts +37 -0
- package/dist/ui/DsToolbarButton/DsToolbarButton.vue.d.ts +117 -0
- package/dist/ui/DsToolbarButton/index.d.ts +2 -0
- package/llms-full.txt +508 -25
- package/llms.txt +13 -0
- package/package.json +1 -1
- 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.
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v3.33.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 (
|
|
51
|
+
## Components (89)
|
|
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.
|
|
@@ -126,6 +131,14 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
126
131
|
- **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
|
|
127
132
|
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
128
133
|
- **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
134
|
+
- **DsColumnList** (Toolbar) — The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
135
|
+
- **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;…
|
|
136
|
+
- **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**:…
|
|
137
|
+
- **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.…
|
|
138
|
+
- **DsMenuEmpty** (Toolbar) — The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a…
|
|
139
|
+
- **DsMenuOption** (Toolbar) — A selectable row of a menu panel: a checkbox or a radio, an optional left adornment (colour dot, folder icon, avatar), the label with an…
|
|
140
|
+
- **DsMenuSectionLabel** (Toolbar) — The uppercase micro label above a group of rows in a menu panel (the chip menus and the Filters popover of the contact list toolbar), with…
|
|
141
|
+
- **DsToolbarButton** (Toolbar) — A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant,…
|
|
129
142
|
|
|
130
143
|
---
|
|
131
144
|
<!-- DsCompanyCard · Company -->
|
|
@@ -356,6 +369,33 @@ so Add never sends a campaign the user cannot see. One still listed keeps its pl
|
|
|
356
369
|
|
|
357
370
|
---
|
|
358
371
|
|
|
372
|
+
<!-- DsContactCard · Contact data -->
|
|
373
|
+
|
|
374
|
+
One contact as a card of a mobile list. The head (photo, name, job title, chevron) is a single button
|
|
375
|
+
that emits `open`; an optional checkbox sits before it; each entry of `rows` is a labelled line whose
|
|
376
|
+
value is the `row` slot.
|
|
377
|
+
|
|
378
|
+
### API
|
|
379
|
+
|
|
380
|
+
`firstName` · `lastName` · `jobTitle` · `image` · `uid` · `selectable` (the checkbox is opt-in) ·
|
|
381
|
+
`selected` (v-model:selected) · `selectLabel` · `openLabel` · `rows: { id, label }[]`.
|
|
382
|
+
Slot `row` receives `{ row }`. Events: `open`, `update:selected` (boolean).
|
|
383
|
+
|
|
384
|
+
### Not DsContactRow
|
|
385
|
+
|
|
386
|
+
`DsContactRow` is the extension panel's border-top list row (checkbox always on, `#action` slot,
|
|
387
|
+
radius-8 photo). The card has its own chrome (hairline, 8px radius, accent when selected) and the
|
|
388
|
+
labelled rows; sharing a component would have rewritten most of it.
|
|
389
|
+
|
|
390
|
+
### Accessibility
|
|
391
|
+
|
|
392
|
+
- The head is a real `<button>`; the visible name is its name, `openLabel` replaces it (and must
|
|
393
|
+
contain it). The photo and the chevron are decorative.
|
|
394
|
+
- The checkbox has no visible label: `selectLabel` names it.
|
|
395
|
+
- Design deltas: photo 42 → 40 (DS), name 15 → 14 and title 13 (DS type scale), label 11.5 → 12.
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
359
399
|
<!-- DsContactCell · Contact data -->
|
|
360
400
|
|
|
361
401
|
## DsContactCell
|
|
@@ -2639,8 +2679,9 @@ back to the `mail` icon. No per-mailbox Disconnect.
|
|
|
2639
2679
|
|
|
2640
2680
|
- `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
|
|
2641
2681
|
below it, kept 8px inside the viewport and capped to the room below (side panel height − 54).
|
|
2642
|
-
- A click anywhere outside closes it
|
|
2643
|
-
|
|
2682
|
+
- A click anywhere outside closes it. Inside `DsPanelHeader` the click-catching layer leaves the
|
|
2683
|
+
header uncovered (`modalExclude`): one click on another header control (the credits chip,
|
|
2684
|
+
«Open SalesQL») closes this menu and acts on that control; a click below the header only closes it.
|
|
2644
2685
|
- Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
|
|
2645
2686
|
|
|
2646
2687
|
### Accessibility
|
|
@@ -2874,6 +2915,166 @@ and text, 8px gap between the top line and the data block, `#action` at the righ
|
|
|
2874
2915
|
|
|
2875
2916
|
---
|
|
2876
2917
|
|
|
2918
|
+
<!-- DsCreditsChip · Extension panel -->
|
|
2919
|
+
|
|
2920
|
+
## DsCreditsChip
|
|
2921
|
+
|
|
2922
|
+
The credits button of the side panel header: `toll` + the available balance (`en-US`, never
|
|
2923
|
+
below 0). Usually rendered by `DsCreditsPopover` as its trigger; on its own it is a plain button.
|
|
2924
|
+
|
|
2925
|
+
### Props
|
|
2926
|
+
|
|
2927
|
+
| Prop | Type | Default | Description |
|
|
2928
|
+
| ----------- | ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
2929
|
+
| `available` | `number` | — | The balance. |
|
|
2930
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | White / amber / red (`getCreditsLevel`). |
|
|
2931
|
+
| `open` | `boolean` | — | Passed (even `false`): `aria-haspopup="dialog"` + `aria-expanded`, open look. |
|
|
2932
|
+
| `tooltip` | `string` | `''` | Off while open. |
|
|
2933
|
+
| `copy` | `Partial<DsCreditsChipCopy>` | English | `label(formatted, available, level)` → «412 credits available», «9 credits available, running low» (the `aria-label`). |
|
|
2934
|
+
|
|
2935
|
+
Events: `click`. Class, style and `data-*` go on the `<button>`.
|
|
2936
|
+
|
|
2937
|
+
### Design parity (canvas «Header-menu-uso» L61, `CREDIT_CHIP`)
|
|
2938
|
+
|
|
2939
|
+
- 28px = `control-height('compact')`, `radius-full`, gap 4, text `font-size('label')` 12.5 bold.
|
|
2940
|
+
- Colours from the new DS steps: low `amber-tint-soft` / `amber-mid-soft` / `amber-deep`, open
|
|
2941
|
+
`amber-tint-strong` / `amber-mid-strong`; out `error-tint-soft` / `error-mid-soft` /
|
|
2942
|
+
`error-shadow-strong`, open `error-tint-strong` / `error-mid-strong`; icon `amber-main` /
|
|
2943
|
+
`error-main` / `accent-main`. Normal open = `accent-bg` + `accent-mid`.
|
|
2944
|
+
- Logged deltas: left padding 7 → 6 (`spacing(0.75)`, the DS's 2px unit); hover
|
|
2945
|
+
`brightness(.97)` → `slate-bg` (normal) or the level's `tint-strong`; focus ring `accent-mid`
|
|
2946
|
+
as the avatar's.
|
|
2947
|
+
|
|
2948
|
+
---
|
|
2949
|
+
|
|
2950
|
+
<!-- DsCreditsNotice · Extension panel -->
|
|
2951
|
+
|
|
2952
|
+
## DsCreditsNotice
|
|
2953
|
+
|
|
2954
|
+
A short `role="status"` notice inside the credits popover.
|
|
2955
|
+
|
|
2956
|
+
| Prop | Type | Default | Description |
|
|
2957
|
+
| ----------- | -------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2958
|
+
| `text` | `string` | — | App copy. |
|
|
2959
|
+
| `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`. |
|
|
2960
|
+
| `linkLabel` | `string` | `''` | Inline link after the text («More info.»). |
|
|
2961
|
+
| `href` | `string` | `''` | Opens in a new tab. Empty = a button that emits `click`. |
|
|
2962
|
+
|
|
2963
|
+
### Design parity («Header-menu-uso» P:credits pending notice, «Upsell» warnBox)
|
|
2964
|
+
|
|
2965
|
+
Caption 12 with `$line-height-snug` 1.45, radius 6. Info 10/12 padding, 500, no border;
|
|
2966
|
+
low / out 8/10 padding, 600, 1px border. Logged deltas: icon 15 → 16 (DsIcon), icon gap 7 → 6.
|
|
2967
|
+
|
|
2968
|
+
---
|
|
2969
|
+
|
|
2970
|
+
<!-- DsCreditsPopover · Extension panel -->
|
|
2971
|
+
|
|
2972
|
+
## DsCreditsPopover
|
|
2973
|
+
|
|
2974
|
+
The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
|
|
2975
|
+
`usage` slot, before «Open SalesQL». **Presentational only**: the app decides the level, the
|
|
2976
|
+
action or the note for the account, and opens the page on `action`.
|
|
2977
|
+
|
|
2978
|
+
Order, as the design: summary (`toll` «Credits», plan chip; the balance as a 26px figure with
|
|
2979
|
+
«available»; meter; «{used} of {total} used» · «Resets {date}») · the low / out notice · the
|
|
2980
|
+
`notice` slot · one button (`action`) · the member line (`note`).
|
|
2981
|
+
|
|
2982
|
+
### Props
|
|
2983
|
+
|
|
2984
|
+
| Prop | Type | Default | Description |
|
|
2985
|
+
| ----------- | ------------------------------- | -------- | -------------------------------------------------------------------------------------------------------- |
|
|
2986
|
+
| `open` | `boolean` | — | `v-model:open`. Omitted = manages itself. Bind it to keep one popover open at a time. |
|
|
2987
|
+
| `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }`, as `DsAccountMenu`'s credits. |
|
|
2988
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | Colours the chip, the figure and the meter; `low` / `out` add their notice. |
|
|
2989
|
+
| `planLabel` | `string` | `''` | The plan chip («Pro plan»). Empty = none. |
|
|
2990
|
+
| `action` | `{ kind, label } \| null` | `null` | `kind`: `upgrade`, `update_payment` (primary) or `see_plans` (outline). Full width, 36px, `open_in_new`. |
|
|
2991
|
+
| `note` | `string` | `''` | A line with the `group` icon instead of a button («Your team admin manages the plan»). |
|
|
2992
|
+
| `width` | `number \| string` | `264` | Panel width (also its max, so past 320 is not clipped); a number is px. The viewport still caps it. |
|
|
2993
|
+
| `tooltip` | `string` | `''` | The chip's tooltip («412 credits · resets Dec 1»), off while open. |
|
|
2994
|
+
| `copy` | `Partial<DsCreditsPopoverCopy>` | English | Summary strings, `chipLabel`, `dialog`, `lowNotice`, `outNotice`. |
|
|
2995
|
+
|
|
2996
|
+
Slots: `trigger` (replaces the chip; gets `{ open }`) · `notice` (the pending-setup unlock note:
|
|
2997
|
+
put a `DsCreditsNotice` with `linkLabel` + `href` there).
|
|
2998
|
+
|
|
2999
|
+
Events: `update:open` (boolean) · `action` (the kind). An action also closes the popover.
|
|
3000
|
+
|
|
3001
|
+
### The app's rules (not in the component)
|
|
3002
|
+
|
|
3003
|
+
- Which content, in this order: member → `note`; past due → `update_payment`; Free still
|
|
3004
|
+
pending setup (plan identifier `500`) → `notice` slot, no action, level `normal`; Free →
|
|
3005
|
+
`upgrade`; paid or gift admin → `see_plans`. The component renders whatever it receives.
|
|
3006
|
+
- Level: `getCreditsLevel({ available, base, pendingSetup })` with `CREDITS_LOW_SHARE` 0.2.
|
|
3007
|
+
`base` = the plan's monthly credits when known, else the period's total. 0 or below → `out`
|
|
3008
|
+
(with or without a base); no base → never `low`; `pendingSetup` → always `normal`.
|
|
3009
|
+
- The out notice's second sentence («Upgrade to keep revealing today.») follows the action: pass
|
|
3010
|
+
it through `copy.outNotice` only when the action is `upgrade`.
|
|
3011
|
+
|
|
3012
|
+
### Behaviour and accessibility
|
|
3013
|
+
|
|
3014
|
+
- `DsPopover` `teleported`, non-modal, `bottom-end`: right-aligned with the chip, 6px below it,
|
|
3015
|
+
kept inside the viewport and capped to the room below (it scrolls, bar hidden).
|
|
3016
|
+
- The chip is a `<button>` with `aria-label` «412 credits available» («…, running low» at `low`,
|
|
3017
|
+
so the level is not colour only), `aria-haspopup="dialog"` and `aria-expanded`. The panel is a
|
|
3018
|
+
`dialog` named «Credits» (`copy.dialog`). Escape, an action, or Tab / Shift+Tab out of the
|
|
3019
|
+
panel close it and put the focus on the chip (on the `trigger` slot's first focusable), also
|
|
3020
|
+
where a click does not focus the button (Safari / Firefox). Escape stops there: a drawer behind
|
|
3021
|
+
does not close. A click outside closes it too.
|
|
3022
|
+
- The notices are `role="status"`; the meter is a `progressbar`.
|
|
3023
|
+
|
|
3024
|
+
### Design parity (canvas «Header-menu-uso» P:credits, «Upsell» P:credits)
|
|
3025
|
+
|
|
3026
|
+
Composition, order and copy follow the boards. Logged deltas:
|
|
3027
|
+
|
|
3028
|
+
- New DS tokens (Diego, 2026-11-20: every off-scale value of the boards goes to the DS): the
|
|
3029
|
+
amber / error in-between steps `bg`, `tint-soft`, `tint-strong`, `mid-soft`, `mid-strong`
|
|
3030
|
+
(`-soft` a notch lighter than its step, `-strong` a notch darker) plus the text steps
|
|
3031
|
+
`amber-deep` and `error-shadow-strong` (chip, notices, figure), `font-size('display')` 26 + `$weight-extrabold` 800 + `$letter-spacing-tight` -0.3px
|
|
3032
|
+
- `$line-height-display` 1.1 (the figure), `font-size('label')` 12.5 (chip, «available»),
|
|
3033
|
+
`$line-height-snug` 1.45 (notices).
|
|
3034
|
+
- Kept from DsAccountMenu (SALESQL-4790) so the menu and the popover match: popover chrome is
|
|
3035
|
+
`DsPopover`'s (6px radius, `shadow-dropdown`) instead of 8px and `0 8px 28px`; plan chip
|
|
3036
|
+
10.5/800 → `micro` 10 bold; foot 11.5 → `caption` 12; `#888F97` text → `slate-soft` (AA);
|
|
3037
|
+
track `#E5E7EB` → `grey-2`; meter-to-foot 7 → 8px.
|
|
3038
|
+
- Icons are `DsIcon` at 16 (the board's 15 → 16: DsIcon draws 16 / 20 / 24).
|
|
3039
|
+
- Buttons are `DsButton` `large` (36px, 14/500, radius 4, 20px glyph) instead of 13/700, radius 6
|
|
3040
|
+
and a 15px glyph.
|
|
3041
|
+
- Notice icon-to-text gap 7 → 6px; member line `#5C6670` → `slate-soft`.
|
|
3042
|
+
- «See plans»: the trailing `open_in_new` keeps the board's `slate-muted` (`#888F97`); the label
|
|
3043
|
+
stays `slate-main`.
|
|
3044
|
+
|
|
3045
|
+
---
|
|
3046
|
+
|
|
3047
|
+
<!-- DsCreditsSummary · Extension panel -->
|
|
3048
|
+
|
|
3049
|
+
## DsCreditsSummary
|
|
3050
|
+
|
|
3051
|
+
The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
|
|
3052
|
+
|
|
3053
|
+
| Prop | Type | Default | Description |
|
|
3054
|
+
| ----------- | ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
3055
|
+
| `credits` | `DsCredits` | — | `{ used?, total?, available?, resetsOn? }` (each number also `null`). |
|
|
3056
|
+
| `level` | `'normal' \| 'low' \| 'out'` | `normal` | Low / out colour the balance (`amber-deep` / `error-shadow-strong`) and make the meter solid (`amber-main` / `error-main`). |
|
|
3057
|
+
| `prominent` | `boolean` | `false` | «Credits» + plan chip, then the balance as a 26px figure + «available». |
|
|
3058
|
+
| `planLabel` | `string` | `''` | The plan chip, prominent only. |
|
|
3059
|
+
| `copy` | `Partial<DsCreditsCopy>` | English | `title`, `available`, `availableLabel`, `used`, `resets`, `progress`. |
|
|
3060
|
+
|
|
3061
|
+
Rules as DsAccountMenu's: `available` wins (even above `total`, never below 0), else `total − used`; `used`
|
|
3062
|
+
omitted = `total − available`; the meter is clipped to 0–100% and `aria-valuenow` never goes
|
|
3063
|
+
below 0; no `total` = no meter and no «… used».
|
|
3064
|
+
|
|
3065
|
+
`getCreditsLevel({ available, base, lowShare?, pendingSetup? })` and `CREDITS_LOW_SHARE` (0.2) live
|
|
3066
|
+
here too: 0 or below is `out` with or without a base, no base is never `low`, `pendingSetup` is
|
|
3067
|
+
always `normal`.
|
|
3068
|
+
|
|
3069
|
+
### Design parity
|
|
3070
|
+
|
|
3071
|
+
Row: identical to the account menu's block (SALESQL-4790). Prominent: the figure is
|
|
3072
|
+
`font-size('display')` 26 / `$weight-extrabold` / `$line-height-display` / `$letter-spacing-tight`;
|
|
3073
|
+
«available» `font-size('label')` 12.5 semibold in `slate-soft` (board `#888F97`); 10px from the
|
|
3074
|
+
header and to the meter; meter-to-foot 7 → 8px.
|
|
3075
|
+
|
|
3076
|
+
---
|
|
3077
|
+
|
|
2877
3078
|
<!-- DsPanelFrame · Extension panel -->
|
|
2878
3079
|
|
|
2879
3080
|
## DsPanelFrame
|
|
@@ -3425,27 +3626,30 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3425
3626
|
|
|
3426
3627
|
### Props
|
|
3427
3628
|
|
|
3428
|
-
| Prop | Type
|
|
3429
|
-
| --------------- |
|
|
3430
|
-
| `modelValue` | `string`
|
|
3431
|
-
| `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'number' \| 'search' \| 'url'` | `'text'` | Native input type. `password` renders a reveal toggle when `toggleLabel` is set; `search` always renders as a styled text input with a left search icon. |
|
|
3432
|
-
| `size` | `'xs' \| 'sm' \| 'md'`
|
|
3433
|
-
| `placeholder` | `string`
|
|
3434
|
-
| `disabled` | `boolean`
|
|
3435
|
-
| `error` | `boolean`
|
|
3436
|
-
| `errorMessage` | `string`
|
|
3437
|
-
| `showErrorIcon` | `boolean`
|
|
3438
|
-
| `name` | `string`
|
|
3439
|
-
| `id` | `string`
|
|
3440
|
-
| `autocomplete` | `string`
|
|
3441
|
-
| `toggleLabel` | `string`
|
|
3442
|
-
| `min` | `number \| string`
|
|
3443
|
-
| `max` | `number \| string`
|
|
3444
|
-
| `step` | `number \| string`
|
|
3445
|
-
| `maxlength` | `number \| string`
|
|
3446
|
-
| `describedby` | `string`
|
|
3447
|
-
| `clearable` | `boolean`
|
|
3448
|
-
| `clearLabel` | `string`
|
|
3629
|
+
| Prop | Type | Default | Description |
|
|
3630
|
+
| --------------- | ------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
3631
|
+
| `modelValue` | `string` | `''` | v-model — current text value. |
|
|
3632
|
+
| `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'number' \| 'search' \| 'url' \| 'date'` | `'text'` | Native input type. `password` renders a reveal toggle when `toggleLabel` is set; `search` always renders as a styled text input with a left search icon; `date` is the native picker (the value is an ISO `YYYY-MM-DD` string, bounded with `min` / `max`). |
|
|
3633
|
+
| `size` | `'xs' \| 'sm' \| 'toolbar' \| 'md'` | `'sm'` | Control height (32px / 36px / 40px / 48px). Padding, type scale and borders are the same for all; the suffix glyph is 16 / 18 / 20 / 24. `toolbar` is the contact list toolbar height. |
|
|
3634
|
+
| `placeholder` | `string` | `''` | Native placeholder text. |
|
|
3635
|
+
| `disabled` | `boolean` | `false` | Disables the control. |
|
|
3636
|
+
| `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
|
|
3637
|
+
| `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
|
|
3638
|
+
| `showErrorIcon` | `boolean` | `false` | Shows a warning icon in the suffix when `error` is true. |
|
|
3639
|
+
| `name` | `string` | `''` | Native `name` attribute. |
|
|
3640
|
+
| `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
|
|
3641
|
+
| `autocomplete` | `string` | `''` | Native `autocomplete` attribute. |
|
|
3642
|
+
| `toggleLabel` | `string` | `''` | Accessible name for the password-reveal toggle button (`type="password"` only). No label → no toggle. |
|
|
3643
|
+
| `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
|
|
3644
|
+
| `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
|
|
3645
|
+
| `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
|
|
3646
|
+
| `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
|
|
3647
|
+
| `describedby` | `string` | `''` | `aria-describedby` of the native input, for a hint or error you render yourself. The link to its own `errorMessage` wins when both apply. |
|
|
3648
|
+
| `clearable` | `boolean` | `false` | Text button at the right end that empties the field while it has a value. Needs `clearLabel`. Works with every `type`, `search` included. |
|
|
3649
|
+
| `clearLabel` | `string` | `''` | The clear button's text (it is text-only, so the app owns the copy); with `clearIcon` it is the button's `aria-label`. No label → no button. |
|
|
3650
|
+
| `clearIcon` | `boolean` | `false` | With `clearable`: a × glyph (18px) instead of the text button. Same behaviour; the input reserves 34px on the right instead of 72px. |
|
|
3651
|
+
| `applied` | `boolean` | `false` | The value is in effect (the toolbar search once Enter applied it): `accent-bg` fill and `accent-mid` border at rest. The focus border (dark grey), `error` and `disabled` still win over it. |
|
|
3652
|
+
| `hint` | `string` | `''` | A line under the field, shown only while the input has the focus (`role="status"`). Empty = nothing. The app owns the text and when it changes. |
|
|
3449
3653
|
|
|
3450
3654
|
### Events
|
|
3451
3655
|
|
|
@@ -3458,6 +3662,14 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3458
3662
|
| `field-blur` | `FocusEvent` | Focus left the **whole** component (not just moved to the internal toggle) — the "real field exit" signal. |
|
|
3459
3663
|
| `clear` | — | The clear button was used; `update:modelValue` has already carried `''`. The focus stays in the input. |
|
|
3460
3664
|
|
|
3665
|
+
### Toolbar search
|
|
3666
|
+
|
|
3667
|
+
`type="search" size="toolbar" applied hint clearable clearIcon` is the contact list toolbar search: 40px, the DS filled field, a × glyph while there is text. The component only draws; the draft / applied logic is the app's (the story «Toolbar search» shows it: Enter applies unless the text is 1 character, Esc clears, the hint is «Press Enter to search» or «Type at least 2 characters»). `applied` is driven by the **applied** value, not by the draft.
|
|
3668
|
+
|
|
3669
|
+
The hint floats 4px under the field (`z-index: 60`, `nowrap`, hairline, 12/600) and takes no room in the layout. It is linked to the input with `aria-describedby` (`{id}-hint`) only when the field has an `id`, together with any `describedby` you pass; the `errorMessage` link still wins.
|
|
3670
|
+
|
|
3671
|
+
Deliberate deviations from the prototype, both DS rules that win: the search keeps the DS filled look (not white with a hairline) and the focus border is the dark grey token, not «no restyle».
|
|
3672
|
+
|
|
3461
3673
|
### Accessibility
|
|
3462
3674
|
|
|
3463
3675
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
@@ -4193,6 +4405,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
|
|
|
4193
4405
|
| `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). |
|
|
4194
4406
|
| `boundary` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | Area the panel must stay inside besides the viewport. See **Boundary** below. |
|
|
4195
4407
|
| `modal` | `boolean` | `false` | Blocks the page behind the panel with a transparent full-viewport layer and emits `backdrop-click`. See **Modal** below. |
|
|
4408
|
+
| `modalExclude` | `HTMLElement \| (() => DOMRect \| null) \| null` | `null` | A box the `modal` layer leaves uncovered (a header whose controls stay clickable). See **Modal** below. |
|
|
4196
4409
|
|
|
4197
4410
|
### Placement
|
|
4198
4411
|
|
|
@@ -4306,6 +4519,10 @@ shift (it is `position: fixed`).
|
|
|
4306
4519
|
root. Inline it only covers what the panel's own stacking context covers, so use `teleported` in
|
|
4307
4520
|
tables and scrollers. While the panel fades out the layer stops intercepting, so the next click
|
|
4308
4521
|
is not swallowed.
|
|
4522
|
+
- `modalExclude` cuts a hole in the layer (an element, or a getter for its rect; re-measured on
|
|
4523
|
+
open, resize and scroll): what is there keeps the pointer, and a press on it is still an outside
|
|
4524
|
+
press. `DsAccountMenu` passes `DsPanelHeader`'s box, so one click on another header control
|
|
4525
|
+
closes the menu and acts on that control.
|
|
4309
4526
|
- The `mousedown` on the layer is cancelled, so a focused field inside the panel keeps its focus.
|
|
4310
4527
|
- Without it nothing changes (no layer).
|
|
4311
4528
|
|
|
@@ -4812,3 +5029,269 @@ Built on the DS accent family, as `DsAlert`'s tinted look (tint fill, mid ring),
|
|
|
4812
5029
|
`DsAlert` itself: that one is a `role="alert"` banner that is announced on mount and has no
|
|
4813
5030
|
place for a link under the text. The link reads in the accent shadow, underlined: the main
|
|
4814
5031
|
accent is too faint for 14px text on the tint.
|
|
5032
|
+
|
|
5033
|
+
---
|
|
5034
|
+
|
|
5035
|
+
<!-- DsColumnList · Toolbar -->
|
|
5036
|
+
|
|
5037
|
+
The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
5038
|
+
included**, each with a drag handle, under an optional locked first row. It holds no order: the app
|
|
5039
|
+
owns `columns` and answers `toggle` and `reorder`.
|
|
5040
|
+
|
|
5041
|
+
### API
|
|
5042
|
+
|
|
5043
|
+
`columns: { id, label, visible, disabled?, hint? }[]` · `lockedLabel` / `lockedHint` (the always-first
|
|
5044
|
+
row, with a lock; empty draws none) · `dragLabel` (handle tooltip) · `ariaLabel` · `reorderHint`.
|
|
5045
|
+
Every string is app copy.
|
|
5046
|
+
|
|
5047
|
+
### Events
|
|
5048
|
+
|
|
5049
|
+
`toggle` (column id) · `reorder` (the **full** list of ids in the new order, hidden columns included).
|
|
5050
|
+
|
|
5051
|
+
### Behaviour
|
|
5052
|
+
|
|
5053
|
+
- Native HTML5 drag and drop on the rows. A 2px accent line shows where the column lands: under the
|
|
5054
|
+
row when it moves down, over it when it moves up. A column can reach the last place. The dragged
|
|
5055
|
+
row is at 40% opacity.
|
|
5056
|
+
- A disabled column (it does not apply here) keeps its handle: it can be moved, not toggled.
|
|
5057
|
+
|
|
5058
|
+
### Accessibility
|
|
5059
|
+
|
|
5060
|
+
- The list is a `group` with `aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"`; when the app gives
|
|
5061
|
+
`reorderHint` it is read as the group's description (visually hidden).
|
|
5062
|
+
- Keyboard path: with focus on a row's checkbox, **Alt+ArrowUp / Alt+ArrowDown** moves the column one
|
|
5063
|
+
place and emits `reorder`. Plain arrows are untouched. The handle and the lock are decorative.
|
|
5064
|
+
- Not covered: the app may announce the move in its own live region.
|
|
5065
|
+
|
|
5066
|
+
---
|
|
5067
|
+
|
|
5068
|
+
<!-- DsFilterChip · Toolbar -->
|
|
5069
|
+
|
|
5070
|
+
## DsFilterChip
|
|
5071
|
+
|
|
5072
|
+
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; **applied** it reads «Label: value» and gets its own × that clears just that filter. **Presentational**: `value` and `open` come in by props, `click` and `clear` go out. The menu is yours (`DsPopover` + the `DsMenu*` rows); the story composes the four menus, the Filters popover and the whole bar.
|
|
5073
|
+
|
|
5074
|
+
The 40px height is the documented `toolbar` step of `control-height()` (shared with `DsToolbarButton` and `DsInput size="toolbar"` through `assets/css/toolbar.scss`).
|
|
5075
|
+
|
|
5076
|
+
### Props
|
|
5077
|
+
|
|
5078
|
+
| Prop | Type | Default | Description |
|
|
5079
|
+
| ------------ | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5080
|
+
| `label` | `string` | — | The filter's name (required, app copy). Applied, the component appends the colon: «Tags:». |
|
|
5081
|
+
| `value` | `string` | `''` | What the filter is set to. **Non-empty = applied**: accent look, value text (max 150px, ellipsis, weight 600) and the ×. Empty = idle. |
|
|
5082
|
+
| `open` | `boolean` | `false` | The menu it opens is showing: `slate-tint` fill and `aria-expanded="true"`. An applied chip keeps its look. |
|
|
5083
|
+
| `clearLabel` | `string` | `''` | Accessible name of the × («Clear Tags»). Without it there is **no ×** (it would be unnamed) and the caret stays so the chip still opens. |
|
|
5084
|
+
| `disabled` | `boolean` | `false` | Disables the chip and its ×. |
|
|
5085
|
+
|
|
5086
|
+
Attributes you pass (`class`, `data-*`) land on the root `<span>`.
|
|
5087
|
+
|
|
5088
|
+
### Events
|
|
5089
|
+
|
|
5090
|
+
| Event | Payload | When |
|
|
5091
|
+
| ------- | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
|
|
5092
|
+
| `click` | `MouseEvent` | The chip was activated: toggle your menu. It also bubbles, so a `DsPopover` `#trigger` slot toggles on its own. |
|
|
5093
|
+
| `clear` | — | The × was activated. It stops the click, so it never emits `click` and never reaches a wrapping `DsPopover`: no menu opens. |
|
|
5094
|
+
|
|
5095
|
+
### Behaviour
|
|
5096
|
+
|
|
5097
|
+
- Two sibling `<button>`s inside the root (open and ×), never one inside the other: both are reachable with Tab and activate with Enter / Space.
|
|
5098
|
+
- Only the **value** truncates (150px); the chip grows with its label, the value and the ×.
|
|
5099
|
+
- Idle hover and the open menu take `slate-tint`; an applied chip has no hover change, the × hovers to `accent-mid`.
|
|
5100
|
+
- No tooltip on the chip or the ×. The keyboard ring is drawn around the whole chip.
|
|
5101
|
+
|
|
5102
|
+
### Accessibility
|
|
5103
|
+
|
|
5104
|
+
- The chip is a disclosure of a `dialog` (`aria-haspopup="dialog"`, `aria-expanded` follows `open`): the panel of `DsPopover`.
|
|
5105
|
+
- Its accessible name is its text («Tags: Q3 Outbound»); the × is named by `clearLabel`.
|
|
5106
|
+
|
|
5107
|
+
---
|
|
5108
|
+
|
|
5109
|
+
<!-- DsMenuBackRow · Toolbar -->
|
|
5110
|
+
|
|
5111
|
+
## DsMenuBackRow
|
|
5112
|
+
|
|
5113
|
+
The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**: it emits `back`.
|
|
5114
|
+
|
|
5115
|
+
Measures: `6px 6px 8px` padding, 6px gap, a 20px `keyboard_arrow_left`, label 14/700 with ellipsis, `slate-bg` on hover.
|
|
5116
|
+
|
|
5117
|
+
### Props
|
|
5118
|
+
|
|
5119
|
+
| Prop | Type | Default | Description |
|
|
5120
|
+
| ----------- | -------- | ------- | -------------------------------------------------------------------------------------------------- |
|
|
5121
|
+
| `label` | `string` | — | The view you are in («Tags»). Required, app copy. |
|
|
5122
|
+
| `ariaLabel` | `string` | `''` | Accessible name when the label alone is ambiguous («Back to filters»). Empty = the label names it. |
|
|
5123
|
+
|
|
5124
|
+
### Events
|
|
5125
|
+
|
|
5126
|
+
| Event | Payload | When |
|
|
5127
|
+
| ------ | ------- | -------------------------------------------- |
|
|
5128
|
+
| `back` | — | The row was activated (click, Enter, Space). |
|
|
5129
|
+
|
|
5130
|
+
### Accessibility
|
|
5131
|
+
|
|
5132
|
+
- A real `<button type="button">`; the arrow is `aria-hidden`. Pass `ariaLabel` so a screen reader hears where it goes, not just the name of the view.
|
|
5133
|
+
|
|
5134
|
+
---
|
|
5135
|
+
|
|
5136
|
+
<!-- DsMenuDrillRow · Toolbar -->
|
|
5137
|
+
|
|
5138
|
+
## DsMenuDrillRow
|
|
5139
|
+
|
|
5140
|
+
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. **Presentational**: it emits `select`; swapping the view is the app's.
|
|
5141
|
+
|
|
5142
|
+
Measures: `10px` padding, 10px gap, 4px radius, `slate-bg` on hover; label 14/700; value right-aligned with ellipsis; `chevron_right` 18px in `slate-mid`. Unset, the value is the muted placeholder (500); applied, it is `accent-shadow` bold, like the chip.
|
|
5143
|
+
|
|
5144
|
+
### Props
|
|
5145
|
+
|
|
5146
|
+
| Prop | Type | Default | Description |
|
|
5147
|
+
| ------------- | -------- | ------- | -------------------------------------------------------- |
|
|
5148
|
+
| `label` | `string` | — | The name (required, app copy). |
|
|
5149
|
+
| `value` | `string` | `''` | What it is set to. Non-empty = applied. |
|
|
5150
|
+
| `placeholder` | `string` | `''` | Shown, muted, while there is no value («Any»). App copy. |
|
|
5151
|
+
|
|
5152
|
+
### Events
|
|
5153
|
+
|
|
5154
|
+
| Event | Payload | When |
|
|
5155
|
+
| -------- | ------------ | -------------------------------------------- |
|
|
5156
|
+
| `select` | `MouseEvent` | The row was activated (click, Enter, Space). |
|
|
5157
|
+
|
|
5158
|
+
### Accessibility
|
|
5159
|
+
|
|
5160
|
+
- A real `<button type="button">`; its name reads the label and the value («Tags 3 tags»). The chevron is `aria-hidden`.
|
|
5161
|
+
|
|
5162
|
+
---
|
|
5163
|
+
|
|
5164
|
+
<!-- DsMenuEmpty · Toolbar -->
|
|
5165
|
+
|
|
5166
|
+
## DsMenuEmpty
|
|
5167
|
+
|
|
5168
|
+
The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a screen reader hears it appear as the list empties.
|
|
5169
|
+
|
|
5170
|
+
Measures: `10px 8px` padding, 13px `slate-soft` (the `empty` mixin of the picker family).
|
|
5171
|
+
|
|
5172
|
+
### Props
|
|
5173
|
+
|
|
5174
|
+
| Prop | Type | Default | Description |
|
|
5175
|
+
| ------- | -------- | ------- | ----------------------------------------------------- |
|
|
5176
|
+
| `label` | `string` | `''` | The message (app copy). The default slot replaces it. |
|
|
5177
|
+
|
|
5178
|
+
---
|
|
5179
|
+
|
|
5180
|
+
<!-- DsMenuOption · Toolbar -->
|
|
5181
|
+
|
|
5182
|
+
## DsMenuOption
|
|
5183
|
+
|
|
5184
|
+
A selectable row of a menu panel: a checkbox or a radio, an optional left adornment (colour dot, folder icon, avatar), the label with an ellipsis and an optional right hint. It is the check row and the radio row of the contact list toolbar menus. **Presentational**: it wraps `DsCheckbox` / `DsRadio`, so the semantics are native (real `<input>`, Space toggles, arrow keys move between radios of one `name`).
|
|
5185
|
+
|
|
5186
|
+
Measures: 36px minimum height, `0 10px` padding, 10px gap, 4px radius, `slate-bg` on hover; label 14px with ellipsis; hint 13px `slate-soft`.
|
|
5187
|
+
|
|
5188
|
+
### Props
|
|
5189
|
+
|
|
5190
|
+
| Prop | Type | Default | Description |
|
|
5191
|
+
| ------------ | ----------------------- | ------------ | ------------------------------------------------------------------------------------------------------ |
|
|
5192
|
+
| `modelValue` | `boolean` | `false` | v-model: the option is selected. A radio emits `true` when chosen; the app sets the others to `false`. |
|
|
5193
|
+
| `type` | `'checkbox' \| 'radio'` | `'checkbox'` | Multi-select or single choice. |
|
|
5194
|
+
| `label` | `string` | `''` | The text (app copy). The default slot replaces it. |
|
|
5195
|
+
| `hint` | `string` | `''` | Small text at the right end (a count). Empty = none. |
|
|
5196
|
+
| `disabled` | `boolean` | `false` | Disables the control; the row loses its hover. |
|
|
5197
|
+
| `name` | `string` | `''` | Native `name`. Radios of one group must share it for arrow-key navigation. |
|
|
5198
|
+
| `value` | `string` | `''` | Native `value` of a radio. |
|
|
5199
|
+
|
|
5200
|
+
### Slots
|
|
5201
|
+
|
|
5202
|
+
| Slot | Description |
|
|
5203
|
+
| --------- | --------------------------------------------------------------------------------------- |
|
|
5204
|
+
| `leading` | Between the control and the label: a 9px dot, a 17-18px folder icon, a 22px `DsAvatar`. |
|
|
5205
|
+
| default | Replaces the label text (keep it one line; the ellipsis applies to its box). |
|
|
5206
|
+
|
|
5207
|
+
### Events
|
|
5208
|
+
|
|
5209
|
+
| Event | Payload | When |
|
|
5210
|
+
| ------------------- | --------- | -------------------------------------------------- |
|
|
5211
|
+
| `update:modelValue` | `boolean` | The row was toggled (click anywhere on it, Space). |
|
|
5212
|
+
|
|
5213
|
+
### Accessibility
|
|
5214
|
+
|
|
5215
|
+
- The accessible name is the row's text (label and hint). Wrap a set of rows in `role="group"` with `aria-labelledby` pointing at a `DsMenuSectionLabel` `id`.
|
|
5216
|
+
|
|
5217
|
+
---
|
|
5218
|
+
|
|
5219
|
+
<!-- DsMenuSectionLabel · Toolbar -->
|
|
5220
|
+
|
|
5221
|
+
## DsMenuSectionLabel
|
|
5222
|
+
|
|
5223
|
+
The uppercase micro label above a group of rows in a menu panel (the chip menus and the Filters popover of the contact list toolbar), with an optional action at its right end. **Presentational**: it emits `clear`; the menu stays open.
|
|
5224
|
+
|
|
5225
|
+
Measures: `8px 10px 4px` padding, 10/700 uppercase with 0.6px tracking in `slate-soft` (the `section-label` mixin of the picker family); the action is 13/700 `accent-main`, not uppercase.
|
|
5226
|
+
|
|
5227
|
+
### Props
|
|
5228
|
+
|
|
5229
|
+
| Prop | Type | Default | Description |
|
|
5230
|
+
| ------------ | -------- | ------- | ----------------------------------------------------------------- |
|
|
5231
|
+
| `label` | `string` | — | The section title (required, app copy). Drawn uppercase. |
|
|
5232
|
+
| `clearLabel` | `string` | `''` | Text of the action at the right end. Empty = no action. App copy. |
|
|
5233
|
+
|
|
5234
|
+
### Events
|
|
5235
|
+
|
|
5236
|
+
| Event | Payload | When |
|
|
5237
|
+
| ------- | ------- | ----------------------------------------------- |
|
|
5238
|
+
| `clear` | — | The action was activated (click, Enter, Space). |
|
|
5239
|
+
|
|
5240
|
+
### Accessibility
|
|
5241
|
+
|
|
5242
|
+
- The action is a real `<button type="button">` named by its text.
|
|
5243
|
+
- To name a group of options by this label, pass an `id` (it lands on the root) and set `aria-labelledby` on your `role="group"` wrapper.
|
|
5244
|
+
|
|
5245
|
+
---
|
|
5246
|
+
|
|
5247
|
+
<!-- DsToolbarButton · Toolbar -->
|
|
5248
|
+
|
|
5249
|
+
## DsToolbarButton
|
|
5250
|
+
|
|
5251
|
+
A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant, **Export**. **Presentational**: it draws the states it is given (`applied`, `open`, `compact`, `count`) and emits `click`; the menu it opens is yours (`DsPopover`).
|
|
5252
|
+
|
|
5253
|
+
Why not `DsButton`: its sizes stop at 36 and 48, its `selected` look is the accent-main toggle of the Prospector, and a caret + count pill + compact tooltip would turn its 12 variants into a bar-only API. The 40px height is the documented `toolbar` step of `control-height()` (not a DS step yet), shared with `DsFilterChip` and `DsInput size="toolbar"` through `assets/css/toolbar.scss`.
|
|
5254
|
+
|
|
5255
|
+
### Props
|
|
5256
|
+
|
|
5257
|
+
| Prop | Type | Default | Description |
|
|
5258
|
+
| ------------------ | ---------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
5259
|
+
| `label` | `string` | — | The visible text (required, app copy). In `compact` it is not drawn and becomes the accessible name. |
|
|
5260
|
+
| `icon` | `string` | `''` | Material Symbols name of the leading glyph (18px). The `icon` slot replaces it. Empty and no slot = no icon. |
|
|
5261
|
+
| `variant` | `'outline' \| 'primary'` | `'outline'` | `outline`: white with the hairline ring. `primary`: accent fill, white text, hover `accent-shadow` (Export). |
|
|
5262
|
+
| `caret` | `boolean` | `false` | A trailing `keyboard_arrow_down`, for a button that opens a menu. |
|
|
5263
|
+
| `applied` | `boolean` | `false` | Its filter or sort is in effect: `accent-bg` fill, `accent-mid` border, `accent-shadow` text; hover fills `accent-mid`. Wins over the open tint. |
|
|
5264
|
+
| `open` | `boolean` | `undefined` | Whether the panel it opens is showing. Left out = a plain action (no `aria-expanded`, no `aria-haspopup`). Passed, even `false` = a disclosure of a `dialog`. Open = `slate-tint` fill and no tooltip. |
|
|
5265
|
+
| `compact` | `boolean` | `false` | Icon (+ caret / count) only: the label is not drawn, `aria-label` carries it and a tooltip names the button. |
|
|
5266
|
+
| `count` | `number` | `0` | A 20px accent pill (white 12/700) with the number of filters in effect. Zero draws nothing. |
|
|
5267
|
+
| `tooltip` | `string` | `''` | The tooltip text. In `compact` it falls back to the label. A full button has no tooltip: it would repeat the label. |
|
|
5268
|
+
| `tooltipAlways` | `boolean` | `false` | Keep the tooltip on a full button too, for text that adds information (an export's progress, why it is disabled). |
|
|
5269
|
+
| `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Side where the tooltip opens. It is teleported, so a clipping toolbar does not cut it. |
|
|
5270
|
+
| `ariaLabel` | `string` | `''` | Accessible name when it must differ from the label («Filters (3)», where the pill is the only trace of the count in compact). |
|
|
5271
|
+
| `labelMaxWidth` | `number \| string` | `null` | Max width of the label before it ellipsizes (a number is px), e.g. 150 for the phone list selector. |
|
|
5272
|
+
| `disabled` | `boolean` | `false` | `disabled` + `aria-disabled`, 55% opacity, no `click`. |
|
|
5273
|
+
|
|
5274
|
+
Attributes you pass (`class`, `style`, `data-*`, `id`) land on the `<button>`, not on the tooltip wrapper.
|
|
5275
|
+
|
|
5276
|
+
### Events
|
|
5277
|
+
|
|
5278
|
+
| Event | Payload | When |
|
|
5279
|
+
| ------- | ------------ | --------------------------------------------------------------------- |
|
|
5280
|
+
| `click` | `MouseEvent` | The button was activated (mouse, Enter, Space). Not while `disabled`. |
|
|
5281
|
+
|
|
5282
|
+
### Slots
|
|
5283
|
+
|
|
5284
|
+
| Slot | Description |
|
|
5285
|
+
| ------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
5286
|
+
| `icon` | Replaces the leading glyph, e.g. the progress ring of a running export. Put it at 18px; `currentColor` follows the text. |
|
|
5287
|
+
|
|
5288
|
+
### Behaviour
|
|
5289
|
+
|
|
5290
|
+
- Tooltips are hidden while the button's own panel is open, and only exist in `compact` unless `tooltipAlways` is on.
|
|
5291
|
+
- Keyboard focus draws a 2px accent ring 2px off the box.
|
|
5292
|
+
- Inside a `DsPopover` `#trigger` slot the click bubbles to the popover, so no extra wiring is needed; pass `:open` to show the open state.
|
|
5293
|
+
|
|
5294
|
+
### Accessibility
|
|
5295
|
+
|
|
5296
|
+
- Compact and icon-only buttons are named by `aria-label`; `label` is required for that reason.
|
|
5297
|
+
- `open` maps to `aria-expanded` with `aria-haspopup="dialog"` (the `DsPopover` panel is a dialog).
|