# 📦 @smartsoft001/angular

![npm](https://img.shields.io/npm/v/@smartsoft001/angular) ![downloads](https://img.shields.io/npm/dm/@smartsoft001/angular)

## 🚀 Usage

`npm i @smartsoft001/angular`

Every component renders its standard implementation, which for most components is deliberately unstyled
markup with class hooks. Add `provideSmartPresets()` to the application's providers to register the styled
(Preline) implementation of every component at once, or provide single `*_STANDARD_COMPONENT_TOKEN`s:

```ts
bootstrapApplication(AppComponent, {
  providers: [
    provideTranslateService(),
    importProvidersFrom(SharedModule),
    provideSmartPresets(),
  ],
});
```

## 📚 Storybook

To run Storybook locally:

```bash
nx storybook angular
```

This will start the Storybook development server, typically at http://localhost:4400.

## 🤝 Contributing

Contributions are welcome! 🎉

1. Fork the repository.
2. Create a feature branch: git checkout -b feature/my-new-feature.
3. Commit your changes: git commit -m 'Add some feature'.
4. Push to the branch: git push origin feature/my-new-feature.
   Submit a pull request.

For more details, see our [Contributing Guidelines](../../../CONTRIBUTING.md).

## 📝 Changelog

All notable changes to this project will be documented in the [CHANGELOG](../../../CHANGELOG.md).

## Base Components

The following components expose abstract base classes (`@Directive()`) that can be extended to create custom implementations.

### ButtonBaseComponent

Abstract base class for button components. Provides variant/color computation, confirm mode logic, and disabled state handling.

**Inputs:** `options` (`IButtonOptions`), `disabled` (`boolean`), `class` (`string`)

### Button Component

The `<smart-button>` component renders a default `ButtonStandardComponent`. It supports an InjectionToken (`BUTTON_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ButtonComponent` (selector: `smart-button`)
**Default:** `ButtonStandardComponent` (selector: `smart-button-standard`)
**Token:** `BUTTON_STANDARD_COMPONENT_TOKEN` — provide a `Type<ButtonBaseComponent>` to override the default.

#### Usage

```html
<smart-button [options]="{ click: onClick, variant: 'primary', size: 'md' }">
  Save
</smart-button>
```

#### IButtonOptions

| Property       | Type                                     | Default     | Description                       |
| -------------- | ---------------------------------------- | ----------- | --------------------------------- |
| `click`        | `() => void`                             | *required*  | Click handler                     |
| `variant`      | `'primary' \| 'secondary' \| 'soft'`    | `'primary'` | Color variant                     |
| `size`         | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | `'md'`      | Button size                       |
| `color`        | `SmartColor`                             | `'indigo'`  | Tailwind color (22 options)       |
| `rounded`      | `boolean`                                | `false`     | Rounded pill shape                |
| `circular`     | `boolean`                                | `false`     | Circular shape (icon buttons)     |
| `iconPosition` | `'leading' \| 'trailing'`               | -           | Icon placement                    |
| `confirm`      | `boolean`                                | `false`     | Show confirmation before click    |
| `loading`      | `Signal<boolean>`                        | -           | Show loading spinner              |
| `type`         | `'submit' \| 'button'`                  | `'button'`  | HTML button type                  |

#### Overriding with Custom Implementation

```typescript
import { BUTTON_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: BUTTON_STANDARD_COMPONENT_TOKEN, useValue: MyButtonComponent },
]
```

### DetailsBaseComponent

Abstract base class for details components. Computes `fields` from model decorators (`@Field({ details: true })`) with permission/specification filtering, exposes the typed `item` signal, and supports `cellPipe` and `componentFactories`.

**Inputs:** `options` (`IDetailsOptions<T>`), `class` (`string`)

### Details Component

The `<smart-details>` component renders a list of model fields decorated with `@Field({ details: true })`. It is a wrapper that delegates to `DetailsStandardComponent` by default and supports an InjectionToken (`DETAILS_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

Text fields (`DetailTextComponent` and `DetailTextPresetComponent`) render their HTML through Angular's sanitizer: scripts, event handlers, iframes, SVG, `javascript:` links and inline `style` attributes (for example from the rich-text editor) are removed. To render raw HTML for a field you trust, return `SafeHtml` from your own `cellPipe` (`DomSanitizer.bypassSecurityTrustHtml(html) as unknown as string`, since `ICellPipe.transform` is typed as `string`).

**Wrapper:** `DetailsComponent` (selector: `smart-details`)
**Default:** `DetailsStandardComponent` (selector: `smart-details-standard`)
**Token:** `DETAILS_STANDARD_COMPONENT_TOKEN` — provide a `Type<DetailsBaseComponent<T>>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-details
  [options]="{ type: UserModel, item: userSignal }"
></smart-details>

<!-- With external CSS class -->
<smart-details
  class="smart:bg-yellow-50 smart:p-4"
  [options]="{ type: UserModel, item: userSignal }"
></smart-details>

<!-- With loading skeleton -->
<smart-details
  [options]="{ type: UserModel, item: userSignal, loading: loadingSignal }"
></smart-details>
```

#### IDetailsOptions

| Property             | Type                                | Default    | Description                                              |
| -------------------- | ----------------------------------- | ---------- | -------------------------------------------------------- |
| `type`               | `Type<T>`                           | *required* | Model class decorated with `@Model`                      |
| `item`               | `Signal<T \| undefined>`            | *required* | Reactive entity signal                                   |
| `loading`            | `Signal<boolean>`                   | -          | Show loading skeleton                                    |
| `cellPipe`           | `ICellPipe<T>`                      | -          | Pipe for transforming each field value                   |
| `componentFactories` | `IDetailsComponentFactories<T>`     | -          | Top/bottom dynamic component factories                   |

#### Overriding with Custom Implementation

```typescript
import { DETAILS_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: DETAILS_STANDARD_COMPONENT_TOKEN, useValue: MyDetailsComponent },
]
```

### FormBaseComponent

Abstract base class for form components. Holds reactive form logic: computes `fields` from `form.controls`, exposes `model`, `mode`, `possibilities`, `inputComponents`, and a `submit()` method emitting `invokeSubmit`.

**Inputs:** `form` (`UntypedFormGroup`), `options` (`IFormOptions<T>`), `class` (`string`)
**Outputs:** `invokeSubmit`

### Form Component

The `<smart-form>` component renders a reactive form driven by `@Field()` model decorators. It is a wrapper that delegates to `FormStandardComponent` by default and supports an InjectionToken (`FORM_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `FormComponent` (selector: `smart-form`)
**Default:** `FormStandardComponent` (selector: `smart-form-standard`)
**Token:** `FORM_STANDARD_COMPONENT_TOKEN` — provide a `Type<FormBaseComponent<T>>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-form
  [options]="{ model: userModel, show: true }"
  (invokeSubmit)="onSubmit($event)"
></smart-form>

<!-- With external CSS class -->
<smart-form
  class="smart:p-4 smart:bg-white"
  [options]="{ model: userModel, show: true }"
  (invokeSubmit)="onSubmit($event)"
></smart-form>

<!-- With pre-built control (skips FormFactory) -->
<smart-form
  [options]="{ model: userModel, show: true, control: myFormGroup }"
  (invokeSubmit)="onSubmit($event)"
></smart-form>
```

#### IFormOptions

| Property          | Type                                                                                | Default    | Description                                                  |
| ----------------- | ----------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------ |
| `model`           | `T`                                                                                 | *required* | Model instance decorated with `@Model` / `@Field`            |
| `show`            | `boolean`                                                                           | *required* | Whether the form is visible                                  |
| `mode`            | `'create' \| 'update' \| string`                                                   | -          | Merges `@Field({ create: … })` or `{ update: … }` overrides  |
| `control`         | `AbstractControl`                                                                   | -          | Pre-built form group — skips `FormFactory` when provided     |
| `loading$`        | `Observable<boolean>`                                                               | -          | Shows loading state while `true`                             |
| `treeLevel`       | `number`                                                                            | -          | Nesting depth in hierarchical forms                          |
| `uniqueProvider`  | `(values: Record<keyof T, any>) => Promise<boolean>`                                | -          | Async uniqueness check per field                             |
| `possibilities`   | `{ [key: string]: WritableSignal<{ id: any; text: string; checked: boolean }[]> }` | -          | Options for `radio`/`check` inputs keyed by field name       |
| `inputComponents` | `{ [key: string]: InputBaseComponentType<T> }`                                      | -          | Per-field component overrides keyed by field name            |
| `fieldOptions`    | `IFieldOptions`                                                                     | -          | Additional `@Field()` metadata overrides                     |
| `modelOptions`    | `IModelOptions`                                                                     | -          | Additional `@Model()` metadata overrides                     |

#### Overriding with Custom Implementation

```typescript
import { FORM_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: FORM_STANDARD_COMPONENT_TOKEN, useValue: MyFormComponent },
]
```

### ListBaseComponent

Abstract base class for list components. Computes `fields` and `keys` from model decorators, exposes `list`, `loading`, `page`, `totalPages`, `provider`, `itemHandler`, `removeHandler`, and `cellPipe` from `IListInternalOptions<T>`. Extend it to build a custom list implementation for any `ListMode`.

**Inputs:** `options` (`IListInternalOptions<T>`), `class` (`string`)
**Methods:** `initKeys()` — populates column keys from `fields`; `handlePageChange(page)` — triggers `provider.getData` with the new page; `initList()` — wires the list signal from the provider; `initLoading()` — wires the loading signal from the provider

### List Component

The `<smart-list>` component renders a collection of entities. It is a wrapper that dispatches to one of three built-in children based on `options.mode` or `HardwareService.isMobile` auto-detection. Each child can be replaced via `LIST_MODE_COMPONENTS_TOKEN`, which provides a partial override map — any mode you specify replaces the built-in default; any mode you omit continues to use the built-in.

**Wrapper:** `ListComponent` (selector: `smart-list`)
**Default children:**
- `ListDesktopComponent` (selector: `smart-list-desktop`) — CDK Table with Tailwind styling
- `ListMobileComponent` (selector: `smart-list-mobile`) — `<ul role="list">` with flex rows
- `ListMasonryGridComponent` (selector: `smart-list-masonry-grid>`) — grid of cards with images
**Token:** `LIST_MODE_COMPONENTS_TOKEN` — provide a `Partial<Record<ListMode, Type<ListBaseComponent<T>>>>` to override one or more mode children.

#### Usage

```html
<!-- Basic (auto mode detection) -->
<smart-list [options]="listOptions"></smart-list>

<!-- Force desktop mode -->
<smart-list
  [options]="{ provider: myProvider, type: UserModel, mode: 'desktop' }"
></smart-list>

<!-- With external CSS class -->
<smart-list
  class="smart:p-4"
  [options]="{ provider: myProvider, type: UserModel }"
></smart-list>

<!-- With pagination -->
<smart-list
  [options]="{
    provider: myProvider,
    type: UserModel,
    pagination: {
      limit: 25,
      page: pageSignal,
      totalPages: totalPagesSignal,
      loadNextPage: onLoadNext,
      loadPrevPage: onLoadPrev
    }
  }"
></smart-list>
```

#### IListOptions

| Property             | Type                                                                                  | Default    | Description                                                                          |
| -------------------- | ------------------------------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------ |
| `provider`           | `IListProvider<T>`                                                                    | *required* | Data provider (list signal, loading signal, getData callback)                        |
| `type`               | `any`                                                                                 | *required* | Model class decorated with `@Model`                                                  |
| `mode`               | `ListMode`                                                                            | -          | Force a specific mode; omit to auto-detect via `HardwareService.isMobile`            |
| `pagination`         | `IListPaginationOptions`                                                              | -          | Pagination config (mode, limit, page signal, totalPages signal, load callbacks)      |
| `cellPipe`           | `ICellPipe<T>`                                                                        | -          | Pipe for transforming each cell value                                                |
| `componentFactories` | `IListComponentFactories<T>`                                                          | -          | Top dynamic component factory                                                        |
| `sort`               | `boolean \| { default?: string; defaultDesc?: boolean }`                              | -          | Enable sorting; optionally set a default sort column and direction                   |
| `details`            | `boolean \| { provider?: IDetailsProvider<T>; componentFactories?: ...; component? }` | -          | Enable detail drill-down. The provider is required whenever this is set; the component is optional  |
| `item`               | `boolean \| { options?: ItemOptions }`                                                | -          | Enable item row action (navigate or custom select)                                   |
| `remove`             | `boolean \| { provider?: IRemoveProvider<T> }`                                        | -          | Enable row remove action; optionally provide a custom remove provider                |
| `select`             | `'multi'`                                                                             | -          | Enable multi-select mode                                                             |

#### Overriding with Custom Implementation

```typescript
import { LIST_MODE_COMPONENTS_TOKEN, ListMode } from '@smartsoft001/angular';

providers: [
  {
    provide: LIST_MODE_COMPONENTS_TOKEN,
    useValue: {
      [ListMode.desktop]: MyCustomDesktopListComponent,
      [ListMode.mobile]: MyCustomMobileListComponent,
      // masonryGrid not specified — falls back to built-in ListMasonryGridComponent
    },
  },
]
```

### CardBaseComponent

Abstract base class for card components. Provides shared container, header, body, and footer CSS class computation with gray background and divider support.

**Inputs:** `options` (`ICardOptions`), `hasHeader` (`boolean`), `hasFooter` (`boolean`), `class` (`string`), `headerTpl`/`bodyTpl`/`footerTpl` (`TemplateRef`)

### Card Component

The `<smart-card>` component renders a default `CardStandardComponent`. It supports an InjectionToken (`CARD_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `CardComponent` (selector: `smart-card`)
**Default:** `CardStandardComponent` (selector: `smart-card-standard`)
**Token:** `CARD_STANDARD_COMPONENT_TOKEN` — provide a `Type<CardBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-card>
  <p>Body content</p>
</smart-card>

<!-- With header and title -->
<smart-card [options]="{ title: 'My Card' }" [hasHeader]="true">
  <p>Body content</p>
</smart-card>

<!-- With header, footer, and gray footer -->
<smart-card
  [options]="{ grayFooter: true }"
  [hasHeader]="true"
  [hasFooter]="true"
>
  <div cardHeader>Custom Header</div>
  <p>Body content</p>
  <div cardFooter>Footer content</div>
</smart-card>
```

#### ICardOptions

| Property     | Type                       | Default | Description                   |
| ------------ | -------------------------- | ------- | ----------------------------- |
| `title`      | `string`                   | -       | Card title (shown in header)  |
| `buttons`    | `Array<IIconButtonOptions>`| -       | Optional action icons         |
| `grayFooter` | `boolean`                  | `false` | Gray background on footer     |
| `grayBody`   | `boolean`                  | `false` | Gray background on body       |

#### Content Projection

| Selector       | Description    |
| -------------- | -------------- |
| `[cardHeader]` | Header content |
| default        | Body content   |
| `[cardFooter]` | Footer content |

#### Overriding with Custom Implementation

```typescript
import { CARD_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: CARD_STANDARD_COMPONENT_TOKEN, useValue: MyCardComponent },
]
```

### PageBaseComponent

Abstract base class for page components. Exposes `options` (`IPageOptions`), `cssClass` (`class` alias), a `back()` method wired to `Location.back()`, an `isMobile` getter via `HardwareService`, and a `contentTpl` view child for variants that need to re-project the body.

**Inputs:** `options` (`IPageOptions`), `class` (`string`)

### Page Component

The `<smart-page>` component uses a map-based variant dispatch. It renders `PageStandardComponent` by default (`options.variant === 'standard'` or omitted) and can be extended with additional variants via `PAGE_VARIANT_COMPONENTS_TOKEN`. Projection uses `TemplateRef` slots declared on `IPageOptions`, plus a default `<ng-content>` fallback for the body.

**Wrapper:** `PageComponent` (selector: `smart-page`)
**Default:** `PageStandardComponent` (selector: `smart-page-standard`)
**Variant type:** `SmartPageVariant` — `'standard' | (string & {})`
**Token:** `PAGE_VARIANT_COMPONENTS_TOKEN` — provide a `Partial<Record<SmartPageVariant, Type<PageBaseComponent>>>` to register additional variants (merged on top of the built-in `{ standard: PageStandardComponent }`).

#### Usage

```html
<!-- Simple page with <ng-content> body -->
<smart-page [options]="{ title: 'Dashboard' }">
  <p>Dashboard content</p>
</smart-page>

<!-- With back button, search, and end buttons -->
<smart-page
  [options]="{
    title: 'Users',
    showBackButton: true,
    search: { text: searchText, set: onSearch },
    endButtons: [{ icon: 'add', text: 'Add user', handler: onAdd }]
  }"
>
  <users-list />
</smart-page>

<!-- Advanced: pick a variant and provide named slots -->
<ng-template #breadcrumbs><nav>Home / Users</nav></ng-template>
<ng-template #body><user-list /></ng-template>

<smart-page
  [options]="{
    title: 'Users',
    variant: 'analytics',
    breadcrumbsTpl: breadcrumbs,
    bodyTpl: body,
  }"
