ngx-core-components 0.3.28 → 0.3.30
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/ai/ai-chat/ai-chat.component.d.ts +9 -1
- package/ai/ai-chat-widget/ai-chat-widget.component.d.ts +3 -1
- package/ai/ai-prompt-editor/ai-prompt-editor.component.d.ts +14 -1
- package/ai/ai-rag-inspector/ai-rag-inspector.component.d.ts +6 -0
- package/charts/bar-chart/bar-chart.component.d.ts +2 -1
- package/charts/calendar-heatmap/calendar-heatmap.component.d.ts +49 -0
- package/charts/gauge-chart/gauge-chart.component.d.ts +18 -2
- package/charts/multi-needle-gauge/multi-needle-gauge.component.d.ts +74 -0
- package/charts/nested-donut-chart/nested-donut-chart.component.d.ts +70 -0
- package/charts/org-chart/org-chart.component.d.ts +69 -0
- package/charts/pie-chart/pie-chart.component.d.ts +3 -1
- package/charts/public-api.d.ts +24 -0
- package/charts/pyramid-chart/pyramid-chart.component.d.ts +58 -0
- package/charts/range-bar-chart/range-bar-chart.component.d.ts +61 -0
- package/charts/shared/chart-annotations.d.ts +26 -0
- package/charts/shared/chart-brush-zoom.component.d.ts +53 -0
- package/charts/shared/chart-skeleton.component.d.ts +10 -0
- package/charts/shared/chart-sync-group.directive.d.ts +14 -0
- package/charts/shared/chart-theme.service.d.ts +21 -0
- package/charts/shared/chart-tooltip.service.d.ts +28 -0
- package/charts/step-line-chart/step-line-chart.component.d.ts +71 -0
- package/charts/timeline-chart/timeline-chart.component.d.ts +63 -0
- package/fesm2022/ngx-core-components-ai.mjs +633 -258
- package/fesm2022/ngx-core-components-ai.mjs.map +1 -1
- package/fesm2022/ngx-core-components-charts.mjs +3347 -39
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-grid.mjs +3635 -892
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-inputs.mjs +894 -542
- package/fesm2022/ngx-core-components-inputs.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +306 -117
- 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 +70 -0
- package/grid/data-grid/components/grid-status-bar/grid-status-bar.component.d.ts +25 -0
- package/grid/data-grid/data-grid.component.d.ts +18 -1
- package/grid/data-grid/models.d.ts +65 -0
- package/grid/data-grid/services/grid-clipboard.service.d.ts +40 -0
- package/grid/data-grid/services/grid-edit.service.d.ts +48 -0
- package/grid/data-grid/services/grid-export-xlsx.service.d.ts +67 -0
- package/grid/data-grid/services/grid-keyboard.service.d.ts +70 -0
- package/grid/data-grid/services/grid-selection.service.d.ts +36 -0
- package/grid/data-grid/services/grid-state.service.d.ts +41 -0
- package/grid/data-grid/services/grid-virtualization.service.d.ts +81 -0
- package/grid/data-grid/utils/grid-aggregate.util.d.ts +13 -0
- package/grid/data-grid/utils/grid-filter.util.d.ts +11 -0
- package/grid/data-grid/utils/grid-sort.util.d.ts +17 -0
- package/grid/pivot-grid/pivot-grid.component.d.ts +15 -2
- package/grid/public-api.d.ts +17 -1
- package/inputs/date-picker/date-picker.component.d.ts +32 -33
- package/inputs/directives/mask.directive.d.ts +9 -0
- package/inputs/form-builder/form-builder.component.d.ts +22 -31
- package/inputs/numeric-textbox/numeric-textbox.component.d.ts +33 -23
- package/inputs/pipes/form-error.pipe.d.ts +9 -0
- package/inputs/public-api.d.ts +8 -1
- package/inputs/segmented-control/segmented-control.component.d.ts +12 -3
- package/inputs/services/form-error.service.d.ts +33 -0
- package/inputs/textbox/textbox.component.d.ts +3 -1
- package/inputs/utils/mask.util.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +18 -1
- package/views/tree-view/tree-view.component.d.ts +20 -2
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Enterprise keyboard navigation service for the DataGrid.
|
|
4
|
+
* Centralizes all keyboard event handling including:
|
|
5
|
+
* - Arrow key cell navigation
|
|
6
|
+
* - Tab / Shift+Tab traversal
|
|
7
|
+
* - Enter/Escape for edit mode
|
|
8
|
+
* - Ctrl+Z/Y for undo/redo
|
|
9
|
+
* - Ctrl+A for select all
|
|
10
|
+
* - Ctrl+C/X/V for clipboard
|
|
11
|
+
* - F2 for edit mode
|
|
12
|
+
* - Delete for clearing cells
|
|
13
|
+
*/
|
|
14
|
+
export declare class GridKeyboardService {
|
|
15
|
+
/** Currently focused cell coordinates */
|
|
16
|
+
readonly focusedRow: import("@angular/core").WritableSignal<number>;
|
|
17
|
+
readonly focusedCol: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
/** Whether the grid is in keyboard navigation mode */
|
|
19
|
+
readonly isNavigating: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
/** Whether we're currently in cell edit mode */
|
|
21
|
+
readonly isEditMode: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
/** Grid boundaries */
|
|
23
|
+
private maxRow;
|
|
24
|
+
private maxCol;
|
|
25
|
+
private editableFields;
|
|
26
|
+
private columnFields;
|
|
27
|
+
/** Callbacks registered by the grid component */
|
|
28
|
+
private handlers;
|
|
29
|
+
/** Initialize the keyboard service with grid dimensions and handlers */
|
|
30
|
+
initialize(config: GridKeyboardConfig): void;
|
|
31
|
+
/** Update grid dimensions (e.g., after data change) */
|
|
32
|
+
updateDimensions(maxRow: number, maxCol: number): void;
|
|
33
|
+
/** Handle keydown events from the grid */
|
|
34
|
+
handleKeyDown(event: KeyboardEvent): GridKeyboardAction | null;
|
|
35
|
+
/** Set focus to a specific cell */
|
|
36
|
+
setFocus(row: number, col: number): void;
|
|
37
|
+
/** Clear focus */
|
|
38
|
+
clearFocus(): void;
|
|
39
|
+
/** Get the field name of the currently focused column */
|
|
40
|
+
getFocusedField(): string | null;
|
|
41
|
+
private moveFocus;
|
|
42
|
+
private extendSelection;
|
|
43
|
+
private canEditCurrentCell;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridKeyboardService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridKeyboardService>;
|
|
46
|
+
}
|
|
47
|
+
export interface GridKeyboardConfig {
|
|
48
|
+
maxRow: number;
|
|
49
|
+
maxCol: number;
|
|
50
|
+
columnFields: string[];
|
|
51
|
+
editableFields?: string[];
|
|
52
|
+
handlers?: GridKeyboardHandlers;
|
|
53
|
+
}
|
|
54
|
+
export interface GridKeyboardHandlers {
|
|
55
|
+
onNavigate?: (row: number, col: number) => void;
|
|
56
|
+
onBeginEdit?: (row: number, col: number) => void;
|
|
57
|
+
onSaveEdit?: () => void;
|
|
58
|
+
onCancelEdit?: () => void;
|
|
59
|
+
onCopy?: () => void;
|
|
60
|
+
onPaste?: () => void;
|
|
61
|
+
onUndo?: () => void;
|
|
62
|
+
onRedo?: () => void;
|
|
63
|
+
}
|
|
64
|
+
export interface GridKeyboardAction {
|
|
65
|
+
type: 'navigate' | 'begin-edit' | 'quick-edit' | 'save-edit' | 'cancel-edit' | 'save-edit-and-move' | 'extend-selection' | 'copy' | 'cut' | 'paste' | 'undo' | 'redo' | 'select-all' | 'clear-cells';
|
|
66
|
+
row?: number;
|
|
67
|
+
col?: number;
|
|
68
|
+
direction?: 'up' | 'down' | 'left' | 'right';
|
|
69
|
+
char?: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GridStatusBarAggregates } from '../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface CellCoordinate {
|
|
4
|
+
rowIndex: number;
|
|
5
|
+
colField: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CellRange {
|
|
8
|
+
start: CellCoordinate;
|
|
9
|
+
end: CellCoordinate;
|
|
10
|
+
}
|
|
11
|
+
export declare class GridSelectionService {
|
|
12
|
+
readonly selectedRows: import("@angular/core").WritableSignal<Set<unknown>>;
|
|
13
|
+
readonly cellRanges: import("@angular/core").WritableSignal<CellRange[]>;
|
|
14
|
+
readonly activeCellRange: import("@angular/core").WritableSignal<CellRange | null>;
|
|
15
|
+
readonly focusedCell: import("@angular/core").WritableSignal<CellCoordinate | null>;
|
|
16
|
+
readonly isDragging: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
readonly selectionAggregates: import("@angular/core").WritableSignal<GridStatusBarAggregates>;
|
|
18
|
+
selectRow(rowId: unknown): void;
|
|
19
|
+
deselectRow(rowId: unknown): void;
|
|
20
|
+
toggleRow(rowId: unknown): void;
|
|
21
|
+
selectAll(rowIds: unknown[]): void;
|
|
22
|
+
deselectAll(): void;
|
|
23
|
+
isRowSelected(rowId: unknown): boolean;
|
|
24
|
+
startCellSelection(coord: CellCoordinate): void;
|
|
25
|
+
extendCellSelection(coord: CellCoordinate): void;
|
|
26
|
+
endCellSelection(): void;
|
|
27
|
+
addCellRange(range: CellRange): void;
|
|
28
|
+
clearCellSelection(): void;
|
|
29
|
+
/** Simplistic check assuming contiguous field indices are managed externally if needed */
|
|
30
|
+
isCellSelected(rowIndex: number, colField: string): boolean;
|
|
31
|
+
setFocusedCell(coord: CellCoordinate): void;
|
|
32
|
+
moveFocus(direction: 'up' | 'down' | 'left' | 'right', maxRow: number, fields: string[]): void;
|
|
33
|
+
updateSelectionAggregates<T extends Record<string, unknown>>(data: T[], fields: string[]): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridSelectionService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridSelectionService>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GridColumnDef, GridSortState, GridFilterState, GridGroupState } from '../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface GridPersistedState {
|
|
4
|
+
columnWidths: Record<string, number>;
|
|
5
|
+
columnOrder: string[];
|
|
6
|
+
sorts: GridSortState[];
|
|
7
|
+
filters: GridFilterState[];
|
|
8
|
+
groups: GridGroupState[];
|
|
9
|
+
page: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
hiddenColumns: string[];
|
|
12
|
+
pinnedColumns: Record<string, 'left' | 'right' | null>;
|
|
13
|
+
}
|
|
14
|
+
export declare class GridStateService {
|
|
15
|
+
/**
|
|
16
|
+
* Save grid state to localStorage
|
|
17
|
+
* @param key Storage key
|
|
18
|
+
* @param state The state object to persist
|
|
19
|
+
*/
|
|
20
|
+
saveState(key: string, state: GridPersistedState): void;
|
|
21
|
+
/**
|
|
22
|
+
* Load grid state from localStorage
|
|
23
|
+
* @param key Storage key
|
|
24
|
+
* @returns The persisted state or null if not found
|
|
25
|
+
*/
|
|
26
|
+
loadState(key: string): GridPersistedState | null;
|
|
27
|
+
/**
|
|
28
|
+
* Clear persisted state
|
|
29
|
+
* @param key Storage key
|
|
30
|
+
*/
|
|
31
|
+
clearState(key: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* Merge loaded state with current column definitions
|
|
34
|
+
* @param state The loaded state
|
|
35
|
+
* @param columns The default column definitions
|
|
36
|
+
* @returns Array of column definitions updated with the state
|
|
37
|
+
*/
|
|
38
|
+
applyState(state: GridPersistedState, columns: GridColumnDef[]): GridColumnDef[];
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridStateService, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridStateService>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Enterprise virtualization engine for the DataGrid.
|
|
4
|
+
* Handles both row (vertical) and column (horizontal) virtualization
|
|
5
|
+
* for high-performance rendering of massive datasets (100K+ rows, 200+ columns).
|
|
6
|
+
*
|
|
7
|
+
* Row virtualization renders only the visible rows plus a configurable buffer,
|
|
8
|
+
* using spacer elements to maintain correct scroll position.
|
|
9
|
+
*
|
|
10
|
+
* Column virtualization renders only the visible columns plus a buffer,
|
|
11
|
+
* using left/right spacer cells to maintain correct horizontal scroll position.
|
|
12
|
+
*/
|
|
13
|
+
export declare class GridVirtualizationService {
|
|
14
|
+
readonly rowHeight: import("@angular/core").WritableSignal<number>;
|
|
15
|
+
readonly viewportHeight: import("@angular/core").WritableSignal<number>;
|
|
16
|
+
readonly viewportWidth: import("@angular/core").WritableSignal<number>;
|
|
17
|
+
readonly scrollTop: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
readonly scrollLeft: import("@angular/core").WritableSignal<number>;
|
|
19
|
+
readonly totalRows: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
readonly columnWidths: import("@angular/core").WritableSignal<number[]>;
|
|
21
|
+
readonly rowBuffer: import("@angular/core").WritableSignal<number>;
|
|
22
|
+
readonly colBuffer: import("@angular/core").WritableSignal<number>;
|
|
23
|
+
private readonly rowHeightCache;
|
|
24
|
+
readonly useVariableHeight: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
readonly infiniteScrollEnabled: import("@angular/core").WritableSignal<boolean>;
|
|
26
|
+
readonly infiniteScrollThreshold: import("@angular/core").WritableSignal<number>;
|
|
27
|
+
readonly isLoadingMore: import("@angular/core").WritableSignal<boolean>;
|
|
28
|
+
private loadedBlockRanges;
|
|
29
|
+
/** Index of the first visible row (0-based) */
|
|
30
|
+
readonly startRowIndex: import("@angular/core").Signal<number>;
|
|
31
|
+
/** Index of the last visible row (0-based, exclusive) */
|
|
32
|
+
readonly endRowIndex: import("@angular/core").Signal<number>;
|
|
33
|
+
/** Total virtual content height for the scrollbar */
|
|
34
|
+
readonly totalContentHeight: import("@angular/core").Signal<number>;
|
|
35
|
+
/** Top spacer height (space before the first rendered row) */
|
|
36
|
+
readonly topSpacerHeight: import("@angular/core").Signal<number>;
|
|
37
|
+
/** Bottom spacer height (space after the last rendered row) */
|
|
38
|
+
readonly bottomSpacerHeight: import("@angular/core").Signal<number>;
|
|
39
|
+
/** Number of rows currently rendered in the DOM */
|
|
40
|
+
readonly renderedRowCount: import("@angular/core").Signal<number>;
|
|
41
|
+
/** Index of the first visible column (0-based) */
|
|
42
|
+
readonly startColIndex: import("@angular/core").Signal<number>;
|
|
43
|
+
/** Index of the last visible column (0-based, exclusive) */
|
|
44
|
+
readonly endColIndex: import("@angular/core").Signal<number>;
|
|
45
|
+
/** Total virtual content width for horizontal scrollbar */
|
|
46
|
+
readonly totalContentWidth: import("@angular/core").Signal<number>;
|
|
47
|
+
/** Left spacer width (space before first rendered column) */
|
|
48
|
+
readonly leftSpacerWidth: import("@angular/core").Signal<number>;
|
|
49
|
+
/** Right spacer width (space after last rendered column) */
|
|
50
|
+
readonly rightSpacerWidth: import("@angular/core").Signal<number>;
|
|
51
|
+
/** Update scroll position from the viewport scroll event */
|
|
52
|
+
onScroll(scrollTop: number, scrollLeft: number): void;
|
|
53
|
+
/** Update viewport dimensions (e.g., on resize) */
|
|
54
|
+
updateViewportSize(width: number, height: number): void;
|
|
55
|
+
/** Set or update the measured height for a specific row (variable height mode) */
|
|
56
|
+
setRowHeight(rowIndex: number, height: number): void;
|
|
57
|
+
/** Get the height of a specific row */
|
|
58
|
+
getRowHeight(rowIndex: number): number;
|
|
59
|
+
/** Clear the variable row height cache */
|
|
60
|
+
clearHeightCache(): void;
|
|
61
|
+
/** Scroll to a specific row index */
|
|
62
|
+
scrollToRow(rowIndex: number): number;
|
|
63
|
+
/** Scroll to a specific column index */
|
|
64
|
+
scrollToColumn(colIndex: number): number;
|
|
65
|
+
/** Check if we should trigger loading more data */
|
|
66
|
+
shouldLoadMore(): boolean;
|
|
67
|
+
/** Register a loaded block range */
|
|
68
|
+
registerLoadedBlock(start: number, end: number): void;
|
|
69
|
+
/** Check if a row index has been loaded */
|
|
70
|
+
isRowLoaded(rowIndex: number): boolean;
|
|
71
|
+
/** Reset infinite scroll state */
|
|
72
|
+
resetInfiniteScroll(): void;
|
|
73
|
+
/** Find the row index at a given pixel offset (variable height) */
|
|
74
|
+
private findRowAtOffset;
|
|
75
|
+
/** Compute the total height of all rows (variable height) */
|
|
76
|
+
private computeTotalVariableHeight;
|
|
77
|
+
/** Compute the combined height of rows in a range [startIdx, endIdx) */
|
|
78
|
+
private computeHeightRange;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridVirtualizationService, never>;
|
|
80
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridVirtualizationService>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GridStatusBarAggregates } from '../models';
|
|
2
|
+
export type AggregateFunction = 'sum' | 'avg' | 'count' | 'min' | 'max';
|
|
3
|
+
/** Compute a single aggregate across a numeric field */
|
|
4
|
+
export declare function computeAggregate<T extends Record<string, unknown>>(data: T[], field: string, fn: AggregateFunction): number | string;
|
|
5
|
+
/** Compute all aggregates for a set of values (for status bar) */
|
|
6
|
+
export declare function computeStatusBarAggregates(values: unknown[]): GridStatusBarAggregates;
|
|
7
|
+
/** Compute group-level aggregates for all aggregatable columns */
|
|
8
|
+
export declare function computeGroupAggregates<T extends Record<string, unknown>>(items: T[], aggregateDefs: {
|
|
9
|
+
field: string;
|
|
10
|
+
fn: AggregateFunction;
|
|
11
|
+
}[]): Record<string, number | string>;
|
|
12
|
+
/** Format aggregate value for display (respects locale) */
|
|
13
|
+
export declare function formatAggregateValue(value: number | string, fn: AggregateFunction): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FilterCondition, FilterExpression, GridFilterState } from '../models';
|
|
2
|
+
/** Evaluate a single filter condition against a row */
|
|
3
|
+
export declare function evaluateCondition<T extends Record<string, unknown>>(row: T, condition: FilterCondition): boolean;
|
|
4
|
+
/** Recursively evaluate a filter expression tree (AND/OR groups) */
|
|
5
|
+
export declare function evaluateExpression<T extends Record<string, unknown>>(row: T, expression: FilterExpression): boolean;
|
|
6
|
+
/** Apply legacy GridFilterState[] filters (backward-compatible) */
|
|
7
|
+
export declare function applyLegacyFilters<T extends Record<string, unknown>>(data: T[], filters: GridFilterState[]): T[];
|
|
8
|
+
/** Apply a FilterExpression tree to a dataset */
|
|
9
|
+
export declare function applyFilterExpression<T extends Record<string, unknown>>(data: T[], expression: FilterExpression | null): T[];
|
|
10
|
+
/** Apply global text search across all fields */
|
|
11
|
+
export declare function applyGlobalSearch<T extends Record<string, unknown>>(data: T[], searchText: string, fields?: string[]): T[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure sort comparator functions for the enterprise data grid.
|
|
3
|
+
* Supports multi-column sorting, natural sort, and type-aware comparison.
|
|
4
|
+
*/
|
|
5
|
+
export type SortDirection = 'asc' | 'desc';
|
|
6
|
+
export interface SortDescriptor {
|
|
7
|
+
field: string;
|
|
8
|
+
dir: SortDirection;
|
|
9
|
+
}
|
|
10
|
+
/** Natural sort comparator — handles mixed alpha-numeric strings (e.g. 'item2' before 'item10') */
|
|
11
|
+
export declare function naturalCompare(a: string, b: string): number;
|
|
12
|
+
/** Type-aware value comparison: handles string, number, Date, boolean, null/undefined */
|
|
13
|
+
export declare function compareValues(a: unknown, b: unknown): number;
|
|
14
|
+
/** Single-field sort */
|
|
15
|
+
export declare function sortByField<T extends Record<string, unknown>>(data: T[], field: string, dir: SortDirection): T[];
|
|
16
|
+
/** Multi-field sort (ordered priority) */
|
|
17
|
+
export declare function sortByMultipleFields<T extends Record<string, unknown>>(data: T[], descriptors: SortDescriptor[]): T[];
|
|
@@ -2,16 +2,20 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export interface PivotValueDef {
|
|
3
3
|
field: string;
|
|
4
4
|
label?: string;
|
|
5
|
-
aggregate?: 'sum' | 'count' | 'avg' | 'min' | 'max';
|
|
5
|
+
aggregate?: 'sum' | 'count' | 'avg' | 'min' | 'max' | 'custom';
|
|
6
|
+
customAggregate?: (items: Record<string, unknown>[]) => number | string;
|
|
7
|
+
formatter?: (value: number | string) => string;
|
|
6
8
|
}
|
|
7
9
|
interface PivotColumn {
|
|
8
10
|
key: string;
|
|
9
11
|
label: string;
|
|
12
|
+
isTotal?: boolean;
|
|
10
13
|
}
|
|
11
14
|
interface PivotRow {
|
|
12
15
|
key: string;
|
|
13
16
|
label: string;
|
|
14
17
|
values: Record<string, unknown>;
|
|
18
|
+
isTotal?: boolean;
|
|
15
19
|
}
|
|
16
20
|
export declare class PivotGridComponent {
|
|
17
21
|
data: import("@angular/core").InputSignal<Record<string, unknown>[]>;
|
|
@@ -19,14 +23,23 @@ export declare class PivotGridComponent {
|
|
|
19
23
|
columns: import("@angular/core").InputSignal<string[]>;
|
|
20
24
|
values: import("@angular/core").InputSignal<PivotValueDef[]>;
|
|
21
25
|
emptyValue: import("@angular/core").InputSignal<string>;
|
|
26
|
+
showGrandTotals: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
showFieldChooser: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
isChooserOpen: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
activeRows: import("@angular/core").WritableSignal<string[]>;
|
|
30
|
+
activeCols: import("@angular/core").WritableSignal<string[]>;
|
|
31
|
+
activeValues: import("@angular/core").WritableSignal<PivotValueDef[]>;
|
|
32
|
+
constructor();
|
|
22
33
|
pivotColumns: import("@angular/core").Signal<PivotColumn[]>;
|
|
23
34
|
pivotRows: import("@angular/core").Signal<PivotRow[]>;
|
|
24
35
|
rowHeaderLabel(): string;
|
|
36
|
+
removeRowField(field: string): void;
|
|
37
|
+
removeColField(field: string): void;
|
|
25
38
|
aggregateCell(row: PivotRow, column: PivotColumn, value: PivotValueDef): string | number;
|
|
26
39
|
private keyFor;
|
|
27
40
|
private labelFor;
|
|
28
41
|
private round;
|
|
29
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "ngx-pivot-grid", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "emptyValue": { "alias": "emptyValue"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "ngx-pivot-grid", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "values": { "alias": "values"; "required": false; "isSignal": true; }; "emptyValue": { "alias": "emptyValue"; "required": false; "isSignal": true; }; "showGrandTotals": { "alias": "showGrandTotals"; "required": false; "isSignal": true; }; "showFieldChooser": { "alias": "showFieldChooser"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
31
44
|
}
|
|
32
45
|
export {};
|
package/grid/public-api.d.ts
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
export { DataGridComponent, NgxGridCellTemplateDirective, NgxGridEditCellTemplateDirective, NgxGridHeaderTemplateDirective, NgxGridFooterTemplateDirective, } from './data-grid/data-grid.component';
|
|
2
|
-
export type { GridColumnDef, GridFilterState, GridGroupState, GridGroupResult, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext, } from './data-grid/models';
|
|
2
|
+
export type { GridColumnDef, GridFilterState, GridGroupState, GridGroupResult, GridSortState, GridPageChangeEvent, GridSortChangeEvent, GridFilterChangeEvent, GridGroupChangeEvent, GridDataStateChangeEvent, GridRowClickEvent, GridRowUpdateEvent, GridHeaderTemplateContext, GridCellTemplateContext, GridRowTemplateContext, GridDetailTemplateContext, GridFooterTemplateContext, GridCellValidator, TreeDataConfig, FilterExpression, FilterCondition, GridInfiniteScrollEvent, GridCellValidationError, GridEditChangeset, GridStatusBarAggregates, } from './data-grid/models';
|
|
3
3
|
export { GridExportService } from './data-grid/grid-export.service';
|
|
4
|
+
export { GridExportXlsxService } from './data-grid/services/grid-export-xlsx.service';
|
|
5
|
+
export type { XlsxExportOptions, PdfExportOptions } from './data-grid/services/grid-export-xlsx.service';
|
|
6
|
+
export { GridStateService } from './data-grid/services/grid-state.service';
|
|
7
|
+
export { GridSelectionService } from './data-grid/services/grid-selection.service';
|
|
8
|
+
export { GridEditService } from './data-grid/services/grid-edit.service';
|
|
9
|
+
export { GridClipboardService } from './data-grid/services/grid-clipboard.service';
|
|
10
|
+
export { GridVirtualizationService } from './data-grid/services/grid-virtualization.service';
|
|
11
|
+
export { GridKeyboardService } from './data-grid/services/grid-keyboard.service';
|
|
12
|
+
export type { GridKeyboardConfig, GridKeyboardAction, GridKeyboardHandlers } from './data-grid/services/grid-keyboard.service';
|
|
13
|
+
export { GridStatusBarComponent } from './data-grid/components/grid-status-bar/grid-status-bar.component';
|
|
14
|
+
export { GridFilterBuilderComponent } from './data-grid/components/grid-filter-builder/grid-filter-builder.component';
|
|
15
|
+
export { naturalCompare, compareValues, sortByField, sortByMultipleFields } from './data-grid/utils/grid-sort.util';
|
|
16
|
+
export type { SortDirection, SortDescriptor } from './data-grid/utils/grid-sort.util';
|
|
17
|
+
export { evaluateCondition, evaluateExpression, applyLegacyFilters, applyFilterExpression, applyGlobalSearch } from './data-grid/utils/grid-filter.util';
|
|
18
|
+
export { computeAggregate, computeStatusBarAggregates, computeGroupAggregates, formatAggregateValue } from './data-grid/utils/grid-aggregate.util';
|
|
19
|
+
export type { AggregateFunction } from './data-grid/utils/grid-aggregate.util';
|
|
4
20
|
export { PivotGridComponent } from './pivot-grid/pivot-grid.component';
|
|
5
21
|
export type { PivotValueDef } from './pivot-grid/pivot-grid.component';
|
|
@@ -1,47 +1,46 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
export interface DatePreset {
|
|
4
|
+
label: string;
|
|
5
|
+
getValue: () => Date;
|
|
6
|
+
}
|
|
3
7
|
export declare class DatePickerComponent implements ControlValueAccessor {
|
|
4
|
-
value: import("@angular/core").InputSignal<Date | null>;
|
|
8
|
+
value: import("@angular/core").InputSignal<string | Date | null>;
|
|
5
9
|
label: import("@angular/core").InputSignal<string>;
|
|
6
|
-
placeholder: import("@angular/core").InputSignal<string
|
|
10
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
7
11
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
status: import("@angular/core").InputSignal<"success" | "warning" | "error" | "normal">;
|
|
13
|
+
error: import("@angular/core").InputSignal<string>;
|
|
14
|
+
hint: import("@angular/core").InputSignal<string>;
|
|
15
|
+
clearable: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
showPresets: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
valueChange: import("@angular/core").OutputEmitterRef<any>;
|
|
14
18
|
isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
_cvaValue
|
|
19
|
+
currentMonth: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
currentYear: import("@angular/core").WritableSignal<number>;
|
|
21
|
+
private _cvaValue;
|
|
18
22
|
private _cvaActive;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private el;
|
|
22
|
-
_activeValue: import("@angular/core").Signal<Date | null>;
|
|
23
|
+
_resolvedValue: import("@angular/core").Signal<Date | null>;
|
|
24
|
+
activePresets: import("@angular/core").Signal<DatePreset[]>;
|
|
23
25
|
displayValue: import("@angular/core").Signal<string>;
|
|
24
|
-
|
|
26
|
+
monthName: import("@angular/core").Signal<string>;
|
|
25
27
|
calendarDays: import("@angular/core").Signal<{
|
|
26
|
-
date: Date
|
|
27
|
-
|
|
28
|
-
current: boolean;
|
|
29
|
-
isToday: boolean;
|
|
30
|
-
isSelected: boolean;
|
|
31
|
-
disabled: boolean;
|
|
28
|
+
date: Date;
|
|
29
|
+
inMonth: boolean;
|
|
32
30
|
}[]>;
|
|
33
|
-
|
|
31
|
+
private onChange;
|
|
32
|
+
private onTouched;
|
|
33
|
+
writeValue(val: Date | string | null): void;
|
|
34
|
+
registerOnChange(fn: (val: Date | null) => void): void;
|
|
35
|
+
registerOnTouched(fn: () => void): void;
|
|
36
|
+
toggleCalendar(): void;
|
|
37
|
+
selectDate(d: Date): void;
|
|
38
|
+
selectPreset(preset: DatePreset): void;
|
|
39
|
+
clearValue(e: MouseEvent): void;
|
|
34
40
|
prevMonth(): void;
|
|
35
41
|
nextMonth(): void;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
selectToday(): void;
|
|
39
|
-
clearValue(): void;
|
|
40
|
-
onDocClick(e: MouseEvent): void;
|
|
41
|
-
writeValue(val: Date | null): void;
|
|
42
|
-
registerOnChange(fn: (v: Date | null) => void): void;
|
|
43
|
-
registerOnTouched(fn: () => void): void;
|
|
44
|
-
setDisabledState(_isDisabled: boolean): void;
|
|
42
|
+
isSelected(d: Date): boolean;
|
|
43
|
+
isToday(d: Date): boolean;
|
|
45
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ngx-date-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ngx-date-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "showPresets": { "alias": "showPresets"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
47
46
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NgxMaskDirective {
|
|
3
|
+
ngxMask: import("@angular/core").InputSignal<string>;
|
|
4
|
+
unmaskedValueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
5
|
+
private el;
|
|
6
|
+
onInput(event: InputEvent): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMaskDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxMaskDirective, "input[ngxMask]", never, { "ngxMask": { "alias": "ngxMask"; "required": true; "isSignal": true; }; }, { "unmaskedValueChange": "unmaskedValueChange"; }, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -3,10 +3,16 @@ export interface FormBuilderOption {
|
|
|
3
3
|
label: string;
|
|
4
4
|
value: string | number | boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface FormBuilderCondition {
|
|
7
|
+
field: string;
|
|
8
|
+
operator: 'eq' | 'neq' | 'contains' | 'gt' | 'lt' | 'isTrue' | 'isFalse';
|
|
9
|
+
value?: unknown;
|
|
10
|
+
action: 'show' | 'hide' | 'enable' | 'disable';
|
|
11
|
+
}
|
|
6
12
|
export interface FormBuilderField {
|
|
7
13
|
key: string;
|
|
8
14
|
label: string;
|
|
9
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'checkbox' | 'date';
|
|
15
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'checkbox' | 'date' | 'date-range' | 'time' | 'file-upload' | 'multi-select' | 'rating' | 'color-picker' | 'switch' | 'segmented-control' | 'signature-pad' | 'slider' | 'range' | 'autocomplete' | 'tag-input';
|
|
10
16
|
placeholder?: string;
|
|
11
17
|
required?: boolean;
|
|
12
18
|
disabled?: boolean;
|
|
@@ -15,42 +21,27 @@ export interface FormBuilderField {
|
|
|
15
21
|
min?: number | string;
|
|
16
22
|
max?: number | string;
|
|
17
23
|
step?: number;
|
|
24
|
+
colSpan?: number;
|
|
25
|
+
conditions?: FormBuilderCondition[];
|
|
26
|
+
hint?: string;
|
|
18
27
|
}
|
|
19
28
|
export declare class FormBuilderComponent {
|
|
20
|
-
/**
|
|
21
|
-
* The schema definition list of form fields to render dynamically.
|
|
22
|
-
*/
|
|
23
29
|
fields: import("@angular/core").InputSignal<FormBuilderField[]>;
|
|
24
|
-
/**
|
|
25
|
-
* The initial/controlled form value dictionary mapping field keys to values.
|
|
26
|
-
*/
|
|
27
30
|
value: import("@angular/core").InputSignal<Record<string, unknown>>;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to render the default form submit button at the bottom.
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
showSubmit: import("@angular/core").InputSignal<boolean>;
|
|
33
|
-
/**
|
|
34
|
-
* The text label to display on the default form submit button.
|
|
35
|
-
* @default 'Submit'
|
|
36
|
-
*/
|
|
37
31
|
submitLabel: import("@angular/core").InputSignal<string>;
|
|
38
|
-
|
|
39
|
-
* Emits when any field value in the form changes.
|
|
40
|
-
*/
|
|
41
|
-
valueChange: import("@angular/core").OutputEmitterRef<Record<string, unknown>>;
|
|
42
|
-
/**
|
|
43
|
-
* Emits the entire form value dictionary when the form is submitted successfully.
|
|
44
|
-
*/
|
|
32
|
+
showSubmit: import("@angular/core").InputSignal<boolean>;
|
|
45
33
|
formSubmit: import("@angular/core").OutputEmitterRef<Record<string, unknown>>;
|
|
46
|
-
|
|
47
|
-
private
|
|
48
|
-
|
|
34
|
+
formChange: import("@angular/core").OutputEmitterRef<Record<string, unknown>>;
|
|
35
|
+
private formState;
|
|
36
|
+
visibleFields: import("@angular/core").Signal<FormBuilderField[]>;
|
|
37
|
+
constructor();
|
|
49
38
|
valueFor(key: string): unknown;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
isFieldDisabled(field: FormBuilderField): boolean;
|
|
40
|
+
updateValue(key: string, val: unknown): void;
|
|
41
|
+
submit(event: Event): void;
|
|
42
|
+
coerceInputValue(field: FormBuilderField, val: string): unknown;
|
|
43
|
+
readOptionValue(field: FormBuilderField, valStr: string): unknown;
|
|
44
|
+
private evaluateCondition;
|
|
54
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormBuilderComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilderComponent, "ngx-form-builder", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormBuilderComponent, "ngx-form-builder", never, { "fields": { "alias": "fields"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "submitLabel": { "alias": "submitLabel"; "required": false; "isSignal": true; }; "showSubmit": { "alias": "showSubmit"; "required": false; "isSignal": true; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
|
|
56
47
|
}
|
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NumericTextBoxComponent implements ControlValueAccessor {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
max: import("@angular/core").InputSignal<number>;
|
|
4
|
+
value: import("@angular/core").InputSignal<number | null>;
|
|
5
|
+
min: import("@angular/core").InputSignal<number | null>;
|
|
6
|
+
max: import("@angular/core").InputSignal<number | null>;
|
|
8
7
|
step: import("@angular/core").InputSignal<number>;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
decimals: import("@angular/core").InputSignal<number | null>;
|
|
9
|
+
useGrouping: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
currency: import("@angular/core").InputSignal<string>;
|
|
11
|
+
currencyPosition: import("@angular/core").InputSignal<"prefix" | "suffix">;
|
|
12
|
+
label: import("@angular/core").InputSignal<string>;
|
|
11
13
|
placeholder: import("@angular/core").InputSignal<string>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
status: import("@angular/core").InputSignal<"default" | "success" | "warning" | "error">;
|
|
14
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
15
|
+
readonly: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
status: import("@angular/core").InputSignal<"success" | "warning" | "error" | "normal">;
|
|
16
17
|
error: import("@angular/core").InputSignal<string>;
|
|
17
18
|
hint: import("@angular/core").InputSignal<string>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
prefixIcon: import("@angular/core").InputSignal<string>;
|
|
20
|
+
showSpinners: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
clearable: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
valueChange: import("@angular/core").OutputEmitterRef<any>;
|
|
23
|
+
isFocused: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
+
private _cvaValue;
|
|
25
|
+
private _cvaActive;
|
|
26
|
+
_resolvedValue: import("@angular/core").Signal<number | null>;
|
|
27
|
+
formattedValue: import("@angular/core").Signal<string>;
|
|
28
|
+
private onChange;
|
|
29
|
+
private onTouched;
|
|
30
|
+
writeValue(val: number | null): void;
|
|
31
|
+
registerOnChange(fn: (val: number | null) => void): void;
|
|
32
|
+
registerOnTouched(fn: () => void): void;
|
|
33
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
34
|
+
onInput(event: Event): void;
|
|
35
|
+
onFocus(): void;
|
|
24
36
|
onBlur(): void;
|
|
25
37
|
onKeyDown(event: KeyboardEvent): void;
|
|
26
|
-
|
|
27
|
-
|
|
38
|
+
stepUp(): void;
|
|
39
|
+
stepDown(): void;
|
|
40
|
+
clearValue(): void;
|
|
28
41
|
private clamp;
|
|
29
|
-
|
|
30
|
-
registerOnChange(fn: (v: number) => void): void;
|
|
31
|
-
registerOnTouched(fn: () => void): void;
|
|
32
|
-
setDisabledState(_isDisabled: boolean): void;
|
|
42
|
+
private updateValue;
|
|
33
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericTextBoxComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumericTextBoxComponent, "ngx-numeric-textbox", never, { "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericTextBoxComponent, "ngx-numeric-textbox", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "currency": { "alias": "currency"; "required": false; "isSignal": true; }; "currencyPosition": { "alias": "currencyPosition"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; "isSignal": true; }; "showSpinners": { "alias": "showSpinners"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
35
45
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ValidationErrors } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NgxFormErrorPipe implements PipeTransform {
|
|
5
|
+
private errorService;
|
|
6
|
+
transform(errors: ValidationErrors | null | undefined): string | null;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxFormErrorPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NgxFormErrorPipe, "ngxFormError", true>;
|
|
9
|
+
}
|
package/inputs/public-api.d.ts
CHANGED
|
@@ -23,6 +23,13 @@ export type { PreviewFileItem } from './file-preview/file-preview.component';
|
|
|
23
23
|
export { SegmentedControlComponent } from './segmented-control/segmented-control.component';
|
|
24
24
|
export type { SegmentedOption } from './segmented-control/segmented-control.component';
|
|
25
25
|
export { FormBuilderComponent } from './form-builder/form-builder.component';
|
|
26
|
-
export type { FormBuilderField, FormBuilderOption } from './form-builder/form-builder.component';
|
|
26
|
+
export type { FormBuilderField, FormBuilderOption, FormBuilderCondition } from './form-builder/form-builder.component';
|
|
27
27
|
export { FormDesignerComponent } from './form-builder/form-designer.component';
|
|
28
28
|
export { SignaturePadComponent } from './signature-pad/signature-pad.component';
|
|
29
|
+
export { NgxFormErrorService, DEFAULT_FORM_ERROR_MESSAGES, NGX_FORM_ERROR_MESSAGES } from './services/form-error.service';
|
|
30
|
+
export type { FormErrorMessages } from './services/form-error.service';
|
|
31
|
+
export { NgxFormErrorPipe } from './pipes/form-error.pipe';
|
|
32
|
+
export { NgxMaskDirective } from './directives/mask.directive';
|
|
33
|
+
export { applyMask, getPresetMask, unmaskValue } from './utils/mask.util';
|
|
34
|
+
export type { MaskResult } from './utils/mask.util';
|
|
35
|
+
export type { DatePreset } from './date-picker/date-picker.component';
|