@smartsoft001/claude-plugins 2.124.0 → 2.126.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 (47) hide show
  1. package/package.json +1 -1
  2. package/plugins/smart/.claude-plugin/plugin.json +1 -1
  3. package/plugins/smart/skills/angular-components-accordion/SKILL.md +38 -0
  4. package/plugins/smart/skills/angular-components-action-panel/SKILL.md +49 -0
  5. package/plugins/smart/skills/angular-components-avatar/SKILL.md +8 -0
  6. package/plugins/smart/skills/angular-components-badge/SKILL.md +47 -3
  7. package/plugins/smart/skills/angular-components-breadcrumbs/SKILL.md +9 -0
  8. package/plugins/smart/skills/angular-components-button/SKILL.md +18 -0
  9. package/plugins/smart/skills/angular-components-button-group/SKILL.md +11 -0
  10. package/plugins/smart/skills/angular-components-calendar/SKILL.md +7 -0
  11. package/plugins/smart/skills/angular-components-card/SKILL.md +20 -0
  12. package/plugins/smart/skills/angular-components-card-heading/SKILL.md +59 -0
  13. package/plugins/smart/skills/angular-components-command-palette/SKILL.md +47 -0
  14. package/plugins/smart/skills/angular-components-container/SKILL.md +31 -0
  15. package/plugins/smart/skills/angular-components-date-edit/SKILL.md +26 -0
  16. package/plugins/smart/skills/angular-components-date-range/SKILL.md +34 -0
  17. package/plugins/smart/skills/angular-components-description-list/SKILL.md +22 -0
  18. package/plugins/smart/skills/angular-components-detail/SKILL.md +49 -0
  19. package/plugins/smart/skills/angular-components-divider/SKILL.md +23 -0
  20. package/plugins/smart/skills/angular-components-drawer/SKILL.md +10 -0
  21. package/plugins/smart/skills/angular-components-dropdown/SKILL.md +8 -0
  22. package/plugins/smart/skills/angular-components-empty-state/SKILL.md +5 -0
  23. package/plugins/smart/skills/angular-components-feed/SKILL.md +9 -0
  24. package/plugins/smart/skills/angular-components-form/SKILL.md +28 -0
  25. package/plugins/smart/skills/angular-components-grid-list/SKILL.md +33 -0
  26. package/plugins/smart/skills/angular-components-icon/SKILL.md +131 -0
  27. package/plugins/smart/skills/angular-components-info/SKILL.md +8 -0
  28. package/plugins/smart/skills/angular-components-input/SKILL.md +56 -0
  29. package/plugins/smart/skills/angular-components-list/SKILL.md +50 -0
  30. package/plugins/smart/skills/angular-components-media-object/SKILL.md +53 -0
  31. package/plugins/smart/skills/angular-components-modal/SKILL.md +11 -0
  32. package/plugins/smart/skills/angular-components-multi-column-layout/SKILL.md +44 -0
  33. package/plugins/smart/skills/angular-components-navbar/SKILL.md +21 -0
  34. package/plugins/smart/skills/angular-components-notification/SKILL.md +16 -1
  35. package/plugins/smart/skills/angular-components-page/SKILL.md +58 -0
  36. package/plugins/smart/skills/angular-components-page-heading/SKILL.md +78 -0
  37. package/plugins/smart/skills/angular-components-paging/SKILL.md +50 -0
  38. package/plugins/smart/skills/angular-components-progress-bars/SKILL.md +13 -0
  39. package/plugins/smart/skills/angular-components-section-heading/SKILL.md +36 -0
  40. package/plugins/smart/skills/angular-components-sidebar-layout/SKILL.md +45 -0
  41. package/plugins/smart/skills/angular-components-sign-in-form/SKILL.md +39 -0
  42. package/plugins/smart/skills/angular-components-stacked-layout/SKILL.md +41 -0
  43. package/plugins/smart/skills/angular-components-stats/SKILL.md +43 -0
  44. package/plugins/smart/skills/angular-components-tabs/SKILL.md +43 -0
  45. package/plugins/smart/skills/angular-components-toggle/SKILL.md +42 -0
  46. package/plugins/smart/skills/angular-components-vertical-navigation/SKILL.md +5 -0
  47. package/plugins/smart/skills/smart-crud/SKILL.md +212 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/claude-plugins",
3
- "version": "2.124.0",
3
+ "version": "2.126.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.124.0"
4
+ "version": "2.126.0"
5
5
  }
@@ -79,8 +79,46 @@ import { AccordionBaseComponent } from '@smartsoft001/angular';
79
79
  export class MyAccordionComponent extends AccordionBaseComponent {}
