@salesql/sql_components_vue3 3.29.1 → 3.31.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/composables/useOrganizerFields.d.ts +34 -0
- package/dist/constants/events.d.ts +28 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.es.js +5225 -3847
- 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/DsInput/DsInput.vue.d.ts +32 -0
- package/dist/ui/DsListRow/DsListRow.types.d.ts +19 -0
- package/dist/ui/DsListRow/DsListRow.vue.d.ts +78 -0
- package/dist/ui/DsListRow/index.d.ts +2 -0
- package/dist/ui/DsListRowAction/DsListRowAction.types.d.ts +25 -0
- package/dist/ui/DsListRowAction/DsListRowAction.vue.d.ts +68 -0
- package/dist/ui/DsListRowAction/index.d.ts +2 -0
- package/dist/ui/DsOrganizerDialog/DsOrganizerDialog.types.d.ts +41 -0
- package/dist/ui/DsOrganizerDialog/DsOrganizerDialog.vue.d.ts +182 -0
- package/dist/ui/DsOrganizerDialog/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/DsPickerRowActions/DsPickerRowActions.types.d.ts +30 -1
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +90 -2
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +1 -1
- package/dist/ui/DsSelect/DsSelect.vue.d.ts +1 -1
- package/dist/ui/DsSidePanel/DsSidePanel.types.d.ts +24 -0
- package/dist/ui/DsSidePanel/DsSidePanel.vue.d.ts +109 -0
- package/dist/ui/DsSidePanel/index.d.ts +2 -0
- package/llms-full.txt +414 -41
- package/llms.txt +7 -1
- package/package.json +1 -1
- package/src/icons/manifest.json +30 -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.31.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 (76)
|
|
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
|
|
@@ -63,6 +63,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
63
63
|
- **DsMaskedValue** (Contact data) — An email or phone string with the contract's two-tone treatment when the **server** masked
|
|
64
64
|
- **DsMoreCountChip** (Contact data) — The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
|
|
65
65
|
- **DsOrganizerForm** (Contact data) — The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
|
|
66
|
+
- **DsPickerRowActions** (Contact data) — The ⋮ button of a list row and the menu it opens: **Edit**, **Favorite**, **Copy link** and
|
|
66
67
|
- **DsProfileGroupBar** (Contact data) — The band that names one contact-data type inside a profile card — «Work email», «Direct
|
|
67
68
|
- **DsSavedButton** (Contact data) — **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
|
|
68
69
|
- **DsTagPicker** (Contact data) — The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
|
|
@@ -87,11 +88,12 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
87
88
|
- **DsSegmentedProgressBar** (Data) — Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
88
89
|
- **DsTable** (Data) — Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|
|
89
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
|
|
90
92
|
- **DsAddToBar** (Extension panel) — The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
91
93
|
- **DsBulkBar** (Extension panel) — The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
92
94
|
- **DsContactRow** (Extension panel) — One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
93
95
|
- **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
94
|
-
- **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
|
|
95
97
|
- **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
96
98
|
- **DsAlert** (Feedback) — Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
97
99
|
- **DsModal** (Feedback) — Dialog with an optional header (title + close button) and footer action row, vertically
|
|
@@ -107,9 +109,13 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
107
109
|
- **DsSelect** (Forms) — Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
108
110
|
- **DsSwitch** (Forms) — On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
109
111
|
- **DsTextarea** (Forms) — Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|
|
112
|
+
- **DsListRow** (Navigation) — A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
113
|
+
- **DsListRowAction** (Navigation) — The small icon button of a list row (star toggle, ⋮) or of a page header: 26×26, no fill at rest, a
|
|
110
114
|
- **DsMenuItem** (Navigation) — Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
115
|
+
- **DsSidePanel** (Navigation) — A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
111
116
|
- **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
112
117
|
- **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
118
|
+
- **DsOrganizerDialog** (Overlays) — The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
113
119
|
- **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
114
120
|
- **DsFullProfile** (Profile) — The body of a full profile, shared by the prospector's drawer and the extension's panel: the
|
|
115
121
|
- **DsProfileActionBar** (Profile) — The action area of a full profile — the design export's `ActionBar`.
|
|
@@ -1138,6 +1144,65 @@ itself and never persists anything — `submit` hands you `{ name, color }` (nam
|
|
|
1138
1144
|
|
|
1139
1145
|
---
|
|
1140
1146
|
|
|
1147
|
+
<!-- DsPickerRowActions · Contact data -->
|
|
1148
|
+
|
|
1149
|
+
## DsPickerRowActions
|
|
1150
|
+
|
|
1151
|
+
The ⋮ button of a list row and the menu it opens: **Edit**, **Favorite**, **Copy link** and
|
|
1152
|
+
**Delete**. `DsSavedButton` / `DsTagPicker` use it inside their pickers; the contact list's «Lists»
|
|
1153
|
+
panel uses it on its folder rows and in its page header. **Presentational only**: every item emits
|
|
1154
|
+
an event with the row's `option` and the app does the work.
|
|
1155
|
+
|
|
1156
|
+
### Props
|
|
1157
|
+
|
|
1158
|
+
| Prop | Type | Default | Description |
|
|
1159
|
+
| -------------------------- | ---------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1160
|
+
| `option` | `DsPickerOption` | — | The row's option (required). It is the payload of every event. Its `deleteDisabled` blocks Delete and shows why; `deleting` keeps the menu open in loading. |
|
|
1161
|
+
| `actionsLabel` | `string` | `'Actions'` | Accessible name of the ⋮ button and of the menu. |
|
|
1162
|
+
| `editLabel` | `string` | `'Edit'` | |
|
|
1163
|
+
| `showEdit` | `boolean` | `true` | Show the Edit item. |
|
|
1164
|
+
| `showFavorite` | `boolean` | `false` | Show the Favorite item (icon `star`), between Edit and Copy link. |
|
|
1165
|
+
| `favorited` | `boolean` | `false` | The row is a favorite: the item reads `unfavoriteLabel` and the star is filled instead of outlined. |
|
|
1166
|
+
| `favoriteLabel` | `string` | `'Favorite'` | |
|
|
1167
|
+
| `unfavoriteLabel` | `string` | `'Unfavorite'` | |
|
|
1168
|
+
| `showCopyLink` | `boolean` | `false` | Show the Copy link item (icon `link`), after Favorite. |
|
|
1169
|
+
| `copyLinkLabel` | `string` | `'Copy link'` | |
|
|
1170
|
+
| `deleteLabel` | `string` | `'Delete'` | |
|
|
1171
|
+
| `deleteConfirmLabel` | `string` | `'Are you sure?'` | First click on Delete turns the row into this… |
|
|
1172
|
+
| `deleteConfirmActionLabel` | `string` | `'Yes, delete'` | … and this, which emits `delete`. |
|
|
1173
|
+
| `menuWidth` | `string` | `'150px'` | Width of the menu panel (any CSS length). The contact list uses `230px`. |
|
|
1174
|
+
|
|
1175
|
+
### Events
|
|
1176
|
+
|
|
1177
|
+
| Event | Payload | When |
|
|
1178
|
+
| ----------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1179
|
+
| `open` | `DsPickerOption` | The menu opened. Check what Delete needs (does the folder have contacts?) and update `option.deleteDisabled`. |
|
|
1180
|
+
| `close` | `DsPickerOption` | The menu closed, by any path: second click on the ⋮, Escape, click outside, an item chosen, another row's menu opening, or the row unmounting while open. |
|
|
1181
|
+
| `edit` | `DsPickerOption` | Edit chosen. The menu closes. |
|
|
1182
|
+
| `favorite` | `DsPickerOption` | Favorite / Unfavorite chosen. The menu closes; the app decides which way the toggle goes. |
|
|
1183
|
+
| `copy-link` | `DsPickerOption` | Copy link chosen. The menu closes. |
|
|
1184
|
+
| `delete` | `DsPickerOption` | The confirmation («Yes, delete») was used. |
|
|
1185
|
+
|
|
1186
|
+
### Slots
|
|
1187
|
+
|
|
1188
|
+
| Slot | Scope | Description |
|
|
1189
|
+
| --------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1190
|
+
| `trigger` | `{ open, label, triggerAttrs }` | Replaces the ⋮ button, for a header or a custom icon button. `v-bind="triggerAttrs"` gives it `aria-haspopup="menu"`, `aria-expanded` and `aria-label` (`label`); `open` is there for a held look. A click on it toggles the menu; Escape gives the focus back to its first focusable. |
|
|
1191
|
+
|
|
1192
|
+
### Behaviour
|
|
1193
|
+
|
|
1194
|
+
- Order: Edit, Favorite, Copy link, a divider, Delete. The divider renders only when Favorite or Copy link is on, so a menu with Edit and Delete alone looks as it always did.
|
|
1195
|
+
- **Delete blocked**: `option.deleteDisabled = { hint, tooltip? }` shows the item disabled with the `hint` after the label and the `tooltip` on hover (the item is `aria-disabled`, not `disabled`, so the pointer reaches the tooltip and the keyboard reaches the item). An **empty `hint` with no `tooltip`** blocks Delete with no text at all: use it while the app is still checking, then update the option when it knows.
|
|
1196
|
+
- **Delete confirmation** happens inside the menu; `deleting` on the option keeps the menu open with a spinner until the app answers.
|
|
1197
|
+
- Only one row's menu is open at a time. The menu is teleported, so a scrolling list does not clip it.
|
|
1198
|
+
- Keyboard: the first item takes the focus on open; arrows, Home and End move; Escape and Tab close and give the focus back to the trigger.
|
|
1199
|
+
|
|
1200
|
+
### When to use
|
|
1201
|
+
|
|
1202
|
+
- The per-row actions of folders and tags. For a generic list of actions use `DsActionMenu`.
|
|
1203
|
+
|
|
1204
|
+
---
|
|
1205
|
+
|
|
1141
1206
|
<!-- DsProfileGroupBar · Contact data -->
|
|
1142
1207
|
|
|
1143
1208
|
## DsProfileGroupBar
|
|
@@ -2512,6 +2577,111 @@ found. **Presentational only**: no events, its state is derived entirely from th
|
|
|
2512
2577
|
|
|
2513
2578
|
---
|
|
2514
2579
|
|
|
2580
|
+
<!-- DsAccountMenu · Extension panel -->
|
|
2581
|
+
|
|
2582
|
+
## DsAccountMenu
|
|
2583
|
+
|
|
2584
|
+
The avatar at the right end of the side panel header and the account menu it opens. Goes in
|
|
2585
|
+
`DsPanelHeader`'s `account` slot. **Presentational only**: every row emits its own event and
|
|
2586
|
+
the app opens the tab, the sheet or the provider's sign-in. Every action closes the menu and
|
|
2587
|
+
returns focus to the avatar.
|
|
2588
|
+
|
|
2589
|
+
Order, as the design: user (36px avatar, name, plan chip, email) · Credits (available, meter,
|
|
2590
|
+
«{used} of {total} used», «Resets {date}», never «Renews»; without a total only the available and
|
|
2591
|
+
the reset) · Get started · Mailboxes · Bulk save
|
|
2592
|
+
from LinkedIn URLs · LinkedIn accounts · Language · Help & support · What's new · Log out.
|
|
2593
|
+
The rows owned by other tickets are **off by default** and render only when their prop is set:
|
|
2594
|
+
no dead buttons.
|
|
2595
|
+
|
|
2596
|
+
### Props
|
|
2597
|
+
|
|
2598
|
+
| Prop | Type | Default | Description |
|
|
2599
|
+
| ---------------------- | -------------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
|
|
2600
|
+
| `open` | `boolean` | `undefined` | `v-model:open`. Omitted = the menu manages itself. Bind it to keep one popover open at a time. |
|
|
2601
|
+
| `user` | `DsAccountMenuUser` | — | `{ name, email, initials?, plan? }`. No `initials` = first letters of the name. |
|
|
2602
|
+
| `credits` | `DsAccountMenuCredits \| null` | `null` | `{ used?, total?, available?, resetsOn? }`. See below. `null` = no block. |
|
|
2603
|
+
| `mailboxes` | `DsAccountMenuMailbox[] \| null` | `null` | `null` = no campaigns access (no block). `[]` = «Connect a mailbox». See below. |
|
|
2604
|
+
| `getStarted` | `{ done, total } \| null` | `null` | «Get started · n of total», while the onboarding checklist is hidden. |
|
|
2605
|
+
| `showBulkSave` | `boolean` | `false` | «Bulk save from LinkedIn URLs». |
|
|
2606
|
+
| `showLinkedinAccounts` | `boolean` | `false` | «LinkedIn accounts» (opens in a new tab: trailing `open_in_new`). |
|
|
2607
|
+
| `language` | `string` | `''` | Current language's name; non-empty shows the Language row with it on the right. |
|
|
2608
|
+
| `showHelp` | `boolean` | `false` | «Help & support». |
|
|
2609
|
+
| `showWhatsNew` | `boolean` | `false` | «What's new». |
|
|
2610
|
+
| `whatsNewUnread` | `number` | `0` | Above 0, an unread dot (accessible name from `copy.whatsNewUnread`). |
|
|
2611
|
+
| `copy` | `Partial<DsAccountMenuCopy>` | English | Every string; a partial overrides only its keys (`DS_ACCOUNT_MENU_COPY`). |
|
|
2612
|
+
|
|
2613
|
+
#### Credits
|
|
2614
|
+
|
|
2615
|
+
`{ used?: number; total?: number | null; available?: number; resetsOn?: string }`.
|
|
2616
|
+
|
|
2617
|
+
- «N available» is `available` when given (it wins, even above `total`: 1,200 of a 1,000 plan
|
|
2618
|
+
shows 1,200), else `total − used`, never below 0.
|
|
2619
|
+
- With a `total` (above 0): the meter (`used / total`, clipped to 0–100%) and «{used} of {total}
|
|
2620
|
+
used». `total` `null`, `0` or omitted = unknown: no meter and no «… used», only «N available».
|
|
2621
|
+
- `resetsOn` is already formatted by the app («Dec 1»): «Resets Dec 1». Empty = no reset text.
|
|
2622
|
+
|
|
2623
|
+
#### Mailboxes
|
|
2624
|
+
|
|
2625
|
+
`{ id, email, provider: 'google' | 'microsoft', needsReconnect? }`. The app maps the backend
|
|
2626
|
+
statuses: anything that is not sending (disconnected, disabled, error) is `needsReconnect` and
|
|
2627
|
+
shows the amber «Reconnect» pill (tooltip «Disconnected · campaigns are paused»). The title
|
|
2628
|
+
reads «Mailboxes · N connected», N = mailboxes without `needsReconnect`; with none, only
|
|
2629
|
+
«Mailboxes». The provider logo is the brand mark only, no name; a provider without a logo falls
|
|
2630
|
+
back to the `mail` icon. No per-mailbox Disconnect.
|
|
2631
|
+
|
|
2632
|
+
### Events
|
|
2633
|
+
|
|
2634
|
+
`update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `get-started` · `bulk-save` ·
|
|
2635
|
+
`linkedin-accounts` · `language` · `help` · `whats-new` · `logout`. All but `update:open` and
|
|
2636
|
+
`reconnect` carry no payload.
|
|
2637
|
+
|
|
2638
|
+
### Behaviour
|
|
2639
|
+
|
|
2640
|
+
- `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
|
|
2641
|
+
below it, kept 8px inside the viewport and capped to the room below (side panel height − 54).
|
|
2642
|
+
- A click anywhere outside closes it; the click-catching layer covers the header too, so the
|
|
2643
|
+
first click on another header control only closes this menu (one popover at a time).
|
|
2644
|
+
- Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
|
|
2645
|
+
|
|
2646
|
+
### Accessibility
|
|
2647
|
+
|
|
2648
|
+
- Trigger: `<button>` with `aria-label` (`copy.menu`), `aria-haspopup="menu"`, `aria-expanded`;
|
|
2649
|
+
tooltip `copy.triggerTooltip`, off while open. ArrowDown opens it.
|
|
2650
|
+
- The user and credits blocks sit above the `role="menu"`; the credits meter is a `progressbar`.
|
|
2651
|
+
- Rows are `menuitem`s with roving focus (`useMenuKeyboard`): arrows wrap, Home / End, Escape and
|
|
2652
|
+
Tab close and return focus to the avatar. Opening focuses the first row. The panel itself is
|
|
2653
|
+
focusable (`tabindex="-1"`) and holds the key handler, so a click on the user or credits block
|
|
2654
|
+
keeps arrows and Tab working. A focused row removed while open (a mailbox refresh drops its
|
|
2655
|
+
«Reconnect» pill) hands focus to the row now in its place, or the last one, never `<body>`.
|
|
2656
|
+
- Mailboxes are a `group` named «Mailboxes · N connected». A connected mailbox is an
|
|
2657
|
+
`aria-disabled` `menuitem` named «{email}, connected» (`copy.mailboxConnectedLabel`), so arrows
|
|
2658
|
+
and screen readers reach it; on a disconnected one the `menuitem` is «Reconnect {email}».
|
|
2659
|
+
|
|
2660
|
+
### Design parity (canvas «Header-menu-uso» L402-494, «Onboarding» L581-612)
|
|
2661
|
+
|
|
2662
|
+
Composition, order and grouping follow the design. Sizes and colours follow the DS:
|
|
2663
|
+
|
|
2664
|
+
- New tokens: `amber-*` (Reconnect pill), `gradient-credits`, `scrim`; avatar ring
|
|
2665
|
+
`border-width-ring` (2px), name/email gap `spacing(0.25)` (2px), plan chip
|
|
2666
|
+
`chip-height('small')` (18px) with `letter-spacing-wide` (0.3px, also the initials), unread dot
|
|
2667
|
+
`dot-size('small')` (7px).
|
|
2668
|
+
- Type snaps to the DS scale: 12.5 → 13 (`small`), 11.5 → 12 (`caption`), 10.5/9.5 → 10
|
|
2669
|
+
(`micro`); weight 800 → 700, initials 900 (DsAvatar).
|
|
2670
|
+
- Secondary text `#888F97` → `slate-soft` (AA); icons keep `slate-muted`.
|
|
2671
|
+
- Gaps 9 → 8px; text inset 24px; meter margins 9/7 → 8px; Reconnect pill 22 → 24px tall.
|
|
2672
|
+
- Plan chip side padding 7 → 6px (`spacing(0.75)`).
|
|
2673
|
+
- Credits track `#E5E7EB` → `grey-2` (`#E4E7EB`); meter fill transition .3s → 0.2s (motion
|
|
2674
|
+
`duration-default`).
|
|
2675
|
+
- Menu chrome is `DsPopover`'s (6px radius, `shadow-dropdown`, fade) instead of 8px, the
|
|
2676
|
+
design's `0 8px 28px` shadow and its slide-in.
|
|
2677
|
+
- Icons are `DsIcon` outlined at 16 (15 and 13 move to 16), unfilled.
|
|
2678
|
+
- «Mailboxes · N connected» counts enabled mailboxes only (Diego, 2026-11-19); the design counts
|
|
2679
|
+
every mailbox.
|
|
2680
|
+
- The LinkedIn «in» square takes the DS radius (`radius-control`, 4px) instead of the design's 3px.
|
|
2681
|
+
- Capped to the room below the header, the menu scrolls with its bar hidden, as the design.
|
|
2682
|
+
|
|
2683
|
+
---
|
|
2684
|
+
|
|
2515
2685
|
<!-- DsAddToBar · Extension panel -->
|
|
2516
2686
|
|
|
2517
2687
|
## DsAddToBar
|
|
@@ -2774,64 +2944,55 @@ Logged deltas:
|
|
|
2774
2944
|
|
|
2775
2945
|
## DsPanelHeader
|
|
2776
2946
|
|
|
2777
|
-
The top bar of the extension's
|
|
2778
|
-
|
|
2779
|
-
|
|
2947
|
+
The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
2948
|
+
right, the cluster of the design in its order: the `usage` slot, the built-in «Open SalesQL»
|
|
2949
|
+
icon button and the `account` slot. **Presentational only**: it reports `open` and the app
|
|
2950
|
+
decides what happens.
|
|
2780
2951
|
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
`overflow: clip` and, inside a browser extension, mount in the app's `DS_TELEPORT_TARGET`
|
|
2784
|
-
(its shadow root).
|
|
2952
|
+
No minimize button: the side panel is Chrome's and closes from Chrome's own chrome (removed in
|
|
2953
|
+
this version, with the `minimizeLabel` prop and the `minimize` event).
|
|
2785
2954
|
|
|
2786
2955
|
### Props
|
|
2787
2956
|
|
|
2788
|
-
| Prop
|
|
2789
|
-
|
|
|
2790
|
-
| `logoLabel`
|
|
2791
|
-
| `openLabel`
|
|
2792
|
-
| `
|
|
2957
|
+
| Prop | Type | Default | Description |
|
|
2958
|
+
| ------------- | -------- | ------- | ------------------------------------------------------------------------- |
|
|
2959
|
+
| `logoLabel` | `string` | `''` | Accessible name of the logo («SalesQL»). Empty = decorative. App copy. |
|
|
2960
|
+
| `openLabel` | `string` | — | «Open SalesQL dashboard»: the button's `aria-label` (required). App copy. |
|
|
2961
|
+
| `openTooltip` | `string` | `''` | «Open SalesQL»: a shorter tooltip than the label. Empty = `openLabel`. |
|
|
2793
2962
|
|
|
2794
2963
|
### Events
|
|
2795
2964
|
|
|
2796
|
-
| Event
|
|
2797
|
-
|
|
|
2798
|
-
| `open`
|
|
2799
|
-
| `minimize` | none | «Minimize» was clicked or activated from the keyboard. |
|
|
2965
|
+
| Event | Payload | When |
|
|
2966
|
+
| ------ | ------- | ---------------------------------------------------------- |
|
|
2967
|
+
| `open` | none | «Open SalesQL» was clicked or activated from the keyboard. |
|
|
2800
2968
|
|
|
2801
2969
|
### Slots
|
|
2802
2970
|
|
|
2803
|
-
|
|
2971
|
+
| Slot | What goes there |
|
|
2972
|
+
| --------- | ------------------------------------------------------------------------------------ |
|
|
2973
|
+
| `usage` | Before «Open SalesQL»: the LinkedIn usage ring and the credits chip (their tickets). |
|
|
2974
|
+
| `account` | After it: `DsAccountMenu`. Its scrim dims only what is below this header. |
|
|
2975
|
+
|
|
2976
|
+
Empty slots render nothing (no empty wrappers), also when their content is all `v-if`'d out
|
|
2977
|
+
(e.g. `<DsAccountMenu v-if="user">` while the session loads). The cluster keeps a 4px gap; the account slot
|
|
2978
|
+
adds 2px more, as the design's avatar.
|
|
2804
2979
|
|
|
2805
2980
|
### Accessibility
|
|
2806
2981
|
|
|
2807
2982
|
- The root is a `<header>`. Inside the frame's `<section>` it is not a `banner` landmark.
|
|
2808
|
-
-
|
|
2809
|
-
- Real `<button type="button">`: Tab, Enter and Space work, and they never submit a form of the host page.
|
|
2983
|
+
- «Open SalesQL» is icon-only: `openLabel` is its `aria-label`; the glyph (`DsIcon`) is `aria-hidden`.
|
|
2810
2984
|
- Keyboard focus shows the tooltip at once and draws a 2px `accent-mid` ring on the button.
|
|
2811
|
-
- With `logoLabel` the logo is `role="img"`; without it, `aria-hidden`.
|
|
2812
|
-
|
|
2813
|
-
### When to use
|
|
2814
|
-
|
|
2815
|
-
- The top bar of `DsPanelFrame` (`#header` slot) for the extension's LinkedIn panel.
|
|
2816
|
-
- Not a page header or a drawer header: those have their own components (`DsDrawer`).
|
|
2817
2985
|
|
|
2818
|
-
### Design parity (
|
|
2986
|
+
### Design parity (canvas «Header-menu-uso», header L51-65)
|
|
2819
2987
|
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
`slate-tint` hover.
|
|
2988
|
+
52px tall (`bar-height('panel')`), white, `0 1px 0 slate-tint` below, padding `0 12px 0 20px`
|
|
2989
|
+
(logo inset `spacing(2.5)`), logo 22px, cluster gap 4px, avatar 2px further (`spacing(0.25)`),
|
|
2990
|
+
«Open SalesQL» 32 × 32 (`DsButton` medium square: 4px radius, `slate-tint` hover) with a 20px
|
|
2991
|
+
`open_in_new` in `slate-soft`.
|
|
2825
2992
|
|
|
2826
2993
|
Logged deltas:
|
|
2827
2994
|
|
|
2828
|
-
-
|
|
2829
|
-
DS spacing scale has no such steps. Candidates for a DS token if another bar needs them.
|
|
2830
|
-
- **Hover transition 0.2s**, the DS `motion` default, instead of the export's `.15s`: it comes
|
|
2831
|
-
with `DsButton`.
|
|
2832
|
-
- **Real `<button>`s** with `aria-label`, instead of the export's click-handling `<span>`s.
|
|
2833
|
-
- **Keyboard focus ring** (not in the export). `DsButton` draws no focus ring of its own, so the
|
|
2834
|
-
header adds one to its two buttons.
|
|
2995
|
+
- Icon color `#5C6670` → `slate-soft` (`#5E666F`), the closest DS token.
|
|
2835
2996
|
|
|
2836
2997
|
---
|
|
2837
2998
|
|
|
@@ -3281,6 +3442,10 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3281
3442
|
| `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
|
|
3282
3443
|
| `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
|
|
3283
3444
|
| `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
|
|
3445
|
+
| `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
|
|
3446
|
+
| `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. |
|
|
3447
|
+
| `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. |
|
|
3448
|
+
| `clearLabel` | `string` | `''` | The clear button's text (it is text-only, so the app owns the copy). No label → no button. |
|
|
3284
3449
|
|
|
3285
3450
|
### Events
|
|
3286
3451
|
|
|
@@ -3291,6 +3456,7 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3291
3456
|
| `blur` | `FocusEvent` | The native input lost focus — fires even when focus only moved to the component's own password toggle. |
|
|
3292
3457
|
| `change` | `Event` | Native `change` — fires on blur/Enter once the value actually changed (distinct from the continuous `update:modelValue`). |
|
|
3293
3458
|
| `field-blur` | `FocusEvent` | Focus left the **whole** component (not just moved to the internal toggle) — the "real field exit" signal. |
|
|
3459
|
+
| `clear` | — | The clear button was used; `update:modelValue` has already carried `''`. The focus stays in the input. |
|
|
3294
3460
|
|
|
3295
3461
|
### Accessibility
|
|
3296
3462
|
|
|
@@ -3299,6 +3465,12 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3299
3465
|
- Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
|
|
3300
3466
|
- Exposes `focus(options?)` (native `FocusOptions`, e.g. `{ preventScroll: true }`) and `focusAtEnd()` via `defineExpose` for imperative control (e.g. focusing a field after a panel opens) from the consuming app.
|
|
3301
3467
|
|
|
3468
|
+
### Clear button
|
|
3469
|
+
|
|
3470
|
+
`clearable` + `clearLabel` add a text button inside the right end of the field (accent, 13/700) while there is a value. A click empties it (`update:modelValue` with `''`), emits `clear` and keeps the focus in the input; pressing it never blurs the field. The input reserves 72px on the right for it, so a label up to about 48px wide fits (longer copy needs a shorter word).
|
|
3471
|
+
|
|
3472
|
+
With `type="search"` and the default `sm` size this is the panel search of the contact list: 36px, `slate-bg` fill, no border until focus. Two deliberate deviations from the prototype, both DS rules that win: the magnifier sits 16px from the left (prototype 10px) and the focus border is the dark grey token, not the accent.
|
|
3473
|
+
|
|
3302
3474
|
### When to use
|
|
3303
3475
|
|
|
3304
3476
|
- Any single-line text/email/password/tel/number/url/search field in a form.
|
|
@@ -3600,6 +3772,86 @@ is the current string value).
|
|
|
3600
3772
|
|
|
3601
3773
|
---
|
|
3602
3774
|
|
|
3775
|
+
<!-- DsListRow · Navigation -->
|
|
3776
|
+
|
|
3777
|
+
## DsListRow
|
|
3778
|
+
|
|
3779
|
+
A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
3780
|
+
that appear on hover. It is the folder row of the contact list «Lists» panel (and its «All contacts»
|
|
3781
|
+
row). **Presentational**: `selected` comes in by props and `select` goes out.
|
|
3782
|
+
|
|
3783
|
+
Measures: 36px tall, `0 6px 0 12px` padding, 8px gap, 4px radius, label 14/700 with ellipsis, 20px icon.
|
|
3784
|
+
|
|
3785
|
+
### Props
|
|
3786
|
+
|
|
3787
|
+
| Prop | Type | Default | Description |
|
|
3788
|
+
| ------------------ | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
3789
|
+
| `label` | `string` | — | The row's text (required). Also the content of its tooltip, which opens only when the ellipsis cuts the name. |
|
|
3790
|
+
| `icon` | `string` | `''` | Material Symbols name of the leading glyph. Empty = no icon. |
|
|
3791
|
+
| `iconColor` | `string` | `''` | Colour of the icon (e.g. the folder's). Empty = the DS slate. It keeps its colour on hover and when selected. |
|
|
3792
|
+
| `selected` | `boolean` | `false` | The current item: `accent-bg` fill and 1px `accent-main` border. Wins over hover. `aria-current="true"` on the button. |
|
|
3793
|
+
| `actionsVisible` | `boolean` | `false` | Keeps the `actions` slot on screen regardless of hover or focus, e.g. while the menu it opens is open. |
|
|
3794
|
+
| `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Where the name tooltip opens. |
|
|
3795
|
+
|
|
3796
|
+
### Events
|
|
3797
|
+
|
|
3798
|
+
| Event | Payload | When |
|
|
3799
|
+
| -------- | ------- | ------------------------------------------------------------------------------ |
|
|
3800
|
+
| `select` | — | The row was clicked, or Enter / Space was pressed on it. Never from `actions`. |
|
|
3801
|
+
|
|
3802
|
+
### Slots
|
|
3803
|
+
|
|
3804
|
+
| Slot | Scope | Description |
|
|
3805
|
+
| ---------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
3806
|
+
| `trailing` | `{ actionsShown }` | Always visible, after the label: a shield, a filled star. Non-interactive (a click on it selects the row). `actionsShown` lets a badge give its place to the actions. |
|
|
3807
|
+
| `actions` | — | Shown on hover, on keyboard focus inside the row, or while `actionsVisible`: star toggle, ⋮. Clicks here do not select the row. Use `DsListRowAction` for the buttons. |
|
|
3808
|
+
|
|
3809
|
+
### Behaviour
|
|
3810
|
+
|
|
3811
|
+
- The label is wrapped in a `DsTooltip` with the full name that is **on only while the name is truncated** (measured on hover, on focus, when the label changes and on resize; teleported, so a panel with `overflow: hidden` does not clip it). A name that fits has no tooltip and no `aria-describedby`.
|
|
3812
|
+
- The row is a `div` holding a real `<button>` for the label (so the actions are never buttons inside a button). The pointer selects from anywhere on the row; the keyboard from the button.
|
|
3813
|
+
- Keyboard focus anywhere in the row shows the actions, and so does any focus inside them (a menu gives its ⋮ the focus back); focus on the label from a mouse click does not leave them stuck.
|
|
3814
|
+
- The `actions` slot stays mounted and focusable while hidden (it is out of the flow and transparent, never `display: none`), so the focus a menu restores lands on a real button; keep `actionsVisible` true while that menu is open.
|
|
3815
|
+
|
|
3816
|
+
### Accessibility
|
|
3817
|
+
|
|
3818
|
+
- Put the rows in a `<nav>` / `<ul>` of your own; the selected one carries `aria-current="true"`.
|
|
3819
|
+
- Every action needs its own accessible name (`DsListRowAction` requires `label`).
|
|
3820
|
+
|
|
3821
|
+
---
|
|
3822
|
+
|
|
3823
|
+
<!-- DsListRowAction · Navigation -->
|
|
3824
|
+
|
|
3825
|
+
## DsListRowAction
|
|
3826
|
+
|
|
3827
|
+
The small icon button of a list row (star toggle, ⋮) or of a page header: 26×26, no fill at rest, a
|
|
3828
|
+
fill on hover. It exists so consumers do not restyle a bare button for every row. It goes in the
|
|
3829
|
+
`actions` slot of `DsListRow`, or in the `trigger` slot of `DsPickerRowActions`.
|
|
3830
|
+
|
|
3831
|
+
### Props
|
|
3832
|
+
|
|
3833
|
+
| Prop | Type | Default | Description |
|
|
3834
|
+
| ---------- | ----------------- | ------- | ---------------------------------------------------------------- |
|
|
3835
|
+
| `icon` | `string` | — | Material Symbols name (required). |
|
|
3836
|
+
| `label` | `string` | — | Accessible name (required: the button has no text). |
|
|
3837
|
+
| `filled` | `boolean` | `true` | Filled glyph; `false` draws the outline (an unfavorited star). |
|
|
3838
|
+
| `active` | `boolean` | `false` | Held in its hover look, e.g. while the menu it opens is open. |
|
|
3839
|
+
| `iconSize` | `18 \| 20` | `18` | Glyph size: 18 on a row, 20 on a page header. |
|
|
3840
|
+
| `surface` | `'mid' \| 'tint'` | `'mid'` | Hover fill: `slate-mid` on a row, `slate-tint` on a page header. |
|
|
3841
|
+
| `disabled` | `boolean` | `false` | Native `disabled`. |
|
|
3842
|
+
|
|
3843
|
+
### Events
|
|
3844
|
+
|
|
3845
|
+
None declared: the native `click` reaches the button. Inside `DsListRow` the click does not bubble to the row.
|
|
3846
|
+
|
|
3847
|
+
### Accessibility
|
|
3848
|
+
|
|
3849
|
+
- It is a real `<button type="button">`; the glyph is `aria-hidden` and `label` is the `aria-label`.
|
|
3850
|
+
- For a button that opens a menu, add `aria-haspopup="menu"` and `aria-expanded` yourself (the `trigger` slot of `DsPickerRowActions` hands you `open`).
|
|
3851
|
+
- Wrap it in a `DsTooltip` when the icon alone is not obvious (the star toggle).
|
|
3852
|
+
|
|
3853
|
+
---
|
|
3854
|
+
|
|
3603
3855
|
<!-- DsMenuItem · Navigation -->
|
|
3604
3856
|
|
|
3605
3857
|
## DsMenuItem
|
|
@@ -3646,6 +3898,65 @@ an icon-only rail. **Presentational only**: it renders as a real `<button>` and
|
|
|
3646
3898
|
|
|
3647
3899
|
---
|
|
3648
3900
|
|
|
3901
|
+
<!-- DsSidePanel · Navigation -->
|
|
3902
|
+
|
|
3903
|
+
## DsSidePanel
|
|
3904
|
+
|
|
3905
|
+
A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
3906
|
+
52px) when unpinned, and a **peek**: hover the rail and the panel opens to `width` **over** the
|
|
3907
|
+
content, with a 200ms width transition and a soft shadow, without moving anything. It is the contact
|
|
3908
|
+
list «Lists» panel; the Prospector filters could adopt it later.
|
|
3909
|
+
|
|
3910
|
+
**Presentational and controlled**: `pinned` is `v-model:pinned` and the consumer persists it. The
|
|
3911
|
+
height is `100%` of the parent: the consumer sizes the box.
|
|
3912
|
+
|
|
3913
|
+
### Props
|
|
3914
|
+
|
|
3915
|
+
| Prop | Type | Default | Description |
|
|
3916
|
+
| --------------- | ------------------ | ------- | ---------------------------------------------------------------------------------------------------- |
|
|
3917
|
+
| `label` | `string` | — | Landmark name of the `<aside>` (required). |
|
|
3918
|
+
| `title` | `string` | — | Header title (required), 18/700. |
|
|
3919
|
+
| `pinned` | `boolean` | `true` | Pinned open (`v-model:pinned`). |
|
|
3920
|
+
| `width` | `number \| string` | `248` | Width of the pinned panel and of the peek. A number is px; a string is any CSS length. |
|
|
3921
|
+
| `railWidth` | `number \| string` | `52` | Width of the rail, which is also the footprint while unpinned. |
|
|
3922
|
+
| `collapseLabel` | `string` | — | Accessible name of the header button while pinned (required). |
|
|
3923
|
+
| `expandLabel` | `string` | — | Accessible name of the rail's expand button, and of the header button while peeking (required). |
|
|
3924
|
+
| `railLabel` | `string` | `''` | Vertical text of the rail (12/700, 2px letter-spacing, reads bottom to top). Empty = none. |
|
|
3925
|
+
| `railIcon` | `string` | `''` | Material Symbols name of the 20px icon below the rail label. Empty = none. |
|
|
3926
|
+
| `held` | `boolean` | `false` | Keeps the peek open after the pointer leaves, e.g. while a teleported menu opened from inside is up. |
|
|
3927
|
+
|
|
3928
|
+
### Events
|
|
3929
|
+
|
|
3930
|
+
| Event | Payload | When |
|
|
3931
|
+
| --------------- | --------- | ------------------------------------------------------------------------------------------ |
|
|
3932
|
+
| `update:pinned` | `boolean` | The expand (`true`) or collapse (`false`) button was used. The panel does not flip itself. |
|
|
3933
|
+
| `peek-change` | `boolean` | The unpinned panel opened over the content (`true`) or closed (`false`). |
|
|
3934
|
+
|
|
3935
|
+
### Slots
|
|
3936
|
+
|
|
3937
|
+
| Slot | Description |
|
|
3938
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
3939
|
+
| default | The body: a flex column with `flex: 1; min-height: 0`. Put a fixed header and a `flex: 1; overflow-y: auto` list in it. |
|
|
3940
|
+
| `header-actions` | Optional, between the title and the pin button. |
|
|
3941
|
+
|
|
3942
|
+
### Behaviour
|
|
3943
|
+
|
|
3944
|
+
- **Peek**: `mouseenter` on the rail opens it; `mouseleave` closes it unless `held`. When `held` turns false with the pointer outside, it closes. Pinning (`pinned` becomes true) closes it.
|
|
3945
|
+
- The panel stays **mounted** while unpinned (inert and invisible), so its scroll, search text and open menus survive pinning and unpinning.
|
|
3946
|
+
- While peeking, the header button reads `expandLabel` (keep it open): it emits `update:pinned` with `true`.
|
|
3947
|
+
- The peek also stays open while the focus is inside the panel (a search field being typed in, say), and closes once both the pointer and the focus are outside. **Escape** closes it at any time, even with `held`.
|
|
3948
|
+
- Pinning, unpinning and closing the peek never strand the focus on `<body>`: collapsing or closing moves it to the rail's expand button; expanding moves it to the header's collapse button. A `pinned` change that happens while the focus is elsewhere does not take the focus.
|
|
3949
|
+
- Unmounting while peeking emits `peek-change` with `false`, so a consumer's state does not stay stuck.
|
|
3950
|
+
- The content is never pushed: the footprint of an unpinned panel is `railWidth`.
|
|
3951
|
+
- **Stacking**: the unpinned panel sits at `z-index: 20` (above page content, below `DsModal` and the teleported menus). Raise it with the CSS variable `--ds-side-panel-peek-z-index` on the panel or any ancestor, e.g. when the page has a sticky header above 20.
|
|
3952
|
+
|
|
3953
|
+
### Accessibility
|
|
3954
|
+
|
|
3955
|
+
- An `<aside>` landmark named by `label`; both the rail's expand button and the header button have `aria-label` and `aria-expanded`.
|
|
3956
|
+
- The hidden layer is `inert` and `aria-hidden`: the rail while peeking, the panel while it is a rail. Keyboard users reach the panel by expanding it (the rail button), since the peek follows the pointer.
|
|
3957
|
+
|
|
3958
|
+
---
|
|
3959
|
+
|
|
3649
3960
|
<!-- DsWizardStepper · Navigation -->
|
|
3650
3961
|
|
|
3651
3962
|
## DsWizardStepper
|
|
@@ -3790,6 +4101,68 @@ already fixed.
|
|
|
3790
4101
|
|
|
3791
4102
|
---
|
|
3792
4103
|
|
|
4104
|
+
<!-- DsOrganizerDialog · Overlays -->
|
|
4105
|
+
|
|
4106
|
+
## DsOrganizerDialog
|
|
4107
|
+
|
|
4108
|
+
The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
4109
|
+
palette and Cancel + submit. Nothing in it is specific to one noun (the contact list uses it for
|
|
4110
|
+
folders, tags will reuse it): every string arrives by props. `DsOrganizerForm` is the in-panel
|
|
4111
|
+
sibling for the pickers; both share the same validation rules.
|
|
4112
|
+
|
|
4113
|
+
**Presentational and controlled**: `name` / `color` come in by props, every change goes out as
|
|
4114
|
+
`update:name` / `update:color` (`v-model:name`, `v-model:color`). The dialog **never closes itself**:
|
|
4115
|
+
`close` is a request (Cancel, X, Escape, backdrop) and `submit` hands you `{ name, color }` (name
|
|
4116
|
+
trimmed). Persisting, closing and the back's errors are the consumer's job.
|
|
4117
|
+
|
|
4118
|
+
### Props
|
|
4119
|
+
|
|
4120
|
+
| Prop | Type | Default | Description |
|
|
4121
|
+
| ------------------ | ---------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
4122
|
+
| `open` | `boolean` | `false` | |
|
|
4123
|
+
| `title` | `string` | — | «New folder» / «Edit folder» (required). |
|
|
4124
|
+
| `name` | `string` | `''` | The name field (`v-model:name`). |
|
|
4125
|
+
| `color` | `string` | `''` | The selected swatch (`v-model:color`). |
|
|
4126
|
+
| `colors` | `string[]` | — | Swatches, hex strings, 8 per row (the DS palette is 3 × 8). The consumer owns the palette (required). |
|
|
4127
|
+
| `nameLabel` | `string` | — | Label of the name field (required). |
|
|
4128
|
+
| `colorLabel` | `string` | — | Label of the palette (required). |
|
|
4129
|
+
| `namePlaceholder` | `string` | `''` | |
|
|
4130
|
+
| `submitLabel` | `string` | — | «Create folder» / «Save changes» (required). |
|
|
4131
|
+
| `cancelLabel` | `string` | — | (required). |
|
|
4132
|
+
| `closeLabel` | `string` | — | Accessible name of the X (required). |
|
|
4133
|
+
| `loading` | `boolean` | `false` | Spinner on the submit; every submit path is blocked, Cancel is disabled and `close` is not emitted. |
|
|
4134
|
+
| `errorMissingName` | `string` | `'Name is required'` | Shown under the field after a submit attempt with an empty name. |
|
|
4135
|
+
| `errorTooLongName` | `string` | `'Name is too long'` | Shown after a submit attempt when the trimmed name is over `maxNameLength`. |
|
|
4136
|
+
| `maxNameLength` | `number` | `128` | Also the native `maxlength` of the field. |
|
|
4137
|
+
| `errorMessage` | `string` | `''` | An error from outside (a duplicate name); shown under the field when the dialog has none of its own. |
|
|
4138
|
+
| `originalName` | `string` | `undefined` | Edit mode: the name it opened with. Set = the submit is disabled until the name or the colour changes. |
|
|
4139
|
+
| `originalColor` | `string` | `undefined` | Edit mode: the colour it opened with, compared case-insensitively. Needs `originalName`. |
|
|
4140
|
+
| `counterThreshold` | `number` | `19` | The `{n}/{max}` counter shows from `maxNameLength - counterThreshold` characters (109/128 by default). |
|
|
4141
|
+
|
|
4142
|
+
### Events
|
|
4143
|
+
|
|
4144
|
+
| Event | Payload | When |
|
|
4145
|
+
| -------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
4146
|
+
| `update:name` | `string` | Every change of the field. |
|
|
4147
|
+
| `update:color` | `string` | A swatch was picked (click or arrow keys). |
|
|
4148
|
+
| `submit` | `{ name: string; color: string }` | Valid, changed (edit mode) and not loading: the button or Enter in the field. |
|
|
4149
|
+
| `close` | — | Cancel, the X, Escape or the backdrop (`DsModal` defaults). Never while `loading`: a request in flight can't be abandoned from the dialog. |
|
|
4150
|
+
|
|
4151
|
+
### Behaviour
|
|
4152
|
+
|
|
4153
|
+
- **Errors wait for a submit attempt**: typing or picking a colour never raises one, and typing again after an attempt hides the empty-name error until the next attempt. With an empty name the button is _not_ disabled: clicking it (or Enter) is the attempt that shows `errorMissingName`. The error is tied to the field (`aria-describedby`, `aria-invalid`) and announced as an alert; it is forgotten when the dialog reopens.
|
|
4154
|
+
- In **edit mode** (`originalName` set) the submit is disabled, and Enter does nothing, until something changed.
|
|
4155
|
+
- The helper row under the field holds the error (left) and the counter (right, `aria-live="polite"`) and reserves its line, so nothing jumps.
|
|
4156
|
+
- The palette is a radio group: one tab stop (the selected swatch), arrows move and pick, with wrap-around. 28px circles; the selected one has a 2px white gap and a 2px ring in its own colour, and a check that is dark on any swatch where white would not reach 3:1 (light and mid colours) and white on the rest.
|
|
4157
|
+
- The name field takes the focus on open, caret at the end.
|
|
4158
|
+
|
|
4159
|
+
### Differences from the design prototype (DS wins)
|
|
4160
|
+
|
|
4161
|
+
- The field is the DS `md` input (48px), not 44px, and its border follows the DS states (it does not turn accent while it has text).
|
|
4162
|
+
- The submit is a `DsButton` primary `large` (36px), not the prototype's hand-made 40px button.
|
|
4163
|
+
|
|
4164
|
+
---
|
|
4165
|
+
|
|
3793
4166
|
<!-- DsPopover · Overlays -->
|
|
3794
4167
|
|
|
3795
4168
|
## DsPopover
|
package/llms.txt
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
- DsMaskedValue (Contact data): An email or phone string with the contract's two-tone treatment when the **server** masked
|
|
18
18
|
- DsMoreCountChip (Contact data): The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
|
|
19
19
|
- DsOrganizerForm (Contact data): The in-panel **create / edit form** of the organizers (folders, tags): a back row with the title,
|
|
20
|
+
- DsPickerRowActions (Contact data): The ⋮ button of a list row and the menu it opens: **Edit**, **Favorite**, **Copy link** and
|
|
20
21
|
- DsProfileGroupBar (Contact data): The band that names one contact-data type inside a profile card — «Work email», «Direct
|
|
21
22
|
- DsSavedButton (Contact data): **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
|
|
22
23
|
- DsTagPicker (Contact data): The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
|
|
@@ -41,11 +42,12 @@
|
|
|
41
42
|
- DsSegmentedProgressBar (Data): Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
42
43
|
- DsTable (Data): Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|
|
43
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
|
|
44
46
|
- DsAddToBar (Extension panel): The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
|
|
45
47
|
- DsBulkBar (Extension panel): The selection bar above a list: a **select-all checkbox** with its count text, a flexible
|
|
46
48
|
- DsContactRow (Extension panel): One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
|
|
47
49
|
- DsPanelFrame (Extension panel): The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
48
|
-
- 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
|
|
49
51
|
- DsPanelLauncher (Extension panel): The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
50
52
|
- DsAlert (Feedback): Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
51
53
|
- DsModal (Feedback): Dialog with an optional header (title + close button) and footer action row, vertically
|
|
@@ -61,9 +63,13 @@
|
|
|
61
63
|
- DsSelect (Forms): Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
62
64
|
- DsSwitch (Forms): On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
63
65
|
- DsTextarea (Forms): Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|
|
66
|
+
- DsListRow (Navigation): A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
67
|
+
- DsListRowAction (Navigation): The small icon button of a list row (star toggle, ⋮) or of a page header: 26×26, no fill at rest, a
|
|
64
68
|
- DsMenuItem (Navigation): Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
69
|
+
- DsSidePanel (Navigation): A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
65
70
|
- DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
66
71
|
- DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
72
|
+
- DsOrganizerDialog (Overlays): The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
67
73
|
- DsPopover (Overlays): Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
68
74
|
- DsFullProfile (Profile): The body of a full profile, shared by the prospector's drawer and the extension's panel: the
|
|
69
75
|
- DsProfileActionBar (Profile): The action area of a full profile — the design export's `ActionBar`.
|