@salesql/sql_components_vue3 3.3.0 → 3.5.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 +4 -0
- package/dist/index.es.js +1592 -1414
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsCompanyCard/DsCompanyCard.types.d.ts +26 -0
- package/dist/ui/DsCompanyCard/DsCompanyCard.vue.d.ts +69 -0
- package/dist/ui/DsCompanyCard/index.d.ts +2 -0
- package/dist/ui/DsCompanyLogo/DsCompanyLogo.types.d.ts +8 -0
- package/dist/ui/DsCompanyLogo/DsCompanyLogo.vue.d.ts +32 -0
- package/dist/ui/DsCompanyLogo/index.d.ts +2 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +13 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +22 -2
- package/llms-full.txt +98 -2
- package/llms.txt +2 -0
- package/package.json +1 -1
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.5.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,8 +37,10 @@ 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 (42)
|
|
41
41
|
|
|
42
|
+
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
43
|
+
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
42
44
|
- **DsAddToSequence** (Contact data) — The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
43
45
|
- **DsContactCell** (Contact data) — The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
44
46
|
- **DsContactList** (Contact data) — The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|
|
@@ -81,6 +83,77 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
81
83
|
- **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
|
|
82
84
|
|
|
83
85
|
---
|
|
86
|
+
<!-- DsCompanyCard · Company -->
|
|
87
|
+
|
|
88
|
+
## DsCompanyCard
|
|
89
|
+
|
|
90
|
+
The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
91
|
+
(`prospector/ProspectorRedesignApp.jsx`), SALESQL-4056.
|
|
92
|
+
|
|
93
|
+
- **Header:** `DsCompanyLogo` (34px), the name, a globe link to the website (with a
|
|
94
|
+
tooltip) and LinkedIn's "in" badge.
|
|
95
|
+
- **Rows:** one per detail — glyph, uppercase label, value. A detail with an empty value
|
|
96
|
+
is **not rendered**, so a field the API did not send never shows blank. A detail with
|
|
97
|
+
`href` is a link in the accent ink (the export's "Website" row).
|
|
98
|
+
|
|
99
|
+
**Content only.** Put it in a `DsPopover` with `flush` (the panel draws the ring, radius
|
|
100
|
+
and shadow) and, inside a table or any clipping container, `teleported`:
|
|
101
|
+
|
|
102
|
+
```vue
|
|
103
|
+
<DsPopover v-model:open="open" placement="bottom-start" width="320px" flush teleported>
|
|
104
|
+
<template #trigger>…the company cell…</template>
|
|
105
|
+
<DsCompanyCard :name="company.name" :logo="company.logo" :details="details" />
|
|
106
|
+
</DsPopover>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
It knows nothing about the API payload: the app maps its company into `details` with its
|
|
110
|
+
own i18n labels.
|
|
111
|
+
|
|
112
|
+
### Props
|
|
113
|
+
|
|
114
|
+
| Prop | Type | Default | Description |
|
|
115
|
+
| --------------- | ------------------- | ------- | -------------------------------------------- |
|
|
116
|
+
| `name` | `string` | — | Company name (required). |
|
|
117
|
+
| `logo` | `string` | `''` | Logo URL; empty or failing → the initial. |
|
|
118
|
+
| `websiteUrl` | `string` | `''` | Header globe link. Empty → no globe. |
|
|
119
|
+
| `websiteLabel` | `string` | `''` | Globe tooltip + accessible name. |
|
|
120
|
+
| `linkedinUrl` | `string` | `''` | Header LinkedIn badge. Empty → no badge. |
|
|
121
|
+
| `linkedinLabel` | `string` | `''` | Badge accessible name. |
|
|
122
|
+
| `details` | `DsCompanyDetail[]` | `[]` | `{ id, icon, label, value, href? }` per row. |
|
|
123
|
+
|
|
124
|
+
### Deltas from the export
|
|
125
|
+
|
|
126
|
+
- **Chrome comes from `DsPopover`**: 6px radius and the dropdown shadow, not the export's
|
|
127
|
+
8px / `0 8px 28px`. Same verdict as the popover radius in SALESQL-3535 (kept).
|
|
128
|
+
|
|
129
|
+
Type follows the export exactly, even off the DS scale (Diego's review, 2026-09-23): row
|
|
130
|
+
labels 11px, the "in" badge 11px / 800, the row glyph 17px, the logo initial 800.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
<!-- DsCompanyLogo · Company -->
|
|
135
|
+
|
|
136
|
+
## DsCompanyLogo
|
|
137
|
+
|
|
138
|
+
A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
139
|
+
contained inside. When there is no logo **or it fails to load**, it shows the first
|
|
140
|
+
character of `name` in muted ink — the design export's `CompanyLogo` (SALESQL-4056).
|
|
141
|
+
|
|
142
|
+
Not `DsAvatar`: that one puts initials on a hashed colour and has no error fallback. A
|
|
143
|
+
broken logo URL is common (a private bucket answers 403), so the fallback lives here.
|
|
144
|
+
|
|
145
|
+
### Props
|
|
146
|
+
|
|
147
|
+
| Prop | Type | Default | Description |
|
|
148
|
+
| ------ | -------- | ------- | ----------------------------------------------------------------- |
|
|
149
|
+
| `src` | `string` | `''` | Logo URL. Empty or failing → the initial. |
|
|
150
|
+
| `name` | `string` | `''` | Its first character is the fallback (`?` when empty). |
|
|
151
|
+
| `size` | `number` | `36` | Box side in px. The design: 36 in the table cell, 34 in the card. |
|
|
152
|
+
|
|
153
|
+
The image is decorative (`alt=""`): the company name is always rendered next to it.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
84
157
|
<!-- DsAddToSequence · Contact data -->
|
|
85
158
|
|
|
86
159
|
## DsAddToSequence
|
|
@@ -2006,6 +2079,8 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
|
|
|
2006
2079
|
| `triggerOnClick` | `boolean` | `true` | Let the trigger slot toggle the panel. Off = consumer-driven. |
|
|
2007
2080
|
| `offset` | `string` | `''` | Moves the anchor along the trigger's cross axis (any CSS length; `%` = of the trigger box). The contact-data cell uses `'25%'`. |
|
|
2008
2081
|
| `flush` | `boolean` | `false` | Drops the 8px card padding for content with its own rows/dividers (e.g. `DsContactList`). |
|
|
2082
|
+
| `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
|
|
2083
|
+
| `block` | `boolean` | `false` | Root and trigger fill their container, so the whole surface opens the panel (a table cell painted as clickable end to end). |
|
|
2009
2084
|
|
|
2010
2085
|
### Placement
|
|
2011
2086
|
|
|
@@ -2033,6 +2108,27 @@ The bare sides keep their 3.1.0 meaning (centred), so this is purely additive.
|
|
|
2033
2108
|
> suffixed form — it reads only the side — so adopting it there later is a type change,
|
|
2034
2109
|
> not a rewrite.
|
|
2035
2110
|
|
|
2111
|
+
### Teleported
|
|
2112
|
+
|
|
2113
|
+
By default the panel is absolutely positioned **inside** the popover's root, so any
|
|
2114
|
+
ancestor with `overflow` other than `visible` cuts it. That is what happened to the
|
|
2115
|
+
prospector's company card: its cell and the table's scroller both clip, and only the top
|
|
2116
|
+
edge of the card showed (SALESQL-4056). `el-popover`, which DsPopover replaced there,
|
|
2117
|
+
teleported to `body` by default.
|
|
2118
|
+
|
|
2119
|
+
With `teleported`, the panel renders in `<body>` inside a fixed box that mirrors the root's
|
|
2120
|
+
rect, re-read on scroll (any container, capture phase) and resize. Placement, `offset` and
|
|
2121
|
+
the viewport clamp resolve against that box exactly as against the root. Outside-press and
|
|
2122
|
+
Escape keep working (the panel is checked on its own). Off by default: nothing existing moves.
|
|
2123
|
+
|
|
2124
|
+
Teleported, the panel also **asks to close once the trigger is fully out of view** — its row
|
|
2125
|
+
scrolled past the table's scroller. Inside the root it would have been clipped along with the
|
|
2126
|
+
trigger; out in `<body>` it would float orphaned over whatever covers that spot. The check is
|
|
2127
|
+
an `IntersectionObserver` on the root, which accounts for ancestors' `overflow` clipping (a
|
|
2128
|
+
viewport-only check would miss a row hidden by a scroller that is itself on screen).
|
|
2129
|
+
|
|
2130
|
+
`DsCompanyCard`'s «In a scrolling table (teleported, block)» variant shows both behaviours.
|
|
2131
|
+
|
|
2036
2132
|
### Slots
|
|
2037
2133
|
|
|
2038
2134
|
| Slot | Description |
|
package/llms.txt
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
7
|
+
- DsCompanyCard (Company): The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
8
|
+
- DsCompanyLogo (Company): A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
7
9
|
- DsAddToSequence (Contact data): The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
8
10
|
- DsContactCell (Contact data): The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
9
11
|
- DsContactList (Contact data): The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|