/>
```

#### IPageOptions

| Property         | Type                                                   | Default    | Description                                                      |
| ---------------- | ------------------------------------------------------ | ---------- | ---------------------------------------------------------------- |
| `title`          | `string`                                               | *required* | Page title (translated)                                          |
| `hideHeader`     | `boolean`                                              | `false`    | Hide the entire header block                                     |
| `hideMenuButton` | `boolean`                                              | `false`    | Reserved for layouts with a menu button                          |
| `showBackButton` | `boolean`                                              | `false`    | Render a back arrow that calls `Location.back()`                 |
| `endButtons`     | `Array<IIconButtonOptions>`                            | -          | Action buttons rendered via `<smart-button>`                     |
| `search`         | `{ text: Signal<string>; set: (txt: string) => void }` | -          | Inline search input                                              |
| `variant`        | `SmartPageVariant`                                     | `standard` | Selects the variant component from the merged map                |
| `bodyTpl`        | `TemplateRef<unknown>`                                 | -          | Explicit body template (falls back to `<ng-content>` if omitted) |
| `breadcrumbsTpl` | `TemplateRef<unknown>`                                 | -          | Breadcrumbs slot                                                 |
| `metaTpl`        | `TemplateRef<unknown>`                                 | -          | Meta slot (status, timestamps, ...)                              |
| `avatarTpl`      | `TemplateRef<unknown>`                                 | -          | Avatar slot                                                      |
| `bannerTpl`      | `TemplateRef<unknown>`                                 | -          | Banner slot                                                      |
| `filtersTpl`     | `TemplateRef<unknown>`                                 | -          | Filters slot                                                     |
| `logoTpl`        | `TemplateRef<unknown>`                                 | -          | Logo slot                                                        |
| `statsTpl`       | `TemplateRef<unknown>`                                 | -          | Stats slot                                                       |
| `subtitleTpl`    | `TemplateRef<unknown>`                                 | -          | Subtitle slot                                                    |
| `navTpl`         | `TemplateRef<unknown>`                                 | -          | Navigation slot                                                  |
| `sidebarTpl`     | `TemplateRef<unknown>`                                 | -          | Sidebar slot                                                     |

#### Registering Additional Variants

```typescript
import { PAGE_VARIANT_COMPONENTS_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: PAGE_VARIANT_COMPONENTS_TOKEN,
    useValue: {
      'product-detail': MyProductDetailPageComponent,
      'analytics': MyAnalyticsPageComponent,
    },
  },
]
```

### InfoBaseComponent

Abstract base class for info popover components. Exposes required `options: IInfoOptions`, `cssClass: string` (alias `class`), an `isOpen: WritableSignal<boolean>` state, and `toggle()`/`open()`/`close()` methods.

**Inputs:** `options` (`IInfoOptions`), `class` (`string`)

### Info Component

The `<smart-info>` component renders a small info icon that toggles a popover with a short tooltip text. It is a wrapper that delegates to `InfoStandardComponent` by default and supports an InjectionToken (`INFO_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `InfoComponent` (selector: `smart-info`)
**Default:** `InfoStandardComponent` (selector: `smart-info-standard`)
**Token:** `INFO_STANDARD_COMPONENT_TOKEN` — provide a `Type<InfoBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-info [options]="{ text: 'Helpful description' }"></smart-info>

<!-- With external CSS class -->
<smart-info
  class="smart:text-indigo-600"
  [options]="{ text: 'Helpful description' }"
></smart-info>
```

#### IInfoOptions

| Property | Type     | Default    | Description                           |
| -------- | -------- | ---------- | ------------------------------------- |
| `text`   | `string` | *required* | Text shown inside the popover (translated via `TranslatePipe`) |

#### Overriding with Custom Implementation

```typescript
import { INFO_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: INFO_STANDARD_COMPONENT_TOKEN, useValue: MyInfoComponent },
]
```

When providing a custom implementation, note that the default `InfoStandardComponent` registers a `document:click` listener to close the popover on outside clicks — a custom implementation is responsible for its own close-on-outside-click behavior if needed.

### SearchbarBaseComponent

Abstract base class for searchbar components. Provides reactive `UntypedFormControl` with debounced text emission, `show`/`text` models, `setShow()`/`tryHide()` methods.

**Inputs:** `options` (`ISearchbarOptions`), `show` (`ModelSignal<boolean>`), `text` (`ModelSignal<string>`), `class` (`string`)

### Searchbar Component

The `<smart-searchbar>` component renders a debounced search input with an optional toggle button. It is a wrapper that delegates to `SearchbarStandardComponent` by default and supports an InjectionToken (`SEARCHBAR_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `SearchbarComponent` (selector: `smart-searchbar`)
**Default:** `SearchbarStandardComponent` (selector: `smart-searchbar-standard`)
**Token:** `SEARCHBAR_STANDARD_COMPONENT_TOKEN` — provide a `Type<SearchbarBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-searchbar [(text)]="searchText" />

<!-- With options (custom placeholder + debounce) -->
<smart-searchbar
  [(text)]="searchText"
  [options]="{ placeholder: 'users.search', debounceTime: 300 }"
/>

<!-- Hidden with toggle button -->
<smart-searchbar
  [(show)]="searchShown"
  [(text)]="searchText"
  [options]="{ showToggleButton: true }"
/>

<!-- With external CSS class -->
<smart-searchbar class="smart:max-w-md" [(text)]="searchText" />
```

#### ISearchbarOptions

| Property           | Type         | Default    | Description                                                              |
| ------------------ | ------------ | ---------- | ------------------------------------------------------------------------ |
| `placeholder`      | `string`     | `'search'` | Placeholder translation key (rendered through `TranslatePipe`)           |
| `debounceTime`     | `number`     | `1000`     | Debounce (ms) before `text` model emits a new value                      |
| `showToggleButton` | `boolean`    | `false`    | When `show` is `false`, display a magnifier button that reveals the input |
| `size`             | `SmartSize`  | -          | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'`                                  |
| `color`            | `SmartColor` | -          | Tailwind color (22 options)                                              |

#### Overriding with Custom Implementation

```typescript
import { SEARCHBAR_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: SEARCHBAR_STANDARD_COMPONENT_TOKEN, useValue: MySearchbarComponent },
]
```

A custom implementation extending `SearchbarBaseComponent` should declare `cssClass = input<string>('')` without the `class` alias (because `NgComponentOutlet` passes inputs by canonical name) and rely on the base's `control` signal, `setShow()`, and `tryHide()` methods. The base class already wires `control.valueChanges` through `debounceTime()` and emits into the `text` model — do not re-subscribe.

### ToggleBaseComponent

Abstract base class for toggle components. Exposes `value` (two-way `ModelSignal<boolean>`), `disabled`, optional `IToggleOptions`, `cssClass` (alias `class`), and a `toggle()` method that flips `value` while respecting `disabled`.

**Inputs:** `value` (`ModelSignal<boolean>`), `disabled` (`boolean`), `options` (`IToggleOptions`), `class` (`string`)

### Toggle Component

The `<smart-toggle>` component renders a boolean on/off control. It is a wrapper that delegates to `ToggleStandardComponent` by default and supports an InjectionToken (`TOGGLE_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ToggleComponent` (selector: `smart-toggle`)
**Default:** `ToggleStandardComponent` (selector: `smart-toggle-standard`)
**Token:** `TOGGLE_STANDARD_COMPONENT_TOKEN` — provide a `Type<ToggleBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-toggle [(value)]="enabled" />

<!-- With options -->
<smart-toggle [(value)]="enabled" [options]="{ ariaLabel: 'Use setting' }" />

<!-- Disabled -->
<smart-toggle [(value)]="enabled" [disabled]="true" />

<!-- With external class -->
<smart-toggle [(value)]="enabled" class="smart:my-2" />
```

#### IToggleOptions

| Property        | Type                  | Default | Description                                              |
| --------------- | --------------------- | ------- | -------------------------------------------------------- |
| `label`         | `string`              | -       | Optional label                                           |
| `description`   | `string`              | -       | Optional secondary description                           |
| `labelPosition` | `'left' \| 'right'`  | -       | Where the label sits relative to the toggle              |
| `ariaLabel`     | `string`              | -       | Accessible label rendered as `aria-label`                |

The default `ToggleStandardComponent` consumes only `ariaLabel`. `label`, `description`, and `labelPosition` are intended for custom implementations registered via `TOGGLE_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { TOGGLE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: TOGGLE_STANDARD_COMPONENT_TOKEN, useValue: MyToggleComponent },
];
```

### CalendarBaseComponent

Abstract base class for calendar components. Contains shared date logic — month-grid construction, period navigation (prev/next/today), single-day selection, and per-day event filtering. Exposes optional `ICalendarOptions`, two-way `value` model (`Date | null`), optional `referenceDate`, `events` array, and `cssClass` (alias `class`). Computed signals: `view`, `weekStart`, `showToolbar`, `reference`, `monthGrid`. Methods: `selectDay()`, `goToToday()`, `prevPeriod()`, `nextPeriod()`, `eventsForDay()`. Static method `buildMonthGrid()` is a pure function returning a 6×7 grid.

**Inputs:** `options` (`ICalendarOptions`), `value` (`Date | null`, two-way), `referenceDate` (`Date`), `events` (`ICalendarEvent[]`), `class` (`string`)

### Calendar Component

The `<smart-calendar>` component renders a date calendar with shared month-grid logic, navigation toolbar (prev/next/today), and single-day selection. It is a wrapper that delegates to `CalendarStandardComponent` by default and supports an InjectionToken (`CALENDAR_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `CalendarComponent` (selector: `smart-calendar`)
**Default:** `CalendarStandardComponent` (selector: `smart-calendar-standard`)
**Token:** `CALENDAR_STANDARD_COMPONENT_TOKEN` — provide a `Type<CalendarBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic two-way binding -->
<smart-calendar [(value)]="selected" />

<!-- With reference date and events -->
<smart-calendar
  [(value)]="selected"
  [referenceDate]="january2026"
  [events]="meetings"
/>

<!-- Hidden toolbar -->
<smart-calendar [(value)]="selected" [options]="{ showToolbar: false }" />

<!-- Sunday-first weeks -->
<smart-calendar [(value)]="selected" [options]="{ weekStart: 0 }" />

<!-- Custom day cell -->
<ng-template #dayCell let-cell let-events="events">
  <span>{{ cell.date.getDate() }}</span>
  @for (event of events; track event.id) {
    <span class="dot"></span>
  }
</ng-template>

<smart-calendar
  [(value)]="selected"
  [events]="meetings"
  [options]="{ dayCellTpl: dayCell }"
/>
```

#### ICalendarOptions

| Property            | Type                                 | Default | Description                                                  |
| ------------------- | ------------------------------------ | ------- | ------------------------------------------------------------ |
| `view`              | `'month' \| 'week' \| 'day' \| 'year'` | `'month'` | Active view (hint for custom implementations)               |
| `monthsCount`       | `1 \| 2 \| 12`                       | `1`     | Number of mini-months to render (custom impl hint)           |
| `weekStart`         | `0 \| 1`                             | `1`     | Week start day (0 = Sunday, 1 = Monday)                       |
| `showToolbar`       | `boolean`                            | `true`  | Toggle the prev/today/next toolbar                           |
| `toolbarActionsTpl` | `TemplateRef<unknown>`               | -       | Slot for additional toolbar buttons                          |
| `eventListTpl`      | `TemplateRef<unknown>`               | -       | Agenda / event list slot (custom impl)                       |
| `sidePanelTpl`      | `TemplateRef<unknown>`               | -       | Side-panel slot (custom impl)                                |
| `dayCellTpl`        | `TemplateRef<unknown>`               | -       | Custom day-cell template; receives `$implicit: ICalendarDayCell` and `events: ICalendarEvent[]` |
| `eventTpl`          | `TemplateRef<unknown>`               | -       | Single-event template (custom impl)                          |

#### ICalendarEvent

| Property | Type                       | Default | Description                                |
| -------- | -------------------------- | ------- | ------------------------------------------ |
| `id`     | `string \| number`         | -       | Unique identifier                          |
| `start`  | `Date`                     | -       | Event start (date is what is matched)      |
| `end`    | `Date`                     | -       | Optional event end                         |
| `title`  | `string`                   | -       | Optional title                             |
| `meta`   | `Record<string, unknown>`  | -       | Free-form metadata for custom impl         |

#### Overriding with Custom Implementation

```typescript
import { CALENDAR_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: CALENDAR_STANDARD_COMPONENT_TOKEN, useValue: MyCalendarComponent },
];
```

> `NgComponentOutlet` does not propagate output bindings. When a custom component is injected via the token, `value` two-way becomes one-way input. Custom impl should expose dedicated outputs and host wires manually.

### CommandPaletteBaseComponent

Abstract base class for command palette components. Exposes `commands` (`InputSignal<ICommand[]>`), two-way `open` (`ModelSignal<boolean>`) and `query` (`ModelSignal<string>`), optional `ICommandPaletteOptions`, `cssClass` (alias `class`), a `filteredCommands` computed signal performing case-insensitive substring filtering on `command.label`, plus `selectCommand(commandId)` (emits `runCommand` and sets `open` to `false`) and `close()` methods.

**Inputs:** `commands` (`ICommand[]`), `open` (`ModelSignal<boolean>`), `query` (`ModelSignal<string>`), `options` (`ICommandPaletteOptions`), `class` (`string`)
**Outputs:** `runCommand` (`{ commandId: string }`)

### CommandPalette Component

The `<smart-command-palette>` component renders a Cmd+K-style overlay that filters a list of commands by a search query. It is a wrapper that delegates to `CommandPaletteStandardComponent` by default and supports an InjectionToken (`COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `CommandPaletteComponent` (selector: `smart-command-palette`)
**Default:** `CommandPaletteStandardComponent` (selector: `smart-command-palette-standard`)
**Token:** `COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN` — provide a `Type<CommandPaletteBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-command-palette
  [commands]="commands"
  [(open)]="open"
  [(query)]="query"
  (runCommand)="onRunCommand($event)"
/>

<!-- With options -->
<smart-command-palette
  [commands]="commands"
  [(open)]="open"
  [options]="{ placeholder: 'Search commands…', emptyText: 'No results' }"
/>

<!-- With external class -->
<smart-command-palette
  [commands]="commands"
  [(open)]="open"
  class="smart:m-4"
/>
```

#### ICommand

| Property      | Type     | Default    | Description                            |
| ------------- | -------- | ---------- | -------------------------------------- |
| `id`          | `string` | *required* | Identifier emitted via `runCommand`    |
| `label`       | `string` | *required* | Visible label, also used for filtering |
| `icon`        | `string` | -          | Optional icon hint (variant-specific)  |
| `group`       | `string` | -          | Optional group name (variant-specific) |
| `href`        | `string` | -          | Optional link target                   |
| `description` | `string` | -          | Optional secondary text                |
| `imageUrl`    | `string` | -          | Optional image URL                     |

#### ICommandPaletteOptions

| Property      | Type                            | Default | Description                                        |
| ------------- | ------------------------------- | ------- | -------------------------------------------------- |
| `variant`     | `SmartCommandPaletteVariant`    | -       | Variant selector (consumed by custom impls)        |
| `placeholder` | `string`                        | -       | Placeholder text for the search input              |
| `emptyText`   | `string`                        | -       | Text shown when no command matches the query       |
| `ariaLabel`   | `string`                        | -       | Accessible label rendered as `aria-label`          |

The default `CommandPaletteStandardComponent` consumes `placeholder`, `emptyText`, and `ariaLabel`. The `variant` selector is reserved for custom implementations registered via `COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN,
    useValue: MyCommandPaletteComponent,
  },
];
```

> Keyboard handling for `Escape` (close) and the global `Cmd+K` shortcut (open) is intentionally deferred to custom implementations — the standard does not bind any keyboard listeners.

### SectionHeadingBaseComponent

Abstract base class for section heading components. Exposes optional `ISectionHeadingOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`ISectionHeadingOptions`), `class` (`string`)

### SectionHeading Component

The `<smart-section-heading>` component renders a heading region for sections within a page (positioned between `<smart-page-heading>` and `<smart-card-heading>` in size and scope), with optional slots for label, description, actions, tabs, an input group (search), and a badge. It is a wrapper that delegates to `SectionHeadingStandardComponent` by default and supports an InjectionToken (`SECTION_HEADING_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `SectionHeadingComponent` (selector: `smart-section-heading`)
**Default:** `SectionHeadingStandardComponent` (selector: `smart-section-heading-standard`)
**Token:** `SECTION_HEADING_STANDARD_COMPONENT_TOKEN` — provide a `Type<SectionHeadingBaseComponent>` to override the default.

#### Usage

```html
<!-- Title only -->
<smart-section-heading [options]="{ title: 'Applicants' }" />

<!-- Title with label -->
<smart-section-heading
  [options]="{ title: 'Applicants', label: 'in Engineering' }"
/>

<!-- With actions -->
<ng-template #actions>
  <button>Add</button>
</ng-template>

<smart-section-heading
  [options]="{ title: 'Applicants', actionsTpl: actions }"
/>

<!-- With tabs and search -->
<ng-template #tabs>
  <a>All</a>
</ng-template>

<ng-template #search>
  <smart-searchbar />
</ng-template>

<smart-section-heading
  [options]="{ title: 'Applicants', tabsTpl: tabs, inputGroupTpl: search }"
/>
```

#### ISectionHeadingOptions

| Property        | Type                   | Default | Description                                  |
| --------------- | ---------------------- | ------- | -------------------------------------------- |
| `title`         | `string`               | -       | Heading title (rendered as `<h3>`)           |
| `description`   | `string`               | -       | Optional description string                  |
| `label`         | `string`               | -       | Inline label rendered next to the title      |
| `actionsTpl`    | `TemplateRef<unknown>` | -       | Actions / buttons template on the right      |
| `tabsTpl`       | `TemplateRef<unknown>` | -       | Tabs template rendered below the header      |
| `inputGroupTpl` | `TemplateRef<unknown>` | -       | Input/search group template on the right     |
| `badgeTpl`      | `TemplateRef<unknown>` | -       | Badge / chip template on the right           |

The default `SectionHeadingStandardComponent` consumes every property; a section is rendered only when its template/string is provided.

#### Overriding with Custom Implementation

```typescript
import { SECTION_HEADING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: SECTION_HEADING_STANDARD_COMPONENT_TOKEN,
    useValue: MySectionHeadingComponent,
  },
];
```

### DescriptionListBaseComponent

Abstract base class for description list components. Exposes optional `IDescriptionListOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IDescriptionListOptions`), `class` (`string`)

### DescriptionList Component

The `<smart-description-list>` component renders a list of label/value pairs (a `<dl>` with `<dt>`/`<dd>` rows) with optional title, description, per-item value/action template slots, and bottom attachments/footer slots. It is a wrapper that delegates to `DescriptionListStandardComponent` by default and supports an InjectionToken (`DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `DescriptionListComponent` (selector: `smart-description-list`)
**Default:** `DescriptionListStandardComponent` (selector: `smart-description-list-standard`)
**Token:** `DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN` — provide a `Type<DescriptionListBaseComponent>` to override the default.

#### Usage

```html
<!-- Title and items only -->
<smart-description-list
  [options]="{
    title: 'Applicant Information',
    items: [
      { label: 'Full name', value: 'Margot Foster' },
      { label: 'Application for', value: 'Backend Developer' },
    ],
  }"
/>

<!-- With description and templated value -->
<ng-template #salaryValue>
  <strong>$120,000</strong>
</ng-template>

<smart-description-list
  [options]="{
    title: 'Applicant Information',
    description: 'Personal details and application.',
    items: [
      { label: 'Full name', value: 'Margot Foster' },
      { label: 'Salary expectation', valueTpl: salaryValue },
    ],
  }"
