@salesql/sql_components_vue3 3.13.0 → 3.14.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.es.js +1292 -1262
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsContactCell/DsContactCell.types.d.ts +5 -0
- package/dist/ui/DsContactCell/DsContactCell.vue.d.ts +11 -2
- package/dist/ui/DsNotification/DsNotification.types.d.ts +1 -0
- package/dist/ui/DsNotification/notificationStack.d.ts +2 -0
- package/dist/ui/DsSavedButton/DsSavedButton.story-state.d.ts +20 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +5 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +19 -0
- package/llms-full.txt +47 -32
- package/package.json +2 -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.14.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
|
|
|
@@ -341,6 +341,7 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
|
|
|
341
341
|
| `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
|
|
342
342
|
| `teleported` | `boolean` | `false` | Renders the popover in `<body>` so a scroller or clipping cell (the prospector table) cannot cut it. Hover still travels cell → panel. |
|
|
343
343
|
| `revealLabel` | `string` | `''` | Copy of the «Show details» CTA in the popover header. Rendered only while some item is `masked` **and** this is non-empty (opt-in). |
|
|
344
|
+
| `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
|
|
344
345
|
| `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
|
|
345
346
|
| `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
|
|
346
347
|
| `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
|
|
@@ -788,24 +789,26 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
788
789
|
|
|
789
790
|
### Props
|
|
790
791
|
|
|
791
|
-
| Prop | Type
|
|
792
|
-
| ------------------- |
|
|
793
|
-
| `label` | `string`
|
|
794
|
-
| `tooltip` | `string`
|
|
795
|
-
| `
|
|
796
|
-
| `
|
|
797
|
-
| `
|
|
798
|
-
| `
|
|
799
|
-
| `
|
|
800
|
-
| `
|
|
801
|
-
| `
|
|
802
|
-
| `
|
|
803
|
-
| `
|
|
804
|
-
| `
|
|
805
|
-
| `
|
|
806
|
-
| `
|
|
807
|
-
| `
|
|
808
|
-
| `
|
|
792
|
+
| Prop | Type | Default | Description |
|
|
793
|
+
| ------------------- | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
794
|
+
| `label` | `string` | — | Neutral label — "Saved", or "Save" before the first save (required). |
|
|
795
|
+
| `tooltip` | `string` | `''` | "Saved in {folder} · change folder". Empty = no tooltip. Hides while the picker is open. |
|
|
796
|
+
| `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Side of the trigger the tooltip opens on (`DsTooltip`'s placements). `left` for a trigger in a right-pinned column. |
|
|
797
|
+
| `folder` | `DsPickerOption \| null` | `null` | The current folder; tints the glyph. `null` = no glyph. |
|
|
798
|
+
| `folders` | `DsPickerOption[]` | — | Every folder the user can pick (required). |
|
|
799
|
+
| `searchPlaceholder` | `string` | `''` | |
|
|
800
|
+
| `emptyLabel` | `string` | `''` | Shown when the search matches nothing. |
|
|
801
|
+
| `createLabel` | `string` | `''` | Footer action ("New Folder"). Empty and no `footer` slot = no footer. |
|
|
802
|
+
| `icon` | `string` | `'folder'` | Material Symbols ligature for the folder glyph. |
|
|
803
|
+
| `size` | `'medium' \| 'large'` | `'medium'` | 32px for rows / profile, 36px for action and bulk bars. |
|
|
804
|
+
| `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Add contacts to»). Off = the design's table / profile trigger. |
|
|
805
|
+
| `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
|
|
806
|
+
| `disabled` | `boolean` | `false` | |
|
|
807
|
+
| `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (`DsPopover teleported`). Needed in a sticky / pinned table cell: it is its own stacking context, so inline the cells of the rows below paint over the panel, and a scroll container clips it. |
|
|
808
|
+
| `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the footer emits `create` as before. |
|
|
809
|
+
| `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
|
|
810
|
+
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
811
|
+
| `formError` | `string` | `''` | A failed save, shown under the name field. |
|
|
809
812
|
|
|
810
813
|
Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
|
|
811
814
|
`editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Folder'`),
|
|
@@ -858,6 +861,9 @@ the form flow has no entry point.
|
|
|
858
861
|
is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
|
|
859
862
|
pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
|
|
860
863
|
- Back from the form (or `closeForm()`) returns focus to the search field.
|
|
864
|
+
- `teleported` keeps all of the above: Esc and outside press are handled by `DsPopover` on the
|
|
865
|
+
body panel, the search still takes focus on open, and the panel closes when the trigger
|
|
866
|
+
scrolls out of view of its scroll container.
|
|
861
867
|
|
|
862
868
|
### Design parity (export `SavedButton` / `FolderMenu`)
|
|
863
869
|
|
|
@@ -1968,24 +1974,24 @@ on `close`.
|
|
|
1968
1974
|
## DsNotification
|
|
1969
1975
|
|
|
1970
1976
|
Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
|
|
1971
|
-
itself into one of the four viewport corners, optionally auto-dismisses, and can carry a
|
|
1977
|
+
itself into one of the four viewport corners or the top center, optionally auto-dismisses, and can carry a
|
|
1972
1978
|
single action link. **Presentational only**: it owns its own visibility timer, but all
|
|
1973
1979
|
routing/consequences stay with the consuming app via events.
|
|
1974
1980
|
|
|
1975
1981
|
### Props
|
|
1976
1982
|
|
|
1977
|
-
| Prop | Type
|
|
1978
|
-
| ------------- |
|
|
1979
|
-
| `type` | `'success' \| 'info' \| 'warning' \| 'error'`
|
|
1980
|
-
| `position` | `'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right'` | `'bottom-left'` | Viewport corner the toast fixes to.
|
|
1981
|
-
| `title` | `string`
|
|
1982
|
-
| `description` | `string`
|
|
1983
|
-
| `link` | `string`
|
|
1984
|
-
| `linkTitle` | `string`
|
|
1985
|
-
| `linkTarget` | `'_blank' \| '_self' \| '_parent' \| '_top'`
|
|
1986
|
-
| `showClose` | `boolean`
|
|
1987
|
-
| `closeLabel` | `string`
|
|
1988
|
-
| `duration` | `number`
|
|
1983
|
+
| Prop | Type | Default | Description |
|
|
1984
|
+
| ------------- | ------------------------------------------------------------------------------ | --------------- | ----------------------------------------------------------------------------- |
|
|
1985
|
+
| `type` | `'success' \| 'info' \| 'warning' \| 'error'` | `'info'` | Semantic style + icon. |
|
|
1986
|
+
| `position` | `'top-left' \| 'top-center' \| 'top-right' \| 'bottom-left' \| 'bottom-right'` | `'bottom-left'` | Viewport corner (or top center) the toast fixes to. |
|
|
1987
|
+
| `title` | `string` | — | Bold heading line. |
|
|
1988
|
+
| `description` | `string` | — | Body copy under the title. |
|
|
1989
|
+
| `link` | `string` | — | `href` for the optional action link. |
|
|
1990
|
+
| `linkTitle` | `string` | — | Visible text for the link (required for the link to render). |
|
|
1991
|
+
| `linkTarget` | `'_blank' \| '_self' \| '_parent' \| '_top'` | `'_blank'` | `<a target>`. `_blank` adds `rel="noopener noreferrer"`. |
|
|
1992
|
+
| `showClose` | `boolean` | `true` | Show the × dismiss button. |
|
|
1993
|
+
| `closeLabel` | `string` | `'Close'` | `aria-label` for the × button (icon-only control). |
|
|
1994
|
+
| `duration` | `number` | `0` | Auto-dismiss delay in ms. `0` = stays until dismissed. Timer pauses on hover. |
|
|
1989
1995
|
|
|
1990
1996
|
### Events
|
|
1991
1997
|
|
|
@@ -1997,6 +2003,15 @@ routing/consequences stay with the consuming app via events.
|
|
|
1997
2003
|
> The link is a real `<a href>` (a11y + no-JS fallback). Default behaviour opens it natively;
|
|
1998
2004
|
> listen to `navigate` and call `event.preventDefault()` to intercept and route inside the SPA.
|
|
1999
2005
|
|
|
2006
|
+
### Top center
|
|
2007
|
+
|
|
2008
|
+
`position="top-center"` is the confirmation toast of an action in the page (a reveal, a save):
|
|
2009
|
+
pass `type="success"`, the app's copy in `title` (e.g. «Contact details revealed · N credits
|
|
2010
|
+
used») and `:duration="3400"`. Toasts at this position share one fixed host and stack in a
|
|
2011
|
+
column, newest below, 8px apart, so several alive at once never overlap. They fade in
|
|
2012
|
+
sliding down (off under `prefers-reduced-motion`) and leave instantly, like the corners, which keep
|
|
2013
|
+
their behaviour (one toast per corner, teleported straight to `<body>`).
|
|
2014
|
+
|
|
2000
2015
|
### Accessibility
|
|
2001
2016
|
|
|
2002
2017
|
- The × button is icon-only, so `closeLabel` maps to its `aria-label` — always pass it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesql/sql_components_vue3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "Librería de componentes Vue 3 (SalesQL)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@histoire/plugin-vue": "1.0.0-beta.1",
|
|
33
|
+
"@histoire/shared": "1.0.0-beta.1",
|
|
33
34
|
"@vitejs/plugin-vue": "6.0.1",
|
|
34
35
|
"@vitest/coverage-v8": "^3.2.0",
|
|
35
36
|
"@vue/test-utils": "^2.4.6",
|