@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.
@@ -95,7 +95,7 @@ interface SolSelectOption {
95
95
  declare class SolSelectComponent implements ControlValueAccessor {
96
96
  private hostEl;
97
97
  /** Placeholder text when nothing is selected. */
98
- readonly placeholder: _angular_core.InputSignal<string>;
98
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
99
99
  /** Label displayed above the select. */
100
100
  readonly label: _angular_core.InputSignal<string>;
101
101
  /** Error message below. */
@@ -108,16 +108,16 @@ declare class SolSelectComponent implements ControlValueAccessor {
108
108
  readonly multiple: _angular_core.InputSignal<boolean>;
109
109
  /** Options array — use this instead of ng-content for searchable/multi. */
110
110
  readonly options: _angular_core.InputSignal<SolSelectOption[]>;
111
- /** Show a "Todos" / clear option in single mode. */
111
+ /** Show an "All" / clear option in single mode. */
112
112
  readonly showAllOption: _angular_core.InputSignal<boolean>;
113
- /** Label for the "all" option in single mode. */
114
- readonly allOptionLabel: _angular_core.InputSignal<string>;
113
+ /** Label for the "all" option in single mode (default `shared.select.all`). */
114
+ readonly allOptionLabel: _angular_core.InputSignal<string | undefined>;
115
115
  /** Accessible name of the trigger when no `label` or wrapping `<label>` gives one. */
116
116
  readonly ariaLabel: _angular_core.InputSignal<string>;
117
117
  /** Placeholder (and accessible name) of the search input. */
118
- readonly searchPlaceholder: _angular_core.InputSignal<string>;
119
- /** Message when the search matches nothing. */
120
- readonly emptyLabel: _angular_core.InputSignal<string>;
118
+ readonly searchPlaceholder: _angular_core.InputSignal<string | undefined>;
119
+ /** Message when the search matches nothing (default `shared.select.empty`). */
120
+ readonly emptyLabel: _angular_core.InputSignal<string | undefined>;
121
121
  /** Controlled value in single mode: use it with `(valueChange)` instead of a form binding. */
122
122
  readonly value: _angular_core.InputSignal<string | null | undefined>;
123
123
  /** The person picked a value (single mode). */
@@ -150,6 +150,14 @@ declare class SolSelectComponent implements ControlValueAccessor {
150
150
  readonly panelId: string;
151
151
  readonly triggerId: string;
152
152
  private readonly injector;
153
+ private readonly i18n;
154
+ readonly placeholderText: _angular_core.Signal<string>;
155
+ readonly searchPlaceholderText: _angular_core.Signal<string>;
156
+ readonly emptyText: _angular_core.Signal<string>;
157
+ readonly allOptionText: _angular_core.Signal<string>;
158
+ readonly selectAllText: _angular_core.Signal<string>;
159
+ readonly selectNoneText: _angular_core.Signal<string>;
160
+ private text;
153
161
  readonly filteredOptions: _angular_core.Signal<SolSelectOption[]>;
154
162
  /** Lo que se recorre con el teclado: la opción "Todos" (si hay) y las filtradas. */
155
163
  readonly navItems: _angular_core.Signal<SolSelectOption[]>;
@@ -261,6 +269,8 @@ declare class SolToggleComponent implements ControlValueAccessor {
261
269
  }
262
270
 
263
271
  declare class SolModalComponent {
272
+ private static nextId;
273
+ private readonly i18n;
264
274
  /** Whether the modal is open. */
265
275
  open: _angular_core.InputSignal<boolean>;
266
276
  /** Title displayed in the modal header. */
@@ -271,15 +281,23 @@ declare class SolModalComponent {
271
281
  closeable: _angular_core.InputSignal<boolean>;
272
282
  /** Whether clicking the backdrop closes the modal. */
273
283
  closeOnBackdrop: _angular_core.InputSignal<boolean>;
284
+ /** Accessible name of the dialog when there is no `title` (ignored when a title is set). */
285
+ ariaLabel: _angular_core.InputSignal<string>;
274
286
  /** Emitted when the modal requests to be closed. */
275
287
  closed: _angular_core.OutputEmitterRef<void>;
276
288
  /** Computed CSS class for the panel size. */
277
289
  panelClasses: _angular_core.Signal<string>;
290
+ /** Unique id consumed by `aria-labelledby`. */
291
+ readonly titleId: string;
292
+ /** Accessible label of the close button (`shared.modal.close`). */
293
+ readonly closeLabel: _angular_core.Signal<string>;
294
+ private readonly panelEl;
295
+ constructor();
278
296
  onEscapeKey(): void;
279
297
  onBackdropClick(): void;
280
298
  close(): void;
281
299
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolModalComponent, never>;
282
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolModalComponent, "sol-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
300
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolModalComponent, "sol-modal", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
283
301
  }
284
302
 
285
303
  type SolDrawerSide = 'start' | 'end';
@@ -325,6 +343,8 @@ declare class SolDrawerComponent {
325
343
  * click, matching the common side-sheet UX.
326
344
  */
327
345
  readonly closeOnBackdrop: _angular_core.InputSignal<boolean>;
346
+ /** Accessible name of the dialog when there is no `title` (ignored when a title is set). */
347
+ readonly ariaLabel: _angular_core.InputSignal<string>;
328
348
  /** Emitted when the drawer requests to be closed. */
329
349
  readonly closed: _angular_core.OutputEmitterRef<void>;
330
350
  private readonly panelEl;
@@ -338,7 +358,7 @@ declare class SolDrawerComponent {
338
358
  onBackdropClick(): void;
339
359
  close(): void;
340
360
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolDrawerComponent, never>;
341
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolDrawerComponent, "sol-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[drawerFooter]"], true, never>;
361
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SolDrawerComponent, "sol-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "closeable": { "alias": "closeable"; "required": false; "isSignal": true; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*", "[drawerFooter]"], true, never>;
342
362
  }
343
363
 
344
364
  type BadgeVariant = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
@@ -410,6 +430,10 @@ declare class SolFormFieldComponent {
410
430
  }
411
431
 
412
432
  declare class SolPaginationComponent {
433
+ private static nextId;
434
+ private readonly i18n;
435
+ /** Id that ties the page-size label to its select. */
436
+ readonly sizeSelectId: string;
413
437
  readonly totalItems: _angular_core.InputSignal<number>;
414
438
  readonly pageSize: _angular_core.InputSignal<number>;
415
439
  readonly currentPage: _angular_core.InputSignal<number>;
@@ -419,6 +443,9 @@ declare class SolPaginationComponent {
419
443
  readonly totalPages: _angular_core.Signal<number>;
420
444
  readonly startItem: _angular_core.Signal<number>;
421
445
  readonly endItem: _angular_core.Signal<number>;
446
+ readonly rangeText: _angular_core.Signal<string>;
447
+ /** Resolves `shared.pagination.<key>` (reacts to language changes). */
448
+ protected t(key: string, params?: Record<string, unknown>): string;
422
449
  readonly pages: _angular_core.Signal<number[]>;
423
450
  onPageChange(page: number): void;
424
451
  onPageSizeChange(event: Event): void;
@@ -427,9 +454,13 @@ declare class SolPaginationComponent {
427
454
  }
428
455
 
429
456
  declare class SolSearchInputComponent {
430
- readonly placeholder: _angular_core.InputSignal<string>;
457
+ private readonly i18n;
458
+ /** Placeholder of the field. Without a value it uses `shared.searchInput.placeholder`. */
459
+ readonly placeholder: _angular_core.InputSignal<string | undefined>;
431
460
  readonly searchChange: _angular_core.OutputEmitterRef<string>;
432
461
  readonly value: _angular_core.WritableSignal<string>;
462
+ readonly placeholderText: _angular_core.Signal<string>;
463
+ readonly clearLabel: _angular_core.Signal<string>;
433
464
  onInput(event: Event): void;
434
465
  onClear(): void;
435
466
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolSearchInputComponent, never>;
@@ -603,8 +634,11 @@ declare class SolSkeletonComponent {
603
634
  declare class SolFileUploadComponent {
604
635
  readonly accept: _angular_core.InputSignal<string>;
605
636
  readonly maxSizeBytes: _angular_core.InputSignal<number>;
606
- readonly label: _angular_core.InputSignal<string>;
607
- readonly hint: _angular_core.InputSignal<string>;
637
+ private readonly i18n;
638
+ /** Main text of the drop zone. Without a value it uses `shared.fileUpload.label`. */
639
+ readonly label: _angular_core.InputSignal<string | undefined>;
640
+ /** Secondary text of the drop zone. Without a value it uses `shared.fileUpload.hint`. */
641
+ readonly hint: _angular_core.InputSignal<string | undefined>;
608
642
  readonly fileSelected: _angular_core.OutputEmitterRef<File>;
609
643
  readonly previewReady: _angular_core.OutputEmitterRef<string>;
610
644
  readonly fileError: _angular_core.OutputEmitterRef<string>;
@@ -614,6 +648,10 @@ declare class SolFileUploadComponent {
614
648
  readonly previewUrl: _angular_core.WritableSignal<string | null>;
615
649
  readonly fileName: _angular_core.WritableSignal<string | null>;
616
650
  readonly errorMessage: _angular_core.WritableSignal<string | null>;
651
+ readonly labelText: _angular_core.Signal<string>;
652
+ readonly hintText: _angular_core.Signal<string>;
653
+ /** Resolves `shared.fileUpload.<key>` (reacts to language changes). */
654
+ protected t(key: string, params?: Record<string, unknown>): string;
617
655
  onDragOver(event: DragEvent): void;
618
656
  onDragLeave(): void;
619
657
  onDrop(event: DragEvent): void;
@@ -753,7 +791,7 @@ declare class SolDatePickerComponent implements ControlValueAccessor {
753
791
  onChange: (value: string) => void;
754
792
  onTouched: () => void;
755
793
  constructor();
756
- /** Locale efectivo (reactivo al idioma activo); es-CO por defecto. */
794
+ /** Locale efectivo (reactivo al idioma activo); inglés por defecto. */
757
795
  private readonly locale;
758
796
  readonly isDisabled: _angular_core.Signal<boolean>;
759
797
  private readonly minDate;
@@ -1112,7 +1150,7 @@ declare class SolWizardComponent {
1112
1150
  readonly previousText: _angular_core.Signal<string>;
1113
1151
  readonly nextText: _angular_core.Signal<string>;
1114
1152
  readonly finishText: _angular_core.Signal<string>;
1115
- /** Resuelve texto: override → clave i18n (si existe) → default es-CO. */
1153
+ /** Resuelve texto: override → clave i18n (catálogo del host o el incluido) → respaldo en inglés. */
1116
1154
  private text;
1117
1155
  /** Navega a un paso ya visitado (pills del stepper). */
1118
1156
  goTo(index: number): void;
@@ -2032,6 +2070,7 @@ interface DataTableColumn {
2032
2070
  declare class SolDataTableComponent {
2033
2071
  private readonly themeService;
2034
2072
  private readonly host;
2073
+ private readonly i18n;
2035
2074
  readonly data: _angular_core.InputSignal<SolDataTableRow[]>;
2036
2075
  readonly columns: _angular_core.InputSignal<DataTableColumn[]>;
2037
2076
  /**
@@ -2039,8 +2078,10 @@ declare class SolDataTableComponent {
2039
2078
  * skeleton tokenizadas y oculta la paginación mientras esté activo.
2040
2079
  */
2041
2080
  readonly loading: _angular_core.InputSignal<boolean>;
2042
- readonly searchPlaceholder: _angular_core.InputSignal<string>;
2043
- readonly emptyMessage: _angular_core.InputSignal<string>;
2081
+ /** Search placeholder. Without a value it uses `shared.table.searchPlaceholder`. */
2082
+ readonly searchPlaceholder: _angular_core.InputSignal<string | undefined>;
2083
+ /** Empty-state message. Without a value it uses `shared.table.empty`. */
2084
+ readonly emptyMessage: _angular_core.InputSignal<string | undefined>;
2044
2085
  readonly paginated: _angular_core.InputSignal<boolean>;
2045
2086
  readonly showToolbar: _angular_core.InputSignal<boolean>;
2046
2087
  readonly filterPosition: _angular_core.InputSignal<"right" | "left">;
@@ -2048,8 +2089,8 @@ declare class SolDataTableComponent {
2048
2089
  readonly showEditAction: _angular_core.InputSignal<boolean>;
2049
2090
  readonly showDeleteAction: _angular_core.InputSignal<boolean>;
2050
2091
  readonly trackByKey: _angular_core.InputSignal<string>;
2051
- /** Encabezado de la columna de acciones. */
2052
- readonly actionsLabel: _angular_core.InputSignal<string>;
2092
+ /** Encabezado de la columna de acciones. Sin valor usa `shared.table.actions`. */
2093
+ readonly actionsLabel: _angular_core.InputSignal<string | undefined>;
2053
2094
  /**
2054
2095
  * Posición de la columna de acciones (0.6.0). `'end'` (default) preserva
2055
2096
  * el comportamiento previo — th/td de acciones después de las columnas de
@@ -2060,13 +2101,10 @@ declare class SolDataTableComponent {
2060
2101
  */
2061
2102
  readonly actionsPosition: _angular_core.InputSignal<"start" | "end">;
2062
2103
  /**
2063
- * aria-label del botón ▶ de expansión de fila en el modo móvil. El default
2064
- * se alinea con el texto de la clave i18n `shared.table.toggleDetails`
2065
- * para que cualquier consumidor que no lo sobreescriba (vía
2066
- * `[toggleDetailsLabel]`) obtenga el texto correcto sin necesidad de
2067
- * traducción explícita.
2104
+ * aria-label del botón ▶ de expansión de fila en el modo móvil. Sin valor
2105
+ * usa la clave i18n `shared.table.toggleDetails`.
2068
2106
  */
2069
- readonly toggleDetailsLabel: _angular_core.InputSignal<string>;
2107
+ readonly toggleDetailsLabel: _angular_core.InputSignal<string | undefined>;
2070
2108
  /**
2071
2109
  * Activa la animación de entrada (`solRowReveal`, ver directiva interna
2072
2110
  * arriba) en cada fila/tarjeta. Default `true`: preserva el
@@ -2118,6 +2156,12 @@ declare class SolDataTableComponent {
2118
2156
  readonly sortDirection: _angular_core.WritableSignal<"desc" | "asc">;
2119
2157
  /** Valor de filtro por columna (0.6.0), indexado por `DataTableColumn.key`. */
2120
2158
  readonly columnFilters: _angular_core.WritableSignal<Record<string, string>>;
2159
+ readonly searchPlaceholderText: Signal<string>;
2160
+ readonly emptyText: Signal<string>;
2161
+ readonly actionsText: Signal<string>;
2162
+ readonly toggleDetailsText: Signal<string>;
2163
+ readonly filterAllText: Signal<string>;
2164
+ private text;
2121
2165
  /**
2122
2166
  * Clave de replay de `solRowReveal`: cambia con cualquier búsqueda, orden
2123
2167
  * o paginación — reinicia la animación de entrada de las filas visibles
@@ -2351,7 +2395,7 @@ declare class SolStarRatingComponent {
2351
2395
  /** Valor recortado al rango válido: un dato raro no rompe el ancho. */
2352
2396
  private readonly safeValue;
2353
2397
  protected readonly filledPercent: _angular_core.Signal<number>;
2354
- /** Un decimal y coma decimal, como se escribe en español. */
2398
+ /** Un decimal con el separador del idioma activo (`4.5` en inglés, `4,5` en español). */
2355
2399
  protected readonly formattedValue: _angular_core.Signal<string>;
2356
2400
  protected readonly ariaLabel: _angular_core.Signal<string>;
2357
2401
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SolStarRatingComponent, never>;
@@ -2526,7 +2570,7 @@ declare class SolRatingInputComponent implements ControlValueAccessor {
2526
2570
  */
2527
2571
  private focusStar;
2528
2572
  /**
2529
- * Resuelve un texto por i18n con respaldo es-CO propio.
2573
+ * Resuelve un texto por i18n con respaldo propio en inglés.
2530
2574
  *
2531
2575
  * El contrato `SolI18n` devuelve la CLAVE cuando falta la traducción, así que
2532
2576
  * ese caso se detecta y se cae al texto de la casa en vez de anunciarle la
@@ -5053,16 +5097,18 @@ type SolConfirmDialogVariant = 'danger' | 'warning' | 'info';
5053
5097
  * `confirm` y `cancel`.
5054
5098
  */
5055
5099
  declare class SolConfirmDialogComponent {
5100
+ private static nextId;
5101
+ private readonly i18n;
5056
5102
  /** Abre o cierra el diálogo. */
5057
5103
  readonly open: _angular_core.InputSignal<boolean>;
5058
- /** Título del diálogo. */
5059
- readonly title: _angular_core.InputSignal<string>;
5104
+ /** Título del diálogo. Sin valor usa `shared.confirmDialog.title` («Are you sure?»). */
5105
+ readonly title: _angular_core.InputSignal<string | undefined>;
5060
5106
  /** Mensaje bajo el título (opcional). */
5061
5107
  readonly message: _angular_core.InputSignal<string>;
5062
- /** Texto del botón de confirmación. */
5063
- readonly confirmLabel: _angular_core.InputSignal<string>;
5064
- /** Texto del botón de cancelación. */
5065
- readonly cancelLabel: _angular_core.InputSignal<string>;
5108
+ /** Texto del botón de confirmación. Sin valor usa `shared.confirmDialog.confirm`. */
5109
+ readonly confirmLabel: _angular_core.InputSignal<string | undefined>;
5110
+ /** Texto del botón de cancelación. Sin valor usa `shared.confirmDialog.cancel`. */
5111
+ readonly cancelLabel: _angular_core.InputSignal<string | undefined>;
5066
5112
  /** Variante visual: ícono y color del botón de confirmación. */
5067
5113
  readonly variant: _angular_core.InputSignal<SolConfirmDialogVariant>;
5068
5114
  /** La persona confirmó la acción. */
@@ -5072,6 +5118,16 @@ declare class SolConfirmDialogComponent {
5072
5118
  protected readonly iconClasses: _angular_core.Signal<string>;
5073
5119
  protected readonly confirmBtnClasses: _angular_core.Signal<string>;
5074
5120
  protected readonly iconName: _angular_core.Signal<string>;
5121
+ protected readonly titleId: string;
5122
+ protected readonly messageId: string;
5123
+ protected readonly titleText: _angular_core.Signal<string>;
5124
+ protected readonly confirmText: _angular_core.Signal<string>;
5125
+ protected readonly cancelText: _angular_core.Signal<string>;
5126
+ private readonly panelEl;
5127
+ private readonly cancelButton;
5128
+ constructor();
5129
+ /** An explicit input always wins (even `''`); otherwise the i18n key. */
5130
+ private text;
5075
5131
  protected onEscapeKey(): void;
5076
5132
  protected onBackdropClick(): void;
5077
5133
  protected onConfirm(): void;
@@ -5381,11 +5437,22 @@ declare const SOL_BUNDLED_DEFAULT_THEME: ThemeFile;
5381
5437
  */
5382
5438
  declare const SOL_DEFAULT_THEME: InjectionToken<ThemeFile>;
5383
5439
 
5440
+ /**
5441
+ * Internal catalog helpers (not exported from the public API). The JSON files in
5442
+ * `projects/solercia/ui/i18n/` are the catalogs shipped as package assets
5443
+ * (`@solercia/ui/i18n/*.json`); `catalog-*.ts` mirror them for the bundle (ng-packagr
5444
+ * cannot bundle JSON imports) and `sol-i18n.spec.ts` keeps both in sync.
5445
+ */
5446
+ /** Nested translation catalog (`{ shared: { modal: { close: 'Close' } } }`). */
5447
+ interface SolI18nCatalog {
5448
+ readonly [key: string]: string | SolI18nCatalog;
5449
+ }
5450
+
5384
5451
  /**
5385
5452
  * Minimal i18n contract consumed by the @solercia/ui components.
5386
5453
  *
5387
5454
  * The host application provides the implementation (Transloco, ngx-translate,
5388
- * @angular/localize, or the built-in identity default). This keeps the library
5455
+ * @angular/localize, or the built-in English default). This keeps the library
5389
5456
  * agnostic of any specific i18n engine — mirroring Angular Material's `*Intl`
5390
5457
  * services.
5391
5458
  */
@@ -5399,16 +5466,43 @@ interface SolI18n {
5399
5466
  /** Translate several keys at once, in the same order. */
5400
5467
  tMany(keys: string[]): Signal<string[]>;
5401
5468
  }
5469
+ /** Bundled English catalog of every `shared.*` key (also shipped as `@solercia/ui/i18n/en.json`). */
5470
+ declare const SOL_I18N_EN: SolI18nCatalog;
5471
+ /** Bundled Colombian Spanish catalog (also shipped as `@solercia/ui/i18n/es-CO.json`). */
5472
+ declare const SOL_I18N_ES_CO: SolI18nCatalog;
5473
+ /** `SolI18n` engine with a writable language, returned by {@link createSolI18n}. */
5474
+ interface SolCatalogI18n extends SolI18n {
5475
+ /** Switches the active language; every `t()`/`tMany()` signal recomputes. */
5476
+ setLang(lang: string): void;
5477
+ }
5478
+ /** Options of {@link createSolI18n}. */
5479
+ interface SolI18nOptions {
5480
+ /** Initial language (default `'en'`). */
5481
+ lang?: string;
5482
+ /** Catalogs by language code (default: the bundled `en` and `es-CO` catalogs). */
5483
+ catalogs?: Readonly<Record<string, SolI18nCatalog>>;
5484
+ }
5485
+ /**
5486
+ * Ready-to-use `SolI18n` engine backed by catalogs (by default the bundled English
5487
+ * and Colombian Spanish ones). The language is matched exactly, then by its base
5488
+ * (`es` ↔ `es-CO`); a key missing there falls back to the `en` catalog, then to the key.
5489
+ *
5490
+ * ```ts
5491
+ * { provide: SOL_I18N, useFactory: () => createSolI18n({ lang: 'es-CO' }) }
5492
+ * ```
5493
+ */
5494
+ declare function createSolI18n(options?: SolI18nOptions): SolCatalogI18n;
5402
5495
  /**
5403
- * Identity fallback used when the host does not provide an implementation.
5404
- * Returns keys unchanged so components fall back to their built-in defaults.
5496
+ * Identity engine: returns keys unchanged. The components still render English
5497
+ * texts with it, because every `shared.*` key falls back to the bundled catalogs.
5405
5498
  */
5406
5499
  declare function createIdentitySolI18n(): SolI18n;
5407
5500
  /**
5408
- * Injection token for the i18n contract. Defaults to the identity fallback so
5409
- * the library works out of the box; the host overrides it with a real engine.
5501
+ * Injection token for the i18n contract. Defaults to an English engine backed by
5502
+ * the bundled catalogs, so the library works out of the box; the host overrides it
5503
+ * with its own engine, or with `createSolI18n({ lang: 'es-CO' })` for Spanish.
5410
5504
  */
5411
5505
  declare const SOL_I18N: InjectionToken<SolI18n>;
5412
5506
 
5413
- export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolConfirmDialogComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRevealDirective, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
5414
- export type { CalendarDayColumn, DataTableColumn, DayPickerItem, KanbanCardTemplateContext, KanbanColumn, KanbanColumnAction, KanbanDragSourceItemContext, KanbanItem, KanbanItemMoved, LinkableTask, MentionUser, PositionedTimelineRow, SolAvatarSize, SolButtonSize, SolButtonVariant, SolCalendarColorStrategy, SolCalendarEvent, SolCalendarEventTemplateContext, SolCalendarLegendItem, SolCalendarView, SolChartData, SolChartEngineFactory, SolChartEngineHandle, SolChartOptions, SolChartSeries, SolChartType, SolCheckboxColor, SolCheckboxShape, SolCheckboxSize, SolChipOption, SolChipRole, SolChipSize, SolConfirmDialogVariant, SolDataTableRow, SolDatePickerSize, SolDrawerSide, SolDrawerSize, SolDrawerVariant, SolFlowCanvasConnectionCreatedEvent, SolFlowCanvasConnectionRemovedEvent, SolFlowCanvasEdge, SolFlowCanvasEdgeKind, SolFlowCanvasNode, SolFlowCanvasNodeBadge, SolFlowCanvasNodeMovedEvent, SolFlowCanvasNodeSelectedEvent, SolFlowCanvasNodeTemplateContext, SolFlowCanvasNodeVisualState, SolFlowCanvasPosition, SolI18n, SolIconButtonSize, SolIconButtonVariant, SolIconName, SolIconSize, SolIconVariant, SolMessageStatus, SolNotificationItem, SolNotificationPanelState, SolNotificationTone, SolProgressMode, SolProgressSize, SolProgressVariant, SolRatingInputSize, SolRichImageUploader, SolScope, SolScopeSwitcherStatus, SolScoreThreshold, SolSelectOption, SolSkeletonVariant, SolStarRatingSize, SolStepperNavigation, SolStepperOrientation, SolStepperStep, SolStepperStepState, SolTabItem, SolTableVariant, SolTenantResolver, SolTimelineAxisTick, SolTimelineRange, SolTimelineStatusResolver, SolTone, SolTreeNode, SolTreeNodeTemplateContext, SolTreeToggleEvent, SolTrendDirection, SolViewToggleOption, SolVirtualScrollItemContext, SolWizardCanAdvance, SolWizardStep, StateColorSet, ThemeAlerts, ThemeComponent, ThemeFile, ThemeFont, ThemeLogo, ThemeMeta, ThemeMode, ThemeModeConfig, ThemePrimitives, ThemeSemantic, ThemeSource, ThemeTableComponent, TimelineLegendItem, TimelineNode, TokenRef };
5507
+ export { DEFAULT_SCORE_THRESHOLDS, EMIT_TABLE, KANBAN_ADD_ACTION, KanbanReorderService, NEUTRAL_CALENDAR_COLOR, SOL_BUNDLED_DEFAULT_THEME, SOL_CALENDAR_COLOR, SOL_CHART_ENGINE, SOL_DEFAULT_THEME, SOL_I18N, SOL_I18N_EN, SOL_I18N_ES_CO, SOL_TABLE_VARIANTS, SOL_TENANT_RESOLVER, SOL_TREE_MAX_DEPTH, SolAvatarComponent, SolBadgeComponent, SolButtonComponent, SolCalendarComponent, SolCalendarGridComponent, SolCalendarHeaderComponent, SolCardComponent, SolChartComponent, SolCheckboxComponent, SolChipComponent, SolChipGroupComponent, SolConfirmDialogComponent, SolDataTableComponent, SolDatePickerComponent, SolDayPickerComponent, SolDrawerComponent, SolEmptyStateComponent, SolFileUploadComponent, SolFlowCanvasComponent, SolFormFieldComponent, SolIconButtonComponent, SolIconComponent, SolInputComponent, SolKanbanBoardComponent, SolKanbanCardComponent, SolKanbanColumnComponent, SolKanbanDragSourceComponent, SolMessageStatusComponent, SolModalComponent, SolNotificationPanelComponent, SolNumberInputComponent, SolPageHeaderComponent, SolPaginationComponent, SolProgressBarComponent, SolRatingInputComponent, SolRevealDirective, SolRichEditorComponent, SolScopeSwitcherComponent, SolScoreBadgeComponent, SolSearchInputComponent, SolSelectComponent, SolSkeletonComponent, SolSpinnerComponent, SolStarRatingComponent, SolStepperComponent, SolTabsComponent, SolTextareaComponent, SolTimelineComponent, SolToggleComponent, SolTooltipComponent, SolTreeComponent, SolTreeNodeDefDirective, SolTrendComponent, SolViewToggleComponent, SolVirtualScrollComponent, SolWizardComponent, SolWizardStepDirective, TCPDF_ALLOWED_STYLE_PROPERTIES, TCPDF_ALLOWED_TAGS, THEME_SOURCE, ThemeService, buildDayColumns, buildGoogleFontsUrl, collectUndatedNodes, computeAutoLayoutPositions, computeEventHeight, computeEventTop, computeGlobalRange, computeInitials, computeMonthAxisTicks, computeNowTop, createIdentitySolI18n, createSolI18n, dayKey, defaultStatusToken, defaultTrendFormat, getWeekStart, hashToPaletteIndex, isRenderableTheme, isSafeBackgroundImage, isSafeCssColor, normalizeRating, parseEventDate, positionRows, provideTheme, resolveCssVars, resolveScoreTone, resolveTrendDirection, sanitizeAssetUrl, sanitizeHtmlToTcpdf, serializeElementToTcpdfHtml };
5508
+ export type { CalendarDayColumn, DataTableColumn, DayPickerItem, KanbanCardTemplateContext, KanbanColumn, KanbanColumnAction, KanbanDragSourceItemContext, KanbanItem, KanbanItemMoved, LinkableTask, MentionUser, PositionedTimelineRow, SolAvatarSize, SolButtonSize, SolButtonVariant, SolCalendarColorStrategy, SolCalendarEvent, SolCalendarEventTemplateContext, SolCalendarLegendItem, SolCalendarView, SolCatalogI18n, SolChartData, SolChartEngineFactory, SolChartEngineHandle, SolChartOptions, SolChartSeries, SolChartType, SolCheckboxColor, SolCheckboxShape, SolCheckboxSize, SolChipOption, SolChipRole, SolChipSize, SolConfirmDialogVariant, SolDataTableRow, SolDatePickerSize, SolDrawerSide, SolDrawerSize, SolDrawerVariant, SolFlowCanvasConnectionCreatedEvent, SolFlowCanvasConnectionRemovedEvent, SolFlowCanvasEdge, SolFlowCanvasEdgeKind, SolFlowCanvasNode, SolFlowCanvasNodeBadge, SolFlowCanvasNodeMovedEvent, SolFlowCanvasNodeSelectedEvent, SolFlowCanvasNodeTemplateContext, SolFlowCanvasNodeVisualState, SolFlowCanvasPosition, SolI18n, SolI18nCatalog, SolI18nOptions, SolIconButtonSize, SolIconButtonVariant, SolIconName, SolIconSize, SolIconVariant, SolMessageStatus, SolNotificationItem, SolNotificationPanelState, SolNotificationTone, SolProgressMode, SolProgressSize, SolProgressVariant, SolRatingInputSize, SolRichImageUploader, SolScope, SolScopeSwitcherStatus, SolScoreThreshold, SolSelectOption, SolSkeletonVariant, SolStarRatingSize, SolStepperNavigation, SolStepperOrientation, SolStepperStep, SolStepperStepState, SolTabItem, SolTableVariant, SolTenantResolver, SolTimelineAxisTick, SolTimelineRange, SolTimelineStatusResolver, SolTone, SolTreeNode, SolTreeNodeTemplateContext, SolTreeToggleEvent, SolTrendDirection, SolViewToggleOption, SolVirtualScrollItemContext, SolWizardCanAdvance, SolWizardStep, StateColorSet, ThemeAlerts, ThemeComponent, ThemeFile, ThemeFont, ThemeLogo, ThemeMeta, ThemeMode, ThemeModeConfig, ThemePrimitives, ThemeSemantic, ThemeSource, ThemeTableComponent, TimelineLegendItem, TimelineNode, TokenRef };