/>

<!-- With per-item actions -->
<ng-template #updateAction>
  <button>Update</button>
</ng-template>

<smart-description-list
  [options]="{
    title: 'Applicant Information',
    items: [
      { label: 'Full name', value: 'Margot Foster', actionTpl: updateAction },
    ],
  }"
/>
```

#### IDescriptionListOptions

| Property         | Type                       | Default | Description                                              |
| ---------------- | -------------------------- | ------- | -------------------------------------------------------- |
| `title`          | `string`                   | -       | Heading title (rendered as `<h3>`)                       |
| `description`    | `string`                   | -       | Optional description string                              |
| `items`          | `IDescriptionListItem[]`   | -       | List of label/value pairs to render as `<dl>` rows       |
| `attachmentsTpl` | `TemplateRef<unknown>`     | -       | Bottom attachments slot (e.g. file lists)                |
| `footerTpl`      | `TemplateRef<unknown>`     | -       | Bottom footer slot (e.g. download link / call to action) |

#### IDescriptionListItem

| Property    | Type                   | Default | Description                                                       |
| ----------- | ---------------------- | ------- | ----------------------------------------------------------------- |
| `label`     | `string`               | -       | Term shown in `<dt>` (required)                                   |
| `value`     | `string`               | -       | Static value shown in `<dd>`. Ignored when `valueTpl` is provided |
| `valueTpl`  | `TemplateRef<unknown>` | -       | Template used to render the value inside `<dd>` (overrides `value`) |
| `actionTpl` | `TemplateRef<unknown>` | -       | Inline action template rendered in `<span class="action">`        |

The default `DescriptionListStandardComponent` consumes every property; a section is rendered only when its template/string is provided. Within an item, `valueTpl` takes precedence over `value` when both are set.

#### Overriding with Custom Implementation

```typescript
import { DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN,
    useValue: MyDescriptionListComponent,
  },
];
```

### CardHeadingBaseComponent

Abstract base class for card heading components. Exposes optional `ICardHeadingOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`ICardHeadingOptions`), `class` (`string`)

### CardHeading Component

The `<smart-card-heading>` component renders a small composable heading region for cards, with optional slots for avatar, title, description, meta, and actions. It can be used standalone or passed as the `headerTpl` value to `<smart-card>`. It is a wrapper that delegates to `CardHeadingStandardComponent` by default and supports an InjectionToken (`CARD_HEADING_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `CardHeadingComponent` (selector: `smart-card-heading`)
**Default:** `CardHeadingStandardComponent` (selector: `smart-card-heading-standard`)
**Token:** `CARD_HEADING_STANDARD_COMPONENT_TOKEN` — provide a `Type<CardHeadingBaseComponent>` to override the default.

#### Usage

```html
<!-- Title only -->
<smart-card-heading [options]="{ title: 'Job Postings' }" />

<!-- Title and description -->
<smart-card-heading
  [options]="{ title: 'Job Postings', description: 'Currently open' }"
/>

<!-- With actions -->
<ng-template #actions>
  <button>View all</button>
</ng-template>

<smart-card-heading
  [options]="{ title: 'Job Postings', actionsTpl: actions }"
/>
```

#### ICardHeadingOptions

| Property      | Type                   | Default | Description                                  |
| ------------- | ---------------------- | ------- | -------------------------------------------- |
| `title`       | `string`               | -       | Heading title (rendered as `<h3>`)           |
| `description` | `string`               | -       | Optional description string                  |
| `avatarTpl`   | `TemplateRef<unknown>` | -       | Avatar template rendered to the left         |
| `actionsTpl`  | `TemplateRef<unknown>` | -       | Actions / buttons template on the right      |
| `metaTpl`     | `TemplateRef<unknown>` | -       | Meta info template under the title           |

The default `CardHeadingStandardComponent` consumes every property; a section is rendered only when its template/string is provided.

#### Overriding with Custom Implementation

```typescript
import { CARD_HEADING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: CARD_HEADING_STANDARD_COMPONENT_TOKEN,
    useValue: MyCardHeadingComponent,
  },
];
```

### PageHeadingBaseComponent

Abstract base class for page heading components. Exposes optional `IPageHeadingOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IPageHeadingOptions`), `class` (`string`)

### PageHeading Component

The `<smart-page-heading>` component renders a composable page heading region with optional slots for breadcrumbs, banner image, avatar, logo, title, subtitle, meta, stats, actions, and filters. It is independent of `<smart-page>` and can be used standalone or inside any layout. It is a wrapper that delegates to `PageHeadingStandardComponent` by default and supports an InjectionToken (`PAGE_HEADING_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `PageHeadingComponent` (selector: `smart-page-heading`)
**Default:** `PageHeadingStandardComponent` (selector: `smart-page-heading-standard`)
**Token:** `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` — provide a `Type<PageHeadingBaseComponent>` to override the default.

#### Usage

```html
<!-- Title only -->
<smart-page-heading [options]="{ title: 'Back End Developer' }" />

<!-- With actions -->
<ng-template #actions>
  <button>Edit</button>
</ng-template>

<smart-page-heading
  [options]="{ title: 'Back End Developer', actionsTpl: actions }"
/>

<!-- With breadcrumbs, meta and avatar -->
<ng-template #crumbs>
  <a routerLink="/jobs">Jobs</a>
</ng-template>

<ng-template #meta>
  <span>Full-time</span>
</ng-template>

<ng-template #avatar>
  <img src="avatar.jpg" alt="" />
</ng-template>

<smart-page-heading
  [options]="{
    title: 'Back End Developer',
    subtitle: 'Engineering',
    breadcrumbsTpl: crumbs,
    metaTpl: meta,
    avatarTpl: avatar,
  }"
/>
```

#### IPageHeadingOptions

| Property         | Type                   | Default | Description                                  |
| ---------------- | ---------------------- | ------- | -------------------------------------------- |
| `title`          | `string`               | -       | Heading title (rendered as `<h1>`)           |
| `subtitle`       | `string`               | -       | Subtitle string                              |
| `breadcrumbsTpl` | `TemplateRef<unknown>` | -       | Breadcrumb navigation template               |
| `metaTpl`        | `TemplateRef<unknown>` | -       | Meta tags / labels template                  |
| `avatarTpl`      | `TemplateRef<unknown>` | -       | User/profile avatar template                 |
| `bannerTpl`      | `TemplateRef<unknown>` | -       | Banner image template                        |
| `actionsTpl`     | `TemplateRef<unknown>` | -       | Actions / button group template              |
| `statsTpl`       | `TemplateRef<unknown>` | -       | Stats list template                          |
| `logoTpl`        | `TemplateRef<unknown>` | -       | Organization logo template                   |
| `filtersTpl`     | `TemplateRef<unknown>` | -       | Filters / chips template                     |

The default `PageHeadingStandardComponent` consumes every property and renders a slot only when its corresponding template/string is provided.

#### Overriding with Custom Implementation

```typescript
import { PAGE_HEADING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: PAGE_HEADING_STANDARD_COMPONENT_TOKEN,
    useValue: MyPageHeadingComponent,
  },
];
```

### AlertBaseComponent

Abstract base class for confirm dialogs. Exposes a required `options` input (`IAlertOptions`), `cssClass` (alias `class`), a `dismissed` output (`IAlertButton | null`), the computed `buttons()` / `cancelButton()`, and the behaviour a template binds: `invoke(button)` runs the button handler and emits `dismissed` (a handler returning `false` keeps the dialog open), `cancel()` emits the cancel button or `null`, `onEscape()`, `onBackdropClick(event)` (honours `options.backdropDismiss`), `trapFocus(event, container)` and `buttonClasses(button)`.

**Inputs:** `options` (`IAlertOptions`), `class` (`string`)
**Outputs:** `dismissed` (`IAlertButton | null`)

### Alert Component

The `<smart-alert>` component renders a confirm dialog (`role="alertdialog"`, `aria-modal`, labelled by its header) with a header, optional sub-header and message, and one button per `options.buttons`. It is what `AlertService.show()` opens. It is a wrapper that delegates to `AlertStandardComponent` by default and supports an InjectionToken (`ALERT_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `AlertComponent` (selector: `smart-alert`)
**Default:** `AlertStandardComponent` (selector: `smart-alert-standard`)
**Token:** `ALERT_STANDARD_COMPONENT_TOKEN` — provide a `Type<AlertBaseComponent>` to override the default.

#### Usage

```typescript
// From code, through AlertService (provided by SharedServicesModule).
// The promise resolves with the chosen button after its handler ran.
const button = await this.alertService.show({
  header: 'Delete this record?',
  message: 'This cannot be undone.',
  backdropDismiss: false,
  buttons: [
    { text: 'Cancel', role: 'cancel' },
    { text: 'Delete', role: 'destructive', handler: () => this.remove(id) },
  ],
});
```

```html
<!-- Inline, when the alert belongs to a template -->
<smart-alert [options]="options" (dismissed)="onDismissed($event)" />
```

`AlertService.show()` needs no host element: it creates the component with `createComponent`, attaches the view to `ApplicationRef`, appends it to `document.body`, moves focus into the dialog and returns focus to the trigger when the dialog closes. `Escape` cancels; a click on the backdrop cancels unless `backdropDismiss` is `false`.

#### IAlertOptions

| Property          | Type             | Default | Description                                       |
| ----------------- | ---------------- | ------- | ------------------------------------------------- |
| `header`          | `string`         | -       | Dialog heading (accessible name)                  |
| `subHeader`       | `string`         | -       | Secondary heading                                 |
| `message`         | `string`         | -       | Body text (accessible description)                |
| `backdropDismiss` | `boolean`        | `true`  | Whether a click on the backdrop cancels the alert |
| `buttons`         | `IAlertButton[]` | `[]`    | Buttons rendered in order                         |

#### IAlertButton

| Property   | Type                                                              | Default | Description                                                   |
| ---------- | ----------------------------------------------------------------- | ------- | ------------------------------------------------------------- |
| `text`     | `string`                                                          | -       | Visible label                                                 |
| `role`     | `'cancel' \| 'destructive' \| string`                             | -       | `cancel` closes without a handler; `destructive` is red       |
| `cssClass` | `string \| string[]`                                              | -       | Extra classes appended to the button                          |
| `handler`  | `(value?: unknown) => boolean \| void \| Record<string, unknown>` | -       | Runs before the dialog closes; return `false` to keep it open |

#### Overriding with Custom Implementation

```typescript
import { ALERT_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: ALERT_STANDARD_COMPONENT_TOKEN, useValue: MyAlertComponent },
];
```

> Register the token at the application root (or in the module that provides `AlertService`) so `AlertService.show()` renders the custom implementation too; a token provided deeper in the tree only affects `<smart-alert>` instances there.

### ModalBaseComponent

Abstract base class for modal/dialog components. Exposes two-way `open` (`ModelSignal<boolean>`), optional `title` / `description`, `actions` (`InputSignal<IModalAction[]>`), optional `IModalOptions`, `cssClass` (alias `class`), `actionClick` and `closed` outputs, plus `invokeAction(actionId)` (emits `actionClick`) and `close()` (sets `open` to `false` and emits `closed`).

**Inputs:** `open` (`ModelSignal<boolean>`), `title` (`string`), `description` (`string`), `actions` (`IModalAction[]`), `options` (`IModalOptions`), `class` (`string`)
**Outputs:** `actionClick` (`{ actionId: string }`), `closed` (`void`)

### Modal Component

The `<smart-modal>` component renders a dialog overlay with optional title, description, projected body content, and a list of action buttons. It is a wrapper that delegates to `ModalStandardComponent` by default and supports an InjectionToken (`MODAL_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ModalComponent` (selector: `smart-modal`)
**Default:** `ModalStandardComponent` (selector: `smart-modal-standard`)
**Token:** `MODAL_STANDARD_COMPONENT_TOKEN` — provide a `Type<ModalBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic with title + actions -->
<smart-modal
  [(open)]="confirmOpen"
  title="Deactivate account"
  description="This action cannot be undone."
  [actions]="[
    { id: 'cancel', label: 'Cancel', variant: 'secondary' },
    { id: 'confirm', label: 'Deactivate', variant: 'danger' },
  ]"
  (actionClick)="onAction($event)"
/>

<!-- With dismiss button + projected body -->
<smart-modal [(open)]="open" [options]="{ withDismiss: true }">
  <form>
    <!-- custom body -->
  </form>
</smart-modal>
```

#### IModalAction

| Property  | Type                                       | Default     | Description                              |
| --------- | ------------------------------------------ | ----------- | ---------------------------------------- |
| `id`      | `string`                                   | *required*  | Identifier emitted via `actionClick`     |
| `label`   | `string`                                   | *required*  | Visible button label                     |
| `variant` | `'primary' \| 'secondary' \| 'danger'`     | `'primary'` | Visual variant (consumed by custom impl) |

#### IModalOptions

| Property      | Type                                                          | Default | Description                                                  |
| ------------- | ------------------------------------------------------------- | ------- | ------------------------------------------------------------ |
| `variant`     | `'centered' \| 'wide' \| 'alert' \| 'left-aligned-buttons' \| 'bottom-sheet'` | -       | Layout variant; the standard reads only `'bottom-sheet'` (docked to the bottom of the viewport) |
| `withDismiss` | `boolean`                                                     | `false` | Show top-right dismiss `×` button                            |
| `footerStyle` | `'default' \| 'gray'`                                         | -       | Footer styling variant (consumed by custom impls)            |
| `ariaLabel`   | `string`                                                      | -       | Accessible label rendered as `aria-label` (when no `title`)  |

The default `ModalStandardComponent` consumes `withDismiss`, `ariaLabel` and the `'bottom-sheet'` variant, which `ModalService` sets for `mode: 'bottom'`. The preset reads every `variant` and `footerStyle`; a custom implementation registered via `MODAL_STANDARD_COMPONENT_TOKEN` may read them too.

#### Overriding with Custom Implementation

```typescript
import { MODAL_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: MODAL_STANDARD_COMPONENT_TOKEN, useValue: MyModalComponent },
];
```

> Content projected into `<smart-modal>` reaches a custom modal registered via the token too: the wrapper passes it to the custom component's default `<ng-content>` slot, wrapped in one `display: contents` element (so selectors on the slot's parent such as `space-y-*` or `> *` do not reach the projected nodes).

### MultiColumnLayoutBaseComponent

Abstract base class for multi-column layout components. Exposes optional `IMultiColumnLayoutOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IMultiColumnLayoutOptions`), `class` (`string`)

### MultiColumnLayout Component

The `<smart-multi-column-layout>` component renders a three-column application shell — a left navigation `<aside>`, a main content region, and a right secondary `<aside>`, with an optional top header. It is a wrapper that delegates to `MultiColumnLayoutStandardComponent` by default and supports an InjectionToken (`MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `MultiColumnLayoutComponent` (selector: `smart-multi-column-layout`)
**Default:** `MultiColumnLayoutStandardComponent` (selector: `smart-multi-column-layout-standard`)
**Token:** `MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN` — provide a `Type<MultiColumnLayoutBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic with main content -->
<smart-multi-column-layout>
  <h1>Hello</h1>
</smart-multi-column-layout>

<!-- With nav and secondary -->
<ng-template #nav>
  <a routerLink="/">Inbox</a>
</ng-template>

<ng-template #secondary>
  <p>Filters</p>
</ng-template>

<smart-multi-column-layout
  [options]="{ navTpl: nav, secondaryTpl: secondary }"
>
  <p>Email content</p>
</smart-multi-column-layout>

<!-- With top header -->
<ng-template #header>
  <h1>Inbox</h1>
</ng-template>

<smart-multi-column-layout
  [options]="{ navTpl: nav, secondaryTpl: secondary, headerTpl: header }"
>
  <p>Email content</p>
</smart-multi-column-layout>
```

#### IMultiColumnLayoutOptions

