@smartsoft001/claude-plugins 2.200.0 → 2.202.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 (109) hide show
  1. package/package.json +1 -1
  2. package/plugins/smart-angular/.claude-plugin/plugin.json +1 -1
  3. package/plugins/smart-angular/skills/angular-components-accordion/SKILL.md +84 -80
  4. package/plugins/smart-angular/skills/angular-components-action-panel/SKILL.md +35 -60
  5. package/plugins/smart-angular/skills/angular-components-alert/SKILL.md +24 -29
  6. package/plugins/smart-angular/skills/angular-components-avatar/SKILL.md +30 -30
  7. package/plugins/smart-angular/skills/angular-components-badge/SKILL.md +18 -12
  8. package/plugins/smart-angular/skills/angular-components-breadcrumbs/SKILL.md +27 -10
  9. package/plugins/smart-angular/skills/angular-components-button/SKILL.md +43 -17
  10. package/plugins/smart-angular/skills/angular-components-button-group/SKILL.md +26 -14
  11. package/plugins/smart-angular/skills/angular-components-calendar/SKILL.md +47 -28
  12. package/plugins/smart-angular/skills/angular-components-card/SKILL.md +29 -22
  13. package/plugins/smart-angular/skills/angular-components-card-heading/SKILL.md +24 -18
  14. package/plugins/smart-angular/skills/angular-components-command-palette/SKILL.md +41 -32
  15. package/plugins/smart-angular/skills/angular-components-container/SKILL.md +21 -20
  16. package/plugins/smart-angular/skills/angular-components-date-edit/SKILL.md +48 -45
  17. package/plugins/smart-angular/skills/angular-components-date-range/SKILL.md +72 -82
  18. package/plugins/smart-angular/skills/angular-components-description-list/SKILL.md +23 -10
  19. package/plugins/smart-angular/skills/angular-components-detail/SKILL.md +20 -8
  20. package/plugins/smart-angular/skills/angular-components-details/SKILL.md +35 -12
  21. package/plugins/smart-angular/skills/angular-components-divider/SKILL.md +36 -18
  22. package/plugins/smart-angular/skills/angular-components-drawer/SKILL.md +28 -23
  23. package/plugins/smart-angular/skills/angular-components-dropdown/SKILL.md +35 -16
  24. package/plugins/smart-angular/skills/angular-components-empty-state/SKILL.md +49 -11
  25. package/plugins/smart-angular/skills/angular-components-feed/SKILL.md +45 -12
  26. package/plugins/smart-angular/skills/angular-components-form/SKILL.md +53 -25
  27. package/plugins/smart-angular/skills/angular-components-grid-list/SKILL.md +37 -13
  28. package/plugins/smart-angular/skills/angular-components-icon/SKILL.md +8 -8
  29. package/plugins/smart-angular/skills/angular-components-info/SKILL.md +19 -15
  30. package/plugins/smart-angular/skills/angular-components-input/SKILL.md +78 -49
  31. package/plugins/smart-angular/skills/angular-components-list/SKILL.md +85 -78
  32. package/plugins/smart-angular/skills/angular-components-list-container/SKILL.md +24 -32
  33. package/plugins/smart-angular/skills/angular-components-media-object/SKILL.md +19 -17
  34. package/plugins/smart-angular/skills/angular-components-modal/SKILL.md +23 -16
  35. package/plugins/smart-angular/skills/angular-components-multi-column-layout/SKILL.md +19 -16
  36. package/plugins/smart-angular/skills/angular-components-navbar/SKILL.md +38 -21
  37. package/plugins/smart-angular/skills/angular-components-notification/SKILL.md +32 -33
  38. package/plugins/smart-angular/skills/angular-components-page/SKILL.md +46 -52
  39. package/plugins/smart-angular/skills/angular-components-page-heading/SKILL.md +42 -25
  40. package/plugins/smart-angular/skills/angular-components-paging/SKILL.md +17 -15
  41. package/plugins/smart-angular/skills/angular-components-password-strength/SKILL.md +21 -19
  42. package/plugins/smart-angular/skills/angular-components-progress-bars/SKILL.md +61 -24
  43. package/plugins/smart-angular/skills/angular-components-searchbar/SKILL.md +30 -37
  44. package/plugins/smart-angular/skills/angular-components-section-heading/SKILL.md +38 -27
  45. package/plugins/smart-angular/skills/angular-components-select-menu/SKILL.md +33 -17
  46. package/plugins/smart-angular/skills/angular-components-sidebar-layout/SKILL.md +30 -26
  47. package/plugins/smart-angular/skills/angular-components-sidebar-navigation/SKILL.md +79 -16
  48. package/plugins/smart-angular/skills/angular-components-sign-in-form/SKILL.md +64 -24
  49. package/plugins/smart-angular/skills/angular-components-stacked-layout/SKILL.md +24 -23
  50. package/plugins/smart-angular/skills/angular-components-stacked-list/SKILL.md +40 -21
  51. package/plugins/smart-angular/skills/angular-components-stats/SKILL.md +28 -15
  52. package/plugins/smart-angular/skills/angular-components-table/SKILL.md +42 -22
  53. package/plugins/smart-angular/skills/angular-components-tabs/SKILL.md +37 -13
  54. package/plugins/smart-angular/skills/angular-components-textarea/SKILL.md +48 -46
  55. package/plugins/smart-angular/skills/angular-components-toggle/SKILL.md +21 -28
  56. package/plugins/smart-angular/skills/angular-components-vertical-navigation/SKILL.md +66 -24
  57. package/plugins/smart-core/.claude-plugin/plugin.json +1 -1
  58. package/plugins/smart-react/.claude-plugin/plugin.json +1 -1
  59. package/plugins/smart-react/skills/react-components-action-panel/SKILL.md +13 -13
  60. package/plugins/smart-react/skills/react-components-alert/SKILL.md +2 -2
  61. package/plugins/smart-react/skills/react-components-avatar/SKILL.md +11 -11
  62. package/plugins/smart-react/skills/react-components-badge/SKILL.md +2 -2
  63. package/plugins/smart-react/skills/react-components-breadcrumbs/SKILL.md +7 -7
  64. package/plugins/smart-react/skills/react-components-button/SKILL.md +20 -20
  65. package/plugins/smart-react/skills/react-components-button-group/SKILL.md +2 -2
  66. package/plugins/smart-react/skills/react-components-calendar/SKILL.md +13 -13
  67. package/plugins/smart-react/skills/react-components-card/SKILL.md +1 -1
  68. package/plugins/smart-react/skills/react-components-card-heading/SKILL.md +2 -2
  69. package/plugins/smart-react/skills/react-components-command-palette/SKILL.md +3 -3
  70. package/plugins/smart-react/skills/react-components-container/SKILL.md +6 -6
  71. package/plugins/smart-react/skills/react-components-date-edit/SKILL.md +1 -1
  72. package/plugins/smart-react/skills/react-components-date-range/SKILL.md +4 -4
  73. package/plugins/smart-react/skills/react-components-description-list/SKILL.md +1 -1
  74. package/plugins/smart-react/skills/react-components-detail/SKILL.md +25 -16
  75. package/plugins/smart-react/skills/react-components-details/SKILL.md +10 -10
  76. package/plugins/smart-react/skills/react-components-divider/SKILL.md +6 -6
  77. package/plugins/smart-react/skills/react-components-drawer/SKILL.md +1 -1
  78. package/plugins/smart-react/skills/react-components-dropdown/SKILL.md +1 -1
  79. package/plugins/smart-react/skills/react-components-empty-state/SKILL.md +1 -1
  80. package/plugins/smart-react/skills/react-components-feed/SKILL.md +1 -1
  81. package/plugins/smart-react/skills/react-components-grid-list/SKILL.md +1 -1
  82. package/plugins/smart-react/skills/react-components-info/SKILL.md +3 -1
  83. package/plugins/smart-react/skills/react-components-input/SKILL.md +41 -17
  84. package/plugins/smart-react/skills/react-components-list/SKILL.md +34 -31
  85. package/plugins/smart-react/skills/react-components-list-container/SKILL.md +6 -6
  86. package/plugins/smart-react/skills/react-components-loader/SKILL.md +1 -1
  87. package/plugins/smart-react/skills/react-components-media-object/SKILL.md +1 -1
  88. package/plugins/smart-react/skills/react-components-modal/SKILL.md +8 -8
  89. package/plugins/smart-react/skills/react-components-multi-column-layout/SKILL.md +1 -1
  90. package/plugins/smart-react/skills/react-components-navbar/SKILL.md +1 -1
  91. package/plugins/smart-react/skills/react-components-notification/SKILL.md +9 -9
  92. package/plugins/smart-react/skills/react-components-page-heading/SKILL.md +6 -6
  93. package/plugins/smart-react/skills/react-components-paging/SKILL.md +28 -28
  94. package/plugins/smart-react/skills/react-components-password-strength/SKILL.md +4 -4
  95. package/plugins/smart-react/skills/react-components-progress-bars/SKILL.md +19 -19
  96. package/plugins/smart-react/skills/react-components-searchbar/SKILL.md +10 -10
  97. package/plugins/smart-react/skills/react-components-section-heading/SKILL.md +13 -13
  98. package/plugins/smart-react/skills/react-components-select-menu/SKILL.md +19 -19
  99. package/plugins/smart-react/skills/react-components-sidebar-layout/SKILL.md +9 -9
  100. package/plugins/smart-react/skills/react-components-sidebar-navigation/SKILL.md +29 -29
  101. package/plugins/smart-react/skills/react-components-sign-in-form/SKILL.md +3 -3
  102. package/plugins/smart-react/skills/react-components-stacked-layout/SKILL.md +1 -1
  103. package/plugins/smart-react/skills/react-components-stacked-list/SKILL.md +2 -2
  104. package/plugins/smart-react/skills/react-components-stats/SKILL.md +2 -2
  105. package/plugins/smart-react/skills/react-components-table/SKILL.md +1 -1
  106. package/plugins/smart-react/skills/react-components-tabs/SKILL.md +2 -2
  107. package/plugins/smart-react/skills/react-components-textarea/SKILL.md +8 -8
  108. package/plugins/smart-react/skills/react-components-toggle/SKILL.md +3 -2
  109. package/plugins/smart-react/skills/react-components-vertical-navigation/SKILL.md +7 -7
