@smartsoft001/claude-plugins 2.119.0 → 2.121.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.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/plugins/smart/.claude-plugin/plugin.json +1 -1
  3. package/plugins/smart/agents/angular-components/AGENT.md +212 -11
  4. package/plugins/smart/skills/angular-components-accordion/SKILL.md +86 -0
  5. package/plugins/smart/skills/angular-components-action-panel/SKILL.md +195 -0
  6. package/plugins/smart/skills/angular-components-breadcrumbs/SKILL.md +152 -0
  7. package/plugins/smart/skills/angular-components-button/SKILL.md +81 -54
  8. package/plugins/smart/skills/angular-components-calendar/SKILL.md +222 -0
  9. package/plugins/smart/skills/angular-components-card/SKILL.md +112 -0
  10. package/plugins/smart/skills/angular-components-card-heading/SKILL.md +156 -0
  11. package/plugins/smart/skills/angular-components-date-edit/SKILL.md +107 -0
  12. package/plugins/smart/skills/angular-components-date-range/SKILL.md +149 -0
  13. package/plugins/smart/skills/angular-components-description-list/SKILL.md +205 -0
  14. package/plugins/smart/skills/angular-components-detail/SKILL.md +146 -0
  15. package/plugins/smart/skills/angular-components-details/SKILL.md +123 -0
  16. package/plugins/smart/skills/angular-components-empty-state/SKILL.md +198 -0
  17. package/plugins/smart/skills/angular-components-feed/SKILL.md +199 -0
  18. package/plugins/smart/skills/angular-components-form/SKILL.md +160 -0
  19. package/plugins/smart/skills/angular-components-grid-list/SKILL.md +215 -0
  20. package/plugins/smart/skills/angular-components-info/SKILL.md +160 -0
  21. package/plugins/smart/skills/angular-components-input/SKILL.md +196 -0
  22. package/plugins/smart/skills/angular-components-list/SKILL.md +265 -0
  23. package/plugins/smart/skills/angular-components-multi-column-layout/SKILL.md +174 -0
  24. package/plugins/smart/skills/angular-components-navbar/SKILL.md +192 -0
  25. package/plugins/smart/skills/angular-components-page/SKILL.md +230 -0
  26. package/plugins/smart/skills/angular-components-page-heading/SKILL.md +183 -0
  27. package/plugins/smart/skills/angular-components-paging/SKILL.md +132 -0
  28. package/plugins/smart/skills/angular-components-password-strength/SKILL.md +172 -0
  29. package/plugins/smart/skills/angular-components-progress-bars/SKILL.md +187 -0
  30. package/plugins/smart/skills/angular-components-searchbar/SKILL.md +167 -0
  31. package/plugins/smart/skills/angular-components-section-heading/SKILL.md +177 -0
  32. package/plugins/smart/skills/angular-components-select-menu/SKILL.md +211 -0
  33. package/plugins/smart/skills/angular-components-sidebar-layout/SKILL.md +176 -0
  34. package/plugins/smart/skills/angular-components-sidebar-navigation/SKILL.md +225 -0
  35. package/plugins/smart/skills/angular-components-sign-in-form/SKILL.md +202 -0
  36. package/plugins/smart/skills/angular-components-stacked-layout/SKILL.md +169 -0
  37. package/plugins/smart/skills/angular-components-stacked-list/SKILL.md +213 -0
  38. package/plugins/smart/skills/angular-components-stats/SKILL.md +213 -0
  39. package/plugins/smart/skills/angular-components-table/SKILL.md +216 -0
  40. package/plugins/smart/skills/angular-components-tabs/SKILL.md +181 -0
  41. package/plugins/smart/skills/angular-components-textarea/SKILL.md +168 -0
  42. package/plugins/smart/skills/angular-components-toggle/SKILL.md +155 -0
  43. package/plugins/smart/skills/angular-components-vertical-navigation/SKILL.md +158 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/claude-plugins",
3
- "version": "2.119.0",
3
+ "version": "2.121.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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.119.0"
4
+ "version": "2.121.0"
5
5
  }
@@ -14,19 +14,127 @@ Use this agent when a developer needs to:
14
14
  - Build a page or feature UI using `@smartsoft001/angular` components