80
80
  ```
81
81
 
82
+ ## AccordionPresetComponent (`<smart-accordion-preset>`)
83
+
84
+ A fully styled, drop-in accordion concrete based on the Preline bordered
85
+ accordion (FRA-210). It extends `AccordionBaseComponent`, so it consumes the
86
+ exact same contract as `AccordionDefaultComponent`: the `headerTpl` / `bodyTpl`
87
+ required template inputs, the `show` two-way model, `options` and `cssClass`.
88
+
89
+ > **Not token-swappable.** Unlike most preset variations in this library, the
90
+ > accordion has **no** `ACCORDION_STANDARD_COMPONENT_TOKEN` and the
91
+ > `<smart-accordion>` wrapper hard-codes `<smart-accordion-default>`. There is no
92
+ > NgComponentOutlet/DI seam, so the preset cannot be registered to restyle
93
+ > `<smart-accordion>`. **Use it directly via the `<smart-accordion-preset>`
94
+ > selector** and supply the templates yourself.
95
+
96
+ Expand/collapse is driven entirely by the inherited `show` model signal plus
97
+ `@if` — no Preline JS runtime is required. The header arrow is an inline chevron
98
+ (down when collapsed, up when expanded) and the container border becomes visible
99
+ only while open.
100
+
101
+ ```typescript
102
+ import { AccordionPresetComponent } from '@smartsoft001/angular';
103
+ ```
104
+
105
+ ```html
106
+ <ng-template #headerTpl>What is the best thing about Switzerland?</ng-template>
107
+ <ng-template #bodyTpl>I don't know, but the flag is a big plus.</ng-template>
108
+ <smart-accordion-preset
109
+ [headerTpl]="headerTpl"
110
+ [bodyTpl]="bodyTpl"
111
+ [(show)]="isOpen"
112
+ [options]="{ disabled: false }"
113
+ [cssClass]="'my-extra-class'"
114
+ />
115
+ ```
116
+
82
117
  ## File Locations
83
118
 
84
119
  - Base class: `packages/shared/angular/src/lib/components/accordion/base/base.component.ts`
85
120
  - Tests: `packages/shared/angular/src/lib/components/accordion/base/base.component.spec.ts`
121
+ - Default concrete: `packages/shared/angular/src/lib/components/accordion/default/default.component.ts`
122
+ - Preset concrete: `packages/shared/angular/src/lib/components/accordion/preset/preset.component.ts`
123
+ - Preset class recipes: `packages/shared/angular/src/lib/components/accordion/preset/preset-classes.util.ts`
86
124
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IAccordionOptions`)
@@ -193,3 +193,52 @@ export class MyCustomActionPanelComponent extends ActionPanelBaseComponent {
193
193
  - Base class: `packages/shared/angular/src/lib/components/action-panel/base/base.component.ts`
194
194
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`ACTION_PANEL_STANDARD_COMPONENT_TOKEN`)
195
195
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IActionPanelOptions`, `IActionPanelAction`, `SmartActionPanelLayout`)
196
+
197
+ ## Preset
198
+
199
+ `ActionPanelPresetComponent` (`smart-action-panel-preset`,
200
+ `action-panel/preset/`) extends `ActionPanelStandardComponent` and restyles the
201
+ panel as a bordered card
202
+ (`rounded-xl border bg-white p-4 shadow-2xs sm:p-6` + dark twin). Title uses
203
+ `text-base font-semibold text-gray-900`, description `text-sm text-gray-500`;
204
+ `descriptionTpl` overrides the description text. Class recipes live in
205
+ `preset-classes.util.ts` (`getActionPanel*Classes`, not barrel-exported).
206
+
207
+ All eight `SmartActionPanelLayout` values are realized through a `@switch`
208
+ (default `simple`):
209
+
210
+ - `simple` / `with-input` / `payment-method` — title, description, content
211
+ slot, then actions stacked below.
212
+ - `with-link` — actions rendered as `text-blue-600 hover:underline` links.
213
+ - `right-button` — flex row, content left, actions right, vertically centered.
214
+ - `top-right-button` — actions in the title row, right-aligned.
215
+ - `with-toggle` — content slot placed beside the text (flex row), actions below.
216
+ - `well` — content and actions wrapped in an inset
217
+ `bg-gray-50 dark:bg-gray-900/50 rounded-lg p-4` panel.
218
+
219
+ Actions map by `variant`: `primary` → solid `bg-blue-600 text-white`, others →
220
+ outline `border-gray-200 bg-white text-gray-800` + dark. `href` actions render
221
+ as `<a>`, the rest as `<button>` calling the inherited `onActionClick(id)`
222
+ (emits `actionClick` with the action id). DOM hooks: `data-role` of
223
+ `panel`/`title`/`description`/`content`/`actions`/`well`, plus per-action
224
+ `data-role="action"` with `data-action-id`; the panel also carries
225
+ `data-layout`.
226
+
227
+ Unlike the standard component, the preset drops the `class` input alias
228
+ (`override cssClass = input<string>('')`) so the wrapper's canonical
229
+ `componentInputs` binding reaches it via `NgComponentOutlet`.
230
+
231
+ Register through the token to restyle every `<smart-action-panel>`:
232
+
233
+ ```ts
234
+ providers: [
235
+ {
236
+ provide: ACTION_PANEL_STANDARD_COMPONENT_TOKEN,
237
+ useValue: ActionPanelPresetComponent,
238
+ },
239
+ ],
240
+ ```
241
+
242
+ Gaps: `with-toggle` / `with-input` / `payment-method` only position the content
243
+ slot — the interactive control (toggle switch, input, card list) is supplied by
244
+ the caller via `contentTpl`.
@@ -29,6 +29,12 @@ Barebones placeholder concrete implementation. Renders a host `<span>` carrying
29
29
 
30
30
  It does not include Tailwind UI styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
31
31
 
32
+ ### AvatarPresetComponent (`<smart-avatar-preset>`)
33
+
34
+ Styled variation that extends `AvatarBaseComponent` and is a drop-in replacement for `AvatarStandardComponent`. Register it via `AVATAR_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-avatar>`, or use the `<smart-avatar-preset>` selector directly. It renders three content modes — an `<img>` (when `imageUrl` is set), an initials chip (when `initials` is set or `options.placeholderType === 'initials'`), or an SVG icon placeholder (the default) — across the full `SmartAvatarSize` scale (`xs`→`size-8`, `sm`→`size-9.5`, `md`→`size-11`, `lg`→`size-15.5`, `xl`→`size-20`) in both `circle` (`rounded-full`) and `rounded` (`rounded-lg`) shapes. When `notificationPosition` (`top`/`bottom`) is set the avatar is wrapped in a `relative` container with a corner status dot; when `group()` is non-empty it renders an overlapping stacked group (negative `-space-x-2`, ringed members), reversed when `options.stackDirection === 'bottom-to-top'`. All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. The class recipes live in `preset/preset-classes.util.ts` (`getImageClasses`, `getInitialsClasses`, `getIconWrapperClasses`, `getStatusClasses`, `getGroupContainerClasses`, `getGroupItemImageClasses`, `getGroupItemInitialsClasses`).
35
+
36
+ > Because `AvatarComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `AvatarPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-avatar-preset>` selector directly, or just pass `class` on `<smart-avatar>` (the wrapper forwards it).
37
+
32
38
  ### AvatarBaseComponent (abstract)
33
39
 
34
40
  Abstract base directive for extending custom avatar implementations. Static `smartType: DynamicComponentType = 'avatar'`. Exposes:
@@ -213,6 +219,8 @@ When extending the base directly, remember to:
213
219
 
214
220
  - Wrapper: `packages/shared/angular/src/lib/components/avatar/avatar.component.ts`
215
221
  - Standard: `packages/shared/angular/src/lib/components/avatar/standard/standard.component.ts`