@@ -18,24 +18,24 @@ The `<smart-page>` component provides a flexible page-header/layout wrapper with
18
18
 
19
19
  ### PageComponent (`<smart-page>`)
20
20
 
21
- Main wrapper component. Always renders via `NgComponentOutlet`. Looks up the target variant component from a merged map of `baseMap` + the optional `PAGE_VARIANT_COMPONENTS_TOKEN` map, keyed by `options.variant` (default `'standard'`). Falls back to `PageStandardComponent` when the variant is unknown. Captures `<ng-content>` into a `TemplateRef` and passes it to the target component as `options.bodyTpl` unless the caller provided an explicit `bodyTpl`.
21
+ Main wrapper component. Always renders via `NgComponentOutlet`, forwarding `options` and the `class`. Looks up the target variant component from a merged map of `baseMap` + the optional `PAGE_VARIANT_COMPONENTS_TOKEN` map, keyed by `options.variant` (default `'standard'`). Falls back to `PageStandardComponent` when the variant is unknown. Captures `<ng-content>` into a `TemplateRef` and passes it to the target component as `options.bodyTpl` unless the caller provided an explicit `bodyTpl`.
22
22
 
23
23
  ### PageStandardComponent (`<smart-page-standard>`)
24
24
 
25
- Default concrete implementation and the value for `baseMap['standard']`. Renders a Tailwind-styled header with title, optional back button, optional search input, `endButtons` via `<smart-button>`, and a body section driven by `options.bodyTpl`.
25
+ Default concrete implementation and the value for `baseMap['standard']`. Renders a Tailwind-styled header with the translated title, optional back button, optional search input, `endButtons` via `<smart-button>`, and a body section driven by `options.bodyTpl`. It renders no wrapper element and does not apply the `class` (header and body are siblings); of the slot templates it renders only `bodyTpl`.
26
26
 
