@solercia/ui 0.7.0 → 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.
Files changed (4) hide show
  1. package/CHANGELOG.md +526 -523
  2. package/README.md +1187 -114
  3. package/llms.txt +37 -0
  4. package/package.json +15 -3
package/CHANGELOG.md CHANGED
@@ -1,584 +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.
8
32
 
9
33
  ## [0.7.0] - 2026-11-14
10
34
 
11
- Inicio de sesión personalizable desde el tema, teclado completo y modo controlado en `sol-select`,
12
- y ajustes para celular. Todo es aditivo frente a 0.6.1: sin activar la opción nueva,
13
- `<sol-theme-studio>` se ve y se comporta igual.
14
-
15
- ### Agregado
16
-
17
- - `sol-select`: teclado completo (flechas, Inicio, Fin, Enter, Esc, Tab) con opción activa y
18
- `aria-activedescendant`, con y sin buscador; `role="option"` y `aria-selected` en las opciones,
19
- `aria-haspopup="listbox"` en el botón; el foco vuelve al botón al cerrar con teclado o al elegir.
20
- - `sol-select`: entradas opcionales `ariaLabel`, `searchPlaceholder` y `emptyLabel` (con los textos de
21
- siempre por defecto), y modo controlado `[value]` + `(valueChange)`, que pinta el valor desde el
22
- primer render, también en el HTML prerenderizado.
23
-
24
- - Punto de entrada `@solercia/ui/login-appearance`:
25
- - Contrato `meta.login` del tema y `normalizeLoginAppearance`: valores por defecto, listas
26
- cerradas, URLs de imagen y de logo seguras (`https://`, `/…` o `assets/…`, solo PNG, JPEG,
27
- WebP o AVIF) y modo por defecto del inicio de sesión.
28
- - `<sol-login-frame>`: marco tematizado del inicio de sesión (escena, fotos que rotan, figuras,
29
- fondo del panel, marca con logo por modo y lema). La aplicación pone su propio formulario
30
- dentro con `ng-content`; la librería no trae lógica de autenticación ni llamadas HTTP.
31
- - `<sol-login-appearance-editor>`: editor de la apariencia con vista previa en vivo.
32
- - `@solercia/ui/theme-studio`: opción `features.loginAppearance` (por defecto apagada) que agrega
33
- las pestañas «Apariencia general» e «Inicio de sesión»; `meta.login` se guarda con «Aplicar
34
- tema» y se acepta al importar JSON.
35
-
36
- ### Cambiado
37
-
38
- - `<sol-select>` en pantalla táctil abre como hoja inferior (todo el ancho, hasta 70 % del alto,
39
- opciones de 44 px, letra de 16 px y respeto de la barra de inicio del iPhone) y no enfoca el
40
- buscador al abrir, para que el teclado no tape la lista: el foco queda en la lista.
41
- - `sol-select`: una opción con valor `''` se muestra por su nombre en vez de por el marcador; `label`
42
- queda asociado al botón (`for`); el buscador ignora las tildes; las opciones suben a 44 px de alto
43
- en el celular; el `hover` de las opciones también se ve en modo oscuro.
44
- - `solFloatingPanel`: el panel hereda el `--sol-z-modal` de su disparador, para quedar por encima de
45
- una hoja que lo haya subido.
46
-
47
- ### Corregido
48
-
49
- - `sol-data-table`: el host pasa a `display: block`. El colapso a tarjetas mide el ancho del host
50
- con `ResizeObserver`, que reporta 0 en un elemento en línea, así que la tabla colapsaba también
51
- en escritorio cuando su contenedor no era flex ni grid.
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.
52
77
 
53
78
  ## [0.6.1] - 2026-10-02
54
79
 
