ngx-core-components 0.3.31 → 0.3.33
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 +1079 -601
- package/barcodes/barcode/barcode-encoding.d.ts +1 -0
- package/barcodes/barcode/barcode.component.d.ts +4 -4
- package/barcodes/public-api.d.ts +1 -0
- package/charts/adjacency-matrix/adjacency-matrix.component.d.ts +4 -1
- package/charts/agentic-cognitive-topology/agentic-cognitive-topology.component.d.ts +5 -0
- package/charts/arc-diagram/arc-diagram.component.d.ts +7 -0
- package/charts/area-chart/area-chart.component.d.ts +5 -0
- package/charts/area-range-chart/area-range-chart.component.d.ts +4 -0
- package/charts/area-spline-range-chart/area-spline-range-chart.component.d.ts +4 -0
- package/charts/bar-chart/bar-chart.component.d.ts +5 -1
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +6 -0
- package/charts/bubble-chart/bubble-chart.component.d.ts +4 -0
- package/charts/bullet-chart/bullet-chart.component.d.ts +3 -0
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +3 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +4 -0
- package/charts/chord-diagram/chord-diagram.component.d.ts +7 -1
- package/charts/column-pyramid-chart/column-pyramid-chart.component.d.ts +4 -1
- package/charts/column-range-chart/column-range-chart.component.d.ts +5 -1
- package/charts/combo-chart/combo-chart.component.d.ts +4 -0
- package/charts/dependency-wheel/dependency-wheel.component.d.ts +7 -1
- package/charts/dumbbell-chart/dumbbell-chart.component.d.ts +5 -1
- package/charts/funnel-chart/funnel-chart.component.d.ts +4 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +4 -0
- package/charts/geo-heatmap/geo-heatmap.component.d.ts +4 -1
- package/charts/heatmap-chart/heatmap-chart.component.d.ts +4 -0
- package/charts/heikin-ashi-chart/heikin-ashi-chart.component.d.ts +4 -0
- package/charts/histogram/histogram.component.d.ts +3 -0
- package/charts/hlc-chart/hlc-chart.component.d.ts +5 -0
- package/charts/hollow-candlestick-chart/hollow-candlestick-chart.component.d.ts +4 -0
- package/charts/kagi-chart/kagi-chart.component.d.ts +4 -1
- package/charts/line-chart/line-chart.component.d.ts +2 -0
- package/charts/lollipop-chart/lollipop-chart.component.d.ts +5 -1
- package/charts/map-bubble/map-bubble.component.d.ts +4 -1
- package/charts/map-choropleth/map-choropleth.component.d.ts +9 -1
- package/charts/map-line-point/map-line-point.component.d.ts +8 -2
- package/charts/marimekko-chart/marimekko-chart.component.d.ts +25 -1
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +6 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +7 -0
- package/charts/network-graph/network-graph.component.d.ts +7 -0
- package/charts/ohlc-chart/ohlc-chart.component.d.ts +4 -0
- package/charts/org-chart/org-chart.component.d.ts +5 -0
- package/charts/packed-bubble-chart/packed-bubble-chart.component.d.ts +3 -0
- package/charts/parallel-coordinates/parallel-coordinates.component.d.ts +3 -0
- package/charts/pareto-chart/pareto-chart.component.d.ts +4 -1
- package/charts/pictorial-chart/pictorial-chart.component.d.ts +3 -0
- package/charts/pie-chart/pie-chart.component.d.ts +9 -0
- package/charts/point-figure-chart/point-figure-chart.component.d.ts +4 -1
- package/charts/polar-area-chart/polar-area-chart.component.d.ts +11 -0
- package/charts/pyramid-chart/pyramid-chart.component.d.ts +5 -0
- package/charts/radar-chart/radar-chart.component.d.ts +5 -3
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +4 -0
- package/charts/range-bar-chart/range-bar-chart.component.d.ts +4 -0
- package/charts/renko-chart/renko-chart.component.d.ts +4 -1
- package/charts/ridgeline-chart/ridgeline-chart.component.d.ts +11 -1
- package/charts/sankey-chart/sankey-chart.component.d.ts +7 -1
- package/charts/scatter-plot/scatter-plot.component.d.ts +4 -0
- package/charts/shared/chart-accessible-mark.directive.d.ts +9 -0
- package/charts/shared/chart-export-menu.component.d.ts +7 -0
- package/charts/shared/chart-skeleton.component.d.ts +1 -1
- package/charts/slope-chart/slope-chart.component.d.ts +5 -1
- package/charts/step-line-chart/step-line-chart.component.d.ts +5 -0
- package/charts/sunburst-chart/sunburst-chart.component.d.ts +6 -3
- package/charts/timeline-chart/timeline-chart.component.d.ts +2 -0
- package/charts/treemap-chart/treemap-chart.component.d.ts +6 -4
- package/charts/variable-pie-chart/variable-pie-chart.component.d.ts +4 -0
- package/charts/variwide-chart/variwide-chart.component.d.ts +8 -1
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +8 -0
- package/charts/wind-rose/wind-rose.component.d.ts +3 -0
- package/charts/word-cloud/word-cloud.component.d.ts +3 -0
- package/fesm2022/ngx-core-components-barcodes.mjs +196 -42
- package/fesm2022/ngx-core-components-barcodes.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +4949 -2863
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +2145 -567
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-i18n.mjs +163 -35
- package/fesm2022/ngx-core-components-i18n.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +297 -39
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-layout.mjs +89 -66
- package/fesm2022/ngx-core-components-layout.mjs.map +1 -1
- package/fesm2022/ngx-core-components-testing.mjs +30 -0
- package/fesm2022/ngx-core-components-testing.mjs.map +1 -0
- package/fesm2022/ngx-core-components-views.mjs +69 -29
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +2 -2
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/grid/data-grid/components/grid-filter-builder/grid-filter-builder.component.d.ts +6 -1
- package/grid/data-grid/data-grid.component.d.ts +20 -1
- package/grid/data-grid/grid-data-source.d.ts +22 -0
- package/grid/data-grid/services/grid-state.service.d.ts +7 -0
- package/grid/public-api.d.ts +6 -3
- package/i18n/ngx-core-i18n.d.ts +128 -1
- package/i18n/public-api.d.ts +1 -1
- package/inputs/form-builder/form-builder.component.d.ts +17 -1
- package/layout/tab-strip/tab-strip.component.d.ts +2 -0
- package/package.json +13 -9
- package/public-api.d.ts +8 -7
- package/testing/component-test-harness.d.ts +10 -0
- package/testing/index.d.ts +5 -0
- package/testing/public-api.d.ts +1 -0
- package/views/kanban/kanban.component.d.ts +1 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ngx-core-components
|
|
2
2
|
|
|
3
|
-
Angular 19
|
|
3
|
+
Angular 19–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)
|
|
@@ -50,7 +50,268 @@ import { TreeViewComponent, ListViewComponent } from 'ngx-core-components/views'
|
|
|
50
50
|
import { QrCodeComponent, BarcodeComponent } from 'ngx-core-components/barcodes';
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Integration Guides
|
|
54
|
+
|
|
55
|
+
The inputs that implement `ControlValueAccessor` work with Angular Reactive Forms.
|
|
56
|
+
Import `ReactiveFormsModule` and the control from its secondary entry point:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { Component } from '@angular/core';
|
|
60
|
+
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
61
|
+
import { TextBoxComponent } from 'ngx-core-components/inputs';
|
|
62
|
+
|
|
63
|
+
@Component({
|
|
64
|
+
standalone: true,
|
|
65
|
+
imports: [ReactiveFormsModule, TextBoxComponent],
|
|
66
|
+
template: `
|
|
67
|
+
<form [formGroup]="form">
|
|
68
|
+
<ngx-textbox formControlName="email" label="Email" type="email" />
|
|
69
|
+
</form>
|
|
70
|
+
`,
|
|
71
|
+
})
|
|
72
|
+
export class ProfileFormComponent {
|
|
73
|
+
readonly form = new FormGroup({
|
|
74
|
+
email: new FormControl('', { nonNullable: true }),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The library can be rendered in Angular SSR applications. Guard browser-only
|
|
80
|
+
consumer code (for example clipboard, storage, or direct DOM work) with Angular's
|
|
81
|
+
platform check:
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
85
|
+
import { inject, Injectable, PLATFORM_ID } from '@angular/core';
|
|
86
|
+
|
|
87
|
+
@Injectable({ providedIn: 'root' })
|
|
88
|
+
export class BrowserFeature {
|
|
89
|
+
private readonly platformId = inject(PLATFORM_ID);
|
|
90
|
+
|
|
91
|
+
copyText(text: string): Promise<void> | undefined {
|
|
92
|
+
if (!isPlatformBrowser(this.platformId)) return undefined;
|
|
93
|
+
return navigator.clipboard.writeText(text);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
For global tokens, presets, and generated CSS, see the
|
|
99
|
+
[theming guide](../../THEMING.md). The focused imports above demonstrate
|
|
100
|
+
tree-shakable secondary entry points.
|
|
101
|
+
|
|
102
|
+
## Accessible Charts, Remote Grids, and Form Flows
|
|
103
|
+
|
|
104
|
+
Bar charts expose an accessible summary and a native data-table alternative. A
|
|
105
|
+
custom label can replace the generated summary:
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<ngx-bar-chart [categories]="quarters" [series]="revenue" ariaLabel="Quarterly revenue by region" />
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Line charts expose a named SVG summary and keyboard-operable, labelled data
|
|
112
|
+
points. Pie and donut slices expose keyboard-focusable graphics with accessible
|
|
113
|
+
labels; focusing a slice reveals the same value tooltip as pointer hover. Both
|
|
114
|
+
charts honor reduced-motion preferences. Text can be customized via the
|
|
115
|
+
`chart.lineChartDescription`, `chart.lineChartNoData`,
|
|
116
|
+
`chart.linePointDescription`, and `chart.pieSliceDescription` translations.
|
|
117
|
+
|
|
118
|
+
Scatter plots expose a localized summary and keyboard-focusable data points.
|
|
119
|
+
Focusing a point reveals its tooltip; its accessible name includes the point
|
|
120
|
+
label, group, and formatted axis values. Scatter-point animations honor reduced
|
|
121
|
+
motion. Customize this text with `chart.scatterChartDescription` and
|
|
122
|
+
`chart.scatterPointDescription`.
|
|
123
|
+
|
|
124
|
+
Waterfall bars and sunburst slices expose localized accessible names and focus
|
|
125
|
+
tooltips. Treemap cells are keyboard-operable buttons with focus feedback and
|
|
126
|
+
the same tooltip and activation behavior as pointer interaction. Treemap and
|
|
127
|
+
sunburst exports use the shared localized, keyboard-accessible chart export menu.
|
|
128
|
+
Heatmap cells expose row/column/value labels, focus tooltips, and keyboard
|
|
129
|
+
activation through the same cell-selection output as pointer clicks. The
|
|
130
|
+
`chart.dataMarkDescription` and `chart.waterfallMarkDescription` translations
|
|
131
|
+
customize the generated data-mark names. Bubble points expose localized names
|
|
132
|
+
including their label, group, coordinates, and size, with tooltips on focus;
|
|
133
|
+
customize them with `chart.bubblePointDescription`. Lollipop marks are
|
|
134
|
+
keyboard-focusable with localized data names, focus feedback, and tooltips.
|
|
135
|
+
Dumbbell rows expose both endpoint values in their accessible names, with focus
|
|
136
|
+
feedback and the same tooltip as pointer hover. Range bars expose keyboard-
|
|
137
|
+
operable buttons whose activation emits the existing `barClick` output.
|
|
138
|
+
Pyramid segments are named, keyboard-operable buttons with visible focus
|
|
139
|
+
feedback and focus-triggered tooltips. Funnel stages expose localized names,
|
|
140
|
+
keyboard focus, visible focus feedback, and the existing stage tooltip.
|
|
141
|
+
Column-range marks expose series/category names with localized low/high values,
|
|
142
|
+
focus feedback, and the existing tooltip on keyboard focus.
|
|
143
|
+
Box-plot summaries expose all five statistical values to keyboard users; outlier
|
|
144
|
+
marks are independently named and reveal their value tooltip on focus.
|
|
145
|
+
Bullet charts make their actual-value and target marks individually named and
|
|
146
|
+
keyboard-focusable. Radial progress rings expose their percentage and actual
|
|
147
|
+
versus target values in an accessible name, and show the existing tooltip on
|
|
148
|
+
focus. Marimekko segments expose column/category names, values, and a focus-
|
|
149
|
+
triggered tooltip with visible keyboard focus feedback.
|
|
150
|
+
Polar-area slices expose localized names, focus tooltips, and keyboard activation
|
|
151
|
+
through the existing `sliceClick` output. Radar points expose localized series,
|
|
152
|
+
category, and value names with focus-triggered tooltips. Column-pyramid marks
|
|
153
|
+
expose their series, category, and value with keyboard focus feedback and tooltips.
|
|
154
|
+
Pareto bars and cumulative-percentage points expose their values in localized
|
|
155
|
+
accessible names and show the existing tooltip on focus.
|
|
156
|
+
Variwide columns expose localized height, width, and width-share descriptions
|
|
157
|
+
with visible keyboard focus feedback and focus tooltips.
|
|
158
|
+
Combo-chart bars and line markers expose localized category, series, and
|
|
159
|
+
axis-value names and reveal the combined category tooltip when focused.
|
|
160
|
+
Area-chart markers expose localized category and series names with their values
|
|
161
|
+
and reveal the category tooltip on keyboard focus.
|
|
162
|
+
Step-line markers offer the same localized description and focus tooltip, and
|
|
163
|
+
support Enter/Space activation through the existing point-click output.
|
|
164
|
+
Slope-chart series expose their start, end, and change values in localized,
|
|
165
|
+
keyboard-focusable descriptions and show their detailed tooltip on focus.
|
|
166
|
+
Variable-pie slices expose localized names with value, share, and radius; nested
|
|
167
|
+
donut slices expose ring and value descriptions and support keyboard activation.
|
|
168
|
+
Gauge charts expose a keyboard-focusable accessible summary of the metric, value,
|
|
169
|
+
and range and reveal their tooltip when focused.
|
|
170
|
+
Candlestick bodies and OHLC intervals expose accessible date and OHLC values,
|
|
171
|
+
visible focus feedback, and keyboard-focus tooltips.
|
|
172
|
+
Hollow candlesticks provide the same data access, while Heikin-Ashi candles
|
|
173
|
+
announce their calculated values and expose original/candle values on focus.
|
|
174
|
+
Ridgeline distributions expose sample count, median, and range as accessible
|
|
175
|
+
focus targets and reveal their statistics tooltip on focus.
|
|
176
|
+
Sankey nodes and links expose localized keyboard-accessible names and focus
|
|
177
|
+
tooltips. Timeline events can be focused and activated with Enter or Space;
|
|
178
|
+
their accessible names include category, status, and start/end dates.
|
|
179
|
+
Histogram bins expose their numeric ranges, frequencies, and percentages to
|
|
180
|
+
keyboard users and reveal the bin tooltip on focus.
|
|
181
|
+
Wind-rose sectors expose direction, speed-bin, frequency, and cumulative
|
|
182
|
+
frequency values with visible keyboard focus and the matching tooltip.
|
|
183
|
+
Pictorial progress icons expose their threshold and fill percentage with
|
|
184
|
+
keyboard focus and a focus-triggered tooltip. Packed bubbles announce each
|
|
185
|
+
label, group, and value and show the matching tooltip on focus.
|
|
186
|
+
Adjacency-matrix cells announce their source, target, and connection weight and
|
|
187
|
+
show the matching tooltip on focus. Organization-chart cards are keyboard-
|
|
188
|
+
activatable, and each expand/collapse handle exposes its expanded state and
|
|
189
|
+
supports Enter/Space.
|
|
190
|
+
Map bubbles and map points expose labels, coordinates, values, and groups;
|
|
191
|
+
geographical route segments expose their endpoints. Each can be focused to
|
|
192
|
+
show its matching tooltip.
|
|
193
|
+
Calendar heatmap days are individually named, keyboard-focusable buttons that
|
|
194
|
+
show their date/value tooltip on focus and emit the existing cell selection on
|
|
195
|
+
Enter or Space. Word-cloud terms expose their text and weight and show their
|
|
196
|
+
tooltip on keyboard focus.
|
|
197
|
+
|
|
198
|
+
Use `GridRemoteDataController` for paged or server-filtered data. It exposes signal
|
|
199
|
+
state for rows, totals, loading, and errors; a newer request cancels and supersedes
|
|
200
|
+
an older request:
|
|
201
|
+
|
|
202
|
+
```typescript
|
|
203
|
+
const controller = new GridRemoteDataController<Customer>();
|
|
204
|
+
const source: GridDataSource<Customer> = {
|
|
205
|
+
load: async (request, signal) => {
|
|
206
|
+
const response = await fetchCustomers(request, signal);
|
|
207
|
+
return { items: response.items, total: response.total };
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
await controller.load(source, {
|
|
212
|
+
page: 1,
|
|
213
|
+
pageSize: 25,
|
|
214
|
+
sort: null,
|
|
215
|
+
filters: [],
|
|
216
|
+
group: null,
|
|
217
|
+
});
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Grid saved views use versioned JSON and reject malformed or unsupported schemas
|
|
221
|
+
when imported. `FormBuilderField.formStep` groups fields into steps, and an optional
|
|
222
|
+
`asyncValidator` returns `null` when valid or a message to show next to the field:
|
|
223
|
+
|
|
224
|
+
```typescript
|
|
225
|
+
{
|
|
226
|
+
key: 'username',
|
|
227
|
+
label: 'Username',
|
|
228
|
+
formStep: 0,
|
|
229
|
+
asyncValidator: async (value) =>
|
|
230
|
+
(await usernameAvailable(String(value))) ? null : 'Username is unavailable',
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Field conditions can show, hide, enable, or disable fields based on typed field
|
|
235
|
+
values. Missing condition references and dependency cycles are announced above the
|
|
236
|
+
form and block validation/submission until the schema is corrected.
|
|
237
|
+
|
|
238
|
+
With `[showColumnChooser]="true"`, the grid exposes labelled controls to toggle
|
|
239
|
+
column visibility, pin columns to either side, and move columns left or right
|
|
240
|
+
without drag-and-drop. Keyboard users can Tab to each action and use the native
|
|
241
|
+
button controls; Escape closes the chooser and restores focus to its trigger.
|
|
242
|
+
Selectable grids give row checkboxes accessible names and announce the selected
|
|
243
|
+
row count to screen readers. With `dir="rtl"`, grid arrows and Kanban card
|
|
244
|
+
movement follow the visual left/right direction. When `[keyboardNavigation]="true"`, the labelled grid
|
|
245
|
+
region can receive focus and arrow keys move focus between cells. Tab moves
|
|
246
|
+
between cells but exits the grid at either end; toolbar buttons and other
|
|
247
|
+
interactive controls retain their native key behavior. Home and End move to the
|
|
248
|
+
first and last cell in the current row; Ctrl+Home and Ctrl+End move to the first
|
|
249
|
+
and last cells in the grid. Filter and context
|
|
250
|
+
popovers receive focus when opened and return focus to their trigger or cell on
|
|
251
|
+
Escape. The context menu uses menu/menuitem semantics, supports
|
|
252
|
+
ArrowUp/ArrowDown and Home/End navigation, and returns focus to its source cell
|
|
253
|
+
on Escape. The Advanced Filter Builder is exposed as a labelled modal dialog with
|
|
254
|
+
focus trapping and Escape dismissal, and restores focus to its trigger when
|
|
255
|
+
closed. Grid toolbar, grouping, filter, export, and row-action labels are
|
|
256
|
+
provided by the `grid` translations in `NGX_CORE_I18N`.
|
|
257
|
+
|
|
258
|
+
The barcode component renders standards-compliant Code 128-B for printable ASCII
|
|
259
|
+
values (space through `~`), including the weighted checksum. Unsupported input
|
|
260
|
+
produces an accessible error instead of a pseudo-barcode. The library test suite
|
|
261
|
+
also decodes generated module patterns with ZXing, a development-only dependency;
|
|
262
|
+
the published component has no added runtime dependency.
|
|
263
|
+
|
|
264
|
+
Financial chart descriptions are locale-overridable through
|
|
265
|
+
`chart.ohlcMarkDescription`, `chart.hlcMarkDescription`, and
|
|
266
|
+
`chart.heikinAshiMarkDescription` in `provideNgxI18n`; Renko brick names use the
|
|
267
|
+
`chart.renkoMarkDescription` callback, Point & Figure marks use
|
|
268
|
+
`chart.pointFigureMarkDescription`, and Kagi segments use
|
|
269
|
+
`chart.kagiMarkDescription`; area-range boundaries use
|
|
270
|
+
`chart.areaRangeMarkDescription`. HLC marks expose keyboard-focusable tick
|
|
271
|
+
areas; Renko bricks, Point & Figure cells, Kagi segments, and area-range
|
|
272
|
+
boundaries are individually focusable with visible focus feedback and
|
|
273
|
+
focus-triggered tooltips.
|
|
274
|
+
Sankey nodes and links use `chart.sankeyNodeDescription` and
|
|
275
|
+
`chart.sankeyLinkDescription`; timeline event names use
|
|
276
|
+
`chart.timelineEventDescription`. Sankey marks expose node/link flow values and
|
|
277
|
+
focus tooltips. Timeline events expose category, status, and date details and
|
|
278
|
+
activate the existing event output with Enter or Space. Histogram bin names can
|
|
279
|
+
be localized with `chart.histogramBinDescription`.
|
|
280
|
+
Wind-rose descriptions can be localized with `chart.windRoseBinDescription`.
|
|
281
|
+
Calendar-cell and word-cloud descriptions can be localized with
|
|
282
|
+
`chart.calendarHeatmapCellDescription` and `chart.wordCloudMarkDescription`.
|
|
283
|
+
Pictorial-icon and packed-bubble descriptions can be localized with
|
|
284
|
+
`chart.pictorialIconDescription` and `chart.packedBubbleMarkDescription`.
|
|
285
|
+
Adjacency-matrix cells use `chart.adjacencyMatrixCellDescription`;
|
|
286
|
+
organization-chart employee names and expand/collapse labels use
|
|
287
|
+
`chart.orgChartNodeDescription` and `chart.orgChartToggleDescription`.
|
|
288
|
+
Geographic bubble, point, and route descriptions use
|
|
289
|
+
`chart.mapBubbleDescription`, `chart.mapPointDescription`, and
|
|
290
|
+
`chart.mapLineDescription`.
|
|
291
|
+
|
|
292
|
+
`provideNgxI18n` accepts nested partial translations, merges them with the English
|
|
293
|
+
fallback, and is exported alongside `DeepPartial` for locale definitions from
|
|
294
|
+
`ngx-core-components/i18n`.
|
|
295
|
+
|
|
296
|
+
Consumer tests can import `NgxComponentTestHarness` from
|
|
297
|
+
`ngx-core-components/testing` to set component inputs and query rendered elements
|
|
298
|
+
without depending on private component internals:
|
|
299
|
+
|
|
300
|
+
```typescript
|
|
301
|
+
import { NgxComponentTestHarness } from 'ngx-core-components/testing';
|
|
302
|
+
|
|
303
|
+
const fixture = TestBed.createComponent(MyComponent);
|
|
304
|
+
const harness = new NgxComponentTestHarness(fixture);
|
|
305
|
+
harness.setInput('disabled', true);
|
|
306
|
+
harness.detectChanges();
|
|
307
|
+
expect(harness.query('button')?.hasAttribute('disabled')).toBeTrue();
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## Component Highlights
|
|
311
|
+
|
|
312
|
+
This is a representative component index, not an exhaustive catalogue. The root
|
|
313
|
+
[README](../../README.md) is the source of truth for the complete component list
|
|
314
|
+
by public secondary entry point, including i18n and testing.
|
|
54
315
|
|
|
55
316
|
### Charts
|
|
56
317
|
|
|
@@ -151,30 +412,46 @@ import { GanttChartComponent, GanttTask, GanttDependency, DependencyType } from
|
|
|
151
412
|
(taskClick)="onTaskClick($event)"
|
|
152
413
|
/>
|
|
153
414
|
`,
|
|
154
|
-
styles: [
|
|
155
|
-
|
|
156
|
-
|
|
415
|
+
styles: [
|
|
416
|
+
`
|
|
417
|
+
ngx-gantt-chart {
|
|
418
|
+
height: 500px;
|
|
419
|
+
}
|
|
420
|
+
`,
|
|
421
|
+
],
|
|
157
422
|
})
|
|
158
423
|
export class MyComponent {
|
|
159
424
|
tasks: GanttTask[] = [
|
|
160
425
|
{
|
|
161
|
-
id: '1',
|
|
162
|
-
|
|
163
|
-
|
|
426
|
+
id: '1',
|
|
427
|
+
name: 'Design',
|
|
428
|
+
progress: 100,
|
|
429
|
+
start: new Date('2026-04-01'),
|
|
430
|
+
end: new Date('2026-04-05'),
|
|
431
|
+
parentId: null,
|
|
432
|
+
collapsed: false,
|
|
433
|
+
isMilestone: false,
|
|
164
434
|
},
|
|
165
435
|
{
|
|
166
|
-
id: '2',
|
|
167
|
-
|
|
168
|
-
|
|
436
|
+
id: '2',
|
|
437
|
+
name: 'Development',
|
|
438
|
+
progress: 40,
|
|
439
|
+
start: new Date('2026-04-06'),
|
|
440
|
+
end: new Date('2026-04-15'),
|
|
441
|
+
parentId: null,
|
|
442
|
+
collapsed: false,
|
|
443
|
+
isMilestone: false,
|
|
169
444
|
},
|
|
170
445
|
];
|
|
171
446
|
|
|
172
|
-
dependencies: GanttDependency[] = [
|
|
173
|
-
{ fromId: '1', toId: '2', type: DependencyType.FinishToStart },
|
|
174
|
-
];
|
|
447
|
+
dependencies: GanttDependency[] = [{ fromId: '1', toId: '2', type: DependencyType.FinishToStart }];
|
|
175
448
|
|
|
176
|
-
onTaskChange(event: any) {
|
|
177
|
-
|
|
449
|
+
onTaskChange(event: any) {
|
|
450
|
+
/* handle drag/resize */
|
|
451
|
+
}
|
|
452
|
+
onTaskClick(event: any) {
|
|
453
|
+
/* handle click */
|
|
454
|
+
}
|
|
178
455
|
}
|
|
179
456
|
```
|
|
180
457
|
|
|
@@ -188,12 +465,7 @@ import { TextBoxComponent, DropdownComponent, type DropdownOption } from 'ngx-co
|
|
|
188
465
|
standalone: true,
|
|
189
466
|
imports: [TextBoxComponent, DropdownComponent],
|
|
190
467
|
template: `
|
|
191
|
-
<ngx-textbox
|
|
192
|
-
[value]="name()"
|
|
193
|
-
label="Full Name"
|
|
194
|
-
placeholder="Enter your name"
|
|
195
|
-
(valueChange)="name.set($event)"
|
|
196
|
-
/>
|
|
468
|
+
<ngx-textbox [value]="name()" label="Full Name" placeholder="Enter your name" (valueChange)="name.set($event)" />
|
|
197
469
|
|
|
198
470
|
<ngx-dropdown
|
|
199
471
|
[options]="countries"
|
|
@@ -343,9 +615,16 @@ This section provides complete documentation, detailed API reference tables (Inp
|
|
|
343
615
|
### Charts
|
|
344
616
|
|
|
345
617
|
#### How to Use Charts
|
|
618
|
+
|
|
346
619
|
```typescript
|
|
347
620
|
import { Component } from '@angular/core';
|
|
348
|
-
import {
|
|
621
|
+
import {
|
|
622
|
+
BarChartComponent,
|
|
623
|
+
LineChartComponent,
|
|
624
|
+
PieChartComponent,
|
|
625
|
+
SparklineComponent,
|
|
626
|
+
GanttChartComponent,
|
|
627
|
+
} from 'ngx-core-components/charts';
|
|
349
628
|
|
|
350
629
|
@Component({
|
|
351
630
|
standalone: true,
|
|
@@ -362,7 +641,7 @@ import { BarChartComponent, LineChartComponent, PieChartComponent, SparklineComp
|
|
|
362
641
|
|
|
363
642
|
<!-- Sparkline -->
|
|
364
643
|
<ngx-sparkline [data]="[10, 15, 8, 22, 14, 25]" type="area" color="#2ecc71" />
|
|
365
|
-
|
|
644
|
+
`,
|
|
366
645
|
})
|
|
367
646
|
export class ChartsExampleComponent {
|
|
368
647
|
categories = ['Q1', 'Q2', 'Q3', 'Q4'];
|
|
@@ -371,50 +650,55 @@ export class ChartsExampleComponent {
|
|
|
371
650
|
pieData = [
|
|
372
651
|
{ label: 'Search', value: 55 },
|
|
373
652
|
{ label: 'Direct', value: 30 },
|
|
374
|
-
{ label: 'Social', value: 15 }
|
|
653
|
+
{ label: 'Social', value: 15 },
|
|
375
654
|
];
|
|
376
655
|
}
|
|
377
656
|
```
|
|
378
657
|
|
|
379
658
|
#### GanttChartComponent (`ngx-gantt-chart`)
|
|
659
|
+
|
|
380
660
|
##### Inputs
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
|
384
|
-
| `
|
|
385
|
-
| `
|
|
386
|
-
| `
|
|
387
|
-
| `
|
|
388
|
-
| `
|
|
389
|
-
| `
|
|
661
|
+
|
|
662
|
+
| Input | Type | Default | Description |
|
|
663
|
+
| ------------------ | ---------------------- | ------------ | ---------------------------------------------- |
|
|
664
|
+
| `tasks` | `GanttTask[]` | **required** | Array of tasks to display |
|
|
665
|
+
| `dependencies` | `GanttDependency[]` | `[]` | Predecessor/successor dependencies |
|
|
666
|
+
| `config` | `Partial<GanttConfig>` | `{}` | Config settings (zoom level, column/row sizes) |
|
|
667
|
+
| `groups` | `GanttGroup[]` | `[]` | Group tasks by category or assignee |
|
|
668
|
+
| `baselineItems` | `GanttBaselineItem[]` | `[]` | Baseline bars for progress comparisons |
|
|
669
|
+
| `tooltipTemplate` | `TemplateRef<...>` | `null` | Custom tooltip template reference |
|
|
670
|
+
| `enableDragToZoom` | `boolean` | `false` | Enable drag-to-zoom timeline selection |
|
|
390
671
|
|
|
391
672
|
##### Outputs
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
|
395
|
-
| `
|
|
396
|
-
| `
|
|
397
|
-
| `
|
|
398
|
-
| `
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
401
|
-
| `
|
|
402
|
-
| `
|
|
673
|
+
|
|
674
|
+
| Output | Type | Description |
|
|
675
|
+
| ----------------- | ---------------------------- | --------------------------------------------------------------------- |
|
|
676
|
+
| `taskChange` | `GanttTaskChangeEvent` | Emitted when task dates or progress are changed via dragging/resizing |
|
|
677
|
+
| `taskClick` | `GanttTaskClickEvent` | Emitted when a task bar is clicked |
|
|
678
|
+
| `taskDblClick` | `GanttTaskClickEvent` | Emitted when a task bar is double clicked |
|
|
679
|
+
| `dependencyClick` | `GanttDependencyClickEvent` | Emitted when a dependency connector line is clicked |
|
|
680
|
+
| `zoomChange` | `ZoomLevel` | Emitted when the active zoom level shifts |
|
|
681
|
+
| `zoomRangeChange` | `{ start: Date; end: Date }` | Emitted when a drag-zoom range is selected |
|
|
682
|
+
| `selectedChange` | `GanttSelectedEvent` | Emitted when selected tasks change |
|
|
683
|
+
| `expandChange` | `GanttExpandChangeEvent` | Emitted when a task or group node collapses/expands |
|
|
684
|
+
| `loadOnScroll` | `GanttLoadOnScrollEvent` | Emitted when horizontal scroll reaches close to ends (lazy loading) |
|
|
403
685
|
|
|
404
686
|
##### Public Methods
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
|
408
|
-
| `
|
|
409
|
-
| `
|
|
410
|
-
| `
|
|
411
|
-
| `
|
|
412
|
-
| `
|
|
413
|
-
| `
|
|
414
|
-
| `
|
|
415
|
-
| `
|
|
687
|
+
|
|
688
|
+
| Method | Signature | Description |
|
|
689
|
+
| -------------------- | ------------------------------------ | ---------------------------------------------- |
|
|
690
|
+
| `scrollToToday` | `(): void` | Scroll view to current date |
|
|
691
|
+
| `scrollToDate` | `(date: Date): void` | Scroll view to a specific date |
|
|
692
|
+
| `scrollToTask` | `(taskId: string): void` | Scroll vertically to focus a specific task row |
|
|
693
|
+
| `expandAll` | `(): void` | Expand all collapsed rows |
|
|
694
|
+
| `collapseAll` | `(): void` | Collapse all expandable rows |
|
|
695
|
+
| `toggleCriticalPath` | `(): void` | Toggle visibility of critical path tasks |
|
|
696
|
+
| `toggleAreaZoomMode` | `(): void` | Toggle crosshair area-zoom selector |
|
|
697
|
+
| `resetZoom` | `(): void` | Reset zoom to standard scale |
|
|
698
|
+
| `exportAsImage` | `(filename?: string): Promise<void>` | Export Gantt view to PNG download |
|
|
416
699
|
|
|
417
700
|
##### GanttConfig Interface
|
|
701
|
+
|
|
418
702
|
```typescript
|
|
419
703
|
interface GanttConfig {
|
|
420
704
|
zoomLevel: 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
@@ -431,6 +715,7 @@ interface GanttConfig {
|
|
|
431
715
|
```
|
|
432
716
|
|
|
433
717
|
##### GanttTask Interface
|
|
718
|
+
|
|
434
719
|
```typescript
|
|
435
720
|
interface GanttTask {
|
|
436
721
|
id: string;
|
|
@@ -449,132 +734,153 @@ interface GanttTask {
|
|
|
449
734
|
```
|
|
450
735
|
|
|
451
736
|
#### BarChartComponent (`ngx-bar-chart`)
|
|
737
|
+
|
|
452
738
|
##### Inputs
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
|
456
|
-
| `
|
|
457
|
-
| `
|
|
458
|
-
| `
|
|
459
|
-
| `
|
|
460
|
-
| `
|
|
461
|
-
| `
|
|
739
|
+
|
|
740
|
+
| Input | Type | Default | Description |
|
|
741
|
+
| ------------ | --------------- | ------- | ------------------------------ |
|
|
742
|
+
| `series` | `ChartSeries[]` | `[]` | Array of series data objects |
|
|
743
|
+
| `categories` | `string[]` | `[]` | X-axis labels |
|
|
744
|
+
| `height` | `number` | `260` | SVG height in pixels |
|
|
745
|
+
| `showGrid` | `boolean` | `true` | Show horizontal grid lines |
|
|
746
|
+
| `showLabels` | `boolean` | `false` | Show value label above bars |
|
|
747
|
+
| `showLegend` | `boolean` | `true` | Show color legend indicators |
|
|
748
|
+
| `colors` | `string[]` | _theme_ | Custom color palette overrides |
|
|
462
749
|
|
|
463
750
|
#### LineChartComponent (`ngx-line-chart`)
|
|
751
|
+
|
|
464
752
|
##### Inputs
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
|
468
|
-
| `
|
|
469
|
-
| `
|
|
470
|
-
| `
|
|
471
|
-
| `
|
|
472
|
-
| `
|
|
473
|
-
| `
|
|
474
|
-
| `
|
|
753
|
+
|
|
754
|
+
| Input | Type | Default | Description |
|
|
755
|
+
| ------------- | --------------- | ------- | ------------------------------------ |
|
|
756
|
+
| `series` | `ChartSeries[]` | `[]` | Array of line series data |
|
|
757
|
+
| `categories` | `string[]` | `[]` | X-axis labels |
|
|
758
|
+
| `height` | `number` | `260` | SVG height |
|
|
759
|
+
| `showGrid` | `boolean` | `true` | Show horizontal grid lines |
|
|
760
|
+
| `showArea` | `boolean` | `false` | Show area fill gradients below lines |
|
|
761
|
+
| `showMarkers` | `boolean` | `true` | Show circles on data points |
|
|
762
|
+
| `showLegend` | `boolean` | `true` | Show color legends |
|
|
763
|
+
| `colors` | `string[]` | _theme_ | Custom color palette |
|
|
475
764
|
|
|
476
765
|
#### PieChartComponent (`ngx-pie-chart`)
|
|
766
|
+
|
|
477
767
|
##### Inputs
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
|
481
|
-
| `
|
|
482
|
-
| `
|
|
483
|
-
| `
|
|
484
|
-
| `
|
|
485
|
-
| `
|
|
486
|
-
| `
|
|
487
|
-
| `
|
|
768
|
+
|
|
769
|
+
| Input | Type | Default | Description |
|
|
770
|
+
| --------------- | ------------------ | --------- | ---------------------------------------- |
|
|
771
|
+
| `data` | `ChartDataPoint[]` | `[]` | Array of slice data objects |
|
|
772
|
+
| `mode` | `'pie' \| 'donut'` | `'pie'` | Chart layout variant |
|
|
773
|
+
| `donutHoleSize` | `number` | `0.55` | Inner circle size ratio for donut charts |
|
|
774
|
+
| `height` | `number` | `240` | SVG size (width & height) |
|
|
775
|
+
| `showLegend` | `boolean` | `true` | Show Legend beside chart |
|
|
776
|
+
| `showLabels` | `boolean` | `true` | Show percentage label on slices |
|
|
777
|
+
| `centerTitle` | `string` | `'Total'` | Donut center placeholder text |
|
|
778
|
+
| `colors` | `string[]` | _theme_ | Color palette overrides |
|
|
488
779
|
|
|
489
780
|
#### SparklineComponent (`ngx-sparkline`)
|
|
781
|
+
|
|
490
782
|
##### Inputs
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
|
494
|
-
| `
|
|
495
|
-
| `
|
|
496
|
-
| `
|
|
497
|
-
| `
|
|
783
|
+
|
|
784
|
+
| Input | Type | Default | Description |
|
|
785
|
+
| -------- | --------------------------- | ----------- | -------------------- |
|
|
786
|
+
| `data` | `number[]` | `[]` | Numeric trend values |
|
|
787
|
+
| `type` | `'line' \| 'bar' \| 'area'` | `'line'` | Display style |
|
|
788
|
+
| `color` | `string` | `'#4a90d9'` | Stroke or fill color |
|
|
789
|
+
| `width` | `number` | `120` | SVG width |
|
|
790
|
+
| `height` | `number` | `36` | SVG height |
|
|
498
791
|
|
|
499
792
|
#### AgenticCognitiveTopologyComponent (`ngx-agentic-cognitive-topology`)
|
|
793
|
+
|
|
500
794
|
A dynamic visual representation of an agentic cognitive workflow (directed acyclic graph) supporting real-time interaction, automatic level sorting layouts, snapping grid alignment, properties modal editing, and drag-and-drop link creation.
|
|
501
795
|
|
|
502
796
|
##### Inputs
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
|
506
|
-
| `
|
|
507
|
-
| `
|
|
508
|
-
| `
|
|
509
|
-
| `
|
|
510
|
-
| `
|
|
511
|
-
| `
|
|
512
|
-
| `
|
|
797
|
+
|
|
798
|
+
| Input | Type | Default | Description |
|
|
799
|
+
| ------------ | ---------------- | -------------- | -------------------------------- |
|
|
800
|
+
| `nodes` | `TopologyNode[]` | **required** | List of workflow nodes |
|
|
801
|
+
| `links` | `TopologyLink[]` | **required** | Directed edges between nodes |
|
|
802
|
+
| `width` | `number` | `650` | SVG width |
|
|
803
|
+
| `height` | `number` | `450` | SVG height |
|
|
804
|
+
| `colors` | `string[]` | `CHART_COLORS` | Custom node color palette |
|
|
805
|
+
| `showExport` | `boolean` | `true` | Show export options dropdown |
|
|
806
|
+
| `editable` | `boolean` | `false` | Enable interactive canvas editor |
|
|
807
|
+
| `gridSize` | `number` | `20` | Size of snap-to-grid alignment |
|
|
513
808
|
|
|
514
809
|
##### Outputs
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
|
518
|
-
| `
|
|
519
|
-
| `
|
|
520
|
-
| `
|
|
521
|
-
| `
|
|
810
|
+
|
|
811
|
+
| Output | Type | Description |
|
|
812
|
+
| -------------------- | ------------------------------------------ | -------------------------------------------------------------------------------- |
|
|
813
|
+
| `nodeActionClick` | `{ nodeId: string; action: string }` | Emitted when an action is selected in the node tooltip |
|
|
814
|
+
| `nodePositionChange` | `{ nodeId: string; x: number; y: number }` | Emitted when a node is dragged and repositioned |
|
|
815
|
+
| `nodesChange` | `TopologyNode[]` | Emitted in edit mode when nodes are added, edited, or deleted |
|
|
816
|
+
| `linksChange` | `TopologyLink[]` | Emitted in edit mode when links are added or deleted |
|
|
817
|
+
| `validationError` | `string` | Emitted when editor validations (e.g. cycles) are violated or copy notices occur |
|
|
522
818
|
|
|
523
819
|
##### Public Methods
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
|
527
|
-
| `
|
|
528
|
-
| `
|
|
529
|
-
| `
|
|
820
|
+
|
|
821
|
+
| Method | Signature | Description |
|
|
822
|
+
| ---------------------- | ---------- | ----------------------------------------------------------------------------------- |
|
|
823
|
+
| `autoLayout` | `(): void` | Clear all overrides and automatically arrange nodes using topological layer sorting |
|
|
824
|
+
| `undo` | `(): void` | Undo the last editor action |
|
|
825
|
+
| `redo` | `(): void` | Redo the last undone editor action |
|
|
826
|
+
| `exportWorkflowSchema` | `(): void` | Copies the current workflow layout as a LangGraph-compatible JSON schema |
|
|
530
827
|
|
|
531
828
|
#### TokenStreamingChartComponent (`ngx-token-streaming-chart`)
|
|
829
|
+
|
|
532
830
|
Real-time streaming chart optimized for rendering active LLM token generation metrics, showing speed (tokens per second), latency, and dynamic target highlights.
|
|
533
831
|
|
|
534
832
|
##### Inputs
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
|
538
|
-
| `
|
|
539
|
-
| `
|
|
540
|
-
| `
|
|
833
|
+
|
|
834
|
+
| Input | Type | Default | Description |
|
|
835
|
+
| ----------- | ---------------- | ------- | ---------------------------------- |
|
|
836
|
+
| `data` | `number[]` | `[]` | Sequential generation speed values |
|
|
837
|
+
| `height` | `number` | `180` | Chart height in pixels |
|
|
838
|
+
| `threshold` | `number \| null` | `null` | Optional threshold alert limit |
|
|
839
|
+
| `showGrid` | `boolean` | `true` | Render horizontal grid lines |
|
|
541
840
|
|
|
542
841
|
##### Public Methods
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
|
546
|
-
| `
|
|
842
|
+
|
|
843
|
+
| Method | Signature | Description |
|
|
844
|
+
| ------------- | ----------------------------- | --------------------------------- |
|
|
845
|
+
| `setPoints` | `(newPoints: number[]): void` | Reset streaming points |
|
|
846
|
+
| `clearPoints` | `(): void` | Clear all points and reset charts |
|
|
547
847
|
|
|
548
848
|
#### EmbeddingSpaceProjectionComponent (`ngx-embedding-space-projection`)
|
|
849
|
+
|
|
549
850
|
Interactive multi-dimensional vector space projection (scatterplot layout) supporting visual cluster selection, lasso path tracing, and target distance query helpers.
|
|
550
851
|
|
|
551
852
|
##### Inputs
|
|
552
|
-
|
|
553
|
-
|
|
853
|
+
|
|
854
|
+
| Input | Type | Default | Description |
|
|
855
|
+
| -------- | ------------------ | ------------ | -------------------------------------- |
|
|
554
856
|
| `points` | `EmbeddingPoint[]` | **required** | Coordinates and metadata of embeddings |
|
|
555
|
-
| `height` | `number`
|
|
857
|
+
| `height` | `number` | `360` | SVG container height |
|
|
556
858
|
|
|
557
859
|
##### Outputs
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
|
860
|
+
|
|
861
|
+
| Output | Type | Description |
|
|
862
|
+
| ------------------- | ---------------------------------------------- | ---------------------------------------------------------------------- |
|
|
863
|
+
| `lassoSelected` | `string[]` | Emitted with list of selected point IDs after drawing a lasso path |
|
|
561
864
|
| `agentQueryRequest` | `{ selectedIds: string[]; queryType: string }` | Emitted when triggering semantic action queries on selected embeddings |
|
|
562
865
|
|
|
563
866
|
#### TransformerAttentionHeatmapComponent (`ngx-transformer-attention-heatmap`)
|
|
867
|
+
|
|
564
868
|
Interactive visualization mapping matrix weights between input and output tokens across selected transformer attention heads, highlighting key focus weights.
|
|
565
869
|
|
|
566
870
|
##### Inputs
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
|
570
|
-
| `
|
|
871
|
+
|
|
872
|
+
| Input | Type | Default | Description |
|
|
873
|
+
| --------- | ------------ | ------------ | ----------------------------------------------- |
|
|
874
|
+
| `tokensX` | `string[]` | **required** | Horizontal axis token strings |
|
|
875
|
+
| `tokensY` | `string[]` | **required** | Vertical axis token strings |
|
|
571
876
|
| `weights` | `number[][]` | **required** | M x N matrix representing attention intensities |
|
|
572
|
-
| `height`
|
|
877
|
+
| `height` | `number` | `300` | Grid container height |
|
|
573
878
|
|
|
574
879
|
##### Outputs
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
|
880
|
+
|
|
881
|
+
| Output | Type | Description |
|
|
882
|
+
| ------------ | ------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
883
|
+
| `cellClick` | `{ row: number; col: number; weight: number }` | Emitted when clicking an individual weight square |
|
|
578
884
|
| `agentQuery` | `{ query: string; tokenY: string; tokenX: string; weight: number }` | Emitted when triggering AI queries on cell highlights |
|
|
579
885
|
|
|
580
886
|
---
|
|
@@ -582,10 +888,16 @@ Interactive visualization mapping matrix weights between input and output tokens
|
|
|
582
888
|
### Inputs
|
|
583
889
|
|
|
584
890
|
#### How to Use Inputs (with Reactive Forms)
|
|
891
|
+
|
|
585
892
|
```typescript
|
|
586
893
|
import { Component } from '@angular/core';
|
|
587
894
|
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
588
|
-
import {
|
|
895
|
+
import {
|
|
896
|
+
TextBoxComponent,
|
|
897
|
+
DropdownComponent,
|
|
898
|
+
DatePickerComponent,
|
|
899
|
+
NumericTextBoxComponent,
|
|
900
|
+
} from 'ngx-core-components/inputs';
|
|
589
901
|
|
|
590
902
|
@Component({
|
|
591
903
|
standalone: true,
|
|
@@ -597,277 +909,326 @@ import { TextBoxComponent, DropdownComponent, DatePickerComponent, NumericTextBo
|
|
|
597
909
|
<ngx-date-picker formControlName="birthDate" label="Birth Date" />
|
|
598
910
|
<ngx-numeric-textbox formControlName="age" label="Age" [min]="18" [max]="99" />
|
|
599
911
|
</form>
|
|
600
|
-
|
|
912
|
+
`,
|
|
601
913
|
})
|
|
602
914
|
export class FormComponent {
|
|
603
|
-
roles = [
|
|
915
|
+
roles = [
|
|
916
|
+
{ label: 'Admin', value: 'admin' },
|
|
917
|
+
{ label: 'User', value: 'user' },
|
|
918
|
+
];
|
|
604
919
|
form = new FormGroup({
|
|
605
920
|
username: new FormControl(''),
|
|
606
921
|
role: new FormControl('user'),
|
|
607
922
|
birthDate: new FormControl<Date | null>(null),
|
|
608
|
-
age: new FormControl(18)
|
|
923
|
+
age: new FormControl(18),
|
|
609
924
|
});
|
|
610
925
|
}
|
|
611
926
|
```
|
|
612
927
|
|
|
613
928
|
#### TextBoxComponent (`ngx-textbox`)
|
|
929
|
+
|
|
614
930
|
##### Inputs
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
|
618
|
-
| `
|
|
619
|
-
| `
|
|
620
|
-
| `
|
|
621
|
-
| `
|
|
622
|
-
| `
|
|
623
|
-
| `
|
|
624
|
-
| `
|
|
625
|
-
| `
|
|
626
|
-
| `
|
|
627
|
-
| `
|
|
628
|
-
| `
|
|
629
|
-
| `
|
|
630
|
-
| `
|
|
931
|
+
|
|
932
|
+
| Input | Type | Default | Description |
|
|
933
|
+
| ---------------- | --------- | -------- | ----------------------------------- |
|
|
934
|
+
| `value` | `string` | `''` | Current string value |
|
|
935
|
+
| `label` | `string` | `''` | Floating/static label |
|
|
936
|
+
| `placeholder` | `string` | `''` | Placeholder text |
|
|
937
|
+
| `type` | `string` | `'text'` | HTML input type attribute |
|
|
938
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
939
|
+
| `readonly` | `boolean` | `false` | Read-only mode |
|
|
940
|
+
| `error` | `string` | `''` | Error message displayed below input |
|
|
941
|
+
| `hint` | `string` | `''` | Hint text displayed below input |
|
|
942
|
+
| `maxlength` | `number` | `0` | Max characters allowed |
|
|
943
|
+
| `clearable` | `boolean` | `false` | Show clear button |
|
|
944
|
+
| `showCharCount` | `boolean` | `false` | Display character counter |
|
|
945
|
+
| `prefixIcon` | `string` | `''` | Text/icon shown before text |
|
|
946
|
+
| `suffixIcon` | `string` | `''` | Text/icon shown after text |
|
|
947
|
+
| `passwordToggle` | `boolean` | `false` | Show password visibility eye icon |
|
|
631
948
|
|
|
632
949
|
##### Outputs
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
|
950
|
+
|
|
951
|
+
| Output | Type | Description |
|
|
952
|
+
| ------------- | --------- | -------------------------------------------- |
|
|
953
|
+
| `valueChange` | `string` | Emitted when value is changed |
|
|
636
954
|
| `focusChange` | `boolean` | Emitted on focus (`true`) and blur (`false`) |
|
|
637
955
|
|
|
638
956
|
#### CheckboxComponent (`ngx-checkbox`)
|
|
957
|
+
|
|
639
958
|
##### Inputs
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
|
643
|
-
| `
|
|
644
|
-
| `
|
|
959
|
+
|
|
960
|
+
| Input | Type | Default | Description |
|
|
961
|
+
| --------------- | --------- | ------- | ------------------------ |
|
|
962
|
+
| `label` | `string` | `''` | Label next to checkbox |
|
|
963
|
+
| `checked` | `boolean` | `false` | Checked state |
|
|
964
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
645
965
|
| `indeterminate` | `boolean` | `false` | Indeterminate line state |
|
|
646
966
|
|
|
647
967
|
##### Outputs
|
|
648
|
-
|
|
649
|
-
|
|
968
|
+
|
|
969
|
+
| Output | Type | Description |
|
|
970
|
+
| --------------- | --------- | --------------------- |
|
|
650
971
|
| `checkedChange` | `boolean` | Checked state changed |
|
|
651
972
|
|
|
652
973
|
#### RadioGroupComponent (`ngx-radio-group`)
|
|
974
|
+
|
|
653
975
|
##### Inputs
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
|
657
|
-
| `
|
|
658
|
-
| `
|
|
659
|
-
| `
|
|
660
|
-
| `
|
|
976
|
+
|
|
977
|
+
| Input | Type | Default | Description |
|
|
978
|
+
| ---------- | --------------- | ------- | ------------------------ |
|
|
979
|
+
| `options` | `RadioOption[]` | `[]` | Array of radio options |
|
|
980
|
+
| `label` | `string` | `''` | Radio group header label |
|
|
981
|
+
| `value` | `unknown` | `null` | Selected option value |
|
|
982
|
+
| `disabled` | `boolean` | `false` | Disable all controls |
|
|
983
|
+
| `inline` | `boolean` | `false` | Render horizontally |
|
|
661
984
|
|
|
662
985
|
##### Outputs
|
|
663
|
-
|
|
664
|
-
|
|
986
|
+
|
|
987
|
+
| Output | Type | Description |
|
|
988
|
+
| ------------- | --------- | ------------- |
|
|
665
989
|
| `valueChange` | `unknown` | Value changed |
|
|
666
990
|
|
|
667
991
|
#### DropdownComponent (`ngx-dropdown`)
|
|
992
|
+
|
|
668
993
|
##### Inputs
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
|
672
|
-
| `
|
|
673
|
-
| `
|
|
674
|
-
| `
|
|
675
|
-
| `
|
|
676
|
-
| `
|
|
677
|
-
| `
|
|
678
|
-
| `
|
|
679
|
-
| `
|
|
994
|
+
|
|
995
|
+
| Input | Type | Default | Description |
|
|
996
|
+
| ------------- | ------------------ | ------------- | --------------------------- |
|
|
997
|
+
| `options` | `DropdownOption[]` | `[]` | Selectable options list |
|
|
998
|
+
| `value` | `unknown` | `null` | Selected item value |
|
|
999
|
+
| `label` | `string` | `''` | Header label |
|
|
1000
|
+
| `placeholder` | `string` | `'Select...'` | Empty selection placeholder |
|
|
1001
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
1002
|
+
| `filterable` | `boolean` | `false` | Add filter search box |
|
|
1003
|
+
| `required` | `boolean` | `false` | Show required red asterisk |
|
|
1004
|
+
| `error` | `string` | `''` | Error message |
|
|
1005
|
+
| `hint` | `string` | `''` | Hint text |
|
|
680
1006
|
|
|
681
1007
|
##### Outputs
|
|
682
|
-
|
|
683
|
-
|
|
1008
|
+
|
|
1009
|
+
| Output | Type | Description |
|
|
1010
|
+
| ------------- | --------- | ------------------------------ |
|
|
684
1011
|
| `valueChange` | `unknown` | Emitted when selection changes |
|
|
685
1012
|
|
|
686
1013
|
#### MultiSelectComponent (`ngx-multi-select`)
|
|
1014
|
+
|
|
687
1015
|
##### Inputs
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
|
691
|
-
| `
|
|
692
|
-
| `
|
|
693
|
-
| `
|
|
694
|
-
| `
|
|
695
|
-
| `
|
|
696
|
-
| `
|
|
1016
|
+
|
|
1017
|
+
| Input | Type | Default | Description |
|
|
1018
|
+
| ------------- | ------------------ | ------------- | ----------------------------------------------- |
|
|
1019
|
+
| `options` | `DropdownOption[]` | `[]` | Selectable options |
|
|
1020
|
+
| `values` | `unknown[]` | `[]` | Array of selected values |
|
|
1021
|
+
| `label` | `string` | `''` | Header label |
|
|
1022
|
+
| `placeholder` | `string` | `'Select...'` | Input placeholder |
|
|
1023
|
+
| `disabled` | `boolean` | `false` | Disable component |
|
|
1024
|
+
| `filterable` | `boolean` | `false` | Show input filter search |
|
|
1025
|
+
| `maxTags` | `number` | `Infinity` | Max tag chips visible before overflow indicator |
|
|
697
1026
|
|
|
698
1027
|
##### Outputs
|
|
699
|
-
|
|
700
|
-
|
|
1028
|
+
|
|
1029
|
+
| Output | Type | Description |
|
|
1030
|
+
| -------------- | ----------- | ---------------------- |
|
|
701
1031
|
| `valuesChange` | `unknown[]` | Selected items changed |
|
|
702
1032
|
|
|
703
1033
|
#### AutocompleteComponent (`ngx-autocomplete`)
|
|
1034
|
+
|
|
704
1035
|
##### Inputs
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
|
708
|
-
| `
|
|
709
|
-
| `
|
|
710
|
-
| `
|
|
711
|
-
| `
|
|
712
|
-
| `
|
|
1036
|
+
|
|
1037
|
+
| Input | Type | Default | Description |
|
|
1038
|
+
| ------------- | ------------------ | --------------------- | ---------------------------------------------- |
|
|
1039
|
+
| `options` | `DropdownOption[]` | `[]` | Search recommendation list |
|
|
1040
|
+
| `label` | `string` | `''` | Header label |
|
|
1041
|
+
| `placeholder` | `string` | `'Type to search...'` | Input placeholder |
|
|
1042
|
+
| `disabled` | `boolean` | `false` | Disable autocomplete |
|
|
1043
|
+
| `error` | `string` | `''` | Error text |
|
|
1044
|
+
| `minLength` | `number` | `1` | Min characters typed before suggesting options |
|
|
713
1045
|
|
|
714
1046
|
##### Outputs
|
|
715
|
-
|
|
716
|
-
|
|
1047
|
+
|
|
1048
|
+
| Output | Type | Description |
|
|
1049
|
+
| ------------- | --------- | ------------------------------ |
|
|
717
1050
|
| `valueChange` | `unknown` | Suggestion selected or cleared |
|
|
718
1051
|
|
|
719
1052
|
#### DatePickerComponent (`ngx-date-picker`)
|
|
1053
|
+
|
|
720
1054
|
##### Inputs
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
|
724
|
-
| `
|
|
725
|
-
| `
|
|
726
|
-
| `
|
|
727
|
-
| `
|
|
728
|
-
| `
|
|
729
|
-
| `
|
|
1055
|
+
|
|
1056
|
+
| Input | Type | Default | Description |
|
|
1057
|
+
| ------------- | -------------- | ------------------ | ------------------------ |
|
|
1058
|
+
| `value` | `Date \| null` | `null` | Selected Date |
|
|
1059
|
+
| `label` | `string` | `''` | Input label |
|
|
1060
|
+
| `placeholder` | `string` | `'Select date...'` | Input placeholder |
|
|
1061
|
+
| `disabled` | `boolean` | `false` | Disable datepicker |
|
|
1062
|
+
| `min` | `Date \| null` | `null` | Earliest selection limit |
|
|
1063
|
+
| `max` | `Date \| null` | `null` | Latest selection limit |
|
|
1064
|
+
| `format` | `string` | `'MM/dd/yyyy'` | Format layout |
|
|
730
1065
|
|
|
731
1066
|
##### Outputs
|
|
732
|
-
|
|
733
|
-
|
|
1067
|
+
|
|
1068
|
+
| Output | Type | Description |
|
|
1069
|
+
| ------------- | -------------- | ---------------------- |
|
|
734
1070
|
| `valueChange` | `Date \| null` | Date selection changed |
|
|
735
1071
|
|
|
736
1072
|
#### DateRangePickerComponent (`ngx-date-range-picker`)
|
|
1073
|
+
|
|
737
1074
|
##### Inputs
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
|
741
|
-
| `
|
|
742
|
-
| `
|
|
743
|
-
| `
|
|
744
|
-
| `
|
|
745
|
-
| `
|
|
746
|
-
| `
|
|
747
|
-
| `
|
|
748
|
-
| `
|
|
1075
|
+
|
|
1076
|
+
| Input | Type | Default | Description |
|
|
1077
|
+
| --------------- | --------------------------------- | ---------- | --------------------------------------------- |
|
|
1078
|
+
| `label` | `string` | `''` | Input label |
|
|
1079
|
+
| `start` | `Date \| string \| null` | `null` | Selection start date |
|
|
1080
|
+
| `end` | `Date \| string \| null` | `null` | Selection end date |
|
|
1081
|
+
| `min` | `Date \| string \| null` | `null` | Min limits |
|
|
1082
|
+
| `max` | `Date \| string \| null` | `null` | Max limits |
|
|
1083
|
+
| `disabledDates` | `(Date \| string)[]` | `[]` | Disabled date values |
|
|
1084
|
+
| `presets` | `DateRangePreset[]` | _defaults_ | Fast presets (Today, Last 7 days, This Month) |
|
|
1085
|
+
| `weekStartsOn` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` | `0` | First day of week (0=Sunday) |
|
|
1086
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
749
1087
|
|
|
750
1088
|
##### Outputs
|
|
751
|
-
|
|
752
|
-
|
|
1089
|
+
|
|
1090
|
+
| Output | Type | Description |
|
|
1091
|
+
| ------------- | -------------------------------- | -------------------------------------------------- |
|
|
753
1092
|
| `rangeChange` | `{ start: string; end: string }` | Date range selection completed (YYYY-MM-DD format) |
|
|
754
|
-
| `openChange`
|
|
1093
|
+
| `openChange` | `boolean` | Emitted when calendar overlay is opened/closed |
|
|
755
1094
|
|
|
756
1095
|
#### SliderComponent (`ngx-slider`)
|
|
1096
|
+
|
|
757
1097
|
##### Inputs
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
|
761
|
-
| `
|
|
762
|
-
| `
|
|
763
|
-
| `
|
|
764
|
-
| `
|
|
765
|
-
| `
|
|
766
|
-
| `
|
|
767
|
-
| `
|
|
768
|
-
| `
|
|
769
|
-
| `
|
|
770
|
-
| `
|
|
1098
|
+
|
|
1099
|
+
| Input | Type | Default | Description |
|
|
1100
|
+
| -------------- | --------- | ------- | -------------------------------- |
|
|
1101
|
+
| `label` | `string` | `''` | Slider label |
|
|
1102
|
+
| `min` | `number` | `0` | Min slider limit |
|
|
1103
|
+
| `max` | `number` | `100` | Max slider limit |
|
|
1104
|
+
| `step` | `number` | `1` | Drag interval size |
|
|
1105
|
+
| `range` | `boolean` | `false` | Enable double-handle range mode |
|
|
1106
|
+
| `disabled` | `boolean` | `false` | Disable component |
|
|
1107
|
+
| `showValue` | `boolean` | `true` | Display active values |
|
|
1108
|
+
| `showTicks` | `boolean` | `false` | Show min/max value indicators |
|
|
1109
|
+
| `initialValue` | `number` | `0` | Initial single value |
|
|
1110
|
+
| `initialLow` | `number` | `20` | Initial low value in range mode |
|
|
1111
|
+
| `initialHigh` | `number` | `80` | Initial high value in range mode |
|
|
771
1112
|
|
|
772
1113
|
##### Outputs
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
|
1114
|
+
|
|
1115
|
+
| Output | Type | Description |
|
|
1116
|
+
| ------------- | ------------------ | -------------------------------- |
|
|
1117
|
+
| `valueChange` | `number` | Value changed (single handle) |
|
|
776
1118
|
| `rangeChange` | `[number, number]` | Emitted when range bounds change |
|
|
777
1119
|
|
|
778
1120
|
#### SwitchComponent (`ngx-switch`)
|
|
1121
|
+
|
|
779
1122
|
##### Inputs
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
|
783
|
-
| `
|
|
784
|
-
| `
|
|
785
|
-
| `
|
|
1123
|
+
|
|
1124
|
+
| Input | Type | Default | Description |
|
|
1125
|
+
| ---------- | ---------------------- | ------- | ------------------- |
|
|
1126
|
+
| `onLabel` | `string` | `'On'` | Label when active |
|
|
1127
|
+
| `offLabel` | `string` | `'Off'` | Label when inactive |
|
|
1128
|
+
| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | Toggle size |
|
|
1129
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
786
1130
|
|
|
787
1131
|
##### Outputs
|
|
788
|
-
|
|
789
|
-
|
|
1132
|
+
|
|
1133
|
+
| Output | Type | Description |
|
|
1134
|
+
| --------------- | --------- | ------------- |
|
|
790
1135
|
| `checkedChange` | `boolean` | State toggled |
|
|
791
1136
|
|
|
792
1137
|
#### RatingComponent (`ngx-rating`)
|
|
1138
|
+
|
|
793
1139
|
##### Inputs
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
|
797
|
-
| `
|
|
798
|
-
| `
|
|
799
|
-
| `
|
|
1140
|
+
|
|
1141
|
+
| Input | Type | Default | Description |
|
|
1142
|
+
| ----------- | --------- | ------- | ------------------------------ |
|
|
1143
|
+
| `max` | `number` | `5` | Total stars to display |
|
|
1144
|
+
| `label` | `string` | `''` | Header label |
|
|
1145
|
+
| `readonly` | `boolean` | `false` | Disabled interactive selection |
|
|
1146
|
+
| `showValue` | `boolean` | `false` | Show text scale (e.g. "4/5") |
|
|
800
1147
|
|
|
801
1148
|
##### Outputs
|
|
802
|
-
|
|
803
|
-
|
|
1149
|
+
|
|
1150
|
+
| Output | Type | Description |
|
|
1151
|
+
| -------------- | -------- | ---------------------- |
|
|
804
1152
|
| `ratingChange` | `number` | Star selection changed |
|
|
805
1153
|
|
|
806
1154
|
#### NumericTextBoxComponent (`ngx-numeric-textbox`)
|
|
1155
|
+
|
|
807
1156
|
##### Inputs
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
|
811
|
-
| `
|
|
812
|
-
| `
|
|
813
|
-
| `
|
|
814
|
-
| `
|
|
815
|
-
| `
|
|
816
|
-
| `
|
|
817
|
-
| `
|
|
818
|
-
| `
|
|
1157
|
+
|
|
1158
|
+
| Input | Type | Default | Description |
|
|
1159
|
+
| ------------- | --------- | ----------- | ------------------------------- |
|
|
1160
|
+
| `label` | `string` | `''` | Label text |
|
|
1161
|
+
| `value` | `number` | `0` | Current value |
|
|
1162
|
+
| `min` | `number` | `-Infinity` | Lower bound |
|
|
1163
|
+
| `max` | `number` | `Infinity` | Upper bound |
|
|
1164
|
+
| `step` | `number` | `1` | Increment value on step up/down |
|
|
1165
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
1166
|
+
| `placeholder` | `string` | `''` | Input placeholder |
|
|
1167
|
+
| `prefix` | `string` | `''` | Prepend character (e.g., "$") |
|
|
1168
|
+
| `suffix` | `string` | `''` | Append character (e.g., "kg") |
|
|
819
1169
|
|
|
820
1170
|
##### Outputs
|
|
821
|
-
|
|
822
|
-
|
|
1171
|
+
|
|
1172
|
+
| Output | Type | Description |
|
|
1173
|
+
| ------------- | -------- | ------------- |
|
|
823
1174
|
| `valueChange` | `number` | Value changed |
|
|
824
1175
|
|
|
825
1176
|
##### Public Methods
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
|
829
|
-
| `
|
|
1177
|
+
|
|
1178
|
+
| Method | Signature | Description |
|
|
1179
|
+
| ---------- | ---------------------- | ------------------------- |
|
|
1180
|
+
| `spin` | `(dir: 1 \| -1): void` | Step value up or down |
|
|
1181
|
+
| `setValue` | `(v: number): void` | Set clamped numeric value |
|
|
830
1182
|
|
|
831
1183
|
#### TextareaComponent (`ngx-textarea`)
|
|
1184
|
+
|
|
832
1185
|
##### Inputs
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
|
836
|
-
| `
|
|
837
|
-
| `
|
|
838
|
-
| `
|
|
839
|
-
| `
|
|
840
|
-
| `
|
|
841
|
-
| `
|
|
842
|
-
| `
|
|
1186
|
+
|
|
1187
|
+
| Input | Type | Default | Description |
|
|
1188
|
+
| ------------- | --------- | ------- | ------------------------------------ |
|
|
1189
|
+
| `label` | `string` | `''` | Label text |
|
|
1190
|
+
| `placeholder` | `string` | `''` | Textarea placeholder |
|
|
1191
|
+
| `rows` | `number` | `4` | Rows high |
|
|
1192
|
+
| `maxlength` | `number` | `0` | Max character length limits |
|
|
1193
|
+
| `disabled` | `boolean` | `false` | Disabled state |
|
|
1194
|
+
| `autoResize` | `boolean` | `false` | Automatically adjust size with lines |
|
|
1195
|
+
| `hint` | `string` | `''` | Instruction note below input |
|
|
1196
|
+
| `error` | `string` | `''` | Error alert below input |
|
|
843
1197
|
|
|
844
1198
|
##### Outputs
|
|
845
|
-
|
|
846
|
-
|
|
1199
|
+
|
|
1200
|
+
| Output | Type | Description |
|
|
1201
|
+
| ------------- | -------- | ----------------------- |
|
|
847
1202
|
| `valueChange` | `string` | Character value changed |
|
|
848
1203
|
|
|
849
1204
|
#### ColorPickerComponent (`ngx-color-picker`)
|
|
1205
|
+
|
|
850
1206
|
##### Inputs
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
|
1207
|
+
|
|
1208
|
+
| Input | Type | Default | Description |
|
|
1209
|
+
| ------- | -------- | ------- | ----------- |
|
|
1210
|
+
| `label` | `string` | `''` | Input label |
|
|
854
1211
|
|
|
855
1212
|
##### Outputs
|
|
856
|
-
|
|
857
|
-
|
|
1213
|
+
|
|
1214
|
+
| Output | Type | Description |
|
|
1215
|
+
| ------------- | -------- | --------------------------------------- |
|
|
858
1216
|
| `colorChange` | `string` | Emitted with hex color code when picked |
|
|
859
1217
|
|
|
860
1218
|
#### TimePickerComponent (`ngx-time-picker`)
|
|
1219
|
+
|
|
861
1220
|
##### Inputs
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
|
865
|
-
| `
|
|
866
|
-
| `
|
|
1221
|
+
|
|
1222
|
+
| Input | Type | Default | Description |
|
|
1223
|
+
| -------- | --------- | --------- | ---------------------------- |
|
|
1224
|
+
| `label` | `string` | `''` | Label text |
|
|
1225
|
+
| `use12h` | `boolean` | `false` | Enable 12h clock mode |
|
|
1226
|
+
| `value` | `string` | `'09:00'` | Selected time (HH:mm format) |
|
|
867
1227
|
|
|
868
1228
|
##### Outputs
|
|
869
|
-
|
|
870
|
-
|
|
1229
|
+
|
|
1230
|
+
| Output | Type | Description |
|
|
1231
|
+
| ------------ | -------- | ---------------------------------------- |
|
|
871
1232
|
| `timeChange` | `string` | Emitted when time changes (HH:mm format) |
|
|
872
1233
|
|
|
873
1234
|
---
|
|
@@ -875,6 +1236,7 @@ export class FormComponent {
|
|
|
875
1236
|
### Data Grid & Views
|
|
876
1237
|
|
|
877
1238
|
#### How to Use Grid & Views
|
|
1239
|
+
|
|
878
1240
|
```typescript
|
|
879
1241
|
import { Component } from '@angular/core';
|
|
880
1242
|
import { DataGridComponent, GridColumnDef } from 'ngx-core-components/grid';
|
|
@@ -889,17 +1251,17 @@ import { TreeViewComponent, ListViewComponent, TreeNode } from 'ngx-core-compone
|
|
|
889
1251
|
|
|
890
1252
|
<!-- Tree View -->
|
|
891
1253
|
<ngx-tree-view [nodes]="treeNodes" [checkable]="true" />
|
|
892
|
-
|
|
1254
|
+
`,
|
|
893
1255
|
})
|
|
894
1256
|
export class GridViewsExampleComponent {
|
|
895
1257
|
columns: GridColumnDef<any>[] = [
|
|
896
1258
|
{ field: 'id', title: 'ID', width: 80 },
|
|
897
1259
|
{ field: 'name', title: 'Name', sortable: true },
|
|
898
|
-
{ field: 'role', title: 'Role' }
|
|
1260
|
+
{ field: 'role', title: 'Role' },
|
|
899
1261
|
];
|
|
900
1262
|
gridData = [
|
|
901
1263
|
{ id: 1, name: 'Alice Smith', role: 'Developer' },
|
|
902
|
-
{ id: 2, name: 'Bob Jones', role: 'Designer' }
|
|
1264
|
+
{ id: 2, name: 'Bob Jones', role: 'Designer' },
|
|
903
1265
|
];
|
|
904
1266
|
|
|
905
1267
|
treeNodes: TreeNode[] = [
|
|
@@ -908,114 +1270,126 @@ export class GridViewsExampleComponent {
|
|
|
908
1270
|
label: 'My Project',
|
|
909
1271
|
children: [
|
|
910
1272
|
{ id: 'src', label: 'src' },
|
|
911
|
-
{ id: 'tests', label: 'tests' }
|
|
912
|
-
]
|
|
913
|
-
}
|
|
1273
|
+
{ id: 'tests', label: 'tests' },
|
|
1274
|
+
],
|
|
1275
|
+
},
|
|
914
1276
|
];
|
|
915
1277
|
}
|
|
916
1278
|
```
|
|
917
1279
|
|
|
918
1280
|
#### DataGridComponent (`ngx-data-grid`)
|
|
1281
|
+
|
|
919
1282
|
##### Inputs
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
|
923
|
-
| `
|
|
924
|
-
| `
|
|
925
|
-
| `
|
|
926
|
-
| `
|
|
927
|
-
| `
|
|
928
|
-
| `
|
|
929
|
-
| `
|
|
930
|
-
| `
|
|
931
|
-
| `
|
|
932
|
-
| `
|
|
933
|
-
| `
|
|
934
|
-
| `
|
|
935
|
-
| `
|
|
936
|
-
| `
|
|
937
|
-
| `
|
|
938
|
-
| `
|
|
939
|
-
| `
|
|
940
|
-
| `
|
|
941
|
-
| `
|
|
942
|
-
| `
|
|
943
|
-
| `
|
|
944
|
-
| `
|
|
945
|
-
| `
|
|
946
|
-
| `
|
|
1283
|
+
|
|
1284
|
+
| Input | Type | Default | Description |
|
|
1285
|
+
| -------------------- | ------------------------ | ---------- | ------------------------------------------------ |
|
|
1286
|
+
| `data` | `T[]` | `[]` | Table row data |
|
|
1287
|
+
| `columns` | `GridColumnDef<T>[]` | `[]` | Columns configuration |
|
|
1288
|
+
| `stateKey` | `string` | `''` | LocalStorage key to save grid column preferences |
|
|
1289
|
+
| `reorderable` | `boolean` | `false` | Enable column drag reordering |
|
|
1290
|
+
| `rowReorderable` | `boolean` | `false` | Enable row drag reordering |
|
|
1291
|
+
| `multiSort` | `boolean` | `false` | Support multi-column sorting (Ctrl+Click) |
|
|
1292
|
+
| `showGlobalSearch` | `boolean` | `false` | Show global search input |
|
|
1293
|
+
| `pageSize` | `number` | `10` | Rows per page |
|
|
1294
|
+
| `page` | `number` | `1` | Active page index |
|
|
1295
|
+
| `total` | `number` | `0` | Total records (server paging) |
|
|
1296
|
+
| `selectable` | `boolean` | `false` | Render checkbox column for selections |
|
|
1297
|
+
| `striped` | `boolean` | `true` | Alternating row backgrounds |
|
|
1298
|
+
| `loading` | `boolean` | `false` | Show loading blur spinner |
|
|
1299
|
+
| `editable` | `boolean` | `false` | Enable double-click inline editor |
|
|
1300
|
+
| `sortMode` | `'client' \| 'server'` | `'client'` | Sorting location |
|
|
1301
|
+
| `filterMode` | `'client' \| 'server'` | `'client'` | Filtering location |
|
|
1302
|
+
| `groupMode` | `'client' \| 'server'` | `'client'` | Grouping location |
|
|
1303
|
+
| `pagingMode` | `'client' \| 'server'` | `'client'` | Pagination calculations |
|
|
1304
|
+
| `groupBy` | `GridGroupState \| null` | `null` | Column to group by |
|
|
1305
|
+
| `groupedData` | `GridGroupResult<T>[]` | `[]` | Grouped items (server mode) |
|
|
1306
|
+
| `showColumnChooser` | `boolean` | `false` | Show column hiding menu |
|
|
1307
|
+
| `cellSelection` | `boolean` | `false` | Enable grid cell click selection ranges |
|
|
1308
|
+
| `enableContextMenu` | `boolean` | `false` | Right-click context menus |
|
|
1309
|
+
| `keyboardNavigation` | `boolean` | `false` | Arrow key cell navigation |
|
|
1310
|
+
| `groupAggregations` | `boolean` | `false` | Calculate aggregate footers on groups |
|
|
947
1311
|
|
|
948
1312
|
##### Outputs
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
|
952
|
-
| `
|
|
953
|
-
| `
|
|
954
|
-
| `
|
|
955
|
-
| `
|
|
956
|
-
| `
|
|
957
|
-
| `
|
|
958
|
-
| `
|
|
959
|
-
| `
|
|
960
|
-
| `
|
|
1313
|
+
|
|
1314
|
+
| Output | Type | Description |
|
|
1315
|
+
| --------------------- | ------------------------------------------------------------ | ----------------------------------------- |
|
|
1316
|
+
| `columnReorder` | `{ columns: GridColumnDef<T>[] }` | Emitted when column positions change |
|
|
1317
|
+
| `rowReorder` | `{ previousIndex: number; currentIndex: number; data: T[] }` | Emitted when rows are dragged and dropped |
|
|
1318
|
+
| `rowClick` | `GridRowClickEvent<T>` | Emitted when a row is clicked |
|
|
1319
|
+
| `selectionChange` | `T[]` | Emitted with list of selected row items |
|
|
1320
|
+
| `sortChange` | `GridSortChangeEvent` | Emitted on sort changes |
|
|
1321
|
+
| `filterChange` | `GridFilterChangeEvent` | Emitted on filter changes |
|
|
1322
|
+
| `groupChange` | `GridGroupChangeEvent` | Emitted on grouping changes |
|
|
1323
|
+
| `pageChange` | `GridPageChangeEvent` | Emitted on page navigations |
|
|
1324
|
+
| `rowUpdate` | `GridRowUpdateEvent<T>` | Emitted when inline row changes are saved |
|
|
1325
|
+
| `cellSelectionChange` | `{ start, end }` | Emitted when range selection changes |
|
|
961
1326
|
|
|
962
1327
|
##### Public Methods
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
|
966
|
-
| `
|
|
967
|
-
| `
|
|
968
|
-
| `
|
|
969
|
-
| `
|
|
970
|
-
| `
|
|
1328
|
+
|
|
1329
|
+
| Method | Signature | Description |
|
|
1330
|
+
| -------------- | ------------------------------- | ------------------------------------ |
|
|
1331
|
+
| `goPage` | `(page: number): void` | Navigate to specific page |
|
|
1332
|
+
| `exportToJson` | `(): void` | Trigger JSON data export download |
|
|
1333
|
+
| `exportToCsv` | `(): void` | Trigger CSV format export download |
|
|
1334
|
+
| `beginEdit` | `(row: T, index: number): void` | Open inline row editor |
|
|
1335
|
+
| `saveEdit` | `(row: T, index: number): void` | Commit inline row editing changes |
|
|
1336
|
+
| `cancelEdit` | `(): void` | Discard inline editing draft changes |
|
|
971
1337
|
|
|
972
1338
|
#### TreeViewComponent (`ngx-tree-view`)
|
|
1339
|
+
|
|
973
1340
|
##### Inputs
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
|
977
|
-
| `
|
|
978
|
-
| `
|
|
979
|
-
| `
|
|
980
|
-
| `
|
|
1341
|
+
|
|
1342
|
+
| Input | Type | Default | Description |
|
|
1343
|
+
| ------------- | ---------------- | ------- | -------------------------------------- |
|
|
1344
|
+
| `nodes` | `TreeNode[]` | `[]` | Hierarchical nodes list |
|
|
1345
|
+
| `selectable` | `boolean` | `true` | Click selection active |
|
|
1346
|
+
| `checkable` | `boolean` | `false` | Show checkbox selectors next to titles |
|
|
1347
|
+
| `selectedId` | `string \| null` | `null` | Highlighted node ID |
|
|
1348
|
+
| `expandedIds` | `string[]` | `[]` | Initially expanded node IDs |
|
|
981
1349
|
|
|
982
1350
|
##### Outputs
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
|
986
|
-
| `
|
|
987
|
-
| `
|
|
988
|
-
| `
|
|
1351
|
+
|
|
1352
|
+
| Output | Type | Description |
|
|
1353
|
+
| -------------- | ------------------- | -------------------------------- |
|
|
1354
|
+
| `nodeSelect` | `TreeNodeEvent` | Emitted on node click |
|
|
1355
|
+
| `nodeExpand` | `TreeNodeEvent` | Emitted on node expansion |
|
|
1356
|
+
| `nodeCollapse` | `TreeNodeEvent` | Emitted on node collapse |
|
|
1357
|
+
| `checkChange` | `{ node, checked }` | Emitted when check state changes |
|
|
989
1358
|
|
|
990
1359
|
##### Public Methods
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
|
994
|
-
| `
|
|
1360
|
+
|
|
1361
|
+
| Method | Signature | Description |
|
|
1362
|
+
| ------------- | ---------- | ----------------------------------- |
|
|
1363
|
+
| `expandAll` | `(): void` | Expand all expandable tree branches |
|
|
1364
|
+
| `collapseAll` | `(): void` | Collapse all open tree branches |
|
|
995
1365
|
|
|
996
1366
|
#### ListViewComponent (`ngx-list-view`)
|
|
1367
|
+
|
|
997
1368
|
##### Inputs
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
|
1001
|
-
| `
|
|
1002
|
-
| `
|
|
1003
|
-
| `
|
|
1004
|
-
| `
|
|
1005
|
-
| `
|
|
1369
|
+
|
|
1370
|
+
| Input | Type | Default | Description |
|
|
1371
|
+
| ------------- | --------- | --------- | ----------------------------------- |
|
|
1372
|
+
| `items` | `T[]` | `[]` | Items array |
|
|
1373
|
+
| `selectable` | `boolean` | `true` | Row selection active |
|
|
1374
|
+
| `multiselect` | `boolean` | `false` | Support multi-item selections |
|
|
1375
|
+
| `loading` | `boolean` | `false` | Show loading overlay |
|
|
1376
|
+
| `labelField` | `string` | `'label'` | Object key property for item labels |
|
|
1377
|
+
| `pageSize` | `number` | `0` | Enable pagination when > 0 |
|
|
1006
1378
|
|
|
1007
1379
|
##### Outputs
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
|
1380
|
+
|
|
1381
|
+
| Output | Type | Description |
|
|
1382
|
+
| ----------------- | --------------------------- | ---------------------------- |
|
|
1383
|
+
| `itemClick` | `ListViewItemClickEvent<T>` | Emitted when item clicked |
|
|
1011
1384
|
| `selectionChange` | `ListViewSelectionEvent<T>` | Emitted on selection toggles |
|
|
1012
|
-
| `pageChange`
|
|
1385
|
+
| `pageChange` | `ListViewPageChangeEvent` | Emitted on page navigations |
|
|
1013
1386
|
|
|
1014
1387
|
---
|
|
1015
1388
|
|
|
1016
1389
|
### Dialog and Overlay
|
|
1017
1390
|
|
|
1018
1391
|
#### How to Use Dialog and Overlay
|
|
1392
|
+
|
|
1019
1393
|
```typescript
|
|
1020
1394
|
import { Component } from '@angular/core';
|
|
1021
1395
|
import { DialogService } from 'ngx-core-components/dialog';
|
|
@@ -1033,14 +1407,14 @@ import { TooltipDirective, PopoverComponent } from 'ngx-core-components/dialog';
|
|
|
1033
1407
|
<ngx-popover [anchor]="btn" title="Information">
|
|
1034
1408
|
<p>This is a popover overlay.</p>
|
|
1035
1409
|
</ngx-popover>
|
|
1036
|
-
|
|
1410
|
+
`,
|
|
1037
1411
|
})
|
|
1038
1412
|
export class OverlayExampleComponent {
|
|
1039
1413
|
constructor(private dialogService: DialogService) {}
|
|
1040
1414
|
|
|
1041
1415
|
openModal() {
|
|
1042
1416
|
const ref = this.dialogService.open(MyDialogContent, {
|
|
1043
|
-
data: { name: 'Admin' }
|
|
1417
|
+
data: { name: 'Admin' },
|
|
1044
1418
|
});
|
|
1045
1419
|
ref.closed.subscribe(result => console.log('Closed:', result));
|
|
1046
1420
|
}
|
|
@@ -1048,54 +1422,62 @@ export class OverlayExampleComponent {
|
|
|
1048
1422
|
|
|
1049
1423
|
@Component({
|
|
1050
1424
|
standalone: true,
|
|
1051
|
-
template: `<h3>Hello {{ dialogData.name }}</h3
|
|
1425
|
+
template: `<h3>Hello {{ dialogData.name }}</h3>`,
|
|
1052
1426
|
})
|
|
1053
1427
|
export class MyDialogContent {
|
|
1054
1428
|
// Inject properties inside standalone dialog components using standard inputs
|
|
1055
|
-
dialogData: any;
|
|
1429
|
+
dialogData: any;
|
|
1056
1430
|
dialogRef: any;
|
|
1057
1431
|
}
|
|
1058
1432
|
```
|
|
1059
1433
|
|
|
1060
1434
|
#### DialogService (Injectable)
|
|
1435
|
+
|
|
1061
1436
|
##### Methods
|
|
1062
|
-
|
|
1063
|
-
|
|
1437
|
+
|
|
1438
|
+
| Method | Signature | Description |
|
|
1439
|
+
| ------ | --------------------------------------------------------------------------- | ---------------------------- |
|
|
1064
1440
|
| `open` | `open<C, D, R>(component: Type<C>, config?: DialogConfig<D>): DialogRef<R>` | Open floating overlay window |
|
|
1065
1441
|
|
|
1066
1442
|
##### DialogConfig Interface
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
|
1070
|
-
| `
|
|
1071
|
-
| `
|
|
1072
|
-
| `
|
|
1073
|
-
| `
|
|
1443
|
+
|
|
1444
|
+
| Property | Type | Default | Description |
|
|
1445
|
+
| ----------------- | -------------------- | ----------- | --------------------------------------------- |
|
|
1446
|
+
| `data` | `D` | `undefined` | Custom data inputs passed to dialog component |
|
|
1447
|
+
| `closeOnBackdrop` | `boolean` | `true` | Close modal on background mouse click |
|
|
1448
|
+
| `panelClass` | `string \| string[]` | `[]` | Dialog container class customizations |
|
|
1449
|
+
| `maxWidth` | `string` | `'560px'` | Max CSS size limits |
|
|
1450
|
+
| `ariaLabel` | `string` | `'Dialog'` | Screen reader description |
|
|
1074
1451
|
|
|
1075
1452
|
#### TooltipDirective (`ngxTooltip`)
|
|
1453
|
+
|
|
1076
1454
|
##### Inputs
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
|
1080
|
-
| `
|
|
1081
|
-
| `
|
|
1082
|
-
| `
|
|
1455
|
+
|
|
1456
|
+
| Input | Type | Default | Description |
|
|
1457
|
+
| ----------------- | ---------------------------------------- | ------- | -------------------------------------------- |
|
|
1458
|
+
| `ngxTooltip` | `string` | `''` | Text contents of the popup tooltip box |
|
|
1459
|
+
| `tooltipPosition` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'top'` | Placement side |
|
|
1460
|
+
| `tooltipDelay` | `number` | `300` | Delay in milliseconds before showing tooltip |
|
|
1461
|
+
| `tooltipDisabled` | `boolean` | `false` | Disable hover behavior |
|
|
1083
1462
|
|
|
1084
1463
|
#### PopoverComponent (`ngx-popover`)
|
|
1464
|
+
|
|
1085
1465
|
##### Inputs
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
|
1089
|
-
| `
|
|
1090
|
-
| `
|
|
1091
|
-
| `
|
|
1092
|
-
| `
|
|
1093
|
-
| `
|
|
1466
|
+
|
|
1467
|
+
| Input | Type | Default | Description |
|
|
1468
|
+
| ---------- | ---------------------------------------- | ------------ | ----------------------------------- |
|
|
1469
|
+
| `anchor` | `ElementRef \| HTMLElement` | **required** | Relative positioning anchor element |
|
|
1470
|
+
| `title` | `string` | `''` | Popover header header text |
|
|
1471
|
+
| `position` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Alignment layout |
|
|
1472
|
+
| `width` | `string` | `'250px'` | CSS popup width limits |
|
|
1473
|
+
| `closable` | `boolean` | `true` | Show close X button |
|
|
1474
|
+
| `showOn` | `'click' \| 'hover'` | `'click'` | Trigger event action |
|
|
1094
1475
|
|
|
1095
1476
|
##### Outputs
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
|
1477
|
+
|
|
1478
|
+
| Output | Type | Description |
|
|
1479
|
+
| ------- | ------ | ------------------------- |
|
|
1480
|
+
| `open` | `void` | Emitted when popup opens |
|
|
1099
1481
|
| `close` | `void` | Emitted when popup closes |
|
|
1100
1482
|
|
|
1101
1483
|
---
|
|
@@ -1103,9 +1485,16 @@ export class MyDialogContent {
|
|
|
1103
1485
|
### Buttons and Actions
|
|
1104
1486
|
|
|
1105
1487
|
#### How to Use Buttons & Actions
|
|
1488
|
+
|
|
1106
1489
|
```typescript
|
|
1107
1490
|
import { Component, signal } from '@angular/core';
|
|
1108
|
-
import {
|
|
1491
|
+
import {
|
|
1492
|
+
ButtonComponent,
|
|
1493
|
+
ChipComponent,
|
|
1494
|
+
ChipListComponent,
|
|
1495
|
+
DropDownButtonComponent,
|
|
1496
|
+
SpeedDialComponent,
|
|
1497
|
+
} from 'ngx-core-components/buttons';
|
|
1109
1498
|
|
|
1110
1499
|
@Component({
|
|
1111
1500
|
standalone: true,
|
|
@@ -1116,78 +1505,91 @@ import { ButtonComponent, ChipComponent, ChipListComponent, DropDownButtonCompon
|
|
|
1116
1505
|
|
|
1117
1506
|
<!-- Speed Dial FAB -->
|
|
1118
1507
|
<ngx-speed-dial [items]="actions" direction="top" (itemClick)="onFabClick($event)" />
|
|
1119
|
-
|
|
1508
|
+
`,
|
|
1120
1509
|
})
|
|
1121
1510
|
export class ButtonExampleComponent {
|
|
1122
1511
|
loading = signal(false);
|
|
1123
1512
|
actions = [
|
|
1124
1513
|
{ id: 'pdf', icon: '📄', label: 'Export PDF' },
|
|
1125
|
-
{ id: 'email', icon: '✉️', label: 'Send Email' }
|
|
1514
|
+
{ id: 'email', icon: '✉️', label: 'Send Email' },
|
|
1126
1515
|
];
|
|
1127
|
-
onFabClick(ev: any) {
|
|
1516
|
+
onFabClick(ev: any) {
|
|
1517
|
+
console.log('FAB Clicked:', ev.id);
|
|
1518
|
+
}
|
|
1128
1519
|
}
|
|
1129
1520
|
```
|
|
1130
1521
|
|
|
1131
1522
|
#### ButtonComponent (`ngx-button` / Attribute selector)
|
|
1523
|
+
|
|
1132
1524
|
##### Inputs
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
|
1136
|
-
| `
|
|
1137
|
-
| `
|
|
1138
|
-
| `
|
|
1139
|
-
| `
|
|
1140
|
-
| `
|
|
1141
|
-
| `
|
|
1142
|
-
| `
|
|
1143
|
-
| `
|
|
1525
|
+
|
|
1526
|
+
| Input | Type | Default | Description |
|
|
1527
|
+
| ------------ | --------------------------------- | ------------- | ------------------------------------------------------------ |
|
|
1528
|
+
| `variant` | `ButtonVariant` | `'primary'` | Visual style variant (primary, danger, ghost, link, success) |
|
|
1529
|
+
| `size` | `ButtonSize` | `'md'` | Button height size (sm, md, lg) |
|
|
1530
|
+
| `shape` | `ButtonShape` | `'rectangle'` | Button curves (rectangle, rounded, pill, square) |
|
|
1531
|
+
| `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | Button type |
|
|
1532
|
+
| `disabled` | `boolean` | `false` | Disabled status |
|
|
1533
|
+
| `loading` | `boolean` | `false` | Loading status (replaces text/icon with spinner) |
|
|
1534
|
+
| `prefixIcon` | `string` | `''` | Icon identifier displayed before label |
|
|
1535
|
+
| `suffixIcon` | `string` | `''` | Icon identifier displayed after label |
|
|
1536
|
+
| `ariaLabel` | `string` | `''` | Accessibility label description |
|
|
1144
1537
|
|
|
1145
1538
|
##### Outputs
|
|
1146
|
-
|
|
1147
|
-
|
|
1539
|
+
|
|
1540
|
+
| Output | Type | Description |
|
|
1541
|
+
| --------- | ------------ | ---------------------------- |
|
|
1148
1542
|
| `clicked` | `MouseEvent` | Native click event emissions |
|
|
1149
1543
|
|
|
1150
1544
|
#### ButtonGroupComponent (`ngx-button-group`)
|
|
1545
|
+
|
|
1151
1546
|
##### Inputs
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
|
1155
|
-
| `
|
|
1547
|
+
|
|
1548
|
+
| Input | Type | Default | Description |
|
|
1549
|
+
| ----------- | --------- | ---------------- | -------------------------- |
|
|
1550
|
+
| `vertical` | `boolean` | `false` | Stack buttons vertically |
|
|
1551
|
+
| `ariaLabel` | `string` | `'Button group'` | Group accessibility labels |
|
|
1156
1552
|
|
|
1157
1553
|
#### ChipComponent (`ngx-chip`)
|
|
1554
|
+
|
|
1158
1555
|
##### Inputs
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
|
1162
|
-
| `
|
|
1163
|
-
| `
|
|
1164
|
-
| `
|
|
1165
|
-
| `
|
|
1166
|
-
| `
|
|
1167
|
-
| `
|
|
1556
|
+
|
|
1557
|
+
| Input | Type | Default | Description |
|
|
1558
|
+
| ------------ | ------------- | ----------- | -------------------------------------------------------- |
|
|
1559
|
+
| `variant` | `ChipVariant` | `'default'` | Visual style variant (success, error, warning, outlined) |
|
|
1560
|
+
| `icon` | `string` | `''` | Lead icon |
|
|
1561
|
+
| `selected` | `boolean` | `false` | Highlighted selection state |
|
|
1562
|
+
| `removable` | `boolean` | `false` | Render ✕ icon on right |
|
|
1563
|
+
| `disabled` | `boolean` | `false` | Disable interactions |
|
|
1564
|
+
| `selectable` | `boolean` | `false` | Enable selection click behaviors |
|
|
1565
|
+
| `label` | `string` | `''` | Chip display text |
|
|
1168
1566
|
|
|
1169
1567
|
##### Outputs
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
|
1568
|
+
|
|
1569
|
+
| Output | Type | Description |
|
|
1570
|
+
| ---------------- | --------- | ------------------------------ |
|
|
1571
|
+
| `removed` | `void` | Emitted when ✕ is clicked |
|
|
1173
1572
|
| `selectedChange` | `boolean` | Toggled selection state change |
|
|
1174
1573
|
|
|
1175
1574
|
#### SpeedDialComponent (`ngx-speed-dial`)
|
|
1575
|
+
|
|
1176
1576
|
##### Inputs
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
|
1180
|
-
| `
|
|
1181
|
-
| `
|
|
1182
|
-
| `
|
|
1183
|
-
| `
|
|
1184
|
-
| `
|
|
1185
|
-
| `
|
|
1186
|
-
| `
|
|
1577
|
+
|
|
1578
|
+
| Input | Type | Default | Description |
|
|
1579
|
+
| ---------------------- | ------------------------------------------------ | ------------ | --------------------------------------------- |
|
|
1580
|
+
| `items` | `SpeedDialItem[]` | **required** | Float actions list |
|
|
1581
|
+
| `icon` | `string` | `'+'` | FAB closed icon |
|
|
1582
|
+
| `activeIcon` | `string` | `'✕'` | FAB opened icon |
|
|
1583
|
+
| `direction` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'top'` | Direction of menu flyouts |
|
|
1584
|
+
| `theme` | `'primary' \| 'secondary' \| 'accent' \| 'dark'` | `'primary'` | Main FAB color theme |
|
|
1585
|
+
| `showLabels` | `boolean` | `true` | Show button labels |
|
|
1586
|
+
| `closeOnSelect` | `boolean` | `true` | Auto collapse after clicking a subaction item |
|
|
1587
|
+
| `collapseOnLeaveMouse` | `boolean` | `true` | Auto collapse when mouse pointer leaves scope |
|
|
1187
1588
|
|
|
1188
1589
|
##### Outputs
|
|
1189
|
-
|
|
1190
|
-
|
|
1590
|
+
|
|
1591
|
+
| Output | Type | Description |
|
|
1592
|
+
| ----------- | --------------- | -------------------- |
|
|
1191
1593
|
| `itemClick` | `SpeedDialItem` | Action item selected |
|
|
1192
1594
|
|
|
1193
1595
|
---
|
|
@@ -1195,9 +1597,16 @@ export class ButtonExampleComponent {
|
|
|
1195
1597
|
### Layout
|
|
1196
1598
|
|
|
1197
1599
|
#### How to Use Layout Components
|
|
1600
|
+
|
|
1198
1601
|
```typescript
|
|
1199
1602
|
import { Component } from '@angular/core';
|
|
1200
|
-
import {
|
|
1603
|
+
import {
|
|
1604
|
+
CardComponent,
|
|
1605
|
+
TabStripComponent,
|
|
1606
|
+
TabComponent,
|
|
1607
|
+
AccordionComponent,
|
|
1608
|
+
SplitterComponent,
|
|
1609
|
+
} from 'ngx-core-components/layout';
|
|
1201
1610
|
|
|
1202
1611
|
@Component({
|
|
1203
1612
|
standalone: true,
|
|
@@ -1212,92 +1621,121 @@ import { CardComponent, TabStripComponent, TabComponent, AccordionComponent, Spl
|
|
|
1212
1621
|
<ngx-tab-strip>
|
|
1213
1622
|
<ngx-tab title="Project Info">
|
|
1214
1623
|
<!-- Card Component -->
|
|
1215
|
-
<ngx-card title="Dashboard Details" variant="outlined">
|
|
1216
|
-
Welcome to layout dashboard.
|
|
1217
|
-
</ngx-card>
|
|
1624
|
+
<ngx-card title="Dashboard Details" variant="outlined"> Welcome to layout dashboard. </ngx-card>
|
|
1218
1625
|
</ngx-tab>
|
|
1219
1626
|
<ngx-tab title="Settings">Settings Area</ngx-tab>
|
|
1220
1627
|
</ngx-tab-strip>
|
|
1221
1628
|
</div>
|
|
1222
1629
|
</ngx-splitter>
|
|
1223
1630
|
</div>
|
|
1224
|
-
|
|
1631
|
+
`,
|
|
1225
1632
|
})
|
|
1226
1633
|
export class LayoutExampleComponent {}
|
|
1227
1634
|
```
|
|
1228
1635
|
|
|
1229
1636
|
#### CardComponent (`ngx-card`)
|
|
1637
|
+
|
|
1230
1638
|
##### Inputs
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
|
1234
|
-
| `
|
|
1235
|
-
| `
|
|
1236
|
-
| `
|
|
1237
|
-
| `
|
|
1238
|
-
| `
|
|
1239
|
-
| `
|
|
1240
|
-
| `
|
|
1241
|
-
| `
|
|
1639
|
+
|
|
1640
|
+
| Input | Type | Default | Description |
|
|
1641
|
+
| ------------ | ------------- | ----------- | ------------------------------------------------- |
|
|
1642
|
+
| `title` | `string` | `''` | Header title |
|
|
1643
|
+
| `subtitle` | `string` | `''` | Header subtitle |
|
|
1644
|
+
| `headerIcon` | `string` | `''` | Header title icon |
|
|
1645
|
+
| `imageUrl` | `string` | `''` | Large hero image URL |
|
|
1646
|
+
| `imageAlt` | `string` | `''` | Alt tag description |
|
|
1647
|
+
| `variant` | `CardVariant` | `'default'` | Visual outline style (elevated, outlined, filled) |
|
|
1648
|
+
| `hoverable` | `boolean` | `false` | Shadow hover/lift interactive behaviors |
|
|
1649
|
+
| `selectable` | `boolean` | `false` | Card selection active click behaviors |
|
|
1650
|
+
| `selected` | `boolean` | `false` | Highlighted selection state |
|
|
1242
1651
|
|
|
1243
1652
|
##### Outputs
|
|
1244
|
-
|
|
1245
|
-
|
|
1653
|
+
|
|
1654
|
+
| Output | Type | Description |
|
|
1655
|
+
| ----------- | ------------ | -------------------------------------------------------- |
|
|
1246
1656
|
| `cardClick` | `MouseEvent` | Click events (only if hoverable or selectable is active) |
|
|
1247
1657
|
|
|
1248
1658
|
#### TabStripComponent (`ngx-tab-strip`)
|
|
1659
|
+
|
|
1249
1660
|
##### Inputs
|
|
1250
|
-
|
|
1251
|
-
|
|
1661
|
+
|
|
1662
|
+
| Input | Type | Default | Description |
|
|
1663
|
+
| ---------- | ---------------------------------------- | ------- | --------------------------------------- |
|
|
1252
1664
|
| `position` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'top'` | Side position alignment of strip labels |
|
|
1253
1665
|
|
|
1254
1666
|
##### Outputs
|
|
1255
|
-
|
|
1256
|
-
|
|
1667
|
+
|
|
1668
|
+
| Output | Type | Description |
|
|
1669
|
+
| ----------- | -------- | ------------------------ |
|
|
1257
1670
|
| `tabChange` | `number` | Active tab index changed |
|
|
1671
|
+
| `tabClose` | `number` | Index of the tab closed |
|
|
1672
|
+
|
|
1673
|
+
Horizontal tab lists reverse `ArrowLeft` and `ArrowRight` navigation under
|
|
1674
|
+
`dir="rtl"` so keyboard movement follows the visual direction.
|
|
1675
|
+
Closable tabs render the close action as a separate, naturally tabbable button.
|
|
1676
|
+
Its target is at least 24 by 24 pixels and can be enlarged with
|
|
1677
|
+
`--ngx-tab-close-target-size`. Its accessible name and tooltip use the
|
|
1678
|
+
`layout.closeTab` translation.
|
|
1258
1679
|
|
|
1259
1680
|
#### TabComponent (`ngx-tab`)
|
|
1681
|
+
|
|
1260
1682
|
##### Inputs
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
|
1264
|
-
| `
|
|
1265
|
-
| `
|
|
1266
|
-
| `
|
|
1683
|
+
|
|
1684
|
+
| Input | Type | Default | Description |
|
|
1685
|
+
| ---------- | ------------------ | ------------ | ------------------------------ |
|
|
1686
|
+
| `title` | `string` | **required** | Tab selection title text |
|
|
1687
|
+
| `icon` | `string` | `''` | Title prefix icon |
|
|
1688
|
+
| `disabled` | `boolean` | `false` | Disables selecting tab |
|
|
1689
|
+
| `badge` | `string \| number` | `''` | Text/counter badge after label |
|
|
1690
|
+
| `closable` | `boolean` | `false` | Show a separate close button |
|
|
1691
|
+
|
|
1692
|
+
##### Outputs
|
|
1693
|
+
|
|
1694
|
+
| Output | Type | Description |
|
|
1695
|
+
| ---------- | ------ | -------------------------- |
|
|
1696
|
+
| `tabClose` | `void` | Tab's close button clicked |
|
|
1267
1697
|
|
|
1268
1698
|
#### AccordionComponent (`ngx-accordion`)
|
|
1699
|
+
|
|
1269
1700
|
##### Inputs
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
|
1273
|
-
| `
|
|
1701
|
+
|
|
1702
|
+
| Input | Type | Default | Description |
|
|
1703
|
+
| ------- | ----------------- | ------- | ------------------------------------- |
|
|
1704
|
+
| `items` | `AccordionItem[]` | `[]` | Content details |
|
|
1705
|
+
| `multi` | `boolean` | `false` | Expand multiple panels simultaneously |
|
|
1274
1706
|
|
|
1275
1707
|
#### StepperComponent (`ngx-stepper`)
|
|
1708
|
+
|
|
1276
1709
|
##### Inputs
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
|
1280
|
-
| `
|
|
1281
|
-
| `
|
|
1282
|
-
| `
|
|
1710
|
+
|
|
1711
|
+
| Input | Type | Default | Description |
|
|
1712
|
+
| ------------- | ---------------------------- | -------------- | ------------------------------------ |
|
|
1713
|
+
| `steps` | `StepperStep[]` | `[]` | Workflow stage labels |
|
|
1714
|
+
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Stepper header alignment layout |
|
|
1715
|
+
| `showContent` | `boolean` | `true` | Render inner projected content block |
|
|
1716
|
+
| `showActions` | `boolean` | `true` | Show default Back/Next buttons |
|
|
1283
1717
|
|
|
1284
1718
|
##### Outputs
|
|
1285
|
-
|
|
1286
|
-
|
|
1719
|
+
|
|
1720
|
+
| Output | Type | Description |
|
|
1721
|
+
| ------------ | -------- | -------------------------------- |
|
|
1287
1722
|
| `stepChange` | `number` | Emitted when active step changes |
|
|
1288
1723
|
|
|
1289
1724
|
#### SplitterComponent (`ngx-splitter`)
|
|
1725
|
+
|
|
1290
1726
|
##### Inputs
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
|
1294
|
-
| `
|
|
1295
|
-
| `
|
|
1296
|
-
| `
|
|
1727
|
+
|
|
1728
|
+
| Input | Type | Default | Description |
|
|
1729
|
+
| ------------- | ---------------------------- | -------------- | ------------------------------------------------- |
|
|
1730
|
+
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Resizing splitter direction |
|
|
1731
|
+
| `size` | `string \| number \| null` | `null` | Hardcoded programmatic size width/height of pane1 |
|
|
1732
|
+
| `initialSize` | `string \| number` | `'50%'` | First load default split percentage |
|
|
1733
|
+
| `min` | `number` | `60` | Min bounds constraint in pixels |
|
|
1297
1734
|
|
|
1298
1735
|
##### Outputs
|
|
1299
|
-
|
|
1300
|
-
|
|
1736
|
+
|
|
1737
|
+
| Output | Type | Description |
|
|
1738
|
+
| ------------ | -------- | --------------------------------------- |
|
|
1301
1739
|
| `sizeChange` | `string` | Emitted during partition drag movements |
|
|
1302
1740
|
|
|
1303
1741
|
---
|
|
@@ -1305,9 +1743,16 @@ export class LayoutExampleComponent {}
|
|
|
1305
1743
|
### Feedback
|
|
1306
1744
|
|
|
1307
1745
|
#### How to Use Feedback Components
|
|
1746
|
+
|
|
1308
1747
|
```typescript
|
|
1309
1748
|
import { Component } from '@angular/core';
|
|
1310
|
-
import {
|
|
1749
|
+
import {
|
|
1750
|
+
BadgeComponent,
|
|
1751
|
+
ProgressBarComponent,
|
|
1752
|
+
SkeletonComponent,
|
|
1753
|
+
AlertComponent,
|
|
1754
|
+
StatCardComponent,
|
|
1755
|
+
} from 'ngx-core-components/feedback';
|
|
1311
1756
|
import { NotificationService } from 'ngx-core-components/feedback';
|
|
1312
1757
|
|
|
1313
1758
|
@Component({
|
|
@@ -1322,7 +1767,7 @@ import { NotificationService } from 'ngx-core-components/feedback';
|
|
|
1322
1767
|
|
|
1323
1768
|
<!-- Alert -->
|
|
1324
1769
|
<ngx-alert variant="warning" title="Warning Action" message="Process takes longer than expected." />
|
|
1325
|
-
|
|
1770
|
+
`,
|
|
1326
1771
|
})
|
|
1327
1772
|
export class FeedbackExampleComponent {
|
|
1328
1773
|
progress = 75;
|
|
@@ -1335,62 +1780,77 @@ export class FeedbackExampleComponent {
|
|
|
1335
1780
|
```
|
|
1336
1781
|
|
|
1337
1782
|
#### BadgeComponent (`ngx-badge`)
|
|
1783
|
+
|
|
1338
1784
|
##### Inputs
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
|
1342
|
-
| `
|
|
1343
|
-
| `
|
|
1344
|
-
| `
|
|
1345
|
-
| `
|
|
1785
|
+
|
|
1786
|
+
| Input | Type | Default | Description |
|
|
1787
|
+
| ------------ | ------------------ | ------------- | ----------------------------------------------------------- |
|
|
1788
|
+
| `content` | `string \| number` | `''` | Label contents |
|
|
1789
|
+
| `variant` | `BadgeVariant` | `'primary'` | Color state variants (success, danger, info, warning, dark) |
|
|
1790
|
+
| `dot` | `boolean` | `false` | Small indicator dot mode (hides content labels) |
|
|
1791
|
+
| `positioned` | `boolean` | `false` | Absolute corner positioning relative to parent context |
|
|
1792
|
+
| `position` | `BadgePosition` | `'top-right'` | Corner alignments |
|
|
1346
1793
|
|
|
1347
1794
|
#### ProgressBarComponent (`ngx-progress-bar`)
|
|
1795
|
+
|
|
1348
1796
|
##### Inputs
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
|
1352
|
-
| `
|
|
1353
|
-
| `
|
|
1354
|
-
| `
|
|
1355
|
-
| `
|
|
1356
|
-
| `
|
|
1357
|
-
| `
|
|
1358
|
-
| `
|
|
1797
|
+
|
|
1798
|
+
| Input | Type | Default | Description |
|
|
1799
|
+
| --------------- | ----------------- | ----------- | --------------------------------------------------- |
|
|
1800
|
+
| `value` | `number` | `0` | Current scale |
|
|
1801
|
+
| `min` | `number` | `0` | Min bounds |
|
|
1802
|
+
| `max` | `number` | `100` | Max bounds |
|
|
1803
|
+
| `label` | `string` | `''` | Descriptive header text |
|
|
1804
|
+
| `variant` | `ProgressVariant` | `'primary'` | Theme color |
|
|
1805
|
+
| `height` | `number` | `8` | Height height in pixels |
|
|
1806
|
+
| `showValue` | `boolean` | `false` | Display percentage layout text |
|
|
1807
|
+
| `indeterminate` | `boolean` | `false` | Continuous sliding animations mode (ignores values) |
|
|
1359
1808
|
|
|
1360
1809
|
#### AlertComponent (`ngx-alert`)
|
|
1810
|
+
|
|
1361
1811
|
##### Inputs
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
|
1365
|
-
| `
|
|
1366
|
-
| `
|
|
1367
|
-
| `
|
|
1368
|
-
| `
|
|
1369
|
-
| `
|
|
1812
|
+
|
|
1813
|
+
| Input | Type | Default | Description |
|
|
1814
|
+
| ------------- | ------------------- | --------- | ------------------------------------------------ |
|
|
1815
|
+
| `variant` | `AlertVariant` | `'info'` | Theme variations (info, success, warning, error) |
|
|
1816
|
+
| `title` | `string` | `''` | Large bold header text |
|
|
1817
|
+
| `message` | `string` | `''` | Paragraph text |
|
|
1818
|
+
| `dismissible` | `boolean` | `true` | Render closing ✕ button |
|
|
1819
|
+
| `actionLabel` | `string` | `''` | CTA button label |
|
|
1820
|
+
| `theme` | `'light' \| 'dark'` | `'light'` | Dark mode options |
|
|
1370
1821
|
|
|
1371
1822
|
##### Outputs
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
|
1375
|
-
| `
|
|
1823
|
+
|
|
1824
|
+
| Output | Type | Description |
|
|
1825
|
+
| ------------- | ------ | --------------------------------------- |
|
|
1826
|
+
| `dismissed` | `void` | Alert closed after transition completed |
|
|
1827
|
+
| `actionClick` | `void` | Action button clicked |
|
|
1376
1828
|
|
|
1377
1829
|
#### NotificationService (Injectable)
|
|
1830
|
+
|
|
1378
1831
|
##### Methods
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
|
1382
|
-
| `
|
|
1383
|
-
| `
|
|
1384
|
-
| `
|
|
1832
|
+
|
|
1833
|
+
| Method | Signature | Description |
|
|
1834
|
+
| --------- | ------------------------------------------------------- | ------------------- |
|
|
1835
|
+
| `success` | `(msg: string, title?: string, opts?: options): number` | Success toast |
|
|
1836
|
+
| `error` | `(msg: string, title?: string, opts?: options): number` | Error toast |
|
|
1837
|
+
| `info` | `(msg: string, title?: string, opts?: options): number` | Informational toast |
|
|
1838
|
+
| `warning` | `(msg: string, title?: string, opts?: options): number` | Warning toast |
|
|
1385
1839
|
|
|
1386
1840
|
---
|
|
1387
1841
|
|
|
1388
1842
|
### Navigation
|
|
1389
1843
|
|
|
1390
1844
|
#### How to Use Navigation Components
|
|
1845
|
+
|
|
1391
1846
|
```typescript
|
|
1392
1847
|
import { Component } from '@angular/core';
|
|
1393
|
-
import {
|
|
1848
|
+
import {
|
|
1849
|
+
BreadcrumbComponent,
|
|
1850
|
+
MenuComponent,
|
|
1851
|
+
CommandPaletteComponent,
|
|
1852
|
+
ContextMenuComponent,
|
|
1853
|
+
} from 'ngx-core-components/navigation';
|
|
1394
1854
|
|
|
1395
1855
|
@Component({
|
|
1396
1856
|
standalone: true,
|
|
@@ -1401,67 +1861,76 @@ import { BreadcrumbComponent, MenuComponent, CommandPaletteComponent, ContextMen
|
|
|
1401
1861
|
|
|
1402
1862
|
<!-- Menu -->
|
|
1403
1863
|
<ngx-menu [items]="menuItems" activeItem="Profile" />
|
|
1404
|
-
|
|
1864
|
+
`,
|
|
1405
1865
|
})
|
|
1406
1866
|
export class NavExampleComponent {
|
|
1407
|
-
breadcrumbItems = [
|
|
1408
|
-
{ label: 'Home', url: '/' },
|
|
1409
|
-
{ label: 'Admin', url: '/admin' },
|
|
1410
|
-
{ label: 'System Settings' }
|
|
1411
|
-
];
|
|
1867
|
+
breadcrumbItems = [{ label: 'Home', url: '/' }, { label: 'Admin', url: '/admin' }, { label: 'System Settings' }];
|
|
1412
1868
|
|
|
1413
1869
|
menuItems = [
|
|
1414
1870
|
{ label: 'Dashboard', icon: '📊', url: '/dashboard' },
|
|
1415
|
-
{
|
|
1871
|
+
{
|
|
1872
|
+
label: 'Settings',
|
|
1873
|
+
icon: '⚙️',
|
|
1874
|
+
children: [
|
|
1416
1875
|
{ label: 'Profile', url: '/profile' },
|
|
1417
|
-
{ label: 'Security', url: '/security' }
|
|
1418
|
-
]
|
|
1419
|
-
}
|
|
1876
|
+
{ label: 'Security', url: '/security' },
|
|
1877
|
+
],
|
|
1878
|
+
},
|
|
1420
1879
|
];
|
|
1421
1880
|
}
|
|
1422
1881
|
```
|
|
1423
1882
|
|
|
1424
1883
|
#### BreadcrumbComponent (`ngx-breadcrumb`)
|
|
1884
|
+
|
|
1425
1885
|
##### Inputs
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
|
1429
|
-
| `
|
|
1886
|
+
|
|
1887
|
+
| Input | Type | Default | Description |
|
|
1888
|
+
| ----------- | ------------------ | ------- | ---------------------------- |
|
|
1889
|
+
| `items` | `BreadcrumbItem[]` | `[]` | Navigation steps |
|
|
1890
|
+
| `separator` | `string` | `'/'` | Character division indicator |
|
|
1430
1891
|
|
|
1431
1892
|
##### Outputs
|
|
1432
|
-
|
|
1433
|
-
|
|
1893
|
+
|
|
1894
|
+
| Output | Type | Description |
|
|
1895
|
+
| ----------- | ---------------- | ------------------------------------- |
|
|
1434
1896
|
| `itemClick` | `BreadcrumbItem` | Emitted when link clicks are selected |
|
|
1435
1897
|
|
|
1436
1898
|
#### MenuComponent (`ngx-menu`)
|
|
1899
|
+
|
|
1437
1900
|
##### Inputs
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
|
1441
|
-
| `
|
|
1442
|
-
| `
|
|
1901
|
+
|
|
1902
|
+
| Input | Type | Default | Description |
|
|
1903
|
+
| ------------- | ---------------------------- | -------------- | ---------------------------------------- |
|
|
1904
|
+
| `items` | `MenuItem[]` | `[]` | Multilevel navigation links |
|
|
1905
|
+
| `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Alignment layout |
|
|
1906
|
+
| `activeItem` | `string` | `''` | Matching labels to highlight active link |
|
|
1443
1907
|
|
|
1444
1908
|
##### Outputs
|
|
1445
|
-
|
|
1446
|
-
|
|
1909
|
+
|
|
1910
|
+
| Output | Type | Description |
|
|
1911
|
+
| ----------- | ---------- | -------------------------------------- |
|
|
1447
1912
|
| `itemClick` | `MenuItem` | Emitted when leaf link item is clicked |
|
|
1448
1913
|
|
|
1449
1914
|
#### CommandPaletteComponent (`ngx-command-palette`)
|
|
1915
|
+
|
|
1450
1916
|
##### Inputs
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
|
1454
|
-
| `
|
|
1917
|
+
|
|
1918
|
+
| Input | Type | Default | Description |
|
|
1919
|
+
| ------------- | --------------- | ------------------------------- | ------------------------ |
|
|
1920
|
+
| `commands` | `CommandItem[]` | **required** | Selectable actions list |
|
|
1921
|
+
| `placeholder` | `string` | `'Type a command or search...'` | Search input placeholder |
|
|
1455
1922
|
|
|
1456
1923
|
##### Outputs
|
|
1457
|
-
|
|
1458
|
-
|
|
1924
|
+
|
|
1925
|
+
| Output | Type | Description |
|
|
1926
|
+
| ----------------- | ------------- | ------------------------------------- |
|
|
1459
1927
|
| `commandSelected` | `CommandItem` | Emitted when command action is chosen |
|
|
1460
1928
|
|
|
1461
1929
|
##### Public Methods
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
|
1930
|
+
|
|
1931
|
+
| Method | Signature | Description |
|
|
1932
|
+
| -------------- | ---------- | --------------------------- |
|
|
1933
|
+
| `openPalette` | `(): void` | Trigger modal popup display |
|
|
1465
1934
|
| `closePalette` | `(): void` | Dismiss modal popup display |
|
|
1466
1935
|
|
|
1467
1936
|
---
|
|
@@ -1469,6 +1938,7 @@ export class NavExampleComponent {
|
|
|
1469
1938
|
### Barcodes
|
|
1470
1939
|
|
|
1471
1940
|
#### How to Use Barcodes
|
|
1941
|
+
|
|
1472
1942
|
```typescript
|
|
1473
1943
|
import { Component } from '@angular/core';
|
|
1474
1944
|
import { BarcodeComponent, QrCodeComponent } from 'ngx-core-components/barcodes';
|
|
@@ -1482,38 +1952,44 @@ import { BarcodeComponent, QrCodeComponent } from 'ngx-core-components/barcodes'
|
|
|
1482
1952
|
|
|
1483
1953
|
<!-- QR Code -->
|
|
1484
1954
|
<ngx-qrcode value="https://example.com" [size]="150" label="Scan to Visit Site" />
|
|
1485
|
-
|
|
1955
|
+
`,
|
|
1486
1956
|
})
|
|
1487
1957
|
export class BarcodesExampleComponent {}
|
|
1488
1958
|
```
|
|
1489
1959
|
|
|
1490
1960
|
#### BarcodeComponent (`ngx-barcode`)
|
|
1961
|
+
|
|
1491
1962
|
##### Inputs
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
|
1495
|
-
| `
|
|
1496
|
-
| `
|
|
1497
|
-
| `
|
|
1498
|
-
| `
|
|
1499
|
-
| `
|
|
1963
|
+
|
|
1964
|
+
| Input | Type | Default | Description |
|
|
1965
|
+
| ------------ | -------- | ----------- | ----------------------------- |
|
|
1966
|
+
| `value` | `string` | `''` | Numeric/String value encoding |
|
|
1967
|
+
| `label` | `string` | `''` | Text displayed above |
|
|
1968
|
+
| `height` | `number` | `60` | Height dimensions in pixels |
|
|
1969
|
+
| `barWidth` | `number` | `2` | Single bar width in pixels |
|
|
1970
|
+
| `foreground` | `string` | `'#000000'` | Stroke fill colors |
|
|
1971
|
+
| `background` | `string` | `'#ffffff'` | Canvas background |
|
|
1500
1972
|
|
|
1501
1973
|
#### QrCodeComponent (`ngx-qr-code`)
|
|
1974
|
+
|
|
1502
1975
|
##### Inputs
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
|
1506
|
-
| `
|
|
1507
|
-
| `
|
|
1508
|
-
| `
|
|
1509
|
-
| `
|
|
1976
|
+
|
|
1977
|
+
| Input | Type | Default | Description |
|
|
1978
|
+
| ------------ | -------- | ----------- | ------------------------------ |
|
|
1979
|
+
| `value` | `string` | `''` | Text URL/String encoding |
|
|
1980
|
+
| `size` | `number` | `160` | Width & height sizes in pixels |
|
|
1981
|
+
| `label` | `string` | `''` | Header description text |
|
|
1982
|
+
| `foreground` | `string` | `'#000000'` | Code grid point color |
|
|
1983
|
+
| `background` | `string` | `'#ffffff'` | Grid canvas background |
|
|
1510
1984
|
|
|
1511
1985
|
---
|
|
1512
1986
|
|
|
1513
1987
|
## Advanced Features
|
|
1514
1988
|
|
|
1515
1989
|
### Draggable Zoom & Area Selection
|
|
1990
|
+
|
|
1516
1991
|
The Gantt Chart component supports zooming directly into a specific time range by selecting a window on the timeline.
|
|
1992
|
+
|
|
1517
1993
|
- **Enable Feature**: Add `enableDragToZoom: true` in the `config` object or pass `[enableDragToZoom]="true"`.
|
|
1518
1994
|
- **Keyboard Shortcut**: Hold **Shift** and click-and-drag across the timeline background to draw a glassmorphic zoom selection window.
|
|
1519
1995
|
- **Area Zoom Mode**: Click the **Area Zoom Mode** button (or call `toggleAreaZoomMode()` programmatically) to change the cursor to a crosshair and drag-select without holding Shift.
|
|
@@ -1523,7 +1999,9 @@ The Gantt Chart component supports zooming directly into a specific time range b
|
|
|
1523
1999
|
- **Resetting**: Call the public `resetZoom()` method (or trigger via a button) to reset the timeline back to full scale.
|
|
1524
2000
|
|
|
1525
2001
|
### Keyboard Rescheduling & Resizing
|
|
2002
|
+
|
|
1526
2003
|
Tasks can be adjusted using only the keyboard:
|
|
2004
|
+
|
|
1527
2005
|
- **Rescheduling**: Focus a task bar and use the `ArrowLeft` or `ArrowRight` keys to shift the task start and end dates by 1 unit (1 hour in Hour view, otherwise 1 day).
|
|
1528
2006
|
- **Resizing**: Focus a task bar and hold `Alt` or `Shift` alongside `ArrowLeft` or `ArrowRight` to extend or shrink the task's duration from the right boundary.
|
|
1529
2007
|
|