@smartsoft001/angular 2.122.0 → 2.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +298 -0
- package/fesm2022/smartsoft001-angular.mjs +1148 -53
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/types/smartsoft001-angular.d.ts +590 -5
package/README.md
CHANGED
|
@@ -678,6 +678,85 @@ providers: [
|
|
|
678
678
|
|
|
679
679
|
> `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.
|
|
680
680
|
|
|
681
|
+
### CommandPaletteBaseComponent
|
|
682
|
+
|
|
683
|
+
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.
|
|
684
|
+
|
|
685
|
+
**Inputs:** `commands` (`ICommand[]`), `open` (`ModelSignal<boolean>`), `query` (`ModelSignal<string>`), `options` (`ICommandPaletteOptions`), `class` (`string`)
|
|
686
|
+
**Outputs:** `runCommand` (`{ commandId: string }`)
|
|
687
|
+
|
|
688
|
+
### CommandPalette Component
|
|
689
|
+
|
|
690
|
+
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.
|
|
691
|
+
|
|
692
|
+
**Wrapper:** `CommandPaletteComponent` (selector: `smart-command-palette`)
|
|
693
|
+
**Default:** `CommandPaletteStandardComponent` (selector: `smart-command-palette-standard`)
|
|
694
|
+
**Token:** `COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN` — provide a `Type<CommandPaletteBaseComponent>` to override the default.
|
|
695
|
+
|
|
696
|
+
#### Usage
|
|
697
|
+
|
|
698
|
+
```html
|
|
699
|
+
<!-- Basic -->
|
|
700
|
+
<smart-command-palette
|
|
701
|
+
[commands]="commands"
|
|
702
|
+
[(open)]="open"
|
|
703
|
+
[(query)]="query"
|
|
704
|
+
(runCommand)="onRunCommand($event)"
|
|
705
|
+
/>
|
|
706
|
+
|
|
707
|
+
<!-- With options -->
|
|
708
|
+
<smart-command-palette
|
|
709
|
+
[commands]="commands"
|
|
710
|
+
[(open)]="open"
|
|
711
|
+
[options]="{ placeholder: 'Search commands…', emptyText: 'No results' }"
|
|
712
|
+
/>
|
|
713
|
+
|
|
714
|
+
<!-- With external class -->
|
|
715
|
+
<smart-command-palette
|
|
716
|
+
[commands]="commands"
|
|
717
|
+
[(open)]="open"
|
|
718
|
+
class="smart:m-4"
|
|
719
|
+
/>
|
|
720
|
+
```
|
|
721
|
+
|
|
722
|
+
#### ICommand
|
|
723
|
+
|
|
724
|
+
| Property | Type | Default | Description |
|
|
725
|
+
| ------------- | -------- | ---------- | -------------------------------------- |
|
|
726
|
+
| `id` | `string` | *required* | Identifier emitted via `runCommand` |
|
|
727
|
+
| `label` | `string` | *required* | Visible label, also used for filtering |
|
|
728
|
+
| `icon` | `string` | - | Optional icon hint (variant-specific) |
|
|
729
|
+
| `group` | `string` | - | Optional group name (variant-specific) |
|
|
730
|
+
| `href` | `string` | - | Optional link target |
|
|
731
|
+
| `description` | `string` | - | Optional secondary text |
|
|
732
|
+
| `imageUrl` | `string` | - | Optional image URL |
|
|
733
|
+
|
|
734
|
+
#### ICommandPaletteOptions
|
|
735
|
+
|
|
736
|
+
| Property | Type | Default | Description |
|
|
737
|
+
| ------------- | ------------------------------- | ------- | -------------------------------------------------- |
|
|
738
|
+
| `variant` | `SmartCommandPaletteVariant` | - | Variant selector (consumed by custom impls) |
|
|
739
|
+
| `placeholder` | `string` | - | Placeholder text for the search input |
|
|
740
|
+
| `emptyText` | `string` | - | Text shown when no command matches the query |
|
|
741
|
+
| `ariaLabel` | `string` | - | Accessible label rendered as `aria-label` |
|
|
742
|
+
|
|
743
|
+
The default `CommandPaletteStandardComponent` consumes `placeholder`, `emptyText`, and `ariaLabel`. The `variant` selector is reserved for custom implementations registered via `COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN`.
|
|
744
|
+
|
|
745
|
+
#### Overriding with Custom Implementation
|
|
746
|
+
|
|
747
|
+
```typescript
|
|
748
|
+
import { COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
|
|
749
|
+
|
|
750
|
+
providers: [
|
|
751
|
+
{
|
|
752
|
+
provide: COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN,
|
|
753
|
+
useValue: MyCommandPaletteComponent,
|
|
754
|
+
},
|
|
755
|
+
];
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
> 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.
|
|
759
|
+
|
|
681
760
|
### SectionHeadingBaseComponent
|
|
682
761
|
|
|
683
762
|
Abstract base class for section heading components. Exposes optional `ISectionHeadingOptions` and `cssClass` (alias `class`).
|
|
@@ -989,6 +1068,75 @@ providers: [
|
|
|
989
1068
|
];
|
|
990
1069
|
```
|
|
991
1070
|
|
|
1071
|
+
### ModalBaseComponent
|
|
1072
|
+
|
|
1073
|
+
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`).
|
|
1074
|
+
|
|
1075
|
+
**Inputs:** `open` (`ModelSignal<boolean>`), `title` (`string`), `description` (`string`), `actions` (`IModalAction[]`), `options` (`IModalOptions`), `class` (`string`)
|
|
1076
|
+
**Outputs:** `actionClick` (`{ actionId: string }`), `closed` (`void`)
|
|
1077
|
+
|
|
1078
|
+
### Modal Component
|
|
1079
|
+
|
|
1080
|
+
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.
|
|
1081
|
+
|
|
1082
|
+
**Wrapper:** `ModalComponent` (selector: `smart-modal`)
|
|
1083
|
+
**Default:** `ModalStandardComponent` (selector: `smart-modal-standard`)
|
|
1084
|
+
**Token:** `MODAL_STANDARD_COMPONENT_TOKEN` — provide a `Type<ModalBaseComponent>` to override the default.
|
|
1085
|
+
|
|
1086
|
+
#### Usage
|
|
1087
|
+
|
|
1088
|
+
```html
|
|
1089
|
+
<!-- Basic with title + actions -->
|
|
1090
|
+
<smart-modal
|
|
1091
|
+
[(open)]="confirmOpen"
|
|
1092
|
+
title="Deactivate account"
|
|
1093
|
+
description="This action cannot be undone."
|
|
1094
|
+
[actions]="[
|
|
1095
|
+
{ id: 'cancel', label: 'Cancel', variant: 'secondary' },
|
|
1096
|
+
{ id: 'confirm', label: 'Deactivate', variant: 'danger' },
|
|
1097
|
+
]"
|
|
1098
|
+
(actionClick)="onAction($event)"
|
|
1099
|
+
/>
|
|
1100
|
+
|
|
1101
|
+
<!-- With dismiss button + projected body -->
|
|
1102
|
+
<smart-modal [(open)]="open" [options]="{ withDismiss: true }">
|
|
1103
|
+
<form>
|
|
1104
|
+
<!-- custom body -->
|
|
1105
|
+
</form>
|
|
1106
|
+
</smart-modal>
|
|
1107
|
+
```
|
|
1108
|
+
|
|
1109
|
+
#### IModalAction
|
|
1110
|
+
|
|
1111
|
+
| Property | Type | Default | Description |
|
|
1112
|
+
| --------- | ------------------------------------------ | ----------- | ---------------------------------------- |
|
|
1113
|
+
| `id` | `string` | *required* | Identifier emitted via `actionClick` |
|
|
1114
|
+
| `label` | `string` | *required* | Visible button label |
|
|
1115
|
+
| `variant` | `'primary' \| 'secondary' \| 'danger'` | `'primary'` | Visual variant (consumed by custom impl) |
|
|
1116
|
+
|
|
1117
|
+
#### IModalOptions
|
|
1118
|
+
|
|
1119
|
+
| Property | Type | Default | Description |
|
|
1120
|
+
| ------------- | ------------------------------------------------------------- | ------- | ------------------------------------------------------------ |
|
|
1121
|
+
| `variant` | `'centered' \| 'wide' \| 'alert' \| 'left-aligned-buttons'` | - | Layout variant (consumed by custom impls) |
|
|
1122
|
+
| `withDismiss` | `boolean` | `false` | Show top-right dismiss `×` button |
|
|
1123
|
+
| `footerStyle` | `'default' \| 'gray'` | - | Footer styling variant (consumed by custom impls) |
|
|
1124
|
+
| `ariaLabel` | `string` | - | Accessible label rendered as `aria-label` (when no `title`) |
|
|
1125
|
+
|
|
1126
|
+
The default `ModalStandardComponent` consumes `withDismiss` and `ariaLabel`. The `variant` and `footerStyle` selectors are reserved for custom implementations registered via `MODAL_STANDARD_COMPONENT_TOKEN`.
|
|
1127
|
+
|
|
1128
|
+
#### Overriding with Custom Implementation
|
|
1129
|
+
|
|
1130
|
+
```typescript
|
|
1131
|
+
import { MODAL_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
|
|
1132
|
+
|
|
1133
|
+
providers: [
|
|
1134
|
+
{ provide: MODAL_STANDARD_COMPONENT_TOKEN, useValue: MyModalComponent },
|
|
1135
|
+
];
|
|
1136
|
+
```
|
|
1137
|
+
|
|
1138
|
+
> `NgComponentOutlet` does not propagate projected content. When a custom modal is registered via the token, content projected through the wrapper's `<ng-content>` is not forwarded — custom impls should rely on inputs (e.g. structured `data` extension) instead of `<ng-content>`.
|
|
1139
|
+
|
|
992
1140
|
### MultiColumnLayoutBaseComponent
|
|
993
1141
|
|
|
994
1142
|
Abstract base class for multi-column layout components. Exposes optional `IMultiColumnLayoutOptions` and `cssClass` (alias `class`).
|
|
@@ -2855,6 +3003,156 @@ The `<smart-date-edit>` component provides a digit-by-digit date input editor (D
|
|
|
2855
3003
|
- `ControlValueAccessor` integration
|
|
2856
3004
|
|
|
2857
3005
|
|
|
3006
|
+
### AvatarBaseComponent
|
|
3007
|
+
|
|
3008
|
+
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.
|
|
3009
|
+
|
|
3010
|
+
**Inputs:** `imageUrl` (`string`), `initials` (`string`), `size` (`SmartAvatarSize`), `shape` (`SmartAvatarShape`), `group` (`IAvatarItem[]`), `options` (`IAvatarOptions`), `class` (`string`)
|
|
3011
|
+
|
|
3012
|
+
### Avatar Component
|
|
3013
|
+
|
|
3014
|
+
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.
|
|
3015
|
+
|
|
3016
|
+
**Wrapper:** `AvatarComponent` (selector: `smart-avatar`)
|
|
3017
|
+
**Default:** `AvatarStandardComponent` (selector: `smart-avatar-standard`)
|
|
3018
|
+
**Token:** `AVATAR_STANDARD_COMPONENT_TOKEN` — provide a `Type<AvatarBaseComponent>` to override the default.
|
|
3019
|
+
|
|
3020
|
+
### BadgeBaseComponent
|
|
3021
|
+
|
|
3022
|
+
Abstract base class for badge components. Exposes required `text`, optional `color` (`SmartBadgeColor`, default `'gray'`), `size` (`'sm' | 'md'`, default `'md'`), `IBadgeOptions` (`variant`, `pill`, `withDot`, `withRemove`), `cssClass` (alias `class`), `removed` output, and a `remove()` method.
|
|
3023
|
+
|
|
3024
|
+
**Inputs:** `text` (`string`, required), `color` (`SmartBadgeColor`), `size` (`'sm' | 'md'`), `options` (`IBadgeOptions`), `class` (`string`)
|
|
3025
|
+
**Outputs:** `removed` (`void`)
|
|
3026
|
+
|
|
3027
|
+
### Badge Component
|
|
3028
|
+
|
|
3029
|
+
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.
|
|
3030
|
+
|
|
3031
|
+
**Wrapper:** `BadgeComponent` (selector: `smart-badge`)
|
|
3032
|
+
**Default:** `BadgeStandardComponent` (selector: `smart-badge-standard`)
|
|
3033
|
+
**Token:** `BADGE_STANDARD_COMPONENT_TOKEN` — provide a `Type<BadgeBaseComponent>` to override the default.
|
|
3034
|
+
|
|
3035
|
+
### ButtonGroupBaseComponent
|
|
3036
|
+
|
|
3037
|
+
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`.
|
|
3038
|
+
|
|
3039
|
+
**Inputs:** `buttons` (`IButtonGroupButton[]`), `options` (`IButtonGroupOptions`), `selected` (`ModelSignal<string | undefined>`), `class` (`string`)
|
|
3040
|
+
**Outputs:** `buttonClick` (`{ buttonId: string }`)
|
|
3041
|
+
|
|
3042
|
+
### ButtonGroup Component
|
|
3043
|
+
|
|
3044
|
+
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.
|
|
3045
|
+
|
|
3046
|
+
**Wrapper:** `ButtonGroupComponent` (selector: `smart-button-group`)
|
|
3047
|
+
**Default:** `ButtonGroupStandardComponent` (selector: `smart-button-group-standard`)
|
|
3048
|
+
**Token:** `BUTTON_GROUP_STANDARD_COMPONENT_TOKEN` — provide a `Type<ButtonGroupBaseComponent>` to override the default.
|
|
3049
|
+
|
|
3050
|
+
### ContainerBaseComponent
|
|
3051
|
+
|
|
3052
|
+
Abstract base class for container layout components. Exposes optional `IContainerOptions` (`mode`, `padding`, `narrow`) and `cssClass` (alias `class`).
|
|
3053
|
+
|
|
3054
|
+
**Inputs:** `options` (`IContainerOptions`), `class` (`string`)
|
|
3055
|
+
|
|
3056
|
+
### Container Component
|
|
3057
|
+
|
|
3058
|
+
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.
|
|
3059
|
+
|
|
3060
|
+
**Wrapper:** `ContainerComponent` (selector: `smart-container`)
|
|
3061
|
+
**Default:** `ContainerStandardComponent` (selector: `smart-container-standard`)
|
|
3062
|
+
**Token:** `CONTAINER_STANDARD_COMPONENT_TOKEN` — provide a `Type<ContainerBaseComponent>` to override the default.
|
|
3063
|
+
|
|
3064
|
+
> `NgComponentOutlet` does not propagate projected content. When a custom container is registered via the token, `<ng-content>` is dropped — custom impls should rely on inputs.
|
|
3065
|
+
|
|
3066
|
+
### DividerBaseComponent
|
|
3067
|
+
|
|
3068
|
+
Abstract base class for divider/separator components. Exposes optional `label`, `iconName`, `title`, `actionLabel`, `IDividerOptions` (`variant`, `position`), `cssClass` (alias `class`), and `actionClick` output.
|
|
3069
|
+
|
|
3070
|
+
**Inputs:** `label` (`string`), `iconName` (`string`), `title` (`string`), `actionLabel` (`string`), `options` (`IDividerOptions`), `class` (`string`)
|
|
3071
|
+
**Outputs:** `actionClick` (`void`)
|
|
3072
|
+
|
|
3073
|
+
### Divider Component
|
|
3074
|
+
|
|
3075
|
+
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.
|
|
3076
|
+
|
|
3077
|
+
**Wrapper:** `DividerComponent` (selector: `smart-divider`)
|
|
3078
|
+
**Default:** `DividerStandardComponent` (selector: `smart-divider-standard`)
|
|
3079
|
+
**Token:** `DIVIDER_STANDARD_COMPONENT_TOKEN` — provide a `Type<DividerBaseComponent>` to override the default.
|
|
3080
|
+
|
|
3081
|
+
### DrawerBaseComponent
|
|
3082
|
+
|
|
3083
|
+
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`.
|
|
3084
|
+
|
|
3085
|
+
**Inputs:** `open` (`ModelSignal<boolean>`), `title` (`string`), `options` (`IDrawerOptions`), `class` (`string`)
|
|
3086
|
+
**Outputs:** `closed` (`void`)
|
|
3087
|
+
|
|
3088
|
+
### Drawer Component
|
|
3089
|
+
|
|
3090
|
+
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.
|
|
3091
|
+
|
|
3092
|
+
**Wrapper:** `DrawerComponent` (selector: `smart-drawer`)
|
|
3093
|
+
**Default:** `DrawerStandardComponent` (selector: `smart-drawer-standard`)
|
|
3094
|
+
**Token:** `DRAWER_STANDARD_COMPONENT_TOKEN` — provide a `Type<DrawerBaseComponent>` to override the default.
|
|
3095
|
+
|
|
3096
|
+
> Slide animations are deferred to custom implementations. Content projection works in default mode but is dropped when a custom impl is provided via the token.
|
|
3097
|
+
|
|
3098
|
+
### DropdownBaseComponent
|
|
3099
|
+
|
|
3100
|
+
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.
|
|
3101
|
+
|
|
3102
|
+
**Inputs:** `items` (`IDropdownItem[]`), `triggerLabel` (`string`), `open` (`ModelSignal<boolean>`), `options` (`IDropdownOptions`), `class` (`string`)
|
|
3103
|
+
**Outputs:** `selectedItem` (`{ itemId: string }`)
|
|
3104
|
+
|
|
3105
|
+
### Dropdown Component
|
|
3106
|
+
|
|
3107
|
+
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.
|
|
3108
|
+
|
|
3109
|
+
**Wrapper:** `DropdownComponent` (selector: `smart-dropdown`)
|
|
3110
|
+
**Default:** `DropdownStandardComponent` (selector: `smart-dropdown-standard`)
|
|
3111
|
+
**Token:** `DROPDOWN_STANDARD_COMPONENT_TOKEN` — provide a `Type<DropdownBaseComponent>` to override the default.
|
|
3112
|
+
|
|
3113
|
+
### ListContainerBaseComponent
|
|
3114
|
+
|
|
3115
|
+
Abstract base class for list-container layout components. Exposes optional `IListContainerOptions` (`variant`, `fullWidthOnMobile`) and `cssClass` (alias `class`).
|
|
3116
|
+
|
|
3117
|
+
**Inputs:** `options` (`IListContainerOptions`), `class` (`string`)
|
|
3118
|
+
|
|
3119
|
+
### ListContainer Component
|
|
3120
|
+
|
|
3121
|
+
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.
|
|
3122
|
+
|
|
3123
|
+
**Wrapper:** `ListContainerComponent` (selector: `smart-list-container`)
|
|
3124
|
+
**Default:** `ListContainerStandardComponent` (selector: `smart-list-container-standard`)
|
|
3125
|
+
**Token:** `LIST_CONTAINER_STANDARD_COMPONENT_TOKEN` — provide a `Type<ListContainerBaseComponent>` to override the default.
|
|
3126
|
+
|
|
3127
|
+
### MediaObjectBaseComponent
|
|
3128
|
+
|
|
3129
|
+
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>`.
|
|
3130
|
+
|
|
3131
|
+
**Inputs:** `mediaUrl` (`string`, required), `mediaAlt` (`string`, required), `options` (`IMediaObjectOptions`), `class` (`string`)
|
|
3132
|
+
|
|
3133
|
+
### MediaObject Component
|
|
3134
|
+
|
|
3135
|
+
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.
|
|
3136
|
+
|
|
3137
|
+
**Wrapper:** `MediaObjectComponent` (selector: `smart-media-object`)
|
|
3138
|
+
**Default:** `MediaObjectStandardComponent` (selector: `smart-media-object-standard`)
|
|
3139
|
+
**Token:** `MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN` — provide a `Type<MediaObjectBaseComponent>` to override the default.
|
|
3140
|
+
|
|
3141
|
+
### NotificationBaseComponent
|
|
3142
|
+
|
|
3143
|
+
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.
|
|
3144
|
+
|
|
3145
|
+
**Inputs:** `title` (`string`, required), `description` (`string`), `iconName` (`string`), `avatarUrl` (`string`), `actions` (`INotificationAction[]`), `dismissible` (`boolean`), `options` (`INotificationOptions`), `class` (`string`)
|
|
3146
|
+
**Outputs:** `dismissed` (`void`), `actionClick` (`{ actionId: string }`)
|
|
3147
|
+
|
|
3148
|
+
### Notification Component
|
|
3149
|
+
|
|
3150
|
+
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.
|
|
3151
|
+
|
|
3152
|
+
**Wrapper:** `NotificationComponent` (selector: `smart-notification`)
|
|
3153
|
+
**Default:** `NotificationStandardComponent` (selector: `smart-notification-standard`)
|
|
3154
|
+
**Token:** `NOTIFICATION_STANDARD_COMPONENT_TOKEN` — provide a `Type<NotificationBaseComponent>` to override the default.
|
|
3155
|
+
|
|
2858
3156
|
## 📜 License
|
|
2859
3157
|
|
|
2860
3158
|
This project is licensed under the MIT License.
|