@smartsoft001/claude-plugins 2.173.0 → 2.175.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/claude-plugins",
3
- "version": "2.173.0",
3
+ "version": "2.175.0",
4
4
  "description": "Installs the smart@smartsoft Claude Code plugin into a project: the agents, skills and hooks this workspace develops with.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "smart",
3
3
  "description": "Smartsoft integration - safety validation, audit logging, and auto-formatting hooks",
4
- "version": "2.172.0"
4
+ "version": "2.174.0"
5
5
  }
@@ -18,7 +18,7 @@ Use this agent when a developer needs to:
18
18
 
19
19
  ## Component Availability
20
20
 
21
- This package contains two categories of components:
21
+ This package contains two categories of components. Every component also exports an abstract `*BaseComponent` that a custom implementation extends; the component's skill shows how.
22
22
 
23
23
  ### Ready-to-Use Components (base + default implementation)
24
24
 
@@ -30,7 +30,8 @@ These have concrete selectors and can be used directly in templates.
30
30
  | Date Range | `angular-components-date-range` | `<smart-date-range>` | Date range picker with modal calendar and quick filters |
31
31
  | Detail | `angular-components-detail` | `<smart-detail>` | Renders a single model field by dispatching to a sub-component per `FieldType` |
32
32
  | Input | `angular-components-input` | `<smart-input>` | Renders a form input by dispatching to a sub-component per `FieldType` |
33
- | Icon | — | `<smart-icon>` | SVG icon component (spinner) |
33
+ | Icon | `angular-components-icon` | `<smart-icon>` | SVG icon by name (spinner, chevrons), with a custom `template` override |
34
+ | Accordion | `angular-components-accordion` | `<smart-accordion>` | Collapsible section with projected `[accordionHeader]` / `[accordionBody]` |
34
35
 
35
36
  ### Ready-to-Use with extension token
36
37
 
@@ -43,8 +44,10 @@ These render a default standard implementation and accept a custom implementatio
43
44
  | Avatar | `angular-components-avatar` | `<smart-avatar>` | `AVATAR_STANDARD_COMPONENT_TOKEN` |
44
45
  | Badge | `angular-components-badge` | `<smart-badge>` | `BADGE_STANDARD_COMPONENT_TOKEN` |
45
46
  | Breadcrumbs | `angular-components-breadcrumbs` | `<smart-breadcrumbs>` | `BREADCRUMBS_STANDARD_COMPONENT_TOKEN` |
47
+ | Button | `angular-components-button` | `<smart-button>` | `BUTTON_STANDARD_COMPONENT_TOKEN` |
46
48
  | Button Group | `angular-components-button-group` | `<smart-button-group>` | `BUTTON_GROUP_STANDARD_COMPONENT_TOKEN` |
47
49
  | Calendar | `angular-components-calendar` | `<smart-calendar>` | `CALENDAR_STANDARD_COMPONENT_TOKEN` |
50
+ | Card | `angular-components-card` | `<smart-card>` | `CARD_STANDARD_COMPONENT_TOKEN` |
48
51
  | Card Heading | `angular-components-card-heading` | `<smart-card-heading>` | `CARD_HEADING_STANDARD_COMPONENT_TOKEN` |
49
52
  | Command Palette | `angular-components-command-palette` | `<smart-command-palette>` | `COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN` |
50
53
  | Container | `angular-components-container` | `<smart-container>` | `CONTAINER_STANDARD_COMPONENT_TOKEN` |
@@ -65,7 +68,9 @@ These render a default standard implementation and accept a custom implementatio
65
68
  | Modal | `angular-components-modal` | `<smart-modal>` | `MODAL_STANDARD_COMPONENT_TOKEN` |
66
69
  | Multi-Column Layout | `angular-components-multi-column-layout` | `<smart-multi-column-layout>` | `MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN` |
67
70
  | Navbar | `angular-components-navbar` | `<smart-navbar>` | `NAVBAR_STANDARD_COMPONENT_TOKEN` |
71
+ | Page | `angular-components-page` | `<smart-page>` | `PAGE_VARIANT_COMPONENTS_TOKEN` |
68
72
  | Page Heading | `angular-components-page-heading` | `<smart-page-heading>` | `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` |
73
+ | Paging | `angular-components-paging` | `<smart-paging>` | `PAGING_STANDARD_COMPONENT_TOKEN` |
69
74
  | Password Strength | `angular-components-password-strength` | `<smart-password-strength>` | `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN` |
70
75
  | Progress Bars | `angular-components-progress-bars` | `<smart-progress-bars>` | `PROGRESS_BARS_STANDARD_COMPONENT_TOKEN` |
71
76
  | Searchbar | `angular-components-searchbar` | `<smart-searchbar>` | `SEARCHBAR_STANDARD_COMPONENT_TOKEN` |
@@ -83,26 +88,13 @@ These render a default standard implementation and accept a custom implementatio
83
88
  | Toggle | `angular-components-toggle` | `<smart-toggle>` | `TOGGLE_STANDARD_COMPONENT_TOKEN` |
84
89
  | Vertical Navigation | `angular-components-vertical-navigation` | `<smart-vertical-navigation>` | `VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN` |
