@solercia/ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +567 -523
- package/README.md +1207 -114
- package/fesm2022/solercia-ui-login-appearance.mjs +3 -3
- package/fesm2022/solercia-ui-login-appearance.mjs.map +1 -1
- package/fesm2022/solercia-ui-theme-studio.mjs +3 -3
- package/fesm2022/solercia-ui-theme-studio.mjs.map +1 -1
- package/fesm2022/solercia-ui.mjs +1134 -286
- package/fesm2022/solercia-ui.mjs.map +1 -1
- package/i18n/en.json +284 -0
- package/i18n/es-CO.json +284 -0
- package/llms.txt +38 -0
- package/package.json +15 -3
- package/types/solercia-ui.d.ts +133 -39
package/README.md
CHANGED
|
@@ -1,49 +1,184 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
- [`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- [
|
|
36
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/solercia-solutions/solercia-ui/main/.github/assets/solercia-mark.svg" alt="Solercia" width="48" height="92">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">@solercia/ui</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
Themeable, host-agnostic Angular 22 design system: 57 standalone components and directives,
|
|
9
|
+
multi-tenant theming through <code>--sol-*</code> tokens, a pluggable i18n contract and
|
|
10
|
+
<code>ng add</code> scaffolding for Feature-Sliced Design projects.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://www.npmjs.com/package/@solercia/ui"><img src="https://img.shields.io/npm/v/@solercia/ui?color=10c1d6" alt="npm version"></a>
|
|
15
|
+
<a href="https://github.com/solercia-solutions/solercia-ui/actions/workflows/ci.yml"><img src="https://github.com/solercia-solutions/solercia-ui/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
16
|
+
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-45fdae" alt="License: Apache-2.0"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Highlights
|
|
22
|
+
|
|
23
|
+
- **Modern Angular only.** Standalone, `OnPush`, signal inputs and outputs. Zoneless-ready: no zone.js required.
|
|
24
|
+
- **Theme by data, not by code.** A tenant theme is a JSON `ThemeFile`; the library resolves it into
|
|
25
|
+
about 96 `--sol-*` CSS custom properties, with light and dark modes, favicon and Google Fonts.
|
|
26
|
+
- **Host-agnostic.** Theming and i18n are injected through small ports (`THEME_SOURCE`,
|
|
27
|
+
`SOL_TENANT_RESOLVER`, `SOL_I18N`). The library never calls your API or assumes an i18n engine.
|
|
28
|
+
- **Works with zero wiring.** Without any provider it renders on the bundled «Vértice» theme.
|
|
29
|
+
- **Architecture included.** `ng add @solercia/ui` scaffolds FSD layers, path aliases, theme and i18n
|
|
30
|
+
adapters, [`@solercia/eslint-config`](https://github.com/solercia-solutions/eslint-config), Husky and commitlint.
|
|
31
|
+
- **Live showcase.** Every component is demoed in [`projects/showcase`](./projects/showcase) — run `npm start`.
|
|
32
|
+
|
|
33
|
+
## Contents
|
|
34
|
+
|
|
35
|
+
- [Installation](#installation)
|
|
36
|
+
- [Quick start](#quick-start)
|
|
37
|
+
- [Theming and i18n](#theming-and-i18n)
|
|
38
|
+
- [Components at a glance](#components-at-a-glance)
|
|
39
|
+
- [Component reference](#component-reference)
|
|
40
|
+
- [Showcase](#showcase)
|
|
41
|
+
- [For AI coding agents](#for-ai-coding-agents)
|
|
42
|
+
- [Development](#development)
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
ng add @solercia/ui
|
|
48
|
+
# or, without scaffolding
|
|
49
|
+
npm install @solercia/ui @angular/cdk chart.js @dagrejs/dagre
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
| Peer dependency | Version | Used by |
|
|
53
|
+
| --- | --- | --- |
|
|
54
|
+
| `@angular/core`, `@angular/common`, `@angular/forms` | `^22.0.0` | everything |
|
|
55
|
+
| `@angular/cdk` | `^22.0.0` | kanban drag and drop |
|
|
56
|
+
| `rxjs` | `^7.8.0` | |
|
|
57
|
+
| `chart.js` | `^4.5.1` | `sol-chart` |
|
|
58
|
+
| `@dagrejs/dagre` | `^3.0.0` | `sol-flow-canvas` auto-layout (lazy chunk) |
|
|
59
|
+
|
|
60
|
+
## Quick start
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
|
|
64
|
+
import { provideRouter } from '@angular/router';
|
|
65
|
+
import { SOL_I18N, SOL_TENANT_RESOLVER, THEME_SOURCE, provideTheme } from '@solercia/ui';
|
|
66
|
+
import { routes } from './app.routes';
|
|
67
|
+
import { AppThemeSource, AppTenantResolver } from './shared/tokens';
|
|
68
|
+
import { I18nService } from './shared/i18n';
|
|
69
|
+
|
|
70
|
+
export const appConfig: ApplicationConfig = {
|
|
71
|
+
providers: [
|
|
72
|
+
provideZonelessChangeDetection(),
|
|
73
|
+
provideRouter(routes),
|
|
74
|
+
provideTheme(),
|
|
75
|
+
{ provide: THEME_SOURCE, useExisting: AppThemeSource }, // optional
|
|
76
|
+
{ provide: SOL_TENANT_RESOLVER, useExisting: AppTenantResolver }, // optional (multi-tenant)
|
|
77
|
+
{ provide: SOL_I18N, useExisting: I18nService }, // optional (English by default)
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
// Light/dark toggle anywhere
|
|
84
|
+
readonly theme = inject(ThemeService);
|
|
85
|
+
// template: <sol-icon-button [icon]="theme.isDark() ? 'sun' : 'moon'" ariaLabel="Toggle theme" (clicked)="theme.toggleMode()" />
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```css
|
|
89
|
+
/* styles.css — the snippet ng add appends */
|
|
90
|
+
body {
|
|
91
|
+
background: var(--sol-bg-page);
|
|
92
|
+
color: var(--sol-color-text-primary);
|
|
93
|
+
font-family: var(--sol-font-family);
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
A complete reference integration (a `SolI18n` engine that merges the bundled catalogs with its own keys) lives in
|
|
98
|
+
`projects/showcase/src/app/app.config.ts` and `projects/showcase/src/app/i18n/showcase-i18n.service.ts`.
|
|
99
|
+
|
|
100
|
+
### What `ng add @solercia/ui` does
|
|
101
|
+
|
|
102
|
+
Options: `--project` (defaults to the workspace application), `--skip-install`. It:
|
|
103
|
+
|
|
104
|
+
1. Creates FSD layer stubs `src/{pages,widgets,features,entities}/index.ts`.
|
|
105
|
+
2. Scaffolds `src/shared/tokens/app-theme-source.ts` (`AppThemeSource`, returns `null`),
|
|
106
|
+
`app-tenant-resolver.ts` (`AppTenantResolver`, returns `null`) and `index.ts`.
|
|
107
|
+
3. Scaffolds `src/shared/i18n/i18n.service.ts` (`I18nService implements SolI18n`, identity) and `index.ts`.
|
|
108
|
+
4. Adds tsconfig path aliases `@app/*`, `@pages/*`, `@widgets/*`, `@features/*`, `@entities/*`, `@shared/*`.
|
|
109
|
+
5. Appends the `/* @solercia/ui — tokens base */` body snippet to `src/styles.css|scss` (idempotent).
|
|
110
|
+
6. Adds `provideTheme()` to the root providers (`app.config.ts`).
|
|
111
|
+
7. Creates `eslint.config.{js,mjs}` extending `@solercia/eslint-config` (FSD boundaries, smart/dumb rule,
|
|
112
|
+
Chart.js restriction) unless one exists.
|
|
113
|
+
8. Scaffolds Husky (`.husky/pre-commit` → `npx lint-staged`, `.husky/commit-msg` → commitlint),
|
|
114
|
+
`commitlint.config.*`, `lint-staged.config.*` and a `prepare: "husky"` script.
|
|
115
|
+
9. Adds dev dependencies `@solercia/eslint-config`, `husky`, `lint-staged`, `@commitlint/cli`,
|
|
116
|
+
`@commitlint/config-conventional` and installs them (unless `--skip-install`).
|
|
117
|
+
|
|
118
|
+
It does **not** wire `THEME_SOURCE`/`SOL_I18N` providers automatically; the scaffolded adapters say how.
|
|
119
|
+
|
|
120
|
+
### Providers, tokens and services
|
|
121
|
+
|
|
122
|
+
| Symbol | Kind | Purpose |
|
|
123
|
+
|---|---|---|
|
|
124
|
+
| `provideTheme()` | `EnvironmentProviders` | App initializer that instantiates `ThemeService` so the theme is applied before first render. |
|
|
125
|
+
| `ThemeService` | service (`providedIn: 'root'`) | Resolves the active `ThemeFile` into ~96 `--sol-*` CSS variables on `:root`; light/dark; favicon; Google Fonts. API: `activeTheme()`, `isDark()`, `logo()`, `brandName()`, `tenantFavicon()` (signals), `setDarkMode(dark)`, `toggleMode()`, `setTenantTheme(theme \| null)`. The user’s mode choice persists in `localStorage`. |
|
|
126
|
+
| `THEME_SOURCE` | `InjectionToken<ThemeSource>` | Host port: `loadTheme(tenantId): Promise<ThemeFile \| null>`. Default returns `null`. |
|
|
127
|
+
| `SOL_TENANT_RESOLVER` | `InjectionToken<SolTenantResolver>` (optional) | Host port: `activeTenantId(): number \| null`. When provided, `ThemeService` reloads the tenant theme whenever it changes. |
|
|
128
|
+
| `SOL_DEFAULT_THEME` | `InjectionToken<ThemeFile>` | Fallback theme; defaults to `SOL_BUNDLED_DEFAULT_THEME` (“Vértice”). Degradation: tenant theme → default theme → inline `:root` CSS. |
|
|
129
|
+
| `SOL_I18N` | `InjectionToken<SolI18n>` | Host i18n engine: `activeLang: Signal<string>`, `translate(key, params?)`, `t(key, params?): Signal<string>`, `tMany(keys)`. Default is an English engine backed by the bundled catalog. |
|
|
130
|
+
| `createSolI18n(options?)` | function | Catalog-backed `SolI18n` engine with `setLang(lang)`. Options: `lang` (default `'en'`), `catalogs` (default `{ en: SOL_I18N_EN, 'es-CO': SOL_I18N_ES_CO }`). `createSolI18n({ lang: 'es-CO' })` gives Colombian Spanish. |
|
|
131
|
+
| `SOL_I18N_EN` / `SOL_I18N_ES_CO` | `SolI18nCatalog` | Bundled `shared.*` catalogs, also shipped as `@solercia/ui/i18n/en.json` and `@solercia/ui/i18n/es-CO.json` to merge into Transloco or ngx-translate. |
|
|
132
|
+
| `SOL_CHART_ENGINE` | `InjectionToken<SolChartEngineFactory>` | Chart.js factory used by `sol-chart`; override only to swap or mock the engine. |
|
|
133
|
+
| `SOL_CALENDAR_COLOR` | `InjectionToken<SolCalendarColorStrategy>` | Calendar event color strategy (`resolve(event, isDark): { bg, border, text }`). Default derives from `event.color` with `color-mix()` over tokens. |
|
|
134
|
+
| `KanbanReorderService` | service | Pure reorder helper: `reorder(columns, rawDropEvent) → { columns, moved } \| null`. Used by the board; reusable by hosts. |
|
|
135
|
+
| Helpers | functions/consts | `resolveCssVars`, `isRenderableTheme`, `isSafeBackgroundImage`, `buildGoogleFontsUrl`, `EMIT_TABLE`, `sanitizeAssetUrl`, `SOL_TABLE_VARIANTS`, `computeInitials`, `hashToPaletteIndex`, `normalizeRating`, `resolveScoreTone`, `DEFAULT_SCORE_THRESHOLDS`, `resolveTrendDirection`, `defaultTrendFormat`, timeline (`computeGlobalRange`, `positionRows`, `collectUndatedNodes`, `computeMonthAxisTicks`, `defaultStatusToken`), calendar (`buildDayColumns`, `computeEventTop`, `computeEventHeight`, `computeNowTop`, `dayKey`, `getWeekStart`, `parseEventDate`, `isSafeCssColor`, `NEUTRAL_CALENDAR_COLOR`), `computeAutoLayoutPositions` (flow canvas, dagre), `KANBAN_ADD_ACTION`, `SOL_TREE_MAX_DEPTH` (5), rich-editor serializer (`serializeElementToTcpdfHtml`, `sanitizeHtmlToTcpdf`, `TCPDF_ALLOWED_TAGS`, `TCPDF_ALLOWED_STYLE_PROPERTIES`). |
|
|
136
|
+
|
|
137
|
+
Peer dependencies: `@angular/{core,common,forms}` ^22, `@angular/cdk` ^22 (kanban drag and drop),
|
|
138
|
+
`rxjs` ^7.8, `chart.js` ^4.5.1 (`sol-chart`), `@dagrejs/dagre` ^3 (flow-canvas auto-layout, lazy chunk).
|
|
139
|
+
No zone.js required: the library works with `provideZonelessChangeDetection()` (Angular 22 default).
|
|
140
|
+
|
|
141
|
+
## Theming and i18n
|
|
142
|
+
|
|
143
|
+
- **Theming.** The host implements two optional ports: `SOL_TENANT_RESOLVER` (who the active tenant is)
|
|
144
|
+
and `THEME_SOURCE` (how to load its `ThemeFile`). Degradation, best to worst: tenant theme from
|
|
145
|
+
`THEME_SOURCE` → `SOL_DEFAULT_THEME` (bundled «Vértice») → inline `:root` CSS in the host's `styles.css`.
|
|
146
|
+
- **i18n.** `SOL_I18N` is a `SolI18n` contract (`t`, `translate`, `activeLang`, `tMany`), mirroring
|
|
147
|
+
Angular Material's `*Intl` services. **English is the default**: without a provider every component
|
|
148
|
+
text comes from the bundled English catalog. Every visible default goes through a `shared.*` key;
|
|
149
|
+
an explicit input (`searchPlaceholder`, `actionsLabel`, `confirmLabel`, `label`…) always wins.
|
|
150
|
+
- **Bundled catalogs.** `SOL_I18N_EN` and `SOL_I18N_ES_CO` (also `@solercia/ui/i18n/en.json` and
|
|
151
|
+
`@solercia/ui/i18n/es-CO.json`) hold every `shared.*` key. When your engine returns a `shared.*` key
|
|
152
|
+
unchanged, the component falls back to the bundled catalog of the active language (`es*` → Colombian
|
|
153
|
+
Spanish, anything else → English), so a host catalog does not need every library key.
|
|
154
|
+
- **Spanish.** Use the bundled engine, or merge the catalog into yours:
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
import { SOL_I18N, SOL_I18N_ES_CO, createSolI18n } from '@solercia/ui';
|
|
158
|
+
|
|
159
|
+
{ provide: SOL_I18N, useFactory: () => createSolI18n({ lang: 'es-CO' }) } // bundled engine
|
|
160
|
+
// Transloco / ngx-translate: merge SOL_I18N_ES_CO (or @solercia/ui/i18n/es-CO.json) into the
|
|
161
|
+
// es-CO translations and bind SOL_I18N to an adapter whose activeLang() returns 'es-CO'.
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
In-depth guides:
|
|
165
|
+
|
|
166
|
+
| Guide | Covers |
|
|
167
|
+
| --- | --- |
|
|
168
|
+
| [`THEMING.md`](./projects/solercia/ui/docs/THEMING.md) | Ports, the full `ThemeFile` contract, degradation levels, implementing a `ThemeSource` |
|
|
169
|
+
| [`I18N.md`](./projects/solercia/ui/docs/I18N.md) | The `SOL_I18N` contract and engine adapters |
|
|
170
|
+
| [`THEME-STUDIO.md`](./projects/solercia/ui/docs/THEME-STUDIO.md) | `@solercia/ui/theme-studio`: `<sol-theme-studio>`, the `ThemeStudioStore` contract |
|
|
171
|
+
| [`MULTITENANT_SETUP.md`](./projects/solercia/ui/docs/MULTITENANT_SETUP.md) | Step-by-step wiring for new and existing projects |
|
|
37
172
|
|
|
38
173
|
### Themed sign-in (`@solercia/ui/login-appearance`)
|
|
39
174
|
|
|
40
|
-
|
|
41
|
-
|
|
175
|
+
A theme can carry a `meta.login` block (photos, motion, per-mode composition and caption). The entry
|
|
176
|
+
point paints it and ships no auth logic: the host projects its own form.
|
|
42
177
|
|
|
43
178
|
```ts
|
|
44
179
|
import { SolLoginFrameComponent, resolveLoginView } from '@solercia/ui/login-appearance';
|
|
45
180
|
|
|
46
|
-
//
|
|
181
|
+
// `null` (no photos anywhere) keeps the classic centered card.
|
|
47
182
|
readonly view = computed(() => {
|
|
48
183
|
const meta = this.themeService.activeTheme()?.meta as { login?: unknown } | undefined;
|
|
49
184
|
return resolveLoginView({ published: null, theme: meta?.login }, this.themeService.isDark());
|
|
@@ -52,120 +187,1078 @@ readonly view = computed(() => {
|
|
|
52
187
|
|
|
53
188
|
```html
|
|
54
189
|
<sol-login-frame [view]="view()" [tagline]="tagline()" [logo]="logo()" [dark]="isDark()">
|
|
55
|
-
<h1
|
|
190
|
+
<h1>Sign in</h1>
|
|
56
191
|
<app-login-form />
|
|
57
192
|
</sol-login-frame>
|
|
58
193
|
```
|
|
59
194
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- `<sol-theme-studio [features]="{ loginAppearance: true }">` adds the «Inicio de sesión» tab with
|
|
64
|
-
`<sol-login-appearance-editor>`; photos upload through `ThemeStudioStore.uploadLogo` and the block
|
|
65
|
-
is saved with «Aplicar tema».
|
|
66
|
-
- Texts live under `sol.loginAppearance.*` (defaults in Colombian Spanish and English).
|
|
195
|
+
`normalizeLogin` bounds every value; photos must be `https://`, root-relative or `assets/` URLs of PNG,
|
|
196
|
+
JPEG, WebP or AVIF images. `<sol-theme-studio [features]="{ loginAppearance: true }">` adds the sign-in
|
|
197
|
+
tab with `<sol-login-appearance-editor>`.
|
|
67
198
|
|
|
68
|
-
##
|
|
199
|
+
## Components at a glance
|
|
69
200
|
|
|
70
|
-
|
|
201
|
+
All symbols are imported from `'@solercia/ui'` and added to the standalone component's `imports`.
|
|
202
|
+
**Req** marks a required input; **CVA** means the component implements `ControlValueAccessor`
|
|
203
|
+
(`[(ngModel)]`, `formControlName`).
|
|
71
204
|
|
|
72
|
-
|
|
73
|
-
|
|
205
|
+
| Category | Selector | Purpose |
|
|
206
|
+
| --- | --- | --- |
|
|
207
|
+
| Actions | `sol-button` | Text button with variants, sizes and a loading state. |
|
|
208
|
+
| Actions | `sol-icon-button` | Icon-only button; `ariaLabel` is mandatory. |
|
|
209
|
+
| Actions | `sol-icon` | Inline SVG from the built-in registry (~140 names: `home`, `menu`, `edit`, `trash`, `calendar`, `bell`, `sun`, `moon`, …; full list in the showcase *Icon* page). |
|
|
210
|
+
| Forms | `sol-input` | Text input with label and error message (CVA, `string`). |
|
|
211
|
+
| Forms | `sol-textarea` | Multi-line text input with label and error message (CVA, `string`). |
|
|
212
|
+
| Forms | `sol-form-field` | Label/hint/error wrapper for any projected control. |
|
|
213
|
+
| Forms | `sol-search-input` | Search box that emits the typed query. |
|
|
214
|
+
| Forms | `sol-number-input` | Stepper input with − / + buttons. |
|
|
215
|
+
| Forms | `sol-select` | Searchable single/multi select; bottom sheet below `mobileBreakpoint`. |
|
|
216
|
+
| Forms | `sol-checkbox` | Checkbox with sizes, colors, shapes and an optional link (CVA, `boolean`). |
|
|
217
|
+
| Forms | `sol-toggle` | On/off switch (CVA, `boolean`). |
|
|
218
|
+
| Forms | `sol-chip` | Single filter/choice chip. |
|
|
219
|
+
| Forms | `sol-chip-group` | Single or multiple choice as chips (CVA). |
|
|
220
|
+
| Forms | `sol-view-toggle` | Segmented control. |
|
|
221
|
+
| Forms | `sol-date-picker` | Calendar popover with day/month/year views. |
|
|
222
|
+
| Forms | `sol-day-picker` | Horizontal strip of bookable days computed by the host. |
|
|
223
|
+
| Forms | `sol-rating-input` | Interactive radiogroup of stars. |
|
|
224
|
+
| Forms | `sol-file-upload` | Drag-and-drop image picker with validation and preview. |
|
|
225
|
+
| Forms | `sol-rich-editor` | Rich text editor (headings, lists, alignment, links, tables, images, @mentions, #task links); output HTML is TCPDF-safe. |
|
|
226
|
+
| Feedback & status | `sol-badge` | Small status or count label with tones. |
|
|
227
|
+
| Feedback & status | `sol-message-status` | Delivery ticks with an accessible label. |
|
|
228
|
+
| Feedback & status | `sol-score-badge` | Numeric score colored by thresholds. |
|
|
229
|
+
| Feedback & status | `sol-trend` | Up/down/flat variation indicator. |
|
|
230
|
+
| Feedback & status | `sol-avatar` | Image or initials on a deterministic palette color. |
|
|
231
|
+
| Feedback & status | `sol-star-rating` | Read-only stars (`role="img"`). |
|
|
232
|
+
| Feedback & status | `sol-spinner` | Indeterminate loading indicator. |
|
|
233
|
+
| Feedback & status | `sol-skeleton` | Placeholder shapes while content loads. |
|
|
234
|
+
| Feedback & status | `sol-progress-bar` | Continuous or segmented progress with tones. |
|
|
235
|
+
| Feedback & status | `sol-empty-state` | Empty or no-results message with an optional action. |
|
|
236
|
+
| Feedback & status | `sol-tooltip` | Hover/focus hint for any element. |
|
|
237
|
+
| Feedback & status | `sol-notification-panel` | Inbox with loading / error / empty / content states, relative times and unread count. |
|
|
238
|
+
| Overlays | `sol-modal` | Host-controlled modal; Escape closes, focus trapped, body scroll locked. |
|
|
239
|
+
| Overlays | `sol-drawer` | Side panel or bottom sheet with a footer slot. |
|
|
240
|
+
| Overlays | `sol-confirm-dialog` | Confirm/cancel dialog for destructive actions. |
|
|
241
|
+
| Navigation | `sol-tabs` | Tab list only; the host renders the active panel. |
|
|
242
|
+
| Navigation | `sol-pagination` | Page navigation with page-size options. |
|
|
243
|
+
| Navigation | `sol-page-header` | Page title, subtitle and projected actions. |
|
|
244
|
+
| Navigation | `sol-stepper` | Progress through ordered steps. |
|
|
245
|
+
| Navigation | `sol-wizard` | Wizard = segmented progress bar + stepper pills + one panel per `*solWizardStep` + Back/Next/Finish footer. |
|
|
246
|
+
| Navigation | `sol-scope-switcher` | Menu to switch the active organization / workspace / tenant. |
|
|
247
|
+
| Navigation | `sol-tree` | Accessible tree (role `tree`), keyboard navigation, max depth 5. |
|
|
248
|
+
| Layout & motion | `sol-card` | Surface container with optional padding and hover elevation. |
|
|
249
|
+
| Layout & motion | `[solReveal]` | Entrance animation from the theme motion tokens; respects reduced motion. |
|
|
250
|
+
| Data | `sol-data-table` | Sorting, per-column filters, global search, pagination, edit/delete actions, row reveal and a collapsed layout below `collapseWidth`. |
|
|
251
|
+
| Data | `sol-virtual-scroll` | Windowed list with variable heights; chat-oriented (follows output, loads history at top). Requires an `<ng-template>` child (context `$implicit`, `index`) and a sized container. |
|
|
252
|
+
| Data | `sol-chart` | Chart.js wrapper themed from `--sol-*`; re-renders on light/dark. |
|
|
253
|
+
| Data | `sol-timeline` | Gantt-like hierarchy on a month axis; undated nodes listed apart. |
|
|
254
|
+
| Planning | `sol-kanban-board` | Columns with CDK drag and drop (mouse, touch, keyboard “Move to…”), optimistic mirror and `rollback()`. |
|
|
255
|
+
| Planning | `sol-kanban-column` | One column (normally rendered by the board). |
|
|
256
|
+
| Planning | `sol-kanban-card` | Draggable card rendered from a consumer template. |
|
|
257
|
+
| Planning | `sol-kanban-drag-source` | External list whose items can be dropped into a board’s columns (board emits `externalItemDropped`). |
|
|
258
|
+
| Planning | `sol-calendar` | Week/day agenda = header + grid + optional legend. |
|
|
259
|
+
| Planning | `sol-calendar-header` | Calendar toolbar: period, navigation and view switch. |
|
|
260
|
+
| Planning | `sol-calendar-grid` | Same inputs/outputs as `sol-calendar` minus `legend`. |
|
|
261
|
+
| Planning | `sol-flow-canvas` | Pan/zoom node graph: drag nodes, connect ports, keyboard moves with live announcements, “Arrange” auto-layout (dagre, lazy). |
|
|
262
|
+
|
|
263
|
+
## Component reference
|
|
264
|
+
|
|
265
|
+
### Actions
|
|
266
|
+
|
|
267
|
+
#### `sol-button` — `SolButtonComponent`
|
|
268
|
+
Text button with variants, sizes and a loading state.
|
|
269
|
+
|
|
270
|
+
| Input | Type | Default | Req |
|
|
271
|
+
|---|---|---|---|
|
|
272
|
+
| `variant` | `'primary' \| 'secondary' \| 'danger' \| 'ghost'` | `'primary'` | |
|
|
273
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'touch'` | `'md'` | |
|
|
274
|
+
| `disabled` | `boolean` | `false` | |
|
|
275
|
+
| `type` | `string` | `'button'` | |
|
|
276
|
+
| `loading` | `boolean` | `false` | |
|
|
277
|
+
|
|
278
|
+
Outputs: `clicked: void`. Content: label (`<ng-content>`).
|
|
279
|
+
|
|
280
|
+
```html
|
|
281
|
+
<sol-button variant="danger" size="sm" [loading]="saving()" (clicked)="remove()">Delete</sol-button>
|
|
74
282
|
```
|
|
75
283
|
|
|
76
|
-
|
|
284
|
+
#### `sol-icon-button` — `SolIconButtonComponent`
|
|
285
|
+
Icon-only button; `ariaLabel` is mandatory.
|
|
77
286
|
|
|
78
|
-
|
|
79
|
-
|
|
287
|
+
| Input | Type | Default | Req |
|
|
288
|
+
|---|---|---|---|
|
|
289
|
+
| `icon` | `SolIconName` | — | yes |
|
|
290
|
+
| `ariaLabel` | `string` | — | yes |
|
|
291
|
+
| `type` | `'button' \| 'submit'` | `'button'` | |
|
|
292
|
+
| `variant` | `'default' \| 'danger' \| 'ghost' \| 'outline'` | `'default'` | |
|
|
293
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'touch'` | `'md'` | |
|
|
294
|
+
| `disabled` | `boolean` | `false` | |
|
|
295
|
+
|
|
296
|
+
Outputs: `clicked: void`.
|
|
297
|
+
|
|
298
|
+
```html
|
|
299
|
+
<sol-icon-button icon="trash" variant="danger" ariaLabel="Delete project" (clicked)="remove()" />
|
|
80
300
|
```
|
|
81
301
|
|
|
82
|
-
|
|
302
|
+
#### `sol-icon` — `SolIconComponent`
|
|
303
|
+
Inline SVG from the built-in registry (~140 names: `home`, `menu`, `edit`, `trash`, `calendar`, `bell`, `sun`, `moon`, …; full list in the showcase *Icon* page).
|
|
83
304
|
|
|
84
|
-
|
|
305
|
+
| Input | Type | Default | Req |
|
|
306
|
+
|---|---|---|---|
|
|
307
|
+
| `name` | `SolIconName \| string` | — | yes |
|
|
308
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
309
|
+
| `variant` | `'outline' \| 'fill'` | `'outline'` | |
|
|
85
310
|
|
|
86
|
-
```
|
|
87
|
-
|
|
311
|
+
```html
|
|
312
|
+
<sol-icon name="star" size="lg" variant="fill" />
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
### Forms
|
|
318
|
+
|
|
319
|
+
#### `sol-input` — `SolInputComponent` (CVA, `string`)
|
|
320
|
+
| Input | Type | Default | Req |
|
|
321
|
+
|---|---|---|---|
|
|
322
|
+
| `type` | `string` | `'text'` | |
|
|
323
|
+
| `placeholder` | `string` | `''` | |
|
|
324
|
+
| `label` | `string` | `''` | |
|
|
325
|
+
| `error` | `string` | `''` | |
|
|
326
|
+
| `disabled` | `boolean` | `false` | |
|
|
327
|
+
| `autocomplete` | `string \| undefined` | `undefined` | |
|
|
328
|
+
| `min` | `string \| undefined` | `undefined` | |
|
|
329
|
+
|
|
330
|
+
```html
|
|
331
|
+
<sol-input label="Email" type="email" autocomplete="email" [(ngModel)]="email" [error]="emailError()" />
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
#### `sol-textarea` — `SolTextareaComponent` (CVA, `string`)
|
|
335
|
+
| Input | Type | Default | Req |
|
|
336
|
+
|---|---|---|---|
|
|
337
|
+
| `placeholder` | `string` | `''` | |
|
|
338
|
+
| `label` | `string` | `''` | |
|
|
339
|
+
| `error` | `string` | `''` | |
|
|
340
|
+
| `disabled` | `boolean` | `false` | |
|
|
341
|
+
| `rows` | `number` | `3` | |
|
|
342
|
+
|
|
343
|
+
```html
|
|
344
|
+
<sol-textarea label="Notes" [rows]="4" formControlName="notes" />
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
#### `sol-form-field` — `SolFormFieldComponent`
|
|
348
|
+
Label/hint/error wrapper for any projected control.
|
|
349
|
+
|
|
350
|
+
| Input | Type | Default | Req |
|
|
351
|
+
|---|---|---|---|
|
|
352
|
+
| `label` | `string` | `''` | |
|
|
353
|
+
| `error` | `string` | `''` | |
|
|
354
|
+
| `hint` | `string` | `''` | |
|
|
355
|
+
|
|
356
|
+
```html
|
|
357
|
+
<sol-form-field label="Website" hint="Include https://"><input formControlName="website" /></sol-form-field>
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
#### `sol-search-input` — `SolSearchInputComponent`
|
|
361
|
+
| Input | Type | Default | Req |
|
|
362
|
+
|---|---|---|---|
|
|
363
|
+
| `placeholder` | `string` | `shared.searchInput.placeholder` («Search...») | |
|
|
364
|
+
|
|
365
|
+
Outputs: `searchChange: string`. (Debounce behavior: not verified.)
|
|
366
|
+
|
|
367
|
+
```html
|
|
368
|
+
<sol-search-input placeholder="Search projects…" (searchChange)="query.set($event)" />
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
#### `sol-number-input` — `SolNumberInputComponent` (CVA, `number \| null`)
|
|
372
|
+
Stepper input with − / + buttons.
|
|
373
|
+
|
|
374
|
+
| Input | Type | Default | Req |
|
|
375
|
+
|---|---|---|---|
|
|
376
|
+
| `min` | `number` | `0` | |
|
|
377
|
+
| `max` | `number` | `Number.MAX_SAFE_INTEGER` | |
|
|
378
|
+
| `step` | `number` | `1` | |
|
|
379
|
+
| `disabled` | `boolean` | `false` | |
|
|
380
|
+
| `ariaLabelKey` | `string` (i18n key) | — | yes |
|
|
381
|
+
| `decrementLabelKey` | `string` | `'shared.numberInput.decrement'` | |
|
|
382
|
+
| `incrementLabelKey` | `string` | `'shared.numberInput.increment'` | |
|
|
383
|
+
|
|
384
|
+
```html
|
|
385
|
+
<sol-number-input ariaLabelKey="pages.checkout.seats" [min]="1" [max]="20" [(ngModel)]="seats" />
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
#### `sol-select` — `SolSelectComponent` (CVA, `string`; `string[]` when `multiple`)
|
|
389
|
+
Searchable single/multi select; bottom sheet below `mobileBreakpoint`.
|
|
390
|
+
|
|
391
|
+
| Input | Type | Default | Req |
|
|
392
|
+
|---|---|---|---|
|
|
393
|
+
| `options` | `SolSelectOption[]` (`{ value: string; label: string }`) | `[]` | |
|
|
394
|
+
| `placeholder` | `string` | `shared.select.placeholder` («Select...») | |
|
|
395
|
+
| `label` | `string` | `''` | |
|
|
396
|
+
| `error` | `string` | `''` | |
|
|
397
|
+
| `disabled` | `boolean` | `false` | |
|
|
398
|
+
| `searchable` | `boolean` | `true` | |
|
|
399
|
+
| `multiple` | `boolean` | `false` | |
|
|
400
|
+
| `showAllOption` | `boolean` | `false` | |
|
|
401
|
+
| `allOptionLabel` | `string` | `shared.select.all` («All») | |
|
|
402
|
+
| `ariaLabel` | `string` | `''` | |
|
|
403
|
+
| `searchPlaceholder` | `string` | `shared.select.searchPlaceholder` («Search...») | |
|
|
404
|
+
| `emptyLabel` | `string` | `shared.select.empty` («No results») | |
|
|
405
|
+
| `value` | `string \| null \| undefined` | `undefined` | |
|
|
406
|
+
| `mobileBreakpoint` | `number` | `640` | |
|
|
407
|
+
|
|
408
|
+
Outputs: `valueChange: string`.
|
|
409
|
+
|
|
410
|
+
```html
|
|
411
|
+
<sol-select label="Country" placeholder="Select a country" searchPlaceholder="Search…" emptyLabel="No results"
|
|
412
|
+
[options]="[{ value: 'co', label: 'Colombia' }, { value: 'mx', label: 'Mexico' }]" [(ngModel)]="country" />
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
#### `sol-checkbox` — `SolCheckboxComponent` (CVA, `boolean`)
|
|
416
|
+
| Input | Type | Default | Req |
|
|
417
|
+
|---|---|---|---|
|
|
418
|
+
| `label` | `string` | `''` | |
|
|
419
|
+
| `disabled` | `boolean` | `false` | |
|
|
420
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
421
|
+
| `color` | `'primary' \| 'secondary' \| 'success' \| 'danger' \| 'amber' \| 'teal' \| 'indigo' \| 'purple' \| 'pink'` | `'primary'` | |
|
|
422
|
+
| `shape` | `'rounded' \| 'square' \| 'circle'` | `'rounded'` | |
|
|
423
|
+
| `ripple` | `boolean` | `true` | |
|
|
424
|
+
| `icon` | `'check' \| 'minus' \| 'heart' \| 'star'` | `'check'` | |
|
|
425
|
+
| `linkText` | `string` | `''` | |
|
|
426
|
+
| `linkHref` | `string` | `''` | |
|
|
427
|
+
|
|
428
|
+
Outputs: `changed: boolean`.
|
|
429
|
+
|
|
430
|
+
```html
|
|
431
|
+
<sol-checkbox label="I accept the" linkText="terms" linkHref="/terms" formControlName="terms" />
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
#### `sol-toggle` — `SolToggleComponent` (CVA, `boolean`)
|
|
435
|
+
| Input | Type | Default | Req |
|
|
436
|
+
|---|---|---|---|
|
|
437
|
+
| `label` | `string` | `''` | |
|
|
438
|
+
| `ariaLabel` | `string` | `''` | |
|
|
439
|
+
| `disabled` | `boolean` | `false` | |
|
|
440
|
+
| `size` | `'sm' \| 'md'` | `'md'` | |
|
|
441
|
+
| `onText` | `string \| undefined` | `undefined` | |
|
|
442
|
+
| `offText` | `string \| undefined` | `undefined` | |
|
|
443
|
+
|
|
444
|
+
```html
|
|
445
|
+
<sol-toggle label="Email alerts" [(ngModel)]="alerts" />
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
#### `sol-chip` — `SolChipComponent`
|
|
449
|
+
Single filter/choice chip.
|
|
450
|
+
|
|
451
|
+
| Input | Type | Default | Req |
|
|
452
|
+
|---|---|---|---|
|
|
453
|
+
| `value` | `string` | — | yes |
|
|
454
|
+
| `label` | `string` | — | yes |
|
|
455
|
+
| `emoji` | `string` | `''` | |
|
|
456
|
+
| `count` | `number \| null` | `null` | |
|
|
457
|
+
| `selected` | `boolean` | `false` | |
|
|
458
|
+
| `disabled` | `boolean` | `false` | |
|
|
459
|
+
| `size` | `'sm' \| 'md'` | `'md'` | |
|
|
460
|
+
| `removable` | `boolean` | `false` | |
|
|
461
|
+
| `role` | `'button' \| 'radio' \| 'checkbox'` | `'button'` | |
|
|
462
|
+
| `tabIndex` | `number` | `0` | |
|
|
463
|
+
| `removeLabelKey` | `string` | `'shared.chip.remove'` | |
|
|
464
|
+
|
|
465
|
+
Outputs: `toggled: string`, `removed: string` (both emit `value`).
|
|
466
|
+
|
|
467
|
+
```html
|
|
468
|
+
<sol-chip value="urgent" label="Urgent" emoji="🔥" [count]="3" [selected]="urgent()" (toggled)="toggle($event)" />
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
#### `sol-chip-group` — `SolChipGroupComponent` (CVA, `string` or `string[]` when `multiple`)
|
|
472
|
+
| Input | Type | Default | Req |
|
|
473
|
+
|---|---|---|---|
|
|
474
|
+
| `options` | `SolChipOption[]` (`{ value, label, emoji?, disabled?, count? }`) | — | yes |
|
|
475
|
+
| `multiple` | `boolean` | `false` | |
|
|
476
|
+
| `allowDeselect` | `boolean` | `true` | |
|
|
477
|
+
| `disabled` | `boolean` | `false` | |
|
|
478
|
+
| `size` | `'sm' \| 'md'` | `'md'` | |
|
|
479
|
+
| `removable` | `boolean` | `false` | |
|
|
480
|
+
| `ariaLabelKey` | `string` (i18n key) | — | yes |
|
|
481
|
+
| `removeLabelKey` | `string` | `'shared.chip.remove'` | |
|
|
482
|
+
|
|
483
|
+
```html
|
|
484
|
+
<sol-chip-group ariaLabelKey="pages.projects.categories" [options]="categories" [multiple]="true" [(ngModel)]="selected" />
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
#### `sol-view-toggle` — `SolViewToggleComponent`
|
|
488
|
+
Segmented control.
|
|
489
|
+
|
|
490
|
+
| Input | Type | Default | Req |
|
|
491
|
+
|---|---|---|---|
|
|
492
|
+
| `options` | `SolViewToggleOption[]` (`{ value, label, icon?: SolIconName }`) | — | yes |
|
|
493
|
+
| `value` | `string` | — | yes |
|
|
494
|
+
|
|
495
|
+
Outputs: `valueChange: string`.
|
|
496
|
+
|
|
497
|
+
```html
|
|
498
|
+
<sol-view-toggle [options]="[{ value: 'list', label: 'List', icon: 'list' }, { value: 'board', label: 'Board', icon: 'view-columns' }]"
|
|
499
|
+
[value]="view()" (valueChange)="view.set($event)" />
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
#### `sol-date-picker` — `SolDatePickerComponent` (CVA, `Date \| string \| null`; emits ISO `yyyy-mm-dd`)
|
|
503
|
+
Calendar popover with day/month/year views.
|
|
504
|
+
|
|
505
|
+
| Input | Type | Default | Req |
|
|
506
|
+
|---|---|---|---|
|
|
507
|
+
| `value` | `Date \| string \| null` | `null` (assumed) | |
|
|
508
|
+
| `min` | `Date \| string \| null` | `null` (assumed) | |
|
|
509
|
+
| `max` | `Date \| string \| null` | `null` (assumed) | |
|
|
510
|
+
| `placeholder` | `string` | `''` (falls back to `shared.datePicker.placeholder`) | |
|
|
511
|
+
| `disabled` | `boolean` | `false` | |
|
|
512
|
+
| `size` | `'sm' \| 'md'` | `'md'` | |
|
|
513
|
+
|
|
514
|
+
Outputs: `valueChange: string`.
|
|
515
|
+
|
|
516
|
+
```html
|
|
517
|
+
<sol-date-picker min="2026-11-24" max="2026-12-24" formControlName="dueDate" />
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
#### `sol-day-picker` — `SolDayPickerComponent`
|
|
521
|
+
Horizontal strip of bookable days computed by the host.
|
|
522
|
+
|
|
523
|
+
| Input | Type | Default | Req |
|
|
524
|
+
|---|---|---|---|
|
|
525
|
+
| `days` | `DayPickerItem[]` (`{ dateStr, dayName, dayNumber, isToday?, isPast }`) | — | yes |
|
|
526
|
+
| `selectedDate` | `string \| null` | `null` | |
|
|
527
|
+
|
|
528
|
+
Outputs: `dateSelected: string`.
|
|
529
|
+
|
|
530
|
+
```html
|
|
531
|
+
<sol-day-picker [days]="days()" [selectedDate]="date()" (dateSelected)="date.set($event)" />
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
#### `sol-rating-input` — `SolRatingInputComponent` (CVA, `number \| null`, 1–5)
|
|
535
|
+
Interactive radiogroup of stars.
|
|
536
|
+
|
|
537
|
+
| Input | Type | Default | Req |
|
|
538
|
+
|---|---|---|---|
|
|
539
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'lg'` | |
|
|
540
|
+
| `disabled` | `boolean` | `false` | |
|
|
541
|
+
| `readOnly` | `boolean` | `false` | |
|
|
542
|
+
| `error` | `string` | `''` | |
|
|
543
|
+
| `allowClear` | `boolean` | `false` | |
|
|
544
|
+
| `ariaLabelKey` | `string` | `'shared.ratingInput.groupLabel'` | |
|
|
545
|
+
| `optionLabelKey` | `string` | `'shared.ratingInput.option'` | |
|
|
546
|
+
| `clearLabelKey` | `string` | `'shared.ratingInput.clear'` | |
|
|
547
|
+
|
|
548
|
+
Outputs: `ratingChanged: number \| null`.
|
|
549
|
+
|
|
550
|
+
```html
|
|
551
|
+
<sol-rating-input formControlName="rating" [allowClear]="true" (ratingChanged)="save($event)" />
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
#### `sol-file-upload` — `SolFileUploadComponent`
|
|
555
|
+
Drag-and-drop image picker with validation and preview.
|
|
556
|
+
|
|
557
|
+
| Input | Type | Default | Req |
|
|
558
|
+
|---|---|---|---|
|
|
559
|
+
| `accept` | `string` | `'image/jpeg,image/png,image/webp,image/gif'` | |
|
|
560
|
+
| `maxSizeBytes` | `number` | `5 * 1024 * 1024` | |
|
|
561
|
+
| `label` | `string` | `shared.fileUpload.label` («Drag or click to upload») | |
|
|
562
|
+
| `hint` | `string` | `shared.fileUpload.hint` («JPG, PNG, WEBP or GIF · max. 5 MB») | |
|
|
563
|
+
|
|
564
|
+
Outputs: `fileSelected: File`, `previewReady: string` (data URL), `fileError: string`, `fileRemoved: void`.
|
|
565
|
+
|
|
566
|
+
```html
|
|
567
|
+
<sol-file-upload label="Drag your logo here" hint="PNG · max. 200 KB" accept="image/png" [maxSizeBytes]="204800"
|
|
568
|
+
(fileSelected)="upload($event)" (fileError)="error.set($event)" />
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
#### `sol-rich-editor` — `SolRichEditorComponent` (CVA, HTML `string`)
|
|
572
|
+
Rich text editor (headings, lists, alignment, links, tables, images, @mentions, #task links); output HTML is TCPDF-safe.
|
|
573
|
+
|
|
574
|
+
| Input | Type | Default | Req |
|
|
575
|
+
|---|---|---|---|
|
|
576
|
+
| `placeholder` | `string` | `''` | |
|
|
577
|
+
| `minHeight` | `string` | `'12rem'` | |
|
|
578
|
+
| `maxHeight` | `string` | `''` | |
|
|
579
|
+
| `ariaLabel` | `string` | `''` | |
|
|
580
|
+
| `disabled` | `boolean` | `false` | |
|
|
581
|
+
| `imageMaxBytes` | `number` | `5 * 1024 * 1024` | |
|
|
582
|
+
| `imageUpload` | `SolRichImageUploader \| null` (`(file: File) => Promise<string>`) | `null` | |
|
|
583
|
+
| `mentionableUsers` | `MentionUser[]` (`{ id, name }`) | `[]` | |
|
|
584
|
+
| `linkableTasks` | `LinkableTask[]` (`{ key, title }`) | `[]` | |
|
|
585
|
+
|
|
586
|
+
Outputs: `valueChange: string`, `mentionsChange: string[]`, `taskLinksChange: string[]`.
|
|
587
|
+
|
|
588
|
+
```html
|
|
589
|
+
<sol-rich-editor ariaLabel="Description" [imageUpload]="upload" [mentionableUsers]="users" [(ngModel)]="html" />
|
|
590
|
+
```
|
|
591
|
+
```ts
|
|
592
|
+
upload: SolRichImageUploader = (file) => this.api.uploadImage(file); // resolves the public URL
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
---
|
|
596
|
+
|
|
597
|
+
### Feedback & status
|
|
598
|
+
|
|
599
|
+
#### `sol-badge` — `SolBadgeComponent`
|
|
600
|
+
| Input | Type | Default | Req |
|
|
601
|
+
|---|---|---|---|
|
|
602
|
+
| `variant` | `'success' \| 'warning' \| 'danger' \| 'info' \| 'neutral'` | `'neutral'` | |
|
|
603
|
+
| `size` | `'sm' \| 'md'` | `'sm'` | |
|
|
604
|
+
|
|
605
|
+
```html
|
|
606
|
+
<sol-badge variant="success">Active</sol-badge>
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
#### `sol-message-status` — `SolMessageStatusComponent`
|
|
610
|
+
Delivery ticks with an accessible label.
|
|
611
|
+
|
|
612
|
+
| Input | Type | Default | Req |
|
|
613
|
+
|---|---|---|---|
|
|
614
|
+
| `status` | `'pending' \| 'sent' \| 'delivered' \| 'read' \| 'failed'` | — | yes |
|
|
615
|
+
|
|
616
|
+
```html
|
|
617
|
+
<sol-message-status [status]="message.status" />
|
|
88
618
|
```
|
|
89
619
|
|
|
90
|
-
|
|
620
|
+
#### `sol-score-badge` — `SolScoreBadgeComponent`
|
|
621
|
+
| Input | Type | Default | Req |
|
|
622
|
+
|---|---|---|---|
|
|
623
|
+
| `value` | `number \| null` | `null` | |
|
|
624
|
+
| `max` | `number` | `100` | |
|
|
625
|
+
| `thresholds` | `readonly SolScoreThreshold[]` (`{ upTo, tone }`) | `DEFAULT_SCORE_THRESHOLDS` (≤50 danger, ≤80 warning, else success) | |
|
|
626
|
+
| `pending` | `boolean` | `false` | |
|
|
91
627
|
|
|
92
|
-
|
|
628
|
+
```html
|
|
629
|
+
<sol-score-badge [value]="lead.score" />
|
|
630
|
+
```
|
|
93
631
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
`
|
|
632
|
+
#### `sol-trend` — `SolTrendComponent`
|
|
633
|
+
| Input | Type | Default | Req |
|
|
634
|
+
|---|---|---|---|
|
|
635
|
+
| `current` | `number` | — | yes |
|
|
636
|
+
| `previous` | `number \| null` | `null` | |
|
|
637
|
+
| `invert` | `boolean` | `false` | |
|
|
638
|
+
| `format` | `(delta: number) => string` | `defaultTrendFormat` | |
|
|
101
639
|
|
|
102
|
-
|
|
640
|
+
```html
|
|
641
|
+
<sol-trend [current]="4" [previous]="6" [invert]="true" /> <!-- lower churn is good -->
|
|
642
|
+
```
|
|
103
643
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
cd dist/solercia/ui && npm pack
|
|
107
|
-
```
|
|
644
|
+
#### `sol-avatar` — `SolAvatarComponent`
|
|
645
|
+
Image or initials on a deterministic palette color.
|
|
108
646
|
|
|
109
|
-
|
|
110
|
-
|
|
647
|
+
| Input | Type | Default | Req |
|
|
648
|
+
|---|---|---|---|
|
|
649
|
+
| `name` | `string \| null \| undefined` | — | yes |
|
|
650
|
+
| `imageUrl` | `string \| null` | `null` | |
|
|
651
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
111
652
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
```
|
|
653
|
+
```html
|
|
654
|
+
<sol-avatar [name]="user.fullName" [imageUrl]="user.photo" size="lg" />
|
|
655
|
+
```
|
|
116
656
|
|
|
117
|
-
|
|
118
|
-
|
|
657
|
+
#### `sol-star-rating` — `SolStarRatingComponent`
|
|
658
|
+
Read-only stars (`role="img"`).
|
|
119
659
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
660
|
+
| Input | Type | Default | Req |
|
|
661
|
+
|---|---|---|---|
|
|
662
|
+
| `value` | `number \| null` | `null` | |
|
|
663
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'sm'` | |
|
|
664
|
+
| `showValue` | `boolean` | `false` | |
|
|
125
665
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
`openspec/07-e9-extraccion-solercia-ui/state.yaml`). Antes de empujar el tag, el fundador
|
|
130
|
-
debe:
|
|
666
|
+
```html
|
|
667
|
+
<sol-star-rating [value]="4.5" [showValue]="true" />
|
|
668
|
+
```
|
|
131
669
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
- **(c)** Si por cualquier razón el CI no queda listo a tiempo, la alternativa es repetir el
|
|
138
|
-
mismo publish MANUAL que se usó para `0.1.1`/`0.1.0` (`cd dist/solercia/ui && npm publish
|
|
139
|
-
--access public`, autenticado como usuario con permiso en la organización `solercia`) —
|
|
140
|
-
documentarlo así en el commit de publicación si se toma esta vía, para no perder el
|
|
141
|
-
rastro de qué versiones pasaron por CI y cuáles no.
|
|
670
|
+
#### `sol-spinner` — `SolSpinnerComponent`
|
|
671
|
+
| Input | Type | Default | Req |
|
|
672
|
+
|---|---|---|---|
|
|
673
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
674
|
+
| `color` | `string` (CSS color) | `''` (theme primary) | |
|
|
142
675
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
676
|
+
```html
|
|
677
|
+
<sol-spinner size="lg" />
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
#### `sol-skeleton` — `SolSkeletonComponent`
|
|
681
|
+
| Input | Type | Default | Req |
|
|
682
|
+
|---|---|---|---|
|
|
683
|
+
| `variant` | `'text' \| 'title' \| 'stat' \| 'card' \| 'row' \| 'circle' \| 'rounded' \| 'square'` | `'rounded'` | |
|
|
684
|
+
| `width` | `string` | `''` | |
|
|
685
|
+
| `height` | `string` | `''` | |
|
|
686
|
+
| `aspectRatio` | `string` | `''` | |
|
|
687
|
+
| `count` | `number` (`numberAttribute`) | `1` | |
|
|
688
|
+
|
|
689
|
+
```html
|
|
690
|
+
<sol-skeleton variant="text" count="3" />
|
|
691
|
+
```
|
|
146
692
|
|
|
147
|
-
|
|
693
|
+
#### `sol-progress-bar` — `SolProgressBarComponent`
|
|
694
|
+
| Input | Type | Default | Req |
|
|
695
|
+
|---|---|---|---|
|
|
696
|
+
| `mode` | `'continuous' \| 'segmented'` | `'continuous'` | |
|
|
697
|
+
| `value` | `number` | `0` | |
|
|
698
|
+
| `max` | `number` | `100` | |
|
|
699
|
+
| `steps` | `number` | `0` | |
|
|
700
|
+
| `current` | `number` | `0` | |
|
|
701
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
702
|
+
| `variant` | `'primary' \| 'success' \| 'warning' \| 'danger'` | `'primary'` | |
|
|
703
|
+
| `showLabel` | `boolean` | `false` | |
|
|
704
|
+
| `label` | `string` | `''` | |
|
|
705
|
+
| `ariaLabel` | `string` | `''` | |
|
|
148
706
|
|
|
149
|
-
|
|
707
|
+
```html
|
|
708
|
+
<sol-progress-bar [value]="uploaded()" variant="success" [showLabel]="true" label="Upload" />
|
|
709
|
+
<sol-progress-bar mode="segmented" [steps]="5" [current]="2" />
|
|
710
|
+
```
|
|
150
711
|
|
|
151
|
-
|
|
712
|
+
#### `sol-empty-state` — `SolEmptyStateComponent`
|
|
713
|
+
| Input | Type | Default | Req |
|
|
714
|
+
|---|---|---|---|
|
|
715
|
+
| `icon` | `SolIconName` | `'list'` | |
|
|
716
|
+
| `titleKey` | `string` (i18n key) | — | yes |
|
|
717
|
+
| `descriptionKey` | `string` (i18n key) | `''` | |
|
|
152
718
|
|
|
153
|
-
|
|
719
|
+
Content: call-to-action (`<ng-content>`).
|
|
720
|
+
|
|
721
|
+
```html
|
|
722
|
+
<sol-empty-state icon="folder-open" titleKey="pages.projects.empty.title" descriptionKey="pages.projects.empty.description">
|
|
723
|
+
<sol-button (clicked)="create()">Create project</sol-button>
|
|
724
|
+
</sol-empty-state>
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
#### `sol-tooltip` — `SolTooltipComponent`
|
|
728
|
+
| Input | Type | Default | Req |
|
|
729
|
+
|---|---|---|---|
|
|
730
|
+
| `text` | `string` | — | yes |
|
|
731
|
+
|
|
732
|
+
```html
|
|
733
|
+
<sol-tooltip text="Edit the project"><sol-icon-button icon="edit" ariaLabel="Edit" /></sol-tooltip>
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
#### `sol-notification-panel` — `SolNotificationPanelComponent`
|
|
737
|
+
Inbox with loading / error / empty / content states, relative times and unread count.
|
|
738
|
+
|
|
739
|
+
| Input | Type | Default | Req |
|
|
740
|
+
|---|---|---|---|
|
|
741
|
+
| `items` | `readonly SolNotificationItem[] \| null \| undefined` (`{ id, title, body?, timestamp?, read?, typeLabel?, tone?, data? }`) | `[]` | |
|
|
742
|
+
| `loading` | `boolean` | `false` | |
|
|
743
|
+
| `error` | `boolean` | `false` | |
|
|
744
|
+
| `errorMessage` | `string` | `''` | |
|
|
745
|
+
| `emptyTitleKey` | `string` | `'shared.notificationPanel.emptyTitle'` | |
|
|
746
|
+
| `emptyDescriptionKey` | `string` | `'shared.notificationPanel.emptyDescription'` | |
|
|
747
|
+
|
|
748
|
+
Outputs: `itemSelected: T`, `markedRead: T`, `markedAllRead: void`, `retryRequested: void`, `closed: void`.
|
|
749
|
+
|
|
750
|
+
```html
|
|
751
|
+
<sol-notification-panel [items]="notifications()" [loading]="loading()" [error]="failed()"
|
|
752
|
+
(itemSelected)="open($event)" (markedRead)="markRead($event)" (markedAllRead)="markAll()" (retryRequested)="reload()" (closed)="close()" />
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
---
|
|
756
|
+
|
|
757
|
+
### Overlays
|
|
758
|
+
|
|
759
|
+
#### `sol-modal` — `SolModalComponent`
|
|
760
|
+
Host-controlled modal dialog; Escape closes, focus trapped and restored, body scroll locked.
|
|
761
|
+
|
|
762
|
+
| Input | Type | Default | Req |
|
|
763
|
+
|---|---|---|---|
|
|
764
|
+
| `open` | `boolean` | `false` | |
|
|
765
|
+
| `title` | `string` | `''` | |
|
|
766
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl'` | `'md'` | |
|
|
767
|
+
| `closeable` | `boolean` | `true` | |
|
|
768
|
+
| `closeOnBackdrop` | `boolean` | `false` | |
|
|
769
|
+
| `ariaLabel` | `string` | `''` (used only when there is no `title`) | |
|
|
770
|
+
|
|
771
|
+
Outputs: `closed: void`. Content: body (single slot; place footer buttons inside). Accessibility: the panel
|
|
772
|
+
is `role="dialog"` + `aria-modal="true"`, labelled by the title (or `ariaLabel`); focus moves into it on
|
|
773
|
+
open, Tab/Shift+Tab stay inside, Escape closes when `closeable`, focus returns to the previously focused
|
|
774
|
+
element and the page scroll is locked while open. The close button reads `shared.modal.close`.
|
|
775
|
+
|
|
776
|
+
```html
|
|
777
|
+
<sol-modal [open]="open()" title="Invite a teammate" (closed)="open.set(false)">
|
|
778
|
+
<sol-input label="Email" [(ngModel)]="email" />
|
|
779
|
+
<sol-button (clicked)="send()">Send invite</sol-button>
|
|
780
|
+
</sol-modal>
|
|
781
|
+
```
|
|
782
|
+
|
|
783
|
+
#### `sol-drawer` — `SolDrawerComponent`
|
|
784
|
+
| Input | Type | Default | Req |
|
|
785
|
+
|---|---|---|---|
|
|
786
|
+
| `open` | `boolean` | `false` | |
|
|
787
|
+
| `title` | `string` | `''` | |
|
|
788
|
+
| `side` | `'start' \| 'end'` | `'end'` | |
|
|
789
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | |
|
|
790
|
+
| `variant` | `'panel' \| 'sheet'` | `'panel'` | |
|
|
791
|
+
| `closeable` | `boolean` | `true` | |
|
|
792
|
+
| `closeOnBackdrop` | `boolean` | `true` | |
|
|
793
|
+
| `ariaLabel` | `string` | `''` (used only when there is no `title`) | |
|
|
794
|
+
|
|
795
|
+
Outputs: `closed: void`. Content: body + `[drawerFooter]` slot. Same dialog accessibility as `sol-modal`.
|
|
796
|
+
|
|
797
|
+
```html
|
|
798
|
+
<sol-drawer [open]="filtersOpen()" title="Filters" (closed)="filtersOpen.set(false)">
|
|
799
|
+
…
|
|
800
|
+
<div drawerFooter><sol-button (clicked)="apply()">Apply</sol-button></div>
|
|
801
|
+
</sol-drawer>
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
#### `sol-confirm-dialog` — `SolConfirmDialogComponent`
|
|
805
|
+
| Input | Type | Default | Req |
|
|
806
|
+
|---|---|---|---|
|
|
807
|
+
| `open` | `boolean` | `false` | |
|
|
808
|
+
| `title` | `string` | `shared.confirmDialog.title` («Are you sure?») | |
|
|
809
|
+
| `message` | `string` | `''` | |
|
|
810
|
+
| `confirmLabel` | `string` | `shared.confirmDialog.confirm` («Confirm») | |
|
|
811
|
+
| `cancelLabel` | `string` | `shared.confirmDialog.cancel` («Cancel») | |
|
|
812
|
+
| `variant` | `'danger' \| 'warning' \| 'info'` | `'danger'` | |
|
|
813
|
+
|
|
814
|
+
Outputs: `confirm: void`, `cancel: void`. Accessibility: the panel is `role="alertdialog"` +
|
|
815
|
+
`aria-modal="true"`, labelled by the title and described by the message; focus starts on Cancel (the
|
|
816
|
+
least destructive action), stays inside, returns to the trigger on close, and the page scroll is locked.
|
|
817
|
+
|
|
818
|
+
```html
|
|
819
|
+
<sol-confirm-dialog [open]="confirming()" title="Delete this project?" confirmLabel="Delete" cancelLabel="Cancel"
|
|
820
|
+
(confirm)="remove()" (cancel)="confirming.set(false)" />
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
---
|
|
824
|
+
|
|
825
|
+
### Navigation
|
|
826
|
+
|
|
827
|
+
#### `sol-tabs` — `SolTabsComponent`
|
|
828
|
+
Tab list only; the host renders the active panel.
|
|
829
|
+
|
|
830
|
+
| Input | Type | Default | Req |
|
|
831
|
+
|---|---|---|---|
|
|
832
|
+
| `tabs` | `SolTabItem[]` (`{ id, label, icon? }`) | — | yes |
|
|
833
|
+
| `activeTab` | `string` | `''` | |
|
|
834
|
+
|
|
835
|
+
Outputs: `tabChange: string`.
|
|
836
|
+
|
|
837
|
+
```html
|
|
838
|
+
<sol-tabs [tabs]="tabs" [activeTab]="tab()" (tabChange)="tab.set($event)" />
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
#### `sol-pagination` — `SolPaginationComponent`
|
|
842
|
+
| Input | Type | Default | Req |
|
|
843
|
+
|---|---|---|---|
|
|
844
|
+
| `totalItems` | `number` | `0` | |
|
|
845
|
+
| `pageSize` | `number` | `10` | |
|
|
846
|
+
| `currentPage` | `number` | `1` | |
|
|
847
|
+
| `pageSizeOptions` | `number[]` | `[10, 25, 50]` | |
|
|
848
|
+
|
|
849
|
+
Outputs: `pageChanged: number`, `pageSizeChanged: number`.
|
|
850
|
+
|
|
851
|
+
```html
|
|
852
|
+
<sol-pagination [totalItems]="total()" [pageSize]="size()" [currentPage]="page()" (pageChanged)="page.set($event)" (pageSizeChanged)="size.set($event)" />
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
#### `sol-page-header` — `SolPageHeaderComponent`
|
|
856
|
+
| Input | Type | Default | Req |
|
|
857
|
+
|---|---|---|---|
|
|
858
|
+
| `title` | `string` | — | yes |
|
|
859
|
+
| `subtitle` | `string` | `''` | |
|
|
860
|
+
|
|
861
|
+
Content: actions.
|
|
862
|
+
|
|
863
|
+
```html
|
|
864
|
+
<sol-page-header title="Projects" subtitle="Manage your portfolio"><sol-button>New project</sol-button></sol-page-header>
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
#### `sol-stepper` — `SolStepperComponent`
|
|
868
|
+
| Input | Type | Default | Req |
|
|
869
|
+
|---|---|---|---|
|
|
870
|
+
| `steps` | `SolStepperStep[]` (`{ id, labelKey, descriptionKey?, error? }`) | — | yes |
|
|
871
|
+
| `activeIndex` | `number` | `0` | |
|
|
872
|
+
| `furthestIndex` | `number \| null` | `null` | |
|
|
873
|
+
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | |
|
|
874
|
+
| `interactive` | `boolean` | `false` | |
|
|
875
|
+
| `navigation` | `'linear' \| 'free'` | `'linear'` | |
|
|
876
|
+
| `ariaLabelKey` | `string` | `'shared.stepper.aria'` | |
|
|
877
|
+
|
|
878
|
+
Outputs: `stepSelected: number`.
|
|
879
|
+
|
|
880
|
+
```html
|
|
881
|
+
<sol-stepper [steps]="steps" [activeIndex]="step()" [interactive]="true" (stepSelected)="step.set($event)" />
|
|
882
|
+
```
|
|
883
|
+
|
|
884
|
+
#### `sol-wizard` — `SolWizardComponent` + `[solWizardStep]` — `SolWizardStepDirective`
|
|
885
|
+
Wizard = segmented progress bar + stepper pills + one panel per `*solWizardStep` + Back/Next/Finish footer.
|
|
886
|
+
|
|
887
|
+
| Input | Type | Default | Req |
|
|
888
|
+
|---|---|---|---|
|
|
889
|
+
| `steps` | `SolWizardStep[]` (`{ id, label?, labelKey?, icon? }`) | — | yes |
|
|
890
|
+
| `current` | `number` (`model`, use `[(current)]`) | `0` | |
|
|
891
|
+
| `showProgressBar` | `boolean` | `true` | |
|
|
892
|
+
| `hidePreviousOnFirst` | `boolean` | `true` | |
|
|
893
|
+
| `canAdvance` | `boolean \| ((index: number) => boolean)` | `true` | |
|
|
894
|
+
| `previousLabel` / `nextLabel` / `finishLabel` | `string` | `''` (library defaults; set explicitly for English) | |
|
|
895
|
+
|
|
896
|
+
Outputs: `next: void`, `previous: void`, `stepChange: number`, `finish: void`, `currentChange: number`. The directive has no inputs (structural: `*solWizardStep`).
|
|
897
|
+
|
|
898
|
+
```html
|
|
899
|
+
<sol-wizard [steps]="steps" [(current)]="current" [canAdvance]="canAdvance" nextLabel="Next" previousLabel="Back" finishLabel="Create" (finish)="save()">
|
|
900
|
+
<ng-container *solWizardStep><sol-input label="Name" [(ngModel)]="name" /></ng-container>
|
|
901
|
+
<ng-container *solWizardStep>Summary…</ng-container>
|
|
902
|
+
</sol-wizard>
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
#### `sol-scope-switcher` — `SolScopeSwitcherComponent`
|
|
906
|
+
Menu to switch the active organization / workspace / tenant.
|
|
907
|
+
|
|
908
|
+
| Input | Type | Default | Req |
|
|
909
|
+
|---|---|---|---|
|
|
910
|
+
| `scopes` | `readonly SolScope[]` (`{ id, label, sublabel?, icon?, imageUrl?, data? }`) | `[]` | |
|
|
911
|
+
| `activeScopeId` | `string \| null \| undefined` | `null` | |
|
|
912
|
+
| `status` | `'idle' \| 'loading' \| 'error'` | `'idle'` | |
|
|
913
|
+
| `disabled` | `boolean` | `false` | |
|
|
914
|
+
| `align` | `'start' \| 'end'` | `'end'` | |
|
|
915
|
+
| `errorMessage` / `emptyMessage` / `loadingMessage` | `string` | `''` (i18n defaults) | |
|
|
916
|
+
| `triggerAriaLabel` / `panelAriaLabel` | `string` | `''` (i18n defaults) | |
|
|
917
|
+
|
|
918
|
+
Outputs: `scopeSelected: SolScope`, `openChange: boolean`.
|
|
919
|
+
|
|
920
|
+
```html
|
|
921
|
+
<sol-scope-switcher [scopes]="companies()" [activeScopeId]="activeId()" [status]="status()" (scopeSelected)="switchTo($event)" />
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
#### `sol-tree` — `SolTreeComponent` + `[solTreeNodeDef]` — `SolTreeNodeDefDirective`
|
|
925
|
+
Accessible tree (role `tree`), keyboard navigation, max depth 5.
|
|
926
|
+
|
|
927
|
+
| Input | Type | Default | Req |
|
|
928
|
+
|---|---|---|---|
|
|
929
|
+
| `nodes` | `readonly SolTreeNode[]` (`{ id, label, children?, data? }`) | — | yes |
|
|
930
|
+
| `expandedIds` | `readonly string[] \| null` (`model`, `[(expandedIds)]`) | `null` | |
|
|
931
|
+
| `defaultExpandedDepth` | `number` | `1` | |
|
|
932
|
+
| `maxDepth` | `number` | `SOL_TREE_MAX_DEPTH` (5) | |
|
|
933
|
+
| `indent` | `number` (px) | `16` | |
|
|
934
|
+
| `ariaLabel` | `string` | `''` | |
|
|
935
|
+
|
|
936
|
+
Outputs: `nodeSelected: SolTreeNode`, `nodeToggled: SolTreeToggleEvent` (`{ node, expanded, expandedIds }`), `expandedIdsChange`.
|
|
937
|
+
Template context of `solTreeNodeDef`: `$implicit`/`node`, `depth`, `expanded`, `hasChildren` (its `data` is typed `unknown`).
|
|
938
|
+
|
|
939
|
+
```html
|
|
940
|
+
<sol-tree [nodes]="tree()" [(expandedIds)]="expanded" (nodeSelected)="open($event)">
|
|
941
|
+
<ng-template solTreeNodeDef let-node let-depth="depth"><span>{{ node.label }}</span></ng-template>
|
|
942
|
+
</sol-tree>
|
|
943
|
+
```
|
|
944
|
+
|
|
945
|
+
---
|
|
946
|
+
|
|
947
|
+
### Layout & motion
|
|
948
|
+
|
|
949
|
+
#### `sol-card` — `SolCardComponent`
|
|
950
|
+
| Input | Type | Default | Req |
|
|
951
|
+
|---|---|---|---|
|
|
952
|
+
| `padding` | `boolean` | `true` | |
|
|
953
|
+
| `hoverable` | `boolean` | `false` | |
|
|
954
|
+
|
|
955
|
+
```html
|
|
956
|
+
<sol-card [hoverable]="true">…</sol-card>
|
|
957
|
+
```
|
|
958
|
+
|
|
959
|
+
#### `[solReveal]` — `SolRevealDirective`
|
|
960
|
+
Entrance animation from the theme motion tokens; respects reduced motion.
|
|
961
|
+
|
|
962
|
+
| Input | Type | Default | Req |
|
|
963
|
+
|---|---|---|---|
|
|
964
|
+
| `solRevealIndex` | `number` (stagger index) | `0` | |
|
|
965
|
+
| `solRevealReplay` | `unknown` (change to replay) | `undefined` | |
|
|
966
|
+
|
|
967
|
+
```html
|
|
968
|
+
@for (item of items(); track item.id; let i = $index) {
|
|
969
|
+
<sol-card solReveal [solRevealIndex]="i" [solRevealReplay]="filter()">{{ item.name }}</sol-card>
|
|
970
|
+
}
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
---
|
|
974
|
+
|
|
975
|
+
### Data
|
|
976
|
+
|
|
977
|
+
#### `sol-data-table` — `SolDataTableComponent`
|
|
978
|
+
Sorting, per-column filters, global search, pagination, edit/delete actions, row reveal and a collapsed layout below `collapseWidth`.
|
|
979
|
+
|
|
980
|
+
| Input | Type | Default | Req |
|
|
981
|
+
|---|---|---|---|
|
|
982
|
+
| `data` | `SolDataTableRow[]` (`Record<string, unknown>`) | `[]` | |
|
|
983
|
+
| `columns` | `DataTableColumn[]` (`{ key, label, sortable?, width?, badge?, filter?: 'text' \| 'select', cellTemplate? }`) | `[]` | |
|
|
984
|
+
| `loading` | `boolean` | `false` | |
|
|
985
|
+
| `searchPlaceholder` | `string` | `shared.table.searchPlaceholder` («Search...») | |
|
|
986
|
+
| `emptyMessage` | `string` | `shared.table.empty` («No data available») | |
|
|
987
|
+
| `paginated` | `boolean` | `true` | |
|
|
988
|
+
| `showToolbar` | `boolean` | `true` | |
|
|
989
|
+
| `filterPosition` | `'left' \| 'right'` | `'left'` | |
|
|
990
|
+
| `showActions` / `showEditAction` / `showDeleteAction` | `boolean` | `true` | |
|
|
991
|
+
| `trackByKey` | `string` | `'id'` | |
|
|
992
|
+
| `actionsLabel` | `string` | `shared.table.actions` («Actions») | |
|
|
993
|
+
| `actionsPosition` | `'start' \| 'end'` | `'end'` | |
|
|
994
|
+
| `toggleDetailsLabel` | `string` | `shared.table.toggleDetails` («Show or hide the row details») | |
|
|
995
|
+
| `rowReveal` | `boolean` | `true` | |
|
|
996
|
+
| `collapseWidth` | `number` (px) | `767` | |
|
|
997
|
+
| `variant` | `'clean' \| 'zebra' \| 'bordered' \| 'emphasis-header' \| 'banded' \| null` | `null` (theme) | |
|
|
998
|
+
|
|
999
|
+
Outputs: `editClicked: SolDataTableRow`, `deleteClicked: SolDataTableRow`.
|
|
1000
|
+
Content: `[tableFilters]` and `[tableActions]` slots; `<ng-template #rowActions let-row>` replaces the action buttons.
|
|
1001
|
+
|
|
1002
|
+
```html
|
|
1003
|
+
<sol-data-table [data]="people()" [columns]="columns" searchPlaceholder="Search…" actionsLabel="Actions"
|
|
1004
|
+
(editClicked)="edit($event)" (deleteClicked)="remove($event)">
|
|
1005
|
+
<sol-button tableActions size="sm" (clicked)="create()">New</sol-button>
|
|
1006
|
+
</sol-data-table>
|
|
1007
|
+
```
|
|
1008
|
+
```ts
|
|
1009
|
+
columns: DataTableColumn[] = [
|
|
1010
|
+
{ key: 'name', label: 'Name', sortable: true, filter: 'text' },
|
|
1011
|
+
{ key: 'status', label: 'Status', badge: true, filter: 'select' },
|
|
1012
|
+
];
|
|
1013
|
+
```
|
|
1014
|
+
|
|
1015
|
+
#### `sol-virtual-scroll` — `SolVirtualScrollComponent`
|
|
1016
|
+
Windowed list with variable heights; chat-oriented (follows output, loads history at top). Requires an `<ng-template>` child (context `$implicit`, `index`) and a sized container.
|
|
1017
|
+
|
|
1018
|
+
| Input | Type | Default | Req |
|
|
1019
|
+
|---|---|---|---|
|
|
1020
|
+
| `items` | `readonly T[]` | — | yes |
|
|
1021
|
+
| `itemKey` | `(item: T, index: number) => string \| number` | `(_, i) => i` | |
|
|
1022
|
+
| `estimatedItemHeight` | `number` | `56` | |
|
|
1023
|
+
| `bufferPx` | `number` | `240` | |
|
|
1024
|
+
| `followOutput` | `boolean` | `true` | |
|
|
1025
|
+
| `nearTopThreshold` | `number` | `120` | |
|
|
1026
|
+
|
|
1027
|
+
Outputs: `nearTop: void`, `atBottomChange: boolean`.
|
|
1028
|
+
|
|
1029
|
+
```html
|
|
1030
|
+
<sol-virtual-scroll [items]="messages()" [itemKey]="byId" [estimatedItemHeight]="64" (nearTop)="loadOlder()">
|
|
1031
|
+
<ng-template let-msg let-index="index"><app-message [message]="msg" /></ng-template>
|
|
1032
|
+
</sol-virtual-scroll>
|
|
1033
|
+
```
|
|
1034
|
+
|
|
1035
|
+
#### `sol-chart` — `SolChartComponent`
|
|
1036
|
+
Chart.js wrapper themed from `--sol-*`; re-renders on light/dark.
|
|
1037
|
+
|
|
1038
|
+
| Input | Type | Default | Req |
|
|
1039
|
+
|---|---|---|---|
|
|
1040
|
+
| `type` | `'line' \| 'bar' \| 'doughnut' \| 'sparkline'` | — | yes |
|
|
1041
|
+
| `data` | `SolChartData` (`{ labels: string[]; series: { label, data: number[], color? }[] }`) | — | yes |
|
|
1042
|
+
| `options` | `SolChartOptions` (`{ legend?, yMax? }`) | `{}` | |
|
|
1043
|
+
| `ariaLabelKey` | `string` (i18n key) | — | yes |
|
|
1044
|
+
| `height` | `string` | `'260px'` | |
|
|
1045
|
+
|
|
1046
|
+
```html
|
|
1047
|
+
<sol-chart type="line" ariaLabelKey="pages.dashboard.revenue" [data]="{ labels: months, series: [{ label: '2026', data: revenue }] }" />
|
|
1048
|
+
```
|
|
1049
|
+
|
|
1050
|
+
#### `sol-timeline` — `SolTimelineComponent`
|
|
1051
|
+
Gantt-like hierarchy on a month axis; undated nodes listed apart.
|
|
1052
|
+
|
|
1053
|
+
| Input | Type | Default | Req |
|
|
1054
|
+
|---|---|---|---|
|
|
1055
|
+
| `nodes` | `TimelineNode[]` (`{ id, label?, labelKey?, start?, end?, status?, children?, collapsed? }`) | — | yes |
|
|
1056
|
+
| `statusToken` | `SolTimelineStatusResolver \| null` (`(status) => cssColor`) | `null` (`defaultStatusToken`: done/completed/closed, active/in progress, blocked, at risk, pending) | |
|
|
1057
|
+
| `legend` | `TimelineLegendItem[]` (`{ status, labelKey }`) | `[]` | |
|
|
1058
|
+
| `collapsible` | `boolean` | `true` | |
|
|
1059
|
+
|
|
1060
|
+
Outputs: `nodeToggled: { id, collapsed }`, `nodeClicked: TimelineNode`.
|
|
1061
|
+
|
|
1062
|
+
```html
|
|
1063
|
+
<sol-timeline [nodes]="plan()" [legend]="[{ status: 'done', labelKey: 'pages.plan.done' }]" (nodeClicked)="open($event)" />
|
|
1064
|
+
```
|
|
1065
|
+
|
|
1066
|
+
---
|
|
1067
|
+
|
|
1068
|
+
### Planning
|
|
1069
|
+
|
|
1070
|
+
#### `sol-kanban-board` — `SolKanbanBoardComponent`
|
|
1071
|
+
Columns with CDK drag and drop (mouse, touch, keyboard “Move to…”), optimistic mirror and `rollback()`.
|
|
1072
|
+
|
|
1073
|
+
| Input | Type | Default | Req |
|
|
1074
|
+
|---|---|---|---|
|
|
1075
|
+
| `columns` | `KanbanColumn<T>[]` (`{ id, title?, titleKey?, items: T[], accent?, droppable?, terminalAnchor? }`) | — | yes |
|
|
1076
|
+
| `cardTemplate` | `TemplateRef<{ $implicit: T; item: T }>` | — | yes |
|
|
1077
|
+
| `headerTemplate` | `TemplateRef<{ $implicit: KanbanColumn }> \| null` | `null` | |
|
|
1078
|
+
| `anchorTemplate` | `TemplateRef<{ $implicit: KanbanColumn }> \| null` (shown when `terminalAnchor`) | `null` | |
|
|
1079
|
+
| `emptyTemplate` | `TemplateRef<unknown> \| null` | `null` | |
|
|
1080
|
+
|
|
1081
|
+
Outputs: `itemMoved: KanbanItemMoved<T>` (`{ item, fromColumnId, toColumnId, previousIndex, currentIndex }`), `columnAction: KanbanColumnAction`, `addRequested: string` (column id), `externalItemDropped: { toColumnId, data }`. Public method: `rollback()`.
|
|
1082
|
+
|
|
1083
|
+
```html
|
|
1084
|
+
<ng-template #card let-task><p>{{ task.title }}</p></ng-template>
|
|
1085
|
+
<sol-kanban-board #board [columns]="columns()" [cardTemplate]="card" (itemMoved)="persist($event, board)" (addRequested)="create($event)" />
|
|
1086
|
+
```
|
|
1087
|
+
```ts
|
|
1088
|
+
async persist(move: KanbanItemMoved<Task>, board: SolKanbanBoardComponent<Task>) {
|
|
1089
|
+
try { await this.api.move(move); } catch { board.rollback(); }
|
|
1090
|
+
}
|
|
1091
|
+
```
|
|
1092
|
+
|
|
1093
|
+
#### `sol-kanban-column` — `SolKanbanColumnComponent`
|
|
1094
|
+
One column (normally rendered by the board).
|
|
1095
|
+
|
|
1096
|
+
| Input | Type | Default | Req |
|
|
1097
|
+
|---|---|---|---|
|
|
1098
|
+
| `column` | `KanbanColumn<T>` | — | yes |
|
|
1099
|
+
| `cardTemplate` | `TemplateRef<KanbanCardTemplateContext<T>>` | — | yes |
|
|
1100
|
+
| `headerTemplate` / `anchorTemplate` / `emptyTemplate` | as board | `null` | |
|
|
1101
|
+
| `allColumns` | `KanbanColumn<T>[] \| null` (targets for keyboard moves) | `null` | |
|
|
1102
|
+
|
|
1103
|
+
Outputs: `action: KanbanColumnAction`, `dragActiveChanged: boolean`, `itemDropped: KanbanRawDropEvent`.
|
|
1104
|
+
|
|
1105
|
+
```html
|
|
1106
|
+
<sol-kanban-column [column]="{ id: 'todo', title: 'To do', items: tasks, droppable: false }" [cardTemplate]="card" />
|
|
1107
|
+
```
|
|
1108
|
+
|
|
1109
|
+
#### `sol-kanban-card` — `SolKanbanCardComponent`
|
|
1110
|
+
| Input | Type | Default | Req |
|
|
1111
|
+
|---|---|---|---|
|
|
1112
|
+
| `item` | `T extends KanbanItem` (`{ id }`) | — | yes |
|
|
1113
|
+
| `cardTemplate` | `TemplateRef<KanbanCardTemplateContext<T>>` | — | yes |
|
|
1114
|
+
|
|
1115
|
+
Outputs: `dragActiveChanged: boolean`.
|
|
1116
|
+
|
|
1117
|
+
```html
|
|
1118
|
+
<sol-kanban-card [item]="task" [cardTemplate]="card" />
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
#### `sol-kanban-drag-source` — `SolKanbanDragSourceComponent`
|
|
1122
|
+
External list whose items can be dropped into a board’s columns (board emits `externalItemDropped`).
|
|
1123
|
+
|
|
1124
|
+
| Input | Type | Default | Req |
|
|
1125
|
+
|---|---|---|---|
|
|
1126
|
+
| `items` | `T[]` | — | yes |
|
|
1127
|
+
| `itemTemplate` | `TemplateRef<{ $implicit: T }>` | — | yes |
|
|
1128
|
+
| `connectedTo` | `string[]` (column ids) | `[]` | |
|
|
1129
|
+
| `disabledIds` | `ReadonlySet<string \| number>` | `new Set()` | |
|
|
1130
|
+
| `listId` | `string` | `'sol-kanban-drag-source'` | |
|
|
1131
|
+
|
|
1132
|
+
```html
|
|
1133
|
+
<sol-kanban-drag-source [items]="backlog()" [connectedTo]="['todo', 'doing']" [itemTemplate]="card" />
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
#### `sol-calendar` — `SolCalendarComponent`
|
|
1137
|
+
Week/day agenda = header + grid + optional legend.
|
|
1138
|
+
|
|
1139
|
+
| Input | Type | Default | Req |
|
|
1140
|
+
|---|---|---|---|
|
|
1141
|
+
| `events` | `SolCalendarEvent[]` (`{ id, start, end, title, color?, data? }`) | — | yes |
|
|
1142
|
+
| `view` | `'week' \| 'day'` | — | yes |
|
|
1143
|
+
| `currentDate` | `Date` | — | yes |
|
|
1144
|
+
| `eventTemplate` | `TemplateRef<{ $implicit: T; event: T }> \| null` | `null` | |
|
|
1145
|
+
| `legend` | `SolCalendarLegendItem[]` (`{ color, labelKey }`) `\| null` | `null` | |
|
|
1146
|
+
|
|
1147
|
+
Outputs: `eventClicked: T`, `slotClicked: { date: Date; time: string }`. `color` accepts hex, functional colors or `var(--sol-*)`.
|
|
1148
|
+
|
|
1149
|
+
```html
|
|
1150
|
+
<sol-calendar [events]="appointments()" view="week" [currentDate]="today" (slotClicked)="book($event)" (eventClicked)="open($event)" />
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1153
|
+
#### `sol-calendar-header` — `SolCalendarHeaderComponent`
|
|
1154
|
+
| Input | Type | Default | Req |
|
|
1155
|
+
|---|---|---|---|
|
|
1156
|
+
| `currentDate` | `Date` | — | yes |
|
|
1157
|
+
| `view` | `'week' \| 'day'` | — | yes |
|
|
1158
|
+
|
|
1159
|
+
Outputs: `dateChange: Date`, `viewChange: SolCalendarView`.
|
|
1160
|
+
|
|
1161
|
+
```html
|
|
1162
|
+
<sol-calendar-header [currentDate]="date()" [view]="view()" (dateChange)="date.set($event)" (viewChange)="view.set($event)" />
|
|
1163
|
+
```
|
|
1164
|
+
|
|
1165
|
+
#### `sol-calendar-grid` — `SolCalendarGridComponent`
|
|
1166
|
+
Same inputs/outputs as `sol-calendar` minus `legend`.
|
|
1167
|
+
|
|
1168
|
+
```html
|
|
1169
|
+
<sol-calendar-grid [events]="events()" view="day" [currentDate]="date()" [eventTemplate]="eventTpl" />
|
|
1170
|
+
```
|
|
1171
|
+
|
|
1172
|
+
#### `sol-flow-canvas` — `SolFlowCanvasComponent`
|
|
1173
|
+
Pan/zoom node graph: drag nodes, connect ports, keyboard moves with live announcements, “Arrange” auto-layout (dagre, lazy).
|
|
1174
|
+
|
|
1175
|
+
| Input | Type | Default | Req |
|
|
1176
|
+
|---|---|---|---|
|
|
1177
|
+
| `nodes` | `SolFlowCanvasNode[]` (`{ id, label, kind, position: { x, y }, visualState?: 'idle' \| 'running' \| 'ok' \| 'error', badges?, metadata? }`) | `[]` | |
|
|
1178
|
+
| `edges` | `SolFlowCanvasEdge[]` (`{ id, sourceId, targetId, kind: 'condition' \| 'intent' \| 'always', label?, priority? }`) | `[]` | |
|
|
1179
|
+
| `readonly` | `boolean` | `false` | |
|
|
1180
|
+
| `selectedId` | `string \| null` | `null` | |
|
|
1181
|
+
| `highlightedNodeId` | `string \| null` | `null` | |
|
|
1182
|
+
| `nodeTemplate` | `TemplateRef<{ $implicit, node, selected, highlighted }> \| null` | `null` | |
|
|
1183
|
+
|
|
1184
|
+
Outputs: `nodeMoved: { id, position }`, `nodeSelected: { id }`, `connectionCreated: { sourceId, targetId }`, `connectionRemoved: { id }`. The host owns positions and edges.
|
|
1185
|
+
|
|
1186
|
+
```html
|
|
1187
|
+
<div style="height: 400px">
|
|
1188
|
+
<sol-flow-canvas [nodes]="nodes()" [edges]="edges()" (nodeMoved)="move($event)" (connectionCreated)="connect($event)" />
|
|
1189
|
+
</div>
|
|
1190
|
+
```
|
|
1191
|
+
|
|
1192
|
+
---
|
|
1193
|
+
|
|
1194
|
+
### Secondary entry points (not demoed in the showcase)
|
|
1195
|
+
|
|
1196
|
+
- `@solercia/ui/theme-studio`: `sol-theme-studio`, `sol-theme-studio-preview`, token `THEME_STUDIO_STORE`
|
|
1197
|
+
(host store contract), catalogs `SOL_THEME_STUDIO_I18N_EN` / `SOL_THEME_STUDIO_I18N_ES_CO`, form/theme
|
|
1198
|
+
helpers (`buildThemeFile`, `mapThemeFileToForm`, `parseThemeJson`, …). See `docs/THEME-STUDIO.md`.
|
|
1199
|
+
- `@solercia/ui/login-appearance`: `sol-login-frame`, `sol-login-brand`, `sol-login-scene`, `sol-login-photos`,
|
|
1200
|
+
`sol-login-shapes`, `sol-login-panel-background`, `sol-login-preview`, `sol-login-appearance-editor`, plus
|
|
1201
|
+
`resolveLoginView`, `normalizeLogin`, `normalizeLoginAppearance`, catalogs
|
|
1202
|
+
`SOL_LOGIN_APPEARANCE_I18N_EN` / `SOL_LOGIN_APPEARANCE_I18N_ES_CO`. See [Themed sign-in](#themed-sign-in-solerciauilogin-appearance).
|
|
1203
|
+
|
|
1204
|
+
## Showcase
|
|
154
1205
|
|
|
155
1206
|
```bash
|
|
156
|
-
|
|
1207
|
+
npm ci
|
|
1208
|
+
npm start # builds the library and serves the showcase on http://localhost:4200
|
|
157
1209
|
```
|
|
158
1210
|
|
|
159
|
-
|
|
1211
|
+
The showcase is also the reference integration: zoneless bootstrap, `provideTheme()`, a `THEME_SOURCE`
|
|
1212
|
+
adapter and a `SolI18n` engine that merges the bundled English and Spanish catalogs with its own keys
|
|
1213
|
+
([`app.config.ts`](./projects/showcase/src/app/app.config.ts)). Each page shows live variants, sizes and
|
|
1214
|
+
states with a collapsible code snippet, in light and dark mode, down to 390 px.
|
|
1215
|
+
|
|
1216
|
+
## For AI coding agents
|
|
1217
|
+
|
|
1218
|
+
If you are an AI agent building UI with this library:
|
|
1219
|
+
|
|
1220
|
+
1. **Reuse before you build.** Check [Components at a glance](#components-at-a-glance) first; do not
|
|
1221
|
+
hand-roll a button, table, modal, date picker or chart that already exists.
|
|
1222
|
+
2. **Style only with tokens.** Use `var(--sol-*)` for color, typography, spacing and radius. Never
|
|
1223
|
+
hardcode colors or fonts, never use `!important` or `::ng-deep`. The
|
|
1224
|
+
[`@solercia/eslint-config`](https://github.com/solercia-solutions/eslint-config) preset enforces it.
|
|
1225
|
+
3. **Respect required inputs** (marked **Req**) and give every icon-only control an `ariaLabel`.
|
|
1226
|
+
4. **Wrap engines, don't import them.** Use `<sol-chart>` instead of Chart.js and `sol-kanban-*` instead of
|
|
1227
|
+
`@angular/cdk` drag and drop.
|
|
1228
|
+
5. **Cover every state.** Loading (`sol-skeleton`, `sol-spinner`), empty (`sol-empty-state`), error and
|
|
1229
|
+
success are part of each screen.
|
|
1230
|
+
6. Look at the matching page in `projects/showcase/src/app/pages/` for a working example.
|
|
160
1231
|
|
|
161
|
-
|
|
1232
|
+
A machine-readable summary is available in [`llms.txt`](./llms.txt).
|
|
1233
|
+
|
|
1234
|
+
## Development
|
|
162
1235
|
|
|
163
1236
|
```bash
|
|
164
|
-
|
|
1237
|
+
npm ci
|
|
1238
|
+
npm test # builds the library and schematics, then runs Vitest (zoneless)
|
|
1239
|
+
npm run build # dist/solercia/ui
|
|
1240
|
+
npm run build:showcase # library + showcase
|
|
165
1241
|
```
|
|
166
1242
|
|
|
167
|
-
|
|
1243
|
+
Text-asserting tests use the library's own catalogs, `projects/solercia/ui/i18n/en.json` and `es-CO.json`
|
|
1244
|
+
(add every new `shared.*` key to both; `catalog-*.ts` mirror them and a spec keeps them in sync).
|
|
1245
|
+
Rebuilding the library while `ng serve showcase` runs deletes `dist/solercia/ui`: restart the dev server.
|
|
1246
|
+
|
|
1247
|
+
### Releasing
|
|
1248
|
+
|
|
1249
|
+
1. Bump `version` in `projects/solercia/ui/package.json` and add the entry to
|
|
1250
|
+
[`CHANGELOG.md`](./projects/solercia/ui/CHANGELOG.md).
|
|
1251
|
+
2. Validate: `npm run build && cd dist/solercia/ui && npm publish --dry-run`.
|
|
1252
|
+
3. Push a tag `v<version>`. `.github/workflows/publish.yml` checks that the tag matches the version and
|
|
1253
|
+
publishes with npm Trusted Publishing (OIDC, no token) and provenance. The package's Trusted Publisher
|
|
1254
|
+
on npmjs.com is organization `solercia-solutions`, repository `solercia-ui`, workflow `publish.yml`;
|
|
1255
|
+
`ENEEDAUTH` means one of the three does not match.
|
|
1256
|
+
|
|
1257
|
+
## Related packages
|
|
1258
|
+
|
|
1259
|
+
- [`@solercia/eslint-config`](https://github.com/solercia-solutions/eslint-config) — architecture and styling lint rules.
|
|
1260
|
+
- [`@solercia/chat`](https://github.com/solercia-solutions/solercia-chat) — embeddable AI assistant chat.
|
|
168
1261
|
|
|
169
|
-
##
|
|
1262
|
+
## License
|
|
170
1263
|
|
|
171
|
-
|
|
1264
|
+
[Apache-2.0](./LICENSE) © 2026 Solercia Solutions SAS. See [`NOTICE`](./projects/solercia/ui/NOTICE).
|