| Property         | Type                          | Default | Description                                                  |
| ---------------- | ----------------------------- | ------- | ------------------------------------------------------------ |
| `title`          | `string`                      | -       | Optional layout title                                        |
| `navTpl`         | `TemplateRef<unknown>`        | -       | Template projected into the left `<aside class="nav">`       |
| `secondaryTpl`   | `TemplateRef<unknown>`        | -       | Template projected into the right `<aside class="secondary">`|
| `headerTpl`      | `TemplateRef<unknown>`        | -       | Template projected into a top `<header>` block               |
| `width`          | `'full' \| 'constrained'`     | -       | Hint for max-width container size used by custom variants    |
| `secondaryWidth` | `'sm' \| 'md' \| 'lg'`        | -       | Hint for secondary column width used by custom variants      |

The default `MultiColumnLayoutStandardComponent` consumes `navTpl`, `secondaryTpl`, and `headerTpl`. `title`, `width`, and `secondaryWidth` are intended for custom implementations registered via `MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN,
    useValue: MyMultiColumnLayoutComponent,
  },
];
```

### SidebarLayoutBaseComponent

Abstract base class for sidebar layout components. Exposes optional `ISidebarLayoutOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`ISidebarLayoutOptions`), `class` (`string`)

### SidebarLayout Component

The `<smart-sidebar-layout>` component renders a two-column application shell with a sidebar (left or right) and a main content region, plus an optional top header. It is a wrapper that delegates to `SidebarLayoutStandardComponent` by default and supports an InjectionToken (`SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `SidebarLayoutComponent` (selector: `smart-sidebar-layout`)
**Default:** `SidebarLayoutStandardComponent` (selector: `smart-sidebar-layout-standard`)
**Token:** `SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN` — provide a `Type<SidebarLayoutBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic with main content -->
<smart-sidebar-layout>
  <h1>Hello</h1>
</smart-sidebar-layout>

<!-- With sidebar template -->
<ng-template #sidebar>
  <a routerLink="/">Dashboard</a>
</ng-template>

<smart-sidebar-layout [options]="{ sidebarTpl: sidebar }">
  <p>Main content</p>
</smart-sidebar-layout>

<!-- Right-positioned sidebar -->
<smart-sidebar-layout
  [options]="{ sidebarTpl: sidebar, sidebarPosition: 'right' }"
>
  <p>Main content</p>
</smart-sidebar-layout>

<!-- With top header -->
<ng-template #header>
  <h1>Dashboard</h1>
</ng-template>

<smart-sidebar-layout [options]="{ sidebarTpl: sidebar, headerTpl: header }">
  <p>Main content</p>
</smart-sidebar-layout>
```

#### ISidebarLayoutOptions

| Property           | Type                          | Default  | Description                                                  |
| ------------------ | ----------------------------- | -------- | ------------------------------------------------------------ |
| `title`            | `string`                      | -        | Optional layout title                                        |
| `sidebarTpl`       | `TemplateRef<unknown>`        | -        | Template projected into the `<aside>` region                 |
| `headerTpl`        | `TemplateRef<unknown>`        | -        | Template projected into a top `<header>` block               |
| `sidebarPosition`  | `'left' \| 'right'`           | `'left'` | Sidebar position relative to main content                    |
| `mobileBreakpoint` | `'sm' \| 'md' \| 'lg'`        | -        | Hint for the breakpoint at which sidebar collapses to drawer |
| `condensed`        | `boolean`                     | -        | Hint for compact (rail) sidebar variant                      |

The default `SidebarLayoutStandardComponent` consumes `sidebarTpl`, `headerTpl`, and `sidebarPosition`. `title`, `mobileBreakpoint`, and `condensed` are intended for custom implementations registered via `SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN,
    useValue: MySidebarLayoutComponent,
  },
];
```

### SidebarNavigationBaseComponent

Abstract base class for sidebar navigation components. Exposes optional `ISidebarNavOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`ISidebarNavOptions`), `class` (`string`)
**Outputs:** `itemClick` (`ISidebarNavItemClick`), `itemToggle` (`ISidebarNavItemToggle`)

### SidebarNavigation Component

The `<smart-sidebar-navigation>` component renders an application sidebar with optional logo, vertical navigation groups, expandable sub-sections, and a profile footer. It is a wrapper that delegates to `SidebarNavigationStandardComponent` by default and supports an InjectionToken (`SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `SidebarNavigationComponent` (selector: `smart-sidebar-navigation`)
**Default:** `SidebarNavigationStandardComponent` (selector: `smart-sidebar-navigation-standard`)
**Token:** `SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN` — provide a `Type<SidebarNavigationBaseComponent>` to override the default.

#### Usage

```html
<!-- Flat list with logo and profile -->
<smart-sidebar-navigation
  [options]="{
    logo: { url: '/logo.svg', alt: 'Acme' },
    items: [
      { id: 'dashboard', label: 'Dashboard', href: '/', current: true, badge: 5 },
      { id: 'team', label: 'Team', href: '/team' },
    ],
    profile: { name: 'Tom Cook', avatarUrl: '/avatar.jpg', href: '/me' },
  }"
/>

<!-- With expandable sections -->
<smart-sidebar-navigation
  [options]="{
    items: [
      { id: 'dashboard', label: 'Dashboard', href: '/' },
      {
        id: 'teams',
        label: 'Teams',
        expandable: true,
        children: [{ id: 'eng', label: 'Engineering', href: '/eng' }],
      },
    ],
  }"
  (itemToggle)="onToggle($event)"
/>
```

#### ISidebarNavOptions

| Property    | Type                                   | Default | Description                                                |
| ----------- | -------------------------------------- | ------- | ---------------------------------------------------------- |
| `layout`    | `SmartSidebarNavLayout`                | -       | Visual variant (`light`, `dark`, `brand`, etc.)            |
| `ariaLabel` | `string`                               | -       | Aria label on `<nav>` (defaults to `"Sidebar"`)            |
| `logo`      | `ISidebarNavLogo`                      | -       | Optional top logo (image, dark variant, link, or template) |
| `items`     | `ISidebarNavItem[]`                    | -       | Top-level items (rendered as a leading anonymous group)    |
| `groups`    | `ISidebarNavGroup[]`                   | -       | Named groups with optional title                           |
| `profile`   | `ISidebarNavProfile`                   | -       | Optional profile footer (avatar + name + href)             |

`ISidebarNavItem` supports `id`, `label`, `href`, `current`, `badge`, `iconTpl`, `initial` (for team-style entries), `expandable`, `expanded`, and `children`. When `expandable` is `true`, the item renders as a toggle button with collapsible `children`.

#### Overriding with Custom Implementation

```typescript
import { SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN,
    useValue: MySidebarNavigationComponent,
  },
];
```

### StackedLayoutBaseComponent

Abstract base class for stacked layout components. Exposes optional `IStackedLayoutOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IStackedLayoutOptions`), `class` (`string`)

### StackedLayout Component

The `<smart-stacked-layout>` component renders a top-to-bottom application shell with a top navigation bar, an optional page header section, and a main content region. It is a wrapper that delegates to `StackedLayoutStandardComponent` by default and supports an InjectionToken (`STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `StackedLayoutComponent` (selector: `smart-stacked-layout`)
**Default:** `StackedLayoutStandardComponent` (selector: `smart-stacked-layout-standard`)
**Token:** `STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN` — provide a `Type<StackedLayoutBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic with main content -->
<smart-stacked-layout>
  <h1>Hello</h1>
</smart-stacked-layout>

<!-- With navigation template -->
<ng-template #nav>
  <a routerLink="/">Dashboard</a>
</ng-template>

<smart-stacked-layout [options]="{ navTpl: nav }">
  <p>Main content</p>
</smart-stacked-layout>

<!-- With page header -->
<ng-template #header>
  <h1>Dashboard</h1>
</ng-template>

<smart-stacked-layout [options]="{ navTpl: nav, headerTpl: header }">
  <p>Main content</p>
</smart-stacked-layout>

<!-- With external class -->
<smart-stacked-layout class="smart:bg-gray-50">
  <p>Main content</p>
</smart-stacked-layout>
```

#### IStackedLayoutOptions

| Property         | Type                                 | Default | Description                                                   |
| ---------------- | ------------------------------------ | ------- | ------------------------------------------------------------- |
| `title`          | `string`                             | -       | Optional layout title                                         |
| `navTpl`         | `TemplateRef<unknown>`               | -       | Template projected into the top `<nav>`                       |
| `headerTpl`      | `TemplateRef<unknown>`               | -       | Template projected into a secondary `<header>` block          |
| `containerWidth` | `'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | -   | Hint for max-width container size used by custom variants     |

The default `StackedLayoutStandardComponent` consumes `navTpl` and `headerTpl`. `title` and `containerWidth` are intended for custom implementations registered via `STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN,
    useValue: MyStackedLayoutComponent,
  },
];
```

### StackedListBaseComponent

Abstract base class for stacked list components. Exposes optional `IStackedListOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IStackedListOptions`), `class` (`string`)

### StackedList Component

The `<smart-stacked-list>` component renders a vertical list of records with optional title, description, per-item icon/avatar, link, badge, action template, and bottom footer slot. It is a wrapper that delegates to `StackedListStandardComponent` by default and supports an InjectionToken (`STACKED_LIST_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `StackedListComponent` (selector: `smart-stacked-list`)
**Default:** `StackedListStandardComponent` (selector: `smart-stacked-list-standard`)
**Preset variation:** `StackedListPresetComponent` (selector: `smart-stacked-list-preset`): a styled Tailwind drop-in replacement with avatar or icon tiles, title/description/meta lines, trailing badge and action slots, and `dark:` styling. It honours `withDividers` (hairlines between rows) and `fullWidthOnMobile` (a card that bleeds to the screen edge below `sm` and is rounded from `sm` up). Register it through the token to restyle every `<smart-stacked-list>`:

```typescript
providers: [
  {
    provide: STACKED_LIST_STANDARD_COMPONENT_TOKEN,
    useValue: StackedListPresetComponent,
  },
];
```

**Token:** `STACKED_LIST_STANDARD_COMPONENT_TOKEN` — provide a `Type<StackedListBaseComponent>` to override the default.

#### Usage

```html
<!-- Title and items only -->
<smart-stacked-list
  [options]="{
    title: 'Team members',
    items: [
      { id: '1', title: 'Lindsay Walton', description: 'Front-end Developer' },
      { id: '2', title: 'Courtney Henry', description: 'Designer' },
      { id: '3', title: 'Tom Cook', description: 'Director, Product' },
    ],
  }"
/>

<!-- With description and links -->
<smart-stacked-list
  [options]="{
    title: 'Recent files',
    description: 'Files updated in the last week.',
    items: [
      { title: 'Annual report 2025.pdf', href: '/files/annual-report' },
      { title: 'Brand guidelines.pdf', href: '/files/brand-guidelines' },
    ],
  }"
/>

<!-- With avatars, meta and badge slot -->
<ng-template #activeBadge>
  <span class="badge-active">Active</span>
</ng-template>

<smart-stacked-list
  [options]="{
    title: 'Team members',
    items: [
      {
        title: 'Lindsay Walton',
        description: 'Front-end Developer',
        meta: 'Joined 2026-01-12',
        avatarUrl: '/img/lindsay.jpg',
        badgeTpl: activeBadge,
      },
    ],
  }"
/>

<!-- With per-item action and footer slot -->
<ng-template #removeAction>
  <button>Remove</button>
</ng-template>

<ng-template #footer>
  <a href="#">Load more &rarr;</a>
</ng-template>

<smart-stacked-list
  [options]="{
    title: 'Team members',
    items: [
      { title: 'Lindsay Walton', actionTpl: removeAction },
      { title: 'Courtney Henry', actionTpl: removeAction },
    ],
    footerTpl: footer,
  }"
/>
```

#### IStackedListOptions

| Property            | Type                       | Default | Description                                                |
| ------------------- | -------------------------- | ------- | ---------------------------------------------------------- |
| `title`             | `string`                   | -       | Optional list title rendered as `<h3 class="title">`       |
| `description`       | `string`                   | -       | Optional description rendered as `<p class="description">` |
| `items`             | `IStackedListItem[]`       | -       | List entries to render as `<li class="item">`              |
| `withDividers`      | `boolean`                  | -       | Render dividers between items (preset; ignored by standard) |
| `fullWidthOnMobile` | `boolean`                  | -       | Stretch the list edge-to-edge on mobile (preset; ignored by standard) |
| `emptyTpl`          | `TemplateRef<unknown>`     | -       | Template rendered when items is empty                      |
| `footerTpl`         | `TemplateRef<unknown>`     | -       | Bottom footer slot                                         |

#### IStackedListItem

| Property      | Type                   | Default | Description                                              |
| ------------- | ---------------------- | ------- | -------------------------------------------------------- |
| `id`          | `string`               | -       | Optional stable id used as track key                     |
| `title`       | `string`               | -       | **Required** title text                                  |
| `description` | `string`               | -       | Optional secondary line                                  |
| `meta`        | `string`               | -       | Optional tertiary line (e.g. timestamp)                  |
| `avatarUrl`   | `string`               | -       | Avatar image URL (rendered as `<img class="avatar">`)    |
| `iconTpl`     | `TemplateRef<unknown>` | -       | Custom icon template (takes precedence over `avatarUrl`) |
| `href`        | `string`               | -       | When set, title is rendered as `<a class="title">`       |
| `badgeTpl`    | `TemplateRef<unknown>` | -       | Badge slot rendered next to the body                     |
| `actionTpl`   | `TemplateRef<unknown>` | -       | Trailing action slot (e.g. button)                       |
| `ariaLabel`   | `string`               | -       | Accessible label rendered on the `<li>`                  |

The default `StackedListStandardComponent` renders every content property but ignores the `withDividers` / `fullWidthOnMobile` layout hints, which `StackedListPresetComponent` honours. A section is rendered only when its template/string is provided. Within an item, `iconTpl` takes precedence over `avatarUrl` when both are set.

#### Overriding with Custom Implementation

```typescript
import { STACKED_LIST_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: STACKED_LIST_STANDARD_COMPONENT_TOKEN,
    useValue: MyStackedListComponent,
  },
];
```

### StatsBaseComponent

Abstract base class for stats components. Exposes optional `IStatsOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IStatsOptions`), `class` (`string`)

### Stats Component

The `<smart-stats>` component renders a list of statistic cards (label/value pairs with optional previous value, change indicator, trend, icon, and action slot). It is a wrapper that delegates to `StatsStandardComponent` by default and supports an InjectionToken (`STATS_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `StatsComponent` (selector: `smart-stats`)
**Default:** `StatsStandardComponent` (selector: `smart-stats-standard`)
**Token:** `STATS_STANDARD_COMPONENT_TOKEN` — provide a `Type<StatsBaseComponent>` to override the default.

#### Usage

```html
<!-- Simple stats -->
<smart-stats
  [options]="{
    items: [
      { label: 'Number of deploys', value: 405 },
      { label: 'Average deploy time', value: '3.65 mins' },
      { label: 'Success rate', value: '98.5%' },
    ],
  }"
/>

<!-- With title and trending changes -->
<smart-stats
  [options]="{
    title: 'Last 30 days',
    items: [
      { label: 'Revenue', value: '$405,091', change: '+4.75%', trend: 'up' },
      { label: 'Overdue invoices', value: '$12,787', change: '+54.02%', trend: 'down' },
    ],
  }"
/>

<!-- With previous value -->
<smart-stats
  [options]="{
    title: 'Last 30 days',
    items: [
      { label: 'Total Subscribers', value: '71,897', previousValue: '70,946', change: '+12%', trend: 'up' },
    ],
  }"
/>

<!-- With icon and action slots -->
<ng-template #icon>
  <svg viewBox="0 0 24 24"><!-- ... --></svg>
</ng-template>

<ng-template #viewAll>
  <a href="#">View all</a>
</ng-template>

<smart-stats
  [options]="{
    items: [
      { label: 'Total Subscribers', value: '71,897', iconTpl: icon, actionTpl: viewAll },
    ],
  }"
/>
```

#### IStatsOptions

| Property  | Type             | Default | Description                                                |
| --------- | ---------------- | ------- | ---------------------------------------------------------- |
| `title`   | `string`         | -       | Optional heading rendered above the items                  |
| `items`   | `IStatItem[]`    | —       | Required array of stat items                               |
| `columns` | `1 \| 2 \| 3 \| 4` | -     | Layout hint for custom implementations (ignored by default) |

#### IStatItem

| Property        | Type                                | Default | Description                                                              |
| --------------- | ----------------------------------- | ------- | ------------------------------------------------------------------------ |
| `label`         | `string`                            | -       | Term shown in `<dt>` (required)                                          |
| `value`         | `string \| number`                  | -       | Value shown in `<dd class="value">` (required)                           |
| `previousValue` | `string \| number`                  | -       | Optional previous value shown in `<dd class="previous">`                 |
| `change`        | `string`                            | -       | Optional change indicator (e.g. `'+4.75%'`)                              |
| `trend`         | `'up' \| 'down' \| 'neutral'`       | -       | Trend exposed as `data-trend` attribute on `<dd class="change">`         |
| `iconTpl`       | `TemplateRef<unknown>`              | -       | Icon template rendered in `<div class="icon">`                           |
| `actionTpl`     | `TemplateRef<unknown>`              | -       | Action template rendered in `<div class="action">`                       |
| `ariaLabel`     | `string`                            | -       | Accessible label rendered as `aria-label` on the item                    |

The default `StatsStandardComponent` renders a section only when its corresponding template/string is provided.

#### Overriding with Custom Implementation

```typescript
import { STATS_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: STATS_STANDARD_COMPONENT_TOKEN, useValue: MyStatsComponent },
];
```