222
+ - Preset variation: `packages/shared/angular/src/lib/components/avatar/preset/preset.component.ts`
223
+ - Preset class recipes: `packages/shared/angular/src/lib/components/avatar/preset/preset-classes.util.ts`
216
224
  - Base class: `packages/shared/angular/src/lib/components/avatar/base/base.component.ts`
217
225
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`AVATAR_STANDARD_COMPONENT_TOKEN`)
218
226
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IAvatarItem`, `IAvatarOptions`, `SmartAvatarSize`, `SmartAvatarShape`)
@@ -23,6 +23,12 @@ Main wrapper component. Renders `BadgeStandardComponent` by default. When `BADGE
23
23
 
24
24
  Barebones placeholder concrete implementation. Renders a `<span>` host with `data-color` and `data-size` attributes, an optional leading dot when `options.withDot` is true, the badge `text`, and an optional remove button when `options.withRemove` is true that emits the `removed` output on click. 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
+ ### BadgePresetComponent (`<smart-badge-preset>`)
27
+
28
+ Styled variation that extends `BadgeBaseComponent` and is a drop-in replacement for `BadgeStandardComponent`. Register it via `BADGE_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-badge>`, or use the `<smart-badge-preset>` selector directly. It groups the **solid / soft / outline** color presets into a single component, selected through `options.variant` (default `'soft'`), across the full `SmartBadgeColor` palette. Honors `options.pill` (default `true` → `rounded-full`; `false` → `rounded-md`), `size` (`sm`/`md`), `options.withDot` (leading SVG dot), and `options.withRemove` (remove button emitting `removed`). All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. The per-variant/color class recipes live in `preset/preset-classes.util.ts` (`getBadgeClasses`, `getDotClasses`, `getRemoveClasses`).
29
+
30
+ > Because `BadgeComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `BadgePresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-badge-preset>` selector directly, or just pass `class` on `<smart-badge>` (the wrapper forwards it).
31
+
26
32
  ### BadgeBaseComponent (abstract)
27
33
 
28
34
  Abstract base directive for extending custom badge implementations. Exposes `text` as a required `InputSignal<string>`, `color` as an `InputSignal<SmartBadgeColor>` (default `'gray'`), `size` as an `InputSignal<'sm' | 'md'>` (default `'md'`), `options` as an `InputSignal<IBadgeOptions | undefined>`, `cssClass` as an `InputSignal<string>` (with alias `class`), `removed` as an `OutputEmitterRef<void>`, and a `remove()` method that emits the `removed` output.
@@ -63,14 +69,16 @@ type SmartBadgeColor =
63
69
 
64
70
  ```typescript
65
71
  interface IBadgeOptions {
66
- variant?: 'border' | 'flat';
72
+ /** Visual style: 'solid' | 'soft' | 'outline' (consumed by BadgePresetComponent; default 'soft'). */
73
+ variant?: 'solid' | 'soft' | 'outline';
74
+ /** Fully rounded pill (default true); false → rounded-md corners. */
67
75
  pill?: boolean;
68
76
  withDot?: boolean;
69
77
  withRemove?: boolean;
70
78
  }
71
79
  ```
72
80
 
73
- The standard component only consumes `withDot` (renders a leading bullet) and `withRemove` (renders a remove button that emits `removed`). The remaining properties — `variant` and `pill` — are reserved for custom implementations registered through `BADGE_STANDARD_COMPONENT_TOKEN` and are ignored by `BadgeStandardComponent`.
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
82
 
75
83
  ## BADGE_STANDARD_COMPONENT_TOKEN
76
84
 
@@ -128,7 +136,7 @@ export class MyCustomBadgeComponent extends BadgeBaseComponent {
128
136
  containerClasses = computed(() => {
129
137
  const classes = ['my-badge-container'];
130
138
  if (this.options()?.pill) classes.push('my-badge-pill');
131
- if (this.options()?.variant === 'border') classes.push('my-badge-border');
139
+ if (this.options()?.variant === 'outline') classes.push('my-badge-outline');
132
140
  const extra = this.cssClass();
133
141
  if (extra) classes.push(extra);
134
142
  return classes.join(' ');
@@ -167,10 +175,46 @@ When extending the base directly, remember to:
167
175
  <smart-badge text="Note" class="smart:my-2" />
168
176
  ```
169
177
 
178
+ ### Using the preset variation
179
+
180
+ ```typescript
181
+ // Register globally (or in a feature's providers) to restyle every <smart-badge>:
182
+ import {
183
+ BADGE_STANDARD_COMPONENT_TOKEN,
184
+ BadgePresetComponent,
185
+ } from '@smartsoft001/angular';
186
+
187
+ providers: [
188
+ { provide: BADGE_STANDARD_COMPONENT_TOKEN, useValue: BadgePresetComponent },
189
+ ];
190
+ ```
191
+
192
+ ```html
193
+ <!-- Then drive the style via options.variant -->
194
+ <smart-badge text="Active" color="green" [options]="{ variant: 'solid' }" />
195
+ <smart-badge text="Pending" color="yellow" [options]="{ variant: 'soft' }" />
196
+ <smart-badge text="Draft" color="gray" [options]="{ variant: 'outline' }" />
197
+ <smart-badge
198
+ text="Square"
199
+ color="indigo"
200
+ [options]="{ variant: 'soft', pill: false }"
201
+ />
202
+
203
+ <!-- Or use the variation selector directly (note [cssClass], not class) -->
204
+ <smart-badge-preset
205
+ text="Beta"
206
+ color="purple"
207
+ [options]="{ variant: 'soft' }"
208
+ />
209
+ ```
210
+
170
211
  ## File Locations
171
212
 
172
213
  - Wrapper: `packages/shared/angular/src/lib/components/badge/badge.component.ts`
173
214
  - Standard: `packages/shared/angular/src/lib/components/badge/standard/standard.component.ts`
215
+ - Preset variation: `packages/shared/angular/src/lib/components/badge/preset/preset.component.ts`
216
+ - Preset class recipes: `packages/shared/angular/src/lib/components/badge/preset/preset-classes.util.ts`
174
217
  - Base class: `packages/shared/angular/src/lib/components/badge/base/base.component.ts`