85
90
 
86
- ### Base-Only Components (abstract classes for extension)
87
-
88
- These provide abstract base classes (`@Directive()`) that can be extended to create custom implementations.
89
-
90
- | Component | Skill | Base Class | Description |
91
- | --------- | ------------------------------ | ------------------------ | ----------------------------------------------------------------- |
92
- | Button | `angular-components-button` | `ButtonBaseComponent` | Variant/color computation, confirm mode, disabled state |
93
- | Card | `angular-components-card` | `CardBaseComponent` | Container classes, header/body/footer layout, gray backgrounds |
94
- | Accordion | `angular-components-accordion` | `AccordionBaseComponent` | Toggle logic, disabled state, container classes |
95
- | Page | `angular-components-page` | `PageBaseComponent` | Header with title, back button, search, end buttons, content slot |
96
- | Paging | `angular-components-paging` | `PagingBaseComponent` | Page state, ellipsized page list, `pageChange` output |
97
-
98
91
  ## Decision Logic
99
92
 
100
93
  When a developer asks about a component:
101
94
 
102
- 1. **Wants to use `<smart-date-edit>`, `<smart-date-range>`, `<smart-detail>`, or `<smart-input>`** → delegate to the corresponding skill for usage API
103
- 2. **Wants to use `<smart-action-panel>`, `<smart-alert>` (or `AlertService`), `<smart-avatar>`, `<smart-badge>`, `<smart-breadcrumbs>`, `<smart-button-group>`, `<smart-calendar>`, `<smart-card-heading>`, `<smart-command-palette>`, `<smart-container>`, `<smart-description-list>`, `<smart-details>`, `<smart-divider>`, `<smart-drawer>`, `<smart-dropdown>`, `<smart-empty-state>`, `<smart-feed>`, `<smart-form>`, `<smart-grid-list>`, `<smart-info>`, `<smart-list>`, `<smart-list-container>`, `<smart-media-object>`, `<smart-modal>`, `<smart-multi-column-layout>`, `<smart-navbar>`, `<smart-notification>`, `<smart-page-heading>`, `<smart-password-strength>`, `<smart-progress-bars>`, `<smart-searchbar>`, `<smart-section-heading>`, `<smart-select-menu>`, `<smart-sidebar-layout>`, `<smart-sidebar-navigation>`, `<smart-sign-in-form>`, `<smart-stacked-layout>`, `<smart-stacked-list>`, `<smart-stats>`, `<smart-table>`, `<smart-tabs>`, `<smart-textarea>`, `<smart-toggle>`, or `<smart-vertical-navigation>`** → delegate to the skill to explain usage, token override pattern, and how to extend the base class with a custom implementation
104
- 3. **Wants to use `<smart-button>`, `<smart-card>`, `<smart-accordion>`, `<smart-page>`, or `<smart-paging>`** → delegate to the skill to explain how to extend the base class and create a custom implementation
105
- 4. **Wants to create a custom component** → delegate to the base-only skill for extension patterns and API
95
+ 1. **Wants to use `<smart-date-edit>`, `<smart-date-range>`, `<smart-detail>`, `<smart-input>`, `<smart-icon>` or `<smart-accordion>`** → delegate to the corresponding skill for usage API
96
+ 2. **Wants to use `<smart-action-panel>`, `<smart-alert>` (or `AlertService`), `<smart-avatar>`, `<smart-badge>`, `<smart-breadcrumbs>`, `<smart-button>`, `<smart-button-group>`, `<smart-calendar>`, `<smart-card>`, `<smart-card-heading>`, `<smart-command-palette>`, `<smart-container>`, `<smart-description-list>`, `<smart-details>`, `<smart-divider>`, `<smart-drawer>`, `<smart-dropdown>`, `<smart-empty-state>`, `<smart-feed>`, `<smart-form>`, `<smart-grid-list>`, `<smart-info>`, `<smart-list>`, `<smart-list-container>`, `<smart-media-object>`, `<smart-modal>`, `<smart-multi-column-layout>`, `<smart-navbar>`, `<smart-notification>`, `<smart-page>`, `<smart-page-heading>`, `<smart-paging>`, `<smart-password-strength>`, `<smart-progress-bars>`, `<smart-searchbar>`, `<smart-section-heading>`, `<smart-select-menu>`, `<smart-sidebar-layout>`, `<smart-sidebar-navigation>`, `<smart-sign-in-form>`, `<smart-stacked-layout>`, `<smart-stacked-list>`, `<smart-stats>`, `<smart-table>`, `<smart-tabs>`, `<smart-textarea>`, `<smart-toggle>`, or `<smart-vertical-navigation>`** → delegate to the skill to explain usage, token override pattern, and how to extend the base class with a custom implementation
97
+ 3. **Wants a custom implementation of a component** → delegate to that component's skill: it shows the base class to extend and, where there is one, the token to register it with
106
98
 
107
99
  ## Skills to Use
108
100
 
@@ -110,7 +102,7 @@ Always delegate to the per-component skill for detailed API, usage examples, and
110
102
 
111
103
  - **Date Edit** → use skill `angular-components-date-edit`