### TableBaseComponent

Abstract base class for table components. Exposes optional `ITableOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`ITableOptions`), `class` (`string`)

### Table Component

The `<smart-table>` component renders a tabular data view with optional title, description, toolbar slot, columns + rows, optional checkbox column, custom per-cell/per-header templates, an empty state slot, and a bottom footer slot. It is a wrapper that delegates to `TableStandardComponent` by default and supports an InjectionToken (`TABLE_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `TableComponent` (selector: `smart-table`)
**Default:** `TableStandardComponent` (selector: `smart-table-standard`)
**Preset variation:** `TablePresetComponent` (selector: `smart-table-preset`) — styled Tailwind UI drop-in replacement that honours every layout hint the standard ignores: `striped` zebra rows, a `withBorder` card frame, a `stickyHeader`, per-column `align`, and `sortable` columns (client-side sort with `aria-sort`). It also adds select-all and a selected-row highlight to the checkbox column, and `dark:` styling throughout. Register it on the token to restyle every `<smart-table>`:

```typescript
providers: [
  { provide: TABLE_STANDARD_COMPONENT_TOKEN, useValue: TablePresetComponent },
];
```

**Token:** `TABLE_STANDARD_COMPONENT_TOKEN` — provide a `Type<TableBaseComponent>` to override the default.

#### Usage

```html
<!-- Simple columns + rows -->
<smart-table
  [options]="{
    title: 'Users',
    columns: [
      { key: 'name', label: 'Name' },
      { key: 'role', label: 'Role' },
      { key: 'email', label: 'Email' },
    ],
    rows: [
      { name: 'Lindsay Walton', role: 'Front-end', email: 'lindsay@x.com' },
      { name: 'Courtney Henry', role: 'Designer', email: 'courtney@x.com' },
    ],
  }"
/>

<!-- With checkbox column -->
<smart-table
  [options]="{
    columns: [
      { key: 'name', label: 'Name' },
      { key: 'role', label: 'Role' },
    ],
    rows: [{ name: 'Lindsay Walton', role: 'Front-end' }],
    withCheckboxes: true,
  }"
/>

<!-- With per-cell template -->
<ng-template #emailCell let-row>
  <a [attr.href]="'mailto:' + row.email">{{ row.email }}</a>
</ng-template>

<smart-table
  [options]="{
    columns: [
      { key: 'name', label: 'Name' },
      { key: 'email', label: 'Email', cellTpl: emailCell },
    ],
    rows: [{ name: 'Lindsay Walton', email: 'lindsay@x.com' }],
  }"
/>

<!-- With empty state and footer -->
<ng-template #emptyMsg>
  <span>Brak wyników</span>
</ng-template>
<ng-template #footer>
  <a href="#">Load more &rarr;</a>
</ng-template>

<smart-table
  [options]="{
    columns: [{ key: 'name', label: 'Name' }],
    rows: [],
    emptyTpl: emptyMsg,
    footerTpl: footer,
  }"
/>
```

#### ITableOptions

| Property         | Type                   | Default | Description                                              |
| ---------------- | ---------------------- | ------- | -------------------------------------------------------- |
| `title`          | `string`               | -       | Optional table title rendered as `<h3 class="title">`    |
| `description`    | `string`               | -       | Optional description rendered as `<p class="description">` |
| `columns`        | `ITableColumn[]`       | -       | Column definitions (rendered as `<thead><th>`)           |
| `rows`           | `TableRow[]`           | -       | Row data (each row read via `row[col.key]`)              |
| `striped`        | `boolean`              | -       | Zebra-stripe rows (preset; ignored by standard)          |
| `stickyHeader`   | `boolean`              | -       | Sticky `<thead>` (preset; ignored by standard)           |
| `withCheckboxes` | `boolean`              | -       | Render an extra checkbox column                          |
| `withBorder`     | `boolean`              | -       | Bordered card (preset; ignored by standard)              |
| `emptyTpl`       | `TemplateRef<unknown>` | -       | Template rendered when `rows` is empty                   |
| `footerTpl`      | `TemplateRef<unknown>` | -       | Bottom footer slot                                       |
| `toolbarTpl`     | `TemplateRef<unknown>` | -       | Top toolbar slot rendered above `<table>`                |

#### ITableColumn

| Property    | Type                              | Default  | Description                                              |
| ----------- | --------------------------------- | -------- | -------------------------------------------------------- |
| `key`       | `string`                          | -        | **Required** key used to read `row[key]`                 |
| `label`     | `string`                          | -        | Header label (falls back to `key` if missing)            |
| `align`     | `'left' \| 'center' \| 'right'`   | `'left'` | Alignment hint (set on `data-align` attribute)           |
| `sortable`  | `boolean`                         | -        | Client-side sortable heading (preset; ignored by standard) |
| `cellTpl`   | `TemplateRef<unknown>`            | -        | Custom cell template (`{ $implicit: row, column: col }`) |
| `headerTpl` | `TemplateRef<unknown>`            | -        | Custom header template                                   |
| `ariaLabel` | `string`                          | -        | Accessible label rendered on `<th>`                      |

The default `TableStandardComponent` consumes every property; a section is rendered only when its template/string is provided. `striped`, `stickyHeader`, `withBorder` and `sortable` are hints for custom implementations registered via `TABLE_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { TABLE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: TABLE_STANDARD_COMPONENT_TOKEN, useValue: MyTableComponent },
];
```

### TextareaBaseComponent

Abstract base class for textarea components. Exposes `value` (two-way `ModelSignal<string>`), `placeholder`, `disabled`, optional `ITextareaOptions`, `cssClass` (alias `class`), and an `actionClick` output.

**Inputs:** `value` (`ModelSignal<string>`), `placeholder` (`string`), `disabled` (`boolean`), `options` (`ITextareaOptions`), `class` (`string`)
**Outputs:** `actionClick` (`ITextareaActionClick`)

### Textarea Component

The `<smart-textarea>` component renders a multi-line text input with optional label, action buttons, avatar/toolbar/preview/footer slots. It is a wrapper that delegates to `TextareaStandardComponent` by default and supports an InjectionToken (`TEXTAREA_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `TextareaComponent` (selector: `smart-textarea`)
**Default:** `TextareaStandardComponent` (selector: `smart-textarea-standard`)
**Preset variation:** `TextareaPresetComponent` (selector: `smart-textarea-preset`) — styled drop-in replacement that honours `options.variant` (**simple / with-avatar-actions / with-underline / with-pill-actions / with-preview**, default `'simple'`), `autoFocus`, a `maxLength` character counter and per-variant `primary` / `secondary` / `ghost` action buttons, with `dark:` styling. Register through the token to restyle every `<smart-textarea>`:

```typescript
providers: [
  { provide: TEXTAREA_STANDARD_COMPONENT_TOKEN, useValue: TextareaPresetComponent },
];
```

**Token:** `TEXTAREA_STANDARD_COMPONENT_TOKEN` — provide a `Type<TextareaBaseComponent>` to override the default.

#### Usage

```html
<smart-textarea [(value)]="comment" placeholder="Add your comment..." />

<smart-textarea [(value)]="bio" [options]="{ label: 'Bio', rows: 6 }" />

<smart-textarea
  [(value)]="message"
  [options]="{
    rows: 4,
    maxLength: 280,
    actions: [
      { id: 'cancel', label: 'Cancel', variant: 'ghost' },
      { id: 'submit', label: 'Send', variant: 'primary' },
    ],
  }"
  (actionClick)="onAction($event)"
/>

<smart-textarea [(value)]="readonly" [disabled]="true" />
```

#### ITextareaOptions

| Property      | Type                       | Default | Description                                              |
| ------------- | -------------------------- | ------- | -------------------------------------------------------- |
| `rows`        | `number`                   | `3`     | Number of `<textarea>` rows                              |
| `maxLength`   | `number`                   | -       | Max characters (`maxlength` attr)                        |
| `variant`     | `SmartTextareaVariant`     | -       | Layout; honoured by the preset, ignored by the standard  |
| `label`       | `string`                   | -       | Render `<label>` above textarea                          |
| `name`        | `string`                   | -       | Form `name` attribute                                    |
| `required`    | `boolean`                  | -       | Set `required` attribute                                 |
| `autoFocus`   | `boolean`                  | -       | Focus on render; honoured by the preset                  |
| `ariaLabel`   | `string`                   | -       | Accessible label                                         |
| `actions`     | `ITextareaAction[]`        | -       | Render action buttons below textarea                     |
| `avatarTpl`   | `TemplateRef<unknown>`     | -       | Avatar slot                                              |
| `toolbarTpl`  | `TemplateRef<unknown>`     | -       | Toolbar slot                                             |
| `previewTpl`  | `TemplateRef<unknown>`     | -       | Preview slot                                             |
| `footerTpl`   | `TemplateRef<unknown>`     | -       | Footer slot                                              |

#### Outputs

- `actionClick: { actionId, value }` — emitted when an action button is clicked (unless disabled)

#### Overriding with Custom Implementation

```typescript
import { TEXTAREA_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: TEXTAREA_STANDARD_COMPONENT_TOKEN, useValue: MyTextareaComponent },
];
```

### GridListBaseComponent

Abstract base class for grid list components. Exposes optional `IGridListOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IGridListOptions`), `class` (`string`)

### GridList Component

The `<smart-grid-list>` component renders a grid of card-like records with optional title, description, per-item icon/image, link, badge, action template, and bottom footer slot. It is a wrapper that delegates to `GridListStandardComponent` by default and supports an InjectionToken (`GRID_LIST_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `GridListComponent` (selector: `smart-grid-list`)
**Default:** `GridListStandardComponent` (selector: `smart-grid-list-standard`)
**Token:** `GRID_LIST_STANDARD_COMPONENT_TOKEN` — provide a `Type<GridListBaseComponent>` to override the default.

#### Usage

```html
<!-- Simple cards with image and title -->
<smart-grid-list
  [options]="{
    title: 'Team',
    columns: 3,
    items: [
      { id: '1', title: 'Lindsay Walton', imageUrl: '/img/lindsay.jpg', description: 'Front-end' },
      { id: '2', title: 'Courtney Henry', imageUrl: '/img/courtney.jpg', description: 'Designer' },
      { id: '3', title: 'Tom Cook', imageUrl: '/img/tom.jpg', description: 'Director' },
    ],
  }"
/>

<!-- Logo cards (links) -->
<smart-grid-list
  [options]="{
    layout: 'logos',
    columns: 4,
    items: [
      { title: 'Acme', href: '/acme', imageUrl: '/logos/acme.svg' },
      { title: 'Globex', href: '/globex', imageUrl: '/logos/globex.svg' },
    ],
  }"
/>

<!-- With per-item badge and action -->
<ng-template #activeBadge><span>Active</span></ng-template>
<ng-template #openAction><button>Open</button></ng-template>
<smart-grid-list
  [options]="{
    items: [
      { title: 'Project Alpha', description: 'Design system', badgeTpl: activeBadge, actionTpl: openAction },
    ],
  }"
/>

<!-- With empty state and footer -->
<ng-template #emptyMsg><span>Brak wyników</span></ng-template>
<ng-template #footer><a href="#">Load more &rarr;</a></ng-template>
<smart-grid-list [options]="{ items: [], emptyTpl: emptyMsg, footerTpl: footer }" />
```

#### IGridListOptions

| Property      | Type                                  | Default | Description                                              |
| ------------- | ------------------------------------- | ------- | -------------------------------------------------------- |
| `title`       | `string`                              | -       | Optional list title rendered as `<h3 class="title">`     |
| `description` | `string`                              | -       | Optional description rendered as `<p class="description">` |
| `items`       | `IGridListItem[]`                     | -       | List entries to render as `<li class="item">`            |
| `columns`     | `1 \| 2 \| 3 \| 4 \| 5 \| 6`          | -       | Hint for custom impls: number of columns                 |
| `gap`         | `'sm' \| 'md' \| 'lg'`                | -       | Hint for custom impls: spacing between items             |
| `layout`      | `'cards' \| 'horizontal' \| 'logos'`  | -       | Hint for custom impls: visual layout family              |
| `emptyTpl`    | `TemplateRef<unknown>`                | -       | Template rendered when items is empty                    |
| `footerTpl`   | `TemplateRef<unknown>`                | -       | Bottom footer slot                                       |

#### IGridListItem

| Property      | Type                   | Default | Description                                              |
| ------------- | ---------------------- | ------- | -------------------------------------------------------- |
| `id`          | `string`               | -       | Optional stable id used as track key                     |
| `title`       | `string`               | -       | **Required** title text                                  |
| `description` | `string`               | -       | Optional secondary line                                  |
| `imageUrl`    | `string`               | -       | Image URL (rendered as `<img class="image">`)            |
| `imageAlt`    | `string`               | `''`    | Alt text for `imageUrl`                                  |
| `iconTpl`     | `TemplateRef<unknown>` | -       | Custom icon template (takes precedence over `imageUrl`)  |
| `href`        | `string`               | -       | When set, title is rendered as `<a class="title">`       |
| `badgeTpl`    | `TemplateRef<unknown>` | -       | Badge slot rendered next to the body                     |
| `actionTpl`   | `TemplateRef<unknown>` | -       | Trailing action slot (e.g. button)                       |
| `ariaLabel`   | `string`               | -       | Accessible label rendered on the `<li>`                  |

The default `GridListStandardComponent` consumes every property; a section is rendered only when its template/string is provided. Within an item, `iconTpl` takes precedence over `imageUrl` when both are set. `columns`, `gap` and `layout` are hints for custom implementations registered via `GRID_LIST_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { GRID_LIST_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: GRID_LIST_STANDARD_COMPONENT_TOKEN, useValue: MyGridListComponent },
];
```

### FeedBaseComponent

Abstract base class for feed (timeline/activity) components. Exposes optional `IFeedOptions` and `cssClass` (alias `class`).

**Inputs:** `options` (`IFeedOptions`), `class` (`string`)

### Feed Component

The `<smart-feed>` component renders a vertical timeline of activity events with optional title, description, per-event icon/avatar, link, timestamp, description, nested comments, an empty state, an optional comment-submit slot, and a bottom footer slot. It is a wrapper that delegates to `FeedStandardComponent` by default and supports an InjectionToken (`FEED_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `FeedComponent` (selector: `smart-feed`)
**Default:** `FeedStandardComponent` (selector: `smart-feed-standard`)
**Token:** `FEED_STANDARD_COMPONENT_TOKEN` — provide a `Type<FeedBaseComponent>` to override the default.

#### Usage

```html
<!-- Simple timeline with icons -->
<ng-template #applyIcon><svg class="apply-icon"></svg></ng-template>
<smart-feed
  [options]="{
    title: 'Application activity',
    events: [
      { title: 'Applied to Front End Developer', timestamp: 'Sep 20', iconTpl: applyIcon },
      { title: 'Advanced to phone screening', timestamp: 'Sep 22' },
    ],
  }"
/>

<!-- With comments -->
<smart-feed
  [options]="{
    events: [
      {
        title: 'Discussion',
        timestamp: '3d ago',
        comments: [
          { authorName: 'Lindsay', content: 'Looks good to me' },
          { authorName: 'Tom', authorAvatarUrl: '/img/tom.jpg', content: 'Approved', timestamp: '1d ago' },
        ],
      },
    ],
  }"
/>