218
+ - Stories: `packages/shared/angular/src/lib/components/badge/badge.component.stories.ts`
175
219
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`BADGE_STANDARD_COMPONENT_TOKEN`)
176
220
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IBadgeOptions`, `SmartBadgeColor`)
@@ -23,6 +23,12 @@ Main wrapper. Delegates to `BreadcrumbsStandardComponent` by default. When `BREA
23
23
 
24
24
  Barebones placeholder using native HTML. Renders a `<nav class="breadcrumbs">` (with `aria-label` from `options.ariaLabel` or default `"Breadcrumb"`) containing an `<ol>` of items. Each item renders as `<a class="breadcrumbs-link">` (when `href` provided) or `<button class="breadcrumbs-button">` (otherwise, emitting `itemClick`). Items get `current` class and `aria-current="page"` when `item.current === true`. Supports `iconTpl` (e.g. for the home item) and `srOnlyLabel`. Items are joined by a `<span class="breadcrumbs-separator">` with a `data-separator` attribute reflecting `options.separator` (defaults to `chevron`).
25
25
 
26
+ ### BreadcrumbsPresetComponent (`<smart-breadcrumbs-preset>`)
27
+
28
+ Styled variation that extends `BreadcrumbsBaseComponent` and is a drop-in replacement for `BreadcrumbsStandardComponent`. Register it via `BREADCRUMBS_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-breadcrumbs>`, or use the `<smart-breadcrumbs-preset>` selector directly. Translates the Preline breadcrumb: muted links (`text-gray-500`) that brighten to blue on hover/focus, a bold non-link current crumb (`font-semibold text-gray-900`), and a configurable separator SVG between crumbs selected via `options.separator` — `chevron` (default), `slash` (drawn slightly larger), or `arrow`. The `options.layout` field wraps the bar: `contained` (inline padded gray panel with rounded corners) and `full-width-bar` (full-width gray bar with top/bottom borders); the `simple-with-slashes` layout also implies a slash separator when `separator` is unset. Items render as `<a>` (when `href` is set and not current), `<button>` (no href → emits `itemClick`), or a plain `<span>` (when `current`). All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. Class recipes live in `preset/preset-classes.util.ts` (`getNavClasses`, `getListClasses`, `getItemClasses`, `getLinkClasses`, `getSeparatorClasses`, `resolveSeparator`).
29
+
30
+ > Because `BreadcrumbsComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `BreadcrumbsPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-breadcrumbs-preset>` selector directly, or just pass `class` on `<smart-breadcrumbs>` (the wrapper forwards it).
31
+
26
32
  ### BreadcrumbsBaseComponent (abstract)
27
33
 
28
34
  Abstract base directive. Exposes:
@@ -147,6 +153,9 @@ export class MyCustomBreadcrumbsComponent extends BreadcrumbsBaseComponent {
147
153
 
148
154
  - Wrapper: `packages/shared/angular/src/lib/components/breadcrumbs/breadcrumbs.component.ts`
149
155
  - Standard: `packages/shared/angular/src/lib/components/breadcrumbs/standard/standard.component.ts`
156
+ - Preset variation: `packages/shared/angular/src/lib/components/breadcrumbs/preset/preset.component.ts`
157
+ - Preset class recipes: `packages/shared/angular/src/lib/components/breadcrumbs/preset/preset-classes.util.ts`
158
+ - Stories: `packages/shared/angular/src/lib/components/breadcrumbs/breadcrumbs.component.stories.ts`
150
159
  - Base class: `packages/shared/angular/src/lib/components/breadcrumbs/base/base.component.ts`
151
160
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`BREADCRUMBS_STANDARD_COMPONENT_TOKEN`)
152
161
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IBreadcrumbsOptions`, `IBreadcrumbItem`, `SmartBreadcrumbsLayout`, `SmartBreadcrumbsSeparator`)
@@ -23,6 +23,23 @@ Main wrapper component. Renders `ButtonStandardComponent` by default. When `BUTT
23
23
 
24
24
  Default concrete implementation. Simple Tailwind-styled button with size-dependent rounding and padding.
25
25
 
26
+ ### ButtonPresetComponent (`<smart-button-preset>`)
27
+
28
+ Fully-styled, drop-in preset implementation extending `ButtonBaseComponent`. Register it through `BUTTON_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-button>`, or use the `<smart-button-preset>` selector directly.
29
+
30
+ Groups the Preline button types into one component, selected via the existing `options.variant`: `primary` → solid, `secondary` → outline, `soft` → soft. Works across the full `SmartColor` palette and every `SmartSize`, and honours `options.rounded` (pill), `options.circular` (square padding + pill), `options.loading`, `options.confirm`, and the `disabled` input. All classes are `smart:`-prefixed vanilla Tailwind with explicit `dark:` variants.
31
+
32
+ ```typescript
33
+ providers: [
34
+ {
35
+ provide: BUTTON_STANDARD_COMPONENT_TOKEN,
36
+ useValue: ButtonPresetComponent,
37
+ },
38
+ ];
39
+ ```
40
+
41
+ Because `ButtonComponent` renders the injected component via `NgComponentOutlet`, inputs are passed by **canonical name** — `ButtonPresetComponent` therefore overrides `cssClass` as a plain `input<string>('')` (dropping the inherited `class` alias). Note that `NgComponentOutlet` does not project `<ng-content>`, so a button label set via content only shows when the preset is used directly through `<smart-button-preset>` (not through the token path).
42
+
26
43
  ### ButtonBaseComponent (abstract)
27
44
 
28
45
  Abstract base directive for extending custom button implementations.
@@ -130,6 +147,7 @@ export class MyCustomButtonComponent extends ButtonBaseComponent {
130
147
 
131
148
  - Wrapper: `packages/shared/angular/src/lib/components/button/button.component.ts`
132
149
  - Standard: `packages/shared/angular/src/lib/components/button/standard/standard.component.ts`
150
+ - Preset: `packages/shared/angular/src/lib/components/button/preset/preset.component.ts` (classes: `preset/preset-classes.util.ts`)
133
151
  - Base class: `packages/shared/angular/src/lib/components/button/base/base.component.ts`
134
152
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`BUTTON_STANDARD_COMPONENT_TOKEN`)
135
153
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IButtonOptions`)
@@ -24,6 +24,14 @@ Main wrapper component. Renders `ButtonGroupStandardComponent` by default. When
24
24
 
