@salesql/sql_components_vue3 3.3.0 → 3.4.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 +1384 -1216
- 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 +6 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +13 -2
- package/llms-full.txt +89 -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.4.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,76 @@ 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
|
+
- Off-scale type steps snap to the DS scale: label 11 → 10 (`micro`, like DsContactList's
|
|
129
|
+
uppercase labels), "in" 11 → 12, row glyph 17 → 16, weight 800 → 900.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
<!-- DsCompanyLogo · Company -->
|
|
134
|
+
|
|
135
|
+
## DsCompanyLogo
|
|
136
|
+
|
|
137
|
+
A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
138
|
+
contained inside. When there is no logo **or it fails to load**, it shows the first
|
|
139
|
+
character of `name` in muted ink — the design export's `CompanyLogo` (SALESQL-4056).
|
|
140
|
+
|
|
141
|
+
Not `DsAvatar`: that one puts initials on a hashed colour and has no error fallback. A
|
|
142
|
+
broken logo URL is common (a private bucket answers 403), so the fallback lives here.
|
|
143
|
+
|
|
144
|
+
### Props
|
|
145
|
+
|
|
146
|
+
| Prop | Type | Default | Description |
|
|
147
|
+
| ------ | -------- | ------- | ----------------------------------------------------------------- |
|
|
148
|
+
| `src` | `string` | `''` | Logo URL. Empty or failing → the initial. |
|
|
149
|
+
| `name` | `string` | `''` | Its first character is the fallback (`?` when empty). |
|
|
150
|
+
| `size` | `number` | `36` | Box side in px. The design: 36 in the table cell, 34 in the card. |
|
|
151
|
+
|
|
152
|
+
The image is decorative (`alt=""`): the company name is always rendered next to it.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
84
156
|
<!-- DsAddToSequence · Contact data -->
|
|
85
157
|
|
|
86
158
|
## DsAddToSequence
|
|
@@ -2006,6 +2078,7 @@ ring and 8px of padding on top of Element Plus. Positioning is pure CSS.
|
|
|
2006
2078
|
| `triggerOnClick` | `boolean` | `true` | Let the trigger slot toggle the panel. Off = consumer-driven. |
|
|
2007
2079
|
| `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
2080
|
| `flush` | `boolean` | `false` | Drops the 8px card padding for content with its own rows/dividers (e.g. `DsContactList`). |
|
|
2081
|
+
| `teleported` | `boolean` | `false` | Renders the panel in `<body>`, so no ancestor's `overflow` clips it (a table cell, a scroller). See **Teleported** below. |
|
|
2009
2082
|
|
|
2010
2083
|
### Placement
|
|
2011
2084
|
|
|
@@ -2033,6 +2106,20 @@ The bare sides keep their 3.1.0 meaning (centred), so this is purely additive.
|
|
|
2033
2106
|
> suffixed form — it reads only the side — so adopting it there later is a type change,
|
|
2034
2107
|
> not a rewrite.
|
|
2035
2108
|
|
|
2109
|
+
### Teleported
|
|
2110
|
+
|
|
2111
|
+
By default the panel is absolutely positioned **inside** the popover's root, so any
|
|
2112
|
+
ancestor with `overflow` other than `visible` cuts it. That is what happened to the
|
|
2113
|
+
prospector's company card: its cell and the table's scroller both clip, and only the top
|
|
2114
|
+
edge of the card showed (SALESQL-4056). `el-popover`, which DsPopover replaced there,
|
|
2115
|
+
teleported to `body` by default.
|
|
2116
|
+
|
|
2117
|
+
With `teleported`, the panel renders in `<body>` inside a fixed box that mirrors the root's
|
|
2118
|
+
rect, re-read on scroll (any container, capture phase) and resize. Placement, `offset` and
|
|
2119
|
+
the viewport clamp resolve against that box exactly as against the root. Outside-press and
|
|
2120
|
+
Escape keep working (the panel is checked on its own). Off by default: nothing existing moves.
|
|
2121
|
+
`DsCompanyCard`'s «In a table cell (teleported)» variant shows it inside a clipping cell.
|
|
2122
|
+
|
|
2036
2123
|
### Slots
|
|
2037
2124
|
|
|
2038
2125
|
| 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,
|