Atomic Angular Library
The Atomic Angular library provides a structured and reusable set of Angular components, models, services, stores, and utilities that facilitate the development of applications within the Sinequa framework. This library helps developers efficiently build and maintain Angular applications by offering pre-built, modular, and easily integrable functionalities.
Overview
This documentation will guide you through:
- Components: Reusable UI elements
- Services: Business logic and API integrations
- Stores: Centralized state management
- Directives: Custom behaviors for DOM elements
- Pipes: Data transformation for templates
- Guards: Route protection and access control
- Interceptors: HTTP request/response processing
- Utilities: Helper functions and development tools
- Tokens: Injection tokens for DI configuration
Recent Changes
New
- UserProfileService: Fetches user profiles reactively via
httpResource - FileSizePipe: Converts byte counts to human-readable size objects
- SelectArticleDirective: Selects articles on click with configurable
SelectionStrategy - SelectionStrategy: Union type for article selection behavior (
replace,stack,redirect,emit) - ChildMarkerDirective: Marks child elements for dynamic structural composition
- InlineWorker: Creates Web Workers inline from plain functions
- withFetch: Wraps async calls with automatic 401/404 error handling
- HIGHLIGHTS token: Injection token for configuring preview highlight colors
Deprecated
- PrincipalService: Use
PrincipalStoreinstead - SearchService: Use
QueryServiceinstead - SourceIconPipe: Use
SourceComponentinstead - SelectArticleOnClickDirective: Use
SelectArticleDirectiveinstead - ShowBookmarkDirective: Replaced by bookmark state from
UserSettingsStore - APP_FEATURES token: Use
generalconfig fromAppStoreinstead
Updated
- Aggregations Service: Methods
loadMore()andopen()documented - Preview Service: Full method coverage including
zoomIn/zoomOut,toggleAIDescription,sendMessage - Query Service:
search(),bulkSearch(),gotoPage()with full signatures - Audit Service: All notify methods documented
- User Settings Store: Full method coverage across bookmarks, baskets, alerts, and saved searches
- Aggregations Store:
update(),updateAggregation(),clear(),getAggregation() - Query Params Store:
addFilter(),updateFilter(),clearFilter(),patch() - Theme Store:
loadDefaultTheme(),setCurrentTheme(),processCssVars() - Highlights Token: Restructured with types table and override example
- Interceptors: All five interceptors updated to use
withInterceptors(lowercase) - OpenArticleOnCtrlEnter: Input table added
- ThemeProvider: Input table added
- InfiniteScroll: Outputs table added