@salesql/sql_components_vue3 4.2.0 → 4.3.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.
@@ -5,6 +5,6 @@ export interface DsHighlightSegment {
5
5
  }
6
6
  export interface DsHighlightTextProps {
7
7
  text: string;
8
- /** Case- and accent-insensitive plain text; blank ones ignored. Empty → nothing marked. */
8
+ /** Whole words, case- and accent-insensitive plain text; blank ones ignored. Empty → nothing marked. */
9
9
  terms?: string[];
10
10
  }
@@ -1,6 +1,7 @@
1
1
  import type { DsHighlightSegment } from './DsHighlightText.types';
2
2
  /**
3
- * Splits `text` into marked and unmarked runs, ignoring case and accents; overlapping or
4
- * touching matches merge into one run. Terms are plain text, never patterns.
3
+ * Splits `text` into marked and unmarked runs, ignoring case and accents; a term marks
4
+ * whole words only. Overlapping or touching matches merge into one run. Terms are plain
5
+ * text, never patterns.
5
6
  */
6
7
  export declare function splitHighlights(text: string, terms: readonly string[]): DsHighlightSegment[];
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v4.2.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v4.3.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
 
@@ -5171,7 +5171,7 @@ prospector, full-profile and contact-list drawers, and in the extension.
5171
5171
  | `jobTitle` | `string` | `''` | Job title of the primary position, bold, first part of the title line. Empty → no title line. |
5172
5172
  | `company` | `string` | `''` | Company of the primary position, after `atLabel`. |
5173
5173
  | `atLabel` | `string` | `''` | The connector («at»), translated by the app. Empty → the company is left out. |
5174
- | `highlightTerms` | `string[]` | `[]` | Terms marked in the job title and the headline (`DsHighlightText`). |
5174
+ | `highlightTerms` | `string[]` | `[]` | Terms marked as whole words in the job title and the headline (`DsHighlightText`). |
5175
5175
  | `headlineMatched` | `boolean` | `false` | The title matched only through the headline → shows the match badge. |
5176
5176
  | `headlineMatchedLabel` | `string` | `''` | The badge's text («Matched in headline»). Empty → no badge. |
5177
5177
  | `details` | `string[]` | `[]` | Small line under the headline, joined with « · »; empty items dropped. |
@@ -5518,10 +5518,14 @@ Using the same component in both places keeps the highlight identical.
5518
5518
 
5519
5519
  ### Props
5520
5520
 
5521
- | Prop | Type | Default | Description |
5522
- | ------- | ---------- | ------- | --------------------------------------------------------------------------------- |
5523
- | `text` | `string` | — | The text. Rendered as text nodes, never as HTML. |
5524
- | `terms` | `string[]` | `[]` | Ignores case and accents; trimmed; blank ones ignored; overlapping matches merge. |
5521
+ | Prop | Type | Default | Description |
5522
+ | ------- | ---------- | ------- | --------------------------------------------------------------------------------------------------- |
5523
+ | `text` | `string` | — | The text. Rendered as text nodes, never as HTML. |
5524
+ | `terms` | `string[]` | `[]` | Whole words only; ignores case and accents; trimmed; blank ones ignored; overlapping matches merge. |
5525
+
5526
+ A term marks only where its letter or digit edges meet a non-word character or the end of
5527
+ the text: «cto» marks «CTO / …» but never «Director», and «data engineer» never marks «data
5528
+ engineering». Accented letters count as letters, so «dato» does not mark «Datos».
5525
5529
 
5526
5530
  `splitHighlights(text, terms)` is exported too, for a consumer that needs the runs
5527
5531
  (`{ text, match }[]`) without the component.
@@ -5547,7 +5551,7 @@ Every string is app copy.
5547
5551
 
5548
5552
  ### Events
5549
5553
 
5550
- `toggle` (column id) · `reorder` (the **full** list of ids in the new order, hidden columns included).
5554
+ `toggle` (column id) · `reorder` (the **full** list of ids in the new order, hidden columns included, then the id of the column that moved).
5551
5555
 
5552
5556
  ### Behaviour
5553
5557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",