@salesql/sql_components_vue3 3.10.1 → 3.11.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/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.10.1)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.11.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 (51)
40
+ ## Components (52)
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
@@ -79,6 +79,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
79
79
  - **DsInput** (Forms) — Single-line text field — the DS "Input". **Presentational only**: it drives its own
80
80
  - **DsItemSelectorButton** (Forms) — Pill-shaped trigger that shows the currently assigned item (folder, tag, owner…)
81
81
  - **DsRadio** (Forms) — A single radio control (accent-ring dot when checked). **Presentational only**.
82
+ - **DsRadioCard** (Forms) — A selectable **card** with a radio indicator: a title, an optional description and a free
82
83
  - **DsSelect** (Forms) — Dropdown select — a native-`<select>`-like single/multi picker with a real
83
84
  - **DsSwitch** (Forms) — On/off toggle (accent track when on). **Presentational only**: it reflects the
84
85
  - **DsTextarea** (Forms) — Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
@@ -347,7 +348,7 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
347
348
  | Event | Payload | When |
348
349
  | ------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
349
350
  | `update:open` | `boolean` | The popover opened or closed (hover, pin, ESC, outside). |
350
- | `copy` | `DsContactItem` | A row's value was copied (re-emitted from the list). |
351
+ | `copy` | `DsContactItem` | Emitted once a row's value is on the clipboard (re-emitted from the list). |
351
352
  | `correct` | `DsContactItem` | Thumbs-up on a row. |
352
353
  | `incorrect` | `DsContactItem` | Thumbs-down on a row. |
353
354
  | `reveal` | — | The «Show details» CTA was clicked. Run your reveal flow, then pass the unmasked `items` back (and drive `revealing` meanwhile). |
@@ -375,8 +376,8 @@ The cell classifies nothing. The consumer passes one **bucket** and adapts each
375
376
  // legacy view model (contract §3.8) // typed contact_data block (§3.11), tomorrow
376
377
  const toItem = (it) => ({ const toItem = (it) => ({
377
378
  id: it.id, id: it.uid,
378
- value: it.value, value: it.is_revealed ? it.value : it.preview,
379
- masked: it.isMasked, masked: !it.is_revealed,
379
+ value: it.value, value: masked ? it.preview : it.value,
380
+ masked: it.isMasked, masked: !it.is_revealed || it.value === null,
380
381
  valid: it.status === 'valid', valid: it.verification === 'valid',
381
382
  primary: it.isPrimary, primary: it.is_primary,
382
383
  }); });
@@ -444,11 +445,11 @@ for the mapping from the app's view model.
444
445
 
445
446
  ### Events
446
447
 
447
- | Event | Payload | When |
448
- | ----------- | --------------- | -------------------------------------------- |
449
- | `copy` | `DsContactItem` | The row's value was copied to the clipboard. |
450
- | `correct` | `DsContactItem` | Thumbs-up clicked (`showRate`). |
451
- | `incorrect` | `DsContactItem` | Thumbs-down clicked (`showRate`). |
448
+ | Event | Payload | When |
449
+ | ----------- | --------------- | ------------------------------------------- |
450
+ | `copy` | `DsContactItem` | Emitted once the value is on the clipboard. |
451
+ | `correct` | `DsContactItem` | Thumbs-up clicked (`showRate`). |
452
+ | `incorrect` | `DsContactItem` | Thumbs-down clicked (`showRate`). |
452
453
 
453
454
  ### Slots
454
455
 
@@ -579,8 +580,9 @@ and holding it is the leak.
579
580
  | `masked` | `boolean` | `false` | `true` when `value` is the server's masked form. Off = one plain span. |
580
581
  | `maskedLabel` | `string` | `'Hidden'` | Spoken once per masked value in place of the circles (app copy). |
581
582
 
582
- The consumer decides `masked`: `isMasked` on the legacy view model, `!is_revealed` on the
583
- typed block. Shape detection is never applied here.
583
+ The consumer decides `masked`: `isMasked` on the legacy view model, and on the typed block
584
+ `!is_revealed || value === null` (a revealed item without a value renders masked, contract v3.4
585
+ §3.8). Shape detection is never applied here.
584
586
 
585
587
  ### Split rules (`splitMaskedValue`, exported)
586
588
 
@@ -1270,7 +1272,7 @@ any other consequence stay with the consuming app via events.
1270
1272
 
1271
1273
  | Event | Payload | When |
1272
1274
  | ----------- | -------- | -------------------------------------------------------------------------------- |
1273
- | `copy` | `string` | The copy button was clicked. Payload is the copied `value`. |
1275
+ | `copy` | `string` | Emitted once the value is on the clipboard. Payload is the copied `value`. |
1274
1276
  | `correct` | — | The thumbs-up rating button was clicked (only rendered when `showRate` is on). |
1275
1277
  | `incorrect` | — | The thumbs-down rating button was clicked (only rendered when `showRate` is on). |
1276
1278
 
@@ -1361,7 +1363,7 @@ every user action bubbles out as an event.
1361
1363
 
1362
1364
  | Event | Payload | When |
1363
1365
  | ----------- | ---------------- | ------------------------------------------------------------------------------ |
1364
- | `copy` | `string` | A `DsContactValue` row's copy button was clicked. Payload is the copied value. |
1366
+ | `copy` | `string` | Emitted once the row's value is on the clipboard. Payload is the copied value. |
1365
1367
  | `sort` | — | The header's sort icon-button was clicked. |
1366
1368
  | `edit` | — | The header's "Edit" action was clicked. |