15
15
  - Choose the right component for a UI requirement
16
16
  - Get correct usage, imports, and options for a component
17
+ - Extend a base component class to create a custom implementation
17
18
 
18
- ## Available Components
19
+ ## Component Availability
19
20
 
20
- | Component | Skill | Selector | Description |
21
- | --------- | --------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------- |
22
- | Button | `angular-components-button` | `<smart-button>` | Button with shapes (standard/rounded/circular), variants (primary/secondary/soft), sizes, color palette |
23
- | Icon | — | `<smart-icon>` | SVG icon component (spinner) |
21
+ This package contains two categories of components:
22
+
23
+ ### Ready-to-Use Components (base + default implementation)
24
+
25
+ These have concrete selectors and can be used directly in templates.
26
+
27
+ | Component | Skill | Selector | Description |
28
+ | ---------- | ------------------------------- | -------------------- | ------------------------------------------------------------------------------ |
29
+ | Date Edit | `angular-components-date-edit` | `<smart-date-edit>` | Digit-by-digit date input (DD-MM-RRRR) with validation |
30
+ | Date Range | `angular-components-date-range` | `<smart-date-range>` | Date range picker with modal calendar and quick filters |
31
+ | Detail | `angular-components-detail` | `<smart-detail>` | Renders a single model field by dispatching to a sub-component per `FieldType` |
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) |
34
+
35
+ ### Ready-to-Use with extension token
36
+
37
+ These render a default standard implementation and accept a custom implementation via an InjectionToken.
38
+
39
+ | Component | Skill | Selector | Token |
40
+ | ------------------- | ---------------------------------------- | ----------------------------- | ---------------------------------------------- |
41
+ | Action Panel | `angular-components-action-panel` | `<smart-action-panel>` | `ACTION_PANEL_STANDARD_COMPONENT_TOKEN` |
42
+ | Breadcrumbs | `angular-components-breadcrumbs` | `<smart-breadcrumbs>` | `BREADCRUMBS_STANDARD_COMPONENT_TOKEN` |
43
+ | Calendar | `angular-components-calendar` | `<smart-calendar>` | `CALENDAR_STANDARD_COMPONENT_TOKEN` |
44
+ | Card Heading | `angular-components-card-heading` | `<smart-card-heading>` | `CARD_HEADING_STANDARD_COMPONENT_TOKEN` |
45
+ | Description List | `angular-components-description-list` | `<smart-description-list>` | `DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN` |
46
+ | Details | `angular-components-details` | `<smart-details>` | `DETAILS_STANDARD_COMPONENT_TOKEN` |
47
+ | Empty State | `angular-components-empty-state` | `<smart-empty-state>` | `EMPTY_STATE_STANDARD_COMPONENT_TOKEN` |
48
+ | Feed | `angular-components-feed` | `<smart-feed>` | `FEED_STANDARD_COMPONENT_TOKEN` |
49
+ | Form | `angular-components-form` | `<smart-form>` | `FORM_STANDARD_COMPONENT_TOKEN` |
50
+ | Grid List | `angular-components-grid-list` | `<smart-grid-list>` | `GRID_LIST_STANDARD_COMPONENT_TOKEN` |
51
+ | Info | `angular-components-info` | `<smart-info>` | `INFO_STANDARD_COMPONENT_TOKEN` |
52
+ | List | `angular-components-list` | `<smart-list>` | `LIST_MODE_COMPONENTS_TOKEN` |
53
+ | Multi-Column Layout | `angular-components-multi-column-layout` | `<smart-multi-column-layout>` | `MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN` |
54
+ | Navbar | `angular-components-navbar` | `<smart-navbar>` | `NAVBAR_STANDARD_COMPONENT_TOKEN` |
55
+ | Page Heading | `angular-components-page-heading` | `<smart-page-heading>` | `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` |
56
+ | Password Strength | `angular-components-password-strength` | `<smart-password-strength>` | `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN` |
57
+ | Progress Bars | `angular-components-progress-bars` | `<smart-progress-bars>` | `PROGRESS_BARS_STANDARD_COMPONENT_TOKEN` |
58
+ | Searchbar | `angular-components-searchbar` | `<smart-searchbar>` | `SEARCHBAR_STANDARD_COMPONENT_TOKEN` |
59
+ | Section Heading | `angular-components-section-heading` | `<smart-section-heading>` | `SECTION_HEADING_STANDARD_COMPONENT_TOKEN` |
60
+ | Select Menu | `angular-components-select-menu` | `<smart-select-menu>` | `SELECT_MENU_STANDARD_COMPONENT_TOKEN` |
61
+ | Sidebar Layout | `angular-components-sidebar-layout` | `<smart-sidebar-layout>` | `SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN` |
62
+ | Sidebar Navigation | `angular-components-sidebar-navigation` | `<smart-sidebar-navigation>` | `SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN` |
63
+ | Sign-in Form | `angular-components-sign-in-form` | `<smart-sign-in-form>` | `SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN` |
64
+ | Stacked Layout | `angular-components-stacked-layout` | `<smart-stacked-layout>` | `STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN` |
65
+ | Stacked List | `angular-components-stacked-list` | `<smart-stacked-list>` | `STACKED_LIST_STANDARD_COMPONENT_TOKEN` |
66
+ | Stats | `angular-components-stats` | `<smart-stats>` | `STATS_STANDARD_COMPONENT_TOKEN` |
67
+ | Table | `angular-components-table` | `<smart-table>` | `TABLE_STANDARD_COMPONENT_TOKEN` |
68
+ | Tabs | `angular-components-tabs` | `<smart-tabs>` | `TABS_STANDARD_COMPONENT_TOKEN` |
69
+ | Textarea | `angular-components-textarea` | `<smart-textarea>` | `TEXTAREA_STANDARD_COMPONENT_TOKEN` |
70
+ | Toggle | `angular-components-toggle` | `<smart-toggle>` | `TOGGLE_STANDARD_COMPONENT_TOKEN` |
71
+ | Vertical Navigation | `angular-components-vertical-navigation` | `<smart-vertical-navigation>` | `VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN` |
72
+
73
+ ### Base-Only Components (abstract classes for extension)
74
+
75
+ These provide abstract base classes (`@Directive()`) that can be extended to create custom implementations.
76
+
77
+ | Component | Skill | Base Class | Description |
78
+ | --------- | ------------------------------ | ------------------------ | ----------------------------------------------------------------- |
79
+ | Button | `angular-components-button` | `ButtonBaseComponent` | Variant/color computation, confirm mode, disabled state |
80
+ | Card | `angular-components-card` | `CardBaseComponent` | Container classes, header/body/footer layout, gray backgrounds |
81
+ | Accordion | `angular-components-accordion` | `AccordionBaseComponent` | Toggle logic, disabled state, container classes |
82
+ | Page | `angular-components-page` | `PageBaseComponent` | Header with title, back button, search, end buttons, content slot |
83
+ | Paging | `angular-components-paging` | `PagingBaseComponent` | Page state, ellipsized page list, `pageChange` output |
84
+
85
+ ## Decision Logic
86
+
87
+ When a developer asks about a component:
88
+
89
+ 1. **Wants to use `<smart-date-edit>`, `<smart-date-range>`, `<smart-detail>`, or `<smart-input>`** → delegate to the corresponding skill for usage API
90
+ 2. **Wants to use `<smart-action-panel>`, `<smart-breadcrumbs>`, `<smart-calendar>`, `<smart-card-heading>`, `<smart-description-list>`, `<smart-details>`, `<smart-empty-state>`, `<smart-feed>`, `<smart-form>`, `<smart-grid-list>`, `<smart-info>`, `<smart-list>`, `<smart-multi-column-layout>`, `<smart-navbar>`, `<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
91
+ 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
92
+ 4. **Wants to create a custom component** → delegate to the base-only skill for extension patterns and API
24
93
 
25
94
  ## Skills to Use
26
95
 
27
- When a user asks about a specific component, **always delegate to the per-component skill** for detailed API, usage examples, and options:
96
+ Always delegate to the per-component skill for detailed API, usage examples, and options:
28
97
 
29
- - **Button** → use skill `angular-components-button`
98
+ - **Date Edit** → use skill `angular-components-date-edit`
99
+ - **Date Range** → use skill `angular-components-date-range`
100
+ - **Accordion** (base only) → use skill `angular-components-accordion`
101
+ - **Action Panel** (with extension token) → use skill `angular-components-action-panel`
102
+ - **Breadcrumbs** (with extension token) → use skill `angular-components-breadcrumbs`
103
+ - **Detail** → use skill `angular-components-detail`
104
+ - **Calendar** (with extension token) → use skill `angular-components-calendar`
105
+ - **Card Heading** (with extension token) → use skill `angular-components-card-heading`
106
+ - **Description List** (with extension token) → use skill `angular-components-description-list`
107
+ - **Details** (with extension token) → use skill `angular-components-details`
108
+ - **Empty State** (with extension token) → use skill `angular-components-empty-state`
109
+ - **Feed** (with extension token) → use skill `angular-components-feed`
110
+ - **Form** (with extension token) → use skill `angular-components-form`
111
+ - **Grid List** (with extension token) → use skill `angular-components-grid-list`
112
+ - **Info** (with extension token) → use skill `angular-components-info`
113
+ - **Input** → use skill `angular-components-input`
114
+ - **List** (with extension token map) → use skill `angular-components-list`
115
+ - **Multi-Column Layout** (with extension token) → use skill `angular-components-multi-column-layout`
116
+ - **Navbar** (with extension token) → use skill `angular-components-navbar`
117
+ - **Page Heading** (with extension token) → use skill `angular-components-page-heading`
118
+ - **Password Strength** (with extension token) → use skill `angular-components-password-strength`
119
+ - **Progress Bars** (with extension token) → use skill `angular-components-progress-bars`
120
+ - **Searchbar** (with extension token) → use skill `angular-components-searchbar`
121
+ - **Section Heading** (with extension token) → use skill `angular-components-section-heading`
122
+ - **Select Menu** (with extension token) → use skill `angular-components-select-menu`
123
+ - **Sidebar Layout** (with extension token) → use skill `angular-components-sidebar-layout`
124
+ - **Sidebar Navigation** (with extension token) → use skill `angular-components-sidebar-navigation`
125
+ - **Sign-in Form** (with extension token) → use skill `angular-components-sign-in-form`
126
+ - **Stacked Layout** (with extension token) → use skill `angular-components-stacked-layout`
127
+ - **Stacked List** (with extension token) → use skill `angular-components-stacked-list`
128
+ - **Stats** (with extension token) → use skill `angular-components-stats`
129
+ - **Table** (with extension token) → use skill `angular-components-table`
130
+ - **Tabs** (with extension token) → use skill `angular-components-tabs`
131
+ - **Textarea** (with extension token) → use skill `angular-components-textarea`
132
+ - **Toggle** (with extension token) → use skill `angular-components-toggle`
133
+ - **Vertical Navigation** (with extension token) → use skill `angular-components-vertical-navigation`
134
+ - **Button** (base only) → use skill `angular-components-button`
135
+ - **Card** (base only) → use skill `angular-components-card`
136
+ - **Page** (base only) → use skill `angular-components-page`
137
+ - **Paging** (base only) → use skill `angular-components-paging`
30
138
 
31
139
  ## Installation
32
140
 
@@ -34,10 +142,103 @@ When a user asks about a specific component, **always delegate to the per-compon
34
142
  npm i @smartsoft001/angular
35
143
  ```
