ngx-core-components 0.0.8 → 0.1.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 +193 -13
- package/barcodes/barcode/barcode.component.d.ts +19 -0
- package/barcodes/index.d.ts +5 -0
- package/barcodes/public-api.d.ts +2 -0
- package/barcodes/qr-code/qr-code.component.d.ts +17 -0
- package/buttons/button/button.component.d.ts +17 -0
- package/buttons/button-group/button-group.component.d.ts +8 -0
- package/buttons/chip/chip.component.d.ts +19 -0
- package/buttons/dropdown-button/dropdown-button.component.d.ts +21 -0
- package/buttons/index.d.ts +5 -0
- package/buttons/public-api.d.ts +9 -0
- package/buttons/split-button/split-button.component.d.ts +22 -0
- package/feedback/badge/badge.component.d.ts +13 -0
- package/feedback/index.d.ts +5 -0
- package/feedback/notification/notification.service.d.ts +39 -0
- package/feedback/progress-bar/progress-bar.component.d.ts +15 -0
- package/feedback/public-api.d.ts +8 -0
- package/feedback/skeleton/skeleton.component.d.ts +11 -0
- package/fesm2022/ngx-core-components-barcodes.mjs +222 -0
- package/fesm2022/ngx-core-components-barcodes.mjs.map +1 -0
- package/fesm2022/ngx-core-components-buttons.mjs +255 -0
- package/fesm2022/ngx-core-components-buttons.mjs.map +1 -0
- package/fesm2022/ngx-core-components-feedback.mjs +286 -0
- package/fesm2022/ngx-core-components-feedback.mjs.map +1 -0
- package/fesm2022/ngx-core-components-inputs.mjs +634 -1
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +407 -0
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -0
- package/fesm2022/ngx-core-components-navigation.mjs +184 -0
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -0
- package/fesm2022/ngx-core-components.mjs +6 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/inputs/color-picker/color-picker.component.d.ts +14 -0
- package/inputs/date-range-picker/date-range-picker.component.d.ts +24 -0
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +19 -0
- package/inputs/public-api.d.ts +8 -0
- package/inputs/rating/rating.component.d.ts +14 -0
- package/inputs/slider/slider.component.d.ts +26 -0
- package/inputs/switch/switch.component.d.ts +12 -0
- package/inputs/textarea/textarea.component.d.ts +18 -0
- package/inputs/time-picker/time-picker.component.d.ts +20 -0
- package/layout/accordion/accordion.component.d.ts +17 -0
- package/layout/card/card.component.d.ts +16 -0
- package/layout/index.d.ts +5 -0
- package/layout/public-api.d.ts +8 -0
- package/layout/splitter/splitter.component.d.ts +14 -0
- package/layout/stepper/stepper.component.d.ts +20 -0
- package/layout/tab-strip/tab-strip.component.d.ts +22 -0
- package/navigation/breadcrumb/breadcrumb.component.d.ts +14 -0
- package/navigation/index.d.ts +5 -0
- package/navigation/menu/menu.component.d.ts +20 -0
- package/navigation/public-api.d.ts +4 -0
- package/package.json +21 -1
- package/public-api.d.ts +10 -0
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
# ngx-core-components
|
|
2
2
|
|
|
3
|
-
Angular 19 / 20 / 21 component library
|
|
3
|
+
Angular 19 / 20 / 21 standalone component library with enterprise-ready UI building blocks including a full-featured **SVG Gantt Chart**, inputs, data grid, dialogs, charts, navigation, layout, feedback, and barcode components.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/ngx-core-components)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
10
|
+
- **Gantt chart** with task bars, dependencies, milestones, drag/resize, zoom, and hierarchy
|
|
11
|
+
- **Input controls** including text, dropdown, multi-select, autocomplete, date/time, slider, switch, rating, and color picker
|
|
12
|
+
- **Charts** including bar, line, pie, donut, and sparkline
|
|
13
|
+
- **Data presentation** with grid, tree view, and list view
|
|
14
|
+
- **Dialogs, tooltips, and popovers** for overlays and contextual UI
|
|
15
|
+
- **Buttons, chips, menus, breadcrumbs, tabs, cards, accordions, steppers, and splitters**
|
|
16
|
+
- **Feedback components** including badge, progress bar, skeleton, and notifications
|
|
17
|
+
- **Barcode and QR code generation** with no external runtime dependency
|
|
18
18
|
- **Fully themeable** via CSS custom properties
|
|
19
|
-
- **Zero runtime dependencies** — only Angular peer
|
|
19
|
+
- **Zero runtime dependencies** — only Angular peer dependencies
|
|
20
20
|
- **OnPush change detection** + Angular Signals
|
|
21
21
|
- **Standalone components** (no NgModules)
|
|
22
22
|
|
|
@@ -26,8 +26,110 @@ Angular 19 / 20 / 21 component library featuring a full-featured **SVG Gantt Cha
|
|
|
26
26
|
npm install ngx-core-components
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
## Entry Points
|
|
30
|
+
|
|
31
|
+
You can import from the primary package for convenience:
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { GanttChartComponent, TextBoxComponent, DataGridComponent } from 'ngx-core-components';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or use secondary entry points for more focused imports:
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { TextBoxComponent, DropdownComponent } from 'ngx-core-components/inputs';
|
|
41
|
+
import { BarChartComponent, GanttChartComponent } from 'ngx-core-components/charts';
|
|
42
|
+
import { DataGridComponent } from 'ngx-core-components/grid';
|
|
43
|
+
import { DialogService } from 'ngx-core-components/dialog';
|
|
44
|
+
import { ButtonComponent } from 'ngx-core-components/buttons';
|
|
45
|
+
import { CardComponent } from 'ngx-core-components/layout';
|
|
46
|
+
import { BadgeComponent } from 'ngx-core-components/feedback';
|
|
47
|
+
import { BreadcrumbComponent } from 'ngx-core-components/navigation';
|
|
48
|
+
import { TreeViewComponent, ListViewComponent } from 'ngx-core-components/views';
|
|
49
|
+
import { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Included Components
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
- `GanttChartComponent`
|
|
57
|
+
- `BarChartComponent`
|
|
58
|
+
- `LineChartComponent`
|
|
59
|
+
- `PieChartComponent`
|
|
60
|
+
- `SparklineComponent`
|
|
61
|
+
|
|
62
|
+
### Inputs
|
|
63
|
+
|
|
64
|
+
- `TextBoxComponent`
|
|
65
|
+
- `CheckboxComponent`
|
|
66
|
+
- `RadioGroupComponent`
|
|
67
|
+
- `DropdownComponent`
|
|
68
|
+
- `MultiSelectComponent`
|
|
69
|
+
- `AutocompleteComponent`
|
|
70
|
+
- `DatePickerComponent`
|
|
71
|
+
- `SliderComponent`
|
|
72
|
+
- `SwitchComponent`
|
|
73
|
+
- `RatingComponent`
|
|
74
|
+
- `NumericTextBoxComponent`
|
|
75
|
+
- `TextareaComponent`
|
|
76
|
+
- `ColorPickerComponent`
|
|
77
|
+
- `TimePickerComponent`
|
|
78
|
+
- `DateRangePickerComponent`
|
|
79
|
+
|
|
80
|
+
### Data Views
|
|
81
|
+
|
|
82
|
+
- `DataGridComponent`
|
|
83
|
+
- `TreeViewComponent`
|
|
84
|
+
- `ListViewComponent`
|
|
85
|
+
|
|
86
|
+
### Dialog and Overlay
|
|
87
|
+
|
|
88
|
+
- `DialogService`
|
|
89
|
+
- `DialogContainerComponent`
|
|
90
|
+
- `TooltipDirective`
|
|
91
|
+
- `PopoverComponent`
|
|
92
|
+
|
|
93
|
+
### Buttons and Actions
|
|
94
|
+
|
|
95
|
+
- `ButtonComponent`
|
|
96
|
+
- `ButtonGroupComponent`
|
|
97
|
+
- `ChipComponent`
|
|
98
|
+
- `ChipListComponent`
|
|
99
|
+
- `SplitButtonComponent`
|
|
100
|
+
- `DropDownButtonComponent`
|
|
101
|
+
|
|
102
|
+
### Layout
|
|
103
|
+
|
|
104
|
+
- `CardComponent`
|
|
105
|
+
- `TabStripComponent`
|
|
106
|
+
- `TabComponent`
|
|
107
|
+
- `AccordionComponent`
|
|
108
|
+
- `StepperComponent`
|
|
109
|
+
- `SplitterComponent`
|
|
110
|
+
|
|
111
|
+
### Feedback
|
|
112
|
+
|
|
113
|
+
- `BadgeComponent`
|
|
114
|
+
- `ProgressBarComponent`
|
|
115
|
+
- `SkeletonComponent`
|
|
116
|
+
- `NotificationService`
|
|
117
|
+
- `NotificationContainerComponent`
|
|
118
|
+
|
|
119
|
+
### Navigation
|
|
120
|
+
|
|
121
|
+
- `BreadcrumbComponent`
|
|
122
|
+
- `MenuComponent`
|
|
123
|
+
|
|
124
|
+
### Barcodes
|
|
125
|
+
|
|
126
|
+
- `QrCodeComponent`
|
|
127
|
+
- `BarcodeComponent`
|
|
128
|
+
|
|
29
129
|
## Quick Start
|
|
30
130
|
|
|
131
|
+
### Gantt Chart
|
|
132
|
+
|
|
31
133
|
```typescript
|
|
32
134
|
import { Component } from '@angular/core';
|
|
33
135
|
import { GanttChartComponent, GanttTask, GanttDependency, DependencyType } from 'ngx-core-components';
|
|
@@ -71,8 +173,73 @@ export class MyComponent {
|
|
|
71
173
|
}
|
|
72
174
|
```
|
|
73
175
|
|
|
176
|
+
### Form Controls
|
|
177
|
+
|
|
178
|
+
```typescript
|
|
179
|
+
import { Component, signal } from '@angular/core';
|
|
180
|
+
import { TextBoxComponent, DropdownComponent, type DropdownOption } from 'ngx-core-components';
|
|
181
|
+
|
|
182
|
+
@Component({
|
|
183
|
+
standalone: true,
|
|
184
|
+
imports: [TextBoxComponent, DropdownComponent],
|
|
185
|
+
template: `
|
|
186
|
+
<ngx-textbox
|
|
187
|
+
[value]="name()"
|
|
188
|
+
label="Full Name"
|
|
189
|
+
placeholder="Enter your name"
|
|
190
|
+
(valueChange)="name.set($event)"
|
|
191
|
+
/>
|
|
192
|
+
|
|
193
|
+
<ngx-dropdown
|
|
194
|
+
[options]="countries"
|
|
195
|
+
[value]="country()"
|
|
196
|
+
label="Country"
|
|
197
|
+
placeholder="Select country"
|
|
198
|
+
(valueChange)="country.set($event)"
|
|
199
|
+
/>
|
|
200
|
+
`,
|
|
201
|
+
})
|
|
202
|
+
export class MyFormComponent {
|
|
203
|
+
name = signal('');
|
|
204
|
+
country = signal<unknown>(null);
|
|
205
|
+
|
|
206
|
+
countries: DropdownOption[] = [
|
|
207
|
+
{ label: 'United States', value: 'us' },
|
|
208
|
+
{ label: 'Germany', value: 'de' },
|
|
209
|
+
{ label: 'Japan', value: 'jp' },
|
|
210
|
+
];
|
|
211
|
+
}
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Data Grid
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
import { Component } from '@angular/core';
|
|
218
|
+
import { DataGridComponent, type GridColumnDef } from 'ngx-core-components';
|
|
219
|
+
|
|
220
|
+
@Component({
|
|
221
|
+
standalone: true,
|
|
222
|
+
imports: [DataGridComponent],
|
|
223
|
+
template: `<ngx-data-grid [data]="rows" [columns]="columns" [pageSize]="5" />`,
|
|
224
|
+
})
|
|
225
|
+
export class MyGridComponent {
|
|
226
|
+
columns: GridColumnDef[] = [
|
|
227
|
+
{ field: 'id', title: 'ID', width: 80 },
|
|
228
|
+
{ field: 'name', title: 'Name', sortable: true },
|
|
229
|
+
{ field: 'status', title: 'Status' },
|
|
230
|
+
];
|
|
231
|
+
|
|
232
|
+
rows = [
|
|
233
|
+
{ id: 1, name: 'Alpha', status: 'Active' },
|
|
234
|
+
{ id: 2, name: 'Beta', status: 'Paused' },
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
```
|
|
238
|
+
|
|
74
239
|
## API
|
|
75
240
|
|
|
241
|
+
This README focuses on the primary Gantt API because it is the largest surface in the package. The demo application under `projects/demo` shows usage and API reference coverage for the other components.
|
|
242
|
+
|
|
76
243
|
### Inputs
|
|
77
244
|
|
|
78
245
|
| Input | Type | Default | Description |
|
|
@@ -104,7 +271,7 @@ export class MyComponent {
|
|
|
104
271
|
| `showTodayMarker` | `boolean` | `true` | Show today indicator line |
|
|
105
272
|
| `showGrid` | `boolean` | `true` | Show grid lines |
|
|
106
273
|
| `collapsible` | `boolean` | `true` | Allow tree collapse/expand |
|
|
107
|
-
| `snapTo` | `'
|
|
274
|
+
| `snapTo` | `'day' \| 'week' \| 'month'` | `'day'` | Snap granularity for drag and resize |
|
|
108
275
|
| `locale` | `string` | `'en-US'` | Locale for date formatting |
|
|
109
276
|
|
|
110
277
|
### GanttTask
|
|
@@ -134,11 +301,20 @@ ngx-gantt-chart {
|
|
|
134
301
|
--ngx-gantt-bar-progress-bg: #1e8449;
|
|
135
302
|
--ngx-gantt-today-color: #e74c3c;
|
|
136
303
|
--ngx-gantt-header-bg: #2c3e50;
|
|
137
|
-
--ngx-gantt-
|
|
304
|
+
--ngx-gantt-text: #ecf0f1;
|
|
138
305
|
}
|
|
139
306
|
```
|
|
140
307
|
|
|
141
|
-
|
|
308
|
+
Common Gantt custom properties include `--ngx-gantt-bg`, `--ngx-gantt-border`, `--ngx-gantt-grid-line`, `--ngx-gantt-header-bg`, `--ngx-gantt-text`, `--ngx-gantt-bar-bg`, `--ngx-gantt-bar-progress-bg`, and `--ngx-gantt-today-color`.
|
|
309
|
+
|
|
310
|
+
Other component groups expose their own CSS variable namespaces as well:
|
|
311
|
+
|
|
312
|
+
- Inputs: `--ngx-input-*`
|
|
313
|
+
- Charts: `--ngx-chart-*`
|
|
314
|
+
- Grid: `--ngx-grid-*`
|
|
315
|
+
- Tree/List: `--ngx-tree-*`, `--ngx-list-*`
|
|
316
|
+
- Tooltip/Popover: `--ngx-tooltip-*`, `--ngx-popover-*`
|
|
317
|
+
- Buttons and chips: `--ngx-btn-*`, `--ngx-chip-*`
|
|
142
318
|
|
|
143
319
|
## Public Methods
|
|
144
320
|
|
|
@@ -153,6 +329,10 @@ this.gantt.expandAll();
|
|
|
153
329
|
this.gantt.collapseAll();
|
|
154
330
|
```
|
|
155
331
|
|
|
332
|
+
## Demo Application
|
|
333
|
+
|
|
334
|
+
The repository includes a demo app under `projects/demo` covering live examples, how-to snippets, and API reference tables for the library components.
|
|
335
|
+
|
|
156
336
|
## License
|
|
157
337
|
|
|
158
338
|
MIT
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnChanges, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BarcodeComponent implements OnChanges {
|
|
4
|
+
svgRef: ElementRef<SVGElement>;
|
|
5
|
+
value: import("@angular/core").InputSignal<string>;
|
|
6
|
+
label: import("@angular/core").InputSignal<string>;
|
|
7
|
+
height: import("@angular/core").InputSignal<number>;
|
|
8
|
+
barWidth: import("@angular/core").InputSignal<number>;
|
|
9
|
+
foreground: import("@angular/core").InputSignal<string>;
|
|
10
|
+
background: import("@angular/core").InputSignal<string>;
|
|
11
|
+
svgWidth: number;
|
|
12
|
+
ngOnChanges(): void;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
private draw;
|
|
15
|
+
private encode;
|
|
16
|
+
private charPattern;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeComponent, "ngx-barcode", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "barWidth": { "alias": "barWidth"; "required": false; "isSignal": true; }; "foreground": { "alias": "foreground"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class QrCodeComponent implements OnChanges {
|
|
4
|
+
canvasRef: ElementRef<HTMLCanvasElement>;
|
|
5
|
+
value: import("@angular/core").InputSignal<string>;
|
|
6
|
+
size: import("@angular/core").InputSignal<number>;
|
|
7
|
+
label: import("@angular/core").InputSignal<string>;
|
|
8
|
+
foreground: import("@angular/core").InputSignal<string>;
|
|
9
|
+
background: import("@angular/core").InputSignal<string>;
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
private draw;
|
|
13
|
+
private generateQrMatrix;
|
|
14
|
+
private isFunctionModule;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QrCodeComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QrCodeComponent, "ngx-qr-code", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "foreground": { "alias": "foreground"; "required": false; "isSignal": true; }; "background": { "alias": "background"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost' | 'link' | 'success' | 'warning' | 'info';
|
|
3
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type ButtonShape = 'rectangle' | 'rounded' | 'pill' | 'square';
|
|
5
|
+
export declare class ButtonComponent {
|
|
6
|
+
variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
7
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
8
|
+
shape: import("@angular/core").InputSignal<ButtonShape>;
|
|
9
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
prefixIcon: import("@angular/core").InputSignal<string>;
|
|
12
|
+
suffixIcon: import("@angular/core").InputSignal<string>;
|
|
13
|
+
clicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
14
|
+
btnClass(): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ngx-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ButtonGroupSelectionMode = 'none' | 'single' | 'multiple';
|
|
3
|
+
export declare class ButtonGroupComponent {
|
|
4
|
+
vertical: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "ngx-button-group", never, { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ChipVariant = 'default' | 'info' | 'success' | 'warning' | 'error' | 'danger' | 'outlined';
|
|
3
|
+
export declare class ChipComponent {
|
|
4
|
+
variant: import("@angular/core").InputSignal<ChipVariant>;
|
|
5
|
+
icon: import("@angular/core").InputSignal<string>;
|
|
6
|
+
selected: import("@angular/core").InputSignal<boolean>;
|
|
7
|
+
removable: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
removed: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
label: import("@angular/core").InputSignal<string>;
|
|
11
|
+
selectable: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipComponent, "ngx-chip", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; }, { "removed": "removed"; }, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
15
|
+
export declare class ChipListComponent {
|
|
16
|
+
wrap: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipListComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChipListComponent, "ngx-chip-list", never, { "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonVariant, ButtonSize } from '../button/button.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface DropDownButtonItem {
|
|
4
|
+
label?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
separator?: boolean;
|
|
9
|
+
variant?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class DropDownButtonComponent {
|
|
12
|
+
variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
13
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
14
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
items: import("@angular/core").InputSignal<DropDownButtonItem[]>;
|
|
16
|
+
open: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
itemClicked: import("@angular/core").OutputEmitterRef<DropDownButtonItem>;
|
|
18
|
+
toggle(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownButtonComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropDownButtonComponent, "ngx-dropdown-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "itemClicked": "itemClicked"; }, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ButtonComponent } from './button/button.component';
|
|
2
|
+
export type { ButtonVariant, ButtonSize, ButtonShape } from './button/button.component';
|
|
3
|
+
export { ButtonGroupComponent } from './button-group/button-group.component';
|
|
4
|
+
export { ChipComponent, ChipListComponent } from './chip/chip.component';
|
|
5
|
+
export type { ChipVariant } from './chip/chip.component';
|
|
6
|
+
export { SplitButtonComponent } from './split-button/split-button.component';
|
|
7
|
+
export type { SplitButtonItem } from './split-button/split-button.component';
|
|
8
|
+
export { DropDownButtonComponent } from './dropdown-button/dropdown-button.component';
|
|
9
|
+
export type { DropDownButtonItem } from './dropdown-button/dropdown-button.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonVariant, ButtonSize } from '../button/button.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface SplitButtonItem {
|
|
4
|
+
label?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
separator?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class SplitButtonComponent {
|
|
11
|
+
variant: import("@angular/core").InputSignal<ButtonVariant>;
|
|
12
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
13
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
loading: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
items: import("@angular/core").InputSignal<SplitButtonItem[]>;
|
|
16
|
+
open: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
mainClicked: import("@angular/core").OutputEmitterRef<MouseEvent>;
|
|
18
|
+
itemClicked: import("@angular/core").OutputEmitterRef<SplitButtonItem>;
|
|
19
|
+
toggle(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitButtonComponent, "ngx-split-button", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "mainClicked": "mainClicked"; "itemClicked": "itemClicked"; }, never, ["*"], true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type BadgeVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
3
|
+
export type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
4
|
+
export declare class BadgeComponent {
|
|
5
|
+
content: import("@angular/core").InputSignal<string | number>;
|
|
6
|
+
variant: import("@angular/core").InputSignal<BadgeVariant>;
|
|
7
|
+
dot: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
positioned: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
position: import("@angular/core").InputSignal<BadgePosition>;
|
|
10
|
+
ariaLabel: import("@angular/core").InputSignal<string>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "ngx-badge", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "dot": { "alias": "dot"; "required": false; "isSignal": true; }; "positioned": { "alias": "positioned"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ApplicationRef, EnvironmentInjector, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type NotificationType = 'success' | 'error' | 'info' | 'warning';
|
|
4
|
+
export type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
5
|
+
export interface NotificationOptions {
|
|
6
|
+
message: string;
|
|
7
|
+
type?: NotificationType;
|
|
8
|
+
title?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
position?: NotificationPosition;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationItem extends Required<NotificationOptions> {
|
|
14
|
+
id: number;
|
|
15
|
+
visible: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class NotificationContainerComponent implements OnInit {
|
|
18
|
+
items: import("@angular/core").WritableSignal<NotificationItem[]>;
|
|
19
|
+
icons: Record<NotificationType, string>;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
add(opts: NotificationOptions): number;
|
|
22
|
+
remove(id: number): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationContainerComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationContainerComponent, "ngx-notification-container", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
export declare class NotificationService {
|
|
27
|
+
private appRef;
|
|
28
|
+
private injector;
|
|
29
|
+
private containers;
|
|
30
|
+
constructor(appRef: ApplicationRef, injector: EnvironmentInjector);
|
|
31
|
+
private getContainer;
|
|
32
|
+
show(opts: NotificationOptions): number;
|
|
33
|
+
success(message: string, title?: string, opts?: Partial<NotificationOptions>): number;
|
|
34
|
+
error(message: string, title?: string, opts?: Partial<NotificationOptions>): number;
|
|
35
|
+
info(message: string, title?: string, opts?: Partial<NotificationOptions>): number;
|
|
36
|
+
warning(message: string, title?: string, opts?: Partial<NotificationOptions>): number;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ProgressVariant = 'primary' | 'success' | 'danger' | 'warning' | 'info';
|
|
3
|
+
export declare class ProgressBarComponent {
|
|
4
|
+
value: import("@angular/core").InputSignal<number>;
|
|
5
|
+
min: import("@angular/core").InputSignal<number>;
|
|
6
|
+
max: import("@angular/core").InputSignal<number>;
|
|
7
|
+
label: import("@angular/core").InputSignal<string>;
|
|
8
|
+
variant: import("@angular/core").InputSignal<ProgressVariant>;
|
|
9
|
+
height: import("@angular/core").InputSignal<number>;
|
|
10
|
+
showValue: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
indeterminate: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
get clamp(): () => number;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "ngx-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { BadgeComponent } from './badge/badge.component';
|
|
2
|
+
export type { BadgeVariant, BadgePosition } from './badge/badge.component';
|
|
3
|
+
export { ProgressBarComponent } from './progress-bar/progress-bar.component';
|
|
4
|
+
export type { ProgressVariant } from './progress-bar/progress-bar.component';
|
|
5
|
+
export { SkeletonComponent } from './skeleton/skeleton.component';
|
|
6
|
+
export type { SkeletonShape } from './skeleton/skeleton.component';
|
|
7
|
+
export { NotificationService, NotificationContainerComponent } from './notification/notification.service';
|
|
8
|
+
export type { NotificationOptions, NotificationItem, NotificationType, NotificationPosition } from './notification/notification.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type SkeletonShape = 'text' | 'circle' | 'rect' | 'card';
|
|
3
|
+
export declare class SkeletonComponent {
|
|
4
|
+
shape: import("@angular/core").InputSignal<SkeletonShape>;
|
|
5
|
+
size: import("@angular/core").InputSignal<number>;
|
|
6
|
+
width: import("@angular/core").InputSignal<string>;
|
|
7
|
+
height: import("@angular/core").InputSignal<string>;
|
|
8
|
+
lines: import("@angular/core").InputSignal<string[]>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonComponent, "ngx-skeleton", never, { "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "lines": { "alias": "lines"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|