27
27
  ### PageBaseComponent (abstract)
28
28
 
29
- Abstract base directive for extending custom page variants. Exposes `options`, `cssClass`, `back()`, `isMobile`, and a `contentTpl` view child for variants that need to re-project the main content.
29
+ Abstract base directive for extending custom page variants. Exposes `options`, `cssClass` (input alias `class`), `back()` (`Location.back()`), `isMobile`, and a `contentTpl` view child for variants that need to re-project the main content. It sets the host height to `100%`.
30
30
 
31
31
  ## API
32
32
 
33
33
  ### Inputs
34
34
 
35
- | Input | Type | Default | Description |
36
- | --------- | --------------------------------- | ------- | ------------------------------------------- |
37
- | `options` | `InputSignal<IPageOptions\|null>` | - | Page configuration (see `IPageOptions`) |
38
- | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`) |
35
+ | Input | Type | Default | Description |
36
+ | --------- | --------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
37
+ | `options` | `InputSignal<IPageOptions\|null>` | - | Page configuration (see `IPageOptions`) |
38
+ | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`), forwarded to the variant; the preset puts them on its root, the standard variant ignores them |
39
39
 
40
40
  ### SmartPageVariant
41
41
 
@@ -47,6 +47,27 @@ Variant identifier used to select a concrete page component from the merged vari
47
47
 
48
48
  ### IPageOptions
49
49
 
50
+ | Field | Type | Default | Description |
51
+ | ---------------- | ------------------------------------------------------ | ------------ | ----------------------------------------------------------------------------------------------------------- |
52
+ | `title` | `string` | required | Page title, passed through `TranslatePipe` (a key or text). |
53
+ | `hideHeader` | `boolean` | - | Hides the header block (title, buttons, search; in the preset also the breadcrumbs, meta and filters rows). |
54
+ | `showBackButton` | `boolean` | - | Renders a back arrow that calls `Location.back()`. |
55
+ | `endButtons` | `Array<IIconButtonOptions>` | `[]` | Action buttons rendered via `<smart-button>` (secondary, `md`). |
56
+ | `search` | `{ text: Signal<string>; set: (txt: string) => void }` | - | Inline search input bound to `text` / `set` (placeholder: the `search` translation). |
57
+ | `variant` | `SmartPageVariant` | `'standard'` | Selects which variant component to render. |
58
+ | `bodyTpl` | `TemplateRef<unknown>` | the content | Explicit body template; falls back to the projected `<ng-content>`. |
59
+ | `hideMenuButton` | `boolean` | - | Preset only: hides the decorative menu (hamburger) button, which has no action of its own. |
60
+ | `breadcrumbsTpl` | `TemplateRef<unknown>` | - | Preset only: breadcrumbs row at the top of the header. |
61
+ | `subtitleTpl` | `TemplateRef<unknown>` | - | Preset only: subtitle under the title. |
62
+ | `avatarTpl` | `TemplateRef<unknown>` | - | Preset only: avatar next to the title. |
63
+ | `logoTpl` | `TemplateRef<unknown>` | - | Preset only: logo next to the title. |
64
+ | `metaTpl` | `TemplateRef<unknown>` | - | Preset only: meta row (status, timestamps, ...) under the title. |
65
+ | `statsTpl` | `TemplateRef<unknown>` | - | Preset only: stats, in the meta row. |
66
+ | `bannerTpl` | `TemplateRef<unknown>` | - | Preset only: full-width strip above the header. |
67
+ | `filtersTpl` | `TemplateRef<unknown>` | - | Preset only: filters bar under the header. |
68
+ | `sidebarTpl` | `TemplateRef<unknown>` | - | Preset only: an `<aside>` next to the body card (`lg` and up). |
69
+ | `navTpl` | `TemplateRef<unknown>` | - | Not read by the built-in implementations; available to a custom implementation. |
70
+
50
71
  ```typescript
51
72
  interface IPageOptions {
52
73
  title: string;
@@ -70,47 +91,25 @@ interface IPageOptions {
70
91
  }
71
92
  ```
72
93
 
