@smartsoft001/angular 2.126.0 → 2.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/fesm2022/smartsoft001-angular.mjs +18564 -4693
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/package.json +2 -1
- package/types/smartsoft001-angular.d.ts +2951 -981
package/README.md
CHANGED
|
@@ -3019,7 +3019,7 @@ The `<smart-avatar>` component renders a single avatar (image, initials, or plac
|
|
|
3019
3019
|
|
|
3020
3020
|
### BadgeBaseComponent
|
|
3021
3021
|
|
|
3022
|
-
Abstract base class for badge components. Exposes required `text`, optional `color` (`SmartBadgeColor`, default `'gray'`), `size` (`'sm' | 'md'`, default `'md'`), `IBadgeOptions` (`variant`, `pill`, `withDot`, `withRemove`), `cssClass` (alias `class`), `removed` output, and a `remove()` method.
|
|
3022
|
+
Abstract base class for badge components. Exposes required `text`, optional `color` (`SmartBadgeColor`, default `'gray'`), `size` (`'sm' | 'md'`, default `'md'`), `IBadgeOptions` (`variant` — `'solid' | 'soft' | 'outline'`, `pill`, `withDot`, `withRemove`), `cssClass` (alias `class`), `removed` output, and a `remove()` method.
|
|
3023
3023
|
|
|
3024
3024
|
**Inputs:** `text` (`string`, required), `color` (`SmartBadgeColor`), `size` (`'sm' | 'md'`), `options` (`IBadgeOptions`), `class` (`string`)
|
|
3025
3025
|
**Outputs:** `removed` (`void`)
|
|
@@ -3030,6 +3030,14 @@ The `<smart-badge>` component renders a small status/label chip with an optional
|
|
|
3030
3030
|
|
|
3031
3031
|
**Wrapper:** `BadgeComponent` (selector: `smart-badge`)
|
|
3032
3032
|
**Default:** `BadgeStandardComponent` (selector: `smart-badge-standard`)
|
|
3033
|
+
**Preset variation:** `BadgePresetComponent` (selector: `smart-badge-preset`) — styled drop-in replacement grouping the **solid / soft / outline** color presets (via `options.variant`, default `'soft'`) across the full `SmartBadgeColor` palette, with `pill`, `size`, `withDot`, and `withRemove` support and `dark:` styling. Register through the token to restyle every `<smart-badge>`:
|
|
3034
|
+
|
|
3035
|
+
```typescript
|
|
3036
|
+
providers: [
|
|
3037
|
+
{ provide: BADGE_STANDARD_COMPONENT_TOKEN, useValue: BadgePresetComponent },
|
|
3038
|
+
];
|
|
3039
|
+
```
|
|
3040
|
+
|
|
3033
3041
|
**Token:** `BADGE_STANDARD_COMPONENT_TOKEN` — provide a `Type<BadgeBaseComponent>` to override the default.
|
|
3034
3042
|
|
|
3035
3043
|
### ButtonGroupBaseComponent
|