1367
1369
  | `close` | — | The header's × close button was clicked. |
@@ -2176,6 +2178,65 @@ not a shared group value).
2176
2178
 
2177
2179
  ---
2178
2180
 
2181
+ <!-- DsRadioCard · Forms -->
2182
+
2183
+ ## DsRadioCard
2184
+
2185
+ A selectable **card** with a radio indicator: a title, an optional description and a free
2186
+ **preview** area (default slot) — for choices that need to be seen to be understood
2187
+ (column layouts, plans, view modes). **Presentational only.** The indicator is the same 16px
2188
+ dot as `DsRadio`.
2189
+
2190
+ Unlike `DsRadio`, `v-model` is the **selected value of the whole group**, not a boolean:
2191
+ give every card of the group the same `v-model` and `name`, and its own `value`.
2192
+
2193
+ ```vue
2194
+ <DsRadioCard v-model="layout" name="layout" value="separate" title="Separate columns">
2195
+ <MiniTable />
2196
+ </DsRadioCard>
2197
+ <DsRadioCard v-model="layout" name="layout" value="combined" title="One column" />
2198
+ ```
2199
+
2200
+ ### Props
2201
+
2202
+ | Prop | Type | Default | Description |
2203
+ | ------------- | -------------------------- | ------- | ---------------------------------------------------------------------------------------------------- |
2204
+ | `modelValue` | `string \| number \| null` | `null` | v-model — the selected value of the group. The card is selected when it equals `value`. |
2205
+ | `value` | `string \| number` | — | **Required.** This card's value; it is what `update:modelValue` emits when chosen. |
2206
+ | `title` | `string` | — | **Required.** Card title and the radio's accessible name; the `title` slot overrides how it renders. |
2207
+ | `description` | `string` | `''` | Optional supporting text; the `description` slot overrides it. |
2208
+ | `name` | `string` | `''` | Share it across the group for native arrow-key navigation. |
2209
+ | `disabled` | `boolean` | `false` | Disables the card (opacity 0.6, no events). |
2210
+
2211
+ ### Slots
2212
+
2213
+ | Slot | Description |
2214
+ | ------------- | -------------------------------------------------------------------------- |
2215
+ | `default` | Preview area under the header (a mini table, an illustration…). Optional. |
2216
+ | `title` | Rich title content (replaces how the `title` prop renders; keep the prop). |
2217
+ | `description` | Rich description content (replaces the `description` prop). |
2218
+
2219
+ ### Events
2220
+
2221
+ | Event | Payload | When |
2222
+ | ------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
2223
+ | `update:modelValue` | `string \| number` | The card becomes the selected one (click anywhere on it, Space, or arrow keys inside the `name` group). Never emitted when disabled. |
2224
+
2225
+ ### Accessibility
2226
+
2227
+ - The root is a `<div>` holding a real `<input type="radio">` (visually hidden) and a `<label for>` that wraps **only the title**, so the preview can hold flow content such as a `<table>` (valid HTML). The label is stretched over the whole card (`::after { inset: 0 }`), so the whole card is the click target; a group sharing `name` gets native radio semantics and arrow-key navigation (one tab stop per group).
2228
+ - The accessible name is the **title** (the `<label>`) and the description is its accessible description (`aria-describedby`); the preview does not leak into the name.
2229
+ - The checked state is the native one — no extra `aria-checked`, which ARIA in HTML discourages on a native radio. The dot is decorative (`aria-hidden`).
2230
+ - A `:focus-visible` ring (2px `accent-mid`) is drawn around the whole card.
2231
+ - The preview is decorative: it ignores pointer events (clicks fall through to the stretched label) and **interactive content inside it is not supported**. Mark it `aria-hidden` in the consumer if it should not be read.
2232
+
2233
+ ### When to use
2234
+
2235
+ - A small set of mutually exclusive options where each one benefits from a visual preview.
2236
+ - For plain text options use `DsRadio`; for long lists use `DsSelect`.
2237
+
2238
+ ---
2239
+
2179
2240
  <!-- DsSelect · Forms -->
2180
2241
 
2181
2242
  ## DsSelect
@@ -2572,7 +2633,7 @@ Plus / floating-ui's `flip`, done in the same pure-CSS custom-property mechanism
2572
2633
  cross-axis clamp, no `floating-ui` dependency added. Always on (no opt-in prop), and
2573
2634
  re-evaluated live on open, scroll and resize — see the **Flip near the bottom edge**
2574
2635
  variant. `over-start` / `over-end` never flip: they cover the trigger, there is no opposite
2575
- side. `DsTooltip` is unchanged — it never flips.
2636
+ side. `DsTooltip` flips the same way.
2576
2637
 
2577
2638
  ### Teleported
2578
2639
 
package/llms.txt CHANGED
@@ -44,6 +44,7 @@
44
44
  - DsInput (Forms): Single-line text field — the DS "Input". **Presentational only**: it drives its own
45
45
  - DsItemSelectorButton (Forms): Pill-shaped trigger that shows the currently assigned item (folder, tag, owner…)
46
46
  - DsRadio (Forms): A single radio control (accent-ring dot when checked). **Presentational only**.
47
+ - DsRadioCard (Forms): A selectable **card** with a radio indicator: a title, an optional description and a free
47
48
  - DsSelect (Forms): Dropdown select — a native-`<select>`-like single/multi picker with a real
48
49
  - DsSwitch (Forms): On/off toggle (accent track when on). **Presentational only**: it reflects the
49
50
  - DsTextarea (Forms): Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.10.1",
3
+ "version": "3.11.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",