<!-- With comment-submit slot and footer -->
<ng-template #commentForm><form><textarea></textarea><button>Comment</button></form></ng-template>
<ng-template #footer><a href="#">Load more &rarr;</a></ng-template>
<smart-feed [options]="{
  events: [{ title: 'Created invoice', timestamp: '7d ago' }],
  commentSubmitTpl: commentForm,
  footerTpl: footer,
}" />
```

#### IFeedOptions

| Property            | Type                                              | Default | Description                                                  |
| ------------------- | ------------------------------------------------- | ------- | ------------------------------------------------------------ |
| `title`             | `string`                                          | -       | Optional title                                               |
| `description`       | `string`                                          | -       | Optional secondary description                               |
| `events`            | `IFeedEvent[]`                                    | -       | Timeline entries                                             |
| `variant`           | `'simple' \| 'with-comments' \| 'multiple-types'` | -       | Hint for custom impls: layout family                         |
| `commentSubmitTpl`  | `TemplateRef<unknown>`                            | -       | Slot rendered below the timeline (e.g. comment form)         |
| `emptyTpl`          | `TemplateRef<unknown>`                            | -       | Template rendered when events is empty                       |
| `footerTpl`         | `TemplateRef<unknown>`                            | -       | Bottom footer slot                                           |

#### IFeedEvent

| Property      | Type                   | Default | Description                                              |
| ------------- | ---------------------- | ------- | -------------------------------------------------------- |
| `id`          | `string`               | -       | Optional stable id used as track key                     |
| `title`       | `string`               | -       | **Required** event title                                 |
| `description` | `string`               | -       | Optional description rendered under the title            |
| `timestamp`   | `string`               | -       | Optional `<time>` content                                |
| `iconTpl`     | `TemplateRef<unknown>` | -       | Custom icon template (takes precedence over `avatarUrl`) |
| `avatarUrl`   | `string`               | -       | Avatar image URL                                         |
| `href`        | `string`               | -       | When set, title is rendered as `<a class="title">`       |
| `type`        | `string`               | -       | Free-form type hint for custom impls                     |
| `comments`    | `IFeedComment[]`       | -       | Nested list of comments                                  |
| `ariaLabel`   | `string`               | -       | Accessible label rendered on the `<li>`                  |

#### IFeedComment

| Property            | Type     | Default | Description                  |
| ------------------- | -------- | ------- | ---------------------------- |
| `id`                | `string` | -       | Optional stable id           |
| `authorName`        | `string` | -       | **Required** author name     |
| `authorAvatarUrl`   | `string` | -       | Optional avatar image URL    |
| `content`           | `string` | -       | **Required** comment content |
| `timestamp`         | `string` | -       | Optional `<time>` content    |

The default `FeedStandardComponent` consumes every property; a section is rendered only when its template/string is provided. Within an event, `iconTpl` takes precedence over `avatarUrl` when both are set.

#### Overriding with Custom Implementation

```typescript
import { FEED_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [{ provide: FEED_STANDARD_COMPONENT_TOKEN, useValue: MyFeedComponent }];
```

### SelectMenuBaseComponent

Abstract base class for select menu components. Exposes `value` (two-way `ModelSignal<SelectMenuValue>` where `SelectMenuValue = string | number | null`), `disabled`, optional `ISelectMenuOptions`, `cssClass` (alias `class`), and a `select(next)` method that updates `value` while respecting `disabled`.

**Inputs:** `value` (`ModelSignal<SelectMenuValue>`), `disabled` (`boolean`), `options` (`ISelectMenuOptions`), `class` (`string`)

### SelectMenu Component

The `<smart-select-menu>` component renders a single-select menu. It is a wrapper that delegates to `SelectMenuStandardComponent` by default and supports an InjectionToken (`SELECT_MENU_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation. The default uses a native `<select>` element; pro variants will replace it with a custom dropdown UI.

**Wrapper:** `SelectMenuComponent` (selector: `smart-select-menu`)
**Default:** `SelectMenuStandardComponent` (selector: `smart-select-menu-standard`)
**Token:** `SELECT_MENU_STANDARD_COMPONENT_TOKEN` — provide a `Type<SelectMenuBaseComponent>` to override the default.

#### Usage

```html
<smart-select-menu
  [(value)]="selected"
  [options]="{
    placeholder: 'Choose a country',
    items: [
      { value: 'pl', label: 'Poland' },
      { value: 'us', label: 'United States' },
    ],
  }"
/>

<smart-select-menu [(value)]="role" [disabled]="true" [options]="{ items: [{ value: 'admin', label: 'Admin' }] }" />
```

#### ISelectMenuOptions

| Property      | Type                          | Default | Description                                              |
| ------------- | ----------------------------- | ------- | -------------------------------------------------------- |
| `items`       | `ISelectMenuItem[]`           | -       | Available options                                        |
| `placeholder` | `string`                      | -       | Optional disabled first `<option>`                       |
| `variant`     | `SmartSelectMenuVariant`      | -       | Hint for custom impls: layout family                     |
| `emptyTpl`    | `TemplateRef<unknown>`        | -       | Template rendered when items is empty                    |
| `ariaLabel`   | `string`                      | -       | Accessible label rendered on `<select>`                  |

#### ISelectMenuItem

| Property      | Type                                       | Default | Description                                              |
| ------------- | ------------------------------------------ | ------- | -------------------------------------------------------- |
| `value`       | `string \| number`                         | -       | **Required** option value                                |
| `label`       | `string`                                   | -       | **Required** option label                                |
| `avatarUrl`   | `string`                                   | -       | Hint for custom impls: avatar image URL                  |
| `iconTpl`     | `TemplateRef<unknown>`                     | -       | Hint for custom impls: icon template                     |
| `secondary`   | `string`                                   | -       | Hint for custom impls: secondary line                    |
| `status`      | `'online' \| 'offline' \| 'busy' \| string`| -       | Hint for custom impls: status indicator                  |
| `disabled`    | `boolean`                                  | -       | Disable this option                                      |
| `ariaLabel`   | `string`                                   | -       | Accessible label on `<option>`                           |

The default `SelectMenuStandardComponent` consumes `value`, `disabled`, `placeholder`, `items`, `disabled` per-item, and `emptyTpl`. Other properties are reserved for custom implementations registered via `SELECT_MENU_STANDARD_COMPONENT_TOKEN`.

#### Overriding with Custom Implementation

```typescript
import { SELECT_MENU_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: SELECT_MENU_STANDARD_COMPONENT_TOKEN, useValue: MySelectMenuComponent },
];
```

### SignInFormBaseComponent

Abstract base class for sign-in / sign-up form components. Exposes `mode` (`'sign-in' | 'sign-up'`), `disabled`, optional `ISignInFormOptions`, `cssClass` (alias `class`), and `submit` / `socialClick` outputs.

**Inputs:** `mode` (`SmartSignInFormMode`), `disabled` (`boolean`), `options` (`ISignInFormOptions`), `class` (`string`)
**Outputs:** `submit` (`ISignInFormSubmit`), `socialClick` (`ISignInFormSocialClick`)

### SignIn Form Component

The `<smart-sign-in-form>` component renders a form supporting both sign-in and sign-up flows via the `mode` input. It is a wrapper that delegates to `SignInFormStandardComponent` by default and supports an InjectionToken (`SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `SignInFormComponent` (selector: `smart-sign-in-form`)
**Default:** `SignInFormStandardComponent` (selector: `smart-sign-in-form-standard`)
**Token:** `SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN` — provide a `Type<SignInFormBaseComponent>` to override the default.

#### Usage

```html
<smart-sign-in-form (submit)="onSignIn($event)" />

<smart-sign-in-form mode="sign-up" (submit)="onSignUp($event)" />

<smart-sign-in-form
  [options]="{
    forgotPasswordHref: '/forgot',
    signUpHref: '/signup',
    socialProviders: [
      { id: 'google', label: 'Google' },
      { id: 'github', label: 'GitHub' },
    ],
  }"
  (submit)="onSignIn($event)"
  (socialClick)="onSocial($event)"
/>

<smart-sign-in-form [disabled]="loading()" (submit)="onSignIn($event)" />
```

#### ISignInFormOptions

| Property              | Type                              | Default | Description                                              |
| --------------------- | --------------------------------- | ------- | -------------------------------------------------------- |
| `socialProviders`     | `ISocialProvider[]`               | -       | Social login provider buttons                            |
| `layout`              | `SmartSignInFormLayout`           | -       | Hint for custom impls                                    |
| `showLabels`          | `boolean`                         | `true`  | Show `<label>`s above inputs                             |
| `heroImageUrl`        | `string`                          | -       | Hint for custom impls (split-screen layout)              |
| `forgotPasswordHref`  | `string`                          | -       | Forgot-password link href (sign-in mode only)            |
| `signUpHref`          | `string`                          | -       | Alt link to sign-up (sign-in mode)                       |
| `signInHref`          | `string`                          | -       | Alt link to sign-in (sign-up mode)                       |
| `submitLabel`         | `string`                          | -       | Override submit button label                             |
| `emailPlaceholder`    | `string`                          | -       | Email input placeholder                                  |
| `passwordPlaceholder` | `string`                          | -       | Password input placeholder                               |
| `extraTpl`            | `TemplateRef<unknown>`            | -       | Slot rendered at the bottom of the form                  |
| `ariaLabel`           | `string`                          | -       | Accessible label on `<form>`                             |

#### Outputs

- `submit: { email, password, mode }` — emitted on form submit when not disabled
- `socialClick: { providerId, mode }` — emitted on social provider button click

#### Overriding with Custom Implementation

```typescript
import { SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN, useValue: MySignInFormComponent },
];
```

### PasswordStrengthBaseComponent

Abstract base class for password-strength indicator components. Exposes required `passwordToCheck: string` and `showHint: boolean` inputs, `cssClass: string` (alias `class`), a `passwordStrength: boolean` output, and computed signals: `result`, `strength` (0/10/20/30), `strengthIndex` (0..3), `msg` (`'' | 'poor' | 'notGood' | 'good'`), `barClasses` (length-3 string array), `msgClass`, and `containerClasses`. The output `passwordStrength` is emitted automatically via an `effect()` — `true` when `strength === 30`, `false` otherwise.

**Inputs:** `passwordToCheck` (`string`, required), `showHint` (`boolean`, required), `class` (`string`)
**Outputs:** `passwordStrength` (`boolean`)

### Password Strength Component

The `<smart-password-strength>` component renders a three-bar strength indicator with an optional hint list of unmet requirements. It is a wrapper that delegates to `PasswordStrengthStandardComponent` by default and supports an InjectionToken (`PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `PasswordStrengthComponent` (selector: `smart-password-strength`)
**Default:** `PasswordStrengthStandardComponent` (selector: `smart-password-strength-standard`)
**Token:** `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN` — provide a `Type<PasswordStrengthBaseComponent>` to override the default.

#### Usage

```html
<!-- Basic -->
<smart-password-strength
  [passwordToCheck]="password"
  [showHint]="false"
></smart-password-strength>

<!-- With hint list of unmet requirements -->
<smart-password-strength
  [passwordToCheck]="password"
  [showHint]="true"
></smart-password-strength>

<!-- React to strength changes -->
<smart-password-strength
  [passwordToCheck]="password"
  [showHint]="false"
  (passwordStrength)="onStrong($event)"
></smart-password-strength>
```

#### Translation Keys

- `INPUT.PASSWORD-STRENGTH.{poor|notGood|good}` — strength message
- `INPUT.ERRORS.invalidMinLength` — shown when password length ≤ 6 (suffixed with ` 7`)
- `INPUT.ERRORS.{upperLetters|lowerLetters|symbols}` — shown when the matching character class is missing

#### Overriding with Custom Implementation

```typescript
import { PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN,
    useValue: MyPasswordStrengthComponent,
  },
];
```

A custom implementation extending `PasswordStrengthBaseComponent` should declare `cssClass = input<string>('')` without the `class` alias (because `NgComponentOutlet` passes inputs by canonical name) and rely on the base's `barClasses()`, `msgClass()`, and `containerClasses()` for Tailwind classes. Do not re-emit `passwordStrength` — the base class already does that via an `effect()`.

### ProgressBarsBaseComponent

Abstract base class for progress indicator components. Exposes optional `IProgressBarsOptions`, `cssClass` (alias `class`), and a `stepClick` output.

**Inputs:** `options` (`IProgressBarsOptions`), `class` (`string`)
**Outputs:** `stepClick` (`IProgressStepClick`)

### ProgressBars Component