25
25
  Default concrete implementation. Renders a `<div role="group">` containing one `<button>` per item, with optional label and count spans.
26
26
 
27
+ ### ButtonGroupPresetComponent (`<smart-button-group-preset>`)
28
+
29
+ Fully-styled, drop-in concrete implementation (Preline button-group look) that extends `ButtonGroupBaseComponent`. Renders a segmented control with a `bg-white`/`dark:bg-gray-800` surface, shared borders collapsed via `-ms-px`, and rounded ends. The segment matching `selected` is emphasised (`aria-pressed="true"` + blue text). `options.variant` adjusts per-button content: `icon-only` hides labels (and sets `aria-label`), `with-stat` styles the count pill with the blue stat palette; all other variants render the basic label + count layout.
30
+
31
+ Register it through `BUTTON_GROUP_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-button-group>`, or use the `<smart-button-group-preset>` selector directly.
32
+
33
+ > NgComponentOutlet note: when registered through the token, the wrapper passes inputs by **canonical name**, so the preset overrides the inherited `class` alias with a plain `cssClass = input<string>('')` so external classes still bind.
34
+
27
35
  ### ButtonGroupBaseComponent (abstract)
28
36
 
29
37
  Abstract base directive (`@Directive()`) for extending custom button-group implementations. Exposes `select(id: string)` which sets `selected` and emits `buttonClick`.
@@ -153,6 +161,9 @@ The base class provides `select(id: string)` which sets `selected` and emits `bu
153
161
  - Wrapper: `packages/shared/angular/src/lib/components/button-group/button-group.component.ts`
154
162
  - Standard: `packages/shared/angular/src/lib/components/button-group/standard/standard.component.ts`
155
163
  - Standard template: `packages/shared/angular/src/lib/components/button-group/standard/standard.component.html`
164
+ - Preset: `packages/shared/angular/src/lib/components/button-group/preset/preset.component.ts`
165
+ - Preset template: `packages/shared/angular/src/lib/components/button-group/preset/preset.component.html`
166
+ - Preset classes: `packages/shared/angular/src/lib/components/button-group/preset/preset-classes.util.ts`
156
167
  - Base class: `packages/shared/angular/src/lib/components/button-group/base/base.component.ts`
157
168
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`BUTTON_GROUP_STANDARD_COMPONENT_TOKEN`)
158
169
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IButtonGroupButton`, `IButtonGroupOptions`, `SmartButtonGroupVariant`)
@@ -23,6 +23,12 @@ Main wrapper component. Renders `CalendarStandardComponent` by default. When `CA
23
23
 
24
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.
25
25
 
26
+ ### CalendarPresetComponent (`<smart-calendar-preset>`)
27
+
28
+ Styled single date-picker variation that extends `CalendarBaseComponent` and is a drop-in replacement for `CalendarStandardComponent`. Register it via `CALENDAR_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-calendar>`, or use the `<smart-calendar-preset>` selector directly. It reproduces Preline's single date-picker visual (a `w-80` rounded popover card: month/year navigation header with chevron prev/next buttons, a weekday header row, and a 6×7 grid of circular day buttons) translated to `smart:`-prefixed vanilla Tailwind with explicit `dark:` variants. Month navigation (`prevPeriod`/`nextPeriod`) and day selection (`selectDay`) are driven entirely by Angular signals — the Preline datepicker JS plugin is **not** required. It honors `options.weekStart` (rotates the weekday header; default `1` → Monday) and `options.showToolbar` (toggles the navigation header). Selected, today, default, and out-of-month day states each get distinct styling; out-of-month days are rendered disabled. Days that have matching `events` show a small dot marker, and `options.dayCellTpl` overrides the default day content. The class recipes live in `preset/preset-classes.util.ts` (`getCalendarPresetDayClasses` plus the `CALENDAR_PRESET_*` layout constants).
29
+
30
+ > Because `CalendarComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `CalendarPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-calendar-preset>` selector directly, or just pass `class` on `<smart-calendar>` (the wrapper forwards it). Note also that when used through the wrapper the `value` two-way binding is re-applied as a one-way input on every change-detection (and `referenceDate` is not forwarded at all, since its canonical input name is `referenceDateInput`), so for interactive selection / external reference-date control use the `<smart-calendar-preset>` selector directly with `[(value)]` and `[referenceDate]`.
31
+
26
32
  ### CalendarBaseComponent (abstract)
27
33
 
28
34
  Abstract base directive containing the shared calendar logic. Exposes inputs and signals for state, plus methods for navigation and selection.
@@ -217,6 +223,7 @@ export class MyCustomCalendarComponent extends CalendarBaseComponent {
217
223
 
218
224
  - Wrapper: `packages/shared/angular/src/lib/components/calendar/calendar.component.ts`
219
225
  - Standard: `packages/shared/angular/src/lib/components/calendar/standard/standard.component.ts`
226
+ - Preset: `packages/shared/angular/src/lib/components/calendar/preset/preset.component.ts` (selector `smart-calendar-preset`, class recipes in `preset/preset-classes.util.ts`)
220
227
  - Base class: `packages/shared/angular/src/lib/components/calendar/base/base.component.ts`
221
228
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`CALENDAR_STANDARD_COMPONENT_TOKEN`)
222
229
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`ICalendarOptions`, `ICalendarEvent`, `ICalendarDayCell`, `SmartCalendarView`)
@@ -98,10 +98,30 @@ providers: [
98
98
  ];
