@reforgium/data-grid 3.2.6 → 3.2.7
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/CHANGELOG.md +18 -0
- package/README.md +14 -10
- package/fesm2022/reforgium-data-grid-config.mjs +59 -0
- package/fesm2022/{reforgium-data-grid-grid-overlay-scroll.feature-BfxJb8Ym.mjs → reforgium-data-grid-grid-overlay-scroll.feature-DS2YKA3c.mjs} +2 -2
- package/fesm2022/reforgium-data-grid-paginator.mjs +2 -2
- package/fesm2022/{reforgium-data-grid-reforgium-data-grid-Cwwi5rhv.mjs → reforgium-data-grid-reforgium-data-grid-CJw8rTN4.mjs} +6 -58
- package/fesm2022/reforgium-data-grid.mjs +2 -1
- package/package.json +5 -1
- package/types/reforgium-data-grid-config.d.ts +53 -0
- package/types/reforgium-data-grid.d.ts +108 -173
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { o as
|
|
1
|
+
export { o as DATA_GRID_HEADER_TEXT_RESOLVER, p as DATA_GRID_TYPE_RENDERERS, q as DATA_GRID_TYPE_TRANSFORMERS, v as DataGrid, i as DataGridCellEmptyDirective, j as DataGridCellLoadingDirective, b as DataGridCellTemplateDirective, h as DataGridDeclarativeCellDirective, f as DataGridDeclarativeColumn, g as DataGridDeclarativeHeaderDirective, n as DataGridExpanderIconDirective, d as DataGridHeaderTemplateDirective, e as DataGridRowDirective, l as DataGridSortIconDirective, k as DataGridStickyRowDirective, D as DataGridTypeCellTemplateDirective, w as gridBackendSortField, r as provideDataGridHeaderTextResolver, s as provideDataGridHeaderTextResolverWithParent, t as provideDataGridTypeRenderers, u as provideDataGridTypeTransformers } from './reforgium-data-grid-reforgium-data-grid-CJw8rTN4.mjs';
|
|
2
|
+
export { DATA_GRID_CONFIG, DEFAULT_DATA_GRID_DEFAULTS, provideDataGridDefaults } from '@reforgium/data-grid/config';
|
|
2
3
|
//# sourceMappingURL=reforgium-data-grid.mjs.map
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.2.
|
|
2
|
+
"version": "3.2.7",
|
|
3
3
|
"name": "@reforgium/data-grid",
|
|
4
4
|
"description": "reforgium DataGrid component",
|
|
5
5
|
"author": "rtommievich",
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
"types": "./types/reforgium-data-grid-column-manager.d.ts",
|
|
57
57
|
"default": "./fesm2022/reforgium-data-grid-column-manager.mjs"
|
|
58
58
|
},
|
|
59
|
+
"./config": {
|
|
60
|
+
"types": "./types/reforgium-data-grid-config.d.ts",
|
|
61
|
+
"default": "./fesm2022/reforgium-data-grid-config.mjs"
|
|
62
|
+
},
|
|
59
63
|
"./paginator": {
|
|
60
64
|
"types": "./types/reforgium-data-grid-paginator.d.ts",
|
|
61
65
|
"default": "./fesm2022/reforgium-data-grid-paginator.mjs"
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type DataGridTranslations = {
|
|
4
|
+
emptyState: string;
|
|
5
|
+
itemsPerPageLabel: string;
|
|
6
|
+
nextPageLabel: string;
|
|
7
|
+
prevPageLabel: string;
|
|
8
|
+
indexColumnHeader: string;
|
|
9
|
+
};
|
|
10
|
+
type DataGridSelection = {
|
|
11
|
+
mode: 'none';
|
|
12
|
+
} | {
|
|
13
|
+
mode: 'single' | 'multi';
|
|
14
|
+
key: string;
|
|
15
|
+
defaultSelected?: unknown[];
|
|
16
|
+
defaultSelectedKeys?: ReadonlyArray<unknown>;
|
|
17
|
+
};
|
|
18
|
+
type DataGridConfigProvider = {
|
|
19
|
+
mode: 'none' | 'pagination' | 'infinity';
|
|
20
|
+
hasIndexColumn: boolean;
|
|
21
|
+
selection: DataGridSelection;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
sortMode: 'single' | 'multi';
|
|
24
|
+
resizable: boolean;
|
|
25
|
+
rowHeight: number;
|
|
26
|
+
headerHeight: number;
|
|
27
|
+
height: number | 'full' | 'default';
|
|
28
|
+
virtualBuffer: number;
|
|
29
|
+
loadingMode: 'spinner' | 'skeleton';
|
|
30
|
+
pageStartFromZero: boolean;
|
|
31
|
+
deferContent: boolean;
|
|
32
|
+
deferHeader: boolean;
|
|
33
|
+
deferPinned: boolean;
|
|
34
|
+
deferCells: boolean;
|
|
35
|
+
deferIcons: boolean;
|
|
36
|
+
deferTooltip: boolean;
|
|
37
|
+
translations: DataGridTranslations;
|
|
38
|
+
debounce: {
|
|
39
|
+
resize: number;
|
|
40
|
+
scroll: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type DataGridConfigOverrides = Partial<Omit<DataGridConfigProvider, 'translations' | 'debounce'>> & {
|
|
44
|
+
translations?: Partial<DataGridTranslations>;
|
|
45
|
+
debounce?: Partial<DataGridConfigProvider['debounce']>;
|
|
46
|
+
};
|
|
47
|
+
declare const DEFAULT_DATA_GRID_DEFAULTS: DataGridConfigProvider;
|
|
48
|
+
declare const DATA_GRID_CONFIG: InjectionToken<DataGridConfigProvider>;
|
|
49
|
+
declare function provideDataGridDefaults(config: DataGridConfigOverrides): EnvironmentProviders;
|
|
50
|
+
|
|
51
|
+
export { DATA_GRID_CONFIG, DEFAULT_DATA_GRID_DEFAULTS, provideDataGridDefaults };
|
|
52
|
+
export type { DataGridConfigOverrides, DataGridConfigProvider, DataGridSelection, DataGridTranslations };
|
|
53
|
+
//# sourceMappingURL=reforgium-data-grid-config.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef,
|
|
2
|
+
import { TemplateRef, InjectionToken, Signal, EnvironmentProviders, ElementRef } from '@angular/core';
|
|
3
3
|
import * as _reforgium_data_grid from '@reforgium/data-grid';
|
|
4
|
+
export { DATA_GRID_CONFIG, DEFAULT_DATA_GRID_DEFAULTS, DataGridConfigProvider, provideDataGridDefaults } from '@reforgium/data-grid/config';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Directive for defining type-specific cell templates in a data grid.
|
|
@@ -564,6 +565,110 @@ declare class DataGridExpanderIconDirective {
|
|
|
564
565
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DataGridExpanderIconDirective, "ng-template[reDataGridExpanderIcon]", never, {}, {}, never, never, true, never>;
|
|
565
566
|
}
|
|
566
567
|
|
|
568
|
+
type HeaderTitleContent = {
|
|
569
|
+
title: string;
|
|
570
|
+
titleTemplate?: TemplateRef<HeaderTemplateData>;
|
|
571
|
+
} | {
|
|
572
|
+
title?: string;
|
|
573
|
+
titleTemplate: TemplateRef<HeaderTemplateData>;
|
|
574
|
+
};
|
|
575
|
+
type HeaderPresentation = {
|
|
576
|
+
align?: GridCellAlign;
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* Defines a header group configuration for grouping multiple columns under a single header.
|
|
580
|
+
*
|
|
581
|
+
* @template Data - The data type of the grid rows
|
|
582
|
+
*
|
|
583
|
+
* @property {string} key - Unique identifier for the header group
|
|
584
|
+
* @property {DataKey<Data>} from - The starting column key where the header group begins
|
|
585
|
+
* @property {DataKey<Data>} [to] - Optional ending column key where the header group ends.
|
|
586
|
+
* If not provided, the group spans only the 'from' column
|
|
587
|
+
* @property {string} [title] - Plain text title for the header group (when using PlainHeader)
|
|
588
|
+
* @property {GridCellAlign} [align] - Text alignment for the header group title (when using PlainHeader)
|
|
589
|
+
* @property {TemplateRef<HeaderTemplateData>} [titleTemplate] - Custom template for rendering the header group title
|
|
590
|
+
* (when using TemplatedHeader)
|
|
591
|
+
*/
|
|
592
|
+
type GridHeaderGroup<Data extends AnyDict = AnyDict> = {
|
|
593
|
+
key: string;
|
|
594
|
+
from: DataKey<Data>;
|
|
595
|
+
to?: DataKey<Data>;
|
|
596
|
+
} & HeaderTitleContent & HeaderPresentation;
|
|
597
|
+
/**
|
|
598
|
+
* Internal normalized representation of a header group after processing.
|
|
599
|
+
* Used by the grid component to render header groups with calculated dimensions.
|
|
600
|
+
*
|
|
601
|
+
* @property {string} key - Unique identifier for the normalized header
|
|
602
|
+
* @property {string} [title] - Plain text title for the header
|
|
603
|
+
* @property {TemplateRef<HeaderTemplateData>} [titleTemplate] - Custom template for rendering the header title
|
|
604
|
+
* @property {GridCellAlign} [align] - Text alignment for the header title
|
|
605
|
+
* @property {number} widthPx - Calculated width of the header in pixels
|
|
606
|
+
* @property {string} [startKey] - Column key where the header group starts
|
|
607
|
+
* @property {string} [endKey] - Column key where the header group ends
|
|
608
|
+
*/
|
|
609
|
+
type NormalizedHeader = {
|
|
610
|
+
key: string;
|
|
611
|
+
title?: string;
|
|
612
|
+
titleTemplate?: TemplateRef<HeaderTemplateData>;
|
|
613
|
+
align?: GridCellAlign;
|
|
614
|
+
widthPx: number;
|
|
615
|
+
startKey?: string;
|
|
616
|
+
endKey?: string;
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
type DataGridTypeTransformers<Data extends AnyDict = AnyDict> = Partial<Record<GridCellRendererType, GridCellTransformer<Data>>>;
|
|
620
|
+
type DataGridTypeRenderers<Data extends AnyDict = AnyDict> = Partial<Record<GridCellRendererType, TemplateRef<RenderTemplateData<Data>>>>;
|
|
621
|
+
type DataGridHeaderTextContext<Data extends AnyDict = AnyDict> = {
|
|
622
|
+
kind: 'column';
|
|
623
|
+
column: GridColumn<Data>;
|
|
624
|
+
} | {
|
|
625
|
+
kind: 'group';
|
|
626
|
+
group: NormalizedHeader | Pick<NormalizedHeader, 'key' | 'title' | 'align'> | {
|
|
627
|
+
title?: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
type DataGridHeaderTextResolver<Data extends AnyDict = AnyDict> = (text: string, context: DataGridHeaderTextContext<Data>) => string | Signal<string>;
|
|
631
|
+
declare const DATA_GRID_TYPE_TRANSFORMERS: InjectionToken<Partial<Record<string, GridCellTransformer<AnyDict>>>>;
|
|
632
|
+
declare const DATA_GRID_TYPE_RENDERERS: InjectionToken<Partial<Record<string, TemplateRef<RenderTemplateData<AnyDict>>>>>;
|
|
633
|
+
declare const DATA_GRID_HEADER_TEXT_RESOLVER: InjectionToken<DataGridHeaderTextResolver<AnyDict>>;
|
|
634
|
+
/**
|
|
635
|
+
* Provides a default configuration for Data Grid, overriding base settings.
|
|
636
|
+
*
|
|
637
|
+
* @param config Partial configuration object to be merged with current settings.
|
|
638
|
+
* @returns EnvironmentProviders for use in application or component configuration.
|
|
639
|
+
*/
|
|
640
|
+
/**
|
|
641
|
+
* Provides global type-based cell transformers for all `re-data-grid` instances in the current injector scope.
|
|
642
|
+
*
|
|
643
|
+
* Registrations are merged with parent injector registrations, and later providers override earlier ones.
|
|
644
|
+
*/
|
|
645
|
+
declare function provideDataGridTypeTransformers<Data extends AnyDict = AnyDict>(transformers: DataGridTypeTransformers<Data>): EnvironmentProviders;
|
|
646
|
+
/**
|
|
647
|
+
* Provides global type-based cell render templates for all `re-data-grid` instances in the current injector scope.
|
|
648
|
+
*
|
|
649
|
+
* Registrations are merged with parent injector registrations, and later providers override earlier ones.
|
|
650
|
+
*/
|
|
651
|
+
declare function provideDataGridTypeRenderers<Data extends AnyDict = AnyDict>(renderers: DataGridTypeRenderers<Data>): EnvironmentProviders;
|
|
652
|
+
/**
|
|
653
|
+
* Provides a global header text resolver for all `re-data-grid` instances in the current injector scope.
|
|
654
|
+
*
|
|
655
|
+
* Useful for integrating i18n layers without coupling the grid package to a specific translation library.
|
|
656
|
+
* The factory runs in Angular DI context, so it may use `inject(...)` to access consumer-side services.
|
|
657
|
+
*/
|
|
658
|
+
declare function provideDataGridHeaderTextResolver<Data extends AnyDict = AnyDict>(factory: () => DataGridHeaderTextResolver<Data>): EnvironmentProviders;
|
|
659
|
+
/**
|
|
660
|
+
* Advanced variant of `provideDataGridHeaderTextResolver(...)` that composes with the parent injector resolver.
|
|
661
|
+
*
|
|
662
|
+
* Use this only when the current scope should extend or wrap an existing header resolver
|
|
663
|
+
* instead of replacing it completely.
|
|
664
|
+
*/
|
|
665
|
+
declare function provideDataGridHeaderTextResolverWithParent<Data extends AnyDict = AnyDict>(factory: (parent: DataGridHeaderTextResolver<Data>) => DataGridHeaderTextResolver<Data>): EnvironmentProviders;
|
|
666
|
+
|
|
667
|
+
type DeclarativeColumnsResult<Data extends AnyDict = AnyDict> = {
|
|
668
|
+
columns: GridColumns<Data>;
|
|
669
|
+
rowCellTemplatesByKey: Map<string, TemplateRef<AnyType>>;
|
|
670
|
+
};
|
|
671
|
+
|
|
567
672
|
/**
|
|
568
673
|
* Event emitted when pagination changes in the data grid.
|
|
569
674
|
*
|
|
@@ -948,176 +1053,6 @@ type GridPinnedRow<Data extends AnyDict = AnyDict> = {
|
|
|
948
1053
|
}>;
|
|
949
1054
|
};
|
|
950
1055
|
|
|
951
|
-
type HeaderTitleContent = {
|
|
952
|
-
title: string;
|
|
953
|
-
titleTemplate?: TemplateRef<HeaderTemplateData>;
|
|
954
|
-
} | {
|
|
955
|
-
title?: string;
|
|
956
|
-
titleTemplate: TemplateRef<HeaderTemplateData>;
|
|
957
|
-
};
|
|
958
|
-
type HeaderPresentation = {
|
|
959
|
-
align?: GridCellAlign;
|
|
960
|
-
};
|
|
961
|
-
/**
|
|
962
|
-
* Defines a header group configuration for grouping multiple columns under a single header.
|
|
963
|
-
*
|
|
964
|
-
* @template Data - The data type of the grid rows
|
|
965
|
-
*
|
|
966
|
-
* @property {string} key - Unique identifier for the header group
|
|
967
|
-
* @property {DataKey<Data>} from - The starting column key where the header group begins
|
|
968
|
-
* @property {DataKey<Data>} [to] - Optional ending column key where the header group ends.
|
|
969
|
-
* If not provided, the group spans only the 'from' column
|
|
970
|
-
* @property {string} [title] - Plain text title for the header group (when using PlainHeader)
|
|
971
|
-
* @property {GridCellAlign} [align] - Text alignment for the header group title (when using PlainHeader)
|
|
972
|
-
* @property {TemplateRef<HeaderTemplateData>} [titleTemplate] - Custom template for rendering the header group title
|
|
973
|
-
* (when using TemplatedHeader)
|
|
974
|
-
*/
|
|
975
|
-
type GridHeaderGroup<Data extends AnyDict = AnyDict> = {
|
|
976
|
-
key: string;
|
|
977
|
-
from: DataKey<Data>;
|
|
978
|
-
to?: DataKey<Data>;
|
|
979
|
-
} & HeaderTitleContent & HeaderPresentation;
|
|
980
|
-
/**
|
|
981
|
-
* Internal normalized representation of a header group after processing.
|
|
982
|
-
* Used by the grid component to render header groups with calculated dimensions.
|
|
983
|
-
*
|
|
984
|
-
* @property {string} key - Unique identifier for the normalized header
|
|
985
|
-
* @property {string} [title] - Plain text title for the header
|
|
986
|
-
* @property {TemplateRef<HeaderTemplateData>} [titleTemplate] - Custom template for rendering the header title
|
|
987
|
-
* @property {GridCellAlign} [align] - Text alignment for the header title
|
|
988
|
-
* @property {number} widthPx - Calculated width of the header in pixels
|
|
989
|
-
* @property {string} [startKey] - Column key where the header group starts
|
|
990
|
-
* @property {string} [endKey] - Column key where the header group ends
|
|
991
|
-
*/
|
|
992
|
-
type NormalizedHeader = {
|
|
993
|
-
key: string;
|
|
994
|
-
title?: string;
|
|
995
|
-
titleTemplate?: TemplateRef<HeaderTemplateData>;
|
|
996
|
-
align?: GridCellAlign;
|
|
997
|
-
widthPx: number;
|
|
998
|
-
startKey?: string;
|
|
999
|
-
endKey?: string;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
type DataGridTranslations = {
|
|
1003
|
-
emptyState: string;
|
|
1004
|
-
itemsPerPageLabel: string;
|
|
1005
|
-
nextPageLabel: string;
|
|
1006
|
-
prevPageLabel: string;
|
|
1007
|
-
indexColumnHeader: string;
|
|
1008
|
-
};
|
|
1009
|
-
/**
|
|
1010
|
-
* Global default configuration for all `re-data-grid` instances.
|
|
1011
|
-
*
|
|
1012
|
-
* Use this shape in `provideDataGridDefaults(...)` to override base behavior
|
|
1013
|
-
* (pagination mode, row sizes, buffering, labels, debounce timings, etc.)
|
|
1014
|
-
* application-wide or within a scoped injector.
|
|
1015
|
-
*/
|
|
1016
|
-
type DataGridConfigProvider = {
|
|
1017
|
-
/** Pagination mode for the data grid. */
|
|
1018
|
-
mode: GridPaginationMode;
|
|
1019
|
-
/** Whether to display an index column with row numbers. */
|
|
1020
|
-
hasIndexColumn: boolean;
|
|
1021
|
-
/** Row selection configuration, including selection mode and behavior. */
|
|
1022
|
-
selection: GridSelection;
|
|
1023
|
-
/** Number of items to display per page. */
|
|
1024
|
-
pageSize: number;
|
|
1025
|
-
/** Sorting mode for grid columns. */
|
|
1026
|
-
sortMode: GridSortMode;
|
|
1027
|
-
/** Default column resize availability when column `resizable` is not explicitly set. */
|
|
1028
|
-
resizable: boolean;
|
|
1029
|
-
/** Height of each data row in pixels. */
|
|
1030
|
-
rowHeight: number;
|
|
1031
|
-
/** Height of the header row in pixels. */
|
|
1032
|
-
headerHeight: number;
|
|
1033
|
-
/** Grid height: a number in pixels, 'full' for 100% height, or 'default' for auto-calculated height. */
|
|
1034
|
-
height: number | 'full' | 'default';
|
|
1035
|
-
/** Number of extra rows to render above and below the visible viewport for smoother scrolling. */
|
|
1036
|
-
virtualBuffer: number;
|
|
1037
|
-
/** Loading indicator style: 'spinner' shows a loading spinner, 'skeleton' shows skeleton placeholders. */
|
|
1038
|
-
loadingMode: 'spinner' | 'skeleton';
|
|
1039
|
-
/** Whether pagination starts from page 0 (true) or page 1 (false). */
|
|
1040
|
-
pageStartFromZero: boolean;
|
|
1041
|
-
/** Whether to defer rendering of the main grid content for code-splitting. */
|
|
1042
|
-
deferContent: boolean;
|
|
1043
|
-
/** Whether to defer rendering of the header (groups + columns). */
|
|
1044
|
-
deferHeader: boolean;
|
|
1045
|
-
/** Whether to defer rendering of pinned rows (top + bottom). */
|
|
1046
|
-
deferPinned: boolean;
|
|
1047
|
-
/** Whether to defer rendering of cell content. */
|
|
1048
|
-
deferCells: boolean;
|
|
1049
|
-
/** Whether to defer rendering of header icons (sort/expand/checkbox). */
|
|
1050
|
-
deferIcons: boolean;
|
|
1051
|
-
/** Whether to defer rendering of the tooltip. */
|
|
1052
|
-
deferTooltip: boolean;
|
|
1053
|
-
/** Text strings for UI labels and messages. */
|
|
1054
|
-
translations: DataGridTranslations;
|
|
1055
|
-
/** Debounce timings in milliseconds for resize and scroll events to optimize performance. */
|
|
1056
|
-
debounce: {
|
|
1057
|
-
resize: number;
|
|
1058
|
-
scroll: number;
|
|
1059
|
-
};
|
|
1060
|
-
};
|
|
1061
|
-
type DataGridConfigOverrides = Partial<Omit<DataGridConfigProvider, 'translations' | 'debounce'>> & {
|
|
1062
|
-
translations?: Partial<DataGridTranslations>;
|
|
1063
|
-
debounce?: Partial<DataGridConfigProvider['debounce']>;
|
|
1064
|
-
};
|
|
1065
|
-
declare const DEFAULT_DATA_GRID_DEFAULTS: DataGridConfigProvider;
|
|
1066
|
-
declare const DATA_GRID_CONFIG: InjectionToken<DataGridConfigProvider>;
|
|
1067
|
-
type DataGridTypeTransformers<Data extends AnyDict = AnyDict> = Partial<Record<GridCellRendererType, GridCellTransformer<Data>>>;
|
|
1068
|
-
type DataGridTypeRenderers<Data extends AnyDict = AnyDict> = Partial<Record<GridCellRendererType, TemplateRef<RenderTemplateData<Data>>>>;
|
|
1069
|
-
type DataGridHeaderTextContext<Data extends AnyDict = AnyDict> = {
|
|
1070
|
-
kind: 'column';
|
|
1071
|
-
column: GridColumn<Data>;
|
|
1072
|
-
} | {
|
|
1073
|
-
kind: 'group';
|
|
1074
|
-
group: NormalizedHeader | Pick<NormalizedHeader, 'key' | 'title' | 'align'> | {
|
|
1075
|
-
title?: string;
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
type DataGridHeaderTextResolver<Data extends AnyDict = AnyDict> = (text: string, context: DataGridHeaderTextContext<Data>) => string | Signal<string>;
|
|
1079
|
-
declare const DATA_GRID_TYPE_TRANSFORMERS: InjectionToken<Partial<Record<string, GridCellTransformer<AnyDict>>>>;
|
|
1080
|
-
declare const DATA_GRID_TYPE_RENDERERS: InjectionToken<Partial<Record<string, TemplateRef<RenderTemplateData<AnyDict>>>>>;
|
|
1081
|
-
declare const DATA_GRID_HEADER_TEXT_RESOLVER: InjectionToken<DataGridHeaderTextResolver<AnyDict>>;
|
|
1082
|
-
/**
|
|
1083
|
-
* Provides a default configuration for Data Grid, overriding base settings.
|
|
1084
|
-
*
|
|
1085
|
-
* @param config Partial configuration object to be merged with current settings.
|
|
1086
|
-
* @returns EnvironmentProviders for use in application or component configuration.
|
|
1087
|
-
*/
|
|
1088
|
-
declare function provideDataGridDefaults(config: DataGridConfigOverrides): EnvironmentProviders;
|
|
1089
|
-
/**
|
|
1090
|
-
* Provides global type-based cell transformers for all `re-data-grid` instances in the current injector scope.
|
|
1091
|
-
*
|
|
1092
|
-
* Registrations are merged with parent injector registrations, and later providers override earlier ones.
|
|
1093
|
-
*/
|
|
1094
|
-
declare function provideDataGridTypeTransformers<Data extends AnyDict = AnyDict>(transformers: DataGridTypeTransformers<Data>): EnvironmentProviders;
|
|
1095
|
-
/**
|
|
1096
|
-
* Provides global type-based cell render templates for all `re-data-grid` instances in the current injector scope.
|
|
1097
|
-
*
|
|
1098
|
-
* Registrations are merged with parent injector registrations, and later providers override earlier ones.
|
|
1099
|
-
*/
|
|
1100
|
-
declare function provideDataGridTypeRenderers<Data extends AnyDict = AnyDict>(renderers: DataGridTypeRenderers<Data>): EnvironmentProviders;
|
|
1101
|
-
/**
|
|
1102
|
-
* Provides a global header text resolver for all `re-data-grid` instances in the current injector scope.
|
|
1103
|
-
*
|
|
1104
|
-
* Useful for integrating i18n layers without coupling the grid package to a specific translation library.
|
|
1105
|
-
* The factory runs in Angular DI context, so it may use `inject(...)` to access consumer-side services.
|
|
1106
|
-
*/
|
|
1107
|
-
declare function provideDataGridHeaderTextResolver<Data extends AnyDict = AnyDict>(factory: () => DataGridHeaderTextResolver<Data>): EnvironmentProviders;
|
|
1108
|
-
/**
|
|
1109
|
-
* Advanced variant of `provideDataGridHeaderTextResolver(...)` that composes with the parent injector resolver.
|
|
1110
|
-
*
|
|
1111
|
-
* Use this only when the current scope should extend or wrap an existing header resolver
|
|
1112
|
-
* instead of replacing it completely.
|
|
1113
|
-
*/
|
|
1114
|
-
declare function provideDataGridHeaderTextResolverWithParent<Data extends AnyDict = AnyDict>(factory: (parent: DataGridHeaderTextResolver<Data>) => DataGridHeaderTextResolver<Data>): EnvironmentProviders;
|
|
1115
|
-
|
|
1116
|
-
type DeclarativeColumnsResult<Data extends AnyDict = AnyDict> = {
|
|
1117
|
-
columns: GridColumns<Data>;
|
|
1118
|
-
rowCellTemplatesByKey: Map<string, TemplateRef<AnyType>>;
|
|
1119
|
-
};
|
|
1120
|
-
|
|
1121
1056
|
/**
|
|
1122
1057
|
* View model for the data grid component.
|
|
1123
1058
|
*
|
|
@@ -1907,6 +1842,6 @@ declare class DataGrid<Data extends AnyDict> {
|
|
|
1907
1842
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGrid<any>, "re-data-grid", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "source": { "alias": "source"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "pinnedRows": { "alias": "pinnedRows"; "required": false; "isSignal": true; }; "isRowSticky": { "alias": "isRowSticky"; "required": false; "isSignal": true; }; "isRowDisabled": { "alias": "isRowDisabled"; "required": false; "isSignal": true; }; "getRowClass": { "alias": "getRowClass"; "required": false; "isSignal": true; }; "getRowTemplate": { "alias": "getRowTemplate"; "required": false; "isSignal": true; }; "hasIndexColumn": { "alias": "hasIndexColumn"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; "selectionPolicy": { "alias": "selectionPolicy"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "virtualBuffer": { "alias": "virtualBuffer"; "required": false; "isSignal": true; }; "lockVerticalScroll": { "alias": "lockVerticalScroll"; "required": false; "isSignal": true; }; "headerGroups": { "alias": "headerGroups"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingMode": { "alias": "loadingMode"; "required": false; "isSignal": true; }; "deferContent": { "alias": "deferContent"; "required": false; "isSignal": true; }; "deferHeader": { "alias": "deferHeader"; "required": false; "isSignal": true; }; "deferPinned": { "alias": "deferPinned"; "required": false; "isSignal": true; }; "deferCells": { "alias": "deferCells"; "required": false; "isSignal": true; }; "deferIcons": { "alias": "deferIcons"; "required": false; "isSignal": true; }; "deferTooltip": { "alias": "deferTooltip"; "required": false; "isSignal": true; }; "rowKey": { "alias": "rowKey"; "required": false; "isSignal": true; }; "pageStartFromZero": { "alias": "pageStartFromZero"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; }, { "pageChange": "pageChange"; "sourceError": "sourceError"; "sortChange": "sortChange"; "multiSortChange": "multiSortChange"; "selectChange": "selectChange"; "selectedKeysChange": "selectedKeysChange"; "rowClick": "rowClick"; "rowContext": "rowContext"; "rowDoubleClick": "rowDoubleClick"; "cellClick": "cellClick"; "cellContext": "cellContext"; "cellDoubleClick": "cellDoubleClick"; "columnResizeEnd": "columnResizeEnd"; }, ["cellTypedSlotRefs", "cellDataSlotRefs", "declarativeColumnRefs", "headerSlotRefs", "emptySlotRefs", "loadingSlotRefs", "sortIcSlotRefs", "expanderIcSlotRefs", "stickyRowSlotRefs", "rowSlotRefs"], never, true, never>;
|
|
1908
1843
|
}
|
|
1909
1844
|
|
|
1910
|
-
export {
|
|
1911
|
-
export type { BaseGridColumn,
|
|
1845
|
+
export { DATA_GRID_HEADER_TEXT_RESOLVER, DATA_GRID_TYPE_RENDERERS, DATA_GRID_TYPE_TRANSFORMERS, DataGrid, DataGridCellEmptyDirective, DataGridCellLoadingDirective, DataGridCellTemplateDirective, DataGridDeclarativeCellDirective, DataGridDeclarativeColumn, DataGridDeclarativeHeaderDirective, DataGridExpanderIconDirective, DataGridHeaderTemplateDirective, DataGridRowDirective, DataGridSortIconDirective, DataGridStickyRowDirective, DataGridTypeCellTemplateDirective, gridBackendSortField, provideDataGridHeaderTextResolver, provideDataGridHeaderTextResolverWithParent, provideDataGridTypeRenderers, provideDataGridTypeTransformers };
|
|
1846
|
+
export type { BaseGridColumn, DataGridHeaderTextContext, DataGridHeaderTextResolver, DataGridRowTemplateContext, DataGridStickyRowTemplateContext, DataGridTypeRenderers, DataGridTypeTransformers, DeclarativeColumnDef, GridBackendSortField, GridBuiltInCellType, GridCellAlign, GridCellClickEvent, GridCellContextEvent, GridCellDoubleClickEvent, GridCellRenderer, GridCellRendererType, GridCellTransformer, GridCellTransformerContext, GridCellValueContext, GridColumn, GridColumnResizeEndEvent, GridColumnTooltip, GridColumns, GridHeaderGroup, GridMultiSortEvent, GridPageChangeEvent, GridPageRequestOptions, GridPageResult, GridPagedDataSource, GridPaginationMode, GridPinnedPosition, GridPinnedRow, GridPinnedRows, GridRowClickEvent, GridRowContextEvent, GridRowDoubleClickEvent, GridSelectEvent, GridSelectMode, GridSelection, GridSelectionByKey, GridSelectionPolicy, GridSelectionValue, GridSortEvent, GridSortItem, GridSortMode, GridSortOrder, GridSourceRequestErrorEvent, GridSourceRequestOperation, GridStickySide, GridTooltipContext, HeaderTemplateData, KeyResolver, RenderTemplateData };
|
|
1912
1847
|
//# sourceMappingURL=reforgium-data-grid.d.ts.map
|