The `<smart-progress-bars>` component renders either a list of progress steps (with statuses `complete`, `current`, `upcoming`) or a percentage-based bar with optional column labels. It is a wrapper that delegates to `ProgressBarsStandardComponent` by default and supports an InjectionToken (`PROGRESS_BARS_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ProgressBarsComponent` (selector: `smart-progress-bars`)
**Default:** `ProgressBarsStandardComponent` (selector: `smart-progress-bars-standard`)
**Token:** `PROGRESS_BARS_STANDARD_COMPONENT_TOKEN` — provide a `Type<ProgressBarsBaseComponent>` to override the default.

#### Usage

```html
<!-- Step indicator -->
<smart-progress-bars
  [options]="{
    layout: 'simple',
    steps: [
      { id: '1', name: 'Job details', status: 'complete', href: '/1' },
      { id: '2', name: 'Application form', status: 'current', href: '/2' },
      { id: '3', name: 'Preview', status: 'upcoming', href: '/3' },
    ],
  }"
/>

<!-- Percentage progress bar with column labels -->
<smart-progress-bars
  [options]="{
    layout: 'progress-bar',
    title: 'Migrating MySQL database...',
    srOnlyTitle: 'Status',
    value: 37.5,
    columns: [
      { label: 'Copying files', active: true },
      { label: 'Migrating database', active: true },
      { label: 'Compiling assets' },
      { label: 'Deployed' },
    ],
  }"
/>
```

#### IProgressBarsOptions

| Property      | Type                       | Default      | Description                                                                |
| ------------- | -------------------------- | ------------ | -------------------------------------------------------------------------- |
| `layout`      | `SmartProgressBarsLayout`  | `'simple'`   | Visual variant. `'progress-bar'` switches to bar mode                       |
| `ariaLabel`   | `string`                   | `'Progress'` | Aria label on `<nav>` (step mode)                                          |
| `steps`       | `IProgressStep[]`          | -            | Step list (step mode)                                                      |
| `title`       | `string`                   | -            | Optional title (rendered in bar mode and as header for some step layouts)  |
| `srOnlyTitle` | `string`                   | -            | Screen-reader only title (bar mode)                                        |
| `value`       | `number`                   | `0`          | Bar fill percentage 0–100 (bar mode; clamped)                              |
| `columns`     | `IProgressBarColumn[]`     | -            | Optional column labels rendered under the bar (bar mode)                   |

`IProgressStep` supports `id`, `name`, `description`, `status`, `href`, `iconTpl`, and `index` (e.g. `'02'`). When `href` is provided the step renders as an anchor; otherwise as a button emitting `stepClick`.

#### Overriding with Custom Implementation

```typescript
import { PROGRESS_BARS_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: PROGRESS_BARS_STANDARD_COMPONENT_TOKEN,
    useValue: MyCustomProgressBarsComponent,
  },
];
```

### ActionPanelBaseComponent

Abstract base class for action panel components. Exposes optional `IActionPanelOptions`, `cssClass` (alias `class`), and an `actionClick` output. Used to render a contextual settings panel with title, description and one or more action buttons or links.

**Inputs:** `options` (`IActionPanelOptions`), `class` (`string`)
**Outputs:** `actionClick` (`IActionPanelActionClick`)

### ActionPanel Component

The `<smart-action-panel>` component renders a panel with a heading, description and one or more actions. It is a wrapper that delegates to `ActionPanelStandardComponent` by default and supports an InjectionToken (`ACTION_PANEL_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ActionPanelComponent` (selector: `smart-action-panel`)
**Default:** `ActionPanelStandardComponent` (selector: `smart-action-panel-standard`)
**Token:** `ACTION_PANEL_STANDARD_COMPONENT_TOKEN` — provide a `Type<ActionPanelBaseComponent>` to override the default.

#### Usage

```html
<smart-action-panel
  [options]="{
    title: 'Manage subscription',
    description: 'Lorem ipsum dolor sit amet.',
    actions: [{ id: 'change', label: 'Change plan', variant: 'primary' }],
  }"
  (actionClick)="onAction($event)"
/>

<smart-action-panel
  [options]="{
    title: 'Continuous Integration',
    description: 'Learn more about our CI features.',
    actions: [
      { id: 'learn', label: 'Learn more', href: '/learn', variant: 'link' },
    ],
  }"
/>
```

#### IActionPanelOptions

| Property         | Type                    | Default | Description                                                |
| ---------------- | ----------------------- | ------- | ---------------------------------------------------------- |
| `title`          | `string`                | -       | Heading rendered as `<h3>`                                 |
| `description`    | `string`                | -       | Description rendered as `<p class="description">`          |
| `layout`         | `SmartActionPanelLayout`| -       | Hint for custom impls (Tailwind variants in pro library)   |
| `actions`        | `IActionPanelAction[]`  | -       | Render buttons (or anchors when `href` provided)           |
| `descriptionTpl` | `TemplateRef<unknown>`  | -       | Override description rendering with a template             |
| `contentTpl`     | `TemplateRef<unknown>`  | -       | Render embedded content (toggle, input, payment block, …)  |

#### Outputs

- `actionClick: { actionId }` — emitted when a button-type action is clicked

#### Overriding with Custom Implementation

```typescript
import { ACTION_PANEL_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: ACTION_PANEL_STANDARD_COMPONENT_TOKEN,
    useValue: MyActionPanelComponent,
  },
];
```

### BreadcrumbsBaseComponent

Abstract base class for breadcrumb navigation components. Exposes optional `IBreadcrumbsOptions`, `cssClass` (alias `class`), and the `itemClick` output.

**Inputs:** `options` (`IBreadcrumbsOptions`), `class` (`string`)
**Outputs:** `itemClick` (`IBreadcrumbsItemClick`)

### Breadcrumbs Component

The `<smart-breadcrumbs>` component renders a list of navigation crumbs separated by chevrons, slashes, or arrow shapes. It is a wrapper that delegates to `BreadcrumbsStandardComponent` by default and supports an InjectionToken (`BREADCRUMBS_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `BreadcrumbsComponent` (selector: `smart-breadcrumbs`)
**Default:** `BreadcrumbsStandardComponent` (selector: `smart-breadcrumbs-standard`)
**Token:** `BREADCRUMBS_STANDARD_COMPONENT_TOKEN` — provide a `Type<BreadcrumbsBaseComponent>` to override the default.

#### Usage

```html
<!-- With chevron separators -->
<smart-breadcrumbs
  [options]="{
    items: [
      { id: 'home', href: '/', iconTpl: homeIcon, srOnlyLabel: 'Home' },
      { id: 'projects', label: 'Projects', href: '/projects' },
      { id: 'nero', label: 'Project Nero', href: '/projects/nero', current: true },
    ],
  }"
/>

<!-- Slash variant -->
<smart-breadcrumbs
  [options]="{ separator: 'slash', layout: 'simple-with-slashes', items: items }"
/>
```

#### IBreadcrumbsOptions

| Property    | Type                          | Default       | Description                                          |
| ----------- | ----------------------------- | ------------- | ---------------------------------------------------- |
| `layout`    | `SmartBreadcrumbsLayout`      | -             | Visual variant (`contained`, `full-width-bar`, etc.) |
| `ariaLabel` | `string`                      | `'Breadcrumb'` | Aria label on `<nav>`                               |
| `separator` | `'chevron' \| 'slash' \| 'arrow'` | `'chevron'`   | Visual separator between items (`data-separator`)   |
| `items`     | `IBreadcrumbItem[]`           | `[]`          | Crumb list                                           |

`IBreadcrumbItem` supports `id`, `label`, `href`, `iconTpl`, `srOnlyLabel`, and `current`. When `href` is provided, the item renders as an anchor; otherwise as a button emitting `itemClick`.

#### Overriding with Custom Implementation

```typescript
import { BREADCRUMBS_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: BREADCRUMBS_STANDARD_COMPONENT_TOKEN,
    useValue: MyCustomBreadcrumbsComponent,
  },
];
```

### EmptyStateBaseComponent

Abstract base class for empty state components. Exposes optional `IEmptyStateOptions`, `cssClass` (alias `class`), and the `actionClick` / `itemClick` outputs. Used to render an empty-state placeholder when a list, page or section has no content yet.

**Inputs:** `options` (`IEmptyStateOptions`), `class` (`string`)
**Outputs:** `actionClick` (`IEmptyStateActionClick`), `itemClick` (`IEmptyStateItemClick`)

### EmptyState Component

The `<smart-empty-state>` component renders an empty-state placeholder with an optional centered icon, title, description, primary actions and a list of starting-points / templates / recommendations. It is a wrapper that delegates to `EmptyStateStandardComponent` by default and supports an InjectionToken (`EMPTY_STATE_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `EmptyStateComponent` (selector: `smart-empty-state`)
**Default:** `EmptyStateStandardComponent` (selector: `smart-empty-state-standard`)
**Token:** `EMPTY_STATE_STANDARD_COMPONENT_TOKEN` — provide a `Type<EmptyStateBaseComponent>` to override the default.

#### Usage

```html
<smart-empty-state
  [options]="{
    title: 'No projects',
    description: 'Get started by creating a new project.',
    actions: [{ id: 'create', label: 'New Project', variant: 'primary' }],
  }"
  (actionClick)="onAction($event)"
/>

<smart-empty-state
  [options]="{
    title: 'Projects',
    items: [
      { id: 'list', title: 'Create a List', href: '/lists/new' },
      { id: 'calendar', title: 'Create a Calendar', href: '/calendars/new' },
    ],
    footerLinkLabel: 'Or start from an empty project',
    footerLinkHref: '/projects/new',
  }"
/>
```

#### IEmptyStateOptions

| Property          | Type                    | Default | Description                                                  |
| ----------------- | ----------------------- | ------- | ------------------------------------------------------------ |
| `title`           | `string`                | -       | Main heading rendered as `<h3>`                              |
| `description`     | `string`                | -       | Description rendered as `<p>`                                |
| `layout`          | `SmartEmptyStateLayout` | -       | Hint for custom impls (Tailwind variants in pro library)     |
| `iconTpl`         | `TemplateRef<unknown>`  | -       | Optional centered icon                                       |
| `actions`         | `IEmptyStateAction[]`   | -       | Render buttons (or anchors when `href` provided)             |
| `items`           | `IEmptyStateItem[]`     | -       | Starting points / templates / recommendations list           |
| `itemsTitle`      | `string`                | -       | Optional heading rendered above the items list               |
| `formTpl`         | `TemplateRef<unknown>`  | -       | Embedded form (e.g. invite-by-email in recommendations)      |
| `footerLinkLabel` | `string`                | -       | Optional footer link label                                   |
| `footerLinkHref`  | `string`                | -       | Optional footer link href (renders `<a>` when both provided) |

#### Outputs

- `actionClick: { actionId }` — emitted when a button-type action is clicked
- `itemClick: { itemId }` — emitted when an item without `href` is clicked

#### Overriding with Custom Implementation

```typescript
import { EMPTY_STATE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  {
    provide: EMPTY_STATE_STANDARD_COMPONENT_TOKEN,
    useValue: MyEmptyStateComponent,
  },
];
```

### NavbarBaseComponent

Abstract base class for navbar components. Exposes optional `INavbarOptions`, `cssClass` (alias `class`), `mobileMenuOpen` (two-way `ModelSignal<boolean>`), and an `itemClick` output.

**Inputs:** `options` (`INavbarOptions`), `class` (`string`), `mobileMenuOpen` (`ModelSignal<boolean>`)
**Outputs:** `itemClick` (`INavbarItemClick`)

### Navbar Component

The `<smart-navbar>` component renders a top navigation bar with logo, primary nav items, optional secondary row, search/action/notification/user-menu slots, and a mobile menu toggle. It is a wrapper that delegates to `NavbarStandardComponent` by default and supports an InjectionToken (`NAVBAR_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `NavbarComponent` (selector: `smart-navbar`)
**Default:** `NavbarStandardComponent` (selector: `smart-navbar-standard`)
**Token:** `NAVBAR_STANDARD_COMPONENT_TOKEN` — provide a `Type<NavbarBaseComponent>` to override the default.

#### Usage

```html
<smart-navbar
  [options]="{
    logoUrl: '/logo.svg',
    logoAlt: 'Acme',
    logoHref: '/',
    items: [
      { id: 'dashboard', label: 'Dashboard', href: '/', current: true },
      { id: 'team', label: 'Team', href: '/team' },
    ],
  }"
/>
```

#### INavbarOptions

| Property           | Type                   | Default | Description                                                  |
| ------------------ | ---------------------- | ------- | ------------------------------------------------------------ |
| `layout`           | `SmartNavbarLayout`    | -       | Hint for custom impls (Tailwind variants in pro library)     |
| `dark`             | `boolean`              | -       | Dark mode hint for custom impls                              |
| `menuButtonOnLeft` | `boolean`              | -       | Position the mobile menu toggle on the left                  |
| `logoTpl`          | `TemplateRef<unknown>` | -       | Logo template slot (priority over `logoUrl`)                 |
| `logoUrl`          | `string`               | -       | Logo image URL                                               |
| `logoAlt`          | `string`               | -       | Logo alt text                                                |
| `logoHref`         | `string`               | -       | Wraps the logo in `<a>` when provided                        |
| `items`            | `INavbarItem[]`        | -       | Primary nav items                                            |
| `secondaryItems`   | `INavbarItem[]`        | -       | Optional secondary row of links                              |
| `searchTpl`        | `TemplateRef<unknown>` | -       | Search input slot                                            |
| `actionTpl`        | `TemplateRef<unknown>` | -       | Quick action button slot                                     |
| `notificationTpl`  | `TemplateRef<unknown>` | -       | Notification (e.g. bell) slot                                |
| `userMenuTpl`      | `TemplateRef<unknown>` | -       | User avatar / dropdown slot                                  |

#### Outputs

- `itemClick: { itemId }` — emitted when a button-type nav item is clicked

#### Two-way bindings

- `mobileMenuOpen: boolean` — toggled internally by the mobile menu button; bind with `[(mobileMenuOpen)]` to control or observe externally.

#### Overriding with Custom Implementation

```typescript
import { NAVBAR_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: NAVBAR_STANDARD_COMPONENT_TOKEN, useValue: MyNavbarComponent },
];
```

### TabsBaseComponent

Abstract base class for tabs components. Exposes optional `ITabsOptions`, `cssClass` (alias `class`), `selectedId` (two-way `ModelSignal<string | null>`), and a `tabChange` output.

**Inputs:** `options` (`ITabsOptions`), `class` (`string`), `selectedId` (`ModelSignal<string | null>`)
**Outputs:** `tabChange` (`ITabChange`)

### Tabs Component

The `<smart-tabs>` component renders a tabbed navigation strip (anchor- or button-based) with a `<select>` fallback for mobile. It is a wrapper that delegates to `TabsStandardComponent` by default and supports an InjectionToken (`TABS_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `TabsComponent` (selector: `smart-tabs`)
**Default:** `TabsStandardComponent` (selector: `smart-tabs-standard`)
**Token:** `TABS_STANDARD_COMPONENT_TOKEN` — provide a `Type<TabsBaseComponent>` to override the default.

#### Usage

```html
<smart-tabs
  [(selectedId)]="active"
  [options]="{
    layout: 'pills',
    items: [
      { id: 'overview', label: 'Overview' },
      { id: 'settings', label: 'Settings' },
    ],
  }"
  (tabChange)="onTab($event)"
/>
```

#### ITabsOptions

| Property            | Type              | Default | Description                                              |
| ------------------- | ----------------- | ------- | -------------------------------------------------------- |
| `layout`            | `SmartTabsLayout` | -       | Hint for custom impls (Tailwind variants in pro library) |
| `items`             | `ITabItem[]`      | -       | Tab items                                                |
| `ariaLabel`         | `string`          | -       | aria-label for `<nav>` and mobile `<select>`             |
| `showMobileSelect`  | `boolean`         | `true`  | Render mobile `<select>` fallback                        |

#### Outputs

- `tabChange: { tabId }` — emitted when a button-type tab (or mobile select) changes

#### Two-way bindings

- `selectedId: string | null` — currently selected tab id; bind with `[(selectedId)]` to control or observe externally.

#### Overriding with Custom Implementation

```typescript
import { TABS_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: TABS_STANDARD_COMPONENT_TOKEN, useValue: MyTabsComponent },
];
```

### VerticalNavigationBaseComponent

Abstract base class for vertical navigation (sidebar) components. Exposes optional `IVerticalNavOptions`, `cssClass` (alias `class`), and an `itemClick` output.

**Inputs:** `options` (`IVerticalNavOptions`), `class` (`string`)
**Outputs:** `itemClick` (`IVerticalNavItemClick`)

### VerticalNavigation Component

The `<smart-vertical-navigation>` component renders a sidebar navigation with one or more groups of items, each with optional icon, badge, and initial. It is a wrapper that delegates to `VerticalNavigationStandardComponent` by default and supports an InjectionToken (`VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `VerticalNavigationComponent` (selector: `smart-vertical-navigation`)
**Default:** `VerticalNavigationStandardComponent` (selector: `smart-vertical-navigation-standard`)
**Token:** `VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN` — provide a `Type<VerticalNavigationBaseComponent>` to override the default.

#### Usage

```html
<smart-vertical-navigation
  [options]="{
    items: [
      { id: 'dashboard', label: 'Dashboard', href: '/', current: true },
      { id: 'team', label: 'Team', href: '/team' },
      { id: 'projects', label: 'Projects', href: '/projects', badge: 12 },
    ],
  }"
/>

<smart-vertical-navigation
  [options]="{
    items: mainItems,
    groups: [{ title: 'Projects', items: projectItems }],
  }"
  (itemClick)="onItem($event)"
/>
```

#### IVerticalNavOptions

| Property    | Type                     | Default | Description                                              |
| ----------- | ------------------------ | ------- | -------------------------------------------------------- |
| `layout`    | `SmartVerticalNavLayout` | -       | Hint for custom impls (Tailwind variants in pro library) |
| `ariaLabel` | `string`                 | `'Sidebar'` | aria-label for `<nav>`                               |
| `items`     | `IVerticalNavItem[]`     | -       | Single-group flat list                                   |
| `groups`    | `IVerticalNavGroup[]`    | -       | Multi-group structure (each with optional `title`)       |

#### Outputs

- `itemClick: { itemId }` — emitted when a button-type item is clicked

#### Overriding with Custom Implementation

```typescript
import { VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN, useValue: MyVerticalNavComponent },
];
```

### AccordionBaseComponent

Abstract base class for accordion components. Provides toggle logic, disabled state, and shared container CSS classes.

**Inputs:** `show` (`ModelSignal<boolean>`), `options` (`IAccordionOptions`), `cssClass` (`string`)

### DetailBaseComponent

Abstract base directive for detail field sub-components. Exposes `options: IDetailOptions<T>` input, `cssClass: string` (alias `class`), and an `afterSetOptionsHandler()` hook invoked via effect on options change.

**Inputs:** `options` (`IDetailOptions<T>`), `class` (`string`)

### PagingBaseComponent

Abstract base class for paging components. Provides signal-based paging state, computed helpers for ellipsized page lists and item ranges, and navigation methods.

**Inputs:** `currentPage` (`number`), `totalPages` (`number`), `pageSize` (`number`), `totalItems` (`number`), `variant` (`PagingVariant`), `class` (`string`)
**Outputs:** `pageChange` (`number`)
**Computed:** `showingFrom`, `showingTo`, `canGoBack`, `canGoForward`, `pages` (numbers + `'...'`)
**Methods:** `goToPage(page)`, `nextPage()`, `previousPage()`

### Paging Component

The `<smart-paging>` component renders a default `PagingStandardComponent`. It supports an InjectionToken (`PAGING_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `PagingComponent` (selector: `smart-paging`)
**Default:** `PagingStandardComponent` (selector: `smart-paging-standard`)
**Token:** `PAGING_STANDARD_COMPONENT_TOKEN` — provide a `Type<PagingBaseComponent>` to override the default.

#### Usage

```html
<smart-paging
  [currentPage]="page()"
  [totalPages]="totalPages()"
  [pageSize]="25"
  [totalItems]="248"
  (pageChange)="onPageChange($event)"
></smart-paging>
```

#### Overriding with Custom Implementation

```typescript
import { PAGING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';

providers: [
  { provide: PAGING_STANDARD_COMPONENT_TOKEN, useValue: MyPagingComponent },
];
```

## Components

The following components include both an abstract base class (`@Directive()`) and a default concrete implementation with templates. The base classes can be extended to create custom implementations.

### Detail Component

The `<smart-detail>` component renders a single model field value by delegating to a sub-component chosen by `FieldType`. Supports 15 default sub-components and allows per-field substitution via `DETAIL_FIELD_COMPONENTS_TOKEN`.

**Wrapper:** `DetailComponent` (selector: `smart-detail`)
**Base class:** `DetailBaseComponent<T>` — base for all sub-components.
**Token:** `DETAIL_FIELD_COMPONENTS_TOKEN` — provide a `Partial<Record<FieldType, Type<DetailBaseComponent<any>>>>` to substitute default sub-components for specific field types.

#### Usage

```html
<smart-detail [options]="detailOptions" [type]="ModelClass"></smart-detail>
```

#### IDetailOptions

| Property   | Type                          | Default    | Description                            |
| ---------- | ----------------------------- | ---------- | -------------------------------------- |
| `key`      | `string`                      | *required* | Model property name                    |
| `item`     | `Signal<T>`                   | -          | Signal with the model instance         |
| `options`  | `IFieldOptions`               | *required* | Field metadata (`type`, `info`, ...)   |
| `cellPipe` | `ICellPipe<T>`                | -          | Optional cell transformation pipe      |
| `loading`  | `Signal<boolean>`             | -          | Loading indicator                      |

#### Default Sub-Components (selector → FieldType)

| Selector                        | FieldType       |
| ------------------------------- | --------------- |
| `smart-detail-text`             | `text` (default)|
| `smart-detail-email`            | `email`         |
| `smart-detail-enum`             | `enum`          |
| `smart-detail-flag`             | `flag`          |
| `smart-detail-color`            | `color`         |
| `smart-detail-address`          | `address`       |
| `smart-detail-object`           | `object`        |
| `smart-detail-array`            | `array`         |
| `smart-detail-date-range`       | `dateRange`     |
| `smart-detail-phone-number-pl`  | `phoneNumberPl` |
| `smart-detail-image`            | `image`         |
| `smart-detail-logo`             | `logo`          |
| `smart-detail-video`            | `video`         |
| `smart-detail-attachment`       | `attachment`    |
| `smart-detail-pdf`              | `pdf`           |

#### Overriding Sub-Components

```typescript
import { DETAIL_FIELD_COMPONENTS_TOKEN } from '@smartsoft001/angular';
import { FieldType } from '@smartsoft001/models';

providers: [
  {
    provide: DETAIL_FIELD_COMPONENTS_TOKEN,
    useValue: {
      [FieldType.text]: MyCustomTextComponent,
    },
  },
]
```

#### Features

- Field-type dispatch via map with `NgComponentOutlet`
- Per-field substitution through `DETAIL_FIELD_COMPONENTS_TOKEN`
- Skeleton placeholder while `item()` resolves
- Label via `ModelLabelPipe`
- `smart:` Tailwind prefix, dark mode via `smart:dark:`

### Input Component

The `<smart-input>` component renders a form input for a single model field by dispatching to a sub-component chosen by `FieldType`. Supports 30 default sub-components and allows per-field substitution via `INPUT_FIELD_COMPONENTS_TOKEN`.

**Wrapper:** `InputComponent` (selector: `smart-input`)
**Base class:** `InputBaseComponent<T>` — base for all sub-components; exposes `control`, `fieldOptions`, `cssClass` (`class` alias), `required`, `afterSetOptionsHandler()` hook.
**Possibilities base:** `InputPossibilitiesBaseComponent<T>` — extends the base for list-based sub-components (radio/check).
**Token:** `INPUT_FIELD_COMPONENTS_TOKEN` — provide a `Partial<Record<FieldType, Type<InputBaseComponent<any>>>>` to substitute default sub-components for specific field types.

#### Usage

```html
<smart-input [options]="inputOptions"></smart-input>
```

```typescript
import { UntypedFormControl } from '@angular/forms';
import { InputOptions } from '@smartsoft001/angular';
import { Field, FieldType, Model } from '@smartsoft001/models';

@Model({})
class UserModel {
  @Field({ type: FieldType.email, required: true })
  email = '';
}

const control = new UntypedFormControl('', Validators.required);
const inputOptions: InputOptions<UserModel> = {
  control,
  fieldKey: 'email',
  model: new UserModel(),
  treeLevel: 0,
};
```

#### InputOptions

