@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.
- package/CHANGELOG.md +526 -523
- package/README.md +1187 -114
- package/llms.txt +37 -0
- package/package.json +15 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,584 +1,587 @@
|
|
|
1
1
|
# Changelog — @solercia/ui
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[Keep a Changelog](https://keepachangelog.com/
|
|
5
|
-
[SemVer](https://semver.org/
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
`<sol-theme-studio>`
|
|
14
|
-
|
|
15
|
-
###
|
|
16
|
-
|
|
17
|
-
- `sol-select`:
|
|
18
|
-
`aria-activedescendant`,
|
|
19
|
-
`aria-haspopup="listbox"`
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
390×844,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
-
|
|
72
|
-
`themeName` (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- `
|
|
84
|
-
|
|
85
|
-
-
|
|
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
|
-
###
|
|
112
|
+
### Changed
|
|
92
113
|
|
|
93
|
-
- `<sol-theme-studio>`
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
###
|
|
127
|
+
### Fixed
|
|
108
128
|
|
|
109
|
-
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
###
|
|
134
|
+
### Notes
|
|
115
135
|
|
|
116
|
-
-
|
|
117
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
###
|
|
126
|
-
|
|
127
|
-
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
`
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
`
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
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`)
|
|
152
|
-
- `semantic.color.primaryContrast?` → `--sol-color-primary-contrast` (default `#FFFFFF`).
|
|
153
|
-
|
|
154
|
-
- `semantic.color.secondaryContrast?`
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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`):
|
|
177
|
-
>
|
|
178
|
-
>
|
|
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
|
-
###
|
|
201
|
+
### Added
|
|
181
202
|
|
|
182
203
|
- `sol-data-table` (`ui/data-table/data-table.component.ts`):
|
|
183
|
-
- Input `actionsPosition: 'start' | 'end'` (default `'end'`,
|
|
184
|
-
th/td
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
(`sol-data-table__filters-row`),
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
- Input `collapseWidth: number` (default `767`,
|
|
195
|
-
|
|
196
|
-
- `sol-icon-button` (`ui/icon-button/icon-button.component.ts`):
|
|
197
|
-
|
|
198
|
-
icon-buttons
|
|
199
|
-
|
|
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`
|
|
202
|
-
|
|
203
|
-
- `sol-rating-input` (`ui/rating-input/rating-input.component.ts`):
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- **
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
- `ControlValueAccessor
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
-
###
|
|
336
|
+
### Added
|
|
321
337
|
|
|
322
|
-
- `sol-input` (`ui/input/input.component.ts`):
|
|
323
|
-
`undefined`
|
|
324
|
-
`[attr.min]`.
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
-
>
|
|
333
|
-
>
|
|
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
|
-
###
|
|
350
|
+
### Added
|
|
336
351
|
|
|
337
|
-
- `sol-star-rating` (`ui/star-rating/star-rating.component.ts`):
|
|
338
|
-
|
|
339
|
-
-
|
|
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
|
-
###
|
|
345
|
-
|
|
346
|
-
- `solFloatingPanel` (`ui/overlay/floating-panel.directive.ts`):
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
`sol-
|
|
351
|
-
`
|
|
352
|
-
`
|
|
353
|
-
(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
`
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
`
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
`
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
-
|
|
387
|
-
|
|
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
|
-
###
|
|
397
|
-
|
|
398
|
-
- `sol-drawer
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
(`
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
`
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
`
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
`
|
|
445
|
-
|
|
446
|
-
|
|
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
|
-
###
|
|
456
|
-
|
|
457
|
-
- `sol-avatar`, `sol-score-badge`, `sol-trend`, `sol-message-status`:
|
|
458
|
-
(
|
|
459
|
-
|
|
460
|
-
- `sol-stepper`:
|
|
461
|
-
|
|
462
|
-
horizontal
|
|
463
|
-
- `sol-timeline`:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
- `sol-kanban-board` / `-column` / `-card`:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
- `sol-calendar`:
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
- `sol-data-table`: `rowActionsTemplate` (`contentChild('rowActions')`), `actionsLabel`
|
|
477
|
-
`toggleDetailsLabel`
|
|
478
|
-
|
|
479
|
-
-
|
|
480
|
-
(`robot`/`gauge`/`plug`/`git-branch`/`webhook`/`state-machine`/`double-check`).
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
###
|
|
487
|
-
|
|
488
|
-
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
###
|
|
492
|
-
|
|
493
|
-
- `0.1.0`
|
|
494
|
-
versions`),
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
`
|
|
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
|
-
###
|
|
510
|
-
|
|
511
|
-
- `ng-add` (schematic): 5
|
|
512
|
-
`ng add @solercia/ui@0.1.0`)
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
`
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
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
|
-
-
|
|
532
|
-
|
|
533
|
-
default), Node
|
|
534
|
-
|
|
535
|
-
`ReferenceError: module is not defined in ES module scope`.
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
-
|
|
539
|
-
|
|
540
|
-
(
|
|
541
|
-
|
|
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
|
-
###
|
|
547
|
+
### Added
|
|
547
548
|
|
|
548
|
-
- `sol-data-table`:
|
|
549
|
-
|
|
550
|
-
(edit/delete
|
|
551
|
-
- `sol-page-header`:
|
|
552
|
-
- `sol-icon-button`:
|
|
553
|
-
|
|
554
|
-
- `sol-rich-editor`:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
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
|
-
###
|
|
561
|
+
### Notes
|
|
560
562
|
|
|
561
|
-
-
|
|
562
|
-
|
|
563
|
-
- 277 tests
|
|
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
|
-
###
|
|
568
|
-
|
|
569
|
-
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
-
|
|
573
|
-
`SOL_TENANT_RESOLVER`, `SOL_I18N`.
|
|
574
|
-
|
|
575
|
-
-
|
|
576
|
-
|
|
577
|
-
-
|
|
578
|
-
-
|
|
579
|
-
`publishConfig`
|
|
580
|
-
|
|
581
|
-
###
|
|
582
|
-
|
|
583
|
-
-
|
|
584
|
-
|
|
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).
|