@salesql/sql_components_vue3 3.29.1 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/useOrganizerFields.d.ts +34 -0
- package/dist/constants/events.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.es.js +3972 -3331
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- 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/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 +278 -2
- package/llms.txt +5 -0
- package/package.json +1 -1
- package/src/icons/manifest.json +12 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'header-actions'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_3) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
label: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
pinned: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
width: {
|
|
21
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
railWidth: {
|
|
25
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
collapseLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
expandLabel: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
railLabel: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
railIcon: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
held: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:pinned": (...args: any[]) => void;
|
|
50
|
+
"peek-change": (...args: any[]) => void;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
label: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
pinned: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
width: {
|
|
65
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
railWidth: {
|
|
69
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
collapseLabel: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
expandLabel: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
railLabel: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
railIcon: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
held: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{
|
|
93
|
+
"onUpdate:pinned"?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
"onPeek-change"?: ((...args: any[]) => any) | undefined;
|
|
95
|
+
}>, {
|
|
96
|
+
width: string | number;
|
|
97
|
+
pinned: boolean;
|
|
98
|
+
railWidth: string | number;
|
|
99
|
+
railLabel: string;
|
|
100
|
+
railIcon: string;
|
|
101
|
+
held: boolean;
|
|
102
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
104
|
+
export default _default;
|
|
105
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
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.30.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 (75)
|
|
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
|
|
@@ -107,9 +108,13 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
107
108
|
- **DsSelect** (Forms) — Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
108
109
|
- **DsSwitch** (Forms) — On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
109
110
|
- **DsTextarea** (Forms) — Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|
|
111
|
+
- **DsListRow** (Navigation) — A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
112
|
+
- **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
113
|
- **DsMenuItem** (Navigation) — Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
114
|
+
- **DsSidePanel** (Navigation) — A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
111
115
|
- **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
112
116
|
- **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
117
|
+
- **DsOrganizerDialog** (Overlays) — The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
113
118
|
- **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
114
119
|
- **DsFullProfile** (Profile) — The body of a full profile, shared by the prospector's drawer and the extension's panel: the
|
|
115
120
|
- **DsProfileActionBar** (Profile) — The action area of a full profile — the design export's `ActionBar`.
|
|
@@ -1138,6 +1143,65 @@ itself and never persists anything — `submit` hands you `{ name, color }` (nam
|
|
|
1138
1143
|
|
|
1139
1144
|
---
|
|
1140
1145
|
|
|
1146
|
+
<!-- DsPickerRowActions · Contact data -->
|
|
1147
|
+
|
|
1148
|
+
## DsPickerRowActions
|
|
1149
|
+
|
|
1150
|
+
The ⋮ button of a list row and the menu it opens: **Edit**, **Favorite**, **Copy link** and
|
|
1151
|
+
**Delete**. `DsSavedButton` / `DsTagPicker` use it inside their pickers; the contact list's «Lists»
|
|
1152
|
+
panel uses it on its folder rows and in its page header. **Presentational only**: every item emits
|
|
1153
|
+
an event with the row's `option` and the app does the work.
|
|
1154
|
+
|
|
1155
|
+
### Props
|
|
1156
|
+
|
|
1157
|
+
| Prop | Type | Default | Description |
|
|
1158
|
+
| -------------------------- | ---------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1159
|
+
| `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. |
|
|
1160
|
+
| `actionsLabel` | `string` | `'Actions'` | Accessible name of the ⋮ button and of the menu. |
|
|
1161
|
+
| `editLabel` | `string` | `'Edit'` | |
|
|
1162
|
+
| `showEdit` | `boolean` | `true` | Show the Edit item. |
|
|
1163
|
+
| `showFavorite` | `boolean` | `false` | Show the Favorite item (icon `star`), between Edit and Copy link. |
|
|
1164
|
+
| `favorited` | `boolean` | `false` | The row is a favorite: the item reads `unfavoriteLabel` and the star is filled instead of outlined. |
|
|
1165
|
+
| `favoriteLabel` | `string` | `'Favorite'` | |
|
|
1166
|
+
| `unfavoriteLabel` | `string` | `'Unfavorite'` | |
|
|
1167
|
+
| `showCopyLink` | `boolean` | `false` | Show the Copy link item (icon `link`), after Favorite. |
|
|
1168
|
+
| `copyLinkLabel` | `string` | `'Copy link'` | |
|
|
1169
|
+
| `deleteLabel` | `string` | `'Delete'` | |
|
|
1170
|
+
| `deleteConfirmLabel` | `string` | `'Are you sure?'` | First click on Delete turns the row into this… |
|
|
1171
|
+
| `deleteConfirmActionLabel` | `string` | `'Yes, delete'` | … and this, which emits `delete`. |
|
|
1172
|
+
| `menuWidth` | `string` | `'150px'` | Width of the menu panel (any CSS length). The contact list uses `230px`. |
|
|
1173
|
+
|
|
1174
|
+
### Events
|
|
1175
|
+
|
|
1176
|
+
| Event | Payload | When |
|
|
1177
|
+
| ----------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1178
|
+
| `open` | `DsPickerOption` | The menu opened. Check what Delete needs (does the folder have contacts?) and update `option.deleteDisabled`. |
|
|
1179
|
+
| `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. |
|
|
1180
|
+
| `edit` | `DsPickerOption` | Edit chosen. The menu closes. |
|
|
1181
|
+
| `favorite` | `DsPickerOption` | Favorite / Unfavorite chosen. The menu closes; the app decides which way the toggle goes. |
|
|
1182
|
+
| `copy-link` | `DsPickerOption` | Copy link chosen. The menu closes. |
|
|
1183
|
+
| `delete` | `DsPickerOption` | The confirmation («Yes, delete») was used. |
|
|
1184
|
+
|
|
1185
|
+
### Slots
|
|
1186
|
+
|
|
1187
|
+
| Slot | Scope | Description |
|
|
1188
|
+
| --------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1189
|
+
| `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. |
|
|
1190
|
+
|
|
1191
|
+
### Behaviour
|
|
1192
|
+
|
|
1193
|
+
- 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.
|
|
1194
|
+
- **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.
|
|
1195
|
+
- **Delete confirmation** happens inside the menu; `deleting` on the option keeps the menu open with a spinner until the app answers.
|
|
1196
|
+
- Only one row's menu is open at a time. The menu is teleported, so a scrolling list does not clip it.
|
|
1197
|
+
- 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.
|
|
1198
|
+
|
|
1199
|
+
### When to use
|
|
1200
|
+
|
|
1201
|
+
- The per-row actions of folders and tags. For a generic list of actions use `DsActionMenu`.
|
|
1202
|
+
|
|
1203
|
+
---
|
|
1204
|
+
|
|
1141
1205
|
<!-- DsProfileGroupBar · Contact data -->
|
|
1142
1206
|
|
|
1143
1207
|
## DsProfileGroupBar
|
|
@@ -3281,6 +3345,10 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3281
3345
|
| `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
|
|
3282
3346
|
| `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
|
|
3283
3347
|
| `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
|
|
3348
|
+
| `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
|
|
3349
|
+
| `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. |
|
|
3350
|
+
| `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. |
|
|
3351
|
+
| `clearLabel` | `string` | `''` | The clear button's text (it is text-only, so the app owns the copy). No label → no button. |
|
|
3284
3352
|
|
|
3285
3353
|
### Events
|
|
3286
3354
|
|
|
@@ -3291,6 +3359,7 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3291
3359
|
| `blur` | `FocusEvent` | The native input lost focus — fires even when focus only moved to the component's own password toggle. |
|
|
3292
3360
|
| `change` | `Event` | Native `change` — fires on blur/Enter once the value actually changed (distinct from the continuous `update:modelValue`). |
|
|
3293
3361
|
| `field-blur` | `FocusEvent` | Focus left the **whole** component (not just moved to the internal toggle) — the "real field exit" signal. |
|
|
3362
|
+
| `clear` | — | The clear button was used; `update:modelValue` has already carried `''`. The focus stays in the input. |
|
|
3294
3363
|
|
|
3295
3364
|
### Accessibility
|
|
3296
3365
|
|
|
@@ -3299,6 +3368,12 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
3299
3368
|
- Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
|
|
3300
3369
|
- 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
3370
|
|
|
3371
|
+
### Clear button
|
|
3372
|
+
|
|
3373
|
+
`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).
|
|
3374
|
+
|
|
3375
|
+
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.
|
|
3376
|
+
|
|
3302
3377
|
### When to use
|
|
3303
3378
|
|
|
3304
3379
|
- Any single-line text/email/password/tel/number/url/search field in a form.
|
|
@@ -3600,6 +3675,86 @@ is the current string value).
|
|
|
3600
3675
|
|
|
3601
3676
|
---
|
|
3602
3677
|
|
|
3678
|
+
<!-- DsListRow · Navigation -->
|
|
3679
|
+
|
|
3680
|
+
## DsListRow
|
|
3681
|
+
|
|
3682
|
+
A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
3683
|
+
that appear on hover. It is the folder row of the contact list «Lists» panel (and its «All contacts»
|
|
3684
|
+
row). **Presentational**: `selected` comes in by props and `select` goes out.
|
|
3685
|
+
|
|
3686
|
+
Measures: 36px tall, `0 6px 0 12px` padding, 8px gap, 4px radius, label 14/700 with ellipsis, 20px icon.
|
|
3687
|
+
|
|
3688
|
+
### Props
|
|
3689
|
+
|
|
3690
|
+
| Prop | Type | Default | Description |
|
|
3691
|
+
| ------------------ | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
3692
|
+
| `label` | `string` | — | The row's text (required). Also the content of its tooltip, which opens only when the ellipsis cuts the name. |
|
|
3693
|
+
| `icon` | `string` | `''` | Material Symbols name of the leading glyph. Empty = no icon. |
|
|
3694
|
+
| `iconColor` | `string` | `''` | Colour of the icon (e.g. the folder's). Empty = the DS slate. It keeps its colour on hover and when selected. |
|
|
3695
|
+
| `selected` | `boolean` | `false` | The current item: `accent-bg` fill and 1px `accent-main` border. Wins over hover. `aria-current="true"` on the button. |
|
|
3696
|
+
| `actionsVisible` | `boolean` | `false` | Keeps the `actions` slot on screen regardless of hover or focus, e.g. while the menu it opens is open. |
|
|
3697
|
+
| `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Where the name tooltip opens. |
|
|
3698
|
+
|
|
3699
|
+
### Events
|
|
3700
|
+
|
|
3701
|
+
| Event | Payload | When |
|
|
3702
|
+
| -------- | ------- | ------------------------------------------------------------------------------ |
|
|
3703
|
+
| `select` | — | The row was clicked, or Enter / Space was pressed on it. Never from `actions`. |
|
|
3704
|
+
|
|
3705
|
+
### Slots
|
|
3706
|
+
|
|
3707
|
+
| Slot | Scope | Description |
|
|
3708
|
+
| ---------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
3709
|
+
| `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. |
|
|
3710
|
+
| `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. |
|
|
3711
|
+
|
|
3712
|
+
### Behaviour
|
|
3713
|
+
|
|
3714
|
+
- 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`.
|
|
3715
|
+
- 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.
|
|
3716
|
+
- 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.
|
|
3717
|
+
- 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.
|
|
3718
|
+
|
|
3719
|
+
### Accessibility
|
|
3720
|
+
|
|
3721
|
+
- Put the rows in a `<nav>` / `<ul>` of your own; the selected one carries `aria-current="true"`.
|
|
3722
|
+
- Every action needs its own accessible name (`DsListRowAction` requires `label`).
|
|
3723
|
+
|
|
3724
|
+
---
|
|
3725
|
+
|
|
3726
|
+
<!-- DsListRowAction · Navigation -->
|
|
3727
|
+
|
|
3728
|
+
## DsListRowAction
|
|
3729
|
+
|
|
3730
|
+
The small icon button of a list row (star toggle, ⋮) or of a page header: 26×26, no fill at rest, a
|
|
3731
|
+
fill on hover. It exists so consumers do not restyle a bare button for every row. It goes in the
|
|
3732
|
+
`actions` slot of `DsListRow`, or in the `trigger` slot of `DsPickerRowActions`.
|
|
3733
|
+
|
|
3734
|
+
### Props
|
|
3735
|
+
|
|
3736
|
+
| Prop | Type | Default | Description |
|
|
3737
|
+
| ---------- | ----------------- | ------- | ---------------------------------------------------------------- |
|
|
3738
|
+
| `icon` | `string` | — | Material Symbols name (required). |
|
|
3739
|
+
| `label` | `string` | — | Accessible name (required: the button has no text). |
|
|
3740
|
+
| `filled` | `boolean` | `true` | Filled glyph; `false` draws the outline (an unfavorited star). |
|
|
3741
|
+
| `active` | `boolean` | `false` | Held in its hover look, e.g. while the menu it opens is open. |
|
|
3742
|
+
| `iconSize` | `18 \| 20` | `18` | Glyph size: 18 on a row, 20 on a page header. |
|
|
3743
|
+
| `surface` | `'mid' \| 'tint'` | `'mid'` | Hover fill: `slate-mid` on a row, `slate-tint` on a page header. |
|
|
3744
|
+
| `disabled` | `boolean` | `false` | Native `disabled`. |
|
|
3745
|
+
|
|
3746
|
+
### Events
|
|
3747
|
+
|
|
3748
|
+
None declared: the native `click` reaches the button. Inside `DsListRow` the click does not bubble to the row.
|
|
3749
|
+
|
|
3750
|
+
### Accessibility
|
|
3751
|
+
|
|
3752
|
+
- It is a real `<button type="button">`; the glyph is `aria-hidden` and `label` is the `aria-label`.
|
|
3753
|
+
- For a button that opens a menu, add `aria-haspopup="menu"` and `aria-expanded` yourself (the `trigger` slot of `DsPickerRowActions` hands you `open`).
|
|
3754
|
+
- Wrap it in a `DsTooltip` when the icon alone is not obvious (the star toggle).
|
|
3755
|
+
|
|
3756
|
+
---
|
|
3757
|
+
|
|
3603
3758
|
<!-- DsMenuItem · Navigation -->
|
|
3604
3759
|
|
|
3605
3760
|
## DsMenuItem
|
|
@@ -3646,6 +3801,65 @@ an icon-only rail. **Presentational only**: it renders as a real `<button>` and
|
|
|
3646
3801
|
|
|
3647
3802
|
---
|
|
3648
3803
|
|
|
3804
|
+
<!-- DsSidePanel · Navigation -->
|
|
3805
|
+
|
|
3806
|
+
## DsSidePanel
|
|
3807
|
+
|
|
3808
|
+
A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
3809
|
+
52px) when unpinned, and a **peek**: hover the rail and the panel opens to `width` **over** the
|
|
3810
|
+
content, with a 200ms width transition and a soft shadow, without moving anything. It is the contact
|
|
3811
|
+
list «Lists» panel; the Prospector filters could adopt it later.
|
|
3812
|
+
|
|
3813
|
+
**Presentational and controlled**: `pinned` is `v-model:pinned` and the consumer persists it. The
|
|
3814
|
+
height is `100%` of the parent: the consumer sizes the box.
|
|
3815
|
+
|
|
3816
|
+
### Props
|
|
3817
|
+
|
|
3818
|
+
| Prop | Type | Default | Description |
|
|
3819
|
+
| --------------- | ------------------ | ------- | ---------------------------------------------------------------------------------------------------- |
|
|
3820
|
+
| `label` | `string` | — | Landmark name of the `<aside>` (required). |
|
|
3821
|
+
| `title` | `string` | — | Header title (required), 18/700. |
|
|
3822
|
+
| `pinned` | `boolean` | `true` | Pinned open (`v-model:pinned`). |
|
|
3823
|
+
| `width` | `number \| string` | `248` | Width of the pinned panel and of the peek. A number is px; a string is any CSS length. |
|
|
3824
|
+
| `railWidth` | `number \| string` | `52` | Width of the rail, which is also the footprint while unpinned. |
|
|
3825
|
+
| `collapseLabel` | `string` | — | Accessible name of the header button while pinned (required). |
|
|
3826
|
+
| `expandLabel` | `string` | — | Accessible name of the rail's expand button, and of the header button while peeking (required). |
|
|
3827
|
+
| `railLabel` | `string` | `''` | Vertical text of the rail (12/700, 2px letter-spacing, reads bottom to top). Empty = none. |
|
|
3828
|
+
| `railIcon` | `string` | `''` | Material Symbols name of the 20px icon below the rail label. Empty = none. |
|
|
3829
|
+
| `held` | `boolean` | `false` | Keeps the peek open after the pointer leaves, e.g. while a teleported menu opened from inside is up. |
|
|
3830
|
+
|
|
3831
|
+
### Events
|
|
3832
|
+
|
|
3833
|
+
| Event | Payload | When |
|
|
3834
|
+
| --------------- | --------- | ------------------------------------------------------------------------------------------ |
|
|
3835
|
+
| `update:pinned` | `boolean` | The expand (`true`) or collapse (`false`) button was used. The panel does not flip itself. |
|
|
3836
|
+
| `peek-change` | `boolean` | The unpinned panel opened over the content (`true`) or closed (`false`). |
|
|
3837
|
+
|
|
3838
|
+
### Slots
|
|
3839
|
+
|
|
3840
|
+
| Slot | Description |
|
|
3841
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
3842
|
+
| 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. |
|
|
3843
|
+
| `header-actions` | Optional, between the title and the pin button. |
|
|
3844
|
+
|
|
3845
|
+
### Behaviour
|
|
3846
|
+
|
|
3847
|
+
- **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.
|
|
3848
|
+
- The panel stays **mounted** while unpinned (inert and invisible), so its scroll, search text and open menus survive pinning and unpinning.
|
|
3849
|
+
- While peeking, the header button reads `expandLabel` (keep it open): it emits `update:pinned` with `true`.
|
|
3850
|
+
- 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`.
|
|
3851
|
+
- 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.
|
|
3852
|
+
- Unmounting while peeking emits `peek-change` with `false`, so a consumer's state does not stay stuck.
|
|
3853
|
+
- The content is never pushed: the footprint of an unpinned panel is `railWidth`.
|
|
3854
|
+
- **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.
|
|
3855
|
+
|
|
3856
|
+
### Accessibility
|
|
3857
|
+
|
|
3858
|
+
- An `<aside>` landmark named by `label`; both the rail's expand button and the header button have `aria-label` and `aria-expanded`.
|
|
3859
|
+
- 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.
|
|
3860
|
+
|
|
3861
|
+
---
|
|
3862
|
+
|
|
3649
3863
|
<!-- DsWizardStepper · Navigation -->
|
|
3650
3864
|
|
|
3651
3865
|
## DsWizardStepper
|
|
@@ -3790,6 +4004,68 @@ already fixed.
|
|
|
3790
4004
|
|
|
3791
4005
|
---
|
|
3792
4006
|
|
|
4007
|
+
<!-- DsOrganizerDialog · Overlays -->
|
|
4008
|
+
|
|
4009
|
+
## DsOrganizerDialog
|
|
4010
|
+
|
|
4011
|
+
The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
4012
|
+
palette and Cancel + submit. Nothing in it is specific to one noun (the contact list uses it for
|
|
4013
|
+
folders, tags will reuse it): every string arrives by props. `DsOrganizerForm` is the in-panel
|
|
4014
|
+
sibling for the pickers; both share the same validation rules.
|
|
4015
|
+
|
|
4016
|
+
**Presentational and controlled**: `name` / `color` come in by props, every change goes out as
|
|
4017
|
+
`update:name` / `update:color` (`v-model:name`, `v-model:color`). The dialog **never closes itself**:
|
|
4018
|
+
`close` is a request (Cancel, X, Escape, backdrop) and `submit` hands you `{ name, color }` (name
|
|
4019
|
+
trimmed). Persisting, closing and the back's errors are the consumer's job.
|
|
4020
|
+
|
|
4021
|
+
### Props
|
|
4022
|
+
|
|
4023
|
+
| Prop | Type | Default | Description |
|
|
4024
|
+
| ------------------ | ---------- | -------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
4025
|
+
| `open` | `boolean` | `false` | |
|
|
4026
|
+
| `title` | `string` | — | «New folder» / «Edit folder» (required). |
|
|
4027
|
+
| `name` | `string` | `''` | The name field (`v-model:name`). |
|
|
4028
|
+
| `color` | `string` | `''` | The selected swatch (`v-model:color`). |
|
|
4029
|
+
| `colors` | `string[]` | — | Swatches, hex strings, 8 per row (the DS palette is 3 × 8). The consumer owns the palette (required). |
|
|
4030
|
+
| `nameLabel` | `string` | — | Label of the name field (required). |
|
|
4031
|
+
| `colorLabel` | `string` | — | Label of the palette (required). |
|
|
4032
|
+
| `namePlaceholder` | `string` | `''` | |
|
|
4033
|
+
| `submitLabel` | `string` | — | «Create folder» / «Save changes» (required). |
|
|
4034
|
+
| `cancelLabel` | `string` | — | (required). |
|
|
4035
|
+
| `closeLabel` | `string` | — | Accessible name of the X (required). |
|
|
4036
|
+
| `loading` | `boolean` | `false` | Spinner on the submit; every submit path is blocked, Cancel is disabled and `close` is not emitted. |
|
|
4037
|
+
| `errorMissingName` | `string` | `'Name is required'` | Shown under the field after a submit attempt with an empty name. |
|
|
4038
|
+
| `errorTooLongName` | `string` | `'Name is too long'` | Shown after a submit attempt when the trimmed name is over `maxNameLength`. |
|
|
4039
|
+
| `maxNameLength` | `number` | `128` | Also the native `maxlength` of the field. |
|
|
4040
|
+
| `errorMessage` | `string` | `''` | An error from outside (a duplicate name); shown under the field when the dialog has none of its own. |
|
|
4041
|
+
| `originalName` | `string` | `undefined` | Edit mode: the name it opened with. Set = the submit is disabled until the name or the colour changes. |
|
|
4042
|
+
| `originalColor` | `string` | `undefined` | Edit mode: the colour it opened with, compared case-insensitively. Needs `originalName`. |
|
|
4043
|
+
| `counterThreshold` | `number` | `19` | The `{n}/{max}` counter shows from `maxNameLength - counterThreshold` characters (109/128 by default). |
|
|
4044
|
+
|
|
4045
|
+
### Events
|
|
4046
|
+
|
|
4047
|
+
| Event | Payload | When |
|
|
4048
|
+
| -------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
4049
|
+
| `update:name` | `string` | Every change of the field. |
|
|
4050
|
+
| `update:color` | `string` | A swatch was picked (click or arrow keys). |
|
|
4051
|
+
| `submit` | `{ name: string; color: string }` | Valid, changed (edit mode) and not loading: the button or Enter in the field. |
|
|
4052
|
+
| `close` | — | Cancel, the X, Escape or the backdrop (`DsModal` defaults). Never while `loading`: a request in flight can't be abandoned from the dialog. |
|
|
4053
|
+
|
|
4054
|
+
### Behaviour
|
|
4055
|
+
|
|
4056
|
+
- **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.
|
|
4057
|
+
- In **edit mode** (`originalName` set) the submit is disabled, and Enter does nothing, until something changed.
|
|
4058
|
+
- The helper row under the field holds the error (left) and the counter (right, `aria-live="polite"`) and reserves its line, so nothing jumps.
|
|
4059
|
+
- 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.
|
|
4060
|
+
- The name field takes the focus on open, caret at the end.
|
|
4061
|
+
|
|
4062
|
+
### Differences from the design prototype (DS wins)
|
|
4063
|
+
|
|
4064
|
+
- 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).
|
|
4065
|
+
- The submit is a `DsButton` primary `large` (36px), not the prototype's hand-made 40px button.
|
|
4066
|
+
|
|
4067
|
+
---
|
|
4068
|
+
|
|
3793
4069
|
<!-- DsPopover · Overlays -->
|
|
3794
4070
|
|
|
3795
4071
|
## 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
|
|
@@ -61,9 +62,13 @@
|
|
|
61
62
|
- DsSelect (Forms): Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
62
63
|
- DsSwitch (Forms): On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
63
64
|
- DsTextarea (Forms): Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|
|
65
|
+
- DsListRow (Navigation): A selectable row of a navigation list: leading icon, label, a `trailing` badge area and `actions`
|
|
66
|
+
- 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
67
|
- DsMenuItem (Navigation): Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
68
|
+
- DsSidePanel (Navigation): A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
65
69
|
- DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
66
70
|
- DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
71
|
+
- DsOrganizerDialog (Overlays): The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
67
72
|
- DsPopover (Overlays): Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
68
73
|
- DsFullProfile (Profile): The body of a full profile, shared by the prospector's drawer and the extension's panel: the
|
|
69
74
|
- DsProfileActionBar (Profile): The action area of a full profile — the design export's `ActionBar`.
|
package/package.json
CHANGED
package/src/icons/manifest.json
CHANGED
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
"keyboard_arrow_up": {
|
|
99
99
|
"families": ["outlined", "rounded"]
|
|
100
100
|
},
|
|
101
|
+
"keyboard_double_arrow_left": {
|
|
102
|
+
"families": ["outlined", "rounded"]
|
|
103
|
+
},
|
|
104
|
+
"keyboard_double_arrow_right": {
|
|
105
|
+
"families": ["outlined", "rounded"]
|
|
106
|
+
},
|
|
101
107
|
"label": {
|
|
102
108
|
"families": ["outlined", "rounded"]
|
|
103
109
|
},
|
|
@@ -107,6 +113,9 @@
|
|
|
107
113
|
"language": {
|
|
108
114
|
"families": ["outlined", "rounded"]
|
|
109
115
|
},
|
|
116
|
+
"link": {
|
|
117
|
+
"families": ["outlined", "rounded"]
|
|
118
|
+
},
|
|
110
119
|
"lock": {
|
|
111
120
|
"families": ["outlined", "rounded"]
|
|
112
121
|
},
|
|
@@ -137,6 +146,9 @@
|
|
|
137
146
|
"send": {
|
|
138
147
|
"families": ["outlined", "rounded"]
|
|
139
148
|
},
|
|
149
|
+
"star": {
|
|
150
|
+
"families": ["outlined", "rounded"]
|
|
151
|
+
},
|
|
140
152
|
"swap_vert": {
|
|
141
153
|
"families": ["outlined", "rounded"]
|
|
142
154
|
},
|