@salesql/sql_components_vue3 3.29.0 → 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.
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsSidePanel } from './DsSidePanel.vue';
2
+ export * from './DsSidePanel.types';
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.29.0)
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 (70)
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`.
@@ -278,39 +283,43 @@ switches look with `variant` and `size`.
278
283
  The library knows nothing about campaigns or sending: it renders the list you pass and
279
284
  emits the intent.
280
285
 
286
+ A chosen campaign never leaves sight: when a search or a reload leaves it out of
287
+ `campaigns`, it stays checked on top of the list (above the spinner and the empty state too),
288
+ so Add never sends a campaign the user cannot see. One still listed keeps its place.
289
+
281
290
  ### Props
282
291
 
283
- | Prop | Type | Default | Description |
284
- | ------------------- | --------------------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------- |
285
- | `label` | `string` | — | Trigger label (required). |
286
- | `tooltip` | `string` | `''` | Empty = no tooltip. Leave it empty when it would only repeat the label (the export's tip does); it hides while the panel is open. |
287
- | `channelsLabel` | `string` | — | Caption above the radios ("Send to") (required). |
288
- | `channels` | `DsSequenceChannelOption[]` | — | `{ value: 'work' \| 'direct', label }` — the app passes the labels (required). |
289
- | `defaultChannel` | `'work' \| 'direct'` | `'work'` | Initially selected channel. |
290
- | `campaignsLabel` | `string` | `''` | Caption above the list ("Recent campaigns"). Empty = none. |
291
- | `campaigns` | `DsPickerOption[]` | — | The campaigns to offer (required). |
292
- | `selection` | `'multiple' \| 'single'` | `'multiple'` | `multiple`: checkboxes. `single`: radios, one campaign per Add. |
293
- | `loading` | `boolean` | `false` | The app is fetching campaigns: a spinner replaces the list and the empty state. The search stays usable. |
294
- | `loadingLabel` | `string` | `''` | Accessible name of the spinner. Empty = DsSpinner's own ("Loading"). |
295
- | `searchPlaceholder` | `string` | `''` | |
296
- | `emptyLabel` | `string` | `''` | Shown when the list is empty: no campaigns, or a search with no matches. |
297
- | `createLabel` | `string` | `''` | The empty state's CTA ("Create campaign"): a tertiary `DsButton` under `emptyLabel` that emits `create`. Empty = no CTA. |
298
- | `addLabel` | `string` | — | The confirm (required). |
299
- | `variant` | `'secondary' \| 'primary'` | `'secondary'` | `DsButton outline` (white, hairline ring) or `DsButton primary` (solid accent). |
300
- | `size` | `'medium' \| 'large'` | `'medium'` | 32px / 36px trigger. |
301
- | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) — the bulk-bar look beside `DsItemSelectorButton`. |
302
- | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 288px panel hangs from. |
303
- | `disabled` | `boolean` | `false` | |
304
- | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
292
+ | Prop | Type | Default | Description |
293
+ | ------------------- | --------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
294
+ | `label` | `string` | — | Trigger label (required). |
295
+ | `tooltip` | `string` | `''` | Empty = no tooltip. Leave it empty when it would only repeat the label (the export's tip does); it hides while the panel is open. |
296
+ | `channelsLabel` | `string` | — | Caption above the radios ("Send to") (required). |
297
+ | `channels` | `DsSequenceChannelOption[]` | — | `{ value: 'work' \| 'direct', label }` — the app passes the labels (required). |
298
+ | `defaultChannel` | `'work' \| 'direct'` | `'work'` | Initially selected channel. |
299
+ | `campaignsLabel` | `string` | `''` | Caption above the list ("Recent campaigns"). Empty = none. |
300
+ | `campaigns` | `DsPickerOption[]` | — | The campaigns to offer (required). |
301
+ | `selection` | `'multiple' \| 'single'` | `'multiple'` | `multiple`: checkboxes. `single`: radios, one campaign per Add. |
302
+ | `loading` | `boolean` | `false` | The app is fetching campaigns: a spinner replaces the list and the empty state, under any pinned chosen campaign. The search stays usable. |
303
+ | `loadingLabel` | `string` | `''` | Accessible name of the spinner. Empty = DsSpinner's own ("Loading"). |
304
+ | `searchPlaceholder` | `string` | `''` | |
305
+ | `emptyLabel` | `string` | `''` | Shown when the list is empty: no campaigns, or a search with no matches. |
306
+ | `createLabel` | `string` | `''` | The empty state's CTA ("Create campaign"): a tertiary `DsButton` under `emptyLabel` that emits `create`. Empty = no CTA. |
307
+ | `addLabel` | `string` | — | The confirm (required). |
308
+ | `variant` | `'secondary' \| 'primary'` | `'secondary'` | `DsButton outline` (white, hairline ring) or `DsButton primary` (solid accent). |
309
+ | `size` | `'medium' \| 'large'` | `'medium'` | 32px / 36px trigger. |
310
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) — the bulk-bar look beside `DsItemSelectorButton`. |
311
+ | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 288px panel hangs from. |
312
+ | `disabled` | `boolean` | `false` | |
313
+ | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
305
314
 
306
315
  ### Events
307
316
 
308
- | Event | Payload | When |
309
- | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
310
- | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. `campaigns` keeps the order they were chosen in (one item in `single`). |
311
- | `search` | `string` | Every keystroke, no debounce. The list also filters locally; an app that searches on the server debounces this and swaps `campaigns` (with `loading` while it waits). A chosen campaign survives the swap. |
312
- | `create` | `string` | The empty state's CTA was clicked. Payload: the search text, trimmed. Panel closes; the app owns creation (it navigates to Campaigns). |
313
- | `update:open` | `boolean` | The panel opened or closed. |
317
+ | Event | Payload | When |
318
+ | ------------- | -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
319
+ | `add` | `{ channel: 'work' \| 'direct', campaigns: DsPickerOption[] }` | Add clicked. Panel closes, selection resets. `campaigns` keeps the order they were chosen in (one item in `single`). |
320
+ | `search` | `string` | Every keystroke, no debounce. The list also filters locally; an app that searches on the server debounces this and swaps `campaigns` (with `loading` while it waits). A chosen campaign survives the swap and stays pinned on top. |
321
+ | `create` | `string` | The empty state's CTA was clicked. Payload: the search text, trimmed. Panel closes; the app owns creation (it navigates to Campaigns). |
322
+ | `update:open` | `boolean` | The panel opened or closed. |
314
323
 
315
324
  ### Accessibility
316
325
 
@@ -1134,6 +1143,65 @@ itself and never persists anything — `submit` hands you `{ name, color }` (nam
1134
1143
 
1135
1144
  ---
1136
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
+
1137
1205
  <!-- DsProfileGroupBar · Contact data -->
1138
1206
 
1139
1207
  ## DsProfileGroupBar
@@ -3277,6 +3345,10 @@ via `v-model` (its `modelValue` is the current string value).
3277
3345
  | `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