99
99
  ```
100
100
 
101
+ ## CardPresetComponent (`smart-card-preset`)
102
+
103
+ Fully-styled, drop-in concrete implementation extending `CardBaseComponent` — a faithful translation of Preline's card (`rounded-xl` surface, `shadow-2xs`, bordered surface header/footer) into `smart:`-prefixed vanilla Tailwind with explicit `dark:` variants. Honours `options.title`, `options.grayBody`, and `options.grayFooter`, and renders the same `headerTpl` / `bodyTpl` / `footerTpl` slots as the base.
104
+
105
+ Use it directly via `<smart-card-preset>`, or register it through `CARD_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-card>`:
106
+
107
+ ```typescript
108
+ import {
109
+ CardPresetComponent,
110
+ CARD_STANDARD_COMPONENT_TOKEN,
111
+ } from '@smartsoft001/angular';
112
+
113
+ providers: [
114
+ { provide: CARD_STANDARD_COMPONENT_TOKEN, useValue: CardPresetComponent },
115
+ ];
116
+ ```
117
+
118
+ Note: when rendered through the token, `CardComponent` uses `*ngComponentOutlet`, which passes inputs by **canonical name**. The preset therefore overrides the inherited `cssClass` to drop the `class` alias (`override cssClass = input<string>('')`) so extra classes bind correctly. Class recipes live in `preset/preset-classes.util.ts` (`getCardContainerClasses`, `getCardHeaderClasses`, `getCardBodyClasses`, `getCardFooterClasses`).
119
+
101
120
  ## File Locations
102
121
 
103
122
  - Wrapper: `packages/shared/angular/src/lib/components/card/card.component.ts`
104
123
  - Default: `packages/shared/angular/src/lib/components/card/standard/standard.component.{ts,html}`
124
+ - Preset: `packages/shared/angular/src/lib/components/card/preset/preset.component.{ts,html}` + `preset/preset-classes.util.ts`
105
125
  - Base: `packages/shared/angular/src/lib/components/card/base/base.component.ts`
106
126
  - Tests: `packages/shared/angular/src/lib/components/card/{card,standard/standard,base/base}.component.spec.ts`
107
127
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`CARD_STANDARD_COMPONENT_TOKEN`)
@@ -147,8 +147,67 @@ export class MyCustomCardHeadingComponent extends CardHeadingBaseComponent {
147
147
  </smart-card>
148
148
  ```
149
149
 
150
+ ## HyperUI preset
151
+
152
+ `CardHeadingPresetComponent` (`<smart-card-heading-preset>`) is a HyperUI-styled
153
+ drop-in replacement for the standard component. It extends
154
+ `CardHeadingStandardComponent`, is `OnPush` + `ViewEncapsulation.None`, and
155
+ restyles the heading into one of four card looks selected by
156
+ `options.presentation.variant`. All utilities are `smart:`-prefixed with
157
+ explicit `smart:dark:*` variants. Content flows from the shared
158
+ `ICardHeadingOptions` slots; the root element carries `data-role="card"` and
159
+ per-variant zones expose `data-role` hooks (`avatar`, `title`, `description`,
160
+ `meta`, `actions`, plus `title-hover` for the outline variant).
161
+
162
+ Because the wrapper forwards inputs canonically through `NgComponentOutlet`, the
163
+ preset does `override cssClass = input<string>('')` (dropping the inherited
164
+ `class` alias) and merges it into the root card classes.
165
+
166
+ | Variant | Look | Slots used |
167
+ | --------- | ----------------------------------------------------------------- | ------------------------------------------------------------ |
168
+ | `author` | Bordered, rounded card; avatar to the side, meta `<dl>` (default) | title, description, avatarTpl, metaTpl, actionsTpl |
169
+ | `stacked` | Large top image, title + description stacked underneath | title, description, avatarTpl, metaTpl, actionsTpl |
170
+ | `overlay` | Full-bleed image on a black backdrop, content revealed on hover | title, description, avatarTpl, metaTpl (eyebrow), actionsTpl |
171
+ | `outline` | Dashed offset border, title flips to description/action on hover | title, description, avatarTpl, actionsTpl |
172
+
173
+ `presentation.variant` defaults to `author` (also the fallback for an unknown
174
+ value).
175
+
176
+ ### Register the preset
177
+
178
+ ```typescript
179
+ import { CARD_HEADING_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
180
+ import { CardHeadingPresetComponent } from '@smartsoft001/angular';
181
+
182
+ providers: [
183
+ {
184
+ provide: CARD_HEADING_STANDARD_COMPONENT_TOKEN,
185
+ useValue: CardHeadingPresetComponent,
186
+ },
187
+ ];
188
+ ```
189
+
190
+ ### Gaps (out of scope)
191
+
192
+ HyperUI card templates 5–9 are not implemented — they need domain fields absent
193
+ from `ICardHeadingOptions`:
194
+
195
+ - **Property card** — price, address, list of numeric specs (beds/baths/area).
196
+ - **Profile with social + project links** — dedicated social-icon and
197
+ project-link collections (dark profile card).
198
+ - **Shaped image** — a decorative clip-path/image-shape treatment with no
199
+ content-driven data channel.
200
+ - **Podcast post** — episode number, duration, and audio/player metadata.
201
+ - **Forum post** — author, reply count, tag list, and activity timestamps.
202
+
203
+ Adding any of these would require extending `ICardHeadingOptions` (e.g.
204
+ structured `stats`, `links`, or `badges` collections) before a faithful preset
205
+ variant can be built.
206
+
150
207
  ## File Locations
151
208
 
209
+ - Preset: `packages/shared/angular/src/lib/components/card-heading/preset/preset.component.ts`
210
+ - Preset classes: `packages/shared/angular/src/lib/components/card-heading/preset/preset-classes.util.ts`
152
211
  - Wrapper: `packages/shared/angular/src/lib/components/card-heading/card-heading.component.ts`
153
212
  - Standard: `packages/shared/angular/src/lib/components/card-heading/standard/standard.component.ts`
154
213
  - Base class: `packages/shared/angular/src/lib/components/card-heading/base/base.component.ts`
@@ -200,10 +200,57 @@ function onRunCommand({ commandId }: { commandId: string }): void {
200
200
  }