112
104
  - **Date Range** → use skill `angular-components-date-range`
113
- - **Accordion** (base only) → use skill `angular-components-accordion`
105
+ - **Accordion** → use skill `angular-components-accordion`
114
106
  - **Action Panel** (with extension token) → use skill `angular-components-action-panel`
115
107
  - **Alert** (with extension token; also `AlertService.show()`) → use skill `angular-components-alert`
116
108
  - **Avatar** (with extension token) → use skill `angular-components-avatar`
@@ -157,10 +149,11 @@ Always delegate to the per-component skill for detailed API, usage examples, and
157
149
  - **Textarea** (with extension token) → use skill `angular-components-textarea`
158
150
  - **Toggle** (with extension token) → use skill `angular-components-toggle`
159
151
  - **Vertical Navigation** (with extension token) → use skill `angular-components-vertical-navigation`
160
- - **Button** (base only) → use skill `angular-components-button`
161
- - **Card** (base only) → use skill `angular-components-card`
162
- - **Page** (base only) → use skill `angular-components-page`
163
- - **Paging** (base only) → use skill `angular-components-paging`
152
+ - **Button** (with extension token) → use skill `angular-components-button`
153
+ - **Card** (with extension token) → use skill `angular-components-card`
154
+ - **Icon** → use skill `angular-components-icon`
155
+ - **Page** (with extension token map) → use skill `angular-components-page`
156
+ - **Paging** (with extension token) → use skill `angular-components-paging`
164
157
 
165
158
  ## Installation
166
159
 
@@ -171,8 +164,8 @@ npm i @smartsoft001/angular
171
164
  ## Public documentation
172
165
 
173
166
  Every component in the tables above also has a public page at
174
- https://emiljuchnikowski.github.io/smartsoft001/docs/components/ with its API, a usage example taken from
175
- the component's Storybook story and the live story itself. The pages are generated from these same skills,
167
+ https://emiljuchnikowski.github.io/smartsoft001/docs/components/ with its API, a compiled usage example
168
+ (the template and the TypeScript a consumer writes) and the live Storybook story. The pages are generated from these same skills,
176
169
  so they never disagree with what this agent tells you; point a developer there when they want to browse the
177
170
  catalogue rather than ask for one component.
178
171
 
