@acontplus/ng-components 1.2.1 → 1.3.1
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 +69 -52
- package/fesm2022/acontplus-ng-components.mjs +433 -310
- package/fesm2022/acontplus-ng-components.mjs.map +1 -1
- package/index.d.ts +225 -186
- package/package.json +21 -20
package/README.md
CHANGED
|
@@ -5,7 +5,11 @@ Angular Material UI component library with dynamic tables, theming support, dial
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# Using npm
|
|
8
9
|
npm install @acontplus/ng-components
|
|
10
|
+
|
|
11
|
+
# Using pnpm
|
|
12
|
+
pnpm add @acontplus/ng-components
|
|
9
13
|
```
|
|
10
14
|
|
|
11
15
|
## Features
|
|
@@ -25,18 +29,57 @@ npm install @acontplus/ng-components
|
|
|
25
29
|
|
|
26
30
|
### Cards
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
#### DynamicCard
|
|
33
|
+
|
|
34
|
+
Versatile card component wrapping Angular Material's mat-card with additional functionality.
|
|
29
35
|
|
|
30
36
|
```typescript
|
|
31
|
-
import {
|
|
37
|
+
import { DynamicCard } from '@acontplus/ng-components';
|
|
38
|
+
|
|
39
|
+
@Component({
|
|
40
|
+
template: `
|
|
41
|
+
<acp-dynamic-card
|
|
42
|
+
[cardTitle]="'Product Details'"
|
|
43
|
+
[cardSubtitle]="'Premium Package'"
|
|
44
|
+
[isHeaderVisible]="true"
|
|
45
|
+
[areActionsVisible]="true"
|
|
46
|
+
[primaryButtonText]="'Buy Now'"
|
|
47
|
+
[secondaryButtonText]="'Learn More'"
|
|
48
|
+
(primaryButtonClicked)="onPurchase()"
|
|
49
|
+
(secondaryButtonClicked)="onLearnMore()"
|
|
50
|
+
>
|
|
51
|
+
<p>Card content goes here</p>
|
|
52
|
+
</acp-dynamic-card>
|
|
53
|
+
`,
|
|
54
|
+
imports: [DynamicCard],
|
|
55
|
+
})
|
|
56
|
+
export class ProductComponent {}
|
|
32
57
|
```
|
|
33
58
|
|
|
34
59
|
### Buttons
|
|
35
60
|
|
|
36
|
-
|
|
61
|
+
#### Button
|
|
62
|
+
|
|
63
|
+
Flexible button component with multiple Material Design variants.
|
|
37
64
|
|
|
38
65
|
```typescript
|
|
39
|
-
import {
|
|
66
|
+
import { Button } from '@acontplus/ng-components';
|
|
67
|
+
|
|
68
|
+
@Component({
|
|
69
|
+
template: `
|
|
70
|
+
<acp-button
|
|
71
|
+
[variant]="'primary'"
|
|
72
|
+
[text]="'Save'"
|
|
73
|
+
[icon]="'save'"
|
|
74
|
+
[matStyle]="'elevated'"
|
|
75
|
+
[disabled]="false"
|
|
76
|
+
(handleClick)="onSave()"
|
|
77
|
+
>
|
|
78
|
+
</acp-button>
|
|
79
|
+
`,
|
|
80
|
+
imports: [Button],
|
|
81
|
+
})
|
|
82
|
+
export class FormComponent {}
|
|
40
83
|
```
|
|
41
84
|
|
|
42
85
|
### Dialog Wrapper
|
|
@@ -44,15 +87,17 @@ import { ButtonComponent } from '@acontplus/ng-components';
|
|
|
44
87
|
Enhanced dialog components with wrapper functionality for consistent dialog management.
|
|
45
88
|
|
|
46
89
|
```typescript
|
|
47
|
-
import {
|
|
90
|
+
import { DialogWrapper } from '@acontplus/ng-components';
|
|
48
91
|
```
|
|
49
92
|
|
|
50
93
|
### Icons
|
|
51
94
|
|
|
52
|
-
|
|
95
|
+
#### UserIcon & SvgIcon
|
|
96
|
+
|
|
97
|
+
Icon components for consistent iconography.
|
|
53
98
|
|
|
54
99
|
```typescript
|
|
55
|
-
import {
|
|
100
|
+
import { UserIcon, SvgIcon } from '@acontplus/ng-components';
|
|
56
101
|
```
|
|
57
102
|
|
|
58
103
|
### Input Chip
|
|
@@ -60,7 +105,7 @@ import { IconsComponent } from '@acontplus/ng-components';
|
|
|
60
105
|
Chip input components integrated with Angular Material for tag/chip selection.
|
|
61
106
|
|
|
62
107
|
```typescript
|
|
63
|
-
import {
|
|
108
|
+
import { InputChip } from '@acontplus/ng-components';
|
|
64
109
|
```
|
|
65
110
|
|
|
66
111
|
### Spinner
|
|
@@ -68,16 +113,16 @@ import { InputChipComponent } from '@acontplus/ng-components';
|
|
|
68
113
|
Loading spinner components for async operations.
|
|
69
114
|
|
|
70
115
|
```typescript
|
|
71
|
-
import {
|
|
116
|
+
import { Spinner } from '@acontplus/ng-components';
|
|
72
117
|
```
|
|
73
118
|
|
|
74
119
|
### Tables
|
|
75
120
|
|
|
76
|
-
- **
|
|
77
|
-
- **
|
|
121
|
+
- **DynamicTable**: Angular Material-based dynamic table with advanced features
|
|
122
|
+
- **TabulatorTable**: Advanced table with Tabulator.js integration
|
|
78
123
|
|
|
79
124
|
```typescript
|
|
80
|
-
import {
|
|
125
|
+
import { DynamicTable, TabulatorTable } from '@acontplus/ng-components';
|
|
81
126
|
```
|
|
82
127
|
|
|
83
128
|
#### Dynamic Table Features
|
|
@@ -145,7 +190,11 @@ const data = [
|
|
|
145
190
|
**Note**: Tabulator tables require `tabulator-tables` as a peer dependency:
|
|
146
191
|
|
|
147
192
|
```bash
|
|
193
|
+
# Using npm
|
|
148
194
|
npm install tabulator-tables
|
|
195
|
+
|
|
196
|
+
# Using pnpm
|
|
197
|
+
pnpm add tabulator-tables
|
|
149
198
|
```
|
|
150
199
|
|
|
151
200
|
#### Theme Integration
|
|
@@ -164,7 +213,7 @@ Row colors automatically adapt to light/dark themes using Material Design tokens
|
|
|
164
213
|
Dark/light mode toggle component for theme switching.
|
|
165
214
|
|
|
166
215
|
```typescript
|
|
167
|
-
import {
|
|
216
|
+
import { ThemeToggle } from '@acontplus/ng-components';
|
|
168
217
|
```
|
|
169
218
|
|
|
170
219
|
### Autocomplete Wrapper
|
|
@@ -177,12 +226,12 @@ import { AutocompleteWrapperComponent } from '@acontplus/ng-components';
|
|
|
177
226
|
|
|
178
227
|
## Directives
|
|
179
228
|
|
|
180
|
-
###
|
|
229
|
+
### ToUpperCase
|
|
181
230
|
|
|
182
231
|
Transforms input text to uppercase automatically.
|
|
183
232
|
|
|
184
233
|
```typescript
|
|
185
|
-
import {
|
|
234
|
+
import { ToUpperCase } from '@acontplus/ng-components';
|
|
186
235
|
```
|
|
187
236
|
|
|
188
237
|
## Pipes
|
|
@@ -205,12 +254,12 @@ import { StatusDisplayPipe } from '@acontplus/ng-components';
|
|
|
205
254
|
|
|
206
255
|
## Services
|
|
207
256
|
|
|
208
|
-
###
|
|
257
|
+
### AdvancedDialogService
|
|
209
258
|
|
|
210
|
-
Manages dialog creation and lifecycle.
|
|
259
|
+
Manages dialog creation and lifecycle with advanced features.
|
|
211
260
|
|
|
212
261
|
```typescript
|
|
213
|
-
import {
|
|
262
|
+
import { AdvancedDialogService } from '@acontplus/ng-components';
|
|
214
263
|
```
|
|
215
264
|
|
|
216
265
|
### OverlayService
|
|
@@ -221,12 +270,12 @@ Manages overlay components and positioning.
|
|
|
221
270
|
import { OverlayService } from '@acontplus/ng-components';
|
|
222
271
|
```
|
|
223
272
|
|
|
224
|
-
###
|
|
273
|
+
### ThemeSwitcher
|
|
225
274
|
|
|
226
275
|
Manages application theme (dark/light mode) with persistence.
|
|
227
276
|
|
|
228
277
|
```typescript
|
|
229
|
-
import {
|
|
278
|
+
import { ThemeSwitcher } from '@acontplus/ng-components';
|
|
230
279
|
```
|
|
231
280
|
|
|
232
281
|
### AutocompleteWrapperService
|
|
@@ -318,35 +367,3 @@ function getStatusStyle(status: string) {
|
|
|
318
367
|
- `@angular/core`: ^20.3.2
|
|
319
368
|
- `@angular/material`: ^20.2.5
|
|
320
369
|
- `tabulator-tables`: ^6.3.1
|
|
321
|
-
|
|
322
|
-
## Development
|
|
323
|
-
|
|
324
|
-
### Running Unit Tests
|
|
325
|
-
|
|
326
|
-
```bash
|
|
327
|
-
nx test ng-components
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
### Building
|
|
331
|
-
|
|
332
|
-
```bash
|
|
333
|
-
nx build ng-components
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
### Linting
|
|
337
|
-
|
|
338
|
-
```bash
|
|
339
|
-
nx lint ng-components
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
## License
|
|
343
|
-
|
|
344
|
-
MIT
|
|
345
|
-
|
|
346
|
-
## Author
|
|
347
|
-
|
|
348
|
-
Ivan Paz <ifer343@gmail.com>
|
|
349
|
-
|
|
350
|
-
## Repository
|
|
351
|
-
|
|
352
|
-
https://github.com/Acontplus-S-A-S/acontplus-libs
|