@salesql/sql_components_vue3 4.4.0 → 4.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 +2 -0
- package/dist/index.es.js +2306 -2226
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +8 -1
- package/dist/ui/DsFilterMatches/DsFilterMatches.types.d.ts +22 -0
- package/dist/ui/DsFilterMatches/DsFilterMatches.vue.d.ts +51 -0
- package/dist/ui/DsFilterMatches/index.d.ts +2 -0
- package/llms-full.txt +102 -2
- package/llms.txt +2 -0
- package/package.json +1 -1
- package/src/icons/manifest.json +3 -0
|
@@ -9,9 +9,16 @@ export interface DsActionMenuItem {
|
|
|
9
9
|
/**
|
|
10
10
|
* Makes the item a choice (`menuitemradio`): `true` draws a check where the icon would be, `false`
|
|
11
11
|
* keeps the space blank so the labels line up. The consumer keeps exactly one `true`. An `icon` is
|
|
12
|
-
* ignored on a choice. Leave it out on plain actions.
|
|
12
|
+
* ignored on a choice. Leave it out on plain actions. With `toggle`, it is the switch's state.
|
|
13
13
|
*/
|
|
14
14
|
checked?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Makes the item an on/off switch (`menuitemcheckbox`): `checked` is its state and a missing one
|
|
17
|
+
* reads as off. The `icon` stays in the icon column and a check is drawn at the end of the row
|
|
18
|
+
* while it is on. Selecting it emits `select` and closes the menu like any item; the consumer
|
|
19
|
+
* flips `checked`.
|
|
20
|
+
*/
|
|
21
|
+
toggle?: boolean;
|
|
15
22
|
/** A hairline separator under this item, to split a group of choices from the actions below. */
|
|
16
23
|
separatorAfter?: boolean;
|
|
17
24
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DsFilterMatchesItem {
|
|
2
|
+
/** Stable key for the row. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** The filter's name, first column of its tooltip row («Location»). */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The full value, second column of its tooltip row («Bengaluru, Karnataka, India»). */
|
|
7
|
+
value: string;
|
|
8
|
+
/** The phrase in the line («6 years in role»). */
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DsFilterMatchesProps {
|
|
12
|
+
/** In display order. Empty renders nothing. */
|
|
13
|
+
items: DsFilterMatchesItem[];
|
|
14
|
+
/** Tooltip heading («Matches your filters»). Empty = no heading. */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Icon-registry name, drawn outlined with DsIcon before the text. Default `filter_alt`. */
|
|
17
|
+
icon?: string;
|
|
18
|
+
/** Hover delay before the tooltip opens, ms. Default 300, as DsTooltip. */
|
|
19
|
+
delay?: number;
|
|
20
|
+
/** Render the tooltip in `<body>` so a cell's `overflow` cannot clip it. */
|
|
21
|
+
teleported?: boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DsFilterMatchesItem } from './DsFilterMatches.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<DsFilterMatchesItem[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
delay: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
teleported: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
items: {
|
|
26
|
+
type: PropType<DsFilterMatchesItem[]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
delay: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
teleported: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
title: string;
|
|
47
|
+
icon: string;
|
|
48
|
+
delay: number;
|
|
49
|
+
teleported: boolean;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
51
|
+
export default _default;
|
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (v4.
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v4.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
|
|
|
@@ -48,7 +48,7 @@ app.provide(DS_TELEPORT_TARGET, overlayLayer); // an element inside the shadow r
|
|
|
48
48
|
|
|
49
49
|
Browsers ignore `@font-face` declared inside a shadow root: register the fonts on the page document.
|
|
50
50
|
|
|
51
|
-
## Components (
|
|
51
|
+
## Components (98)
|
|
52
52
|
|
|
53
53
|
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
54
54
|
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
@@ -81,6 +81,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
81
81
|
- **DsCustomTag** (Data) — Static status chip (tinted background + matching border/text), non-interactive.
|
|
82
82
|
- **DsDataCard** (Data) — The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|
|
83
83
|
- **DsEmptyState** (Data) — Centered empty-state panel for empty tables, lists, or search results: an optional
|
|
84
|
+
- **DsFilterMatches** (Data) — The quietest line of a table cell, under the cell's own data: which active search filters the row
|
|
84
85
|
- **DsPaginator** (Data) — Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
85
86
|
- **DsPill** (Data) — Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
|
|
86
87
|
- **DsPillWithBorder** (Data) — Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
@@ -123,6 +124,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
123
124
|
- **DsMenuItem** (Navigation) — Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
124
125
|
- **DsSidePanel** (Navigation) — A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
125
126
|
- **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
127
|
+
- **DsActionMenu** (Overlays) — A menu of actions behind a trigger the consumer owns (a table header chip, a «More» button).
|
|
126
128
|
- **DsConfirmDialog** (Overlays) — A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
|
|
127
129
|
- **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
128
130
|
- **DsOrganizerDialog** (Overlays) — The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
|
@@ -2344,6 +2346,60 @@ arrives via props/slots.
|
|
|
2344
2346
|
|
|
2345
2347
|
---
|
|
2346
2348
|
|
|
2349
|
+
<!-- DsFilterMatches · Data -->
|
|
2350
|
+
|
|
2351
|
+
## DsFilterMatches
|
|
2352
|
+
|
|
2353
|
+
The quietest line of a table cell, under the cell's own data: which active search filters the row
|
|
2354
|
+
matches («Bengaluru, Karnataka, India · 6 years in role · 13 years of experience»), on one line
|
|
2355
|
+
with an ellipsis. Its tooltip names every value in full. Presentational: the app decides which
|
|
2356
|
+
values show and passes all the copy.
|
|
2357
|
+
|
|
2358
|
+
| Prop | Type | Default | Description |
|
|
2359
|
+
| ------------ | ----------------------- | -------------- | -------------------------------------------------------------------- |
|
|
2360
|
+
| `items` | `DsFilterMatchesItem[]` | — | In display order. Empty renders nothing (no element at all). |
|
|
2361
|
+
| `title` | `string` | `''` | Tooltip heading («Matches your filters»). Empty = no heading. |
|
|
2362
|
+
| `icon` | `string` | `'filter_alt'` | Icon-registry name, drawn outlined with `DsIcon` before the text. |
|
|
2363
|
+
| `delay` | `number` | `300` | Hover delay before the tooltip opens, ms (DsTooltip's default). |
|
|
2364
|
+
| `teleported` | `boolean` | `false` | Render the tooltip in `<body>` so a cell's `overflow` can't clip it. |
|
|
2365
|
+
|
|
2366
|
+
`DsFilterMatchesItem`: `{ id, label, value, text }`. `text` is the phrase in the line («6 years in
|
|
2367
|
+
role»); `label` and `value` are one tooltip row («Years in role» — «6 years»).
|
|
2368
|
+
|
|
2369
|
+
### Layout
|
|
2370
|
+
|
|
2371
|
+
- Block level: it fills its parent's width. The root and the line have `min-width: 0`, so it
|
|
2372
|
+
ellipsizes inside a narrow flex column or table cell. One line high (12px text, 1.4), so it fits
|
|
2373
|
+
under two lines of data in a 72px row.
|
|
2374
|
+
- The line is 12px regular in `slate-muted`; the glyph is outlined, accent at 55%.
|
|
2375
|
+
- The tooltip is DsTooltip's dark bubble with 12.5px regular rows: the label in `slate-mid` in a
|
|
2376
|
+
92px column, then the full value. The heading is 10px uppercase extrabold in `accent-mid`.
|
|
2377
|
+
|
|
2378
|
+
### Behaviour
|
|
2379
|
+
|
|
2380
|
+
- Hover opens the tooltip after `delay` and leaving closes it; passing over it opens nothing.
|
|
2381
|
+
Keyboard focus opens it at once, Escape closes it. All of it is DsTooltip's.
|
|
2382
|
+
- Clicks are not handled or stopped: a click on the line reaches the cell (the app's profile
|
|
2383
|
+
drawer or company card).
|
|
2384
|
+
|
|
2385
|
+
### Accessibility
|
|
2386
|
+
|
|
2387
|
+
- The line is a tab stop (`tabindex="0"`) so the keyboard reaches the tooltip, which describes it
|
|
2388
|
+
through `aria-describedby` while open. No role and no `aria-label`: its visible text is what a
|
|
2389
|
+
screen reader reads, as the cut title of DsProfileHero.
|
|
2390
|
+
- The glyph is `aria-hidden`.
|
|
2391
|
+
- AA delta: `slate-muted` (#888f97, the board's value) is 3.3:1 on white, under AA for 12px text.
|
|
2392
|
+
Kept because the ticket makes it the quietest text of the cell; the tooltip carries the same
|
|
2393
|
+
values in AA contrast.
|
|
2394
|
+
|
|
2395
|
+
### Design parity
|
|
2396
|
+
|
|
2397
|
+
Logged deltas to stay on the DS scales: glyph 13 → 12px (`icon-size(12)`), title 10.5 → 10px
|
|
2398
|
+
(`micro`) with `letter-spacing-wide`, line gap 3 → 4px, tooltip row gap 3 → 4px. The bubble keeps
|
|
2399
|
+
DsTooltip's 260px max width (the prototype's is 320px), so a long value wraps.
|
|
2400
|
+
|
|
2401
|
+
---
|
|
2402
|
+
|
|
2347
2403
|
<!-- DsPaginator · Data -->
|
|
2348
2404
|
|
|
2349
2405
|
## DsPaginator
|
|
@@ -4493,6 +4549,50 @@ the current step (`value`) and the button copy.
|
|
|
4493
4549
|
|
|
4494
4550
|
---
|
|
4495
4551
|
|
|
4552
|
+
<!-- DsActionMenu · Overlays -->
|
|
4553
|
+
|
|
4554
|
+
## DsActionMenu
|
|
4555
|
+
|
|
4556
|
+
A menu of actions behind a trigger the consumer owns (a table header chip, a «More» button).
|
|
4557
|
+
Presentational: it emits the chosen item's id and closes; the consumer acts on it.
|
|
4558
|
+
|
|
4559
|
+
| Prop | Type | Default | Description |
|
|
4560
|
+
| ------------ | --------------------- | ---------------- | ---------------------------------------------------------------------------- |
|
|
4561
|
+
| `items` | `DsActionMenuItem[]` | — | The rows, in order. |
|
|
4562
|
+
| `open` | `boolean` | uncontrolled | Bind with `v-model:open` to control it; omit it and the menu manages itself. |
|
|
4563
|
+
| `placement` | `DsPopoverPlacement` | `'bottom-start'` | Where the panel opens. |
|
|
4564
|
+
| `teleported` | `boolean` | `false` | Render the panel in `<body>` so no ancestor's `overflow` clips it. |
|
|
4565
|
+
| `weight` | `'regular' \| 'bold'` | `'regular'` | `DS_ACTION_MENU_WEIGHTS`. `bold` for menus on a bold surface. |
|
|
4566
|
+
| `menuLabel` | `string` | `''` | `aria-label` of the `role="menu"`. |
|
|
4567
|
+
|
|
4568
|
+
Slot `trigger` (receives `{ open }` for `aria-expanded`). Events: `select` (the item's `id`),
|
|
4569
|
+
`update:open`.
|
|
4570
|
+
|
|
4571
|
+
### Items
|
|
4572
|
+
|
|
4573
|
+
| Field | Type | Description |
|
|
4574
|
+
| ---------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
4575
|
+
| `id` | `string` | Stable key; the payload of `select`. |
|
|
4576
|
+
| `label` | `string` | App copy. |
|
|
4577
|
+
| `icon` | `string` | Glyph in the 16px icon column. |
|
|
4578
|
+
| `disabled` | `boolean` | Natively disabled: no `select`, skipped by the arrows. |
|
|
4579
|
+
| `danger` | `boolean` | Error colour (a destructive action). |
|
|
4580
|
+
| `checked` | `boolean` | A choice (`menuitemradio`): the check replaces the icon on the active one, a blank on the rest. |
|
|
4581
|
+
| `toggle` | `boolean` | An on/off switch (`menuitemcheckbox`): `checked` is its state; the icon stays and a check is drawn at the end of the row while on. |
|
|
4582
|
+
| `separatorAfter` | `boolean` | A hairline under this item. |
|
|
4583
|
+
|
|
4584
|
+
A toggle item behaves like any item: selecting it emits `select` and closes the menu, and the
|
|
4585
|
+
consumer flips `checked`. Without `toggle`, `checked` keeps its choice meaning.
|
|
4586
|
+
|
|
4587
|
+
### Accessibility
|
|
4588
|
+
|
|
4589
|
+
- `role="menu"` of `<button>`s: arrows (wrapping), Home / End, Escape and Tab close it and focus
|
|
4590
|
+
goes back to the trigger. ArrowDown on the trigger opens it.
|
|
4591
|
+
- Choices report `aria-checked` as `menuitemradio`, switches as `menuitemcheckbox`; the check
|
|
4592
|
+
glyphs are `aria-hidden`.
|
|
4593
|
+
|
|
4594
|
+
---
|
|
4595
|
+
|
|
4496
4596
|
<!-- DsConfirmDialog · Overlays -->
|
|
4497
4597
|
|
|
4498
4598
|
## DsConfirmDialog
|
package/llms.txt
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
- DsCustomTag (Data): Static status chip (tinted background + matching border/text), non-interactive.
|
|
36
36
|
- DsDataCard (Data): The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|
|
37
37
|
- DsEmptyState (Data): Centered empty-state panel for empty tables, lists, or search results: an optional
|
|
38
|
+
- DsFilterMatches (Data): The quietest line of a table cell, under the cell's own data: which active search filters the row
|
|
38
39
|
- DsPaginator (Data): Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
39
40
|
- DsPill (Data): Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
|
|
40
41
|
- DsPillWithBorder (Data): Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
- DsMenuItem (Navigation): Sidebar navigation row: an icon with an optional label, usable full-width or collapsed to
|
|
78
79
|
- DsSidePanel (Navigation): A left side panel with three looks: **pinned** (a column of `width`, 248px), a **rail** (`railWidth`,
|
|
79
80
|
- DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
|
|
81
|
+
- DsActionMenu (Overlays): A menu of actions behind a trigger the consumer owns (a table header chip, a «More» button).
|
|
80
82
|
- DsConfirmDialog (Overlays): A question before an action, on top of `DsModal`: a title, a text, an optional notice and two
|
|
81
83
|
- DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
|
|
82
84
|
- DsOrganizerDialog (Overlays): The create / edit **dialog of an organizer**: a `DsModal` (440px) with a name field, a colour
|
package/package.json
CHANGED