73
- | Field | Type | Description |
74
- | ---------------- | ------------------------------------ | --------------------------------------------------------------------------- |
75
- | `title` | `string` | Required. Page title (translated). |
76
- | `hideHeader` | `boolean` | Hide the entire header block. |
77
- | `hideMenuButton` | `boolean` | Reserved for layouts with a menu button. |
78
- | `showBackButton` | `boolean` | Render a back arrow that calls `Location.back()`. |
79
- | `endButtons` | `Array<IIconButtonOptions>` | Action buttons rendered via `<smart-button>`. |
80
- | `search` | `{ text: Signal<string>; set: ... }` | Inline search input. |
81
- | `variant` | `SmartPageVariant` | Selects which variant component to render. Defaults to `'standard'`. |
82
- | `bodyTpl` | `TemplateRef<unknown>` | Explicit body template. Falls back to projected `<ng-content>` when absent. |
83
- | `breadcrumbsTpl` | `TemplateRef<unknown>` | Breadcrumbs slot. |
84
- | `metaTpl` | `TemplateRef<unknown>` | Meta slot (status, timestamps, etc.). |
85
- | `avatarTpl` | `TemplateRef<unknown>` | Avatar slot. |
86
- | `bannerTpl` | `TemplateRef<unknown>` | Banner slot. |
87
- | `filtersTpl` | `TemplateRef<unknown>` | Filters slot. |
88
- | `logoTpl` | `TemplateRef<unknown>` | Logo slot. |
89
- | `statsTpl` | `TemplateRef<unknown>` | Stats slot. |
90
- | `subtitleTpl` | `TemplateRef<unknown>` | Subtitle slot. |
91
- | `navTpl` | `TemplateRef<unknown>` | Navigation slot. |
92
- | `sidebarTpl` | `TemplateRef<unknown>` | Sidebar slot. |
93
-
94
- ### IIconButtonOptions (relevant fields)
95
-
96
- | Field | Type | Description |
97
- | ----------- | --------------------- | --------------------------------- |
98
- | `icon` | `string` | Icon name (tracked by the `@for`) |
99
- | `text` | `string` | Button label (translated) |
100
- | `number` | `number` | Optional badge counter |
101
- | `handler` | `() => void` | Click handler |
102
- | `disabled$` | `Observable<boolean>` | Optional disabled stream |
94
+ ### IIconButtonOptions
95
+
96
+ | Field | Type | Default | Description |
97
+ | ----------- | ------------------------ | -------- | ----------------------------------------------------------------------------------------------------- |
98
+ | `icon` | `string` | required | Identifier of the button (the `@for` track key, so keep it unique). |
99
+ | `text` | `string` | - | Button label (translated). |
100
+ | `handler` | `() => void` | - | Click handler. |
101
+ | `number` | `number` | - | A count badge. |
102
+ | `disabled$` | `Observable<boolean>` | - | Disables the button while it emits `true`. |
103
+ | `component` | `any` | - | Not read by the built-in implementations; available to a custom implementation (e.g. a popover body). |
104
+ | `type` | `'default' \| 'popover'` | - | Not read by the built-in implementations; available to a custom implementation. |
103
105
 
104
106
  ### PAGE_VARIANT_COMPONENTS_TOKEN
105
107
 
108
+ InjectionToken from `@smartsoft001/angular`, of type `Partial<Record<SmartPageVariant, Type<PageBaseComponent>>>`. Provide a map to register additional variants. The map is merged on top of `baseMap` (which contains the default `{ standard: PageStandardComponent }`), so you can both add new variants and override `'standard'`.
109
+
106
110
  ```typescript
107
111
  import { PAGE_VARIANT_COMPONENTS_TOKEN } from '@smartsoft001/angular';
108
- ```
109
112
 
110
- InjectionToken of type `Partial<Record<SmartPageVariant, Type<PageBaseComponent>>>`. Provide a map to register additional variants. The map is merged on top of `baseMap` (which contains the default `{ standard: PageStandardComponent }`), so you can both add new variants and override `'standard'`.
111
-
112
- ```typescript
113
- // In your app providers:
114
113
  providers: [
115
114
  {
116
115
  provide: PAGE_VARIANT_COMPONENTS_TOKEN,
@@ -125,7 +124,7 @@ providers: [
125
124
  ## Extending the Base Class
126
125
 
127
126
  ```typescript
128
- import { Component, ViewEncapsulation, input } from '@angular/core';
127
+ import { Component, ViewEncapsulation } from '@angular/core';
129
128
  import { NgTemplateOutlet } from '@angular/common';
130
129
  import { PageBaseComponent } from '@smartsoft001/angular';
131
130
 
@@ -147,10 +146,7 @@ import { PageBaseComponent } from '@smartsoft001/angular';
147
146
  imports: [NgTemplateOutlet],
148
147
  encapsulation: ViewEncapsulation.None,
149
148
  })
150
- export class MyCustomPageComponent extends PageBaseComponent {
151
- // NgComponentOutlet passes 'cssClass' (not aliased 'class') so declare it explicitly
152
- override cssClass = input<string>('');
153
- }
149
+ export class MyCustomPageComponent extends PageBaseComponent {}
154
150
  ```
155
151
 
156
152
  ## Usage Examples
@@ -227,7 +223,7 @@ export class MyCustomPageComponent extends PageBaseComponent {
227
223
 
228
224
  ### Registration
229
225
 
230
- The preset is dispatched by map key `'preset'` — the built-in `'standard'` variant is untouched. Register the ready-made map for `PAGE_VARIANT_COMPONENTS_TOKEN`:
226
+ The preset is dispatched by map key `'preset'`. Register the ready-made map `PAGE_PRESET_VARIANT_COMPONENTS` (`{ preset: PagePresetComponent }`) for `PAGE_VARIANT_COMPONENTS_TOKEN` and set `variant: 'preset'` on the pages that should use it; the built-in `'standard'` variant is untouched. `provideSmartPresets()` instead registers the preset for both `'standard'` and `'preset'`, so every page renders it.
231
227
 
232
228
  ```typescript