55
- Paridad total de `<sol-theme-studio>` con el Theme Studio de PANDORA, del que se portó. Se
56
- comprobó con un arnés lado a lado sobre los mismos datos: 88 pares de capturas (1440×900 y
57
- 390×844, claro y oscuro: estado inicial, cada sección, historial y su segunda página, diálogo de
58
- restauración, error de JSON inválido, botón flotante y panel lateral) con 0 píxeles distintos, y
59
- un recorrido funcional con las mismas llamadas y los mismos payloads. Todo es aditivo frente a
60
- 0.6.0.
61
-
62
- ### Agregado
63
-
64
- - `SolConfirmDialogComponent` (`<sol-confirm-dialog>`): confirmación con ícono por variante
65
- (`danger` | `warning` | `info`), Escape y clic en el fondo para cancelar.
66
- - `SolRevealDirective` (`[solReveal]`): animación de entrada al hacer scroll dirigida por los
67
- tokens de movimiento del tema (`--sol-reveal-name`, `--sol-dur-slow`, `--sol-ease-entrance`), con
68
- stagger por índice y replay. Inyecta una sola vez sus keyframes globales (con el nonce de
69
- `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).
70
94
  - `@solercia/ui/theme-studio`:
71
- - Entrada `features` (`SolThemeStudioFeatures`) con secciones y comportamientos opcionales:
72
- `themeName` (por defecto `true`), `loader` (sección «Loader / spinner» en `meta.loader`, con su
73
- muestra en la vista previa), `tableVariantMetaKey` (refleja la variante de tabla en una clave
74
- de `meta`) y `persistDefaultModeOnApply` (fija el modo por defecto como preferencia del
75
- navegador al aplicar).
76
- - Entradas `metaExtrasSchema`, `footerPlaceholder`, `exportFileName`, `versionTimeZone` y
77
- `versionTimeZoneLabel`; variable CSS `--sol-theme-studio-bottom-inset`.
78
- - `ThemeStudioStore.apply` puede emitir el tema persistido: la pantalla lo empuja con
79
- `ThemeService.setTenantTheme` (sin volver a pedirlo) y avisa si no es renderizable.
80
- - Los errores del store muestran el mensaje del backend (`error.message`,
81
- `error.errors[0].message` o `userMessage`); la regla se exporta como
82
- `extractStoreErrorMessage`.
83
- - `SolThemeStudioNotice.kind` admite `warning` (imagen de más de 2 MB, hex inválido,
84
- portapapeles no disponible).
85
- - `parseThemeJson` acepta `metaExtrasSchema`, `loader` y `tableVariantMetaKey`;
86
- `ThemeImportError.pathVisible` indica cuándo la ruta señala el campo exacto que se debe
87
- corregir.
88
- - 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`,
89
110
  `STUDIO_LOADER_PRESENTATIONS`, `STUDIO_LOADER_ANIMATIONS`.
90
111
 
91
- ### Cambiado
112
+ ### Changed
92
113
 
93
- - `<sol-theme-studio>` usa el marcado, los estilos y los textos del original: tarjetas con
94
- animación de entrada, panel lateral propio bajo 1024 px (en vez de `sol-drawer`) con Escape para
95
- cerrar, `sol-confirm-dialog` (en vez de `sol-modal`), historial con fecha y hora `medium`,
96
- línea de estado del JSON siempre presente, pie de página de hasta 200 caracteres. Importar y
97
- previsualizar una versión ya no emiten `notify`: se informan en la línea de estado, como en el
98
- original.
99
- - Los textos es-CO son los del original (salvo `preview.footerFallback`, `table.hint` y
100
- `loader.hint`, que quedan genéricos); los del historial y del JSON conservan el trato de usted
101
- del original.
102
- - Tras aplicar, el borrador importado o la versión restaurada sigue siendo la base del editor:
103
- sus tokens no editados viajan intactos en lo que se exporte o se vuelva a aplicar.
104
- - El color elegido con el selector o una sugerencia se guarda tal cual (sin pasarlo a
105
- 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.
106
126
 
107
- ### Corregido
127
+ ### Fixed
108
128
 
109
- - Las 2 pruebas de `ThemeService` sobre `meta.defaultMode` esperaban que la preferencia guardada
110
- ganara; el código (el modo de BD gana en cada carga y se sincroniza en `localStorage`) es el
111
- comportamiento correcto y del que depende PANDORA. Se corrigieron las pruebas y la
112
- 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.
113
133
 
114
- ### Notas
134
+ ### Notes
115
135
 
116
- - El panel lateral de la vista previa usa `--sol-dur-normal`, que la `EMIT_TABLE` no emite: como
117
- 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.
118
138
 
119
139
  ## [0.6.0] - 2026-10-01
120
140
 
121
- Versión estable. Incluye todo lo de `0.6.0-rc.1` (abajo) más lo que PANDORA, primer consumidor
122
- externo, construyó o parchó por fuera de la librería. Todo es aditivo salvo la nota de
123
- «Cambiado».
124
-
125
- ### Agregado
126
-
127
- - **Punto de entrada secundario `@solercia/ui/theme-studio`** (las apps que no lo importan no lo
128
- cargan):
129
- - `<sol-theme-studio>`: editor visual completo del tema — controles compartidos y por modo
130
- (claro/oscuro), vista previa aislada (las variables se aplican al host del preview, nunca a
131
- `:root`), aplicar con confirmación (`sol-modal`), historial paginado con restauración de
132
- versiones, importar y exportar JSON, carga de logo y favicon. Entradas `baseTheme` y
133
- `metaExtras`; salidas `applied` (tema guardado) y `notify` (`SolThemeStudioNotice`, la app
134
- decide cómo mostrarlo). Estados de carga, vacío legítimo, error con reintento y éxito.
135
- - Contrato de persistencia `ThemeStudioStore` + token `THEME_STUDIO_STORE`, con los tipos
136
- `ThemeVersion` y `ThemeVersionPage`. Los métodos opcionales (`listVersions`, `getVersion`,
137
- `uploadLogo`) apagan su sección si el host no los implementa.
138
- - Núcleo headless sin inyección de Angular: `buildThemeFile(form, baseTheme?, metaExtras?)`,
139
- `mapThemeFileToForm`, `deepMerge`, `parseThemeJson` (tope de 256 KB, profundidad 20, bloquea
140
- `__proto__`, `url(`, `javascript:`, `@import`, `expression(`, marcado y URLs de asset que no
141
- son https ni relativas; colores de marca extra solo en hex) y `mergeThemeEditorChanges`.
142
- - `parseThemeJson` lanza `ThemeImportError` con un `ThemeImportErrorCode` traducible en vez de
143
- mensajes en español quemados.
144
- - Textos por `SOL_I18N` con claves `sol.themeStudio.*`; respaldo propio en es-CO (tuteo) y en,
145
- exportados como `SOL_THEME_STUDIO_I18N_ES_CO` y `SOL_THEME_STUDIO_I18N_EN`.
146
- - Contrato del tema (punto de entrada principal):
147
- - `ThemeMeta.name?` (nombre de la plantilla, solo metadato) y `ThemeMeta.favicon?` (sanitizado
148
- con `sanitizeAssetUrl`; sin valor o con una URL insegura, el favicon sigue al logo como antes).
149
- `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.
150
169
  - `component.table.variant` (`SolTableVariant`: `clean` | `zebra` | `bordered` |
151
- `emphasis-header` | `banded`) y el catálogo `SOL_TABLE_VARIANTS`.
152
- - `semantic.color.primaryContrast?` → `--sol-color-primary-contrast` (default `#FFFFFF`). La
153
- tabla de emisión pasa a 96 variables.
154
- - `semantic.color.secondaryContrast?` queda declarado en el tipo (la `EMIT_TABLE` ya lo emitía).
155
- - `SOL_BUNDLED_DEFAULT_THEME`: el tema empaquetado como constante (valor de fábrica de
156
- `SOL_DEFAULT_THEME` y base por defecto del builder).
157
- - `sol-data-table`: input `variant` que sobrescribe `component.table.variant` del tema. Los estilos
158
- de cada variante viven en el componente y usan solo `var(--sol-*, respaldo)`; sin variante la
159
- tabla conserva su look de siempre.
160
- - `sol-select`: input `mobileBreakpoint` (default `640`). Extiende la protección anti-zoom de iOS
161
- (16 px en el disparador y el buscador) a hosts cuyo layout móvil corta más arriba (p. ej. 768).
162
-
163
- ### Cambiado
164
-
165
- - `ThemeTableComponent.mobile` pasa a opcional para que un tema pueda declarar solo `variant`.
166
- Quien leía `table.mobile` ya debía tratar el bloque como opcional (`table?`); el default sigue
167
- siendo `collapse`.
168
-
169
- ### Corregido
170
-
171
- - El paquete vuelve a incluir `schematics/` (el tarball de `0.6.0-rc.1` se generó sin
172
- `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`).
173
194
 
174
195
  ## [0.6.0-rc.1] - 2026-09-01
175
196
 
176
- > Prerelease (`-rc.1`): se publica como tarball local para que PANDORA (`poc-shell-angular`),
177
- > primer consumidor externo de `@solercia/ui`, lo pruebe antes de la publicación definitiva a
178
- > 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.
179
200
 
180
- ### Agregado
201
+ ### Added
181
202
 
182
203
  - `sol-data-table` (`ui/data-table/data-table.component.ts`):
183
- - Input `actionsPosition: 'start' | 'end'` (default `'end'`, no rompe a nadie): mueve el
184
- th/td de acciones (el `#rowActions` proyectado y los botones editar/eliminar por defecto)
185
- a la primera columna en vez de la última. Sin efecto en el modo colapsado móvil — ahí las
186
- acciones siguen viviendo solo en el detalle expandido de la card, como siempre.
187
- - Filtros por columna, opt-in (`DataTableColumn.filter: 'text' | 'select'`): con al menos una
188
- columna declarándolo aparece una fila de controles bajo el header
189
- (`sol-data-table__filters-row`), oculta en el modo colapsado móvil. `'text'` filtra por
190
- contención case-insensitive; `'select'` puebla un `<select>` nativo con las opciones únicas
191
- del `data` actual de esa columna (ordenadas, con opción vacía = «Todas») y filtra por
192
- igualdad exacta. Ambos criterios se combinan (AND) entre sí y con la búsqueda global
193
- existente de `filteredData`, siempre client-side.
194
- - Input `collapseWidth: number` (default `767`, mismo breakpoint que antes) — ver el cambio
195
- de fuente de verdad del colapso móvil en «Cambiado».
196
- - `sol-icon-button` (`ui/icon-button/icon-button.component.ts`): variante `outline` —
197
- mismo borde y color de texto que `default`, pero con fondo transparente, para que un grupo de
198
- icon-buttons de acciones se vea homogéneo (todos con reborde) sin que cada uno cargue su
199
- 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.
200
221
  - `ICON_REGISTRY`: `arrow-down-tray`, `book-open`, `light-bulb`, `hand-thumb-up`,
201
- `presentation-chart-line`, `printer`, `folder` y `folder-open` (Heroicons v2.1.5, MIT — `d`
202
- copiado sin editar, outline y solid en los ocho).
203
- - `sol-rating-input` (`ui/rating-input/rating-input.component.ts`): calificación INTERACTIVA de
204
- 1 a 5 estrellas, para que una clienta califique su cita. Es un componente **aparte** de
205
- `sol-star-rating`, que se queda intacto y de solo lectura: mostrar un valor y capturarlo son
206
- contratos de accesibilidad distintos — el de solo lectura es un `role="img"` con el valor en
207
- el `aria-label` y estrellas `aria-hidden`, mientras que este es un `role="radiogroup"` con
208
- cinco `role="radio"`, `aria-checked` por estrella, navegación por teclado y una sola parada de
209
- tabulación. Meter ambos comportamientos en una clase detrás de una bandera obligaría a
210
- alternar rol, foco, tabindex y semántica en cada estrella, y degradaría los dos.
211
- - **Arranca sin valor, a propósito**: `value` nace en `null` y ninguna estrella queda marcada.
212
- Es el límite ético del principio de «valores por defecto»: una calificación pre-marcada
213
- ancla la respuesta y le sirve al negocio, no a quien responde — si arranca en 5, el promedio
214
- sube sin que nadie lo haya decidido y el dato deja de medir la experiencia. Un radiogroup
215
- sin opción marcada es válido en ARIA. Queda documentado en el JSDoc de la clase.
216
- - `ControlValueAccessor` completo, como el resto de los controles de la librería. A diferencia
217
- de `sol-select` y `sol-number-input` —que dejan `setDisabledState` vacío—, aquí el
218
- formulario **sí** manda: un `control.disable()` deshabilita de verdad el control. El input
219
- `disabled` sigue funcionando; el estado efectivo es la unión de ambos.
220
- - Teclado: `←`/`↑`/`→`/`↓` mueven el foco y marcan (patrón radiogroup), sin dar la vuelta en
221
- los extremos —`←` sobre la primera la marca, que es la única forma de elegir «1» con teclado
222
- desde el grupo vacío—; `Inicio`/`Fin` saltan a los extremos marcando; `Espacio` marca la
223
- estrella enfocada; `Suprimir`/`Retroceso` limpian cuando `allowClear` está activo.
224
- - Estados: normal, `disabled` (`aria-disabled`, sin foco), `readOnly` (`aria-readonly`, valor
225
- congelado pero con contraste pleno y enfocable — «esto ya no se cambia» no es lo mismo que
226
- «esto no es para ti») y `error` (mensaje visible con el mismo contrato de texto de
227
- `sol-input`, más `aria-invalid` y `aria-describedby`).
228
- - La vista previa al pasar el ratón pinta las estrellas pero nunca toca `value` ni
229
- `aria-checked`: al salir el puntero vuelve lo elegido, así que pasar por encima jamás pierde
230
- la respuesta.
231
- - `allowClear` (opcional) habilita quitar la calificación con un botón visible —fuera del
232
- radiogroup, para no romper la única parada de tabulación— y con `Suprimir`/`Retroceso`.
233
- - Cada estrella reserva 44×44 px reales de área táctil (ley de Fitts) porque se usa desde el
234
- celular; por eso el tamaño por defecto es `lg` y no el `sm` del componente de solo lectura.
235
- - Estilos solo con tokens `var(--sol-*)` (estrella elegida sobre `--sol-color-warning`, sin
236
- elegir sobre `--sol-color-text-muted`, error sobre `--sol-color-danger`), sin un solo color
237
- fijo, y con `prefers-reduced-motion` respetado. Los íconos van por `<sol-icon>` (`star`,
238
- `x-mark`), nunca con marcado en línea.
239
- - Se exporta también `normalizeRating`, la función pura que recorta cualquier entrada a `1..5`
240
- o `null`: un `0`, un `NaN` o un `undefined` significan «sin responder», no «cero estrellas».
241
- - Claves i18n `shared.ratingInput.{groupLabel,option,clear}` en el catálogo `es-CO` del consumidor
242
- (`boki-front/src/assets/i18n/es-CO.json`). Las tres son sobreescribibles por input
243
- (`ariaLabelKey`, `optionLabelKey`, `clearLabelKey`) y las tres tienen respaldo es-CO propio en
244
- el componente, así que un host que no traduzca anuncia «3 de 5» y no la clave cruda.
245
-
246
- ### Cambiado
247
-
248
- - `sol-data-table`: el colapso a cards en móvil ya NO decide por el viewport del navegador
249
- (`matchMedia`) sino por el ancho del propio elemento host, medido con `ResizeObserver`
250
- (nuevo input `collapseWidth`, ver «Agregado»). Una tabla dentro de un contenedor angosto
251
- (sidebar, grid a dos columnas) ahora colapsa aunque la ventana del navegador siga en ancho
252
- desktop. `matchMedia` contra el breakpoint canónico (767px) se conserva solo como valor
253
- inicial anti-flicker hasta la primera medición real del observer.
254
-
255
- ### Corregido
256
-
257
- - `sol-card` (`ui/card/card.component.ts`): agrega `:host { display: block; }`. El componente
258
- no declaraba ningún `display` propio, así que su host colapsaba a `max-content` cuando el
259
- padre lo volvía flex/grid item — el borde y el fondo de `.sol-card` seguían pintándose a
260
- tamaño completo, pero la caja real del host no reservaba espacio, y un layout flex con varias
261
- `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).
262
282
 
263
283
  ## [0.5.0] - 2026-08-23
264
284
 
265
- Primera tanda de aportes que vienen **desde un consumidor**: los tres componentes
266
- nacieron dentro de Solercia Command (el producto antes llamado `gestion_proyectos`) y
267
- suben aquí sin su dominio. El criterio de corte es el mismo en los tres: **el mecanismo
268
- es de la librería, la orquestación se queda en la aplicación**. La propia auditoría de UI
269
- de ese producto ya los tenía registrados como «pendientes de aporte a la librería».
270
-
271
- ### Agregado
272
-
273
- - `sol-tree` (`ui/tree/tree.component.ts`): árbol jerárquico genérico con nodo recursivo,
274
- ARIA nativo (`tree`/`treeitem`/`group`, `aria-expanded`, `aria-level`), roving tabindex
275
- y mapa de teclado completo (flechas, Home/End, Enter/Espacio). El contenido de cada nodo
276
- lo aporta el consumidor por `ng-template` a través de `SolTreeNodeDefDirective`
277
- (`[solTreeNodeDef]`), con contexto tipado `{ $implicit, node, depth, expanded, hasChildren }`.
278
- `expandedIds` es un `model()` de doble modo: `null` deja la expansión en manos del
279
- componente (sembrada por `defaultExpandedDepth`, 1 por defecto), y cualquier arreglo
280
- —incluido `[]`— pasa a modo controlado; la distinción existe para separar «no me
281
- controles» de «todo colapsado». La semilla se recalcula por clave estructural de ids, así
282
- que recrear `nodes` con el mismo contenido no borra lo que el usuario ya expandió.
283
- Profundidad acotada por `SOL_TREE_MAX_DEPTH` (5). Emite `nodeSelected` y `nodeToggled`
284
- en lugar de navegar: la librería no conoce el router.
285
- - `sol-notification-panel` (`ui/notification-panel/notification-panel.component.ts`): panel
286
- de notificaciones con `items` por input y cero servicios inyectados. Su `state()` es un
287
- `computed()` excluyente y ordenado — `loading` › `error` › `empty` › `content` — con
288
- `error` **antes** que `empty` a propósito: una carga fallida también deja la lista vacía,
289
- y si ganara `empty` el panel afirmaría «no tienes notificaciones» cuando la verdad es
290
- «no pudimos saberlo». El error se pinta con estructura y `role="alert"` propios, nunca
291
- reciclando `sol-empty-state`. Emite `itemSelected`, `markedRead`, `markedAllRead`,
292
- `retryRequested` y `closed`; no guarda espejo interno de `read`, así que la interfaz
293
- nunca afirma un cambio que el backend rechazó.
294
- - `sol-scope-switcher` (`ui/scope-switcher/scope-switcher.component.ts`): selector de ámbito
295
- activo (empresa, organización, sede) sobre la directiva compartida `solFloatingPanel`.
296
- Lista ámbitos con etiqueta y etiqueta secundaria, resuelve el avatar por `imageUrl` o por
297
- iniciales, y distingue `idle`/`loading`/`error` como estados separados conservando el
298
- contexto anterior cuando algo falla. Con un solo ámbito lo muestra como activo sin obligar
299
- a elegir. `effectiveActiveId` valida que el id recibido exista en la lista antes de usarlo
300
- y cae al primero si no: un id persistido que ya no es válido dejaba el disparador en blanco.
301
- Emite `scopeSelected` y `openChange`; la persistencia, el refresco de contexto y cualquier
302
- cabecera HTTP son responsabilidad del anfitrión.
303
- - `ICON_REGISTRY`: `arrow-left`, `arrow-right-on-rectangle` y `flag` (Heroicons v2, `d`
304
- copiados sin editar). Cierran el gap que Solercia Command había documentado en su
305
- auditoría de UI, donde sobrevivían como SVG inline por no existir aquí. `sitemap`, también
306
- pedido por esa auditoría, **no** se agrega: no existe en Heroicons v2 y la cabecera del
307
- registro prohíbe inventar path data.
308
-
309
- ### Notas para quien actualice
310
-
311
- - Solercia Command mantiene un `SolDrawerComponent` local con el **mismo nombre de clase y
312
- el mismo selector** que el de esta librería. Su barril hace `export *` de ambas fuentes,
313
- así que al pasar de 0.3.0 a 0.5.0 el símbolo queda ambiguo. Hay que borrar el drawer local
314
- en el mismo cambio que sube la versión. La migración es corta: `position="right"` pasa a
315
- `side="end"`, y el input `blur` desaparece porque aquí lo resuelve el token
316
- `--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.
317
333
 
318
334
  ## [0.4.1] - 2026-08-23
319
335
 
320
- ### Agregado
336
+ ### Added
321
337
 
322
- - `sol-input` (`ui/input/input.component.ts`): input opcional `min` (`string | undefined`,
323
- `undefined` por defecto), passthrough al atributo `min` del `<input>` nativo vía
324
- `[attr.min]`. Su caso de uso es `type="date"`: fija la fecha mínima seleccionable para
325
- que el selector nativo del navegador no permita agendar al pasado (ola-09, P3b). Con
326
- `[attr.min]` Angular omite el atributo por completo cuando el valor es `undefined`, así
327
- que ningún consumidor existente cambia de comportamiento — mismo patrón aditivo del
328
- 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.
329
344
 
330
345
  ## [0.4.0] - 2026-08-08
331
346
 
332
- > Entrada reconstruida a posteriori (2026-08-23): la versión se publicó a npm sin registrarse
333
- > 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.
334
349
 
335
- ### Agregado
350
+ ### Added
336
351
 
337
- - `sol-star-rating` (`ui/star-rating/star-rating.component.ts`): componente de calificación
338
- por estrellas, exportado desde la API pública (`ui/index.ts`).
339
- - Íconos de estrella en `ICON_REGISTRY` (`ui/icon/icon.registry.ts`) que consume el
340
- 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.
341
355
 
342
356
  ## [0.3.1] - 2026-07-20
343
357
 
344
- ### Agregado
345
-
346
- - `solFloatingPanel` (`ui/overlay/floating-panel.directive.ts`): primitiva compartida que
347
- portalea un panel flotante a `document.body` con `position: fixed` y coordenadas del
348
- viewport calculadas manualmente (sin `@floating-ui/dom` ni `popper.js`, prohibidas por
349
- la filosofía del proyecto). Nace de extraer el arreglo CP-2 que vivía inline en
350
- `sol-select`, para que cualquier componente cuyo panel deba flotar POR ENCIMA de un
351
- `sol-modal` o un `sol-drawer` no quede recortado por ancestros con `overflow` o
352
- `backdrop-filter` (típicamente `.sol-modal-body`). API: input requerido `trigger`
353
- (alias del propio selector), `gap` (4), `flipThreshold` (300), `matchTriggerWidth`
354
- (`true`), `align` (`'start'`/`'end'`), señal de solo lectura `dropUp` + salida
355
- `dropUpChange` para que el host aplique su clase modificadora, y método público
356
- `reposition()`. Aporta la clase compartida `.sol-floating-panel` con
357
- `z-index: calc(var(--sol-z-modal, 1050) + 10)`, inyectada una sola vez en
358
- `document.head` (el panel portaleado deja de heredar del host, así que el `z-index` no
359
- puede vivir en estilos encapsulados por componente).
360
-
361
- ### Cambiado
362
-
363
- - `sol-select` consume la directiva en vez de su portal inline: se eliminan
364
- `attachPanel`/`detachPanel`/`positionPanel`, el `effect` del constructor y el estado
365
- `portalPanel`. Comportamiento observable idéntico — las 7 specs del portal (CP-2)
366
- pasan sin tocarse. El `z-index` sale de `.sol-select__dropdown` y lo aporta la clase
367
- compartida.
368
- - `sol-date-picker` migra su popover de calendario al portal compartido
369
- (`matchTriggerWidth: false` porque el calendario tiene ancho propio de 300px, `align`
370
- por el borde derecho cuando no cabe hacia la derecha, `flipThreshold` igual a su alto
371
- estimado de 340px). Conserva el volteo `dropUp` y gana reposicionamiento en scroll y
372
- resize, que antes no tenía. El popover deja de ser descendiente del host, así que el
373
- cierre por clic-fuera y el foco de la celda activa (roving tabindex) ahora consultan el
374
- nodo portaleado.
375
-
376
- ### Notas
377
-
378
- - Alcance deliberadamente acotado (decisión del fundador): la directiva aplica SOLO a
379
- componentes con un elemento que flota por encima del modal o del `sol-drawer`.
380
- `sol-rich-editor` NO se toca — sus popovers están clampados dentro del host a
381
- propósito y no desbordan; `sol-tooltip` tampoco (sin usos en la aplicación).
382
- - Superficie pública sin cambios: la directiva es interna a la librería (vive en
383
- `ui/overlay/`, junto a `body-scroll-lock`, `focus-trap` y `overlay-interactions`, que
384
- tampoco se exportan desde `lib/ui/index.ts`) — todavía no hay consumidor externo que
385
- la necesite.
386
- - Dos detalles del portal que se preservaron literalmente al extraerlo, porque sin ellos
387
- el arreglo deja de funcionar: el listener de `scroll` va con `{ capture: true }` (los
388
- eventos de scroll no burbujean, y sin captura el panel no se entera del scroll de
389
- `.sol-modal-body`), y el `removeChild` va guardado por
390
- `parentNode === document.body` (Angular puede haber destruido el nodo por su cuenta).
391
- - 1280/1280 tests de la librería en verde (20 nuevos: 12 de `solFloatingPanel` y 8 del
392
- 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).
393
402
 
394
403
  ## [0.3.0] - 2026-07-16
395
404
 
396
- ### Agregado
397
-
398
- - `sol-drawer` (11-h-sol-drawer, PR1): panel lateral (drawer / side sheet) a alto
399
- completo (`100dvh`), hermano de `sol-modal` para formularios largos con contenido
400
- desplegable. Lado `start`/`end` (`end` = derecha, default), ancho `sm`/`md`/`lg` por
401
- tokens, header con título y cierre proyectables, contenido con scroll propio,
402
- footer proyectable (`[drawerFooter]`), `role="dialog"` + `aria-modal="true"` +
403
- `aria-labelledby`, focus trap propio con retorno de foco al disparador, candado de
404
- scroll del body y cierre por backdrop/Escape/botón (backdrop-close por defecto
405
- `true`, a diferencia de `sol-modal`). Motion por tokens
406
- (`--sol-dur-base`/`--sol-ease-entrance`) con degradación a `prefers-reduced-motion`.
407
- Overlay compartido (`ui/overlay/`): `overlay-interactions` (predicados puros de
408
- Escape/backdrop), `body-scroll-lock` (candado con contador de referencias) y
409
- `focus-trap` (ciclo de `Tab` in-house, sin `@angular/cdk/a11y`) — extraídos de
410
- `sol-modal` sin cambiar su comportamiento observable (specs de regresión en verde).
411
- - `sol-chip` / `sol-chip-group`: átomo de selección presentacional (emoji, conteo,
412
- removible, deshabilitado, tamaño) + contenedor CVA con política de selección única
413
- (`radiogroup`/`radio`) o múltiple (`group`/`checkbox`) resuelta por Strategy
414
- (`SolChipSelectionStrategy`), roving-tabindex con flechas/Home/End, `aria-pressed` vs
415
- `aria-checked` según rol, i18n (`shared.chip.remove`).
416
- - `sol-number-input` (`SolNumberInputComponent`, deliberadamente distinto de
417
- `sol-stepper`, que indica pasos): stepper numérico CVA con `min`/`max`/`step`,
418
- `role="spinbutton"` + `aria-valuemin/max/now`, botones `−`/`+` deshabilitados en el
419
- límite (sin wrap), flechas ± un `step` y Home/End a los límites, re-clamp reactivo si
420
- `min`/`max` cambian en runtime, i18n (`shared.numberInput.decrement/increment`).
421
- - Ícono `minus` agregado al registro (`icon.registry.ts`) para los botones de
422
- `sol-number-input`.
423
-
424
- ### Corregido
425
-
426
- - Zoom automático de iOS en móvil (`<640px`) en 5 átomos que ya usaban `<input>`/
427
- `<textarea>` nativos: `sol-input`, `sol-textarea`, `sol-search-input` (antes 12px vía
428
- `--sol-font-size-sm`), `sol-select` (buscador + trigger, paridad visual) y
429
- `sol-date-picker` (variantes normal y `--sm`). Fix encapsulado por átomo vía
430
- `@media (max-width:640px){ font-size:16px }` en los `styles` inline de cada
431
- componente — sin tocar el token global `--sol-font-size-base` (contrato de tenant,
432
- afecta también desktop) ni el `viewport` de `index.html` (WCAG 1.4.4 se preserva).
433
-
434
- ### Notas
435
-
436
- - Superficie pública curada: `SolChipSelectionStrategy`, `SINGLE_SELECT_STRATEGY` y
437
- `MULTIPLE_SELECT_STRATEGY` son internos a `chip/` (no exportados desde
438
- `lib/ui/index.ts`) — no hay input `strategy` que los consuma todavía (YAGNI, sin
439
- consumidores reales aún); el componente sigue decidiendo la FORMA del valor CVA
440
- (`string` vs `string[]`) directamente sobre `multiple()`.
441
- - Publicación real a `registry.npmjs.org` **NO ejecutada** (gate del fundador, igual
442
- que `0.2.0`) — este release solo se empaqueta localmente (`npm pack`) para consumo
443
- vía `.tgz` en `gestion_proyectos` y como validación de compatibilidad `ThemeFile`/
444
- `EMIT_TABLE` (sin cambios de contrato).
445
- - 1023/1023 tests de la librería en verde (1016 de las nuevas incorporaciones de
446
- `sol-chip`/`sol-chip-group`/`sol-number-input` + 7 de la corrección de robustez
447
- post-review sobre foco/CVA/bounds).
448
- - `sol-drawer` (PR1, 11-h): 1070/1070 tests de la librería en verde (29 nuevos: 13 de
449
- `sol-drawer`, 6 de `overlay-interactions`, 6 de `focus-trap`, 4 de
450
- `body-scroll-lock`); `sol-modal` queda con el mismo comportamiento observable tras
451
- 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).
452
456
 
453
457
  ## [0.2.0] - 2026-07-16
454
458
 
455
- ### Agregado
456
-
457
- - `sol-avatar`, `sol-score-badge`, `sol-trend`, `sol-message-status`: átomos de "vocero"
458
- (iniciales + color estable por hash de 8 tonos, umbral configurable ≥80/≥50, tendencia con
459
- signo, 5 estados de mensaje vía `sol-icon` sin SVG inline).
460
- - `sol-stepper`: nuevo input `navigation:'linear'|'free'` — en `free` cualquier paso es
461
- navegable (pipeline CRM accionable) emitiendo `stepSelected`; retrocompatible con la API
462
- horizontal `0.1.x`.
463
- - `sol-timeline`: timeline jerárquico N-niveles genérico (D2 — nunca conoce `epic`/`sprint`/
464
- dominio del consumidor), motor de posicionamiento puro `positionRows(nodes, range)`,
465
- envolvente automática para nodos padre sin fechas propias, colapso/expansión con "espejo"
466
- interno, sin dependencias externas nuevas.
467
- - `sol-kanban-board` / `-column` / `-card`: tablero kanban genérico con arrastrar-y-soltar.
468
- `@angular/cdk` como `peerDependency` encapsulada tras `sol-kanban` (lint
469
- `no-restricted-imports` impide que el consumidor la importe directo). Anclas terminales por
470
- template proyectado, mecanismo alternativo 100 % accesible por teclado (`<select>` de mover
471
- tarjeta) y anuncio `aria-live` de cada movimiento (drag real o select).
472
- - `sol-calendar`: calendario genérico semana/día con paridad de vistas frente al widget legado
473
- de `boki-front`, resolución de color por Strategy inyectable (`SOL_CALENDAR_COLOR`, default
474
- null-object desde `event.color`), cuerpo de evento por template proyectado y leyenda
475
- configurable (`view` tipa solo `'week' | 'day'`).
476
- - `sol-data-table`: `rowActionsTemplate` (`contentChild('rowActions')`), `actionsLabel` y
477
- `toggleDetailsLabel` consolidados, con default de `toggleDetailsLabel` corregido para igualar
478
- el texto real que usaban los consumidores.
479
- - Registro de íconos: +45 entradas Heroicons v2 (outline) + 7 SVG propios
480
- (`robot`/`gauge`/`plug`/`git-branch`/`webhook`/`state-machine`/`double-check`). Gate
481
- automatizado (`icon.registry.spec.ts` + `svg-inline-gate.spec.ts`) que impide agregar SVG
482
- inline nuevo dentro de `projects/solercia/ui/src/lib/**` (escaneo de contenido completo,
483
- no línea por línea — cubre `<svg>`/`<path>`/`<circle>`/`<polyline>`/`<polygon>`/`<line>`/
484
- `<rect>` en cualquier posición, con exclusión de comentarios).
485
-
486
- ### Corregido
487
-
488
- - Migración de SVG inline del lado librería (`pagination`/`modal`/`select`/`search-input`) a
489
- `sol-icon` del registro ampliado.
490
-
491
- ### Notas
492
-
493
- - `0.1.0` y `0.1.1` ya están publicadas en `registry.npmjs.org` (`npm view @solercia/ui
494
- versions`), publicadas **manualmente** (no por CI). `0.1.2` quedó preparada (ver entrada
495
- anterior) pero nunca llegó a publicarse por separado — su contenido queda absorbido por este
496
- release.
497
- - Publicación real de `0.2.0` **PREPARADA, no ejecutada** (gate del fundador) — ver
498
- `README.md#Publicación del paquete` para el paso exacto (`git tag v0.2.0` + push, o publish
499
- manual como respaldo). Pendiente antes de publicar por CI: configurar el secret `NPM_TOKEN`
500
- del repositorio (hoy vacío/ausente) y **rotar** el token de npm usado en la publicación
501
- manual de `0.1.1` (quedó expuesto en un log de sesión) — deuda heredada de
502
- `07-e9-extraccion-solercia-ui` (ver `openspec/07-e9-extraccion-solercia-ui/state.yaml`).
503
- - 961/961 tests de la librería en verde (283 de `0.1.2` + los nuevos de `sol-avatar`/
504
- `sol-score-badge`/`sol-trend`/`sol-message-status`/`sol-stepper`/`sol-timeline`/`sol-kanban`/
505
- `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).
506
507
 
507
508
  ## [0.1.2] - 2026-07-16
508
509
 
509
- ### Corregido
510
-
511
- - `ng-add` (schematic): 5 correcciones descubiertas al hornear un proyecto real (`ng new` +
512
- `ng add @solercia/ui@0.1.0`) contra el paquete publicado, sin backport previo al schematic:
513
- 1. **`TS5090`**: `wireTsconfigPaths` escribía los alias FSD (`@pages/*`, `@widgets/*`, etc.) sin
514
- prefijo `./` (p. ej. `"src/pages/*"`); un `tsconfig.json` de `ng new` no define `baseUrl`, así
515
- que el compilador rechazaba la ruta no-relativa. Ahora los `paths` generados siempre llevan
516
- `./` explícito.
517
- 2. **`appendGlobalStyles` ignoraba SCSS**: solo detectaba `src/styles.css`; en un proyecto
518
- `ng new --style=scss` los tokens `--sol-*` de ejemplo no se inyectaban. Ahora detecta también
519
- `src/styles.scss`.
520
- 3. **`@solercia/eslint-config` no se instalaba**: el schematic solo dejaba un log informativo
521
- ("aún no publicado"). Ahora se agrega como `devDependency` real vía `addDependency` (el preset
522
- está publicado en npm desde `0.1.1`).
523
- 4. **`TS2571` por falta de `@shared/i18n`**: los schematics `page`/`feature`/`widget` generan
524
- componentes que importan `I18nService` desde `@shared/i18n`, capa que `ng-add` nunca
525
- scaffoldeaba. Ahora se crea `shared/i18n/i18n.service.ts` (adaptador identidad de `SolI18n`,
526
- listo para cablear a `SOL_I18N`) + `shared/i18n/index.ts`.
527
- 5. **`eslint.config.js` sin `"type":"module"`**: se generaba en sintaxis ESM (`import ... from`)
528
- sobre un `package.json` de `ng new` por defecto CommonJS, produciendo `ERR_REQUIRE_ESM`. Ahora
529
- 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
530
532
  `"type":"module"`.
531
- - Configs de Husky en `.cjs` para hosts ESM: hallazgo del lente `review-reliability` sobre el fix 5
532
- — si el `package.json` anfitrión SÍ declara `"type":"module"` (por ejemplo, a mano o por un futuro
533
- default), Node interpretaba `commitlint.config.js`/`lint-staged.config.js` (ambos en sintaxis
534
- CommonJS, `module.exports`) como ESM y los hooks de Husky reventaban con
535
- `ReferenceError: module is not defined in ES module scope`. Ahora `scaffoldHusky` emite ambos
536
- archivos con extensión `.cjs` (mismo contenido CommonJS, sin cambios) cuando el host ya es ESM; en
537
- el caso por defecto (CommonJS) se mantiene `.js` sin cambios de comportamiento.
538
- - Cobertura: 7 casos nuevos/actualizados en `ng-add.spec.ts` con `SchematicTestRunner` sobre un
539
- árbol `ng new` simulado (sin red) — 5 por fix + 2 de la corrección posterior al review
540
- (`review-reliability`: versión exacta de `@solercia/eslint-config`, Husky en `.cjs` para hosts
541
- ESM, y cobertura de la rama sin `styles.css`/`styles.scss`). 283 tests de la librería en verde
542
- (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).
543
544
 
544
545
  ## [0.1.1] - 2026-07-15
545
546
 
546
- ### Agregado
547
+ ### Added
547
548
 
548
- - `sol-data-table`: tabla genérica dirigida por columnas (`DataTableColumn`), con búsqueda, paginación,
549
- ordenamiento, estados loading/empty, modo móvil colapsable y slot `#rowActions` para acciones por fila
550
- (edit/delete de conveniencia). Autocontenida (sin dependencias de dominio ni de utilidades del host).
551
- - `sol-page-header`: encabezado de página (`title` requerido, `subtitle` opcional, slot de acciones).
552
- - `sol-icon-button`: botón de solo ícono sobre el registro de íconos de la librería, con `ariaLabel`
553
- requerido, variantes (`default`/`danger`/`ghost`), tamaños y output `clicked`.
554
- - `sol-rich-editor`: menciones (`@`) y task-linking (`#`) **opt-in** — inputs `mentionableUsers`/`linkableTasks`
555
- y outputs `mentionsChange`/`taskLinksChange` (tipos `MentionUser`/`LinkableTask`). Aditivo: con listas
556
- vacías el editor mantiene su comportamiento previo (imágenes, serialización TCPDF). El sanitizador
557
- 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).
558
560
 
559
- ### Notas
561
+ ### Notes
560
562
 
561
- - Componentes surgidos del segundo consumidor (`gestion_proyectos`): reemplazan sus stopgaps locales, de
562
- modo que el consumidor no mantenga design system propio.
563
- - 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).
564
566
 
565
567
  ## [0.1.0] - 2026-07-14
566
568
 
567
- ### Agregado
568
-
569
- - Extracción inicial del design system Solercia: 28 componentes `sol-*` (`shared/ui`), theming de 3
570
- niveles con 95 tokens `--sol-*` (`shared/tokens`, `ThemeService`), registro de íconos (Heroicons) y
571
- utilidades presentacionales.
572
- - Arquitectura agnóstica del host por puertos (`InjectionToken`): `THEME_SOURCE`, `SOL_DEFAULT_THEME`,
573
- `SOL_TENANT_RESOLVER`, `SOL_I18N`. La librería no conoce `boki-api` ni HTTP; los adaptadores viven en
574
- el host consumidor.
575
- - Colección de schematics `ng add` / `ng generate page|feature|entity|widget` dentro de la propia
576
- librería, conforme a Feature-Sliced Design.
577
- - Documentación: `docs/{THEMING,I18N,MULTITENANT_SETUP}.md` + README de la librería.
578
- - Metadata de publicación: licencia `Apache-2.0`, `NOTICE` de autoría (Solercia Solutions SAS),
579
- `publishConfig` apuntando a GitHub Packages (`https://npm.pkg.github.com`).
580
-
581
- ### Notas
582
-
583
- - Publicación real en GitHub Packages pendiente de la decisión D1 del fundador (owner/organización
584
- 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).