36
144
 
37
- ## Import Pattern
145
+ ## Import Patterns
38
146
 
39
147
  ```typescript
40
- import { ButtonComponent } from '@smartsoft001/angular';
148
+ // Ready-to-use components
149
+ import {
150
+ DateEditDefaultComponent,
151
+ DateRangeDefaultComponent,
152
+ DetailComponent,
153
+ InputComponent,
154
+ DETAIL_FIELD_COMPONENTS_TOKEN,
155
+ INPUT_FIELD_COMPONENTS_TOKEN,
156
+ } from '@smartsoft001/angular';
157
+
158
+ // Base classes for extension
159
+ import {
160
+ ActionPanelBaseComponent,
161
+ ACTION_PANEL_STANDARD_COMPONENT_TOKEN,
162
+ BreadcrumbsBaseComponent,
163
+ BREADCRUMBS_STANDARD_COMPONENT_TOKEN,
164
+ ButtonBaseComponent,
165
+ CalendarBaseComponent,
166
+ CALENDAR_STANDARD_COMPONENT_TOKEN,
167
+ CardBaseComponent,
168
+ CardHeadingBaseComponent,
169
+ CARD_HEADING_STANDARD_COMPONENT_TOKEN,
170
+ AccordionBaseComponent,
171
+ DescriptionListBaseComponent,
172
+ DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN,
173
+ DetailBaseComponent,
174
+ DetailsBaseComponent,
175
+ DETAILS_STANDARD_COMPONENT_TOKEN,
176
+ EmptyStateBaseComponent,
177
+ EMPTY_STATE_STANDARD_COMPONENT_TOKEN,
178
+ FeedBaseComponent,
179
+ FEED_STANDARD_COMPONENT_TOKEN,
180
+ FormBaseComponent,
181
+ FORM_STANDARD_COMPONENT_TOKEN,
182
+ GridListBaseComponent,
183
+ GRID_LIST_STANDARD_COMPONENT_TOKEN,
184
+ InfoBaseComponent,
185
+ INFO_STANDARD_COMPONENT_TOKEN,
186
+ InputBaseComponent,
187
+ InputPossibilitiesBaseComponent,
188
+ ListBaseComponent,
189
+ LIST_MODE_COMPONENTS_TOKEN,
190
+ ListMode,
191
+ IListOptions,
192
+ IListProvider,
193
+ MultiColumnLayoutBaseComponent,
194
+ MULTI_COLUMN_LAYOUT_STANDARD_COMPONENT_TOKEN,
195
+ NavbarBaseComponent,
196
+ NAVBAR_STANDARD_COMPONENT_TOKEN,
197
+ PageBaseComponent,
198
+ PAGE_VARIANT_COMPONENTS_TOKEN,
199
+ SmartPageVariant,
200
+ PageHeadingBaseComponent,
201
+ PAGE_HEADING_STANDARD_COMPONENT_TOKEN,
202
+ PagingBaseComponent,
203
+ PAGING_STANDARD_COMPONENT_TOKEN,
204
+ ProgressBarsBaseComponent,
205
+ PROGRESS_BARS_STANDARD_COMPONENT_TOKEN,
206
+ SearchbarBaseComponent,
207
+ SEARCHBAR_STANDARD_COMPONENT_TOKEN,
208
+ SectionHeadingBaseComponent,
209
+ SECTION_HEADING_STANDARD_COMPONENT_TOKEN,
210
+ SelectMenuBaseComponent,
211
+ SELECT_MENU_STANDARD_COMPONENT_TOKEN,
212
+ SidebarLayoutBaseComponent,
213
+ SIDEBAR_LAYOUT_STANDARD_COMPONENT_TOKEN,
214
+ SidebarNavigationBaseComponent,
215
+ SIDEBAR_NAVIGATION_STANDARD_COMPONENT_TOKEN,
216
+ SignInFormBaseComponent,
217
+ SIGN_IN_FORM_STANDARD_COMPONENT_TOKEN,
218
+ StackedLayoutBaseComponent,
219
+ STACKED_LAYOUT_STANDARD_COMPONENT_TOKEN,
220
+ StackedListBaseComponent,
221
+ STACKED_LIST_STANDARD_COMPONENT_TOKEN,
222
+ StatsBaseComponent,
223
+ STATS_STANDARD_COMPONENT_TOKEN,
224
+ TableBaseComponent,
225
+ TABLE_STANDARD_COMPONENT_TOKEN,
226
+ TabsBaseComponent,
227
+ TABS_STANDARD_COMPONENT_TOKEN,
228
+ TextareaBaseComponent,
229
+ TEXTAREA_STANDARD_COMPONENT_TOKEN,
230
+ ToggleBaseComponent,
231
+ TOGGLE_STANDARD_COMPONENT_TOKEN,
232
+ VerticalNavigationBaseComponent,
233
+ VERTICAL_NAVIGATION_STANDARD_COMPONENT_TOKEN,
234
+ } from '@smartsoft001/angular';
235
+
236
+ // Base classes for date components (also extensible)
237
+ import {
238
+ DateEditBaseComponent,
239
+ DateRangeBaseComponent,
240
+ DateRangeModalBaseComponent,
241
+ } from '@smartsoft001/angular';
41
242
  ```
