@solercia/ui 0.6.1 → 0.7.2

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/CHANGELOG.md CHANGED
@@ -1,540 +1,587 @@
1
1
  # Changelog — @solercia/ui
2
2
 
3
- Todos los cambios notables de este paquete se documentan en este archivo. El formato sigue
4
- [Keep a Changelog](https://keepachangelog.com/es-ES/1.1.0/) y el versionado es
5
- [SemVer](https://semver.org/lang/es/) (decisión D2: se inicia en `0.1.0` pre-1.0, mientras el
6
- paquete tiene solo dos consumidores potenciales — `boki-front` y, próximamente, `gestion_proyectos`
7
- — y puede admitir cambios incompatibles en versiones `minor`).
3
+ All notable changes to this package are documented in this file. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and versioning follows
5
+ [SemVer](https://semver.org/). The package started at `0.1.0`; while it is pre-1.0 and has only a
6
+ few consumers, `minor` versions may include breaking changes.
7
+
8
+ ## [0.7.2] - 2026-11-24
9
+
10
+ ### Added
11
+
12
+ - `AGENTS.md` (with `CLAUDE.md` symlink) for AI coding agents: commands, conventions and the rule that
13
+ every commit on `main` is a tagged release. No changes to the published code.
14
+
15
+ ## [0.7.1] - 2026-11-24
16
+
17
+ The repository moved to [solercia-solutions/solercia-ui](https://github.com/solercia-solutions/solercia-ui)
18
+ as a standalone open-source workspace. No changes to the library code or its public API.
19
+
20
+ ### Added
21
+
22
+ - Component showcase application (`projects/showcase`, `npm start`) with a live demo of every public
23
+ component in light and dark mode.
24
+ - English README with the full component reference and a guide for AI coding agents, plus `llms.txt`.
25
+
26
+ ### Changed
27
+
28
+ - The library is tested zoneless, as Angular 22 runs by default; zone.js is no longer a workspace
29
+ dependency. Three calendar and kanban specs now resolve their templates before the component under
30
+ test, which removes the `NG0950` errors seen without zone.js.
31
+ - Documentation and changelog translated to English.
32
+
33
+ ## [0.7.0] - 2026-11-14
34
+
35
+ Login appearance customizable from the theme, full keyboard support and a controlled mode in
36
+ `sol-select`, and mobile adjustments. Everything is additive relative to 0.6.1: without enabling the
37
+ new option, `<sol-theme-studio>` looks and behaves the same.
38
+
39
+ ### Added
40
+
41
+ - `sol-select`: full keyboard support (arrows, Home, End, Enter, Esc, Tab) with an active option and
42
+ `aria-activedescendant`, with and without the search box; `role="option"` and `aria-selected` on
43
+ the options, `aria-haspopup="listbox"` on the button; focus returns to the button when closing
44
+ with the keyboard or after choosing.
45
+ - `sol-select`: optional inputs `ariaLabel`, `searchPlaceholder` and `emptyLabel` (defaulting to the
46
+ existing texts), and a controlled mode `[value]` + `(valueChange)` that renders the value from the
47
+ first render, including in prerendered HTML.
48
+
49
+ - `@solercia/ui/login-appearance` entry point:
50
+ - The theme's `meta.login` contract and `normalizeLoginAppearance`: default values, closed lists,
51
+ safe image and logo URLs (`https://`, `/…` or `assets/…`, PNG, JPEG, WebP or AVIF only) and the
52
+ default login mode.
53
+ - `<sol-login-frame>`: themed login frame (scene, rotating photos, shapes, panel background, brand
54
+ with a per-mode logo, and tagline). The application places its own form inside it with
55
+ `ng-content`; the library ships no authentication logic or HTTP calls.
56
+ - `<sol-login-appearance-editor>`: appearance editor with a live preview.
57
+ - `@solercia/ui/theme-studio`: `features.loginAppearance` option (off by default) that adds the
58
+ "General appearance" and "Login" tabs; `meta.login` is saved with "Apply theme" and is accepted
59
+ when importing JSON.
60
+
61
+ ### Changed
62
+
63
+ - `<sol-select>` on touch screens opens as a bottom sheet (full width, up to 70% of the height, 44 px
64
+ options, 16 px font, and respecting the iPhone home indicator) and does not focus the search box
65
+ on open, so the keyboard does not cover the list: focus stays on the list.
66
+ - `sol-select`: an option with value `''` is shown by its name instead of the placeholder; `label`
67
+ is associated with the button (`for`); the search ignores accents; options grow to 44 px tall on
68
+ mobile; the options' `hover` is also visible in dark mode.
69
+ - `solFloatingPanel`: the panel inherits its trigger's `--sol-z-modal`, so it stays above a sheet
70
+ that has raised it.
71
+
72
+ ### Fixed
73
+
74
+ - `sol-data-table`: the host becomes `display: block`. The collapse to cards measures the host's
75
+ width with `ResizeObserver`, which reports 0 on an inline element, so the table also collapsed on
76
+ desktop when its container was neither flex nor grid.
8
77
 
9
78
  ## [0.6.1] - 2026-10-02
10
79
 
11
- Paridad total de `<sol-theme-studio>` con el Theme Studio de PANDORA, del que se portó. Se
12
- comprobó con un arnés lado a lado sobre los mismos datos: 88 pares de capturas (1440×900 y
13
- 390×844, claro y oscuro: estado inicial, cada sección, historial y su segunda página, diálogo de
14
- restauración, error de JSON inválido, botón flotante y panel lateral) con 0 píxeles distintos, y
15
- un recorrido funcional con las mismas llamadas y los mismos payloads. Todo es aditivo frente a
16
- 0.6.0.
17
-
18
- ### Agregado
19
-
20
- - `SolConfirmDialogComponent` (`<sol-confirm-dialog>`): confirmación con ícono por variante
21
- (`danger` | `warning` | `info`), Escape y clic en el fondo para cancelar.
22
- - `SolRevealDirective` (`[solReveal]`): animación de entrada al hacer scroll dirigida por los
23
- tokens de movimiento del tema (`--sol-reveal-name`, `--sol-dur-slow`, `--sol-ease-entrance`), con
24
- stagger por índice y replay. Inyecta una sola vez sus keyframes globales (con el nonce de
25
- `CSP_NONCE` si existe).
80
+ Full parity of `<sol-theme-studio>` with PANDORA's Theme Studio, from which it was ported. This was
81
+ verified with a side-by-side harness over the same data: 88 screenshot pairs (1440×900 and
82
+ 390×844, light and dark: initial state, each section, history and its second page, restore dialog,
83
+ invalid JSON error, floating button and side panel) with 0 differing pixels, and a functional
84
+ walkthrough with the same calls and the same payloads. Everything is additive relative to 0.6.0.
85
+
86
+ ### Added
87
+
88
+ - `SolConfirmDialogComponent` (`<sol-confirm-dialog>`): confirmation dialog with an icon per variant
89
+ (`danger` | `warning` | `info`); Escape and a click on the backdrop cancel it.
90
+ - `SolRevealDirective` (`[solReveal]`): scroll-triggered entrance animation driven by the theme's
91
+ motion tokens (`--sol-reveal-name`, `--sol-dur-slow`, `--sol-ease-entrance`), with index-based
92
+ stagger and replay. It injects its global keyframes only once (with the `CSP_NONCE` nonce if
93
+ present).
26
94
  - `@solercia/ui/theme-studio`:
27
- - Entrada `features` (`SolThemeStudioFeatures`) con secciones y comportamientos opcionales:
28
- `themeName` (por defecto `true`), `loader` (sección «Loader / spinner» en `meta.loader`, con su
29
- muestra en la vista previa), `tableVariantMetaKey` (refleja la variante de tabla en una clave
30
- de `meta`) y `persistDefaultModeOnApply` (fija el modo por defecto como preferencia del
31
- navegador al aplicar).
32
- - Entradas `metaExtrasSchema`, `footerPlaceholder`, `exportFileName`, `versionTimeZone` y
33
- `versionTimeZoneLabel`; variable CSS `--sol-theme-studio-bottom-inset`.
34
- - `ThemeStudioStore.apply` puede emitir el tema persistido: la pantalla lo empuja con
35
- `ThemeService.setTenantTheme` (sin volver a pedirlo) y avisa si no es renderizable.
36
- - Los errores del store muestran el mensaje del backend (`error.message`,
37
- `error.errors[0].message` o `userMessage`); la regla se exporta como
38
- `extractStoreErrorMessage`.
39
- - `SolThemeStudioNotice.kind` admite `warning` (imagen de más de 2 MB, hex inválido,
40
- portapapeles no disponible).
41
- - `parseThemeJson` acepta `metaExtrasSchema`, `loader` y `tableVariantMetaKey`;
42
- `ThemeImportError.pathVisible` indica cuándo la ruta señala el campo exacto que se debe
43
- corregir.
44
- - Modelo del indicador de carga: `ThemeLoaderConfig`, `DEFAULT_LOADER_CONFIG`,
95
+ - `features` input (`SolThemeStudioFeatures`) with optional sections and behaviors:
96
+ `themeName` (default `true`), `loader` ("Loader / spinner" section in `meta.loader`, with its
97
+ sample in the preview), `tableVariantMetaKey` (mirrors the table variant into a `meta` key) and
98
+ `persistDefaultModeOnApply` (stores the default mode as the browser preference on apply).
99
+ - Inputs `metaExtrasSchema`, `footerPlaceholder`, `exportFileName`, `versionTimeZone` and
100
+ `versionTimeZoneLabel`; CSS variable `--sol-theme-studio-bottom-inset`.
101
+ - `ThemeStudioStore.apply` can emit the persisted theme: the screen pushes it with
102
+ `ThemeService.setTenantTheme` (without fetching it again) and warns if it is not renderable.
103
+ - Store errors show the backend's message (`error.message`, `error.errors[0].message` or
104
+ `userMessage`); the rule is exported as `extractStoreErrorMessage`.
105
+ - `SolThemeStudioNotice.kind` supports `warning` (image over 2 MB, invalid hex, clipboard
106
+ unavailable).
107
+ - `parseThemeJson` accepts `metaExtrasSchema`, `loader` and `tableVariantMetaKey`;
108
+ `ThemeImportError.pathVisible` indicates when the path points to the exact field to fix.
109
+ - Loading-indicator model: `ThemeLoaderConfig`, `DEFAULT_LOADER_CONFIG`,
45
110
  `STUDIO_LOADER_PRESENTATIONS`, `STUDIO_LOADER_ANIMATIONS`.
46
111
 
47
- ### Cambiado
112
+ ### Changed
48
113
 
49
- - `<sol-theme-studio>` usa el marcado, los estilos y los textos del original: tarjetas con
50
- animación de entrada, panel lateral propio bajo 1024 px (en vez de `sol-drawer`) con Escape para
51
- cerrar, `sol-confirm-dialog` (en vez de `sol-modal`), historial con fecha y hora `medium`,
52
- línea de estado del JSON siempre presente, pie de página de hasta 200 caracteres. Importar y
53
- previsualizar una versión ya no emiten `notify`: se informan en la línea de estado, como en el
54
- original.
55
- - Los textos es-CO son los del original (salvo `preview.footerFallback`, `table.hint` y
56
- `loader.hint`, que quedan genéricos); los del historial y del JSON conservan el trato de usted
57
- del original.
58
- - Tras aplicar, el borrador importado o la versión restaurada sigue siendo la base del editor:
59
- sus tokens no editados viajan intactos en lo que se exporte o se vuelva a aplicar.
60
- - El color elegido con el selector o una sugerencia se guarda tal cual (sin pasarlo a
61
- mayúsculas), igual que en el original.
114
+ - `<sol-theme-studio>` uses the original's markup, styles and texts: cards with an entrance
115
+ animation, its own side panel below 1024 px (instead of `sol-drawer`) that closes with Escape,
116
+ `sol-confirm-dialog` (instead of `sol-modal`), history with `medium` date and time, an
117
+ always-present JSON status line, and a footer of up to 200 characters. Importing and previewing a
118
+ version no longer emit `notify`: they are reported on the status line, as in the original.
119
+ - The es-CO texts are the original's (except `preview.footerFallback`, `table.hint` and
120
+ `loader.hint`, which stay generic); the history and JSON texts keep the original's formal
121
+ second-person ("usted") form of address.
122
+ - After applying, the imported draft or restored version remains the editor's base: its unedited
123
+ tokens carry through intact into whatever is exported or applied again.
124
+ - The color chosen with the picker or a suggestion is stored as is (not converted to uppercase), as
125
+ in the original.
62
126
 
63
- ### Corregido
127
+ ### Fixed
64
128
 
65
- - Las 2 pruebas de `ThemeService` sobre `meta.defaultMode` esperaban que la preferencia guardada
66
- ganara; el código (el modo de BD gana en cada carga y se sincroniza en `localStorage`) es el
67
- comportamiento correcto y del que depende PANDORA. Se corrigieron las pruebas y la
68
- documentación de `setTenantTheme` y `setDarkMode`.
129
+ - The 2 `ThemeService` tests on `meta.defaultMode` expected the saved preference to win; the code
130
+ (the DB mode wins on each load and is synchronized to `localStorage`) is the correct behavior and
131
+ the one PANDORA depends on. The tests and the documentation of `setTenantTheme` and
132
+ `setDarkMode` were fixed.
69
133
 
70
- ### Notas
134
+ ### Notes
71
135
 
72
- - El panel lateral de la vista previa usa `--sol-dur-normal`, que la `EMIT_TABLE` no emite: como
73
- en el original, aparece sin deslizarse. Se conserva así por paridad.
136
+ - The preview's side panel uses `--sol-dur-normal`, which `EMIT_TABLE` does not emit: as in the
137
+ original, it appears without sliding. It is kept this way for parity.
74
138
 
75
139
  ## [0.6.0] - 2026-10-01
76
140
 
77
- Versión estable. Incluye todo lo de `0.6.0-rc.1` (abajo) más lo que PANDORA, primer consumidor
78
- externo, construyó o parchó por fuera de la librería. Todo es aditivo salvo la nota de
79
- «Cambiado».
80
-
81
- ### Agregado
82
-
83
- - **Punto de entrada secundario `@solercia/ui/theme-studio`** (las apps que no lo importan no lo
84
- cargan):
85
- - `<sol-theme-studio>`: editor visual completo del tema — controles compartidos y por modo
86
- (claro/oscuro), vista previa aislada (las variables se aplican al host del preview, nunca a
87
- `:root`), aplicar con confirmación (`sol-modal`), historial paginado con restauración de
88
- versiones, importar y exportar JSON, carga de logo y favicon. Entradas `baseTheme` y
89
- `metaExtras`; salidas `applied` (tema guardado) y `notify` (`SolThemeStudioNotice`, la app
90
- decide cómo mostrarlo). Estados de carga, vacío legítimo, error con reintento y éxito.
91
- - Contrato de persistencia `ThemeStudioStore` + token `THEME_STUDIO_STORE`, con los tipos
92
- `ThemeVersion` y `ThemeVersionPage`. Los métodos opcionales (`listVersions`, `getVersion`,
93
- `uploadLogo`) apagan su sección si el host no los implementa.
94
- - Núcleo headless sin inyección de Angular: `buildThemeFile(form, baseTheme?, metaExtras?)`,
95
- `mapThemeFileToForm`, `deepMerge`, `parseThemeJson` (tope de 256 KB, profundidad 20, bloquea
96
- `__proto__`, `url(`, `javascript:`, `@import`, `expression(`, marcado y URLs de asset que no
97
- son https ni relativas; colores de marca extra solo en hex) y `mergeThemeEditorChanges`.
98
- - `parseThemeJson` lanza `ThemeImportError` con un `ThemeImportErrorCode` traducible en vez de
99
- mensajes en español quemados.
100
- - Textos por `SOL_I18N` con claves `sol.themeStudio.*`; respaldo propio en es-CO (tuteo) y en,
101
- exportados como `SOL_THEME_STUDIO_I18N_ES_CO` y `SOL_THEME_STUDIO_I18N_EN`.
102
- - Contrato del tema (punto de entrada principal):
103
- - `ThemeMeta.name?` (nombre de la plantilla, solo metadato) y `ThemeMeta.favicon?` (sanitizado
104
- con `sanitizeAssetUrl`; sin valor o con una URL insegura, el favicon sigue al logo como antes).
105
- `ThemeService.tenantFavicon` expone la URL efectiva.
141
+ Stable release. It includes everything in `0.6.0-rc.1` (below) plus what PANDORA, the first
142
+ external consumer, built or patched outside the library. Everything is additive except the note
143
+ under "Changed".
144
+
145
+ ### Added
146
+
147
+ - **`@solercia/ui/theme-studio` secondary entry point** (apps that do not import it do not load it):
148
+ - `<sol-theme-studio>`: full visual theme editor — shared and per-mode (light/dark) controls,
149
+ isolated preview (variables are applied to the preview host, never to `:root`), apply with
150
+ confirmation (`sol-modal`), paginated history with version restore, JSON import and export,
151
+ logo and favicon upload. Inputs `baseTheme` and `metaExtras`; outputs `applied` (saved theme)
152
+ and `notify` (`SolThemeStudioNotice`; the app decides how to show it). Loading, legitimate-empty,
153
+ error-with-retry and success states.
154
+ - `ThemeStudioStore` persistence contract + `THEME_STUDIO_STORE` token, with the `ThemeVersion`
155
+ and `ThemeVersionPage` types. The optional methods (`listVersions`, `getVersion`,
156
+ `uploadLogo`) turn their section off if the host does not implement them.
157
+ - Headless core with no Angular injection: `buildThemeFile(form, baseTheme?, metaExtras?)`,
158
+ `mapThemeFileToForm`, `deepMerge`, `parseThemeJson` (256 KB limit, depth 20, blocks
159
+ `__proto__`, `url(`, `javascript:`, `@import`, `expression(`, markup and asset URLs that are
160
+ neither https nor relative; extra brand colors in hex only) and `mergeThemeEditorChanges`.
161
+ - `parseThemeJson` throws `ThemeImportError` with a translatable `ThemeImportErrorCode` instead
162
+ of hardcoded Spanish messages.
163
+ - Texts via `SOL_I18N` with `sol.themeStudio.*` keys; built-in fallbacks in es-CO (informal
164
+ second-person form) and en, exported as `SOL_THEME_STUDIO_I18N_ES_CO` and `SOL_THEME_STUDIO_I18N_EN`.
165
+ - Theme contract (main entry point):
166
+ - `ThemeMeta.name?` (template name, metadata only) and `ThemeMeta.favicon?` (sanitized with
167
+ `sanitizeAssetUrl`; with no value or an unsafe URL, the favicon follows the logo as before).
168
+ `ThemeService.tenantFavicon` exposes the effective URL.
106
169
  - `component.table.variant` (`SolTableVariant`: `clean` | `zebra` | `bordered` |
107
- `emphasis-header` | `banded`) y el catálogo `SOL_TABLE_VARIANTS`.
108
- - `semantic.color.primaryContrast?` → `--sol-color-primary-contrast` (default `#FFFFFF`). La
109
- tabla de emisión pasa a 96 variables.
110
- - `semantic.color.secondaryContrast?` queda declarado en el tipo (la `EMIT_TABLE` ya lo emitía).
111
- - `SOL_BUNDLED_DEFAULT_THEME`: el tema empaquetado como constante (valor de fábrica de
112
- `SOL_DEFAULT_THEME` y base por defecto del builder).
113
- - `sol-data-table`: input `variant` que sobrescribe `component.table.variant` del tema. Los estilos
114
- de cada variante viven en el componente y usan solo `var(--sol-*, respaldo)`; sin variante la
115
- tabla conserva su look de siempre.
116
- - `sol-select`: input `mobileBreakpoint` (default `640`). Extiende la protección anti-zoom de iOS
117
- (16 px en el disparador y el buscador) a hosts cuyo layout móvil corta más arriba (p. ej. 768).
118
-
119
- ### Cambiado
120
-
121
- - `ThemeTableComponent.mobile` pasa a opcional para que un tema pueda declarar solo `variant`.
122
- Quien leía `table.mobile` ya debía tratar el bloque como opcional (`table?`); el default sigue
123
- siendo `collapse`.
124
-
125
- ### Corregido
126
-
127
- - El paquete vuelve a incluir `schematics/` (el tarball de `0.6.0-rc.1` se generó sin
128
- `npm run build:schematics`, aunque `package.json` declara `schematics` y `ng-update`).
170
+ `emphasis-header` | `banded`) and the `SOL_TABLE_VARIANTS` catalog.
171
+ - `semantic.color.primaryContrast?` → `--sol-color-primary-contrast` (default `#FFFFFF`). The
172
+ emit table grows to 96 variables.
173
+ - `semantic.color.secondaryContrast?` is now declared in the type (`EMIT_TABLE` already emitted
174
+ it).
175
+ - `SOL_BUNDLED_DEFAULT_THEME`: the bundled theme as a constant (factory value of
176
+ `SOL_DEFAULT_THEME` and default base of the builder).
177
+ - `sol-data-table`: `variant` input that overrides the theme's `component.table.variant`. Each
178
+ variant's styles live in the component and use only `var(--sol-*, fallback)`; without a variant
179
+ the table keeps its usual look.
180
+ - `sol-select`: `mobileBreakpoint` input (default `640`). It extends the iOS anti-zoom protection
181
+ (16 px on the trigger and the search box) to hosts whose mobile layout breaks higher up (e.g.
182
+ 768).
183
+
184
+ ### Changed
185
+
186
+ - `ThemeTableComponent.mobile` becomes optional so a theme can declare only `variant`. Code that
187
+ read `table.mobile` already had to treat the block as optional (`table?`); the default remains
188
+ `collapse`.
189
+
190
+ ### Fixed
191
+
192
+ - The package includes `schematics/` again (the `0.6.0-rc.1` tarball was generated without
193
+ `npm run build:schematics`, even though `package.json` declares `schematics` and `ng-update`).
129
194
 