3278
3346
  | `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
3279
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. |
3280
3352
 
3281
3353
  ### Events
3282
3354
 
@@ -3287,6 +3359,7 @@ via `v-model` (its `modelValue` is the current string value).
3287
3359
  | `blur` | `FocusEvent` | The native input lost focus — fires even when focus only moved to the component's own password toggle. |
3288
3360
  | `change` | `Event` | Native `change` — fires on blur/Enter once the value actually changed (distinct from the continuous `update:modelValue`). |
3289
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. |
3290
3363
 
3291
3364
  ### Accessibility
3292
3365
 
@@ -3295,6 +3368,12 @@ via `v-model` (its `modelValue` is the current string value).
3295
3368
  - Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
3296
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.
3297
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
+
3298
3377
  ### When to use
3299
3378
 
3300
3379
  - Any single-line text/email/password/tel/number/url/search field in a form.
@@ -3596,6 +3675,86 @@ is the current string value).
3596
3675
 
3597
3676
  ---
3598
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
+
3599
3758
  <!-- DsMenuItem · Navigation -->
3600
3759
 
3601
3760
  ## DsMenuItem
@@ -3642,6 +3801,65 @@ an icon-only rail. **Presentational only**: it renders as a real `<button>` and
3642
3801
 
3643
3802
  ---
3644
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
+
3645
3863
  <!-- DsWizardStepper · Navigation -->
3646
3864
 
3647
3865
  ## DsWizardStepper
@@ -3786,6 +4004,68 @@ already fixed.
3786
4004
 
3787
4005
  ---
3788
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
+
3789
4069
  <!-- DsPopover · Overlays -->
3790
4070
 
3791
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.29.0",
3
+ "version": "3.30.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -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
  },