42
243
 
43
244
  ## Shared Types
@@ -51,5 +252,5 @@ All components use shared types from `@smartsoft001/angular`:
51
252
  ## Styling
52
253
 
53
254
  - Tailwind CSS v4 with `smart:` prefix
54
- - Dark mode via `dark:smart:` prefix
55
- - External classes via `class` input
255
+ - Dark mode via `smart:dark:` prefix
256
+ - External classes via `cssClass` input
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: angular-components-accordion
3
+ description: Accordion base component API for extending in custom implementations.
4
+ user-invocable: false
5
+ ---
6
+
7
+ # AccordionBaseComponent (Base Only)
8
+
9
+ Abstract base directive for accordion components. This package provides the base class for creating custom accordion implementations.
10
+
11
+ ## When to Use This Skill
12
+
13
+ - Developer wants to **create a custom accordion component** by extending the base class
14
+ - Developer needs to understand the base API (inputs, computed properties, methods)
15
+ - Developer asks about `<smart-accordion>` → explain how to extend the base class
16
+
17
+ ## Base Class API
18
+
19
+ ### Import
20
+
21
+ ```typescript
22
+ import { AccordionBaseComponent } from '@smartsoft001/angular';
23
+ ```
24
+
25
+ ### Inputs
26
+
27
+ | Input | Type | Default | Description |
28
+ | ----------- | --------------------------------------------- | ----------- | ------------------------------ |
29
+ | `show` | `ModelSignal<boolean>` | `false` | Two-way binding for open state |
30
+ | `options` | `InputSignal<IAccordionOptions \| undefined>` | `undefined` | Accordion configuration |
31
+ | `cssClass` | `InputSignal<string>` | `''` | External CSS classes |
32
+ | `headerTpl` | `InputSignal<TemplateRef>` | required | Header template |
33
+ | `bodyTpl` | `InputSignal<TemplateRef>` | required | Body template |
34
+
35
+ ### IAccordionOptions
36
+
37
+ ```typescript
38
+ interface IAccordionOptions {
39
+ open?: boolean; // Initial open state
40
+ disabled?: boolean; // Prevents toggle when true
41
+ animated?: boolean; // Enable/disable CSS transitions
42
+ }
43
+ ```
44
+
45
+ ### Computed Properties
46
+
47
+ | Property | Type | Description |
48
+ | ------------------------ | ------------------ | ------------------------------------------------------- |
49
+ | `sharedContainerClasses` | `Signal<string[]>` | Divider, rounded, border classes with dark mode support |
50
+
51
+ ### Methods
52
+
53
+ | Method | Description |
54
+ | ---------- | ------------------------------------------- |
55
+ | `toggle()` | Toggles `show` signal (no-op if `disabled`) |
56
+
57
+ ## Extending the Base Class
58
+
59
+ ```typescript
60
+ import { Component, ViewEncapsulation } from '@angular/core';
61
+ import { AccordionBaseComponent } from '@smartsoft001/angular';
62
+
63
+ @Component({
64
+ selector: 'my-accordion',
65
+ template: `
66
+ <div [class]="sharedContainerClasses().join(' ')">
67
+ <button (click)="toggle()">
68
+ <ng-container [ngTemplateOutlet]="headerTpl()" />
69
+ </button>
70
+ @if (show()) {
71
+ <div>
72
+ <ng-container [ngTemplateOutlet]="bodyTpl()" />
73
+ </div>
74
+ }
75
+ </div>
76
+ `,
77
+ encapsulation: ViewEncapsulation.None,
78
+ })
79
+ export class MyAccordionComponent extends AccordionBaseComponent {}
80
+ ```
81
+
82
+ ## File Locations
83
+
84
+ - Base class: `packages/shared/angular/src/lib/components/accordion/base/base.component.ts`
85
+ - Tests: `packages/shared/angular/src/lib/components/accordion/base/base.component.spec.ts`
86
+ - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IAccordionOptions`)
@@ -0,0 +1,195 @@
1
+ ---
2
+ name: angular-components-action-panel
3
+ description: Action Panel component API with InjectionToken pattern for custom implementations.
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Action Panel Component
8
+
9
+ The `<smart-action-panel>` component renders a standalone panel with a heading, description and one or more actions (buttons or links). It is typically used to surface a small "card" of contextual settings (e.g. _Manage subscription_, _Update your email_, _Renew automatically_). It follows the Base + Standard + Wrapper pattern with an InjectionToken-based extension mechanism. The abstract `ActionPanelBaseComponent` defines the shared API — `options` (`IActionPanelOptions`), `cssClass` (alias `class`), and the `actionClick` output. `ActionPanelStandardComponent` is a barebones placeholder using native `<section>`, `<h3>`, `<p>`, `<a>`, and `<button>` elements. `ActionPanelComponent` is the public wrapper that renders `ActionPanelStandardComponent` by default and accepts a custom replacement via `ACTION_PANEL_STANDARD_COMPONENT_TOKEN`.
10
+
11
+ ## When to Use This Skill
12
+
13
+ - Developer wants to use or customize the action panel component
14
+ - Developer asks about `<smart-action-panel>`, `ActionPanelComponent`, `ActionPanelStandardComponent`, or `ActionPanelBaseComponent`
15
+
16
+ ## Components
17
+
18
+ ### ActionPanelComponent (`<smart-action-panel>`)
19
+
20
+ Main wrapper. Delegates to `ActionPanelStandardComponent` by default. When `ACTION_PANEL_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. Re-emits `actionClick`.
21
+
22
+ ### ActionPanelStandardComponent (`<smart-action-panel-standard>`)
23
+
24
+ Barebones placeholder using native HTML. Renders an outer wrapper with `cssClass`, a `<section class="action-panel">` containing an optional `<h3>{{ options.title }}</h3>`, an optional description (string `options.description` rendered as `<p class="description">` or `options.descriptionTpl` rendered via `NgTemplateOutlet`), an optional `<div class="content">` slot from `options.contentTpl`, and an optional `<div class="actions">` row of `<button class="action variant-{variant}">` (or `<a>` when `action.href` is provided) per `options.actions` entry that emits `{ actionId }` via `actionClick`.
25
+
26
+ ### ActionPanelBaseComponent (abstract)
27
+
28
+ Abstract base directive. Exposes:
29
+
30
+ - `options: InputSignal<IActionPanelOptions | undefined>`
31
+ - `cssClass: InputSignal<string>` (alias `class`)
32
+ - `actionClick: OutputEmitterRef<IActionPanelActionClick>`
33
+
34
+ `IActionPanelActionClick = { actionId: string }`.
35
+
36
+ ## API
37
+
38
+ ### Inputs
39
+
40
+ | Input | Type | Default | Description |
41
+ | --------- | ----------------------------------------------- | ------- | ------------------------------------------- |
42
+ | `options` | `InputSignal<IActionPanelOptions \| undefined>` | - | Panel configuration |
43
+ | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`) |
44
+
45
+ ### Outputs
46
+
47
+ | Output | Type | Description |
48
+ | ------------- | ------------------------------------------- | -------------------------------------------- |
49
+ | `actionClick` | `OutputEmitterRef<IActionPanelActionClick>` | Emitted when a button-type action is clicked |
50
+
51
+ ### IActionPanelOptions
52
+
53
+ ```typescript
54
+ type SmartActionPanelLayout =
55
+ | 'simple'
56
+ | 'with-link'
57
+ | 'right-button'
58
+ | 'top-right-button'
59
+ | 'with-toggle'
60
+ | 'with-input'
61
+ | 'well'
62
+ | 'payment-method';
63
+
64
+ interface IActionPanelOptions {
65
+ title?: string;
66
+ description?: string;
67
+ layout?: SmartActionPanelLayout;
68
+ actions?: IActionPanelAction[];
69
+ descriptionTpl?: TemplateRef<unknown>;
70
+ contentTpl?: TemplateRef<unknown>;
71
+ }
72
+
73
+ interface IActionPanelAction {
74
+ id: string;
75
+ label?: string;
76
+ href?: string;
77
+ variant?: 'primary' | 'secondary' | 'ghost' | 'link';
78
+ iconTpl?: TemplateRef<unknown>;
79
+ }
80
+ ```
81
+
82
+ ## ACTION_PANEL_STANDARD_COMPONENT_TOKEN
83
+
84
+ ```typescript
85
+ import { ACTION_PANEL_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
86
+
87
+ providers: [
88
+ {
89
+ provide: ACTION_PANEL_STANDARD_COMPONENT_TOKEN,
90
+ useValue: MyCustomActionPanelComponent,
91
+ },
92
+ ];
93
+ ```
94
+
95
+ ## Extending the Base Class
96
+
97
+ ```typescript
98
+ import {
99
+ ChangeDetectionStrategy,
100
+ Component,
101
+ input,
102
+ ViewEncapsulation,
103
+ } from '@angular/core';
104
+
105
+ import { ActionPanelBaseComponent } from '@smartsoft001/angular';
106
+
107
+ @Component({
108
+ selector: 'my-custom-action-panel',
109
+ template: `
110
+ <section>
111
+ @if (options()?.title) {
112
+ <h3>{{ options()!.title }}</h3>
113
+ }
114
+ @if (options()?.description) {
115
+ <p>{{ options()!.description }}</p>
116
+ }
117
+ @for (action of options()?.actions ?? []; track action.id) {
118
+ <button
119
+ type="button"
120
+ (click)="actionClick.emit({ actionId: action.id })"
121
+ >
122
+ {{ action.label }}
123
+ </button>
124
+ }
125
+ </section>
126
+ `,
127
+ encapsulation: ViewEncapsulation.None,
128
+ changeDetection: ChangeDetectionStrategy.OnPush,
129
+ })
130
+ export class MyCustomActionPanelComponent extends ActionPanelBaseComponent {
131
+ // NgComponentOutlet passes 'cssClass' by canonical name, not the 'class' alias.
132
+ override cssClass = input<string>('');
133
+ }
134
+ ```
135
+
136
+ ## Usage Examples
137
+
138
+ ```html
139
+ <!-- Simple panel with primary action -->
140
+ <smart-action-panel
141
+ [options]="{
142
+ title: 'Manage subscription',
143
+ description: 'Lorem ipsum dolor sit amet.',
144
+ actions: [{ id: 'change', label: 'Change plan', variant: 'primary' }],
145
+ }"
146
+ (actionClick)="onAction($event)"
147
+ />
148
+
149
+ <!-- With link action -->
150
+ <smart-action-panel
151
+ [options]="{
152
+ title: 'Continuous Integration',
153
+ description: 'Learn more about our CI features.',
154
+ actions: [
155
+ { id: 'learn', label: 'Learn more', href: '/learn', variant: 'link' },
156
+ ],
157
+ }"
158
+ />
159
+
160
+ <!-- With multiple actions -->
161
+ <smart-action-panel
162
+ [options]="{
163
+ title: 'Manage subscription',
164
+ description: 'Cancel anytime.',
165
+ layout: 'right-button',
166
+ actions: [
167
+ { id: 'cancel', label: 'Cancel', variant: 'ghost' },
168
+ { id: 'change', label: 'Change plan', variant: 'primary' },
169
+ ],
170
+ }"
171
+ (actionClick)="onAction($event)"
172
+ />
173
+
174
+ <!-- With templated content (e.g. embedded toggle/input/well) -->
175
+ <ng-template #payment>
176
+ <div class="payment-method">…</div>
177
+ </ng-template>
178
+
179
+ <smart-action-panel
180
+ [options]="{
181
+ title: 'Payment method',
182
+ layout: 'well',
183
+ contentTpl: payment,
184
+ actions: [{ id: 'edit', label: 'Edit', variant: 'secondary' }],
185
+ }"
186
+ />
187
+ ```
188
+
189
+ ## File Locations
190
+
191
+ - Wrapper: `packages/shared/angular/src/lib/components/action-panel/action-panel.component.ts`
192
+ - Standard: `packages/shared/angular/src/lib/components/action-panel/standard/standard.component.ts`
193
+ - Base class: `packages/shared/angular/src/lib/components/action-panel/base/base.component.ts`
194
+ - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`ACTION_PANEL_STANDARD_COMPONENT_TOKEN`)
195
+ - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IActionPanelOptions`, `IActionPanelAction`, `SmartActionPanelLayout`)