@salesql/sql_components_vue3 3.14.0 → 3.15.1

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.14.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.15.1)
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
 
@@ -775,64 +775,92 @@ A folder-tinted glyph, a neutral label and a caret; the folder **name** lives in
775
775
  never in the label; click opens the folder picker to re-file. Measured from the design
776
776
  export's `SavedButton` / `FolderMenu`.
777
777
 
778
- Folder CRUD is **opt-in**. By default the footer only tells you the user wants a new folder
779
- (`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
778
+ Folder CRUD is **opt-in and explicit**: two props say what the library does, `colors` only
779
+ supplies the palette.
780
780
 
781
- - `colors` (non-empty) — the footer opens the create / edit form **inside the panel** (a
782
- `DsOrganizerForm`: back arrow, name, swatches, submit) instead of emitting `create`.
783
- - `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
784
- The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
781
+ - `create` — what the footer does: `'none'` (default, no footer), `'event'` (emit `create` with
782
+ the search text; the app runs its own flow) or `'form'` (open the create form **inside the
783
+ panel**, a `DsOrganizerForm`: back arrow, name, swatches, submit).
784
+ - `rowActions` — the ⋮ menu on each row: `'none'` (default), `'event'` (Edit / Delete only emit
785
+ `edit` / `delete`) or `'form'` (Edit also opens the form, pre-filled; its submit stays disabled
786
+ until the name or the colour changes).
785
787
 
786
788
  The component never persists anything and never guesses that a save worked: it emits intent
787
789
  (`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
788
790
  `closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit.
789
791
 
792
+ ### Rules
793
+
794
+ - **Tooltip:** it shows whenever `tooltip` is not empty, and hides while the panel is open.
795
+ There is no prop for it.
796
+ - **`'form'` needs the palette:** `create="form"` and `rowActions="form"` require a non-empty
797
+ `colors`; Vue warns in dev when it is missing.
798
+ - **`colors` gates nothing:** without `create` or `rowActions` it changes nothing visible.
799
+ - **Footer slot:** it always renders when passed (in every `create` mode) and replaces the
800
+ default button; it receives `openCreateForm(name?)` to open the form from the app's own control.
801
+ - **Copy:** `copy` is partial; the keys it carries override the English defaults
802
+ (`DS_SAVED_BUTTON_COPY`), the rest stays.
803
+
790
804
  ### Props
791
805
 
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. |
812
-
813
- Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
814
- `editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Folder'`),
815
- `editFormTitle` (`'Edit Folder'`), `createSubmitLabel` (`'Create & Select'`), `editSubmitLabel`
816
- (`'Save'`), `formNamePlaceholder` (`'Folder name'`), `setColorLabel` (`'Set Color'`), `backLabel`
817
- (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own defaults). `createLabel` is
818
- still the footer button text — without it (and without a `footer` slot) there is no footer, so
819
- the form flow has no entry point.
806
+ | Prop | Type | Default | Description |
807
+ | ------------------ | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
808
+ | `label` | `string` | — | Neutral label — "Saved", or "Save" before the first save (required). |
809
+ | `tooltip` | `string` | `''` | "Saved in {folder} · change folder". Shows whenever non-empty; hides while the picker is open. |
810
+ | `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. |
811
+ | `folder` | `DsPickerOption \| null` | `null` | The current folder; tints the glyph. `null` = no glyph. |
812
+ | `folders` | `DsPickerOption[]` | — | Every folder the user can pick (required). |
813
+ | `icon` | `string` | `'folder'` | Material Symbols ligature for the folder glyph. |
814
+ | `size` | `'medium' \| 'large'` | `'medium'` | 32px for rows / profile, 36px for action and bulk bars. |
815
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Add contacts to»). Off = the design's table / profile trigger. |
816
+ | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
817
+ | `disabled` | `boolean` | `false` | |
818
+ | `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. |
819
+ | `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the footer does. `DS_PICKER_CREATE_MODES`. |
820
+ | `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
821
+ | `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
822
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
823
+ | `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown when it reopens. |
824
+ | `copy` | `Partial<DsSavedButtonCopy>` | `{}` | Every string, merged over `DS_SAVED_BUTTON_COPY`. See below. |
825
+
826
+ `DsSavedButtonCopy` keys (English defaults): `searchPlaceholder` (`'Search folders'`), `empty`
827
+ (`'No folders found'`, empty string = nothing), `create` (`'New Folder'`, the footer button),
828
+ `actions` (`'Actions'`, the ⋮ `aria-label`), `edit` (`'Edit'`), `delete` (`'Delete'`),
829
+ `createFormTitle` (`'New Folder'`), `editFormTitle` (`'Edit Folder'`), `createSubmit`
830
+ (`'Create & Select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
831
+ (`'Set Color'`), `back` (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own
832
+ defaults when unset).
820
833
 
821
834
  `DsPickerOption` is `{ id, name, color? }` — map frontend-app's `Folder` with
822
835
  `{ id: f.uuid, name: f.name, color: f.color }`.
823
836
 
837
+ #### Deprecated props (removed in 4.0)
838
+
839
+ They still work and are resolved in one place (`resolveLegacyPickerProps`); an explicit new prop
840
+ always wins over its alias. When `create` is not set it is inferred as before: a footer (`createLabel`
841
+ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `'none'`.
842
+
843
+ | Deprecated prop | Use instead |
844
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
845
+ | `rowActions` (boolean) | `rowActions="form"` (with `colors`) / `"event"`; `false` = `"none"` |
846
+ | `createLabel` | `create="event"` or `"form"` + `copy.create` |
847
+ | `searchPlaceholder`, `emptyLabel` | `copy.searchPlaceholder`, `copy.empty` |
848
+ | `actionsLabel`, `editLabel`, `deleteLabel` | `copy.actions`, `copy.edit`, `copy.delete` |
849
+ | `createFormTitle`, `editFormTitle`, `createSubmitLabel`, `editSubmitLabel`, `formNamePlaceholder`, `setColorLabel`, `backLabel`, `errorMissingName`, `errorTooLongName` | `copy.createFormTitle`, `copy.editFormTitle`, `copy.createSubmit`, `copy.editSubmit`, `copy.namePlaceholder`, `copy.setColor`, `copy.back`, `copy.errorMissingName`, `copy.errorTooLongName` |
850
+
824
851
  ### Events
825
852
 
826
- | Event | Payload | When |
827
- | --------------- | --------------------- | ---------------------------------------------------------------------------------------------- |
828
- | `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
829
- | `create` | `string` | "New Folder" clicked **without `colors`**; payload is the search text typed so far. Unchanged. |
830
- | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
831
- | `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
832
- | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
833
- | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
834
- | `search` | `string` | The search text changed (filtering is local). |
835
- | `update:open` | `boolean` | The panel opened or closed. |
853
+ | Event | Payload | When |
854
+ | --------------- | --------------------- | -------------------------------------------------------------------------------------------------------- |
855
+ | `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
856
+ | `create` | `string` | The footer was clicked with `create="event"`; payload is the search text typed so far. The panel closes. |
857
+ | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
858
+ | `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
859
+ | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
860
+ | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
861
+ | `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
862
+ | `search` | `string` | The search text changed (filtering is local). |
863
+ | `update:open` | `boolean` | The panel opened or closed. |
836
864
 
837
865
  ### Exposed
838
866
 
@@ -842,9 +870,9 @@ the form flow has no entry point.
842
870
 
843
871
  ### Slots
844
872
 
845
- | Slot | Scope | Use |
846
- | -------- | ------------------- | ----------------------------------------------------- |
847
- | `footer` | `{ query: string }` | Replace the create button with the app's own control. |
873
+ | Slot | Scope | Use |
874
+ | -------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
875
+ | `footer` | `{ query: string, openCreateForm(name?: string): void }` | Replace the create button with the app's own control. `openCreateForm` opens the form (name defaults to the search text); needs `colors`. |
848
876
 
849
877
  ### Accessibility
850
878
 
@@ -901,15 +929,17 @@ Named `DsTagPicker`, not `DsTag`: `DsTag` is already the DS outlined chip.
901
929
  **Selection is a working copy.** Toggling checkboxes changes nothing outside the panel;
902
930
  `apply` fires once, with the final list. Closing without Apply discards.
903
931
 
904
- Tag CRUD is **opt-in**. By default the create row only tells you the user wants a new tag
905
- (`create`, with the search text) and the app runs its own flow. Two props turn the library flow on:
932
+ Tag CRUD is **opt-in and explicit**: two props say what the library does, `colors` only
933
+ supplies the palette.
906
934
 
907
- - `colors` (non-empty) — the create row and a footer **«+ New …»** text button (the same
908
- `createLabel`, a `+` glyph on the left, Apply stays on the right) open the create / edit form
909
- **inside the panel** (a `DsOrganizerForm`: back arrow, name, swatches, submit) instead of
910
- emitting `create`. The name arrives pre-filled with the search text.
911
- - `rowActions` — each row gets a ⋮ menu with **Edit** and **Delete** (red).
912
- The edit form opens pre-filled and its submit stays disabled until the name or the colour changes.
935
+ - `create` — what the create affordance does: `'none'` (default), `'event'` (the inline
936
+ «Create “q”» row emits `create` with the search text; the app runs its own flow) or `'form'`
937
+ (the row **and** a footer «+ New Tag» button open the create form **inside the panel**, a
938
+ `DsOrganizerForm`: back arrow, name, swatches, submit; the name arrives pre-filled with the
939
+ search text).
940
+ - `rowActions` — the ⋮ menu on each row: `'none'` (default), `'event'` (Edit / Delete only emit
941
+ `edit` / `delete`) or `'form'` (Edit also opens the form, pre-filled; its submit stays disabled
942
+ until the name or the colour changes).
913
943
 
914
944
  The component never persists anything and never guesses that a save worked: it emits intent
915
945
  (`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
@@ -917,47 +947,74 @@ The component never persists anything and never guesses that a save worked: it e
917
947
  form and back keeps the search and the working-copy selection; the picker never selects the tag it
918
948
  created — the app decides.
919
949
 
950
+ ### Rules
951
+
952
+ - **`'form'` needs the palette:** `create="form"` and `rowActions="form"` require a non-empty
953
+ `colors`; Vue warns in dev when it is missing.
954
+ - **`colors` gates nothing:** without `create` or `rowActions` it changes nothing visible.
955
+ - **Two create texts:** `copy.createRow` is the inline «Create “q”» row and `copy.newButton` is the
956
+ footer «+ New Tag» (only with `create="form"`). The deprecated `createLabel` fed both.
957
+ - **Tooltip:** automatic. The trigger shows the full label only while it is truncated, and hides
958
+ while the panel is open.
959
+ - **Copy:** `copy` is partial; the keys it carries override the English defaults
960
+ (`DS_TAG_PICKER_COPY`), the rest stays.
961
+
920
962
  ### Props
921
963
 
922
- | Prop | Type | Default | Description |
923
- | ------------------- | --------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- |
924
- | `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
925
- | `taggedAsLabel` | `string` | — | Prefix once tagged ("Tagged as") — the first tag's name follows (required). |
926
- | `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
927
- | `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
928
- | `applyLabel` | `string` | — | The footer confirm (required). |
929
- | `searchPlaceholder` | `string` | `''` | |
930
- | `emptyLabel` | `string` | `''` | Shown when nothing matches and nothing can be created. |
931
- | `createLabel` | `string` | `''` | Prefix of the create row («Create “{query}”») and, with `colors`, the text of the footer «+ New» button. Empty = neither. |
932
- | `moreLabel` | `string` | `''` | Accessible name for the `+N` chip. |
933
- | `size` | `'medium' \| 'large'` | `'medium'` | |
934
- | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
935
- | `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
936
- | `disabled` | `boolean` | `false` | |
937
- | `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the create row emits `create` as before. |
938
- | `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
939
- | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
940
- | `formError` | `string` | `''` | A failed save, shown under the name field. |
941
-
942
- Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
943
- `editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Tag'`),
944
- `editFormTitle` (`'Edit Tag'`), `createSubmitLabel` (`'Create'`), `editSubmitLabel` (`'Save'`),
945
- `formNamePlaceholder` (`'Tag name'`), `setColorLabel` (`'Set Color'`), `backLabel` (`'Back'`),
946
- `errorMissingName` / `errorTooLongName` (the form's own defaults).
964
+ | Prop | Type | Default | Description |
965
+ | ------------- | ----------------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- |
966
+ | `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
967
+ | `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
968
+ | `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
969
+ | `size` | `'medium' \| 'large'` | `'medium'` | |
970
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
971
+ | `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
972
+ | `disabled` | `boolean` | `false` | |
973
+ | `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the create affordance does. `DS_PICKER_CREATE_MODES`. |
974
+ | `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
975
+ | `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
976
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
977
+ | `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown on reopen. |
978
+ | `copy` | `Partial<DsTagPickerCopy>` | `{}` | Every string, merged over `DS_TAG_PICKER_COPY`. See below. |
979
+
980
+ `DsTagPickerCopy` keys (English defaults): `taggedAs` (`'Tagged as'`), `apply` (`'Apply'`),
981
+ `searchPlaceholder` (`'Search tags'`), `empty` (`'No tags found'`, empty string = nothing), `more`
982
+ (`''`, the `+N` chip's accessible name), `createRow` (`'Create'`), `newButton` (`'New Tag'`),
983
+ `actions` (`'Actions'`, the ⋮ `aria-label`), `edit` (`'Edit'`), `delete` (`'Delete'`),
984
+ `createFormTitle` (`'New Tag'`), `editFormTitle` (`'Edit Tag'`), `createSubmit` (`'Create'`),
985
+ `editSubmit` (`'Save'`), `namePlaceholder` (`'Tag name'`), `setColor` (`'Set Color'`), `back`
986
+ (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own defaults when unset).
947
987
 
948
988
  Map frontend-app's `Tag` with `{ id: t.id, name: t.name, color: t.color }` — the API takes
949
989
  tags by numeric `id` (`projects_ids`), unlike folders.
950
990
 
991
+ #### Deprecated props (removed in 4.0)
992
+
993
+ They still work and are resolved in one place (`resolveLegacyPickerProps`); an explicit new prop
994
+ always wins over its alias. When `create` is not set it is inferred as before: `createLabel` with
995
+ `colors` = `'form'`, without = `'event'`, no `createLabel` = `'none'`. `taggedAsLabel` and
996
+ `applyLabel` are no longer required.
997
+
998
+ | Deprecated prop | Use instead |
999
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1000
+ | `rowActions` (boolean) | `rowActions="form"` (with `colors`) / `"event"`; `false` = `"none"` |
1001
+ | `createLabel` | `create="event"` or `"form"` + `copy.createRow` (inline row) and `copy.newButton` (footer) |
1002
+ | `taggedAsLabel`, `applyLabel`, `moreLabel` | `copy.taggedAs`, `copy.apply`, `copy.more` |
1003
+ | `searchPlaceholder`, `emptyLabel` | `copy.searchPlaceholder`, `copy.empty` |
1004
+ | `actionsLabel`, `editLabel`, `deleteLabel` | `copy.actions`, `copy.edit`, `copy.delete` |
1005
+ | `createFormTitle`, `editFormTitle`, `createSubmitLabel`, `editSubmitLabel`, `formNamePlaceholder`, `setColorLabel`, `backLabel`, `errorMissingName`, `errorTooLongName` | `copy.createFormTitle`, `copy.editFormTitle`, `copy.createSubmit`, `copy.editSubmit`, `copy.namePlaceholder`, `copy.setColor`, `copy.back`, `copy.errorMissingName`, `copy.errorTooLongName` |
1006
+
951
1007
  ### Events
952
1008
 
953
1009
  | Event | Payload | When |
954
1010
  | --------------- | --------------------- | ------------------------------------------------------------------------------------------ |
955
1011
  | `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. |
956
- | `create` | `string` | The create row was clicked **without `colors`**; payload is the typed text. Unchanged. |
957
- | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `colors`, the form opens too). |
1012
+ | `create` | `string` | The create row was clicked with `create="event"`; payload is the typed text. |
1013
+ | `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
958
1014
  | `delete` | `DsPickerOption` | Delete chosen in a row's ⋮ menu. Confirm and delete in the app; the panel does not change. |
959
1015
  | `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
960
1016
  | `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
1017
+ | `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
961
1018
  | `search` | `string` | The search text changed (filtering is local). |
962
1019
  | `update:open` | `boolean` | The panel opened or closed. |
963
1020
 
@@ -1001,7 +1058,7 @@ aria-expanded>`), so it never toggles the tag. It appears on row hover, on keybo
1001
1058
  hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
1002
1059
  is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
1003
1060
  (`edit` / `delete`), as in production.
1004
- - Footer with `colors`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
1061
+ - Footer with `create="form"`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
1005
1062
  Apply on the right; the panel stays 240px in the form view, which drops its padding to bring
1006
1063
  its own rows.
1007
1064
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.14.0",
3
+ "version": "3.15.1",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",