@@ -70,14 +70,21 @@ SENSITIVE_PATTERNS = [
70
70
 
71
71
  **Change log location:**
72
72
 
73
+ `get_log_directory()` decides where the log goes:
74
+
73
75
  ```python
74
- # Default: .claude/audit_logs/YYYYMMDD_audit.jsonl
75
- LOG_DIR = Path(__file__).resolve().parent.parent / "audit_logs"
76
+ # Default: <project>/.claude/audit_logs/YYYYMMDD_audit.jsonl, where <project>
77
+ # is CLAUDE_PROJECT_DIR (set by Claude Code) or the working directory.
78
+ project_dir = os.environ.get("CLAUDE_PROJECT_DIR") or os.getcwd()
79
+ log_dir = Path(project_dir) / ".claude" / "audit_logs"
76
80
 
77
81
  # Custom location:
78
- LOG_DIR = Path("/var/log/claude-audit")
82
+ log_dir = Path("/var/log/claude-audit")
79
83
  ```
80
84
 
85
+ The `audit-log` skill reads `.claude/audit_logs/`, so a custom location also
86
+ needs the skill changed.
87
+
81
88
  ---
82
89
 
83
90
  ### auto_format.sh
@@ -105,7 +105,7 @@ All hooks are configured in `hooks.json` in this directory. Claude Code reads th
105
105
 
106
106
  **Purpose:** Logs all Claude actions for audit trail.
107
107
 
108
- **Log location:** `.claude/audit_logs/YYYYMMDD_audit.jsonl`
108
+ **Log location:** `.claude/audit_logs/YYYYMMDD_audit.jsonl` in the project (`CLAUDE_PROJECT_DIR`, or the working directory). Add `.claude/audit_logs` to the project's `.gitignore`.
109
109
 
110
110
  **Logged events:**
111
111
  - PreToolUse (tool name, inputs)
@@ -11,7 +11,8 @@ Features:
11
11
  - Automatic cleanup of logs older than 90 days
12
12
  - Captures all hook events: PreToolUse, PostToolUse, Stop, UserPromptSubmit
13
13
 
14
- Log location: .claude/audit_logs/ (local to repository)
14
+ Log location: <project>/.claude/audit_logs/, where <project> is
15
+ CLAUDE_PROJECT_DIR (set by Claude Code for hooks) or the working directory
15
16
  Log format: JSONL (one JSON object per line)
16
17
 
17
18
  Each log entry contains:
@@ -33,11 +34,14 @@ from pathlib import Path
33
34
 
34
35
 
35
36
  def get_log_directory() -> Path:
36
- """Get or create the audit logs directory in the local .claude folder."""
37
- # Get the directory where this script is located (.claude/hooks/)
38
- script_dir = Path(__file__).resolve().parent
39
- # Go up to .claude/ and then into audit_logs/
40
- log_dir = script_dir.parent / "audit_logs"
37
+ """Get or create the project's .claude/audit_logs directory.
38
+
39
+ The log belongs to the project, where the audit-log skill reads it, not
40
+ to the plugin: the script itself lives in the installed plugin, usually
41
+ under node_modules, so a path relative to it lands where nobody looks.
42
+ """
43
+ project_dir = os.environ.get("CLAUDE_PROJECT_DIR") or os.getcwd()
44
+ log_dir = Path(project_dir) / ".claude" / "audit_logs"
41
45
  log_dir.mkdir(parents=True, exist_ok=True)
42
46
  return log_dir
43
47
 
@@ -86,12 +90,19 @@ def main() -> None:
86
90
  """Main entry point for audit logging."""
87
91
  log_dir = get_log_directory()
88
92
 
89
- # Build audit entry
93
+ event_data = parse_event_data()
94
+ if not isinstance(event_data, dict):
95
+ event_data = {"payload": event_data}
96
+
97
+ # Claude Code sends the event name and the session id in the stdin payload;
98
+ # the environment variables are a fallback for other callers.
90
99
  audit_entry = {
91
100
  "timestamp": get_iso_timestamp(),
92
- "event_type": os.environ.get("CLAUDE_HOOK_EVENT", "unknown"),
93
- "session_id": os.environ.get("CLAUDE_SESSION_ID", "unknown"),
94
- "event_data": parse_event_data()
101
+ "event_type": event_data.get("hook_event_name")
102
+ or os.environ.get("CLAUDE_HOOK_EVENT", "unknown"),
103
+ "session_id": event_data.get("session_id")
104
+ or os.environ.get("CLAUDE_SESSION_ID", "unknown"),
105
+ "event_data": event_data,
95
106
  }
96
107
 
97
108
  # Write to log file
@@ -36,12 +36,26 @@ import { AccordionBaseComponent } from '@smartsoft001/angular';
36
36
 
37
37
  ```typescript
38
38
  interface IAccordionOptions {
39
- open?: boolean; // Initial open state
39
+ open?: boolean; // Initial open state (applied once, on first render)
40
40
  disabled?: boolean; // Prevents toggle when true
41
- animated?: boolean; // Enable/disable CSS transitions
41
+ /** @deprecated No variant animates anything; has no effect. */
42
+ animated?: boolean;
42
43
  }
43
44
  ```
44
45
 
46
+ - **`open`** is the initial state. When it is `true` on first render and `show`
47
+ has not been set to `true` by the consumer, `AccordionBaseComponent.ngOnInit`
48
+ sets `show` to `true` once and emits `showChange`, so both
49
+ `<smart-accordion>` (default) and `<smart-accordion-preset>` start expanded
50
+ and a bound `[(show)]` is updated to `true`. It is applied only once: later
51
+ changes to `options.open` are ignored and later toggles / `[(show)]` writes
52
+ are never overridden. Bind `[(show)]` to a **signal** when combining it with
53
+ `open`; a plain class field updated during the first change detection raises
54
+ `NG0100` (ExpressionChangedAfterItHasBeenChecked) in dev mode.
55
+ - **`disabled`** makes `toggle()` a no-op.
56
+ - **`animated`** is **deprecated**: no variant (default or preset) animates
57
+ expand/collapse.
58
+
45
59
  ### Computed Properties
46
60
 
47
61
  | Property | Type | Description |
@@ -50,9 +64,10 @@ interface IAccordionOptions {
50
64
 
51
65
  ### Methods
52
66
 
53
- | Method | Description |
54
- | ---------- | ------------------------------------------- |
55
- | `toggle()` | Toggles `show` signal (no-op if `disabled`) |
67
+ | Method | Description |
68
+ | ------------ | ------------------------------------------------------------------------ |
69
+ | `toggle()` | Toggles `show` signal (no-op if `disabled`) |
70
+ | `ngOnInit()` | Applies `options.open` as the initial state (sets `show` to `true` once) |
56
71
 
57
72
  ## Extending the Base Class
58
73
 
@@ -79,6 +94,9 @@ import { AccordionBaseComponent } from '@smartsoft001/angular';
79
94
  export class MyAccordionComponent extends AccordionBaseComponent {}
80
95
  ```
81
96
 
97
+ If a subclass implements its own `ngOnInit`, call `super.ngOnInit()` so
98
+ `options.open` keeps working.
99
+
82
100
  ## AccordionPresetComponent (`<smart-accordion-preset>`)
83
101
 
84
102
  A fully styled, drop-in accordion concrete based on the Preline bordered
@@ -85,7 +85,8 @@ interface IAvatarOptions {
85
85
  }
86
86
  ```
87
87
 
88
- The standard placeholder component does not consume these options — they are reserved for custom implementations registered through `AVATAR_STANDARD_COMPONENT_TOKEN` (e.g. to choose between an icon glyph and initials as the empty fallback, or to control z-index ordering when avatars in a group are stacked/overlapped).
88
+ - **`placeholderType`** (default `'icon'`) — the fallback when there is no `imageUrl`. Both variants follow the same rule: `initials` are shown whenever they are set. Without initials, `AvatarPresetComponent` renders an SVG icon (`'icon'`) or an empty initials chip (`'initials'`), while `AvatarStandardComponent` renders a `·` placeholder. The standard also exposes the value as `data-placeholder-type` on its root `<span>`.
89
+ - **`stackDirection`** (default `'top-to-bottom'`) — purely visual, styled by the preset (`'bottom-to-top'` reverses the overlapping stack). The standard exposes it as `data-stack-direction` on the group container (the root `<span>`, only in group mode), so plain CSS can target it.
89
90
 
90
91
  ### Single vs Group Mode
91
92
 
@@ -55,14 +55,7 @@ Abstract base directive for extending custom badge implementations. Exposes `tex
55
55
 
56
56
  ```typescript
57
57
  type SmartBadgeColor =
58
- | 'gray'
59
- | 'red'
60
- | 'yellow'
61
- | 'green'
62
- | 'blue'
63
- | 'indigo'
64
- | 'purple'
65
- | 'pink';
58
+ 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'indigo' | 'purple' | 'pink';
66
59
  ```
67
60
 
68
61
  ### IBadgeOptions
@@ -78,7 +71,7 @@ interface IBadgeOptions {
78
71
  }
79
72
  ```
80
73
 
81
- `BadgeStandardComponent` only consumes `withDot` (renders a leading bullet) and `withRemove` (renders a remove button that emits `removed`); it ignores `variant` and `pill`. `BadgePresetComponent` consumes **all** of `variant`, `pill`, `withDot`, and `withRemove`.
74
+ `BadgeStandardComponent` renders `withDot` (a leading bullet) and `withRemove` (a remove button that emits `removed`). `variant` and `pill` are purely visual and styled only by the preset; the standard exposes them as `data-variant` (default `"soft"`) and `data-pill` (`"true"` unless `pill === false`) on the same root `<span>` that carries `data-color` and `data-size`, so you can target them with plain CSS. `BadgePresetComponent` styles **all** of `variant`, `pill`, `withDot`, and `withRemove`.
82
75
 
83
76
  ## BADGE_STANDARD_COMPONENT_TOKEN
84
77
 
@@ -40,13 +40,13 @@ Abstract base directive (`@Directive()`) for extending custom button-group imple
40
40
 
41
41
  ### Inputs / Models / Outputs
42
42
 
43
- | Name | Kind | Type | Default | Description |
44
- | ------------- | ------ | ---------------------------------- | ----------- | ------------------------------------------------- |
45
- | `buttons` | input | `IButtonGroupButton[]` | `[]` | Array of button definitions |
46
- | `options` | input | `IButtonGroupOptions \| undefined` | `undefined` | Group-wide options (variant, etc.) |
47
- | `selected` | model | `string \| undefined` | `undefined` | Two-way bound id of the currently selected button |
48
- | `class` | input | `string` | `''` | External CSS classes (alias for `cssClass`) |
49
- | `buttonClick` | output | `{ buttonId: string }` | - | Emitted when a button is clicked |
43
+ | Name | Kind | Type | Default | Description |
44
+ | ------------- | ------ | ----------------------------------------------------------------------------------------- | ----------- | ------------------------------------------------- |
45
+ | `buttons` | input | `IButtonGroupButton[]` | `[]` | Array of button definitions |
46
+ | `options` | input | `IButtonGroupOptions \| undefined` | `undefined` | Group-wide options (variant, etc.) |
47
+ | `selected` | model | `string \| undefined` | `undefined` | Two-way bound id of the currently selected button |
48
+ | `class` | input | `string` | `''` | External CSS classes (alias for `cssClass`) |
49
+ | `buttonClick` | output | `IButtonGroupButtonClick` (`{ buttonId: string }`, exported from `@smartsoft001/angular`) | - | Emitted when a button is clicked |
50
50
 
51
51
  ### IButtonGroupButton
52
52
 
@@ -21,7 +21,7 @@ Main wrapper component. Renders `CalendarStandardComponent` by default. When `CA
21
21
 
22
22
  ### CalendarStandardComponent (`<smart-calendar-standard>`)
23
23
 
24
- Barebones placeholder concrete implementation. Renders a wrapper `<div>` containing an optional toolbar (`<button.prev>`, `<button.today-btn>`, `<button.next>`, optional `toolbarActionsTpl` slot) and a `<div class="view-grid">` with one `<div class="week">` per week and one `<button class="day">` per day. Each day exposes `data-current-month`, `data-today`, and `data-selected` attributes plus an `aria-label` of the date string. If `dayCellTpl` is provided in options, it replaces the default day-number content. The external `cssClass` is applied to the root wrapper. It does not include any visual styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
24
+ Barebones placeholder concrete implementation. Renders a wrapper `<div>` containing an optional toolbar (`<button.prev>`, `<button.today-btn>`, `<button.next>`, optional `toolbarActionsTpl` slot) and a `<div class="view-grid">` with one `<div class="week">` per week and one `<button class="day">` per day. Each day exposes `data-current-month`, `data-today`, and `data-selected` attributes plus an `aria-label` of the date string. The standard marks event days: a day with `eventsForDay(date).length > 0` gets `data-events="<count>"`, its `aria-label` gains the count (e.g. `"Thu Sep 03 2026, 1 event"`, `", 2 events"`; built by the base's `dayAriaLabel(date)`, which the preset uses too), and — without `dayCellTpl` — a `<span class="smart-calendar-event" data-role="event-dot" aria-hidden="true">` marker after the day number. If `dayCellTpl` is provided in options, it replaces the default day content (day number and marker). The external `cssClass` is applied to the root wrapper. It does not include any visual styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
25
25
 
26
26
  ### CalendarPresetComponent (`<smart-calendar-preset>`)
27
27
 
@@ -37,7 +37,7 @@ Abstract base directive containing the shared calendar logic. Exposes inputs and
37
37
 
38
38
  **Computed signals:** `view` (current view from options, default `'month'`), `weekStart` (`0 | 1`, default `1`), `showToolbar` (default `true`), `reference` (effective reference date — internal writable, seeded from `referenceDate` input), `monthGrid` (current 6×7 grid).
39
39
 
40
- **Methods:** `selectDay(date)`, `goToToday()`, `prevPeriod()`, `nextPeriod()`, `eventsForDay(day)`.
40
+ **Methods:** `selectDay(date)`, `goToToday()`, `prevPeriod()`, `nextPeriod()`, `eventsForDay(day)`, `dayAriaLabel(day)` (date string plus `", N event(s)"` when the day has events).
41
41
 
42
42
  **Static method:** `buildMonthGrid(reference, weekStart, selected): ICalendarDayCell[][]` — pure function returning a 6×7 grid suitable for rendering.
43
43
 
@@ -50,7 +50,7 @@ Abstract base directive containing the shared calendar logic. Exposes inputs and
50
50
  | `options` | `InputSignal<ICalendarOptions \| undefined>` | - | Configuration (view, weekStart, slot templates, …) |
51
51
  | `value` | `ModelSignal<Date \| null>` | `null` | Selected day (two-way binding) |
52
52
  | `referenceDate` | `InputSignal<Date \| undefined>` | - | Initial reference date (current month focus). Defaults to today inside the wrapper if undefined |
53
- | `events` | `InputSignal<ICalendarEvent[]>` | `[]` | Events available for `eventsForDay()` filtering |
53
+ | `events` | `InputSignal<ICalendarEvent[]>` | `[]` | Events for `eventsForDay()`; the standard and preset mark days that have events |
54
54
  | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`) |
55
55
 
56
56
  ### ICalendarOptions
@@ -30,12 +30,15 @@ Flexible card container with injectable standard rendering. The `<smart-card>` w
30
30
  ```typescript
31
31
  interface ICardOptions {
32
32
  title?: string;
33
+ /** @deprecated Never rendered by any variant; use the [cardHeader] / [cardFooter] slots. */
33
34
  buttons?: Array<IIconButtonOptions>;
34
35
  grayFooter?: boolean;
35
36
  grayBody?: boolean;
36
37
  }
37
38
  ```
38
39
 
40
+ `buttons` is **deprecated**: no card variant (standard or preset) has ever rendered it. Put actions in the header or footer instead, by projecting them into the `[cardHeader]` / `[cardFooter]` slots (with `hasHeader` / `hasFooter` set); the wrapper hands those to the variant as `headerTpl` / `footerTpl`.
41
+
39
42
  ### Content Projection
40
43
 
41
44
  | Selector | Description |
@@ -33,7 +33,7 @@ Styled variation that extends `ModalBaseComponent` and is a drop-in replacement
33
33
 
34
34
  ### ModalBaseComponent (abstract)
35
35
 
36
- Abstract base directive for extending custom modal implementations. Exposes `open` as a two-way `ModelSignal<boolean>`, `title` / `description` as optional `InputSignal<string | undefined>`, `actions` as `InputSignal<IModalAction[]>` (default `[]`), `options` as `InputSignal<IModalOptions | undefined>`, `cssClass` as `InputSignal<string>` (with alias `class`), `actionClick` and `closed` outputs, plus `invokeAction(actionId)` (emits `actionClick`) and `close()` (sets `open` to `false` and emits `closed`).
36
+ Abstract base directive for extending custom modal implementations. Exposes `open` as a two-way `ModelSignal<boolean>`, `title` / `description` as optional `InputSignal<string | undefined>`, `actions` as `InputSignal<IModalAction[]>` (default `[]`), `options` as `InputSignal<IModalOptions | undefined>`, `cssClass` as `InputSignal<string>` (with alias `class`), `actionClick` (payload `IModalActionClick`, exported from `@smartsoft001/angular`) and `closed` outputs, plus `invokeAction(actionId)` (emits `actionClick`) and `close()` (sets `open` to `false` and emits `closed`).
37
37
 
38
38
  ## API
39
39
 
@@ -50,10 +50,10 @@ Abstract base directive for extending custom modal implementations. Exposes `ope
50
50
 
51
51
  ### Outputs
52
52
 
53
- | Output | Payload | Description |
54
- | ------------- | ---------------------- | ----------------------------------------- |
55
- | `actionClick` | `{ actionId: string }` | Fired when a footer action is clicked |
56
- | `closed` | `void` | Fired when the dialog is dismissed/closed |
53
+ | Output | Payload | Description |
54
+ | ------------- | -------------------------------------------- | ----------------------------------------- |
55
+ | `actionClick` | `IModalActionClick` (`{ actionId: string }`) | Fired when a footer action is clicked |
56
+ | `closed` | `void` | Fired when the dialog is dismissed/closed |
57
57
 
58
58
  ### IModalAction
59
59
 
@@ -38,7 +38,7 @@ Styled toast variation that extends `NotificationBaseComponent` and is a drop-in
38
38
 
39
39
  ### NotificationBaseComponent (abstract)
40
40
 
41
- Abstract base directive for extending custom notification implementations. Exposes the inputs/outputs listed below and provides `dismiss()` (emits `dismissed`) and `invokeAction(actionId)` (emits `actionClick` with `{ actionId }`) helper methods.
41
+ Abstract base directive for extending custom notification implementations. Exposes the inputs/outputs listed below and provides `dismiss()` (emits `dismissed`) and `invokeAction(actionId)` (emits `actionClick` with an `INotificationActionClick` payload `{ actionId }`, exported from `@smartsoft001/angular`) helper methods.
42
42
 
43
43
  ## API
44
44
 
@@ -57,10 +57,10 @@ Abstract base directive for extending custom notification implementations. Expos
57
57
 
58
58
  ### Outputs
59
59
 
60
- | Output | Payload | Description |
61
- | ------------- | ---------------------- | ---------------------------------------- |
62
- | `dismissed` | `void` | Emitted when the user dismisses |
63
- | `actionClick` | `{ actionId: string }` | Emitted when an action button is clicked |
60
+ | Output | Payload | Description |
61
+ | ------------- | --------------------------------------------------- | ---------------------------------------- |
62
+ | `dismissed` | `void` | Emitted when the user dismisses |
63
+ | `actionClick` | `INotificationActionClick` (`{ actionId: string }`) | Emitted when an action button is clicked |
64
64
 
65
65
  ### INotificationAction
66
66
 
@@ -35,7 +35,7 @@ The per-variant class recipes live in `preset/preset-classes.util.ts` (`getPagin
35
35
 
36
36
  > Unlike most preset components, `PagingPresetComponent` keeps the inherited `cssClass` **with** its `class` alias. `PagingComponent` instantiates the injected component with `ViewContainerRef.createComponent` and forwards inputs via `setInput('class', …)` (the public alias) — not `NgComponentOutlet` — so dropping the alias would break the forwarded class binding. Bind `class` on either `<smart-paging>` or `<smart-paging-preset>`.
37
37
  >
38
- > Note: `PagingComponent` does **not** forward the `variant` input, so selecting a variant requires using the `<smart-paging-preset>` selector directly (or another wrapper that forwards `variant`).
38
+ > `PagingComponent` forwards the `variant` input (via `setInput('variant', …)`, including later changes), so `<smart-paging variant="centered">` selects the preset layout when the preset is registered. The standard component ignores it visually and only exposes it as a `data-variant` attribute on its `<nav>`.
39
39
 
40
40
  ### PagingBaseComponent (abstract)
41
41
 
@@ -45,14 +45,14 @@ Abstract base directive for extending custom paging implementations. Provides si
45
45
 
46
46
  ### Inputs
47
47
 
48
- | Input | Type | Default | Description |
49
- | ------------- | ---------------------------- | --------------- | ------------------------------------------- |
50
- | `currentPage` | `InputSignal<number>` | `1` | Current active page |
51
- | `totalPages` | `InputSignal<number>` | `1` | Total number of pages |
52
- | `pageSize` | `InputSignal<number>` | `10` | Items per page |
53
- | `totalItems` | `InputSignal<number>` | `0` | Total number of items |
54
- | `variant` | `InputSignal<PagingVariant>` | `'card-footer'` | Variant hint for extensions |
55
- | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`) |
48
+ | Input | Type | Default | Description |
49
+ | ------------- | ---------------------------- | --------------- | ------------------------------------------------------------------------------- |
50
+ | `currentPage` | `InputSignal<number>` | `1` | Current active page |
51
+ | `totalPages` | `InputSignal<number>` | `1` | Total number of pages |
52
+ | `pageSize` | `InputSignal<number>` | `10` | Items per page |
53
+ | `totalItems` | `InputSignal<number>` | `0` | Total number of items |
54
+ | `variant` | `InputSignal<PagingVariant>` | `'card-footer'` | Layout variant, styled by the preset; the standard exposes it as `data-variant` |
55
+ | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`) |
56
56
 
