@jm-7c3/common-lib 22.1.0 → 22.2.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 CHANGED
@@ -1,12 +1,14 @@
1
1
  # Common Lib
2
2
 
3
- Constains elements based on Angular Material and PrimeNG libraries.
3
+ Constains elements based on [Angular Material](https://material.angular.dev/), [PrimeNG](https://primeng.org) and [Tailwind CSS](https://tailwindcss.com/) libraries.
4
4
 
5
5
  Now the major version matches the Angular version used in the project.
6
6
 
7
+ PrimeNG based components and functionality will be removed in future versions.
8
+
7
9
  ## Controls
8
10
 
9
- Standalone UI controls, based on [Angular Material](https://material.angular.dev/) and [PrimeNG](https://primeng.org) components.
11
+ Standalone UI controls.
10
12
 
11
13
  ### Button
12
14
 
@@ -309,6 +311,31 @@ this.matFormDialogService.open(config).subscribe(formValue => {
309
311
  });
310
312
  ```
311
313
 
314
+ ### Panel
315
+
316
+ Display a panel with header, content and footer sections.
317
+
318
+ #### Import the component
319
+
320
+ ```
321
+ import {PanelComponent} from '@jm-7c3/common-lib';
322
+ ```
323
+
324
+ #### Examples
325
+
326
+ Display the panel with custom content. For the title you can use the `title` input or un `ng-template` with `#titleContent`.
327
+
328
+ ```
329
+ <cl-panel title="Panel Title">
330
+ <ng-template #contentTemplate>
331
+ // Custom content here.
332
+ </ng-template>
333
+ <ng-template #footerTemplate>
334
+ // Custom footer content here.
335
+ </ng-template
336
+ </cl-panel>
337
+ ```
338
+
312
339
  ### Progress Bar Dialog
313
340
 
314
341
  Displays a dialog with a progress bar animation.
@@ -405,7 +432,7 @@ private readonly toastsService = inject(ToastsService);
405
432
 
406
433
  ## Forms
407
434
 
408
- Standalone UI form input controls, based on [PrimeNG](https://primeng.org) components, to be used in Reactive Forms.
435
+ Standalone UI form input controls.
409
436
 
410
437
  ### Base Form
411
438