@verisoft/ui-primeng 18.5.0 → 18.7.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 +53 -3
- package/ng-package.json +9 -1
- package/package.json +3 -3
- package/project.json +0 -7
- package/src/lib/components/tab-view/tab-menu.pipe.ts +1 -0
- package/src/lib/components/tab-view/tab-view.component.ts +5 -0
- package/src/lib/components/tab-view/tab-view.module.ts +2 -2
- package/tsconfig.json +1 -3
- package/tsconfig.lib.prod.json +1 -2
package/README.md
CHANGED
|
@@ -1,7 +1,57 @@
|
|
|
1
1
|
# ui-primeng
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `ui-primeng` library provides reusable UI components and utilities based on the [PrimeNG](https://www.primefaces.org/primeng/) library for the Verisoft Frontend workspace.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Angular components built on top of PrimeNG
|
|
8
|
+
- Shared utilities and helpers for PrimeNG-based UI
|
|
9
|
+
- Consistent theming and styling for PrimeNG components
|
|
10
|
+
- Ready-to-use modules for rapid application development
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
This package is intended for internal use within the monorepo. To use it in another library or app, add it as a dependency in your `project.json`:
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"ui-primeng": "*"
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
Import the required modules or components from `ui-primeng`:
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { PrimengButtonComponent } from '@verisoft/ui-primeng';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
### Building
|
|
33
|
+
|
|
34
|
+
Run the following command to build the library:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
nx build ui-primeng
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Running Unit Tests
|
|
41
|
+
|
|
42
|
+
To execute the unit tests for this library:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
nx test ui-primeng
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Contributing
|
|
49
|
+
|
|
50
|
+
1. Fork the repository and create your branch from `master`.
|
|
51
|
+
2. Make your changes and add tests if needed.
|
|
52
|
+
3. Run `nx test ui-primeng` to ensure all tests pass.
|
|
53
|
+
4. Submit a pull request.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
This project is licensed under the MIT License.
|
package/ng-package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verisoft/ui-primeng",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.7.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.8",
|
|
6
6
|
"@angular/core": "^18.2.8",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@storybook/angular": "^8.3.5",
|
|
12
12
|
"@storybook/test": "^8.3.5",
|
|
13
13
|
"@angular/platform-browser": "18.2.8",
|
|
14
|
-
"@verisoft/core": "18.
|
|
14
|
+
"@verisoft/core": "18.7.0",
|
|
15
15
|
"@faker-js/faker": "^8.4.1",
|
|
16
|
-
"@verisoft/ui-core": "18.
|
|
16
|
+
"@verisoft/ui-core": "18.7.0",
|
|
17
17
|
"uuid": "^10.0.0",
|
|
18
18
|
"@ngx-translate/core": "^15.0.0"
|
|
19
19
|
},
|
package/project.json
CHANGED
|
@@ -9,11 +9,16 @@ import {
|
|
|
9
9
|
} from '@angular/core';
|
|
10
10
|
import { TabViewCore, TabViewItemCore } from '@verisoft/ui-core';
|
|
11
11
|
import { MenuItem } from 'primeng/api';
|
|
12
|
+
import { TabMenuModule } from 'primeng/tabmenu';
|
|
13
|
+
import { TabViewModule } from 'primeng/tabview';
|
|
14
|
+
import { TabMenuPipe } from './tab-menu.pipe';
|
|
12
15
|
import { TabViewItemComponent } from './tab-view-item.component';
|
|
13
16
|
|
|
14
17
|
@Component({
|
|
15
18
|
selector: 'v-tab-view',
|
|
16
19
|
templateUrl: './tab-view.component.html',
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [TabMenuModule, TabMenuPipe, TabViewModule],
|
|
17
22
|
})
|
|
18
23
|
export class TabViewComponent
|
|
19
24
|
implements AfterContentInit, TabViewCore
|
|
@@ -9,8 +9,8 @@ import { TabViewItemComponent } from './tab-view-item.component';
|
|
|
9
9
|
import { TabViewComponent } from './tab-view.component';
|
|
10
10
|
|
|
11
11
|
@NgModule({
|
|
12
|
-
imports: [RouterOutlet, TabMenuModule, PrimeTabViewModule, NgTemplateOutlet],
|
|
13
|
-
declarations: [
|
|
12
|
+
imports: [RouterOutlet, TabMenuModule, PrimeTabViewModule, NgTemplateOutlet, TabViewComponent, TabMenuPipe],
|
|
13
|
+
declarations: [TabViewItemComponent],
|
|
14
14
|
exports: [TabViewComponent, TabViewItemComponent],
|
|
15
15
|
providers: [
|
|
16
16
|
{ provide: TAB_VIEW_COMPONENT_TOKEN, useExisting: TabViewComponent },
|
package/tsconfig.json
CHANGED