57
57
  ### Outputs
58
58
 
@@ -153,7 +153,15 @@ providers: [
153
153
  ```
154
154
 
155
155
  ```html
156
- <!-- Use the variation selector directly to pick a variant -->
156
+ <!-- With the preset registered, pick a variant through the wrapper -->
157
+ <smart-paging
158
+ variant="centered"
159
+ [currentPage]="page()"
160
+ [totalPages]="totalPages()"
161
+ (pageChange)="onPageChange($event)"
162
+ ></smart-paging>
163
+
164
+ <!-- Or use the variation selector directly -->
157
165
  <smart-paging-preset
158
166
  variant="card-footer"
159
167
  [currentPage]="page()"
@@ -17,7 +17,7 @@ The `<smart-sign-in-form>` component renders a single form that supports both **
17
17
 
18
18
  ### SignInFormComponent (`<smart-sign-in-form>`)
19
19
 
20
- Main wrapper component. Renders `SignInFormStandardComponent` by default. When `SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. The wrapper re-emits `submit` and `socialClick` from the standard child.
20
+ Main wrapper component. Renders `SignInFormStandardComponent` by default. When `SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. The wrapper re-emits `submit` and `socialClick` from the standard child, or from the custom implementation registered through the token.
21
21
 
22
22
  ### SignInFormStandardComponent (`<smart-sign-in-form-standard>`)
23
23
 
@@ -21,7 +21,7 @@ Main wrapper component. Renders `StackedLayoutStandardComponent` by default. Whe
21
21
 
22
22
  ### StackedLayoutStandardComponent (`<smart-stacked-layout-standard>`)
23
23
 
24
- Barebones placeholder concrete implementation. Renders a wrapper `<div>` with a top `<header>` containing a `<nav>`, an optional second `<header>` for the page heading section (rendered when `options.headerTpl` is provided), and a `<main>` element that projects `<ng-content>`. The external `cssClass` is applied to the wrapper. It does not include Tailwind UI styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
24
+ Barebones native-HTML implementation. Renders a wrapper `<div data-container-width="…">` with a top `<header>` containing a `<nav>`, an optional second `<header>` for the page heading section (`options.headerTpl` when provided, otherwise `<h1 data-role="title">{{ options.title }}</h1>` when `options.title` is set), and a `<main>` element that projects `<ng-content>`. The external `cssClass` is applied to the wrapper. It does not include Tailwind UI styling.
25
25
 
26
26
  ### StackedLayoutBaseComponent (abstract)
27
27
 
@@ -49,7 +49,7 @@ interface IStackedLayoutOptions {
49
49
  }
50
50
  ```
51
51
 
52
- The default `StackedLayoutStandardComponent` consumes `navTpl` (rendered inside the top `<nav>`) and `headerTpl` (rendered as a secondary `<header>` block beneath the navigation). `title` and `containerWidth` are reserved for custom implementations registered via `STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN` and are ignored by `StackedLayoutStandardComponent`.
52
+ The default `StackedLayoutStandardComponent` consumes `navTpl` (rendered inside the top `<nav>`), `headerTpl` (rendered as a secondary `<header>` block beneath the navigation) and `title` (rendered as `<header><h1 data-role="title">` when there is no `headerTpl`, the same precedence as the preset). `containerWidth` is purely visual: the standard only exposes it as `data-container-width` on the root (default `'xl'`), and the max-width is styled by `StackedLayoutPresetComponent`.
53
53
 
54
54
  ## STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN
55
55
 
@@ -21,7 +21,7 @@ Main wrapper component. Renders `ToggleStandardComponent` by default. When `TOGG
21
21
 
22
22
  ### ToggleStandardComponent (`<smart-toggle-standard>`)
23
23
 
24
- Barebones placeholder concrete implementation. Renders a minimal `<input type="checkbox">` bound to `value` and `disabled`, with an optional `aria-label` from `options.ariaLabel`, and the external `cssClass` applied to the input element. It does not include Tailwind UI styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
24
+ Barebones native-HTML implementation. Renders a `<span class="smart-toggle" data-label-position="…">` containing a minimal `<input type="checkbox">` bound to `value` and `disabled`, with the external `cssClass` applied to the input element. `options.label` renders in a `<label class="smart-toggle-label" for="…">` associated with the checkbox (so it is the accessible name), and `options.description` in a `<span class="smart-toggle-description">` referenced by the checkbox's `aria-describedby`. Both live in a `<span class="smart-toggle-text" data-role="text">` placed after the checkbox, or before it when `options.labelPosition === 'left'` (default `'right'`). `options.ariaLabel` is applied as the checkbox's `aria-label` only when there is no `label`. It does not include Tailwind UI styling.
25
25
 
26
26
  ### TogglePresetComponent (`<smart-toggle-preset>`)
27
27
 
@@ -55,7 +55,7 @@ interface IToggleOptions {
55
55
  }
56
56
  ```
57
57
 
58
- The standard component only consumes `ariaLabel` (placeholder behavior — it is applied directly as the `aria-label` attribute on the checkbox input). The remaining properties — `label`, `description`, and `labelPosition` — are reserved for custom implementations registered through `TOGGLE_STANDARD_COMPONENT_TOKEN` and are ignored by `ToggleStandardComponent`.
58
+ Both `ToggleStandardComponent` and `TogglePresetComponent` honour every property: `label` (the checkbox's accessible name — a `<label for>` in the standard), `description` (referenced by `aria-describedby` in the standard), `labelPosition` (`'left'` puts the text before the switch, otherwise it goes after — default `'right'`) and `ariaLabel` (the standard uses it only when there is no visible `label`; set it for label-less toggles).
59
59
 
60
60
  ## TOGGLE_STANDARD_COMPONENT_TOKEN
61
61