@salesql/sql_components_vue3 3.30.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/shadowDom.d.ts +2 -0
- package/dist/constants/events.d.ts +18 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.es.js +5051 -3978
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAccountMenu/DsAccountMenu.types.d.ts +94 -0
- package/dist/ui/DsAccountMenu/DsAccountMenu.vue.d.ts +136 -0
- package/dist/ui/DsAccountMenu/index.d.ts +2 -0
- package/dist/ui/DsAccountMenu/providerLogos.d.ts +10 -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/DsPanelHeader/DsPanelHeader.types.d.ts +3 -3
- package/dist/ui/DsPanelHeader/DsPanelHeader.vue.d.ts +18 -7
- package/dist/ui/DsPanelHeader/panelHeaderContext.d.ts +5 -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 +410 -62
- package/llms.txt +9 -1
- package/package.json +1 -1
- package/src/icons/manifest.json +18 -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.32.0)
|
|
2
2
|
|
|
3
3
|
> Librería de componentes Vue 3 (SalesQL) Presentational-only Vue 3 components (props in, events out; the consuming app owns state, i18n and data). This file is auto-generated from the component stories for LLM/agent consumption — do not edit by hand.
|
|
4
4
|
|
|
@@ -48,7 +48,7 @@ app.provide(DS_TELEPORT_TARGET, overlayLayer); // an element inside the shadow r
|
|
|
48
48
|
|
|
49
49
|
Browsers ignore `@font-face` declared inside a shadow root: register the fonts on the page document.
|
|
50
50
|
|
|
51
|
-
## Components (
|
|
51
|
+
## Components (83)
|
|
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
|
|
@@ -88,11 +88,12 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
88
88
|
- **DsSegmentedProgressBar** (Data) — Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
89
89
|
- **DsTable** (Data) — Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|
|
90
90
|
- **DsVerificationIcon** (Data) — Status glyph for a contact data point (email/phone): verified, unverified, or newly
|
|
91
|
+
- **DsAccountMenu** (Extension panel) — The avatar at the right end of the side panel header and the account menu it opens. Goes in
|
|
91
92
|
- **DsAddToBar** (Extension panel) — The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
92
93
|
- **DsBulkBar** (Extension panel) — The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
93
94
|
- **DsContactRow** (Extension panel) — One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
94
95
|
- **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
95
|
-
- **DsPanelHeader** (Extension panel) — The top bar of the extension's
|
|
96
|
+
- **DsPanelHeader** (Extension panel) — The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
96
97
|
- **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
97
98
|
- **DsAlert** (Feedback) — Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
98
99
|
- **DsModal** (Feedback) — Dialog with an optional header (title + close button) and footer action row, vertically
|
|
@@ -125,6 +126,13 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
125
126
|
- **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
|
|
126
127
|
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
127
128
|
- **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
129
|
+
- **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
|
+
- **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
|
+
- **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.…
|
|
132
|
+
- **DsMenuEmpty** (Toolbar) — The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a…
|
|
133
|
+
- **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…
|
|
134
|
+
- **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…
|
|
135
|
+
- **DsToolbarButton** (Toolbar) — A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant,…
|
|
128
136
|
|
|
129
137
|
---
|
|
130
138
|
<!-- DsCompanyCard · Company -->
|
|
@@ -2576,6 +2584,111 @@ found. **Presentational only**: no events, its state is derived entirely from th
|
|
|
2576
2584
|
|
|
2577
2585
|
---
|
|
2578
2586
|
|
|
2587
|
+
<!-- DsAccountMenu · Extension panel -->
|
|
2588
|
+
|
|
2589
|
+
## DsAccountMenu
|
|
2590
|
+
|
|
2591
|
+
The avatar at the right end of the side panel header and the account menu it opens. Goes in
|
|
2592
|
+
`DsPanelHeader`'s `account` slot. **Presentational only**: every row emits its own event and
|
|
2593
|
+
the app opens the tab, the sheet or the provider's sign-in. Every action closes the menu and
|
|
2594
|
+
returns focus to the avatar.
|
|
2595
|
+
|
|
2596
|
+
Order, as the design: user (36px avatar, name, plan chip, email) · Credits (available, meter,
|
|
2597
|
+
«{used} of {total} used», «Resets {date}», never «Renews»; without a total only the available and
|
|
2598
|
+
the reset) · Get started · Mailboxes · Bulk save
|
|
2599
|
+
from LinkedIn URLs · LinkedIn accounts · Language · Help & support · What's new · Log out.
|
|
2600
|
+
The rows owned by other tickets are **off by default** and render only when their prop is set:
|
|
2601
|
+
no dead buttons.
|
|
2602
|
+
|
|
2603
|
+
### Props
|
|
2604
|
+
|
|
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`). |
|
|
2619
|
+
|
|
2620
|
+
#### Credits
|
|
2621
|
+
|
|
2622
|
+
`{ used?: number; total?: number | null; available?: number; resetsOn?: string }`.
|
|
2623
|
+
|
|
2624
|
+
- «N available» is `available` when given (it wins, even above `total`: 1,200 of a 1,000 plan
|
|
2625
|
+
shows 1,200), else `total − used`, never below 0.
|
|
2626
|
+
- With a `total` (above 0): the meter (`used / total`, clipped to 0–100%) and «{used} of {total}
|
|
2627
|
+
used». `total` `null`, `0` or omitted = unknown: no meter and no «… used», only «N available».
|
|
2628
|
+
- `resetsOn` is already formatted by the app («Dec 1»): «Resets Dec 1». Empty = no reset text.
|
|
2629
|
+
|
|
2630
|
+
#### Mailboxes
|
|
2631
|
+
|
|
2632
|
+
`{ id, email, provider: 'google' | 'microsoft', needsReconnect? }`. The app maps the backend
|
|
2633
|
+
statuses: anything that is not sending (disconnected, disabled, error) is `needsReconnect` and
|
|
2634
|
+
shows the amber «Reconnect» pill (tooltip «Disconnected · campaigns are paused»). The title
|
|
2635
|
+
reads «Mailboxes · N connected», N = mailboxes without `needsReconnect`; with none, only
|
|
2636
|
+
«Mailboxes». The provider logo is the brand mark only, no name; a provider without a logo falls
|
|
2637
|
+
back to the `mail` icon. No per-mailbox Disconnect.
|
|
2638
|
+
|
|
2639
|
+
### Events
|
|
2640
|
+
|
|
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.
|
|
2644
|
+
|
|
2645
|
+
### Behaviour
|
|
2646
|
+
|
|
2647
|
+
- `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
|
|
2648
|
+
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).
|
|
2651
|
+
- Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
|
|
2652
|
+
|
|
2653
|
+
### Accessibility
|
|
2654
|
+
|
|
2655
|
+
- Trigger: `<button>` with `aria-label` (`copy.menu`), `aria-haspopup="menu"`, `aria-expanded`;
|
|
2656
|
+
tooltip `copy.triggerTooltip`, off while open. ArrowDown opens it.
|
|
2657
|
+
- The user and credits blocks sit above the `role="menu"`; the credits meter is a `progressbar`.
|
|
2658
|
+
- Rows are `menuitem`s with roving focus (`useMenuKeyboard`): arrows wrap, Home / End, Escape and
|
|
2659
|
+
Tab close and return focus to the avatar. Opening focuses the first row. The panel itself is
|
|
2660
|
+
focusable (`tabindex="-1"`) and holds the key handler, so a click on the user or credits block
|
|
2661
|
+
keeps arrows and Tab working. A focused row removed while open (a mailbox refresh drops its
|
|
2662
|
+
«Reconnect» pill) hands focus to the row now in its place, or the last one, never `<body>`.
|
|
2663
|
+
- Mailboxes are a `group` named «Mailboxes · N connected». A connected mailbox is an
|
|
2664
|
+
`aria-disabled` `menuitem` named «{email}, connected» (`copy.mailboxConnectedLabel`), so arrows
|
|
2665
|
+
and screen readers reach it; on a disconnected one the `menuitem` is «Reconnect {email}».
|
|
2666
|
+
|
|
2667
|
+
### Design parity (canvas «Header-menu-uso» L402-494, «Onboarding» L581-612)
|
|
2668
|
+
|
|
2669
|
+
Composition, order and grouping follow the design. Sizes and colours follow the DS:
|
|
2670
|
+
|
|
2671
|
+
- New tokens: `amber-*` (Reconnect pill), `gradient-credits`, `scrim`; avatar ring
|
|
2672
|
+
`border-width-ring` (2px), name/email gap `spacing(0.25)` (2px), plan chip
|
|
2673
|
+
`chip-height('small')` (18px) with `letter-spacing-wide` (0.3px, also the initials), unread dot
|
|
2674
|
+
`dot-size('small')` (7px).
|
|
2675
|
+
- Type snaps to the DS scale: 12.5 → 13 (`small`), 11.5 → 12 (`caption`), 10.5/9.5 → 10
|
|
2676
|
+
(`micro`); weight 800 → 700, initials 900 (DsAvatar).
|
|
2677
|
+
- Secondary text `#888F97` → `slate-soft` (AA); icons keep `slate-muted`.
|
|
2678
|
+
- Gaps 9 → 8px; text inset 24px; meter margins 9/7 → 8px; Reconnect pill 22 → 24px tall.
|
|
2679
|
+
- Plan chip side padding 7 → 6px (`spacing(0.75)`).
|
|
2680
|
+
- Credits track `#E5E7EB` → `grey-2` (`#E4E7EB`); meter fill transition .3s → 0.2s (motion
|
|
2681
|
+
`duration-default`).
|
|
2682
|
+
- Menu chrome is `DsPopover`'s (6px radius, `shadow-dropdown`, fade) instead of 8px, the
|
|
2683
|
+
design's `0 8px 28px` shadow and its slide-in.
|
|
2684
|
+
- Icons are `DsIcon` outlined at 16 (15 and 13 move to 16), unfilled.
|
|
2685
|
+
- «Mailboxes · N connected» counts enabled mailboxes only (Diego, 2026-11-19); the design counts
|
|
2686
|
+
every mailbox.
|
|
2687
|
+
- The LinkedIn «in» square takes the DS radius (`radius-control`, 4px) instead of the design's 3px.
|
|
2688
|
+
- Capped to the room below the header, the menu scrolls with its bar hidden, as the design.
|
|
2689
|
+
|
|
2690
|
+
---
|
|
2691
|
+
|
|
2579
2692
|
<!-- DsAddToBar · Extension panel -->
|
|
2580
2693
|
|
|
2581
2694
|
## DsAddToBar
|
|
@@ -2838,64 +2951,55 @@ Logged deltas:
|
|
|
2838
2951
|
|
|
2839
2952
|
## DsPanelHeader
|
|
2840
2953
|
|
|
2841
|
-
The top bar of the extension's
|
|
2842
|
-
|
|
2843
|
-
|
|
2954
|
+
The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
2955
|
+
right, the cluster of the design in its order: the `usage` slot, the built-in «Open SalesQL»
|
|
2956
|
+
icon button and the `account` slot. **Presentational only**: it reports `open` and the app
|
|
2957
|
+
decides what happens.
|
|
2844
2958
|
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
`overflow: clip` and, inside a browser extension, mount in the app's `DS_TELEPORT_TARGET`
|
|
2848
|
-
(its shadow root).
|
|
2959
|
+
No minimize button: the side panel is Chrome's and closes from Chrome's own chrome (removed in
|
|
2960
|
+
this version, with the `minimizeLabel` prop and the `minimize` event).
|
|
2849
2961
|
|
|
2850
2962
|
### Props
|
|
2851
2963
|
|
|
2852
|
-
| Prop
|
|
2853
|
-
|
|
|
2854
|
-
| `logoLabel`
|
|
2855
|
-
| `openLabel`
|
|
2856
|
-
| `
|
|
2964
|
+
| Prop | Type | Default | Description |
|
|
2965
|
+
| ------------- | -------- | ------- | ------------------------------------------------------------------------- |
|
|
2966
|
+
| `logoLabel` | `string` | `''` | Accessible name of the logo («SalesQL»). Empty = decorative. App copy. |
|
|
2967
|
+
| `openLabel` | `string` | — | «Open SalesQL dashboard»: the button's `aria-label` (required). App copy. |
|
|
2968
|
+
| `openTooltip` | `string` | `''` | «Open SalesQL»: a shorter tooltip than the label. Empty = `openLabel`. |
|
|
2857
2969
|
|
|
2858
2970
|
### Events
|
|
2859
2971
|
|
|
2860
|
-
| Event
|
|
2861
|
-
|
|
|
2862
|
-
| `open`
|
|
2863
|
-
| `minimize` | none | «Minimize» was clicked or activated from the keyboard. |
|
|
2972
|
+
| Event | Payload | When |
|
|
2973
|
+
| ------ | ------- | ---------------------------------------------------------- |
|
|
2974
|
+
| `open` | none | «Open SalesQL» was clicked or activated from the keyboard. |
|
|
2864
2975
|
|
|
2865
2976
|
### Slots
|
|
2866
2977
|
|
|
2867
|
-
|
|
2978
|
+
| Slot | What goes there |
|
|
2979
|
+
| --------- | ------------------------------------------------------------------------------------ |
|
|
2980
|
+
| `usage` | Before «Open SalesQL»: the LinkedIn usage ring and the credits chip (their tickets). |
|
|
2981
|
+
| `account` | After it: `DsAccountMenu`. Its scrim dims only what is below this header. |
|
|
2982
|
+
|
|
2983
|
+
Empty slots render nothing (no empty wrappers), also when their content is all `v-if`'d out
|
|
2984
|
+
(e.g. `<DsAccountMenu v-if="user">` while the session loads). The cluster keeps a 4px gap; the account slot
|
|
2985
|
+
adds 2px more, as the design's avatar.
|
|
2868
2986
|
|
|
2869
2987
|
### Accessibility
|
|
2870
2988
|
|
|
2871
2989
|
- The root is a `<header>`. Inside the frame's `<section>` it is not a `banner` landmark.
|
|
2872
|
-
-
|
|
2873
|
-
- Real `<button type="button">`: Tab, Enter and Space work, and they never submit a form of the host page.
|
|
2990
|
+
- «Open SalesQL» is icon-only: `openLabel` is its `aria-label`; the glyph (`DsIcon`) is `aria-hidden`.
|
|
2874
2991
|
- Keyboard focus shows the tooltip at once and draws a 2px `accent-mid` ring on the button.
|
|
2875
|
-
- With `logoLabel` the logo is `role="img"`; without it, `aria-hidden`.
|
|
2876
|
-
|
|
2877
|
-
### When to use
|
|
2878
2992
|
|
|
2879
|
-
|
|
2880
|
-
- Not a page header or a drawer header: those have their own components (`DsDrawer`).
|
|
2993
|
+
### Design parity (canvas «Header-menu-uso», header L51-65)
|
|
2881
2994
|
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
20px left inset, actions 14px from the right edge with no gap between them, 36 × 36 buttons with a
|
|
2887
|
-
4px radius, a 20px filled glyph in `slate-main` (the export's `C.slate`, `#414C58`) and a
|
|
2888
|
-
`slate-tint` hover.
|
|
2995
|
+
52px tall (`bar-height('panel')`), white, `0 1px 0 slate-tint` below, padding `0 12px 0 20px`
|
|
2996
|
+
(logo inset `spacing(2.5)`), logo 22px, cluster gap 4px, avatar 2px further (`spacing(0.25)`),
|
|
2997
|
+
«Open SalesQL» 32 × 32 (`DsButton` medium square: 4px radius, `slate-tint` hover) with a 20px
|
|
2998
|
+
`open_in_new` in `slate-soft`.
|
|
2889
2999
|
|
|
2890
3000
|
Logged deltas:
|
|
2891
3001
|
|
|
2892
|
-
-
|
|
2893
|
-
DS spacing scale has no such steps. Candidates for a DS token if another bar needs them.
|
|
2894
|
-
- **Hover transition 0.2s**, the DS `motion` default, instead of the export's `.15s`: it comes
|
|
2895
|
-
with `DsButton`.
|
|
2896
|
-
- **Real `<button>`s** with `aria-label`, instead of the export's click-handling `<span>`s.
|
|
2897
|
-
- **Keyboard focus ring** (not in the export). `DsButton` draws no focus ring of its own, so the
|
|
2898
|
-
header adds one to its two buttons.
|
|
3002
|
+
- Icon color `#5C6670` → `slate-soft` (`#5E666F`), the closest DS token.
|
|
2899
3003
|
|
|
2900
3004
|
---
|
|
2901
3005
|
|
|
@@ -3328,27 +3432,30 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3328
3432
|
|
|
3329
3433
|
### Props
|
|
3330
3434
|
|
|
3331
|
-
| Prop | Type
|
|
3332
|
-
| --------------- |
|
|
3333
|
-
| `modelValue` | `string`
|
|
3334
|
-
| `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. |
|
|
3335
|
-
| `size` | `'xs' \| 'sm' \| 'md'`
|
|
3336
|
-
| `placeholder` | `string`
|
|
3337
|
-
| `disabled` | `boolean`
|
|
3338
|
-
| `error` | `boolean`
|
|
3339
|
-
| `errorMessage` | `string`
|
|
3340
|
-
| `showErrorIcon` | `boolean`
|
|
3341
|
-
| `name` | `string`
|
|
3342
|
-
| `id` | `string`
|
|
3343
|
-
| `autocomplete` | `string`
|
|
3344
|
-
| `toggleLabel` | `string`
|
|
3345
|
-
| `min` | `number \| string`
|
|
3346
|
-
| `max` | `number \| string`
|
|
3347
|
-
| `step` | `number \| string`
|
|
3348
|
-
| `maxlength` | `number \| string`
|
|
3349
|
-
| `describedby` | `string`
|
|
3350
|
-
| `clearable` | `boolean`
|
|
3351
|
-
| `clearLabel` | `string`
|
|
3435
|
+
| Prop | Type | Default | Description |
|
|
3436
|
+
| --------------- | ------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
3437
|
+
| `modelValue` | `string` | `''` | v-model — current text value. |
|
|
3438
|
+
| `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`). |
|
|
3439
|
+
| `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. |
|
|
3440
|
+
| `placeholder` | `string` | `''` | Native placeholder text. |
|
|
3441
|
+
| `disabled` | `boolean` | `false` | Disables the control. |
|
|
3442
|
+
| `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
|
|
3443
|
+
| `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
|
|
3444
|
+
| `showErrorIcon` | `boolean` | `false` | Shows a warning icon in the suffix when `error` is true. |
|
|
3445
|
+
| `name` | `string` | `''` | Native `name` attribute. |
|
|
3446
|
+
| `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
|
|
3447
|
+
| `autocomplete` | `string` | `''` | Native `autocomplete` attribute. |
|
|
3448
|
+
| `toggleLabel` | `string` | `''` | Accessible name for the password-reveal toggle button (`type="password"` only). No label → no toggle. |
|
|
3449
|
+
| `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
|
|
3450
|
+
| `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
|
|
3451
|
+
| `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
|
|
3452
|
+
| `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
|
|
3453
|
+
| `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. |
|
|
3454
|
+
| `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. |
|
|
3455
|
+
| `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. |
|
|
3456
|
+
| `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. |
|
|
3457
|
+
| `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. |
|
|
3458
|
+
| `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. |
|
|
3352
3459
|
|
|
3353
3460
|
### Events
|
|
3354
3461
|
|
|
@@ -3361,6 +3468,14 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3361
3468
|
| `field-blur` | `FocusEvent` | Focus left the **whole** component (not just moved to the internal toggle) — the "real field exit" signal. |
|
|
3362
3469
|
| `clear` | — | The clear button was used; `update:modelValue` has already carried `''`. The focus stays in the input. |
|
|
3363
3470
|
|
|
3471
|
+
### Toolbar search
|
|
3472
|
+
|
|
3473
|
+
`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.
|
|
3474
|
+
|
|
3475
|
+
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.
|
|
3476
|
+
|
|
3477
|
+
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».
|
|
3478
|
+
|
|
3364
3479
|
### Accessibility
|
|
3365
3480
|
|
|
3366
3481
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
@@ -4715,3 +4830,236 @@ Built on the DS accent family, as `DsAlert`'s tinted look (tint fill, mid ring),
|
|
|
4715
4830
|
`DsAlert` itself: that one is a `role="alert"` banner that is announced on mount and has no
|
|
4716
4831
|
place for a link under the text. The link reads in the accent shadow, underlined: the main
|
|
4717
4832
|
accent is too faint for 14px text on the tint.
|
|
4833
|
+
|
|
4834
|
+
---
|
|
4835
|
+
|
|
4836
|
+
<!-- DsFilterChip · Toolbar -->
|
|
4837
|
+
|
|
4838
|
+
## DsFilterChip
|
|
4839
|
+
|
|
4840
|
+
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.
|
|
4841
|
+
|
|
4842
|
+
The 40px height is the documented `toolbar` step of `control-height()` (shared with `DsToolbarButton` and `DsInput size="toolbar"` through `assets/css/toolbar.scss`).
|
|
4843
|
+
|
|
4844
|
+
### Props
|
|
4845
|
+
|
|
4846
|
+
| Prop | Type | Default | Description |
|
|
4847
|
+
| ------------ | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
4848
|
+
| `label` | `string` | — | The filter's name (required, app copy). Applied, the component appends the colon: «Tags:». |
|
|
4849
|
+
| `value` | `string` | `''` | What the filter is set to. **Non-empty = applied**: accent look, value text (max 150px, ellipsis, weight 600) and the ×. Empty = idle. |
|
|
4850
|
+
| `open` | `boolean` | `false` | The menu it opens is showing: `slate-tint` fill and `aria-expanded="true"`. An applied chip keeps its look. |
|
|
4851
|
+
| `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. |
|
|
4852
|
+
| `disabled` | `boolean` | `false` | Disables the chip and its ×. |
|
|
4853
|
+
|
|
4854
|
+
Attributes you pass (`class`, `data-*`) land on the root `<span>`.
|
|
4855
|
+
|
|
4856
|
+
### Events
|
|
4857
|
+
|
|
4858
|
+
| Event | Payload | When |
|
|
4859
|
+
| ------- | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
|
|
4860
|
+
| `click` | `MouseEvent` | The chip was activated: toggle your menu. It also bubbles, so a `DsPopover` `#trigger` slot toggles on its own. |
|
|
4861
|
+
| `clear` | — | The × was activated. It stops the click, so it never emits `click` and never reaches a wrapping `DsPopover`: no menu opens. |
|
|
4862
|
+
|
|
4863
|
+
### Behaviour
|
|
4864
|
+
|
|
4865
|
+
- Two sibling `<button>`s inside the root (open and ×), never one inside the other: both are reachable with Tab and activate with Enter / Space.
|
|
4866
|
+
- Only the **value** truncates (150px); the chip grows with its label, the value and the ×.
|
|
4867
|
+
- Idle hover and the open menu take `slate-tint`; an applied chip has no hover change, the × hovers to `accent-mid`.
|
|
4868
|
+
- No tooltip on the chip or the ×. The keyboard ring is drawn around the whole chip.
|
|
4869
|
+
|
|
4870
|
+
### Accessibility
|
|
4871
|
+
|
|
4872
|
+
- The chip is a disclosure of a `dialog` (`aria-haspopup="dialog"`, `aria-expanded` follows `open`): the panel of `DsPopover`.
|
|
4873
|
+
- Its accessible name is its text («Tags: Q3 Outbound»); the × is named by `clearLabel`.
|
|
4874
|
+
|
|
4875
|
+
---
|
|
4876
|
+
|
|
4877
|
+
<!-- DsMenuBackRow · Toolbar -->
|
|
4878
|
+
|
|
4879
|
+
## DsMenuBackRow
|
|
4880
|
+
|
|
4881
|
+
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`.
|
|
4882
|
+
|
|
4883
|
+
Measures: `6px 6px 8px` padding, 6px gap, a 20px `keyboard_arrow_left`, label 14/700 with ellipsis, `slate-bg` on hover.
|
|
4884
|
+
|
|
4885
|
+
### Props
|
|
4886
|
+
|
|
4887
|
+
| Prop | Type | Default | Description |
|
|
4888
|
+
| ----------- | -------- | ------- | -------------------------------------------------------------------------------------------------- |
|
|
4889
|
+
| `label` | `string` | — | The view you are in («Tags»). Required, app copy. |
|
|
4890
|
+
| `ariaLabel` | `string` | `''` | Accessible name when the label alone is ambiguous («Back to filters»). Empty = the label names it. |
|
|
4891
|
+
|
|
4892
|
+
### Events
|
|
4893
|
+
|
|
4894
|
+
| Event | Payload | When |
|
|
4895
|
+
| ------ | ------- | -------------------------------------------- |
|
|
4896
|
+
| `back` | — | The row was activated (click, Enter, Space). |
|
|
4897
|
+
|
|
4898
|
+
### Accessibility
|
|
4899
|
+
|
|
4900
|
+
- 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.
|
|
4901
|
+
|
|
4902
|
+
---
|
|
4903
|
+
|
|
4904
|
+
<!-- DsMenuDrillRow · Toolbar -->
|
|
4905
|
+
|
|
4906
|
+
## DsMenuDrillRow
|
|
4907
|
+
|
|
4908
|
+
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.
|
|
4909
|
+
|
|
4910
|
+
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.
|
|
4911
|
+
|
|
4912
|
+
### Props
|
|
4913
|
+
|
|
4914
|
+
| Prop | Type | Default | Description |
|
|
4915
|
+
| ------------- | -------- | ------- | -------------------------------------------------------- |
|
|
4916
|
+
| `label` | `string` | — | The name (required, app copy). |
|
|
4917
|
+
| `value` | `string` | `''` | What it is set to. Non-empty = applied. |
|
|
4918
|
+
| `placeholder` | `string` | `''` | Shown, muted, while there is no value («Any»). App copy. |
|
|
4919
|
+
|
|
4920
|
+
### Events
|
|
4921
|
+
|
|
4922
|
+
| Event | Payload | When |
|
|
4923
|
+
| -------- | ------------ | -------------------------------------------- |
|
|
4924
|
+
| `select` | `MouseEvent` | The row was activated (click, Enter, Space). |
|
|
4925
|
+
|
|
4926
|
+
### Accessibility
|
|
4927
|
+
|
|
4928
|
+
- A real `<button type="button">`; its name reads the label and the value («Tags 3 tags»). The chevron is `aria-hidden`.
|
|
4929
|
+
|
|
4930
|
+
---
|
|
4931
|
+
|
|
4932
|
+
<!-- DsMenuEmpty · Toolbar -->
|
|
4933
|
+
|
|
4934
|
+
## DsMenuEmpty
|
|
4935
|
+
|
|
4936
|
+
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.
|
|
4937
|
+
|
|
4938
|
+
Measures: `10px 8px` padding, 13px `slate-soft` (the `empty` mixin of the picker family).
|
|
4939
|
+
|
|
4940
|
+
### Props
|
|
4941
|
+
|
|
4942
|
+
| Prop | Type | Default | Description |
|
|
4943
|
+
| ------- | -------- | ------- | ----------------------------------------------------- |
|
|
4944
|
+
| `label` | `string` | `''` | The message (app copy). The default slot replaces it. |
|
|
4945
|
+
|
|
4946
|
+
---
|
|
4947
|
+
|
|
4948
|
+
<!-- DsMenuOption · Toolbar -->
|
|
4949
|
+
|
|
4950
|
+
## DsMenuOption
|
|
4951
|
+
|
|
4952
|
+
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`).
|
|
4953
|
+
|
|
4954
|
+
Measures: 36px minimum height, `0 10px` padding, 10px gap, 4px radius, `slate-bg` on hover; label 14px with ellipsis; hint 13px `slate-soft`.
|
|
4955
|
+
|
|
4956
|
+
### Props
|
|
4957
|
+
|
|
4958
|
+
| Prop | Type | Default | Description |
|
|
4959
|
+
| ------------ | ----------------------- | ------------ | ------------------------------------------------------------------------------------------------------ |
|
|
4960
|
+
| `modelValue` | `boolean` | `false` | v-model: the option is selected. A radio emits `true` when chosen; the app sets the others to `false`. |
|
|
4961
|
+
| `type` | `'checkbox' \| 'radio'` | `'checkbox'` | Multi-select or single choice. |
|
|
4962
|
+
| `label` | `string` | `''` | The text (app copy). The default slot replaces it. |
|
|
4963
|
+
| `hint` | `string` | `''` | Small text at the right end (a count). Empty = none. |
|
|
4964
|
+
| `disabled` | `boolean` | `false` | Disables the control; the row loses its hover. |
|
|
4965
|
+
| `name` | `string` | `''` | Native `name`. Radios of one group must share it for arrow-key navigation. |
|
|
4966
|
+
| `value` | `string` | `''` | Native `value` of a radio. |
|
|
4967
|
+
|
|
4968
|
+
### Slots
|
|
4969
|
+
|
|
4970
|
+
| Slot | Description |
|
|
4971
|
+
| --------- | --------------------------------------------------------------------------------------- |
|
|
4972
|
+
| `leading` | Between the control and the label: a 9px dot, a 17-18px folder icon, a 22px `DsAvatar`. |
|
|
4973
|
+
| default | Replaces the label text (keep it one line; the ellipsis applies to its box). |
|
|
4974
|
+
|
|
4975
|
+
### Events
|
|
4976
|
+
|
|
4977
|
+
| Event | Payload | When |
|
|
4978
|
+
| ------------------- | --------- | -------------------------------------------------- |
|
|
4979
|
+
| `update:modelValue` | `boolean` | The row was toggled (click anywhere on it, Space). |
|
|
4980
|
+
|
|
4981
|
+
### Accessibility
|
|
4982
|
+
|
|
4983
|
+
- 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`.
|
|
4984
|
+
|
|
4985
|
+
---
|
|
4986
|
+
|
|
4987
|
+
<!-- DsMenuSectionLabel · Toolbar -->
|
|
4988
|
+
|
|
4989
|
+
## DsMenuSectionLabel
|
|
4990
|
+
|
|
4991
|
+
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.
|
|
4992
|
+
|
|
4993
|
+
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.
|
|
4994
|
+
|
|
4995
|
+
### Props
|
|
4996
|
+
|
|
4997
|
+
| Prop | Type | Default | Description |
|
|
4998
|
+
| ------------ | -------- | ------- | ----------------------------------------------------------------- |
|
|
4999
|
+
| `label` | `string` | — | The section title (required, app copy). Drawn uppercase. |
|
|
5000
|
+
| `clearLabel` | `string` | `''` | Text of the action at the right end. Empty = no action. App copy. |
|
|
5001
|
+
|
|
5002
|
+
### Events
|
|
5003
|
+
|
|
5004
|
+
| Event | Payload | When |
|
|
5005
|
+
| ------- | ------- | ----------------------------------------------- |
|
|
5006
|
+
| `clear` | — | The action was activated (click, Enter, Space). |
|
|
5007
|
+
|
|
5008
|
+
### Accessibility
|
|
5009
|
+
|
|
5010
|
+
- The action is a real `<button type="button">` named by its text.
|
|
5011
|
+
- 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.
|
|
5012
|
+
|
|
5013
|
+
---
|
|
5014
|
+
|
|
5015
|
+
<!-- DsToolbarButton · Toolbar -->
|
|
5016
|
+
|
|
5017
|
+
## DsToolbarButton
|
|
5018
|
+
|
|
5019
|
+
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`).
|
|
5020
|
+
|
|
5021
|
+
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`.
|
|
5022
|
+
|
|
5023
|
+
### Props
|
|
5024
|
+
|
|
5025
|
+
| Prop | Type | Default | Description |
|
|
5026
|
+
| ------------------ | ---------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
5027
|
+
| `label` | `string` | — | The visible text (required, app copy). In `compact` it is not drawn and becomes the accessible name. |
|
|
5028
|
+
| `icon` | `string` | `''` | Material Symbols name of the leading glyph (18px). The `icon` slot replaces it. Empty and no slot = no icon. |
|
|
5029
|
+
| `variant` | `'outline' \| 'primary'` | `'outline'` | `outline`: white with the hairline ring. `primary`: accent fill, white text, hover `accent-shadow` (Export). |
|
|
5030
|
+
| `caret` | `boolean` | `false` | A trailing `keyboard_arrow_down`, for a button that opens a menu. |
|
|
5031
|
+
| `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. |
|
|
5032
|
+
| `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. |
|
|
5033
|
+
| `compact` | `boolean` | `false` | Icon (+ caret / count) only: the label is not drawn, `aria-label` carries it and a tooltip names the button. |
|
|
5034
|
+
| `count` | `number` | `0` | A 20px accent pill (white 12/700) with the number of filters in effect. Zero draws nothing. |
|
|
5035
|
+
| `tooltip` | `string` | `''` | The tooltip text. In `compact` it falls back to the label. A full button has no tooltip: it would repeat the label. |
|
|
5036
|
+
| `tooltipAlways` | `boolean` | `false` | Keep the tooltip on a full button too, for text that adds information (an export's progress, why it is disabled). |
|
|
5037
|
+
| `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Side where the tooltip opens. It is teleported, so a clipping toolbar does not cut it. |
|
|
5038
|
+
| `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). |
|
|
5039
|
+
| `labelMaxWidth` | `number \| string` | `null` | Max width of the label before it ellipsizes (a number is px), e.g. 150 for the phone list selector. |
|
|
5040
|
+
| `disabled` | `boolean` | `false` | `disabled` + `aria-disabled`, 55% opacity, no `click`. |
|
|
5041
|
+
|
|
5042
|
+
Attributes you pass (`class`, `style`, `data-*`, `id`) land on the `<button>`, not on the tooltip wrapper.
|
|
5043
|
+
|
|
5044
|
+
### Events
|
|
5045
|
+
|
|
5046
|
+
| Event | Payload | When |
|
|
5047
|
+
| ------- | ------------ | --------------------------------------------------------------------- |
|
|
5048
|
+
| `click` | `MouseEvent` | The button was activated (mouse, Enter, Space). Not while `disabled`. |
|
|
5049
|
+
|
|
5050
|
+
### Slots
|
|
5051
|
+
|
|
5052
|
+
| Slot | Description |
|
|
5053
|
+
| ------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
5054
|
+
| `icon` | Replaces the leading glyph, e.g. the progress ring of a running export. Put it at 18px; `currentColor` follows the text. |
|
|
5055
|
+
|
|
5056
|
+
### Behaviour
|
|
5057
|
+
|
|
5058
|
+
- Tooltips are hidden while the button's own panel is open, and only exist in `compact` unless `tooltipAlways` is on.
|
|
5059
|
+
- Keyboard focus draws a 2px accent ring 2px off the box.
|
|
5060
|
+
- Inside a `DsPopover` `#trigger` slot the click bubbles to the popover, so no extra wiring is needed; pass `:open` to show the open state.
|
|
5061
|
+
|
|
5062
|
+
### Accessibility
|
|
5063
|
+
|
|
5064
|
+
- Compact and icon-only buttons are named by `aria-label`; `label` is required for that reason.
|
|
5065
|
+
- `open` maps to `aria-expanded` with `aria-haspopup="dialog"` (the `DsPopover` panel is a dialog).
|
package/llms.txt
CHANGED
|
@@ -42,11 +42,12 @@
|
|
|
42
42
|
- DsSegmentedProgressBar (Data): Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
43
43
|
- DsTable (Data): Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|
|
44
44
|
- DsVerificationIcon (Data): Status glyph for a contact data point (email/phone): verified, unverified, or newly
|
|
45
|
+
- DsAccountMenu (Extension panel): The avatar at the right end of the side panel header and the account menu it opens. Goes in
|
|
45
46
|
- DsAddToBar (Extension panel): The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
46
47
|
- DsBulkBar (Extension panel): The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
47
48
|
- DsContactRow (Extension panel): One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
48
49
|
- DsPanelFrame (Extension panel): The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
49
|
-
- DsPanelHeader (Extension panel): The top bar of the extension's
|
|
50
|
+
- DsPanelHeader (Extension panel): The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
50
51
|
- DsPanelLauncher (Extension panel): The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
51
52
|
- DsAlert (Feedback): Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
52
53
|
- DsModal (Feedback): Dialog with an optional header (title + close button) and footer action row, vertically
|
|
@@ -79,6 +80,13 @@
|
|
|
79
80
|
- DsProfileRichSections (Profile): The sections of a full profile that come from the person's own record: **Details**
|
|
80
81
|
- DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
81
82
|
- DsUpgradeNotice (Profile): The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
83
|
+
- 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;…
|
|
84
|
+
- 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**:…
|
|
85
|
+
- 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.…
|
|
86
|
+
- DsMenuEmpty (Toolbar): The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a…
|
|
87
|
+
- 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…
|
|
88
|
+
- 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…
|
|
89
|
+
- DsToolbarButton (Toolbar): A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant,…
|
|
82
90
|
|
|
83
91
|
## Full documentation
|
|
84
92
|
|