@simple-table/angular 4.1.0 → 4.1.2
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/dist/fesm2022/simple-table-angular.mjs +659 -0
- package/dist/fesm2022/simple-table-angular.mjs.map +1 -0
- package/dist/index.d.ts +263 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +24 -24
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.js.map +0 -1
- package/dist/index.es.js +0 -2
- package/dist/index.es.js.map +0 -1
- package/dist/types/MountRegistry.d.ts +0 -15
- package/dist/types/buildVanillaConfig.d.ts +0 -7
- package/dist/types/index.d.ts +0 -8
- package/dist/types/lib/SimpleTableComponent.d.ts +0 -92
- package/dist/types/lib/provideSimpleTable.d.ts +0 -23
- package/dist/types/types.d.ts +0 -106
- package/dist/types/utils/wrapAngularRenderer.d.ts +0 -26
package/dist/types/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { SimpleTableComponent } from "./lib/SimpleTableComponent";
|
|
2
|
-
export { asRows } from "simple-table-core";
|
|
3
|
-
export { provideSimpleTable } from "./lib/provideSimpleTable";
|
|
4
|
-
/** Wrap a standalone component as an HTMLElement (e.g. for `tableEmptyStateRenderer`). */
|
|
5
|
-
export { wrapAngularRenderer } from "./utils/wrapAngularRenderer";
|
|
6
|
-
export type { SimpleTableAngularProps, TableInstance, AngularColumnDef, NestedAngularColumnDef, NestedTableAngularConfig, AngularIconsConfig, AngularIconSlot, AngularColumnEditorConfig, AngularCellRenderer, AngularHeaderRenderer, AngularFooterRenderer, AngularHeaderDropdown, AngularColumnEditorRowRenderer, AngularColumnEditorCustomRenderer, AngularLoadingStateRenderer, AngularErrorStateRenderer, AngularEmptyStateRenderer, AngularRowButton, AngularDefaultRowData, } from "./types";
|
|
7
|
-
export type { Accessor, AggregationConfig, AggregationType, AnimationsConfig, AutoSizeMode, ColumnDef, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ChartOptions, ColumnEditorConfig, ColumnEditorRowRenderer, ColumnEditorRowRendererComponents, ColumnEditorCustomRenderer, ColumnEditorCustomRendererProps, ColumnEditorRowRendererProps, ColumnEditorSearchFunction, ColumnType, ColumnVisibilityState, Comparator, ComparatorProps, CustomTheme, CustomThemeProps, EmptyStateRenderer, EmptyStateRendererProps, EnumOption, ErrorStateRenderer, ErrorStateRendererProps, ExportToCSVProps, ExportValueGetter, ExportValueProps, FilterCondition, FilterOperator, StringFilterOperator, NumberFilterOperator, BooleanFilterOperator, DateFilterOperator, EnumFilterOperator, FooterRendererProps, FooterPosition, GetRowId, GetRowIdParams, HeaderDropdown, HeaderDropdownProps, HeaderRenderer, HeaderRendererComponents, HeaderRendererProps, IconsConfig, LoadingStateRenderer, LoadingStateRendererProps, OnRowGroupExpandProps, Pinned, PinnedSectionsState, PivotConfig, PivotValueConfig, PivotResult, QuickFilterConfig, QuickFilterGetter, QuickFilterGetterProps, QuickFilterMode, Row, RowButtonProps, RowId, RowSelectionChangeProps, RowSelectionMode, RowState, SetHeaderRenameProps, ShowWhen, SimpleTableConfig, SimpleTableProps, SortColumn, TableAPI, TableFilterState, TableRow, Theme, UpdateDataProps, ValueFormatter, ValueFormatterProps, ValueGetter, ValueGetterProps, } from "simple-table-core";
|
|
8
|
-
export { pivotRows, buildPivotAccessor, buildPivotRowTotalAccessor, PIVOT_CHILDREN_KEY, PIVOT_IS_TOTAL_KEY, PIVOT_ACCESSOR_PREFIX, PIVOT_BLANK_LABEL, } from "simple-table-core";
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit, EventEmitter } from "@angular/core";
|
|
2
|
-
import type { TableAPI } from "simple-table-core";
|
|
3
|
-
import type { AngularDefaultRowData, SimpleTableAngularProps } from "../types";
|
|
4
|
-
/**
|
|
5
|
-
* SimpleTable — Angular adapter for simple-table-core.
|
|
6
|
-
*
|
|
7
|
-
* Accepts the same props as SimpleTableProps (the vanilla user-facing API) but
|
|
8
|
-
* with Angular component types for all renderer props.
|
|
9
|
-
*
|
|
10
|
-
* Prefer typed `rows` / `columns` (`AngularColumnDef<MyRow>`). For a typed
|
|
11
|
-
* imperative handle, use `@ViewChild(SimpleTableComponent) table!: SimpleTableComponent<MyRow>`
|
|
12
|
-
* or listen to `(tableReady)`.
|
|
13
|
-
*/
|
|
14
|
-
export declare class SimpleTableComponent<TData extends AngularDefaultRowData = AngularDefaultRowData> implements OnInit, OnChanges, OnDestroy {
|
|
15
|
-
rows: SimpleTableAngularProps<TData>["rows"];
|
|
16
|
-
columns?: SimpleTableAngularProps<TData>["columns"];
|
|
17
|
-
footerRenderer?: SimpleTableAngularProps<TData>["footerRenderer"];
|
|
18
|
-
loadingStateRenderer?: SimpleTableAngularProps<TData>["loadingStateRenderer"];
|
|
19
|
-
errorStateRenderer?: SimpleTableAngularProps<TData>["errorStateRenderer"];
|
|
20
|
-
emptyStateRenderer?: SimpleTableAngularProps<TData>["emptyStateRenderer"];
|
|
21
|
-
tableEmptyStateRenderer?: SimpleTableAngularProps<TData>["tableEmptyStateRenderer"];
|
|
22
|
-
headerDropdown?: SimpleTableAngularProps<TData>["headerDropdown"];
|
|
23
|
-
columnEditorConfig?: SimpleTableAngularProps<TData>["columnEditorConfig"];
|
|
24
|
-
onCellClick?: SimpleTableAngularProps<TData>["onCellClick"];
|
|
25
|
-
onCellEdit?: SimpleTableAngularProps<TData>["onCellEdit"];
|
|
26
|
-
onSortChange?: SimpleTableAngularProps<TData>["onSortChange"];
|
|
27
|
-
onFilterChange?: SimpleTableAngularProps<TData>["onFilterChange"];
|
|
28
|
-
onRowSelectionChange?: SimpleTableAngularProps<TData>["onRowSelectionChange"];
|
|
29
|
-
onRowGroupExpand?: SimpleTableAngularProps<TData>["onRowGroupExpand"];
|
|
30
|
-
onColumnOrderChange?: SimpleTableAngularProps<TData>["onColumnOrderChange"];
|
|
31
|
-
onColumnVisibilityChange?: SimpleTableAngularProps<TData>["onColumnVisibilityChange"];
|
|
32
|
-
onColumnWidthChange?: SimpleTableAngularProps<TData>["onColumnWidthChange"];
|
|
33
|
-
onPageChange?: SimpleTableAngularProps<TData>["onPageChange"];
|
|
34
|
-
onLoadMore?: SimpleTableAngularProps<TData>["onLoadMore"];
|
|
35
|
-
onTableReady?: SimpleTableAngularProps<TData>["onTableReady"];
|
|
36
|
-
rowGrouping?: SimpleTableAngularProps<TData>["rowGrouping"];
|
|
37
|
-
pivot?: SimpleTableAngularProps<TData>["pivot"];
|
|
38
|
-
onPivotChange?: SimpleTableAngularProps<TData>["onPivotChange"];
|
|
39
|
-
enableRowSelection?: SimpleTableAngularProps<TData>["enableRowSelection"];
|
|
40
|
-
theme?: SimpleTableAngularProps<TData>["theme"];
|
|
41
|
-
quickFilter?: SimpleTableAngularProps<TData>["quickFilter"];
|
|
42
|
-
isLoading?: SimpleTableAngularProps<TData>["isLoading"];
|
|
43
|
-
getRowId?: SimpleTableAngularProps<TData>["getRowId"];
|
|
44
|
-
enablePagination?: SimpleTableAngularProps<TData>["enablePagination"];
|
|
45
|
-
rowsPerPage?: SimpleTableAngularProps<TData>["rowsPerPage"];
|
|
46
|
-
serverSidePagination?: SimpleTableAngularProps<TData>["serverSidePagination"];
|
|
47
|
-
totalRowCount?: SimpleTableAngularProps<TData>["totalRowCount"];
|
|
48
|
-
height?: SimpleTableAngularProps<TData>["height"];
|
|
49
|
-
maxHeight?: SimpleTableAngularProps<TData>["maxHeight"];
|
|
50
|
-
scrollParent?: SimpleTableAngularProps<TData>["scrollParent"];
|
|
51
|
-
infiniteScrollThreshold?: SimpleTableAngularProps<TData>["infiniteScrollThreshold"];
|
|
52
|
-
columnResizing?: SimpleTableAngularProps<TData>["columnResizing"];
|
|
53
|
-
columnReordering?: SimpleTableAngularProps<TData>["columnReordering"];
|
|
54
|
-
enableColumnEditor?: SimpleTableAngularProps<TData>["enableColumnEditor"];
|
|
55
|
-
enableColumnEditorInitOpen?: SimpleTableAngularProps<TData>["enableColumnEditorInitOpen"];
|
|
56
|
-
selectableCells?: SimpleTableAngularProps<TData>["selectableCells"];
|
|
57
|
-
selectableColumns?: SimpleTableAngularProps<TData>["selectableColumns"];
|
|
58
|
-
enableHeaderEditing?: SimpleTableAngularProps<TData>["enableHeaderEditing"];
|
|
59
|
-
onHeaderEdit?: SimpleTableAngularProps<TData>["onHeaderEdit"];
|
|
60
|
-
customTheme?: SimpleTableAngularProps<TData>["customTheme"];
|
|
61
|
-
icons?: SimpleTableAngularProps<TData>["icons"];
|
|
62
|
-
externalFilterHandling?: SimpleTableAngularProps<TData>["externalFilterHandling"];
|
|
63
|
-
externalSortHandling?: SimpleTableAngularProps<TData>["externalSortHandling"];
|
|
64
|
-
columnBorders?: SimpleTableAngularProps<TData>["columnBorders"];
|
|
65
|
-
rowButtons?: SimpleTableAngularProps<TData>["rowButtons"];
|
|
66
|
-
hideFooter?: SimpleTableAngularProps<TData>["hideFooter"];
|
|
67
|
-
footerPosition?: SimpleTableAngularProps<TData>["footerPosition"];
|
|
68
|
-
initialSortColumn?: SimpleTableAngularProps<TData>["initialSortColumn"];
|
|
69
|
-
initialSortDirection?: SimpleTableAngularProps<TData>["initialSortDirection"];
|
|
70
|
-
expandAll?: SimpleTableAngularProps<TData>["expandAll"];
|
|
71
|
-
autoExpandColumns?: SimpleTableAngularProps<TData>["autoExpandColumns"];
|
|
72
|
-
animations?: SimpleTableAngularProps<TData>["animations"];
|
|
73
|
-
enableVirtualization?: SimpleTableAngularProps<TData>["enableVirtualization"];
|
|
74
|
-
hoverRowBackground?: SimpleTableAngularProps<TData>["hoverRowBackground"];
|
|
75
|
-
oddColumnBackground?: SimpleTableAngularProps<TData>["oddColumnBackground"];
|
|
76
|
-
oddEvenRowBackground?: SimpleTableAngularProps<TData>["oddEvenRowBackground"];
|
|
77
|
-
/** Emits the TableAPI once the table has mounted. */
|
|
78
|
-
tableReady: EventEmitter<TableAPI<TData>>;
|
|
79
|
-
private instance;
|
|
80
|
-
private registry;
|
|
81
|
-
private syncedDefaultHeaders;
|
|
82
|
-
private syncedRows;
|
|
83
|
-
private hostEl;
|
|
84
|
-
private appRef;
|
|
85
|
-
private envInjector;
|
|
86
|
-
ngOnInit(): void;
|
|
87
|
-
ngOnChanges(): void;
|
|
88
|
-
ngOnDestroy(): void;
|
|
89
|
-
/** Returns the full imperative TableAPI. Use via @ViewChild or (tableReady) output. */
|
|
90
|
-
getAPI(): TableAPI<TData> | null;
|
|
91
|
-
private getProps;
|
|
92
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { EnvironmentProviders } from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Call this in your application's `providers` array (or `bootstrapApplication`
|
|
4
|
-
* providers) to register the dependencies that simple-table-angular's renderer
|
|
5
|
-
* bridge needs — specifically `ApplicationRef` and `EnvironmentInjector`.
|
|
6
|
-
*
|
|
7
|
-
* These are already provided by Angular's platform by default, so in practice
|
|
8
|
-
* this function is a no-op placeholder that serves as a clear signal to
|
|
9
|
-
* consumers that the adapter has been correctly wired up. If future versions
|
|
10
|
-
* need custom providers they will be added here without breaking the call site.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // main.ts
|
|
14
|
-
* bootstrapApplication(AppComponent, {
|
|
15
|
-
* providers: [provideSimpleTable()],
|
|
16
|
-
* });
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // app.module.ts
|
|
20
|
-
* @NgModule({ providers: [provideSimpleTable()] })
|
|
21
|
-
* export class AppModule {}
|
|
22
|
-
*/
|
|
23
|
-
export declare function provideSimpleTable(): EnvironmentProviders;
|
package/dist/types/types.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import type { Type } from "@angular/core";
|
|
2
|
-
import type { SimpleTableProps, SimpleTableConfig, ColumnDef, TableAPI, CellValue, CellRenderer, CellRendererProps, HeaderRenderer, HeaderRendererProps, FooterRendererProps, LoadingStateRendererProps, ErrorStateRendererProps, EmptyStateRendererProps, HeaderDropdownProps, ColumnEditorRowRendererProps, ColumnEditorCustomRendererProps, ColumnEditorConfig } from "simple-table-core";
|
|
3
|
-
/**
|
|
4
|
-
* Default `TData` for Angular props bags / helpers: open records so untyped
|
|
5
|
-
* object arrays keep assigning to `rows` without `asRows`.
|
|
6
|
-
*
|
|
7
|
-
* Prefer typed `rows` / `columns` (`AngularColumnDef<MyRow>`) so `TData` flows
|
|
8
|
-
* into callbacks. Template/`@Input` inference is weaker than React/Solid JSX —
|
|
9
|
-
* typed column defs and a typed `SimpleTableComponent<MyRow>` ViewChild still
|
|
10
|
-
* give the demo win. Angular cell components stay `Type<unknown>` (see below).
|
|
11
|
-
*/
|
|
12
|
-
export type AngularDefaultRowData = Record<string, any>;
|
|
13
|
-
export interface TableInstance {
|
|
14
|
-
mount(): void;
|
|
15
|
-
update(config: Partial<SimpleTableConfig>): void;
|
|
16
|
-
destroy(): void;
|
|
17
|
-
getAPI(): TableAPI;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Angular table slots are component class refs (`Type<unknown>`), not `Type<SomeProps>`.
|
|
21
|
-
* `Type<CellRendererProps>` would mean `new () => CellRendererProps`, but cell components
|
|
22
|
-
* construct decorated classes whose instances are not structurally `CellRendererProps`
|
|
23
|
-
* even though the adapter binds those values via `@Input()` at runtime. The concrete
|
|
24
|
-
* input contract for each slot remains the matching `*RendererProps` type from
|
|
25
|
-
* `simple-table-core` (re-exported below). Function (vanilla) renderers keep `TData`.
|
|
26
|
-
*/
|
|
27
|
-
/** Angular component class, or a core vanilla renderer (non-`ɵcmp` values pass through). */
|
|
28
|
-
export type AngularCellRenderer<TData extends AngularDefaultRowData = AngularDefaultRowData, TValue = CellValue> = Type<unknown> | CellRenderer<TData, TValue>;
|
|
29
|
-
export type AngularHeaderRenderer<TData extends AngularDefaultRowData = AngularDefaultRowData> = Type<unknown> | HeaderRenderer<TData>;
|
|
30
|
-
export type AngularFooterRenderer = Type<unknown>;
|
|
31
|
-
export type AngularHeaderDropdown = Type<unknown>;
|
|
32
|
-
export type AngularColumnEditorRowRenderer = Type<unknown>;
|
|
33
|
-
export type AngularColumnEditorCustomRenderer = Type<unknown>;
|
|
34
|
-
export type AngularLoadingStateRenderer = Type<unknown>;
|
|
35
|
-
export type AngularErrorStateRenderer = Type<unknown>;
|
|
36
|
-
export type AngularEmptyStateRenderer = Type<unknown>;
|
|
37
|
-
export type AngularRowButton = Type<unknown>;
|
|
38
|
-
/** Per-slot icon: Angular component or vanilla element/string (pass-through). */
|
|
39
|
-
export type AngularIconSlot = Type<unknown> | SVGSVGElement | HTMLElement | string;
|
|
40
|
-
export interface AngularIconsConfig {
|
|
41
|
-
drag?: AngularIconSlot;
|
|
42
|
-
expand?: AngularIconSlot;
|
|
43
|
-
filter?: AngularIconSlot;
|
|
44
|
-
headerCollapse?: AngularIconSlot;
|
|
45
|
-
headerExpand?: AngularIconSlot;
|
|
46
|
-
next?: AngularIconSlot;
|
|
47
|
-
prev?: AngularIconSlot;
|
|
48
|
-
sortDown?: AngularIconSlot;
|
|
49
|
-
sortUp?: AngularIconSlot;
|
|
50
|
-
pinnedLeftIcon?: AngularIconSlot;
|
|
51
|
-
pinnedRightIcon?: AngularIconSlot;
|
|
52
|
-
}
|
|
53
|
-
export interface AngularColumnEditorConfig extends Omit<ColumnEditorConfig, "rowRenderer" | "customRenderer"> {
|
|
54
|
-
rowRenderer?: AngularColumnEditorRowRenderer;
|
|
55
|
-
customRenderer?: AngularColumnEditorCustomRenderer;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Column definition for `columns`: same column metadata as core
|
|
59
|
-
* columns, but `cellRenderer` / `headerRenderer` / `children` / `nestedTable` are Angular-only.
|
|
60
|
-
*/
|
|
61
|
-
export interface AngularColumnDef<TData extends AngularDefaultRowData = AngularDefaultRowData, TValue = CellValue> extends Omit<ColumnDef<TData, TValue>, "cellRenderer" | "headerRenderer" | "children" | "nestedTable"> {
|
|
62
|
-
cellRenderer?: AngularCellRenderer<TData, TValue>;
|
|
63
|
-
headerRenderer?: AngularHeaderRenderer<TData>;
|
|
64
|
-
children?: ReadonlyArray<AngularColumnDef<TData, any>>;
|
|
65
|
-
/** Nested grid; child columns may use a different row type than `TData`. */
|
|
66
|
-
nestedTable?: NestedTableAngularConfig;
|
|
67
|
-
}
|
|
68
|
-
export interface SimpleTableAngularProps<TData extends AngularDefaultRowData = AngularDefaultRowData> extends Omit<SimpleTableProps<TData>, "rows" | "columns" | "footerRenderer" | "emptyStateRenderer" | "errorStateRenderer" | "loadingStateRenderer" | "tableEmptyStateRenderer" | "headerDropdown" | "columnEditorConfig" | "icons" | "rowButtons" | "onColumnOrderChange" | "onColumnWidthChange" | "onHeaderEdit" | "onColumnSelect"> {
|
|
69
|
-
/** Column definitions. */
|
|
70
|
-
columns?: ReadonlyArray<AngularColumnDef<TData, any>>;
|
|
71
|
-
onColumnOrderChange?: (newHeaders: AngularColumnDef<TData, any>[]) => void;
|
|
72
|
-
onColumnWidthChange?: (headers: AngularColumnDef<TData, any>[]) => void;
|
|
73
|
-
onHeaderEdit?: (header: AngularColumnDef<TData, any>, newLabel: string) => void;
|
|
74
|
-
onColumnSelect?: (header: AngularColumnDef<TData, any>) => void;
|
|
75
|
-
/** Row data; cast to vanilla `Row[]` inside the adapter. */
|
|
76
|
-
rows: readonly TData[];
|
|
77
|
-
footerRenderer?: AngularFooterRenderer;
|
|
78
|
-
loadingStateRenderer?: AngularLoadingStateRenderer;
|
|
79
|
-
errorStateRenderer?: AngularErrorStateRenderer;
|
|
80
|
-
emptyStateRenderer?: AngularEmptyStateRenderer;
|
|
81
|
-
tableEmptyStateRenderer?: HTMLElement | string | null;
|
|
82
|
-
headerDropdown?: AngularHeaderDropdown;
|
|
83
|
-
columnEditorConfig?: AngularColumnEditorConfig;
|
|
84
|
-
icons?: AngularIconsConfig;
|
|
85
|
-
/** Per-row action buttons; each entry is an Angular component rendered into the row's selection column. */
|
|
86
|
-
rowButtons?: AngularRowButton[];
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* TData-bound call signatures omitted at nest boundaries so
|
|
90
|
-
* `AngularColumnDef<Child>[]` assigns under a parent column without casts/`any`.
|
|
91
|
-
* Child columns stay fully checked at their own declaration site.
|
|
92
|
-
*/
|
|
93
|
-
type AngularColumnDefCallbacks = "cellRenderer" | "headerRenderer" | "children" | "nestedTable" | "comparator" | "exportValueGetter" | "valueFormatter" | "valueGetter" | "quickFilterGetter";
|
|
94
|
-
/** Column shape accepted on nested grids — metadata only, no TData-bound callbacks. */
|
|
95
|
-
export type NestedAngularColumnDef = Omit<AngularColumnDef<AngularDefaultRowData>, AngularColumnDefCallbacks> & {
|
|
96
|
-
children?: ReadonlyArray<NestedAngularColumnDef>;
|
|
97
|
-
nestedTable?: NestedTableAngularConfig;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Nested grid props (no `rows` / inherited state renderers).
|
|
101
|
-
* Child row shape may differ from the parent column's `TData`.
|
|
102
|
-
*/
|
|
103
|
-
export type NestedTableAngularConfig = Omit<SimpleTableAngularProps, "rows" | "columns" | "loadingStateRenderer" | "errorStateRenderer" | "emptyStateRenderer" | "tableEmptyStateRenderer"> & {
|
|
104
|
-
columns?: ReadonlyArray<NestedAngularColumnDef>;
|
|
105
|
-
};
|
|
106
|
-
export type { CellRendererProps, HeaderRendererProps, FooterRendererProps, LoadingStateRendererProps, ErrorStateRendererProps, EmptyStateRendererProps, HeaderDropdownProps, ColumnEditorRowRendererProps, ColumnEditorCustomRendererProps, };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef, EnvironmentInjector, type Type } from "@angular/core";
|
|
2
|
-
import type { MountRegistry } from "../MountRegistry";
|
|
3
|
-
/**
|
|
4
|
-
* Wraps an Angular standalone component into a function that returns an
|
|
5
|
-
* HTMLElement, matching the vanilla renderer contract expected by
|
|
6
|
-
* simple-table-core.
|
|
7
|
-
*
|
|
8
|
-
* Requires references to the running Angular ApplicationRef and
|
|
9
|
-
* EnvironmentInjector so it can attach the dynamically-created component
|
|
10
|
-
* to the change detection tree and trigger a synchronous flush before
|
|
11
|
-
* returning the element to the vanilla rendering pipeline.
|
|
12
|
-
*
|
|
13
|
-
* Pass an optional {@link MountRegistry} so core's `onRendererHostDiscard` can
|
|
14
|
-
* destroy the ComponentRef (including any CDK Overlay / floating UI) when the
|
|
15
|
-
* host is discarded. The table adapter always supplies a registry; the public
|
|
16
|
-
* helper used for one-shot static slots (e.g. `tableEmptyStateRenderer`) may omit it.
|
|
17
|
-
*
|
|
18
|
-
* These are injected automatically when the consumer uses
|
|
19
|
-
* `provideSimpleTable()` in their application providers.
|
|
20
|
-
*/
|
|
21
|
-
export declare function wrapAngularRenderer<P extends object>(component: Type<P>, appRef: ApplicationRef, injector: EnvironmentInjector, registry?: MountRegistry): (props: Partial<P>) => HTMLElement;
|
|
22
|
-
/**
|
|
23
|
-
* Like {@link wrapAngularRenderer}, but reuses one wrapper per accessor so
|
|
24
|
-
* unstable column rebuilds keep a stable function identity on ColumnDef.
|
|
25
|
-
*/
|
|
26
|
-
export declare function wrapCachedAngularRenderer<P extends object>(component: Type<P>, appRef: ApplicationRef, injector: EnvironmentInjector, registry: MountRegistry, accessor: string, kind: "cell" | "header"): (props: Partial<P>) => HTMLElement;
|