233
229
  import {
@@ -243,8 +239,6 @@ providers: [
243
239
  ];
244
240
  ```
245
241
 
246
- Then set `variant: 'preset'` on `IPageOptions`:
247
-
248
242
  ```html
249
243
  <smart-page [options]="{ title: 'Alice', variant: 'preset' }">
250
244
  <p>Body rendered inside the content card.</p>
@@ -270,12 +264,12 @@ The back button (`button[data-role="back"]`) appears only when `showBackButton`
270
264
 
271
265
  ### cssClass
272
266
 
273
- Registered through the token, the wrapper forwards inputs canonically via `NgComponentOutlet` (`{ options, cssClass }`), so the preset does `override cssClass = input<string>('')` (drops the `class` alias). External classes land on the `data-role="page"` wrapper.
267
+ The preset declares `cssClass` without the `class` alias: on the `<smart-page-preset>` selector bind `[cssClass]`; on `<smart-page>` pass `class` as usual. External classes land on the `data-role="page"` wrapper.
274
268
 
275
269
  ### Documented gaps
276
270
 
277
271
  - `hideMenuButton` only toggles a decorative hamburger button; there is no menu panel wired to it.
278
- - Unused slots (`bannerTpl`, `breadcrumbsTpl`, `metaTpl`, `statsTpl`, `filtersTpl`, `sidebarTpl`, `avatarTpl`, `logoTpl`, `subtitleTpl`) simply render nothing when omitted; `navTpl` is not consumed by this preset.
272
+ - Unused slots (`bannerTpl`, `breadcrumbsTpl`, `metaTpl`, `statsTpl`, `filtersTpl`, `sidebarTpl`, `avatarTpl`, `logoTpl`, `subtitleTpl`) simply render nothing when omitted; `navTpl` is not consumed by this preset (nor by the standard variant).
279
273
 
280
274
  ## File Locations
281
275
 
@@ -17,11 +17,11 @@ The `<smart-page-heading>` component provides a composable page heading region w
17
17
 
18
18
  ### PageHeadingComponent (`<smart-page-heading>`)
19
19
 
20
- Main wrapper component. Renders `PageHeadingStandardComponent` by default. When `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`.
20
+ Main wrapper component. Renders `PageHeadingStandardComponent` by default. When `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` is provided (or `provideSmartPresets()` registers the preset), renders the injected component via `NgComponentOutlet`, forwarding `options` and the `class`.
21
21
 
22
22
  ### PageHeadingStandardComponent (`<smart-page-heading-standard>`)
23
23
 
24
- Barebones placeholder concrete implementation. Always renders a wrapper `<div>` and a `<header>`. Renders any of the optional slots (`breadcrumbsTpl`, `bannerTpl`, `avatarTpl`, `logoTpl`, `metaTpl`, `statsTpl`, `actionsTpl`, `filtersTpl`) only when provided. Renders `<h1>` with `options.title` and `<p class="subtitle">` with `options.subtitle` only when those strings are non-empty. 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 placeholder concrete implementation. Always renders a wrapper `<div>` and a `<header>`. Renders any of the optional slots (`breadcrumbsTpl`, `bannerTpl`, `avatarTpl`, `logoTpl`, `metaTpl`, `statsTpl`, `actionsTpl`, `filtersTpl`) only when provided; it does not read `navTpl` or `presentation`. Renders `<h1>` with `options.title` and `<p class="subtitle">` with `options.subtitle` only when those strings are non-empty. 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.
25
25
 
26
26
  ### PageHeadingBaseComponent (abstract)
27
27
 
@@ -38,6 +38,23 @@ Abstract base directive for extending custom page-heading implementations. Expos
38
38
 
39
39
  ### IPageHeadingOptions
40
40
 
41
+ All properties are optional; a section is rendered only when its template or string is provided.
42
+
43
+ | Field | Type | Default | Description |
44
+ | ---------------- | ------------------------------------------------------------------------ | ------------ | ----------------------------------------------------------------------------------------------- |
45
+ | `title` | `string` | - | The page title, an `<h1>` (the preset puts it in the brand zone, after the `logoTpl`). |
46
+ | `subtitle` | `string` | - | Text under the title. |
47
+ | `actionsTpl` | `TemplateRef<unknown>` | - | Action buttons (the preset's actions zone, hidden below `md` and repeated in the mobile panel). |
48
+ | `avatarTpl` | `TemplateRef<unknown>` | - | An avatar (the preset shows it in place of the actions in the `user` layout only). |
49
+ | `logoTpl` | `TemplateRef<unknown>` | - | A logo (the preset's brand zone). |
50
+ | `breadcrumbsTpl` | `TemplateRef<unknown>` | - | Standard only: breadcrumbs above the header. |
51
+ | `bannerTpl` | `TemplateRef<unknown>` | - | Standard only: a banner above the header. |
52
+ | `metaTpl` | `TemplateRef<unknown>` | - | Standard only: meta information (dates, location, counts). |
53
+ | `statsTpl` | `TemplateRef<unknown>` | - | Standard only: a stats row. |
54
+ | `filtersTpl` | `TemplateRef<unknown>` | - | Standard only: filter controls. |
55
+ | `navTpl` | `TemplateRef<unknown>` | - | Preset only: the desktop nav zone (hidden below `md`, repeated in the mobile panel). |
56
+ | `presentation` | `{ layout?: 'links-left' \| 'links-center' \| 'links-right' \| 'user' }` | `links-left` | Preset only: the arrangement of the bar (see the layouts below). |
57
+
41
58
  ```typescript
42
59
  interface IPageHeadingOptions {
43
60
  title?: string;
@@ -50,20 +67,20 @@ interface IPageHeadingOptions {
50
67
  statsTpl?: TemplateRef<unknown>;
51
68
  logoTpl?: TemplateRef<unknown>;
52
69
  filtersTpl?: TemplateRef<unknown>;
70
+ navTpl?: TemplateRef<unknown>;
71
+ presentation?: {
72
+ layout?: 'links-left' | 'links-center' | 'links-right' | 'user';
73
+ };
53
74
  }
54
75
  ```
55
76
 
56
- All properties are optional. The default `PageHeadingStandardComponent` consumes every property; a section is rendered only when its template/string is provided.
57
-
58
77
  ## PAGE_HEADING_STANDARD_COMPONENT_TOKEN
59
78
 
79
+ InjectionToken from `@smartsoft001/angular` that allows replacing the default `PageHeadingStandardComponent` with a custom implementation. Provide a `Type<PageHeadingBaseComponent>` in your application or component providers; `provideSmartPresets()` provides `PageHeadingPresetComponent` for it together with every other preset.
80
+
60
81
  ```typescript
61
82
  import { PAGE_HEADING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
62
- ```
63
83
 
64
- InjectionToken that allows replacing the default `PageHeadingStandardComponent` with a custom implementation. Provide a `Type<PageHeadingBaseComponent>` to override.
65
-
66
- ```typescript
67
84
  providers: [
68
85
  {
69
86
  provide: PAGE_HEADING_STANDARD_COMPONENT_TOKEN,
@@ -79,7 +96,6 @@ import {
79
96
  ChangeDetectionStrategy,
80
97
  Component,
81
98
  computed,
82
- input,
83
99
  ViewEncapsulation,
84
100
  } from '@angular/core';
85
101
  import { NgTemplateOutlet } from '@angular/common';
@@ -112,9 +128,6 @@ import { PageHeadingBaseComponent } from '@smartsoft001/angular';
112
128
  changeDetection: ChangeDetectionStrategy.OnPush,
113
129
  })
114
130
  export class MyCustomPageHeadingComponent extends PageHeadingBaseComponent {
115
- // NgComponentOutlet passes 'cssClass' by canonical name, not the 'class' alias.
116
- override cssClass = input<string>('');
117
-
118
131
  containerClasses = computed(() => {
119
132
  const classes = ['my-page-heading'];
120
133
  const extra = this.cssClass();
@@ -179,12 +192,17 @@ export class MyCustomPageHeadingComponent extends PageHeadingBaseComponent {
179
192
  `PageHeadingPresetComponent` (`smart-page-heading-preset`) is a HyperUI-styled
180
193
  variation. Unlike the standard page-heading (a page title block), this preset
181
194
  **intentionally renders a NAVBAR look**: a sticky-ready `<header>` bar with a
182
- logo/brand zone, a responsive desktop nav zone, a CTA/actions zone (or a user
183
- avatar zone), and a mobile hamburger that toggles a collapsible panel. The
184
- collapse is driven by a local `menuOpened` signal — no external JS runtime.
185
-
186
- Register it through `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` to restyle every
187
- `<smart-page-heading>`, or use `<smart-page-heading-preset>` directly.
195
+ brand zone (the `logoTpl`, followed by the `title` as an `<h1>` and the
196
+ `subtitle` under it), a responsive desktop nav zone, a CTA/actions zone (or a
197
+ user avatar zone), and a mobile hamburger that toggles a collapsible panel. The
198
+ collapse is driven by a local `menuOpened` signal — no external JS runtime. It
199
+ does not render the breadcrumbs, banner, meta, stats and filters slots.
200
+
201
+ Register it through `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` (or with
202
+ `provideSmartPresets()`) to restyle every `<smart-page-heading>`, or use
203
+ `<smart-page-heading-preset>` directly. It declares `cssClass` without the
204
+ `class` alias: on the preset selector bind `[cssClass]`; on
205
+ `<smart-page-heading>` pass `class` as usual.
188
206
 
189
207
  ### Layouts (`presentation.layout`)
190
208
 
@@ -195,16 +213,15 @@ Register it through `PAGE_HEADING_STANDARD_COMPONENT_TOKEN` to restyle every
195
213
  | `links-right` | Logo left (flex-1), nav + CTAs grouped on the right |
196
214
  | `user` | Like `links-right`, but an `avatarTpl` zone instead of CTAs |
197
215
 
198
- ### New `IPageHeadingOptions` fields
216
+ ### Preset-only `IPageHeadingOptions` fields
199
217
 
200
218
  - `navTpl?: TemplateRef<unknown>` — desktop nav content (hidden below `md`,
201
- repeated inside the mobile panel when open). Preset-only.
219
+ repeated inside the mobile panel when open).
202
220
  - `presentation?: { layout?: 'links-left' | 'links-center' | 'links-right' | 'user' }`
203
- — selects the navbar arrangement (default `links-left`). Preset-only.
221
+ — selects the navbar arrangement (default `links-left`).
204
222
 
205
- Existing `logoTpl` (with a `title` string fallback), `actionsTpl`, and
206
- `avatarTpl` (used by the `user` layout) are reused for the brand, CTA, and user
207
- zones respectively.
223
+ `logoTpl`, `title` and `subtitle` fill the brand zone, `actionsTpl` the CTA zone
224
+ and `avatarTpl` the user zone (`user` layout).
208
225
 
209
226
  ### Token registration
210
227
 
@@ -222,7 +239,7 @@ providers: [
222
239
 
223
240
  ### Example nav recipe
224
241
 
225
- The preset renders only the nav **zone** wrapper; supply the list via `navTpl`:
242
+ The preset renders only the nav **zone** wrapper; supply the list via `navTpl`, as in the template below.
226
243
 
227
244
  ```html
228
245
  <ng-template #nav>
@@ -17,25 +17,25 @@ The `<smart-paging>` component provides a flexible pagination wrapper with an In
17
17
 
18
18
  ### PagingComponent (`<smart-paging>`)
19
19
 
20
- Main wrapper component. Renders `PagingStandardComponent` by default. When `PAGING_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`.
20
+ Main wrapper component. Renders `PagingStandardComponent` by default, or the component provided for `PAGING_STANDARD_COMPONENT_TOKEN`. It creates that component once with `ViewContainerRef.createComponent` (not `NgComponentOutlet`), marks its host with `data-smart-paging-host="standard"` or `"injected"`, and re-emits its `pageChange` as its own. On every change it hands `currentPage`, `totalPages`, `pageSize`, `totalItems`, `variant` and `class` to the rendered component with `setInput`, resolved to the names that component declares: a custom implementation that redeclares `cssClass` without the `class` alias still gets the classes, and an input the component does not declare is skipped.
21
+
22
+ The page is **owned by the parent**: bind `currentPage` and update it from `(pageChange)`. `goToPage` emits any page from 1 to `totalPages` (the current one included) and ignores the rest; `nextPage` and `previousPage` do nothing on the last or first page.
21
23
 
22
24
  ### PagingStandardComponent (`<smart-paging-standard>`)
23
25
 
24
- Default concrete implementation. Simple Tailwind-styled pagination placeholder with prev/next buttons, numeric page buttons (with ellipsis handling) and `aria-current` for the active page. Supports dark mode and disabled states.
26
+ Default concrete implementation: a `<nav>` with prev/next buttons (translated through the `prev` and `next` keys), numeric page buttons with `'...'` gaps and `aria-current="page"` on the active page, styled with `smart:` Tailwind classes including dark mode and disabled states. The `class` input goes on the `<nav>`. It renders no results summary, so `pageSize` and `totalItems` change nothing here, and `variant` only shows up as the `data-variant` attribute of the `<nav>`.
25
27
 
26
28
  ### PagingPresetComponent (`<smart-paging-preset>`)
27
29
 
28
- Styled variation that extends `PagingBaseComponent` and is a drop-in replacement for `PagingStandardComponent`. Register it via `PAGING_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-paging>`, or use the `<smart-paging-preset>` selector directly. Translates the Preline pagination examples into `smart:`-prefixed vanilla Tailwind classes with explicit `dark:` variants. It drives page state purely through the inherited signals/methods (`pages`, `canGoBack`, `canGoForward`, `goToPage`, `nextPage`, `previousPage`) — no Preline JS runtime is required. The `variant` input selects the layout:
30
+ Styled variation that extends `PagingBaseComponent` and is a drop-in replacement for `PagingStandardComponent`. Register it via `PAGING_STANDARD_COMPONENT_TOKEN` (or register every preset at once with `provideSmartPresets()`) to restyle every `<smart-paging>`, or use the `<smart-paging-preset>` selector directly. Translates the Preline pagination examples into `smart:`-prefixed vanilla Tailwind classes with explicit `dark:` variants. It drives page state purely through the inherited signals/methods (`pages`, `canGoBack`, `canGoForward`, `goToPage`, `nextPage`, `previousPage`) — no Preline JS runtime is required. The `variant` input selects the layout:
29
31
 
30
- - `card-footer` — a "Showing X to Y of Z results" summary (built from `showingFrom`/`showingTo`/`totalItems`) alongside the nav, justified between on `sm`+ screens;
32
+ - `card-footer` — a "Showing X to Y of Z results" summary (built from `showingFrom`/`showingTo`/`totalItems`, so it needs `pageSize` and `totalItems`) alongside the nav, justified between on `sm`+ screens;
31
33
  - `centered` — the nav centered horizontally;
32
34
  - `simple` — the bare nav.
33
35
 
34
- The per-variant class recipes live in `preset/preset-classes.util.ts` (`getPagingContainerClasses`, `getPagingNavClasses`, `getPagingPageClasses`, plus the `PAGING_*` const class strings); they are kept out of the public barrel and prefixed with the component name.
36
+ The "Showing … results", "Previous" and "Next" texts of the preset are plain English, not translated. The `class` input goes on the outer container `<div>`, not on the `<nav>`. The per-variant class recipes are internal to the preset (not exported from `@smartsoft001/angular`).
35
37
 
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
- >
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>`.
38
+ `PagingPresetComponent` keeps the inherited `cssClass` input with its `class` alias, so `class` works the same on `<smart-paging>` and on `<smart-paging-preset>`. `<smart-paging variant="centered">` selects the preset layout when the preset is registered, and later changes of `variant` reach it too.
39
39
 
40
40
  ### PagingBaseComponent (abstract)
41
41
 
@@ -49,16 +49,16 @@ Abstract base directive for extending custom paging implementations. Provides si
49
49
  | ------------- | ---------------------------- | --------------- | ------------------------------------------------------------------------------- |
50
50
  | `currentPage` | `InputSignal<number>` | `1` | Current active page |
51
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 |
52
+ | `pageSize` | `InputSignal<number>` | `10` | Items per page; only the preset's `card-footer` summary uses it |
53
+ | `totalItems` | `InputSignal<number>` | `0` | Total number of items; only the preset's `card-footer` summary uses it |
54
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`) |
55
+ | `class` | `InputSignal<string>` | `''` | External CSS classes (alias for `cssClass`), forwarded to the rendered paging |
56
56
 
57
57
  ### Outputs
58
58
 
59
- | Output | Type | Description |
60
- | ------------ | ----------------------- | ------------------------------- |
61
- | `pageChange` | `OutputEmitter<number>` | Emits the requested page number |
59
+ | Output | Type | Description |
60
+ | ------------ | ----------------------- | --------------------------------------------------- |
61
+ | `pageChange` | `OutputEmitter<number>` | Emits the requested page number (1 to `totalPages`) |
62
62
 
63
63
  ### PagingVariant
64
64
 
@@ -72,7 +72,7 @@ type PagingVariant = 'card-footer' | 'centered' | 'simple';
72
72
  import { PAGING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
73
73
  ```
74
74
 
75
- InjectionToken that allows replacing the default `PagingStandardComponent` with a custom implementation. Provide a `Type<PagingBaseComponent>` to override.
75
+ InjectionToken that allows replacing the default `PagingStandardComponent` with a custom implementation. Provide a `Type<PagingBaseComponent>` to override; `provideSmartPresets()` provides `PagingPresetComponent` for it together with every other preset.
76
76
 
77
77
  ```typescript
78
78
  // In your app module or component providers:
@@ -86,6 +86,8 @@ providers: [
86
86
 
87
87
  ## Extending the Base Class
88
88
 
89
+ The base class brings every input, the `pageChange` output, the computed helpers and the navigation methods. The `class` passed to `<smart-paging>` arrives in the inherited `cssClass` input, so a custom implementation only adds its template.
90
+
89
91
  ```typescript
90
92
  import { Component, ViewEncapsulation } from '@angular/core';
91
93
  import { PagingBaseComponent } from '@smartsoft001/angular';
@@ -17,17 +17,21 @@ The `<smart-password-strength>` component renders a three-bar strength indicator
17
17
 
18
18
  ### PasswordStrengthComponent (`<smart-password-strength>`)
19
19
 
20
- Main wrapper component. Renders `PasswordStrengthStandardComponent` by default. When `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`. Forwards the `passwordStrength` output from the injected instance through its own output.
20
+ Main wrapper component. Renders `PasswordStrengthStandardComponent` by default. When `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN` is provided, renders the injected component via `NgComponentOutlet`, passes it `passwordToCheck`, `showHint` and `class` (resolved to the names that component declares, so the class arrives in the inherited `cssClass` input) and forwards the `passwordStrength` output of the injected instance through its own output. The host element is `display: contents`.
21
+
22
+ There is no preset for this component: `provideSmartPresets()` does not register anything for `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN`, and the standard meter is already styled.
21
23
 
22
24
  ### PasswordStrengthStandardComponent (`<smart-password-strength-standard>`)
23
25
 
24
26
  Default concrete implementation. Renders:
25
27
 
26
- - three bars whose Tailwind classes come from `barClasses()` (filled-left-to-right by strength index),
28
+ - three bars whose Tailwind classes come from `barClasses()` (filled left to right by strength index: one red bar for poor, two orange for not good, three yellow for good, all gray while not rated),
27
29
  - a message `<p>` with a translation key `INPUT.PASSWORD-STRENGTH.{poor|notGood|good}` when applicable,
28
30
  - a hint `<ul>` (shown while `showHint()` is `true`) listing unmet requirements via `INPUT.ERRORS.*` keys,
29
31
  - dark-mode variants via `smart:dark:*` classes.
30
32
 
33
+ The container is a third of the width (`smart:w-1/3`, full width below `sm`), with the `class` input appended.
34
+
31
35
  ### PasswordStrengthBaseComponent (abstract)
32
36
 
33
37
  Abstract base directive for extending custom implementations. Exposes signal inputs, the output, the pure strength algorithm, and computed signals for classes and labels.
@@ -44,21 +48,21 @@ Abstract base directive for extending custom implementations. Exposes signal inp
44
48
 
45
49
  ### Outputs
46
50
 
47
- | Output | Type | Description |
48
- | ------------------ | --------------------------- | ------------------------------------------------------------------------------------- |
49
- | `passwordStrength` | `OutputEmitterRef<boolean>` | Emits `true` when strength is maximal (lower+upper+symbol+length), `false` otherwise. |
51
+ | Output | Type | Description |
52
+ | ------------------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
53
+ | `passwordStrength` | `OutputEmitterRef<boolean>` | Emits `true` when strength is maximal (lower+upper+symbol+length), `false` otherwise; it emits once on start and again whenever `strength()` changes. |
50
54
 
51
55
  ### Exposed base signals (available when extending the base)
52
56
 
53
- | Signal | Type | Description |
54
- | -------------------- | ----------------------------------------------------- | ---------------------------------------------------------- |
55
- | `result()` | `{ lowerLetters; upperLetters; symbols; passLength }` | Flags for detected character classes and length threshold. |
56
- | `strength()` | `number` (0, 10, 20, 30) | Numeric strength score matching the original algorithm. |
57
- | `strengthIndex()` | `0 \| 1 \| 2 \| 3` | 0=poor, 1=notGood, 2=good, 3=none/too-weak. |
58
- | `msg()` | `'' \| 'poor' \| 'notGood' \| 'good'` | Translation-key suffix for the message. |
59
- | `barClasses()` | `string[]` (length 3) | Tailwind class string per bar. |
60
- | `msgClass()` | `string` | Tailwind color class for the message `<p>`. |
61
- | `containerClasses()` | `string` | Base container classes with `cssClass()` appended. |
57
+ | Signal | Type | Description |
58
+ | -------------------- | ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
59
+ | `result()` | `{ lowerLetters; upperLetters; symbols; passLength }` | Flags for detected character classes and the length rule (more than 6 characters); the interface is not exported. |
60
+ | `strength()` | `number` | The score: 10 (poor), 20 (not good), 30 (strong); any other value (an empty password, digits only) is not rated. |
61
+ | `strengthIndex()` | `0 \| 1 \| 2 \| 3` | 0=poor, 1=notGood, 2=good, 3=not rated. |
62
+ | `msg()` | `'' \| 'poor' \| 'notGood' \| 'good'` | Translation-key suffix for the message. |
63
+ | `barClasses()` | `string[]` (length 3) | Tailwind class string per bar. |
64
+ | `msgClass()` | `string` | Tailwind color class for the message `<p>`. |
65
+ | `containerClasses()` | `string` | Base container classes with `cssClass()` appended. |
62
66
 
63
67
  ### PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN
64
68
 
@@ -79,12 +83,13 @@ providers: [
79
83
 
80
84
  ## Extending the Base Class
81
85
 
86
+ The base class brings the inputs, the `passwordStrength` output and the rating signals. The `class` passed to `<smart-password-strength>` arrives in the inherited `cssClass` input and is already part of `containerClasses()`, so a custom implementation only adds its template.
87
+
82
88
  ```typescript
83
89
  import {
84
90
  ChangeDetectionStrategy,
85
91
  Component,
86
92
  ViewEncapsulation,
87
- input,
88
93
  } from '@angular/core';
89
94
  import { TranslatePipe } from '@ngx-translate/core';
90
95
 
@@ -110,14 +115,11 @@ import { PasswordStrengthBaseComponent } from '@smartsoft001/angular';
110
115
  encapsulation: ViewEncapsulation.None,
111
116
  changeDetection: ChangeDetectionStrategy.OnPush,
112
117
  })
113
- export class MyCustomPasswordStrengthComponent extends PasswordStrengthBaseComponent {
114
- override cssClass = input<string>('');
115
- }
118
+ export class MyCustomPasswordStrengthComponent extends PasswordStrengthBaseComponent {}
116
119
  ```
117
120
 
118
121
  When extending the base directly, remember to:
119
122
 
120
- - declare `cssClass = input<string>('')` explicitly (no `class` alias) when used via `NgComponentOutlet` through `PASSWORD_STRENGTH_STANDARD_COMPONENT_TOKEN`, because `NgComponentOutlet` passes inputs by canonical name (not by alias),
121
123
  - rely on `barClasses()`, `msgClass()`, and `containerClasses()` for Tailwind class strings rather than recomputing them,
122
124
  - do not re-emit `passwordStrength` — the base class does that automatically via an `effect()`.
123
125