@salesql/sql_components_vue3 3.7.0 → 3.8.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.es.js +1759 -1533
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsAvatar/DsAvatar.types.d.ts +1 -0
- package/dist/ui/DsAvatar/DsAvatar.vue.d.ts +3 -0
- package/dist/ui/DsProfileCard/DsProfileCard.types.d.ts +7 -0
- package/dist/ui/DsProfileCard/DsProfileCard.vue.d.ts +12 -3
- package/dist/ui/DsProfileHero/DsProfileHero.types.d.ts +19 -0
- package/dist/ui/DsProfileHero/DsProfileHero.vue.d.ts +78 -0
- package/dist/ui/DsProfileHero/index.d.ts +2 -0
- package/dist/ui/DsProfileKvRow/DsProfileKvRow.types.d.ts +15 -0
- package/dist/ui/DsProfileKvRow/DsProfileKvRow.vue.d.ts +31 -0
- package/dist/ui/DsProfileKvRow/index.d.ts +2 -0
- package/dist/ui/DsProfileLockedCard/DsProfileLockedCard.types.d.ts +8 -0
- package/dist/ui/DsProfileLockedCard/DsProfileLockedCard.vue.d.ts +30 -0
- package/dist/ui/DsProfileLockedCard/index.d.ts +2 -0
- package/dist/ui/DsProfileTimelineRow/DsProfileTimelineRow.types.d.ts +10 -0
- package/dist/ui/DsProfileTimelineRow/DsProfileTimelineRow.vue.d.ts +40 -0
- package/dist/ui/DsProfileTimelineRow/index.d.ts +2 -0
- package/llms-full.txt +259 -29
- package/llms.txt +4 -0
- package/package.json +2 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
icon: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
hint: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
icon: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
hint: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
hint: string;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface DsProfileTimelineRowProps {
|
|
2
|
+
/** Logo URL. Empty, or failing to load, falls back to a placeholder box. */
|
|
3
|
+
logo?: string;
|
|
4
|
+
/** Job title / degree. */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Company / school name. Empty → not rendered. */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** Date range, already formatted by the app. Empty → not rendered. */
|
|
9
|
+
dates?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
logo: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
subtitle: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
dates: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
logo: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
subtitle: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
dates: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
subtitle: string;
|
|
37
|
+
logo: string;
|
|
38
|
+
dates: string;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
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.8.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
|
|
|
@@ -37,7 +37,7 @@ Components that draw an icon emit `<i class="material-symbols-filled">{ligature}
|
|
|
37
37
|
|
|
38
38
|
Components size their own glyphs (their scoped rules outrank the 20px default), so the class only has to supply the family and fill. Consumers with a `#leading`/`#trailing` slot may pass any element they like instead.
|
|
39
39
|
|
|
40
|
-
## Components (
|
|
40
|
+
## Components (50)
|
|
41
41
|
|
|
42
42
|
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
43
43
|
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
@@ -85,6 +85,10 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
85
85
|
- **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
86
86
|
- **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
87
87
|
- **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
88
|
+
- **DsProfileHero** (Profile) — The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
|
|
89
|
+
- **DsProfileKvRow** (Profile) — One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
|
|
90
|
+
- **DsProfileLockedCard** (Profile) — The "locked" stub shown instead of Metadata / About / Experience / Education before a
|
|
91
|
+
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
88
92
|
|
|
89
93
|
---
|
|
90
94
|
<!-- DsCompanyCard · Company -->
|
|
@@ -817,20 +821,21 @@ only**: no events, no interaction.
|
|
|
817
821
|
|
|
818
822
|
### Props
|
|
819
823
|
|
|
820
|
-
| Prop | Type | Default | Description
|
|
821
|
-
| ------------ | ------------------ | ----------- |
|
|
822
|
-
| `image` | `string` | `''` | Image URL. When set, renders an `<img>` (highest priority over initials/placeholder).
|
|
823
|
-
| `firstName` | `string` | `''` | Used with `lastName` to compute initials and seed the color hash.
|
|
824
|
-
| `lastName` | `string` | `''` | See `firstName`.
|
|
825
|
-
| `letters` | `string` | `''` | Explicit initials — overrides the computed `firstName`+`lastName` initials when non-empty.
|
|
826
|
-
| `uid` | `string` | `''` | Seed for the deterministic background color hash (falls back to the name, then `letters`).
|
|
827
|
-
| `size` | `number` | `40` | Square box size in px (used for both width and height unless overridden).
|
|
828
|
-
| `width` | `number` | `undefined` | Explicit width in px — overrides `size` on that axis.
|
|
829
|
-
| `height` | `number` | `undefined` | Explicit height in px — overrides `size` on that axis.
|
|
830
|
-
| `textSize` | `number` | `undefined` | Initials font-size in px — overrides the computed ~40%-of-box value.
|
|
831
|
-
| `fontWeight` | `number \| string` | `undefined` | Initials font-weight — overrides the default token weight (900).
|
|
832
|
-
| `circular` | `boolean` | `false` | Fully round avatar (vs the default rounded-square). Per the DS, reserve this for the logged-in user.
|
|
833
|
-
| `
|
|
824
|
+
| Prop | Type | Default | Description |
|
|
825
|
+
| ------------ | ------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
826
|
+
| `image` | `string` | `''` | Image URL. When set, renders an `<img>` (highest priority over initials/placeholder). |
|
|
827
|
+
| `firstName` | `string` | `''` | Used with `lastName` to compute initials and seed the color hash. |
|
|
828
|
+
| `lastName` | `string` | `''` | See `firstName`. |
|
|
829
|
+
| `letters` | `string` | `''` | Explicit initials — overrides the computed `firstName`+`lastName` initials when non-empty. |
|
|
830
|
+
| `uid` | `string` | `''` | Seed for the deterministic background color hash (falls back to the name, then `letters`). |
|
|
831
|
+
| `size` | `number` | `40` | Square box size in px (used for both width and height unless overridden). |
|
|
832
|
+
| `width` | `number` | `undefined` | Explicit width in px — overrides `size` on that axis. |
|
|
833
|
+
| `height` | `number` | `undefined` | Explicit height in px — overrides `size` on that axis. |
|
|
834
|
+
| `textSize` | `number` | `undefined` | Initials font-size in px — overrides the computed ~40%-of-box value. |
|
|
835
|
+
| `fontWeight` | `number \| string` | `undefined` | Initials font-weight — overrides the default token weight (900). |
|
|
836
|
+
| `circular` | `boolean` | `false` | Fully round avatar (vs the default rounded-square). Per the DS, reserve this for the logged-in user. |
|
|
837
|
+
| `accent` | `boolean` | `false` | Initials use the fixed accent tone (`colors.$accent-bg` / `colors.$accent-shadow`) instead of the per-person hashed color. |
|
|
838
|
+
| `alt` | `string` | `undefined` | Accessible label for the image variant; falls back to the derived name/letters when omitted. |
|
|
834
839
|
|
|
835
840
|
### Accessibility
|
|
836
841
|
|
|
@@ -842,12 +847,21 @@ only**: no events, no interaction.
|
|
|
842
847
|
- Placeholder variant (no image and no initials): `aria-hidden="true"`, since there is
|
|
843
848
|
nothing meaningful to announce.
|
|
844
849
|
|
|
850
|
+
### Broken images
|
|
851
|
+
|
|
852
|
+
The `<img>` listens for its own `error` event: when the URL fails to load, the avatar
|
|
853
|
+
falls back to the initials variant (or the placeholder, if there are no initials either)
|
|
854
|
+
instead of showing the browser's broken-image icon. The error state resets whenever
|
|
855
|
+
`image` changes, so a later successful URL renders normally again.
|
|
856
|
+
|
|
845
857
|
### When to use
|
|
846
858
|
|
|
847
859
|
- Contact/user avatars in lists, headers, and cards — pass `uid` so the color hash stays
|
|
848
860
|
stable per person across renders.
|
|
849
861
|
- Reserve `circular` for the current/logged-in user per the design system convention;
|
|
850
862
|
other contacts use the default rounded-square shape.
|
|
863
|
+
- Reserve `accent` for contexts that want a consistent, on-brand tone regardless of the
|
|
864
|
+
person (e.g. `DsProfileHero`), instead of the per-person hashed color.
|
|
851
865
|
|
|
852
866
|
---
|
|
853
867
|
|
|
@@ -1374,14 +1388,15 @@ is a field of `DsProfileCompanyCard` (contract §3.1).
|
|
|
1374
1388
|
|
|
1375
1389
|
### Props
|
|
1376
1390
|
|
|
1377
|
-
| Prop | Type | Default | Description
|
|
1378
|
-
| ------------- | ---------------- | ------- |
|
|
1379
|
-
| `icon` | `string` | — | Material Symbols glyph before the title (required).
|
|
1380
|
-
| `title` | `string` | — | The card's name, translated by the app; rendered uppercase (required).
|
|
1381
|
-
| `count` | `number \| null` | `null` | Shown after the title (`0` included). `null` → none.
|
|
1382
|
-
| `padded` | `boolean` | `true` | Pads the body `10px 14px 12px`. Off for rows that run edge to edge.
|
|
1383
|
-
| `collapsible` | `boolean` | `false` | The header becomes a button that folds the body, with a caret.
|
|
1384
|
-
| `open` | `boolean` | `true` | Body shown, when collapsible (`v-model:open`). Ignored otherwise.
|
|
1391
|
+
| Prop | Type | Default | Description |
|
|
1392
|
+
| ------------- | ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1393
|
+
| `icon` | `string` | — | Material Symbols glyph before the title (required). |
|
|
1394
|
+
| `title` | `string` | — | The card's name, translated by the app; rendered uppercase (required). |
|
|
1395
|
+
| `count` | `number \| null` | `null` | Shown after the title (`0` included). `null` → none. |
|
|
1396
|
+
| `padded` | `boolean` | `true` | Pads the body `10px 14px 12px`. Off for rows that run edge to edge. |
|
|
1397
|
+
| `collapsible` | `boolean` | `false` | The header becomes a button that folds the body, with a caret. |
|
|
1398
|
+
| `open` | `boolean` | `true` | Body shown, when collapsible (`v-model:open`). Ignored otherwise. |
|
|
1399
|
+
| `countHint` | `string` | `''` | Explains a count that may be approximate. Non-empty → the count becomes a focusable tooltip trigger. Empty → renders exactly as before. |
|
|
1385
1400
|
|
|
1386
1401
|
### Events
|
|
1387
1402
|
|
|
@@ -1402,6 +1417,11 @@ is a field of `DsProfileCompanyCard` (contract §3.1).
|
|
|
1402
1417
|
- Collapsible: the heading is a real `<button>` with `aria-expanded` / `aria-controls`; the
|
|
1403
1418
|
actions sit **outside** it (a control inside a button is invalid markup), after the caret.
|
|
1404
1419
|
The export never combines the two: its collapsible cards have no actions.
|
|
1420
|
+
- A count with `countHint`: the tooltip's content is the hint, and the count itself gets
|
|
1421
|
+
`tabindex="0"` so keyboard users reach it too (mirrors `DsProfileLockedCard`). Without a
|
|
1422
|
+
hint the count stays exactly as before — no tooltip, not focusable. Same caveat as
|
|
1423
|
+
actions: combining `collapsible` with a `countHint` nests a focusable element inside the
|
|
1424
|
+
toggle `<button>`, which the export never does either — avoid pairing the two.
|
|
1405
1425
|
|
|
1406
1426
|
### Design parity (export `ProfileCard`)
|
|
1407
1427
|
|
|
@@ -1410,6 +1430,10 @@ Ring 1px `slate-tint`, radius 6, white; header `10px 14px`, gap 8; glyph 17px an
|
|
|
1410
1430
|
`#b6bbc0`; caret 17px grey. Off-scale values (11px, 17px) follow the export, as DsCompanyCard's
|
|
1411
1431
|
(Diego, 2026-09-23). No deltas.
|
|
1412
1432
|
|
|
1433
|
+
`countHint` is not in the design export — it's a library-only addition for a product
|
|
1434
|
+
concern (backend counters that can be one off from what's actually revealed), layered on
|
|
1435
|
+
top of the export's chrome without changing the count's own look.
|
|
1436
|
+
|
|
1413
1437
|
---
|
|
1414
1438
|
|
|
1415
1439
|
<!-- DsRow · Data -->
|
|
@@ -2216,11 +2240,12 @@ consumer's job (frontend-app's `usePersistedWidth`).
|
|
|
2216
2240
|
|
|
2217
2241
|
### Slots
|
|
2218
2242
|
|
|
2219
|
-
| Slot
|
|
2220
|
-
|
|
|
2221
|
-
| default
|
|
2222
|
-
| `header`
|
|
2223
|
-
| `
|
|
2243
|
+
| Slot | Description |
|
|
2244
|
+
| --------- | -------------------------------------------------------------------------------------------- |
|
|
2245
|
+
| default | Panel body. |
|
|
2246
|
+
| `header` | Replaces the default title element (the × button stays). |
|
|
2247
|
+
| `actions` | Consumer actions (share, open-in-new…), before the × close, in the softer `slate-soft` grey. |
|
|
2248
|
+
| `footer` | Optional action row; omitted entirely when not provided. |
|
|
2224
2249
|
|
|
2225
2250
|
### Events
|
|
2226
2251
|
|
|
@@ -2401,3 +2426,208 @@ viewport-only check would miss a row hidden by a scroller that is itself on scre
|
|
|
2401
2426
|
**1px grey ring** (`slate-tint`), `spacing(1)` (8px) padding, card radius and the dropdown
|
|
2402
2427
|
shadow — the values carried over from the `.el-popper.card-popover` override. Grey, never
|
|
2403
2428
|
the accent.
|
|
2429
|
+
|
|
2430
|
+
---
|
|
2431
|
+
|
|
2432
|
+
<!-- DsProfileHero · Profile -->
|
|
2433
|
+
|
|
2434
|
+
## DsProfileHero
|
|
2435
|
+
|
|
2436
|
+
The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
|
|
2437
|
+
design export's `ProfileHero` (`shared/ContactData.jsx`), SALESQL-3298 — used in the
|
|
2438
|
+
prospector, full-profile and contact-list drawers, and in the extension.
|
|
2439
|
+
|
|
2440
|
+
### Props
|
|
2441
|
+
|
|
2442
|
+
| Prop | Type | Default | Description |
|
|
2443
|
+
| --------------- | -------- | ----------- | ------------------------------------------------------------------------ |
|
|
2444
|
+
| `image` | `string` | `''` | Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. |
|
|
2445
|
+
| `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
|
|
2446
|
+
| `lastName` | `string` | `''` | See `firstName`. |
|
|
2447
|
+
| `headline` | `string` | `''` | Job title / one-line summary. Empty → the headline row is not rendered. |
|
|
2448
|
+
| `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
|
|
2449
|
+
| `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
|
|
2450
|
+
| `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
|
|
2451
|
+
|
|
2452
|
+
### Slots
|
|
2453
|
+
|
|
2454
|
+
| Slot | Where | Use |
|
|
2455
|
+
| --------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
2456
|
+
| `actions` | Absolutely positioned, top-right (8px inset) | The extension's `open_in_new` "open in contact list" icon, or none. No built-in open button — the app decides. |
|
|
2457
|
+
|
|
2458
|
+
### Composition
|
|
2459
|
+
|
|
2460
|
+
- **Avatar:** `DsAvatar` at 64px, rounded-square (not circular), `accent` tone (fixed
|
|
2461
|
+
background/text, not the per-person hash — a photo header wants a calmer, on-brand
|
|
2462
|
+
look), 20px / 800 initials. The radius is overridden to `r.$radius-card` (6px) here,
|
|
2463
|
+
since DsAvatar's own default is the smaller `r.$radius-control` (4px).
|
|
2464
|
+
- **Name:** `{firstName} {lastName}`, trimmed — a lone first or last name renders without
|
|
2465
|
+
a stray leading/trailing space. Gains `padding-right: 24px` when `#actions` is present,
|
|
2466
|
+
so a long name never runs under the icon.
|
|
2467
|
+
- **Headline:** single line, ellipsized. Hidden entirely when empty (no empty row, no
|
|
2468
|
+
empty tooltip wrapper).
|
|
2469
|
+
|
|
2470
|
+
### Tooltip: only when actually truncated
|
|
2471
|
+
|
|
2472
|
+
The headline is wrapped in a `DsTooltip`, but **a tooltip that repeats the fully visible
|
|
2473
|
+
text is noise** (Diego's rule) — so it only activates when the text is genuinely cut off.
|
|
2474
|
+
On `mouseenter` / `focus` the component compares the headline `<span>`'s `scrollWidth` to
|
|
2475
|
+
its `clientWidth`; DsTooltip's own `disabled` prop is driven by that result (mirroring
|
|
2476
|
+
how `DsSavedButton` gates its tooltip with `:disabled="!tooltip || open"`), so the
|
|
2477
|
+
`content` prop stays the full headline throughout — only `disabled` changes. It's also
|
|
2478
|
+
re-measured on mount and whenever `headline` changes, so the very first hover isn't the
|
|
2479
|
+
only path to a correct state.
|
|
2480
|
+
|
|
2481
|
+
### Accessibility
|
|
2482
|
+
|
|
2483
|
+
- The LinkedIn badge is a real `<a>` (`target="_blank"`, `rel="noopener noreferrer"`) with
|
|
2484
|
+
`aria-label` — it stays keyboard-reachable, and "in" is LinkedIn's mark, not
|
|
2485
|
+
translatable copy.
|
|
2486
|
+
- `#actions` content is entirely the app's responsibility, including its own
|
|
2487
|
+
`aria-label`s (see the icon-only example above).
|
|
2488
|
+
|
|
2489
|
+
### Design parity (export `ProfileHero`)
|
|
2490
|
+
|
|
2491
|
+
Root: flex row, gap 14, padding 14, white, 1px `slate-tint` border, radius 6. Avatar 64,
|
|
2492
|
+
radius 6, accent `colors.$accent-bg` / `colors.$accent-shadow`, initials 20px / 800,
|
|
2493
|
+
letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2. Headline 12.5px
|
|
2494
|
+
(off-scale, follows the export), `slate-main`, line-height 1.4. Links row: gap 8,
|
|
2495
|
+
margin-top 4. LinkedIn badge 22 × 22, radius 4 (`DsProfileCompanyCard`'s value, not
|
|
2496
|
+
`DsCompanyCard`'s off-scale 5), 11px / 800.
|
|
2497
|
+
|
|
2498
|
+
**Logged delta:** the export's `onOpen` is a hardcoded icon action baked into
|
|
2499
|
+
`ProfileHero` itself; here it is the generic `#actions` slot instead, so the library
|
|
2500
|
+
ships no opinion on what icon or behavior the open action has — the story above
|
|
2501
|
+
reproduces it with a plain button.
|
|
2502
|
+
|
|
2503
|
+
---
|
|
2504
|
+
|
|
2505
|
+
<!-- DsProfileKvRow · Profile -->
|
|
2506
|
+
|
|
2507
|
+
## DsProfileKvRow
|
|
2508
|
+
|
|
2509
|
+
One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
|
|
2510
|
+
(`shared/ContactData.jsx` L1407), SALESQL-3298. Used by `DsProfileCompanyCard`'s own field
|
|
2511
|
+
rows today, and standalone for any full-profile card that needs a plain "LABEL — value"
|
|
2512
|
+
list (e.g. an unlocked Metadata card: Industry, Location, Folder).
|
|
2513
|
+
|
|
2514
|
+
### Props
|
|
2515
|
+
|
|
2516
|
+
| Prop | Type | Default | Description |
|
|
2517
|
+
| ------- | -------- | ------- | ----------------------------------------------------------------------------- |
|
|
2518
|
+
| `label` | `string` | — | Row label, already translated by the app. Rendered uppercase (required). |
|
|
2519
|
+
| `value` | `string` | `''` | Row value. Empty → the row renders nothing (the export returns `null`). |
|
|
2520
|
+
| `href` | `string` | `''` | Turns the value into a real link (accent color, new tab). Empty → plain text. |
|
|
2521
|
+
|
|
2522
|
+
### The top rule: no `first` prop
|
|
2523
|
+
|
|
2524
|
+
A row only draws its 1px top rule when it's **not** the first row among its own kind —
|
|
2525
|
+
implemented with `&:not(:first-child)` in scoped CSS, not a boolean prop the consumer has
|
|
2526
|
+
to compute. Render a list of `DsProfileKvRow`s in sequence (as the variants above do,
|
|
2527
|
+
including one with an empty `value` in the middle) and the rule places itself correctly.
|
|
2528
|
+
|
|
2529
|
+
### Design parity (export `ProfileKvRow`)
|
|
2530
|
+
|
|
2531
|
+
Row: `gap: 12px`, `align-items: baseline`, `padding: 7px 0`. Label: `width: 92px`, `10.5px
|
|
2532
|
+
/ 700`, letter-spacing `.5px`, uppercase, grey. Value: `13.5px / 600`, slate, `line-height:
|
|
2533
|
+
1.45`, `word-break: break-word`; the accent color and pointer cursor kick in only with
|
|
2534
|
+
`href`.
|
|
2535
|
+
|
|
2536
|
+
**Logged delta:** the export's `ProfileKvRow` takes a `link` **boolean** and only ever
|
|
2537
|
+
recolors the `<span>` — it never renders a real `<a>`, so nothing is actually clickable or
|
|
2538
|
+
keyboard-reachable in the design. This component takes the URL directly (`href`) and
|
|
2539
|
+
renders a genuine link instead, the same upgrade `DsCompanyCard` and
|
|
2540
|
+
`DsProfileCompanyCard` already made for their own links.
|
|
2541
|
+
|
|
2542
|
+
### Not refactored into `DsProfileCompanyCard`
|
|
2543
|
+
|
|
2544
|
+
`DsProfileCompanyCard`'s field rows predate this component and were **not** refactored to
|
|
2545
|
+
render it, because their border logic isn't reproducible with a pure `:not(:first-child)`
|
|
2546
|
+
rule: when its `about` block is present, its _first_ field row still draws a top rule (the
|
|
2547
|
+
About block already drew its own, so the field section needs its own separating line
|
|
2548
|
+
too) — a case that depends on a sibling OUTSIDE this component's own element type, which
|
|
2549
|
+
`&:not(:first-child)` on `DsProfileKvRow` alone cannot see. See `DsProfileCompanyCard`'s
|
|
2550
|
+
own tests (`'sin About no hay bloque...'` / `'con About, ninguna fila es la primera...'`)
|
|
2551
|
+
for the exact behavior this would have broken.
|
|
2552
|
+
|
|
2553
|
+
---
|
|
2554
|
+
|
|
2555
|
+
<!-- DsProfileLockedCard · Profile -->
|
|
2556
|
+
|
|
2557
|
+
## DsProfileLockedCard
|
|
2558
|
+
|
|
2559
|
+
The "locked" stub shown instead of Metadata / About / Experience / Education before a
|
|
2560
|
+
contact is unlocked — the design export's `ProfileLockedCard` (`shared/ContactData.jsx`
|
|
2561
|
+
L1395), SALESQL-3298.
|
|
2562
|
+
|
|
2563
|
+
### Props
|
|
2564
|
+
|
|
2565
|
+
| Prop | Type | Default | Description |
|
|
2566
|
+
| ------- | -------- | ------- | ----------------------------------------------------------------------------------- |
|
|
2567
|
+
| `icon` | `string` | — | Material Symbols glyph (filled family), e.g. `work` (required). |
|
|
2568
|
+
| `title` | `string` | — | The section's name, already translated. Rendered uppercase (required). |
|
|
2569
|
+
| `hint` | `string` | `''` | Tooltip explaining how to unlock. Empty → no tooltip, and the card isn't focusable. |
|
|
2570
|
+
|
|
2571
|
+
### Accessibility
|
|
2572
|
+
|
|
2573
|
+
The whole card is the tooltip's trigger. `DsTooltip` opens on hover **and on focus**
|
|
2574
|
+
(`focusin`), so with a `hint` the card itself gets `tabindex="0"` — a keyboard user can Tab
|
|
2575
|
+
to it and read the hint, same as hovering it. Without a `hint` the tooltip is `disabled`
|
|
2576
|
+
and the card is left out of the tab order entirely: a focusable stop with nothing to
|
|
2577
|
+
announce would be a trap, not an affordance.
|
|
2578
|
+
|
|
2579
|
+
### Lines up with `DsProfileCard`'s header — mostly
|
|
2580
|
+
|
|
2581
|
+
Same padding (`10px 14px`), gap (`8px`), border and radius (`6px`, `r.$radius-card`) as
|
|
2582
|
+
`DsProfileCard`'s header, so a locked card sits flush where an unlocked `DsProfileCard`
|
|
2583
|
+
would. **One intentional difference:** `DsProfileCard`'s icon and title read in the
|
|
2584
|
+
header-ink tone (`cd.$contact-data-header-ink`, `#5c6670`); here every glyph and the title
|
|
2585
|
+
read in the more muted mask ink (`cd.$contact-data-mask-ink`, `#b6bbc0`) throughout — the
|
|
2586
|
+
export draws it that way to read as **disabled**, not merely quiet.
|
|
2587
|
+
|
|
2588
|
+
### Design parity (export `ProfileLockedCard`)
|
|
2589
|
+
|
|
2590
|
+
Leading icon `17px`, muted. Title `11px / 700`, letter-spacing `.6px`, uppercase, muted.
|
|
2591
|
+
Trailing `lock` glyph `15px`, muted. Tooltip: `hint`, placement left, block. All values
|
|
2592
|
+
match the export exactly — no reconciliation needed here.
|
|
2593
|
+
|
|
2594
|
+
---
|
|
2595
|
+
|
|
2596
|
+
<!-- DsProfileTimelineRow · Profile -->
|
|
2597
|
+
|
|
2598
|
+
## DsProfileTimelineRow
|
|
2599
|
+
|
|
2600
|
+
One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
2601
|
+
(`shared/ContactData.jsx`), SALESQL-3298: a company/school logo, a title, and an optional
|
|
2602
|
+
subtitle and dates.
|
|
2603
|
+
|
|
2604
|
+
### Props
|
|
2605
|
+
|
|
2606
|
+
| Prop | Type | Default | Description |
|
|
2607
|
+
| ---------- | -------- | ------- | --------------------------------------------------------------------- |
|
|
2608
|
+
| `logo` | `string` | `''` | Logo URL. Empty, or failing to load, falls back to a placeholder box. |
|
|
2609
|
+
| `title` | `string` | — | Job title / degree (required). |
|
|
2610
|
+
| `subtitle` | `string` | `''` | Company / school name. Empty → not rendered. |
|
|
2611
|
+
| `dates` | `string` | `''` | Date range, already formatted by the app. Empty → not rendered. |
|
|
2612
|
+
|
|
2613
|
+
### Broken logos
|
|
2614
|
+
|
|
2615
|
+
The `<img>` listens for its own `error` event: a URL that fails to load falls back to the
|
|
2616
|
+
placeholder box (same surface as an empty `logo`) instead of the browser's broken-image
|
|
2617
|
+
icon. The error state resets whenever `logo` changes, mirroring `DsAvatar` and
|
|
2618
|
+
`DsCompanyLogo`'s own image-fallback behavior.
|
|
2619
|
+
|
|
2620
|
+
### The top rule: no `first` prop
|
|
2621
|
+
|
|
2622
|
+
Same technique as `DsProfileKvRow`: `&:not(:first-child)` draws the divider, so a list of
|
|
2623
|
+
rows in sequence never needs the consumer to flag the first one.
|
|
2624
|
+
|
|
2625
|
+
### Design parity
|
|
2626
|
+
|
|
2627
|
+
Export: `ProfileTimelineRow`, `shared/ContactData.jsx`. Every value here matches it
|
|
2628
|
+
exactly — row `gap: 10px` / `padding: 9px 0`; logo 30 × 30, radius 4 (`r.$radius-control`),
|
|
2629
|
+
`object-fit: contain`, 1px tint border, white background, `padding: 3px`, `box-sizing:
|
|
2630
|
+
border-box`; placeholder on the surface token (`colors.$slate-bg`, `#f6f6f6`) with the same
|
|
2631
|
+
1px tint border; title `13px / 700` in ink (`colors.$grey-10`), `line-height: 1.3`;
|
|
2632
|
+
subtitle `12.5px`, `colors.$slate-main`, `line-height: 1.35`; dates `11.5px`, grey
|
|
2633
|
+
(`cd.$contact-data-ink-muted`), `margin-top: 1px`.
|
package/llms.txt
CHANGED
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
- DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
51
51
|
- DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
52
52
|
- DsPopover (Overlays): Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
53
|
+
- DsProfileHero (Profile): The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
|
|
54
|
+
- DsProfileKvRow (Profile): One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
|
|
55
|
+
- DsProfileLockedCard (Profile): The "locked" stub shown instead of Metadata / About / Experience / Education before a
|
|
56
|
+
- DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
53
57
|
|
|
54
58
|
## Full documentation
|
|
55
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesql/sql_components_vue3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Librería de componentes Vue 3 (SalesQL)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "pnpm docs:generate && vite build && vue-tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
66
66
|
"docs:generate": "node scripts/generate-llms-docs.mjs",
|
|
67
|
+
"dev:link": "vite build --watch",
|
|
67
68
|
"stories": "histoire dev",
|
|
68
69
|
"build:stories": "histoire build",
|
|
69
70
|
"typecheck": "vue-tsc --noEmit",
|