@acontplus/ng-components 4.0.0 → 5.0.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 +22 -1
- package/fesm2022/acontplus-ng-components.mjs +480 -299
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/components/alert/_m3-alert.scss +57 -54
- package/src/lib/components/alert/alert.scss +87 -36
- package/src/lib/components/badge/_m3-badge.scss +6 -1
- package/src/lib/components/badge/badge.scss +18 -6
- package/src/lib/components/grid/grid.scss +61 -0
- package/types/acontplus-ng-components.d.ts +141 -115
package/README.md
CHANGED
|
@@ -304,6 +304,25 @@ Enhanced dialog components with wrapper functionality for consistent dialog mana
|
|
|
304
304
|
import { DialogWrapper } from '@acontplus/ng-components';
|
|
305
305
|
```
|
|
306
306
|
|
|
307
|
+
### AcpAlert
|
|
308
|
+
|
|
309
|
+
Inline message with a `type` (`default`, `info`, `success`, `warning`, `danger`), a `variant`
|
|
310
|
+
(`soft`, `outlined`, `filled`), an optional `heading`, a per-type icon and an actions slot.
|
|
311
|
+
`dismissible` adds a close button that hides the alert and emits `closed`; call `open()` to show
|
|
312
|
+
it again. Warnings and errors use `role="alert"`; the rest use `role="status"`.
|
|
313
|
+
|
|
314
|
+
```html
|
|
315
|
+
<acp-alert type="warning" heading="Certificado por vencer" dismissible>
|
|
316
|
+
Renueva tu firma electrónica antes del 20/11/2026.
|
|
317
|
+
<div acpAlertActions>
|
|
318
|
+
<button matButton="filled">Renovar ahora</button>
|
|
319
|
+
</div>
|
|
320
|
+
</acp-alert>
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
Inputs: `type`, `variant`, `heading`, `icon` (Material icon name), `showIcon`, `dismissible`,
|
|
324
|
+
`closeLabel` (default `Cerrar`), `elevation`.
|
|
325
|
+
|
|
307
326
|
### Input Chip
|
|
308
327
|
|
|
309
328
|
Chip input components integrated with Angular Material for tag/chip selection.
|
|
@@ -337,7 +356,9 @@ The DataGrid is the primary table component, built with modern Angular 22+ patte
|
|
|
337
356
|
- **Modern APIs**: Uses `input()` and `output()` functions
|
|
338
357
|
- **Row Selection**: Single/multiple selection with formatter support
|
|
339
358
|
- **Row Highlighting**: Visual highlighting with `highlightedRowIndex`
|
|
340
|
-
- **Keyboard Navigation**:
|
|
359
|
+
- **Keyboard Navigation**: On by default. Arrows, Home/End, PageUp/PageDown, Enter (row click),
|
|
360
|
+
Space (toggle selection) and Ctrl+A (select all). Add `[acpGridNavigationFor]="grid"` to a
|
|
361
|
+
search input to drive the rows while the focus stays in the input
|
|
341
362
|
- **Column Pinning**: Sticky left/right columns
|
|
342
363
|
- **Infinite Scroll**: Load more data on scroll
|
|
343
364
|
- **Server-side Support**: `pageOnFront`/`sortOnFront` toggles for backend pagination
|