130
195
  ## [0.6.0-rc.1] - 2026-09-01
131
196
 
132
- > Prerelease (`-rc.1`): se publica como tarball local para que PANDORA (`poc-shell-angular`),
133
- > primer consumidor externo de `@solercia/ui`, lo pruebe antes de la publicación definitiva a
134
- > npm. Todo lo de abajo es aditivo — ningún input ni tipo existente cambia de forma incompatible.
197
+ > Prerelease (`-rc.1`): published as a local tarball so PANDORA, the first external consumer of
198
+ > `@solercia/ui`, could test it before the final publication to npm. Everything below is additive —
199
+ > no existing input or type changes in an incompatible way.
135
200
 
136
- ### Agregado
201
+ ### Added
137
202
 
138
203
  - `sol-data-table` (`ui/data-table/data-table.component.ts`):
139
- - Input `actionsPosition: 'start' | 'end'` (default `'end'`, no rompe a nadie): mueve el
140
- th/td de acciones (el `#rowActions` proyectado y los botones editar/eliminar por defecto)
141
- a la primera columna en vez de la última. Sin efecto en el modo colapsado móvil — ahí las
142
- acciones siguen viviendo solo en el detalle expandido de la card, como siempre.
143
- - Filtros por columna, opt-in (`DataTableColumn.filter: 'text' | 'select'`): con al menos una
144
- columna declarándolo aparece una fila de controles bajo el header
145
- (`sol-data-table__filters-row`), oculta en el modo colapsado móvil. `'text'` filtra por
146
- contención case-insensitive; `'select'` puebla un `<select>` nativo con las opciones únicas
147
- del `data` actual de esa columna (ordenadas, con opción vacía = «Todas») y filtra por
148
- igualdad exacta. Ambos criterios se combinan (AND) entre sí y con la búsqueda global
149
- existente de `filteredData`, siempre client-side.
150
- - Input `collapseWidth: number` (default `767`, mismo breakpoint que antes) — ver el cambio
151
- de fuente de verdad del colapso móvil en «Cambiado».
152
- - `sol-icon-button` (`ui/icon-button/icon-button.component.ts`): variante `outline` —
153
- mismo borde y color de texto que `default`, pero con fondo transparente, para que un grupo de
154
- icon-buttons de acciones se vea homogéneo (todos con reborde) sin que cada uno cargue su
155
- propia superficie sólida compitiendo con la de al lado.
204
+ - Input `actionsPosition: 'start' | 'end'` (default `'end'`, breaks nobody): moves the actions
205
+ th/td (the projected `#rowActions` and the default edit/delete buttons) to the first column
206
+ instead of the last. No effect in the mobile collapsed mode — there the actions still live only
207
+ in the card's expanded detail, as always.
208
+ - Per-column filters, opt-in (`DataTableColumn.filter: 'text' | 'select'`): when at least one
209
+ column declares it, a row of controls appears under the header
210
+ (`sol-data-table__filters-row`), hidden in the mobile collapsed mode. `'text'` filters by
211
+ case-insensitive containment; `'select'` fills a native `<select>` with the unique options from
212
+ that column's current `data` (sorted, with an empty option = "All") and filters by exact
213
+ equality. Both criteria combine (AND) with each other and with the existing global search of
214
+ `filteredData`, always client-side.
215
+ - Input `collapseWidth: number` (default `767`, the same breakpoint as before) — see the change
216
+ in the source of truth for the mobile collapse under "Changed".
217
+ - `sol-icon-button` (`ui/icon-button/icon-button.component.ts`): `outline` variant — the same
218
+ border and text color as `default`, but with a transparent background, so a group of action
219
+ icon-buttons looks uniform (all with an outline) without each one carrying its own solid surface
220
+ competing with its neighbor.
156
221
  - `ICON_REGISTRY`: `arrow-down-tray`, `book-open`, `light-bulb`, `hand-thumb-up`,
