@salesql/sql_components_vue3 3.11.0 → 3.12.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/composables/useMenuKeyboard.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.es.js +2550 -2296
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +25 -0
- package/dist/ui/DsActionMenu/DsActionMenu.vue.d.ts +79 -0
- package/dist/ui/DsActionMenu/index.d.ts +2 -0
- package/dist/ui/DsButton/DsButton.types.d.ts +1 -0
- package/dist/ui/DsClampedText/DsClampedText.types.d.ts +18 -0
- package/dist/ui/DsClampedText/DsClampedText.vue.d.ts +58 -0
- package/dist/ui/DsClampedText/index.d.ts +2 -0
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +1 -1
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +1 -1
- package/dist/ui/DsProfileCompanyCard/DsProfileCompanyCard.vue.d.ts +2 -2
- package/dist/ui/DsTextarea/DsTextarea.types.d.ts +12 -0
- package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +45 -2
- package/llms-full.txt +95 -32
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -135,8 +135,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
135
135
|
correctLabel: string;
|
|
136
136
|
incorrectLabel: string;
|
|
137
137
|
emptyLabel: string;
|
|
138
|
-
maskedLabel: string;
|
|
139
138
|
items: DsContactItem[];
|
|
139
|
+
maskedLabel: string;
|
|
140
140
|
sections: DsContactSection[];
|
|
141
141
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
142
142
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -98,6 +98,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
98
98
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
width: string;
|
|
101
|
+
flush: boolean;
|
|
101
102
|
open: boolean;
|
|
102
103
|
closeOnEscape: boolean;
|
|
103
104
|
block: boolean;
|
|
@@ -107,7 +108,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
107
108
|
growTo: string;
|
|
108
109
|
closeOnOutside: boolean;
|
|
109
110
|
triggerOnClick: boolean;
|
|
110
|
-
flush: boolean;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
112
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
113
113
|
export default _default;
|
|
@@ -130,12 +130,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
130
|
websiteLabel: string;
|
|
131
131
|
linkedinUrl: string;
|
|
132
132
|
linkedinLabel: string;
|
|
133
|
+
showMoreLabel: string;
|
|
134
|
+
showLessLabel: string;
|
|
133
135
|
industry: string;
|
|
134
136
|
employees: string;
|
|
135
137
|
about: string;
|
|
136
138
|
aboutLabel: string;
|
|
137
|
-
showMoreLabel: string;
|
|
138
|
-
showLessLabel: string;
|
|
139
139
|
fields: DsProfileField[];
|
|
140
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
141
|
export default _default;
|
|
@@ -5,6 +5,12 @@ export declare const DS_TEXTAREA_RESIZE: {
|
|
|
5
5
|
readonly BOTH: "both";
|
|
6
6
|
};
|
|
7
7
|
export type DsTextareaResize = (typeof DS_TEXTAREA_RESIZE)[keyof typeof DS_TEXTAREA_RESIZE];
|
|
8
|
+
export declare const DS_TEXTAREA_VARIANTS: {
|
|
9
|
+
readonly DEFAULT: "default";
|
|
10
|
+
/** @deprecated — identical to default; will be removed */
|
|
11
|
+
readonly EMPHASIS: "emphasis";
|
|
12
|
+
};
|
|
13
|
+
export type DsTextareaVariant = (typeof DS_TEXTAREA_VARIANTS)[keyof typeof DS_TEXTAREA_VARIANTS];
|
|
8
14
|
export interface DsTextareaProps {
|
|
9
15
|
modelValue?: string;
|
|
10
16
|
placeholder?: string;
|
|
@@ -12,5 +18,11 @@ export interface DsTextareaProps {
|
|
|
12
18
|
error?: boolean;
|
|
13
19
|
errorMessage?: string;
|
|
14
20
|
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
autoGrow?: boolean;
|
|
23
|
+
minRows?: number;
|
|
24
|
+
maxRows?: number;
|
|
15
25
|
resize?: DsTextareaResize;
|
|
26
|
+
/** @deprecated — identical to default; will be removed. Leave it unset, `'emphasis'` changes nothing. */
|
|
27
|
+
variant?: DsTextareaVariant;
|
|
16
28
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsTextareaResize } from './DsTextarea.types';
|
|
3
|
-
declare
|
|
2
|
+
import { type DsTextareaResize, type DsTextareaVariant } from './DsTextarea.types';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
8
|
placeholder: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
default: string;
|
|
@@ -10,6 +14,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
14
|
default: number;
|
|
11
15
|
};
|
|
12
16
|
disabled: BooleanConstructor;
|
|
17
|
+
readonly: BooleanConstructor;
|
|
18
|
+
autoGrow: BooleanConstructor;
|
|
19
|
+
minRows: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
maxRows: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
13
27
|
error: BooleanConstructor;
|
|
14
28
|
errorMessage: {
|
|
15
29
|
type: StringConstructor;
|
|
@@ -27,6 +41,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
41
|
type: PropType<DsTextareaResize>;
|
|
28
42
|
default: "vertical";
|
|
29
43
|
};
|
|
44
|
+
variant: {
|
|
45
|
+
type: PropType<DsTextareaVariant>;
|
|
46
|
+
default: "default";
|
|
47
|
+
};
|
|
30
48
|
modelValue: {
|
|
31
49
|
type: PropType<string>;
|
|
32
50
|
};
|
|
@@ -44,6 +62,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
62
|
default: number;
|
|
45
63
|
};
|
|
46
64
|
disabled: BooleanConstructor;
|
|
65
|
+
readonly: BooleanConstructor;
|
|
66
|
+
autoGrow: BooleanConstructor;
|
|
67
|
+
minRows: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
maxRows: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
47
75
|
error: BooleanConstructor;
|
|
48
76
|
errorMessage: {
|
|
49
77
|
type: StringConstructor;
|
|
@@ -61,6 +89,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
89
|
type: PropType<DsTextareaResize>;
|
|
62
90
|
default: "vertical";
|
|
63
91
|
};
|
|
92
|
+
variant: {
|
|
93
|
+
type: PropType<DsTextareaVariant>;
|
|
94
|
+
default: "default";
|
|
95
|
+
};
|
|
64
96
|
modelValue: {
|
|
65
97
|
type: PropType<string>;
|
|
66
98
|
};
|
|
@@ -70,6 +102,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
70
102
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
71
103
|
}>, {
|
|
72
104
|
resize: DsTextareaResize;
|
|
105
|
+
variant: DsTextareaVariant;
|
|
73
106
|
disabled: boolean;
|
|
74
107
|
error: boolean;
|
|
75
108
|
name: string;
|
|
@@ -77,5 +110,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
110
|
rows: number;
|
|
78
111
|
placeholder: string;
|
|
79
112
|
errorMessage: string;
|
|
113
|
+
readonly: boolean;
|
|
114
|
+
autoGrow: boolean;
|
|
115
|
+
minRows: number;
|
|
116
|
+
maxRows: number;
|
|
80
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
81
119
|
export default _default;
|
|
120
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
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.12.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 (
|
|
40
|
+
## Components (53)
|
|
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
|
|
@@ -59,6 +59,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
59
59
|
- **DsSpinner** (Core) — Indeterminate loading indicator — a circular SVG spinner. **Presentational only**: no
|
|
60
60
|
- **DsTag** (Core) — Small bordered chip with an optional × close control. **Presentational only**: `close`
|
|
61
61
|
- **DsCell** (Data) — A single `<td>` cell in the `DsTable` compound API. **Presentational only**: no props
|
|
62
|
+
- **DsClampedText** (Data) — Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
62
63
|
- **DsContactValue** (Data) — A single email/phone row: a verification glyph, the value itself, and a type badge
|
|
63
64
|
- **DsCustomTag** (Data) — Static status chip (tinted background + matching border/text), non-interactive.
|
|
64
65
|
- **DsDataCard** (Data) — The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|
|
@@ -175,7 +176,8 @@ design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
|
175
176
|
- **Header:** `DsCompanyLogo` (36px), the name, «industry · employees» under it (whichever
|
|
176
177
|
arrive; no loose separator), a globe link to the website (with a tooltip) and LinkedIn's
|
|
177
178
|
"in" badge.
|
|
178
|
-
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
179
|
+
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
180
|
+
that appears only when the text is actually cut (`DsClampedText`).
|
|
179
181
|
- **Fields:** one label / value row per field, in the order received — the export's
|
|
180
182
|
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
181
183
|
rendered**; one with `href` is a link in the accent ink.
|
|
@@ -1091,21 +1093,21 @@ next.
|
|
|
1091
1093
|
|
|
1092
1094
|
### Props
|
|
1093
1095
|
|
|
1094
|
-
| Prop | Type
|
|
1095
|
-
| ------------ |
|
|
1096
|
-
| `variant` | `'default' \| 'primary' \| 'secondary' \| 'tertiary' \| 'quaternary' \| 'quinary' \| 'senary' \| 'dotted' \| 'danger' \| 'warning'` | `'default'` | Visual style. `warning` is a legacy solid-red alias of `danger` — prefer `danger`. |
|
|
1097
|
-
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'`
|
|
1098
|
-
| `nativeType` | `'button' \| 'submit' \| 'reset'`
|
|
1099
|
-
| `leftIcon` | `string`
|
|
1100
|
-
| `rightIcon` | `string`
|
|
1101
|
-
| `ariaLabel` | `string`
|
|
1102
|
-
| `disabled` | `boolean`
|
|
1103
|
-
| `loading` | `boolean`
|
|
1104
|
-
| `circle` | `boolean`
|
|
1105
|
-
| `square` | `boolean`
|
|
1106
|
-
| `noPadding` | `boolean`
|
|
1107
|
-
| `selected` | `boolean`
|
|
1108
|
-
| `autofocus` | `boolean`
|
|
1096
|
+
| Prop | Type | Default | Description |
|
|
1097
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1098
|
+
| `variant` | `'default' \| 'primary' \| 'secondary' \| 'tertiary' \| 'quaternary' \| 'quinary' \| 'senary' \| 'outline' \| 'ai' \| 'dotted' \| 'danger' \| 'warning'` | `'default'` | Visual style. `ai` is the primary-like action (pink → orange gradient) action of the AI features. `warning` is a legacy solid-red alias of `danger` — prefer `danger`. |
|
|
1099
|
+
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'` | `'medium'` | Control height + padding. |
|
|
1100
|
+
| `nativeType` | `'button' \| 'submit' \| 'reset'` | `'button'` | Native `<button type>`. |
|
|
1101
|
+
| `leftIcon` | `string` | `''` | Material Icon name rendered before the label (or use the `#leading` slot). |
|
|
1102
|
+
| `rightIcon` | `string` | `''` | Material Icon name rendered after the label (or use the `#trailing` slot). |
|
|
1103
|
+
| `ariaLabel` | `string` | `''` | Accessible label — required for icon-only (`circle`/`square`) buttons. |
|
|
1104
|
+
| `disabled` | `boolean` | `false` | Disables the button and blocks `click`. |
|
|
1105
|
+
| `loading` | `boolean` | `false` | Shows a spinner overlay, natively disables the button, and blocks `click`. |
|
|
1106
|
+
| `circle` | `boolean` | `false` | Round icon-only button (width === height). |
|
|
1107
|
+
| `square` | `boolean` | `false` | Flat 4px-radius icon-only button (width === height). |
|
|
1108
|
+
| `noPadding` | `boolean` | `false` | Zero the square padding for a tight glyph (only takes effect with `square`). |
|
|
1109
|
+
| `selected` | `boolean` | `false` | Toggle state — accent outline + fill, sets `aria-pressed`. |
|
|
1110
|
+
| `autofocus` | `boolean` | `false` | Native `autofocus`. |
|
|
1109
1111
|
|
|
1110
1112
|
### Events
|
|
1111
1113
|
|
|
@@ -1128,6 +1130,8 @@ next.
|
|
|
1128
1130
|
|
|
1129
1131
|
- `primary` for the page's main call to action; `secondary`/`tertiary` for lower
|
|
1130
1132
|
emphasis; `danger` for destructive actions (prefer it over the legacy `warning`).
|
|
1133
|
+
- `ai` for the main action of an AI feature (e.g. "Search" / "Search again" in AI Search);
|
|
1134
|
+
white label (2.7:1 on the gradient start — below AA, brand colors).
|
|
1131
1135
|
- Always set `ariaLabel` on `circle`/`square` icon-only buttons.
|
|
1132
1136
|
- Use `loading` for in-flight async actions instead of swapping in a separate
|
|
1133
1137
|
`DsSpinner`.
|
|
@@ -1241,6 +1245,50 @@ parent `DsTable`/`DsRow`.
|
|
|
1241
1245
|
|
|
1242
1246
|
---
|
|
1243
1247
|
|
|
1248
|
+
<!-- DsClampedText · Data -->
|
|
1249
|
+
|
|
1250
|
+
## DsClampedText
|
|
1251
|
+
|
|
1252
|
+
Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
1253
|
+
`DsProfileCompanyCard` (the design export's `ProfileCompanyCard`), which uses it without any
|
|
1254
|
+
visual change; the full profile's «About» of the person uses it too.
|
|
1255
|
+
|
|
1256
|
+
- **Clamp:** `-webkit-line-clamp` driven by the `lines` prop (default 3).
|
|
1257
|
+
- **Toggle placement:** with `label` it sits beside the caption, above the text (the company
|
|
1258
|
+
card's About); without it, below the text.
|
|
1259
|
+
- **Toggle only when clamped:** the component measures the text (scroll vs client height) on
|
|
1260
|
+
mount, when `text` or `lines` change and when its width changes (`ResizeObserver`, skipped
|
|
1261
|
+
where it does not exist). A text that fits renders no toggle. Expanded, the toggle stays so
|
|
1262
|
+
the text can be clamped again.
|
|
1263
|
+
- **Empty text** renders nothing.
|
|
1264
|
+
|
|
1265
|
+
### Props
|
|
1266
|
+
|
|
1267
|
+
| Prop | Type | Default | Description |
|
|
1268
|
+
| -------------------- | --------- | ------- | ---------------------------------------------- |
|
|
1269
|
+
| `text` | `string` | — | The text (required). Empty → nothing rendered. |
|
|
1270
|
+
| `lines` | `number` | `3` | Lines shown while clamped. |
|
|
1271
|
+
| `showMoreLabel` | `string` | `''` | Toggle text while clamped. |
|
|
1272
|
+
| `showLessLabel` | `string` | `''` | Toggle text while expanded. |
|
|
1273
|
+
| `label` | `string` | `''` | Optional caption; moves the toggle beside it. |
|
|
1274
|
+
| `preserveLineBreaks` | `boolean` | `false` | Keep the text's own line breaks (`pre-line`). |
|
|
1275
|
+
|
|
1276
|
+
No events and no slots: the expanded state is internal.
|
|
1277
|
+
|
|
1278
|
+
### Accessibility
|
|
1279
|
+
|
|
1280
|
+
- The toggle is a `<button type="button">` with `aria-expanded` and `aria-controls` pointing
|
|
1281
|
+
at the text.
|
|
1282
|
+
- Labels arrive already translated; the component owns no copy.
|
|
1283
|
+
|
|
1284
|
+
### Design parity (export `ProfileCompanyCard`, About)
|
|
1285
|
+
|
|
1286
|
+
- Label: 10.5px / 700 / .5px uppercase grey. Toggle: 12px / 600 accent, focus ring 2px
|
|
1287
|
+
`accent-mid`. Text: 13px / 1.5 slate, 3px under the head row.
|
|
1288
|
+
- Off-scale 10.5px follows the export (Diego, 2026-09-23).
|
|
1289
|
+
|
|
1290
|
+
---
|
|
1291
|
+
|
|
1244
1292
|
<!-- DsContactValue · Data -->
|
|
1245
1293
|
|
|
1246
1294
|
## DsContactValue
|
|
@@ -2091,7 +2139,7 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
2091
2139
|
|
|
2092
2140
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2093
2141
|
- The password-reveal button is icon-only, so it only renders once `toggleLabel` is supplied (its `aria-label`), and exposes `aria-pressed` for its toggled state.
|
|
2094
|
-
-
|
|
2142
|
+
- Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
|
|
2095
2143
|
- Exposes `focus()` and `focusAtEnd()` via `defineExpose` for imperative control (e.g. focusing a field after a panel opens) from the consuming app.
|
|
2096
2144
|
|
|
2097
2145
|
### When to use
|
|
@@ -2131,7 +2179,7 @@ only the current selection it's handed via `item`.
|
|
|
2131
2179
|
- `aria-haspopup="listbox"` signals that activating the button opens a picker.
|
|
2132
2180
|
- The label truncates with ellipsis at ~200px so long names stay legible; the full name is still the button's accessible name via the visible text node.
|
|
2133
2181
|
- Pass `ariaLabel` whenever the empty state has no `emptyTitle` — otherwise the button has no accessible name.
|
|
2134
|
-
- Native `<button>` gets Enter/Space activation
|
|
2182
|
+
- Native `<button>` gets Enter/Space activation for free; keyboard focus (`:focus-visible`) turns the border dark grey, with no ring.
|
|
2135
2183
|
|
|
2136
2184
|
### When to use
|
|
2137
2185
|
|
|
@@ -2288,6 +2336,7 @@ is false, an array of values when `multiple` is true.
|
|
|
2288
2336
|
|
|
2289
2337
|
- Implements the WAI-ARIA APG "Collapsible Dropdown Listbox" (select-only combobox) pattern: `aria-haspopup="listbox"`, `aria-expanded`, `aria-controls`, `role="listbox"`/`role="option"`, `aria-selected`, `aria-activedescendant`.
|
|
2290
2338
|
- Full keyboard support on the trigger: `ArrowUp`/`ArrowDown` open/navigate, `Home`/`End` jump, `Enter`/`Space` select, `Escape` closes (and stops propagation, so an ancestor `DsModal` doesn't also close), `Tab` collapses without stealing focus.
|
|
2339
|
+
- Focus (and the open state) turns the control's border dark grey, the same token as the text fields; there is no ring.
|
|
2291
2340
|
- Grouped options (`option.group`) render as real `role="group"` regions labelled by their header; headers are never focusable/selectable.
|
|
2292
2341
|
- When `filterable`, the search input carries `role="combobox"` and owns `aria-activedescendant` while open (focus moves there instead of staying on the trigger).
|
|
2293
2342
|
- The `filterSummary` clear button is icon-only, so `clearLabel` maps to its `aria-label`.
|
|
@@ -2346,17 +2395,28 @@ is the current string value).
|
|
|
2346
2395
|
|
|
2347
2396
|
### Props
|
|
2348
2397
|
|
|
2349
|
-
| Prop | Type | Default | Description
|
|
2350
|
-
| -------------- | ------------------------------------------------ | ------------ |
|
|
2351
|
-
| `modelValue` | `string` | `''` | v-model — current text value.
|
|
2352
|
-
| `placeholder` | `string` | `''` | Native placeholder text.
|
|
2353
|
-
| `rows` | `number` | `4` | Native `rows` attribute (visible line count).
|
|
2354
|
-
| `disabled` | `boolean` | `false` | Disables the control.
|
|
2355
|
-
| `
|
|
2356
|
-
| `
|
|
2357
|
-
| `
|
|
2358
|
-
| `
|
|
2359
|
-
| `
|
|
2398
|
+
| Prop | Type | Default | Description |
|
|
2399
|
+
| -------------- | ------------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------------ |
|
|
2400
|
+
| `modelValue` | `string` | `''` | v-model — current text value. |
|
|
2401
|
+
| `placeholder` | `string` | `''` | Native placeholder text. |
|
|
2402
|
+
| `rows` | `number` | `4` | Native `rows` attribute (visible line count). |
|
|
2403
|
+
| `disabled` | `boolean` | `false` | Disables the control. |
|
|
2404
|
+
| `readonly` | `boolean` | `false` | Focusable and selectable but not editable; no disabled look, never emits `update:modelValue`. |
|
|
2405
|
+
| `autoGrow` | `boolean` | `false` | Grow with the content between `minRows` and `maxRows`, then scroll. Turns the resize handle off. |
|
|
2406
|
+
| `minRows` | `number` | `1` | Minimum visible rows with `autoGrow` (it replaces `rows` as the native attribute). |
|
|
2407
|
+
| `maxRows` | `number` | `undefined` | Maximum rows with `autoGrow`; beyond it the control scrolls. No cap when omitted. |
|
|
2408
|
+
| `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
|
|
2409
|
+
| `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
|
|
2410
|
+
| `name` | `string` | `''` | Native `name` attribute. |
|
|
2411
|
+
| `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
|
|
2412
|
+
| `variant` | `'default' \| 'emphasis'` | `'default'` | Deprecated: `emphasis` is identical to `default` and will be removed. Leave it unset. |
|
|
2413
|
+
| `resize` | `'none' \| 'vertical' \| 'horizontal' \| 'both'` | `'vertical'` | CSS `resize` behavior of the control. |
|
|
2414
|
+
|
|
2415
|
+
### Slots
|
|
2416
|
+
|
|
2417
|
+
| Slot | Description |
|
|
2418
|
+
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2419
|
+
| `leading` | Icon inside the box, left-aligned with the first line (decorative, `aria-hidden`). Pass a Material glyph, e.g. `<i class="material-symbols-filled">auto_awesome</i>`; the glyph is sized to 20px. |
|
|
2360
2420
|
|
|
2361
2421
|
### Events
|
|
2362
2422
|
|
|
@@ -2370,7 +2430,10 @@ is the current string value).
|
|
|
2370
2430
|
|
|
2371
2431
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2372
2432
|
- `class`/`style`/`data-*` fall through to the root wrapper; every other attribute (e.g. `maxlength`, `autocomplete`, `spellcheck`, native listeners) forwards straight to the real `<textarea>` (`inheritAttrs: false` plus a manual split) — so ARIA and native control attributes land where assistive tech expects them.
|
|
2373
|
-
-
|
|
2433
|
+
- Focus is shown by the border alone: mid grey (`$border-input`) at rest, darker on hover (`$border-input-hover`), dark grey (`$border-input-focus`) on focus, no outline and no change of the text weight.
|
|
2434
|
+
- `readonly` sets the native attribute: the field stays in the tab order and its text can be selected and copied, unlike `disabled`.
|
|
2435
|
+
- The `leading` icon is decorative (`aria-hidden`); name the field with a `<label>` or `aria-label`, not with the icon.
|
|
2436
|
+
- Border transitions through rest/focus/disabled/error states like `DsInput`; focus changes the border only, never the text weight.
|
|
2374
2437
|
|
|
2375
2438
|
### When to use
|
|
2376
2439
|
|
package/llms.txt
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
- DsSpinner (Core): Indeterminate loading indicator — a circular SVG spinner. **Presentational only**: no
|
|
25
25
|
- DsTag (Core): Small bordered chip with an optional × close control. **Presentational only**: `close`
|
|
26
26
|
- DsCell (Data): A single `<td>` cell in the `DsTable` compound API. **Presentational only**: no props
|
|
27
|
+
- DsClampedText (Data): Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
27
28
|
- DsContactValue (Data): A single email/phone row: a verification glyph, the value itself, and a type badge
|
|
28
29
|
- DsCustomTag (Data): Static status chip (tinted background + matching border/text), non-interactive.
|
|
29
30
|
- DsDataCard (Data): The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|