201
201
  ```
202
202
 
203
+ ## Preset
204
+
205
+ `CommandPalettePresetComponent` (`<smart-command-palette-preset>`) is the styled, production-ready replacement for the barebones standard component. It `extends CommandPaletteStandardComponent`, so all filtering (`filteredCommands`), query handling (`onQueryChange`), selection (`selectCommand` → emit `runCommand` + close), and `close()` behavior are inherited unchanged; the preset only adds the visual layer driven by `options.variant`.
206
+
207
+ The base look is a native `<dialog [open]>` styled `smart:mx-auto smart:mt-16 smart:w-full smart:max-w-xl smart:rounded-xl` with a gray border, white/`dark:bg-gray-800` surface and `smart:shadow-xl`; a search input with a leading magnifier SVG (`ps-11`, `focus:ring-blue-500`); a `<ul role="listbox">` with `smart:divide-y` rows that hover `smart:bg-gray-100 dark:bg-gray-700`; and a centered `smart:text-gray-500` empty state using `options.emptyText` (fallback `No results`). All Tailwind utilities are `smart:`-prefixed with explicit `dark:` twins in the same template. Class recipes live in `preset/preset-classes.util.ts` (`getCommandPalette*Classes`, never barrel-exported).
208
+
209
+ ### Variants (`options.variant`, default `simple`)
210
+
211
+ | Variant | Rendering |
212
+ | ------------------ | ----------------------------------------------------------------------------------------------- |
213
+ | `simple` | Base dialog + listbox, opaque white/`dark:gray-800` surface. |
214
+ | `with-padding` | Looser row padding (`smart:px-6 smart:py-4`) for a roomier list. |
215
+ | `with-icons` | Leading square glyph per row from `ICommand.icon` (falls back to `#` when absent). |
216
+ | `with-images` | Leading rounded avatar per row from `ICommand.imageUrl` (rows without an image show no avatar). |
217
+ | `semi-transparent` | Translucent `smart:bg-white/90 dark:bg-gray-800/90 smart:backdrop-blur` dialog surface. |
218
+ | `with-groups` | Grouped rows under uppercase headers (`data-role="group"`) from `ICommand.group`. |
219
+ | `with-footer` | Adds a bottom bar (`data-role="footer"`) with a result count and `Enter / Esc` hint text. |
220
+ | `with-preview` | Two-pane layout: half-width list + a preview panel showing the hovered (default first) command. |
221
+
222
+ `with-groups` groups by `ICommand.group`; commands without a `group` fall under an `Other` header. `with-preview` uses `ICommand.description` for the preview body and widens the dialog to `smart:max-w-3xl`.
223
+
224
+ ### data-role hooks
225
+
226
+ The template exposes stable `data-role` attributes for testing/targeting: `dialog`, `search-wrap`, `search`, `list`, `item`, `item-icon`, `item-image`, `group`, `empty`, `footer`, `preview-layout`, `preview`.
227
+
228
+ ### Token registration
229
+
230
+ ```typescript
231
+ import { COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
232
+ import { CommandPalettePresetComponent } from '@smartsoft001/angular';
233
+
234
+ providers: [
235
+ {
236
+ provide: COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN,
237
+ useValue: CommandPalettePresetComponent,
238
+ },
239
+ ];
240
+ ```
241
+
242
+ Because `CommandPaletteComponent` forwards inputs canonically through `NgComponentOutlet` (`componentInputs = { commands, open, query, options, cssClass }`), the preset declares `override cssClass = input<string>('')` (dropping the inherited `class` alias) so external classes bind.
243
+
244
+ ### Known limitation — model() two-way writeback
245
+
246
+ `open` and `query` are `model()` signals, but the wrapper renders the preset via `NgComponentOutlet`, which passes inputs by value and does not wire an output-side binding. So `[(open)]`/`[(query)]` two-way writeback from the injected preset does **not** propagate back up through the wrapper (a token-path limitation). The preset still updates its own `open`/`query` internally (e.g. `selectCommand` closes the dialog locally, `onQueryChange` filters), and `runCommand` is forwarded normally. If you need the parent's `open`/`query` signals kept in sync, use `<smart-command-palette-preset>` directly with `[(open)]`/`[(query)]` instead of going through the token, or drive `open`/`query` as one-way inputs and react to `runCommand`. This is a wrapper-level constraint and is intentionally not patched here.
247
+
203
248
  ## File Locations
204
249
 
205
250
  - Wrapper: `packages/shared/angular/src/lib/components/command-palette/command-palette.component.ts`
206
251
  - Standard: `packages/shared/angular/src/lib/components/command-palette/standard/standard.component.ts`
252
+ - Preset: `packages/shared/angular/src/lib/components/command-palette/preset/preset.component.ts` (classes in `preset/preset-classes.util.ts`)
253
+ - Stories: `packages/shared/angular/src/lib/components/command-palette/command-palette.component.stories.ts`
207
254
  - Base class: `packages/shared/angular/src/lib/components/command-palette/base/base.component.ts`
208
255
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`COMMAND_PALETTE_STANDARD_COMPONENT_TOKEN`)
209
256
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`ICommand`, `ICommandPaletteOptions`)
@@ -105,6 +105,37 @@ Consequences for custom implementations:
105
105
  - A custom component provided via `CONTAINER_STANDARD_COMPONENT_TOKEN` **must not rely on `<ng-content />`**. Instead, drive the rendered content through inputs (e.g. `options`, additional input signals on the custom subclass, or a `TemplateRef` input).
106
106
  - If you genuinely need projected children with a custom variant, expose a `bodyTpl: input<TemplateRef>()` style input and render it with `<ng-container *ngTemplateOutlet="bodyTpl()" />`.
107
107
 
108
+ ## Preset
109
+
110
+ `ContainerPresetComponent` (selector `smart-container-preset`, dir `container/preset/`) is a styled drop-in for the neutral standard component. It `extends ContainerStandardComponent` and maps `IContainerOptions` to real Tailwind layout utilities (all `smart:`-prefixed) on a single root `<div data-role="container">` that preserves `<ng-content />`. No new options fields are introduced.
111
+
112
+ Class mapping (`getContainerClasses(mode, padding, narrow)` in `preset/preset-classes.util.ts`):
113
+
114
+ | Option | Classes |
115
+ | ---------------------------- | --------------------------------------------------------------------------------------------- |
116
+ | `mode: 'container'` | `smart:mx-auto smart:max-w-7xl` |
117
+ | `mode: 'constrained'` | `smart:mx-auto smart:max-w-5xl` |
118
+ | `mode: 'full-width'` / unset | `smart:w-full` |
119
+ | `narrow: true` | tightens max-width to `smart:max-w-3xl` (wins over the mode max-width, stays `smart:mx-auto`) |
120
+ | `padding: 'always'` | `smart:px-4 smart:sm:px-6 smart:lg:px-8` |
121
+ | `padding: 'mobile'` | `smart:px-4 smart:sm:px-0` |
122
+ | `padding: 'none'` / unset | no padding classes |
123
+
124
+ The wrapper forwards inputs canonically through `NgComponentOutlet`, so the preset does `override cssClass = input<string>('')` (dropping the `class` alias). External `cssClass` is appended after the mapped classes.
125
+
126
+ Register it via the token:
127
+
128
+ ```typescript
129
+ providers: [
130
+ {
131
+ provide: CONTAINER_STANDARD_COMPONENT_TOKEN,
132
+ useValue: ContainerPresetComponent,
133
+ },
134
+ ];
135
+ ```
136
+
137
+ Documented gap: because `NgComponentOutlet` does not forward content projection, projected children only render when `<smart-container-preset>` is used directly, not through `<smart-container>` (see the projection limitation above). Story: `container.component.stories.ts` → `Preset`.
138
+
108
139
  ## File Locations