157
- `presentation-chart-line`, `printer`, `folder` y `folder-open` (Heroicons v2.1.5, MIT — `d`
158
- copiado sin editar, outline y solid en los ocho).
159
- - `sol-rating-input` (`ui/rating-input/rating-input.component.ts`): calificación INTERACTIVA de
160
- 1 a 5 estrellas, para que una clienta califique su cita. Es un componente **aparte** de
161
- `sol-star-rating`, que se queda intacto y de solo lectura: mostrar un valor y capturarlo son
162
- contratos de accesibilidad distintos — el de solo lectura es un `role="img"` con el valor en
163
- el `aria-label` y estrellas `aria-hidden`, mientras que este es un `role="radiogroup"` con
164
- cinco `role="radio"`, `aria-checked` por estrella, navegación por teclado y una sola parada de
165
- tabulación. Meter ambos comportamientos en una clase detrás de una bandera obligaría a
166
- alternar rol, foco, tabindex y semántica en cada estrella, y degradaría los dos.
167
- - **Arranca sin valor, a propósito**: `value` nace en `null` y ninguna estrella queda marcada.
168
- Es el límite ético del principio de «valores por defecto»: una calificación pre-marcada
169
- ancla la respuesta y le sirve al negocio, no a quien responde — si arranca en 5, el promedio
170
- sube sin que nadie lo haya decidido y el dato deja de medir la experiencia. Un radiogroup
171
- sin opción marcada es válido en ARIA. Queda documentado en el JSDoc de la clase.
172
- - `ControlValueAccessor` completo, como el resto de los controles de la librería. A diferencia
173
- de `sol-select` y `sol-number-input` —que dejan `setDisabledState` vacío—, aquí el
174
- formulario **sí** manda: un `control.disable()` deshabilita de verdad el control. El input
175
- `disabled` sigue funcionando; el estado efectivo es la unión de ambos.
176
- - Teclado: `←`/`↑`/`→`/`↓` mueven el foco y marcan (patrón radiogroup), sin dar la vuelta en
177
- los extremos —`←` sobre la primera la marca, que es la única forma de elegir «1» con teclado
178
- desde el grupo vacío—; `Inicio`/`Fin` saltan a los extremos marcando; `Espacio` marca la
179
- estrella enfocada; `Suprimir`/`Retroceso` limpian cuando `allowClear` está activo.
180
- - Estados: normal, `disabled` (`aria-disabled`, sin foco), `readOnly` (`aria-readonly`, valor
181
- congelado pero con contraste pleno y enfocable — «esto ya no se cambia» no es lo mismo que
182
- «esto no es para ti») y `error` (mensaje visible con el mismo contrato de texto de
183
- `sol-input`, más `aria-invalid` y `aria-describedby`).
184
- - La vista previa al pasar el ratón pinta las estrellas pero nunca toca `value` ni
185
- `aria-checked`: al salir el puntero vuelve lo elegido, así que pasar por encima jamás pierde
186
- la respuesta.
187
- - `allowClear` (opcional) habilita quitar la calificación con un botón visible —fuera del
188
- radiogroup, para no romper la única parada de tabulación— y con `Suprimir`/`Retroceso`.
189
- - Cada estrella reserva 44×44 px reales de área táctil (ley de Fitts) porque se usa desde el
190
- celular; por eso el tamaño por defecto es `lg` y no el `sm` del componente de solo lectura.
191
- - Estilos solo con tokens `var(--sol-*)` (estrella elegida sobre `--sol-color-warning`, sin
192
- elegir sobre `--sol-color-text-muted`, error sobre `--sol-color-danger`), sin un solo color
193
- fijo, y con `prefers-reduced-motion` respetado. Los íconos van por `<sol-icon>` (`star`,
194
- `x-mark`), nunca con marcado en línea.
195
- - Se exporta también `normalizeRating`, la función pura que recorta cualquier entrada a `1..5`
196
- o `null`: un `0`, un `NaN` o un `undefined` significan «sin responder», no «cero estrellas».
197
- - Claves i18n `shared.ratingInput.{groupLabel,option,clear}` en el catálogo `es-CO` del consumidor
198
- (`boki-front/src/assets/i18n/es-CO.json`). Las tres son sobreescribibles por input
199
- (`ariaLabelKey`, `optionLabelKey`, `clearLabelKey`) y las tres tienen respaldo es-CO propio en
200
- el componente, así que un host que no traduzca anuncia «3 de 5» y no la clave cruda.
201
-
202
- ### Cambiado
203
-
204
- - `sol-data-table`: el colapso a cards en móvil ya NO decide por el viewport del navegador
205
- (`matchMedia`) sino por el ancho del propio elemento host, medido con `ResizeObserver`
206
- (nuevo input `collapseWidth`, ver «Agregado»). Una tabla dentro de un contenedor angosto
207
- (sidebar, grid a dos columnas) ahora colapsa aunque la ventana del navegador siga en ancho
208
- desktop. `matchMedia` contra el breakpoint canónico (767px) se conserva solo como valor
209
- inicial anti-flicker hasta la primera medición real del observer.
210
-
211
- ### Corregido
212
-
213
- - `sol-card` (`ui/card/card.component.ts`): agrega `:host { display: block; }`. El componente
214
- no declaraba ningún `display` propio, así que su host colapsaba a `max-content` cuando el
215
- padre lo volvía flex/grid item — el borde y el fondo de `.sol-card` seguían pintándose a
216
- tamaño completo, pero la caja real del host no reservaba espacio, y un layout flex con varias
217
- `sol-card` como hijas quedaba roto (bug real reportado desde PANDORA).
222
+ `presentation-chart-line`, `printer`, `folder` and `folder-open` (Heroicons v2.1.5, MIT — `d`
223
+ copied unedited, outline and solid for all eight).
224
+ - `sol-rating-input` (`ui/rating-input/rating-input.component.ts`): INTERACTIVE 1-to-5 star rating,
225
+ so a customer can rate her appointment. It is a **separate** component from `sol-star-rating`,
226
+ which stays untouched and read-only: displaying a value and capturing one are different
227
+ accessibility contracts — the read-only one is a `role="img"` with the value in the `aria-label`
228
+ and `aria-hidden` stars, while this one is a `role="radiogroup"` with five `role="radio"`,
229
+ `aria-checked` per star, keyboard navigation and a single tab stop. Putting both behaviors in one
230
+ class behind a flag would force toggling role, focus, tabindex and semantics on every star, and
231
+ would degrade both.
232
+ - **It starts with no value, on purpose**: `value` begins as `null` and no star is checked. This
233
+ is the ethical limit of the "default values" principle: a pre-checked rating anchors the answer
234
+ and serves the business, not the person answering — if it starts at 5, the average goes up
235
+ without anyone having decided it and the data stops measuring the experience. A radiogroup with
236
+ no option checked is valid in ARIA. This is documented in the class JSDoc.
237
+ - Full `ControlValueAccessor`, like the rest of the library's controls. Unlike `sol-select` and
238
+ `sol-number-input` —which leave `setDisabledState` empty— here the form **does** take control:
239
+ a `control.disable()` truly disables the control. The `disabled` input still works; the
240
+ effective state is the union of both.
241
+ - Keyboard: `←`/`↑`/`→`/`↓` move focus and check (radiogroup pattern), without wrapping at the
242
+ ends —`←` on the first star checks it, which is the only way to choose "1" with the keyboard
243
+ from the empty group—; `Home`/`End` jump to the ends and check; `Space` checks the focused star;
244
+ `Delete`/`Backspace` clear when `allowClear` is enabled.
245
+ - States: normal, `disabled` (`aria-disabled`, no focus), `readOnly` (`aria-readonly`, value
246
+ frozen but with full contrast and focusable — "this can no longer be changed" is not the same as
247
+ "this is not for you") and `error` (visible message with the same text contract as `sol-input`,
248
+ plus `aria-invalid` and `aria-describedby`).
249
+ - The hover preview paints the stars but never touches `value` or `aria-checked`: when the pointer
250
+ leaves, the chosen value returns, so hovering never loses the answer.
251
+ - `allowClear` (optional) enables removing the rating with a visible button —outside the
252
+ radiogroup, so as not to break the single tab stop— and with `Delete`/`Backspace`.
253
+ - Each star reserves a real 44×44 px touch area (Fitts's law) because it is used from mobile
254
+ phones; that is why the default size is `lg` and not the `sm` of the read-only component.
255
+ - Styles use only `var(--sol-*)` tokens (chosen star on `--sol-color-warning`, unchosen on
256
+ `--sol-color-text-muted`, error on `--sol-color-danger`), without a single hardcoded color, and
257
+ respect `prefers-reduced-motion`. Icons go through `<sol-icon>` (`star`, `x-mark`), never inline
258
+ markup.
259
+ - `normalizeRating` is also exported, the pure function that clamps any input to `1..5` or
260
+ `null`: a `0`, a `NaN` or an `undefined` mean "unanswered", not "zero stars".
261
+ - i18n keys `shared.ratingInput.{groupLabel,option,clear}` in the consumer application's `es-CO`
262
+ catalog. All three can be overridden per input (`ariaLabelKey`, `optionLabelKey`,
263
+ `clearLabelKey`) and all three have their own es-CO fallback in the component, so a host that does
264
+ not translate announces "3 of 5" rather than the raw key.
265
+
266
+ ### Changed
267
+
268
+ - `sol-data-table`: the collapse to cards on mobile NO longer decides by the browser viewport
269
+ (`matchMedia`) but by the width of the host element itself, measured with `ResizeObserver` (new
270
+ `collapseWidth` input, see "Added"). A table inside a narrow container (sidebar, two-column grid)
271
+ now collapses even if the browser window is still at desktop width. `matchMedia` against the
272
+ canonical breakpoint (767px) is kept only as an initial anti-flicker value until the observer's
273
+ first real measurement.
274
+
275
+ ### Fixed
276
+
277
+ - `sol-card` (`ui/card/card.component.ts`): adds `:host { display: block; }`. The component declared
278
+ no `display` of its own, so its host collapsed to `max-content` when the parent made it a
279
+ flex/grid item — the border and background of `.sol-card` were still painted at full size, but the
280
+ host's actual box did not reserve space, and a flex layout with several `sol-card` children came
281
+ out broken (a real bug reported from PANDORA).
218
282
 
219
283
  ## [0.5.0] - 2026-08-23
220
284
 
221
- Primera tanda de aportes que vienen **desde un consumidor**: los tres componentes
222
- nacieron dentro de Solercia Command (el producto antes llamado `gestion_proyectos`) y
223
- suben aquí sin su dominio. El criterio de corte es el mismo en los tres: **el mecanismo
224
- es de la librería, la orquestación se queda en la aplicación**. La propia auditoría de UI
225
- de ese producto ya los tenía registrados como «pendientes de aporte a la librería».
226
-
227
- ### Agregado
228
-
229
- - `sol-tree` (`ui/tree/tree.component.ts`): árbol jerárquico genérico con nodo recursivo,
230
- ARIA nativo (`tree`/`treeitem`/`group`, `aria-expanded`, `aria-level`), roving tabindex
231
- y mapa de teclado completo (flechas, Home/End, Enter/Espacio). El contenido de cada nodo
232
- lo aporta el consumidor por `ng-template` a través de `SolTreeNodeDefDirective`
233
- (`[solTreeNodeDef]`), con contexto tipado `{ $implicit, node, depth, expanded, hasChildren }`.
234
- `expandedIds` es un `model()` de doble modo: `null` deja la expansión en manos del
235
- componente (sembrada por `defaultExpandedDepth`, 1 por defecto), y cualquier arreglo
236
- —incluido `[]`— pasa a modo controlado; la distinción existe para separar «no me
237
- controles» de «todo colapsado». La semilla se recalcula por clave estructural de ids, así
238
- que recrear `nodes` con el mismo contenido no borra lo que el usuario ya expandió.
239
- Profundidad acotada por `SOL_TREE_MAX_DEPTH` (5). Emite `nodeSelected` y `nodeToggled`
240
- en lugar de navegar: la librería no conoce el router.
241
- - `sol-notification-panel` (`ui/notification-panel/notification-panel.component.ts`): panel
242
- de notificaciones con `items` por input y cero servicios inyectados. Su `state()` es un
243
- `computed()` excluyente y ordenado — `loading` › `error` › `empty` › `content` — con
244
- `error` **antes** que `empty` a propósito: una carga fallida también deja la lista vacía,
245
- y si ganara `empty` el panel afirmaría «no tienes notificaciones» cuando la verdad es
246
- «no pudimos saberlo». El error se pinta con estructura y `role="alert"` propios, nunca
247
- reciclando `sol-empty-state`. Emite `itemSelected`, `markedRead`, `markedAllRead`,
248
- `retryRequested` y `closed`; no guarda espejo interno de `read`, así que la interfaz
249
- nunca afirma un cambio que el backend rechazó.
250
- - `sol-scope-switcher` (`ui/scope-switcher/scope-switcher.component.ts`): selector de ámbito
251
- activo (empresa, organización, sede) sobre la directiva compartida `solFloatingPanel`.
252
- Lista ámbitos con etiqueta y etiqueta secundaria, resuelve el avatar por `imageUrl` o por
253
- iniciales, y distingue `idle`/`loading`/`error` como estados separados conservando el
254
- contexto anterior cuando algo falla. Con un solo ámbito lo muestra como activo sin obligar
255
- a elegir. `effectiveActiveId` valida que el id recibido exista en la lista antes de usarlo
256
- y cae al primero si no: un id persistido que ya no es válido dejaba el disparador en blanco.
257
- Emite `scopeSelected` y `openChange`; la persistencia, el refresco de contexto y cualquier
258
- cabecera HTTP son responsabilidad del anfitrión.
259
- - `ICON_REGISTRY`: `arrow-left`, `arrow-right-on-rectangle` y `flag` (Heroicons v2, `d`
260
- copiados sin editar). Cierran el gap que Solercia Command había documentado en su
261
- auditoría de UI, donde sobrevivían como SVG inline por no existir aquí. `sitemap`, también
262
- pedido por esa auditoría, **no** se agrega: no existe en Heroicons v2 y la cabecera del
263
- registro prohíbe inventar path data.
264
-
265
- ### Notas para quien actualice
266
-
267
- - Solercia Command mantiene un `SolDrawerComponent` local con el **mismo nombre de clase y
268
- el mismo selector** que el de esta librería. Su barril hace `export *` de ambas fuentes,
269
- así que al pasar de 0.3.0 a 0.5.0 el símbolo queda ambiguo. Hay que borrar el drawer local
270
- en el mismo cambio que sube la versión. La migración es corta: `position="right"` pasa a
271
- `side="end"`, y el input `blur` desaparece porque aquí lo resuelve el token
272
- `--sol-overlay-blur`.
285
+ First batch of contributions that come **from a consumer**: the three components were born inside
286
+ Solercia Command and are contributed here without their domain. The cutoff criterion is the same
287
+ for all three: **the mechanism belongs to the library, the orchestration stays in the application**.
288
+ That product's own UI audit already had them listed as "pending contribution to the library".
289
+
290
+ ### Added
291
+
292
+ - `sol-tree` (`ui/tree/tree.component.ts`): generic hierarchical tree with a recursive node, native
293
+ ARIA (`tree`/`treeitem`/`group`, `aria-expanded`, `aria-level`), roving tabindex and a full
294
+ keyboard map (arrows, Home/End, Enter/Space). Each node's content is provided by the consumer via
295
+ `ng-template` through `SolTreeNodeDefDirective` (`[solTreeNodeDef]`), with a typed context
296
+ `{ $implicit, node, depth, expanded, hasChildren }`. `expandedIds` is a dual-mode `model()`:
297
+ `null` leaves expansion in the component's hands (seeded by `defaultExpandedDepth`, 1 by default),
298
+ and any array —including `[]`— switches to controlled mode; the distinction exists to separate
299
+ "do not control me" from "everything collapsed". The seed is recomputed from a structural key of
300
+ ids, so recreating `nodes` with the same content does not erase what the user already expanded.
301
+ Depth is bounded by `SOL_TREE_MAX_DEPTH` (5). It emits `nodeSelected` and `nodeToggled` instead
302
+ of navigating: the library does not know the router.
303
+ - `sol-notification-panel` (`ui/notification-panel/notification-panel.component.ts`): notification
304
+ panel with `items` as an input and zero injected services. Its `state()` is an exclusive, ordered
305
+ `computed()` — `loading` › `error` › `empty` › `content` — with `error` **before** `empty` on
306
+ purpose: a failed load also leaves the list empty, and if `empty` won the panel would claim "you
307
+ have no notifications" when the truth is "we could not find out". The error is rendered with its
308
+ own structure and `role="alert"`, never by recycling `sol-empty-state`. It emits `itemSelected`,
309
+ `markedRead`, `markedAllRead`, `retryRequested` and `closed`; it keeps no internal mirror of
310
+ `read`, so the interface never claims a change the backend rejected.
311
+ - `sol-scope-switcher` (`ui/scope-switcher/scope-switcher.component.ts`): active-scope selector
312
+ (company, organization, site) built on the shared `solFloatingPanel` directive. It lists scopes
313
+ with a label and a secondary label, resolves the avatar by `imageUrl` or by initials, and
314
+ distinguishes `idle`/`loading`/`error` as separate states while keeping the previous context when
315
+ something fails. With a single scope it shows it as active without forcing a choice.
316
+ `effectiveActiveId` validates that the received id exists in the list before using it and falls
317
+ back to the first one if not: a persisted id that was no longer valid left the trigger blank. It
318
+ emits `scopeSelected` and `openChange`; persistence, context refresh and any HTTP headers are the
319
+ host's responsibility.
320
+ - `ICON_REGISTRY`: `arrow-left`, `arrow-right-on-rectangle` and `flag` (Heroicons v2, `d` copied
321
+ unedited). They close the gap that Solercia Command had documented in its UI audit, where they
322
+ survived as inline SVG because they did not exist here. `sitemap`, also requested by that audit,
323
+ is **not** added: it does not exist in Heroicons v2 and the registry header forbids inventing path
324
+ data.
325
+
326
+ ### Upgrade notes
327
+
328
+ - Solercia Command maintains a local `SolDrawerComponent` with the **same class name and the same
329
+ selector** as this library's. Its barrel does `export *` from both sources, so going from 0.3.0
330
+ to 0.5.0 the symbol becomes ambiguous. The local drawer must be deleted in the same change that
331
+ bumps the version. The migration is short: `position="right"` becomes `side="end"`, and the
332
+ `blur` input disappears because here the `--sol-overlay-blur` token handles it.
273
333
 
274
334
  ## [0.4.1] - 2026-08-23
275
335
 
276
- ### Agregado
336
+ ### Added
277
337
 
278
- - `sol-input` (`ui/input/input.component.ts`): input opcional `min` (`string | undefined`,
279
- `undefined` por defecto), passthrough al atributo `min` del `<input>` nativo vía
280
- `[attr.min]`. Su caso de uso es `type="date"`: fija la fecha mínima seleccionable para
281
- que el selector nativo del navegador no permita agendar al pasado (ola-09, P3b). Con
282
- `[attr.min]` Angular omite el atributo por completo cuando el valor es `undefined`, así
283
- que ningún consumidor existente cambia de comportamiento — mismo patrón aditivo del
284
- input `autocomplete`.
338
+ - `sol-input` (`ui/input/input.component.ts`): optional `min` input (`string | undefined`,
339
+ `undefined` by default), passed through to the native `<input>`'s `min` attribute via
340
+ `[attr.min]`. Its use case is `type="date"`: it sets the minimum selectable date so the browser's
341
+ native picker does not allow scheduling in the past. With `[attr.min]` Angular omits the attribute
342
+ entirely when the value is `undefined`, so no existing consumer changes behavior — the same
343
+ additive pattern as the `autocomplete` input.
285
344
 
286
345
  ## [0.4.0] - 2026-08-08
287
346
 
288
- > Entrada reconstruida a posteriori (2026-08-23): la versión se publicó a npm sin registrarse
289
- > en este archivo.
347
+ > Entry reconstructed after the fact (2026-08-23): the version was published to npm without being
348
+ > recorded in this file.
290
349
 
291
- ### Agregado
350
+ ### Added
292
351
 
293
- - `sol-star-rating` (`ui/star-rating/star-rating.component.ts`): componente de calificación
294
- por estrellas, exportado desde la API pública (`ui/index.ts`).
295
- - Íconos de estrella en `ICON_REGISTRY` (`ui/icon/icon.registry.ts`) que consume el
296
- componente anterior.
352
+ - `sol-star-rating` (`ui/star-rating/star-rating.component.ts`): star rating component, exported
353
+ from the public API (`ui/index.ts`).
354
+ - Star icons in `ICON_REGISTRY` (`ui/icon/icon.registry.ts`) consumed by the component above.
297
355
 
298
356
  ## [0.3.1] - 2026-07-20
299
357
 
300
- ### Agregado
301
-
302
- - `solFloatingPanel` (`ui/overlay/floating-panel.directive.ts`): primitiva compartida que
303
- portalea un panel flotante a `document.body` con `position: fixed` y coordenadas del
304
- viewport calculadas manualmente (sin `@floating-ui/dom` ni `popper.js`, prohibidas por
305
- la filosofía del proyecto). Nace de extraer el arreglo CP-2 que vivía inline en
306
- `sol-select`, para que cualquier componente cuyo panel deba flotar POR ENCIMA de un
307
- `sol-modal` o un `sol-drawer` no quede recortado por ancestros con `overflow` o
308
- `backdrop-filter` (típicamente `.sol-modal-body`). API: input requerido `trigger`
309
- (alias del propio selector), `gap` (4), `flipThreshold` (300), `matchTriggerWidth`
310
- (`true`), `align` (`'start'`/`'end'`), señal de solo lectura `dropUp` + salida
311
- `dropUpChange` para que el host aplique su clase modificadora, y método público
312
- `reposition()`. Aporta la clase compartida `.sol-floating-panel` con
313
- `z-index: calc(var(--sol-z-modal, 1050) + 10)`, inyectada una sola vez en
314
- `document.head` (el panel portaleado deja de heredar del host, así que el `z-index` no
315
- puede vivir en estilos encapsulados por componente).
316
-
317
- ### Cambiado
318
-
319
- - `sol-select` consume la directiva en vez de su portal inline: se eliminan
320
- `attachPanel`/`detachPanel`/`positionPanel`, el `effect` del constructor y el estado
321
- `portalPanel`. Comportamiento observable idéntico — las 7 specs del portal (CP-2)
322
- pasan sin tocarse. El `z-index` sale de `.sol-select__dropdown` y lo aporta la clase
323
- compartida.
324
- - `sol-date-picker` migra su popover de calendario al portal compartido
325
- (`matchTriggerWidth: false` porque el calendario tiene ancho propio de 300px, `align`
326
- por el borde derecho cuando no cabe hacia la derecha, `flipThreshold` igual a su alto
327
- estimado de 340px). Conserva el volteo `dropUp` y gana reposicionamiento en scroll y
328
- resize, que antes no tenía. El popover deja de ser descendiente del host, así que el
329
- cierre por clic-fuera y el foco de la celda activa (roving tabindex) ahora consultan el
330
- nodo portaleado.
331
-
332
- ### Notas
333
-
334
- - Alcance deliberadamente acotado (decisión del fundador): la directiva aplica SOLO a
335
- componentes con un elemento que flota por encima del modal o del `sol-drawer`.
336
- `sol-rich-editor` NO se toca — sus popovers están clampados dentro del host a
337
- propósito y no desbordan; `sol-tooltip` tampoco (sin usos en la aplicación).
338
- - Superficie pública sin cambios: la directiva es interna a la librería (vive en
339
- `ui/overlay/`, junto a `body-scroll-lock`, `focus-trap` y `overlay-interactions`, que
340
- tampoco se exportan desde `lib/ui/index.ts`) — todavía no hay consumidor externo que
341
- la necesite.
342
- - Dos detalles del portal que se preservaron literalmente al extraerlo, porque sin ellos
343
- el arreglo deja de funcionar: el listener de `scroll` va con `{ capture: true }` (los
344
- eventos de scroll no burbujean, y sin captura el panel no se entera del scroll de
345
- `.sol-modal-body`), y el `removeChild` va guardado por
346
- `parentNode === document.body` (Angular puede haber destruido el nodo por su cuenta).
347
- - 1280/1280 tests de la librería en verde (20 nuevos: 12 de `solFloatingPanel` y 8 del
348
- portal del popover de `sol-date-picker`).
358
+ ### Added
359
+
360
+ - `solFloatingPanel` (`ui/overlay/floating-panel.directive.ts`): shared primitive that portals a
361
+ floating panel to `document.body` with `position: fixed` and manually computed viewport
362
+ coordinates (without `@floating-ui/dom` or `popper.js`, which the project rules out). It comes
363
+ from extracting the fix that lived inline in `sol-select`, so that any component whose panel must
364
+ float ABOVE a `sol-modal` or a `sol-drawer` is not clipped by ancestors with `overflow` or
365
+ `backdrop-filter` (typically `.sol-modal-body`). API: required `trigger` input (alias of the
366
+ selector itself), `gap` (4), `flipThreshold` (300), `matchTriggerWidth` (`true`), `align`
367
+ (`'start'`/`'end'`), a read-only `dropUp` signal + `dropUpChange` output so the host can apply its
368
+ modifier class, and a public `reposition()` method. It contributes the shared `.sol-floating-panel`
369
+ class with `z-index: calc(var(--sol-z-modal, 1050) + 10)`, injected only once into
370
+ `document.head` (the portaled panel no longer inherits from the host, so the `z-index` cannot live
371
+ in component-encapsulated styles).
372
+
373
+ ### Changed
374
+
375
+ - `sol-select` consumes the directive instead of its inline portal: `attachPanel`/`detachPanel`/
376
+ `positionPanel`, the constructor's `effect` and the `portalPanel` state are removed. Identical
377
+ observable behavior — the 7 portal specs pass untouched. The `z-index` leaves
378
+ `.sol-select__dropdown` and is provided by the shared class.
379
+ - `sol-date-picker` migrates its calendar popover to the shared portal (`matchTriggerWidth: false`
380
+ because the calendar has its own 300px width, `align` to the right edge when it does not fit
381
+ toward the right, `flipThreshold` equal to its estimated height of 340px). It keeps the `dropUp`
382
+ flip and gains repositioning on scroll and resize, which it did not have before. The popover is no
383
+ longer a descendant of the host, so click-outside closing and the focus of the active cell
384
+ (roving tabindex) now query the portaled node.
385
+
386
+ ### Notes
387
+
388
+ - Deliberately narrow scope: the directive applies ONLY to components with an element that floats
389
+ above the modal or `sol-drawer`. `sol-rich-editor` is NOT touched — its popovers are clamped
390
+ inside the host on purpose and do not overflow; neither is `sol-tooltip` (no uses in the
391
+ application).
392
+ - Public surface unchanged: the directive is internal to the library (it lives in `ui/overlay/`,
393
+ next to `body-scroll-lock`, `focus-trap` and `overlay-interactions`, which are also not exported
394
+ from `lib/ui/index.ts`) — no external consumer needs it yet.
395
+ - Two details of the portal were preserved literally when extracting it, because without them the
396
+ fix stops working: the `scroll` listener uses `{ capture: true }` (scroll events do not bubble,
397
+ and without capture the panel does not learn about `.sol-modal-body`'s scroll), and the
398
+ `removeChild` is guarded by `parentNode === document.body` (Angular may have destroyed the node
399
+ on its own).
400
+ - 1280/1280 library tests passing (20 new: 12 for `solFloatingPanel` and 8 for the
401
+ `sol-date-picker` popover portal).
349
402
 
350
403
  ## [0.3.0] - 2026-07-16
351
404
 
352
- ### Agregado
353
-
354
- - `sol-drawer` (11-h-sol-drawer, PR1): panel lateral (drawer / side sheet) a alto
355
- completo (`100dvh`), hermano de `sol-modal` para formularios largos con contenido
356
- desplegable. Lado `start`/`end` (`end` = derecha, default), ancho `sm`/`md`/`lg` por
357
- tokens, header con título y cierre proyectables, contenido con scroll propio,
358
- footer proyectable (`[drawerFooter]`), `role="dialog"` + `aria-modal="true"` +
359
- `aria-labelledby`, focus trap propio con retorno de foco al disparador, candado de
360
- scroll del body y cierre por backdrop/Escape/botón (backdrop-close por defecto
361
- `true`, a diferencia de `sol-modal`). Motion por tokens
362
- (`--sol-dur-base`/`--sol-ease-entrance`) con degradación a `prefers-reduced-motion`.
363
- Overlay compartido (`ui/overlay/`): `overlay-interactions` (predicados puros de
364
- Escape/backdrop), `body-scroll-lock` (candado con contador de referencias) y
365
- `focus-trap` (ciclo de `Tab` in-house, sin `@angular/cdk/a11y`) — extraídos de
366
- `sol-modal` sin cambiar su comportamiento observable (specs de regresión en verde).
367
- - `sol-chip` / `sol-chip-group`: átomo de selección presentacional (emoji, conteo,
368
- removible, deshabilitado, tamaño) + contenedor CVA con política de selección única
369
- (`radiogroup`/`radio`) o múltiple (`group`/`checkbox`) resuelta por Strategy
370
- (`SolChipSelectionStrategy`), roving-tabindex con flechas/Home/End, `aria-pressed` vs
371
- `aria-checked` según rol, i18n (`shared.chip.remove`).
372
- - `sol-number-input` (`SolNumberInputComponent`, deliberadamente distinto de
373
- `sol-stepper`, que indica pasos): stepper numérico CVA con `min`/`max`/`step`,
374
- `role="spinbutton"` + `aria-valuemin/max/now`, botones `−`/`+` deshabilitados en el
375
- límite (sin wrap), flechas ± un `step` y Home/End a los límites, re-clamp reactivo si
376
- `min`/`max` cambian en runtime, i18n (`shared.numberInput.decrement/increment`).
377
- - Ícono `minus` agregado al registro (`icon.registry.ts`) para los botones de
378
- `sol-number-input`.
379
-
380
- ### Corregido
381
-
382
- - Zoom automático de iOS en móvil (`<640px`) en 5 átomos que ya usaban `<input>`/
383
- `<textarea>` nativos: `sol-input`, `sol-textarea`, `sol-search-input` (antes 12px vía
384
- `--sol-font-size-sm`), `sol-select` (buscador + trigger, paridad visual) y
385
- `sol-date-picker` (variantes normal y `--sm`). Fix encapsulado por átomo vía
386
- `@media (max-width:640px){ font-size:16px }` en los `styles` inline de cada
387
- componente — sin tocar el token global `--sol-font-size-base` (contrato de tenant,
388
- afecta también desktop) ni el `viewport` de `index.html` (WCAG 1.4.4 se preserva).
389
-
390
- ### Notas
391
-
392
- - Superficie pública curada: `SolChipSelectionStrategy`, `SINGLE_SELECT_STRATEGY` y
393
- `MULTIPLE_SELECT_STRATEGY` son internos a `chip/` (no exportados desde
394
- `lib/ui/index.ts`) — no hay input `strategy` que los consuma todavía (YAGNI, sin
395
- consumidores reales aún); el componente sigue decidiendo la FORMA del valor CVA
396
- (`string` vs `string[]`) directamente sobre `multiple()`.
397
- - Publicación real a `registry.npmjs.org` **NO ejecutada** (gate del fundador, igual
398
- que `0.2.0`) — este release solo se empaqueta localmente (`npm pack`) para consumo
399
- vía `.tgz` en `gestion_proyectos` y como validación de compatibilidad `ThemeFile`/
400
- `EMIT_TABLE` (sin cambios de contrato).
401
- - 1023/1023 tests de la librería en verde (1016 de las nuevas incorporaciones de
402
- `sol-chip`/`sol-chip-group`/`sol-number-input` + 7 de la corrección de robustez
403
- post-review sobre foco/CVA/bounds).
404
- - `sol-drawer` (PR1, 11-h): 1070/1070 tests de la librería en verde (29 nuevos: 13 de
405
- `sol-drawer`, 6 de `overlay-interactions`, 6 de `focus-trap`, 4 de
406
- `body-scroll-lock`); `sol-modal` queda con el mismo comportamiento observable tras
407
- delegar Escape/backdrop al helper compartido (specs de regresión sin tocar).
405
+ ### Added
406
+
407
+ - `sol-drawer`: side panel (drawer / side sheet) at full height (`100dvh`), a sibling of
408
+ `sol-modal` for long forms with collapsible content. `start`/`end` side (`end` = right, default),
409
+ `sm`/`md`/`lg` width via tokens, header with projectable title and close, content with its own
410
+ scroll, projectable footer (`[drawerFooter]`), `role="dialog"` + `aria-modal="true"` +
411
+ `aria-labelledby`, its own focus trap with focus returning to the trigger, body scroll lock, and
412
+ closing via backdrop/Escape/button (backdrop-close defaults to `true`, unlike `sol-modal`). Motion
413
+ via tokens (`--sol-dur-base`/`--sol-ease-entrance`) degrading under `prefers-reduced-motion`.
414
+ Shared overlay (`ui/overlay/`): `overlay-interactions` (pure Escape/backdrop predicates),
415
+ `body-scroll-lock` (a lock with a reference counter) and `focus-trap` (an in-house `Tab` cycle,
416
+ without `@angular/cdk/a11y`) — extracted from `sol-modal` without changing its observable
417
+ behavior (regression specs passing).
418
+ - `sol-chip` / `sol-chip-group`: presentational selection atom (emoji, count, removable, disabled,
419
+ size) + CVA container with a single-selection (`radiogroup`/`radio`) or multiple-selection
420
+ (`group`/`checkbox`) policy resolved by a Strategy (`SolChipSelectionStrategy`), roving-tabindex
421
+ with arrows/Home/End, `aria-pressed` vs `aria-checked` depending on role, i18n
422
+ (`shared.chip.remove`).
423
+ - `sol-number-input` (`SolNumberInputComponent`, deliberately different from `sol-stepper`, which
424
+ indicates steps): numeric CVA stepper with `min`/`max`/`step`, `role="spinbutton"` +
425
+ `aria-valuemin/max/now`, `−`/`+` buttons disabled at the limit (no wrap), arrows ± one `step` and
426
+ Home/End to the limits, reactive re-clamp if `min`/`max` change at runtime, i18n
427
+ (`shared.numberInput.decrement/increment`).
428
+ - `minus` icon added to the registry (`icon.registry.ts`) for the `sol-number-input` buttons.
429
+
430
+ ### Fixed
431
+
432
+ - Automatic iOS zoom on mobile (`<640px`) in 5 atoms that already used native `<input>`/`<textarea>`:
433
+ `sol-input`, `sol-textarea`, `sol-search-input` (previously 12px via `--sol-font-size-sm`),
434
+ `sol-select` (search box + trigger, visual parity) and `sol-date-picker` (normal and `--sm`
435
+ variants). The fix is encapsulated per atom via `@media (max-width:640px){ font-size:16px }` in
436
+ each component's inline `styles` — without touching the global token `--sol-font-size-base` (a
437
+ tenant contract, which also affects desktop) or the `viewport` in `index.html` (WCAG 1.4.4 is
438
+ preserved).
439
+
440
+ ### Notes
441
+
442
+ - Curated public surface: `SolChipSelectionStrategy`, `SINGLE_SELECT_STRATEGY` and
443
+ `MULTIPLE_SELECT_STRATEGY` are internal to `chip/` (not exported from `lib/ui/index.ts`) — there is
444
+ no `strategy` input that consumes them yet (YAGNI, no real consumers yet); the component still
445
+ decides the SHAPE of the CVA value (`string` vs `string[]`) directly from `multiple()`.
446
+ - Publication to `registry.npmjs.org` was **not executed** for this release (same as `0.2.0`); it
447
+ was only packaged locally (`npm pack`) for consumption via `.tgz` in Solercia Command and to
448
+ validate `ThemeFile`/`EMIT_TABLE` compatibility (no contract changes).
449
+ - 1023/1023 library tests passing (1016 from the new additions of
450
+ `sol-chip`/`sol-chip-group`/`sol-number-input` + 7 from the post-review robustness fix on
451
+ focus/CVA/bounds).
452
+ - `sol-drawer`: 1070/1070 library tests passing (29 new: 13 for `sol-drawer`, 6 for
453
+ `overlay-interactions`, 6 for `focus-trap`, 4 for `body-scroll-lock`); `sol-modal` keeps the same
454
+ observable behavior after delegating Escape/backdrop to the shared helper (regression specs
455
+ untouched).
408
456
 
409
457
  ## [0.2.0] - 2026-07-16
410
458
 
411
- ### Agregado
412
-
413
- - `sol-avatar`, `sol-score-badge`, `sol-trend`, `sol-message-status`: átomos de "vocero"
414
- (iniciales + color estable por hash de 8 tonos, umbral configurable ≥80/≥50, tendencia con
415
- signo, 5 estados de mensaje vía `sol-icon` sin SVG inline).
416
- - `sol-stepper`: nuevo input `navigation:'linear'|'free'` — en `free` cualquier paso es
417
- navegable (pipeline CRM accionable) emitiendo `stepSelected`; retrocompatible con la API
418
- horizontal `0.1.x`.
419
- - `sol-timeline`: timeline jerárquico N-niveles genérico (D2 — nunca conoce `epic`/`sprint`/
420
- dominio del consumidor), motor de posicionamiento puro `positionRows(nodes, range)`,
421
- envolvente automática para nodos padre sin fechas propias, colapso/expansión con "espejo"
422
- interno, sin dependencias externas nuevas.
423
- - `sol-kanban-board` / `-column` / `-card`: tablero kanban genérico con arrastrar-y-soltar.
424
- `@angular/cdk` como `peerDependency` encapsulada tras `sol-kanban` (lint
425
- `no-restricted-imports` impide que el consumidor la importe directo). Anclas terminales por
426
- template proyectado, mecanismo alternativo 100 % accesible por teclado (`<select>` de mover
427
- tarjeta) y anuncio `aria-live` de cada movimiento (drag real o select).
428
- - `sol-calendar`: calendario genérico semana/día con paridad de vistas frente al widget legado
429
- de `boki-front`, resolución de color por Strategy inyectable (`SOL_CALENDAR_COLOR`, default
430
- null-object desde `event.color`), cuerpo de evento por template proyectado y leyenda
431
- configurable (`view` tipa solo `'week' | 'day'`).
432
- - `sol-data-table`: `rowActionsTemplate` (`contentChild('rowActions')`), `actionsLabel` y
433
- `toggleDetailsLabel` consolidados, con default de `toggleDetailsLabel` corregido para igualar
434
- el texto real que usaban los consumidores.
435
- - Registro de íconos: +45 entradas Heroicons v2 (outline) + 7 SVG propios
436
- (`robot`/`gauge`/`plug`/`git-branch`/`webhook`/`state-machine`/`double-check`). Gate
437
- automatizado (`icon.registry.spec.ts` + `svg-inline-gate.spec.ts`) que impide agregar SVG
438
- inline nuevo dentro de `projects/solercia/ui/src/lib/**` (escaneo de contenido completo,
439
- no línea por línea — cubre `<svg>`/`<path>`/`<circle>`/`<polyline>`/`<polygon>`/`<line>`/
440
- `<rect>` en cualquier posición, con exclusión de comentarios).
441
-
442
- ### Corregido
443
-
444
- - Migración de SVG inline del lado librería (`pagination`/`modal`/`select`/`search-input`) a
445
- `sol-icon` del registro ampliado.
446
-
447
- ### Notas
448
-
449
- - `0.1.0` y `0.1.1` ya están publicadas en `registry.npmjs.org` (`npm view @solercia/ui
450
- versions`), publicadas **manualmente** (no por CI). `0.1.2` quedó preparada (ver entrada
451
- anterior) pero nunca llegó a publicarse por separado — su contenido queda absorbido por este
452
- release.
453
- - Publicación real de `0.2.0` **PREPARADA, no ejecutada** (gate del fundador) — ver
454
- `README.md#Publicación del paquete` para el paso exacto (`git tag v0.2.0` + push, o publish
455
- manual como respaldo). Pendiente antes de publicar por CI: configurar el secret `NPM_TOKEN`
456
- del repositorio (hoy vacío/ausente) y **rotar** el token de npm usado en la publicación
457
- manual de `0.1.1` (quedó expuesto en un log de sesión) — deuda heredada de
458
- `07-e9-extraccion-solercia-ui` (ver `openspec/07-e9-extraccion-solercia-ui/state.yaml`).
459
- - 961/961 tests de la librería en verde (283 de `0.1.2` + los nuevos de `sol-avatar`/
460
- `sol-score-badge`/`sol-trend`/`sol-message-status`/`sol-stepper`/`sol-timeline`/`sol-kanban`/
461
- `sol-calendar`/`sol-data-table`/registro de íconos acumulados en PR2-PR8).
459
+ ### Added
460
+
461
+ - `sol-avatar`, `sol-score-badge`, `sol-trend`, `sol-message-status`: presentational atoms
462
+ (initials + stable color by an 8-tone hash, configurable threshold ≥80/≥50, signed trend, 5
463
+ message states via `sol-icon` without inline SVG).
464
+ - `sol-stepper`: new input `navigation:'linear'|'free'` — in `free` any step is navigable
465
+ (actionable CRM pipeline), emitting `stepSelected`; backward compatible with the `0.1.x`
466
+ horizontal API.
467
+ - `sol-timeline`: generic N-level hierarchical timeline (it never knows `epic`/`sprint`/the
468
+ consumer's domain), pure positioning engine `positionRows(nodes, range)`, automatic envelope for
469
+ parent nodes without their own dates, collapse/expand with an internal "mirror", no new external
470
+ dependencies.
471
+ - `sol-kanban-board` / `-column` / `-card`: generic kanban board with drag and drop. `@angular/cdk`
472
+ as a `peerDependency` encapsulated behind `sol-kanban` (the `no-restricted-imports` lint prevents
473
+ the consumer from importing it directly). Terminal anchors via projected template, a fully
474
+ keyboard-accessible alternative mechanism (a move-card `<select>`) and an `aria-live`
475
+ announcement for each move (real drag or select).
476
+ - `sol-calendar`: generic week/day calendar with view parity against the consumer application's
477
+ legacy widget, color resolution via an injectable Strategy (`SOL_CALENDAR_COLOR`, null-object
478
+ default from `event.color`), event body via projected template and a configurable legend (`view`
479
+ is typed only as `'week' | 'day'`).
480
+ - `sol-data-table`: `rowActionsTemplate` (`contentChild('rowActions')`), `actionsLabel` and
481
+ `toggleDetailsLabel` consolidated, with the `toggleDetailsLabel` default corrected to match the
482
+ actual text consumers were using.
483
+ - Icon registry: +45 Heroicons v2 (outline) entries + 7 custom SVGs
484
+ (`robot`/`gauge`/`plug`/`git-branch`/`webhook`/`state-machine`/`double-check`). An automated gate
485
+ (`icon.registry.spec.ts` + `svg-inline-gate.spec.ts`) prevents adding new inline SVG inside
486
+ `projects/solercia/ui/src/lib/**` (full-content scan, not line by line — it covers
487
+ `<svg>`/`<path>`/`<circle>`/`<polyline>`/`<polygon>`/`<line>`/`<rect>` in any position, excluding
488
+ comments).
489
+
490
+ ### Fixed
491
+
492
+ - Migration of the library's inline SVG (`pagination`/`modal`/`select`/`search-input`) to `sol-icon`
493
+ from the expanded registry.
494
+
495
+ ### Notes
496
+
497
+ - `0.1.0` and `0.1.1` are already published on `registry.npmjs.org` (`npm view @solercia/ui
498
+ versions`), published **manually** (not by CI). `0.1.2` was prepared (see the entry below) but was
499
+ never published separately — its content is absorbed into this release.
500
+ - Publication of `0.2.0` was **prepared, not executed** — see the package publishing section of
501
+ `README.md` for the exact step (`git tag v0.2.0` + push, or manual publish as a fallback). Pending
502
+ before publishing through CI: configure the repository's `NPM_TOKEN` secret (currently
503
+ empty/absent) and **rotate** the npm token used in the manual publication of `0.1.1`.
504
+ - 961/961 library tests passing (283 from `0.1.2` + the new ones for
505
+ `sol-avatar`/`sol-score-badge`/`sol-trend`/`sol-message-status`/`sol-stepper`/`sol-timeline`/`sol-kanban`/
506
+ `sol-calendar`/`sol-data-table`/icon registry accumulated during this release).
462
507
 
463
508
  ## [0.1.2] - 2026-07-16
464
509
 
465
- ### Corregido
466
-
467
- - `ng-add` (schematic): 5 correcciones descubiertas al hornear un proyecto real (`ng new` +
468
- `ng add @solercia/ui@0.1.0`) contra el paquete publicado, sin backport previo al schematic:
469
- 1. **`TS5090`**: `wireTsconfigPaths` escribía los alias FSD (`@pages/*`, `@widgets/*`, etc.) sin
470
- prefijo `./` (p. ej. `"src/pages/*"`); un `tsconfig.json` de `ng new` no define `baseUrl`, así
471
- que el compilador rechazaba la ruta no-relativa. Ahora los `paths` generados siempre llevan
472
- `./` explícito.
473
- 2. **`appendGlobalStyles` ignoraba SCSS**: solo detectaba `src/styles.css`; en un proyecto
474
- `ng new --style=scss` los tokens `--sol-*` de ejemplo no se inyectaban. Ahora detecta también
475
- `src/styles.scss`.
476
- 3. **`@solercia/eslint-config` no se instalaba**: el schematic solo dejaba un log informativo
477
- ("aún no publicado"). Ahora se agrega como `devDependency` real vía `addDependency` (el preset
478
- está publicado en npm desde `0.1.1`).
479
- 4. **`TS2571` por falta de `@shared/i18n`**: los schematics `page`/`feature`/`widget` generan
480
- componentes que importan `I18nService` desde `@shared/i18n`, capa que `ng-add` nunca
481
- scaffoldeaba. Ahora se crea `shared/i18n/i18n.service.ts` (adaptador identidad de `SolI18n`,
482
- listo para cablear a `SOL_I18N`) + `shared/i18n/index.ts`.
483
- 5. **`eslint.config.js` sin `"type":"module"`**: se generaba en sintaxis ESM (`import ... from`)
484
- sobre un `package.json` de `ng new` por defecto CommonJS, produciendo `ERR_REQUIRE_ESM`. Ahora
485
- el archivo se emite como `eslint.config.mjs` cuando el `package.json` anfitrión no declara
510
+ ### Fixed
511
+
512
+ - `ng-add` (schematic): 5 fixes discovered when setting up a real project (`ng new` +
513
+ `ng add @solercia/ui@0.1.0`) against the published package, with no prior backport to the
514
+ schematic:
515
+ 1. **`TS5090`**: `wireTsconfigPaths` wrote the FSD aliases (`@pages/*`, `@widgets/*`, etc.)
516
+ without a `./` prefix (e.g. `"src/pages/*"`); an `ng new` `tsconfig.json` does not define
517
+ `baseUrl`, so the compiler rejected the non-relative path. The generated `paths` now always
518
+ carry an explicit `./`.
519
+ 2. **`appendGlobalStyles` ignored SCSS**: it only detected `src/styles.css`; in an
520
+ `ng new --style=scss` project the example `--sol-*` tokens were not injected. It now also
521
+ detects `src/styles.scss`.
522
+ 3. **`@solercia/eslint-config` was not installed**: the schematic only left an informational log
523
+ ("not published yet"). It is now added as a real `devDependency` via `addDependency` (the
524
+ preset has been published on npm since `0.1.1`).
525
+ 4. **`TS2571` for lack of `@shared/i18n`**: the `page`/`feature`/`widget` schematics generate
526
+ components that import `I18nService` from `@shared/i18n`, a layer that `ng-add` never
527
+ scaffolded. It is now created as `shared/i18n/i18n.service.ts` (an identity adapter of
528
+ `SolI18n`, ready to be wired to `SOL_I18N`) + `shared/i18n/index.ts`.
529
+ 5. **`eslint.config.js` without `"type":"module"`**: it was generated in ESM syntax
530
+ (`import ... from`) on a default-CommonJS `ng new` `package.json`, producing `ERR_REQUIRE_ESM`.
531
+ The file is now emitted as `eslint.config.mjs` when the host `package.json` does not declare
486
532
  `"type":"module"`.
487
- - Configs de Husky en `.cjs` para hosts ESM: hallazgo del lente `review-reliability` sobre el fix 5
488
- — si el `package.json` anfitrión SÍ declara `"type":"module"` (por ejemplo, a mano o por un futuro
489
- default), Node interpretaba `commitlint.config.js`/`lint-staged.config.js` (ambos en sintaxis
490
- CommonJS, `module.exports`) como ESM y los hooks de Husky reventaban con
491
- `ReferenceError: module is not defined in ES module scope`. Ahora `scaffoldHusky` emite ambos
492
- archivos con extensión `.cjs` (mismo contenido CommonJS, sin cambios) cuando el host ya es ESM; en
493
- el caso por defecto (CommonJS) se mantiene `.js` sin cambios de comportamiento.
494
- - Cobertura: 7 casos nuevos/actualizados en `ng-add.spec.ts` con `SchematicTestRunner` sobre un
495
- árbol `ng new` simulado (sin red) — 5 por fix + 2 de la corrección posterior al review
496
- (`review-reliability`: versión exacta de `@solercia/eslint-config`, Husky en `.cjs` para hosts
497
- ESM, y cobertura de la rama sin `styles.css`/`styles.scss`). 283 tests de la librería en verde
498
- (277 base + 6 netos nuevos).
533
+ - Husky configs as `.cjs` for ESM hosts: a finding from the code review of fix 5 — if
534
+ the host `package.json` DOES declare `"type":"module"` (for example, by hand or through a future
535
+ default), Node interpreted `commitlint.config.js`/`lint-staged.config.js` (both in CommonJS
536
+ syntax, `module.exports`) as ESM and the Husky hooks blew up with
537
+ `ReferenceError: module is not defined in ES module scope`. `scaffoldHusky` now emits both files
538
+ with a `.cjs` extension (same CommonJS content, unchanged) when the host is already ESM; in the
539
+ default (CommonJS) case `.js` is kept with no change in behavior.
540
+ - Coverage: 7 new/updated cases in `ng-add.spec.ts` using `SchematicTestRunner` over a simulated
541
+ `ng new` tree (no network) — 5 for the fixes + 2 from the post-review correction
542
+ (exact version of `@solercia/eslint-config`, Husky in `.cjs` for ESM hosts, and coverage of the
543
+ branch without `styles.css`/`styles.scss`). 283 library tests passing (277 base + 6 net new).
499
544
 
500
545
  ## [0.1.1] - 2026-07-15
501
546
 
502
- ### Agregado
547
+ ### Added
503
548
 
504
- - `sol-data-table`: tabla genérica dirigida por columnas (`DataTableColumn`), con búsqueda, paginación,
505
- ordenamiento, estados loading/empty, modo móvil colapsable y slot `#rowActions` para acciones por fila
506
- (edit/delete de conveniencia). Autocontenida (sin dependencias de dominio ni de utilidades del host).
507
- - `sol-page-header`: encabezado de página (`title` requerido, `subtitle` opcional, slot de acciones).
508
- - `sol-icon-button`: botón de solo ícono sobre el registro de íconos de la librería, con `ariaLabel`
509
- requerido, variantes (`default`/`danger`/`ghost`), tamaños y output `clicked`.
510
- - `sol-rich-editor`: menciones (`@`) y task-linking (`#`) **opt-in** — inputs `mentionableUsers`/`linkableTasks`
511
- y outputs `mentionsChange`/`taskLinksChange` (tipos `MentionUser`/`LinkableTask`). Aditivo: con listas
512
- vacías el editor mantiene su comportamiento previo (imágenes, serialización TCPDF). El sanitizador
513
- preserva solo los chips `data-mention-id`/`data-task-key` (whitelist estricta, anti-XSS).
549
+ - `sol-data-table`: generic column-driven table (`DataTableColumn`), with search, pagination,
550
+ sorting, loading/empty states, a collapsible mobile mode and a `#rowActions` slot for per-row
551
+ actions (convenience edit/delete). Self-contained (no domain dependencies or host utilities).
552
+ - `sol-page-header`: page header (`title` required, `subtitle` optional, actions slot).
553
+ - `sol-icon-button`: icon-only button on top of the library's icon registry, with a required
554
+ `ariaLabel`, variants (`default`/`danger`/`ghost`), sizes and a `clicked` output.
555
+ - `sol-rich-editor`: **opt-in** mentions (`@`) and task-linking (`#`) — inputs
556
+ `mentionableUsers`/`linkableTasks` and outputs `mentionsChange`/`taskLinksChange` (types
557
+ `MentionUser`/`LinkableTask`). Additive: with empty lists the editor keeps its previous behavior
558
+ (images, TCPDF serialization). The sanitizer preserves only the `data-mention-id`/`data-task-key`
559
+ chips (strict whitelist, anti-XSS).
514
560
 
515
- ### Notas
561
+ ### Notes
516
562
 
517
- - Componentes surgidos del segundo consumidor (`gestion_proyectos`): reemplazan sus stopgaps locales, de
518
- modo que el consumidor no mantenga design system propio.
519
- - 277 tests de la librería en verde (246 base + 31 nuevos).
563
+ - Components that emerged from a second consumer (Solercia Command): they replace its local
564
+ stopgaps, so that the consumer does not maintain its own design system.
565
+ - 277 library tests passing (246 base + 31 new).
520
566
 
521
567
  ## [0.1.0] - 2026-07-14
522
568
 
523
- ### Agregado
524
-
525
- - Extracción inicial del design system Solercia: 28 componentes `sol-*` (`shared/ui`), theming de 3
526
- niveles con 95 tokens `--sol-*` (`shared/tokens`, `ThemeService`), registro de íconos (Heroicons) y
527
- utilidades presentacionales.
528
- - Arquitectura agnóstica del host por puertos (`InjectionToken`): `THEME_SOURCE`, `SOL_DEFAULT_THEME`,
529
- `SOL_TENANT_RESOLVER`, `SOL_I18N`. La librería no conoce `boki-api` ni HTTP; los adaptadores viven en
530
- el host consumidor.
531
- - Colección de schematics `ng add` / `ng generate page|feature|entity|widget` dentro de la propia
532
- librería, conforme a Feature-Sliced Design.
533
- - Documentación: `docs/{THEMING,I18N,MULTITENANT_SETUP}.md` + README de la librería.
534
- - Metadata de publicación: licencia `Apache-2.0`, `NOTICE` de autoría (Solercia Solutions SAS),
535
- `publishConfig` apuntando a GitHub Packages (`https://npm.pkg.github.com`).
536
-
537
- ### Notas
538
-
539
- - Publicación real en GitHub Packages pendiente de la decisión D1 del fundador (owner/organización
540
- del scope `@solercia`, repositorio de alojamiento y método de autenticación).
569
+ ### Added
570
+
571
+ - Initial extraction of the Solercia design system: 28 `sol-*` components (`shared/ui`), 3-level
572
+ theming with 95 `--sol-*` tokens (`shared/tokens`, `ThemeService`), an icon registry (Heroicons)
573
+ and presentational utilities.
574
+ - Host-agnostic architecture via ports (`InjectionToken`): `THEME_SOURCE`, `SOL_DEFAULT_THEME`,
575
+ `SOL_TENANT_RESOLVER`, `SOL_I18N`. The library knows nothing about a backend API or HTTP; the
576
+ adapters live in the consuming host.
577
+ - Collection of `ng add` / `ng generate page|feature|entity|widget` schematics inside the library
578
+ itself, following Feature-Sliced Design.
579
+ - Documentation: `docs/{THEMING,I18N,MULTITENANT_SETUP}.md` + the library README.
580
+ - Publishing metadata: `Apache-2.0` license, authorship `NOTICE` (Solercia Solutions SAS),
581
+ `publishConfig` pointing to GitHub Packages (`https://npm.pkg.github.com`).
582
+
583
+ ### Notes
584
+
585
+ - Actual publication to GitHub Packages was still pending at the time of this release (owner or
586
+ organization of the `@solercia` scope, hosting repository and authentication method were yet to
587
+ be decided).