| Property        | Type                                                           | Default     | Description                                                      |
| --------------- | -------------------------------------------------------------- | ----------- | ---------------------------------------------------------------- |
| `control`       | `UntypedFormControl \| UntypedFormArray`                       | _required_  | Reactive form control                                            |
| `fieldKey`      | `string`                                                       | _required_  | Model property name (strips trailing `Confirm`)                  |
| `model`         | `T`                                                            | _required_  | Model instance (used to resolve `@Field()` metadata)             |
| `treeLevel`     | `number`                                                       | _required_  | Nesting depth in the form tree                                   |
| `mode`          | `'create' \| 'update' \| string`                               | -           | Merges `@Field({ create: … })` or `{ update: … }` overrides      |
| `possibilities` | `WritableSignal<{ id; text; checked }[]>`                      | -           | Options for `radio` / `check` sub-components                     |
| `component`     | `Type<InputBaseComponent<any>>`                                | -           | Per-call inline override (takes precedence over the token)       |

#### Default Sub-Components (selector → FieldType)

| Selector                        | FieldType       |
| ------------------------------- | --------------- |
| `smart-input-text`              | `text`          |
| `smart-input-email`             | `email`         |
| `smart-input-password`          | `password`      |
| `smart-input-nip`               | `nip`           |
| `smart-input-pesel`             | `pesel`         |
| `smart-input-int`               | `int`           |
| `smart-input-float`             | `float`         |
| `smart-input-currency`          | `currency`      |
| `smart-input-phone-number`      | `phoneNumber`   |
| `smart-input-phone-number-pl`   | `phoneNumberPl` |
| `smart-input-long-text`         | `longText`      |
| `smart-input-date`              | `date`          |
| `smart-input-date-with-edit`    | `dateWithEdit`  |
| `smart-input-date-range`        | `dateRange`     |
| `smart-input-flag`              | `flag`          |
| `smart-input-radio`             | `radio`         |
| `smart-input-check`             | `check`         |
| `smart-input-enum`              | `enum`          |
| `smart-input-color`             | `color`         |
| `smart-input-logo`              | `logo`          |
| `smart-input-address`           | `address`       |
| `smart-input-object`            | `object`        |
| `smart-input-array`             | `array`         |
| `smart-input-ints`              | `ints`          |
| `smart-input-strings`           | `strings`       |
| `smart-input-file`              | `file`          |
| `smart-input-attachment`        | `attachment`    |
| `smart-input-image`             | `image`         |
| `smart-input-pdf`               | `pdf`           |
| `smart-input-video`             | `video`         |

#### Overriding Sub-Components

```typescript
import { INPUT_FIELD_COMPONENTS_TOKEN } from '@smartsoft001/angular';
import { FieldType } from '@smartsoft001/models';

providers: [
  {
    provide: INPUT_FIELD_COMPONENTS_TOKEN,
    useValue: {
      [FieldType.text]: MyCustomTextInputComponent,
    },
  },
]
```

#### Features

- Field-type dispatch via map with `NgComponentOutlet`
- Per-field substitution through `INPUT_FIELD_COMPONENTS_TOKEN`
- Inline error rendering via `<smart-input-error>` (when `touched && errors`)
- Label via `ModelLabelPipe`
- Resolves `@Field()` metadata from the model decorator (with `create`/`update` mode merge)
- `smart:` Tailwind prefix, dark mode via `smart:dark:`

### Date Range Component

The `<smart-date-range>` component provides a date range picker with a trigger button and a modal calendar overlay.

**Default component:** `DateRangeDefaultComponent` (selector: `smart-date-range`)
**Base class:** `DateRangeBaseComponent` — provides `ControlValueAccessor` integration, open/close state, calendar data management, clear and apply logic.
**Modal base class:** `DateRangeModalBaseComponent` — provides calendar rendering, quick filter buttons, date selection logic, and range restriction support.

#### Usage

```html
<!-- Basic -->
<smart-date-range [(ngModel)]="dateRange"></smart-date-range>

<!-- In reactive form -->
<smart-date-range formControlName="period"></smart-date-range>
```

#### Properties

| Property  | Type                                   | Default     | Description                                        |
| --------- | -------------------------------------- | ----------- | -------------------------------------------------- |
| `ngModel` | `ModelSignal<IDateRange \| undefined>` | `undefined` | Date range value (`start`, `end` in `YYYY-MM-DD`)  |

#### IDateRange (from @smartsoft001/domain-core)

```typescript
interface IDateRange {
  start: string; // YYYY-MM-DD
  end: string;   // YYYY-MM-DD
}
```

#### Features

- Trigger button showing selected range or "select" placeholder
- Clear button to reset value
- Modal overlay with full calendar view
- Quick filter buttons (Today, Yesterday, Last 7/30 days, This/Last Month)
- Date range selection with visual highlighting
- `ControlValueAccessor` integration
- Dark mode support

### Date Edit Component

The `<smart-date-edit>` component provides a digit-by-digit date input editor (DD-MM-RRRR format).

**Default component:** `DateEditDefaultComponent` (selector: `smart-date-edit`)
**Base class:** `DateEditBaseComponent` — provides `ControlValueAccessor` integration, digit-by-digit value management, date validation via moment.js, and auto-focus navigation logic.

#### Usage

```html
<!-- Basic -->
<smart-date-edit [(ngModel)]="dateValue"></smart-date-edit>

<!-- In reactive form -->
<smart-date-edit formControlName="birthDate"></smart-date-edit>

<!-- Listen for validity -->
<smart-date-edit [(ngModel)]="dateValue" (validChange)="onValid($event)"></smart-date-edit>
```

#### Properties

| Property      | Type                     | Default        | Description                      |
| ------------- | ------------------------ | -------------- | -------------------------------- |
| `ngModel`     | `ModelSignal<string>`    | `'2001-01-01'` | Date value in `YYYY-MM-DD` format |
| `validChange` | `OutputEmitter<boolean>` | -              | Emits when date validity changes  |

#### Features

- Digit-by-digit editing with auto-focus navigation
- Date validation via moment.js
- Invalid state visual feedback (red borders)
- Dark mode support
- `ControlValueAccessor` integration


### AvatarBaseComponent

Abstract base class for avatar components. Exposes optional `imageUrl`, `initials`, `size` (`'xs' | 'sm' | 'md' | 'lg' | 'xl'`, default `'md'`), `shape` (`'circle' | 'rounded'`, default `'circle'`), `notificationPosition`, `group` (`IAvatarItem[]`), `IAvatarOptions`, `cssClass` (alias `class`), and a computed `isGroup` signal that toggles between single avatar and stacked group rendering.

**Inputs:** `imageUrl` (`string`), `initials` (`string`), `size` (`SmartAvatarSize`), `shape` (`SmartAvatarShape`), `group` (`IAvatarItem[]`), `options` (`IAvatarOptions`), `class` (`string`)

### Avatar Component

The `<smart-avatar>` component renders a single avatar (image, initials, or placeholder) or a stacked group when `group` is non-empty. It is a wrapper that delegates to `AvatarStandardComponent` by default and supports an InjectionToken (`AVATAR_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `AvatarComponent` (selector: `smart-avatar`)
**Default:** `AvatarStandardComponent` (selector: `smart-avatar-standard`)
**Token:** `AVATAR_STANDARD_COMPONENT_TOKEN` — provide a `Type<AvatarBaseComponent>` to override the default.

### BadgeBaseComponent

Abstract base class for badge components. Exposes required `text`, optional `color` (`SmartBadgeColor`, default `'gray'`), `size` (`'sm' | 'md'`, default `'md'`), `IBadgeOptions` (`variant` — `'solid' | 'soft' | 'outline'`, `pill`, `withDot`, `withRemove`), `cssClass` (alias `class`), `removed` output, and a `remove()` method.

**Inputs:** `text` (`string`, required), `color` (`SmartBadgeColor`), `size` (`'sm' | 'md'`), `options` (`IBadgeOptions`), `class` (`string`)
**Outputs:** `removed` (`void`)

### Badge Component

The `<smart-badge>` component renders a small status/label chip with an optional dot indicator and optional remove `×` button. It is a wrapper that delegates to `BadgeStandardComponent` by default and supports an InjectionToken (`BADGE_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `BadgeComponent` (selector: `smart-badge`)
**Default:** `BadgeStandardComponent` (selector: `smart-badge-standard`)
**Preset variation:** `BadgePresetComponent` (selector: `smart-badge-preset`) — styled drop-in replacement grouping the **solid / soft / outline** color presets (via `options.variant`, default `'soft'`) across the full `SmartBadgeColor` palette, with `pill`, `size`, `withDot`, and `withRemove` support and `dark:` styling. Register through the token to restyle every `<smart-badge>`:

```typescript
providers: [
  { provide: BADGE_STANDARD_COMPONENT_TOKEN, useValue: BadgePresetComponent },
];
```

**Token:** `BADGE_STANDARD_COMPONENT_TOKEN` — provide a `Type<BadgeBaseComponent>` to override the default.

### ButtonGroupBaseComponent

Abstract base class for button-group components. Exposes `buttons` (`InputSignal<IButtonGroupButton[]>`, default `[]`), `IButtonGroupOptions`, two-way `selected` (`ModelSignal<string | undefined>`), `cssClass` (alias `class`), `buttonClick` output, and a `select(id)` method that updates `selected` and emits `buttonClick`.

**Inputs:** `buttons` (`IButtonGroupButton[]`), `options` (`IButtonGroupOptions`), `selected` (`ModelSignal<string | undefined>`), `class` (`string`)
**Outputs:** `buttonClick` (`{ buttonId: string }`)

### ButtonGroup Component

The `<smart-button-group>` component renders a `role="group"` of toggle buttons with a single active selection. It is a wrapper that delegates to `ButtonGroupStandardComponent` by default and supports an InjectionToken (`BUTTON_GROUP_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ButtonGroupComponent` (selector: `smart-button-group`)
**Default:** `ButtonGroupStandardComponent` (selector: `smart-button-group-standard`)
**Token:** `BUTTON_GROUP_STANDARD_COMPONENT_TOKEN` — provide a `Type<ButtonGroupBaseComponent>` to override the default.

### ContainerBaseComponent

Abstract base class for container layout components. Exposes optional `IContainerOptions` (`mode`, `padding`, `narrow`) and `cssClass` (alias `class`).

**Inputs:** `options` (`IContainerOptions`), `class` (`string`)

### Container Component

The `<smart-container>` component is a pure layout wrapper that constrains width and applies padding based on `options`. It accepts arbitrary content via `<ng-content>`. It is a wrapper that delegates to `ContainerStandardComponent` by default and supports an InjectionToken (`CONTAINER_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ContainerComponent` (selector: `smart-container`)
**Default:** `ContainerStandardComponent` (selector: `smart-container-standard`)
**Token:** `CONTAINER_STANDARD_COMPONENT_TOKEN` — provide a `Type<ContainerBaseComponent>` to override the default.

> Content projected into `<smart-container>` reaches a custom container registered via the token too: the wrapper passes it to the custom component's default `<ng-content>` slot, wrapped in one `display: contents` element (so selectors on the slot's parent such as `space-y-*` or `> *` do not reach the projected nodes).

### DividerBaseComponent

Abstract base class for divider/separator components. Exposes optional `label`, `iconName`, `title`, `actionLabel`, `IDividerOptions` (`variant`, `position`), `cssClass` (alias `class`), and `actionClick` output.

**Inputs:** `label` (`string`), `iconName` (`string`), `title` (`string`), `actionLabel` (`string`), `options` (`IDividerOptions`), `class` (`string`)
**Outputs:** `actionClick` (`void`)

### Divider Component

The `<smart-divider>` component renders a horizontal `role="separator"` with optional label, title, or action button. It is a wrapper that delegates to `DividerStandardComponent` by default and supports an InjectionToken (`DIVIDER_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `DividerComponent` (selector: `smart-divider`)
**Default:** `DividerStandardComponent` (selector: `smart-divider-standard`)
**Token:** `DIVIDER_STANDARD_COMPONENT_TOKEN` — provide a `Type<DividerBaseComponent>` to override the default.

### DrawerBaseComponent

Abstract base class for drawer (slide-out side panel) components. Exposes two-way `open` (`ModelSignal<boolean>`), optional `title`, `IDrawerOptions` (`position`, `wide`, `withOverlay`, `brandedHeader`, `stickyFooter`, `variant`), `cssClass` (alias `class`), `closed` output, and a `close()` method that sets `open` to `false` and emits `closed`.

**Inputs:** `open` (`ModelSignal<boolean>`), `title` (`string`), `options` (`IDrawerOptions`), `class` (`string`)
**Outputs:** `closed` (`void`)

### Drawer Component

The `<smart-drawer>` component renders a slide-out `<aside role="dialog" aria-modal="true">` anchored left or right with an optional overlay. It accepts arbitrary content via `<ng-content>`. It is a wrapper that delegates to `DrawerStandardComponent` by default and supports an InjectionToken (`DRAWER_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `DrawerComponent` (selector: `smart-drawer`)
**Default:** `DrawerStandardComponent` (selector: `smart-drawer-standard`)
**Token:** `DRAWER_STANDARD_COMPONENT_TOKEN` — provide a `Type<DrawerBaseComponent>` to override the default.

> Slide animations are deferred to custom implementations. Projected content reaches a custom impl provided via the token too, in its default `<ng-content>` slot.

### DropdownBaseComponent

Abstract base class for dropdown menu components. Exposes `items` (`InputSignal<IDropdownItem[]>`), optional `triggerLabel`, two-way `open` (`ModelSignal<boolean>`), `IDropdownOptions` (`variant`, `headerLabel`), `cssClass` (alias `class`), `selectedItem` output, and `toggle()` / `close()` / `selectItem(id)` methods.

**Inputs:** `items` (`IDropdownItem[]`), `triggerLabel` (`string`), `open` (`ModelSignal<boolean>`), `options` (`IDropdownOptions`), `class` (`string`)
**Outputs:** `selectedItem` (`{ itemId: string }`)

### Dropdown Component

The `<smart-dropdown>` component renders a button trigger and a `role="menu"` of menu items with optional dividers and an optional header. The trigger label can be replaced via `<ng-content>`. It is a wrapper that delegates to `DropdownStandardComponent` by default and supports an InjectionToken (`DROPDOWN_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `DropdownComponent` (selector: `smart-dropdown`)
**Default:** `DropdownStandardComponent` (selector: `smart-dropdown-standard`)
**Token:** `DROPDOWN_STANDARD_COMPONENT_TOKEN` — provide a `Type<DropdownBaseComponent>` to override the default.

### ListContainerBaseComponent

Abstract base class for list-container layout components. Exposes optional `IListContainerOptions` (`variant`, `fullWidthOnMobile`) and `cssClass` (alias `class`).

**Inputs:** `options` (`IListContainerOptions`), `class` (`string`)

### ListContainer Component

The `<smart-list-container>` component is a pure layout wrapper around a list of items, rendering as `<div role="list">` with arbitrary children projected via `<ng-content>`. It is a wrapper that delegates to `ListContainerStandardComponent` by default and supports an InjectionToken (`LIST_CONTAINER_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `ListContainerComponent` (selector: `smart-list-container`)
**Default:** `ListContainerStandardComponent` (selector: `smart-list-container-standard`)
**Token:** `LIST_CONTAINER_STANDARD_COMPONENT_TOKEN` — provide a `Type<ListContainerBaseComponent>` to override the default.

### MediaObjectBaseComponent

Abstract base class for media-object layout components. Exposes required `mediaUrl` and `mediaAlt`, optional `IMediaObjectOptions` (`alignment`, `position`, `responsive`, `nested`, `wide`), and `cssClass` (alias `class`). Body content is projected via `<ng-content>`.

**Inputs:** `mediaUrl` (`string`, required), `mediaAlt` (`string`, required), `options` (`IMediaObjectOptions`), `class` (`string`)

### MediaObject Component

The `<smart-media-object>` component renders an `<img>` paired with arbitrary body content (`<ng-content>`), with the image positioned left or right via `options.position`. It is a wrapper that delegates to `MediaObjectStandardComponent` by default and supports an InjectionToken (`MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `MediaObjectComponent` (selector: `smart-media-object`)
**Default:** `MediaObjectStandardComponent` (selector: `smart-media-object-standard`)
**Token:** `MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN` — provide a `Type<MediaObjectBaseComponent>` to override the default.

### NotificationBaseComponent

Abstract base class for notification (toast/inline) components. Exposes required `title`, optional `description`, `iconName`, `avatarUrl`, `actions` (`INotificationAction[]`), `dismissible` (default `false`), `INotificationOptions` (`variant`, `ariaLive`), `cssClass` (alias `class`), `dismissed` and `actionClick` outputs, and `dismiss()` / `invokeAction(id)` methods.

**Inputs:** `title` (`string`, required), `description` (`string`), `iconName` (`string`), `avatarUrl` (`string`), `actions` (`INotificationAction[]`), `dismissible` (`boolean`), `options` (`INotificationOptions`), `class` (`string`)
**Outputs:** `dismissed` (`void`), `actionClick` (`{ actionId: string }`)

### Notification Component

The `<smart-notification>` component renders an accessible `role="status"` notification with `aria-live` (default `'polite'`), title, optional description, optional dismiss button, and a list of action buttons. It is a wrapper that delegates to `NotificationStandardComponent` by default and supports an InjectionToken (`NOTIFICATION_STANDARD_COMPONENT_TOKEN`) to replace the default rendering with a custom implementation.

**Wrapper:** `NotificationComponent` (selector: `smart-notification`)
**Default:** `NotificationStandardComponent` (selector: `smart-notification-standard`)
**Token:** `NOTIFICATION_STANDARD_COMPONENT_TOKEN` — provide a `Type<NotificationBaseComponent>` to override the default.

## 📜 License

This project is licensed under the MIT License.