109
140
 
110
141
  - Wrapper: `packages/shared/angular/src/lib/components/container/container.component.ts`
@@ -94,9 +94,35 @@ import { DateEditBaseComponent } from '@smartsoft001/angular';
94
94
  export class MyDateEditComponent extends DateEditBaseComponent {}
95
95
  ```
96
96
 
97
+ ## DateEditPresetComponent (`<smart-date-edit-preset>`)
98
+
99
+ A fully-styled Preline single datepicker variation — a read-only trigger input
100
+ plus a calendar popover. Drop-in replacement for the standard editor.
101
+
102
+ Unlike token-based components, `<smart-date-edit>` selects its variation through a
103
+ `variant` input (NOT an `InjectionToken` / `NgComponentOutlet`). The wrapper
104
+ dispatches via `@switch (variant())` over `DateEditVariantName`
105
+ (`'standard' | 'preset'`). Render the preset with:
106
+
107
+ ```html
108
+ <smart-date-edit variant="preset" [(ngModel)]="dateValue"></smart-date-edit>
109
+ ```
110
+
111
+ The preset extends `DateEditBaseComponent`, so it shares `ngModel` (`YYYY-MM-DD`),
112
+ `validDate`, and `validChange`. Preline's JS plugin is not installed, so the
113
+ popover (open/close, prev/next month, day selection) is driven entirely by
114
+ Angular signals — no external runtime. Month/year pickers are native `<select>`
115
+ elements styled to match Preline.
116
+
117
+ ```typescript
118
+ import { DateEditPresetComponent } from '@smartsoft001/angular';
119
+ ```
120
+
97
121
  ## File Locations
98
122
 
99
123
  - Base class: `packages/shared/angular/src/lib/components/date-edit/base/base.component.ts`
124
+ - Preset component: `packages/shared/angular/src/lib/components/date-edit/preset/preset.component.ts`
125
+ - Preset template: `packages/shared/angular/src/lib/components/date-edit/preset/preset.component.html`
100
126
  - Default component: `packages/shared/angular/src/lib/components/date-edit/default/default.component.ts`
101
127
  - Default template: `packages/shared/angular/src/lib/components/date-edit/default/default.component.html`
102
128
  - Tests: `packages/shared/angular/src/lib/components/date-edit/date-edit.component.spec.ts`
@@ -54,6 +54,36 @@ interface IDateRange {
54
54
  - `ControlValueAccessor` for forms
55
55
  - Dark mode
56
56
 
57
+ ## DateRangePresetComponent (`<smart-date-range-preset>`)
58
+
59
+ A fully styled, drop-in variation based on the Preline "single calendar range"
60
+ datepicker (FRA-219). The Preline JS plugin is **not** installed, so the range
61
+ calendar is rendered entirely with Angular signals (no external runtime): click
62
+ the trigger to open an inline popover, pick a start and end day to highlight the
63
+ range, switch months via prev/next buttons or the month/year selects, then Apply.
64
+
65
+ Extends `DateRangeBaseComponent` (reuses `onClick`, `onModalApply`, `onModalDismiss`,
66
+ `onClear`), so it consumes the exact same API and `ControlValueAccessor` contract
67
+ as the standard variant — no new interface options or tokens are required.
68
+
69
+ ### Selecting the variant
70
+
71
+ `<smart-date-range>` dispatches over the `variant` input (type
72
+ `DateRangeVariantName = 'standard' | 'preset'`) with an internal `@switch`. This
73
+ component does **not** use the InjectionToken / `NgComponentOutlet` pattern:
74
+
75
+ ```html
76
+ <!-- via the wrapper -->
77
+ <smart-date-range variant="preset" [(ngModel)]="dateRange"></smart-date-range>
78
+
79
+ <!-- or directly -->
80
+ <smart-date-range-preset [(ngModel)]="dateRange"></smart-date-range-preset>
81
+ ```
82
+
83
+ Because the wrapper binds `[class]="cssClass()"` directly on the selector (not via
84
+ `NgComponentOutlet`), the host `class` is applied natively — no `cssClass` input
85
+ override is needed (unlike token-based components such as `badge`).
86
+
57
87
  ## Base Classes API (for Extension)
58
88
 
59
89
  ### DateRangeBaseComponent
@@ -133,6 +163,10 @@ export class MyDateRangeComponent extends DateRangeBaseComponent {}
133
163
  - Default component: `packages/shared/angular/src/lib/components/date-range/default/date-range-default.component.ts`
134
164
  - Default template: `packages/shared/angular/src/lib/components/date-range/default/date-range-default.component.html`
135
165
  - Default modal: `packages/shared/angular/src/lib/components/date-range/default/date-range-modal-default.component.ts`
166
+ - Preset component: `packages/shared/angular/src/lib/components/date-range/preset/preset.component.ts`
167
+ - Preset template: `packages/shared/angular/src/lib/components/date-range/preset/preset.component.html`
168
+ - Preset classes: `packages/shared/angular/src/lib/components/date-range/preset/preset-classes.util.ts`
169
+ - Preset tests: `packages/shared/angular/src/lib/components/date-range/preset/preset.component.spec.ts`
136
170
  - Tests: `packages/shared/angular/src/lib/components/date-range/date-range.component.spec.ts`
137
171
  - Stories: `packages/shared/angular/src/lib/components/date-range/date-range.component.stories.ts`
138
172
  - Calendar service: `packages/shared/angular/src/lib/services/calendar/calendar.service.ts`