@affino/datagrid-vue-app 0.1.56 → 0.1.58
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/DataGrid.d.ts +7 -3
- package/dist/chunks/{DataGridGanttStageEntry-CXAJI829.js → DataGridGanttStageEntry-pxdH3jzW.js} +555 -537
- package/dist/chunks/useDataGridAppRowModel-CsSB4MQp.js +5217 -0
- package/dist/config/dataGridFilterNormalization.d.ts +19 -0
- package/dist/config/dataGridFormulaOptions.d.ts +4 -1
- package/dist/gantt.js +1 -1
- package/dist/host/DataGridDefaultRenderer.d.ts +10 -0
- package/dist/host/DataGridRuntimeHost.d.ts +23 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.js +802 -698
- package/dist/internal.js +2 -2
- package/dist/overlays/dataGridColumnMenu.d.ts +25 -0
- package/package.json +5 -5
- package/dist/chunks/useDataGridAppRowModel-BNf-auAJ.js +0 -5083
package/dist/DataGrid.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type CSSProperties, type ExtractPublicPropTypes, type PropType, type VN
|
|
|
2
2
|
import { type CreateDataGridCoreOptions, type DataGridApi, type DataGridApiRowSelectionChangedEvent, type DataGridApiSelectionChangedEvent, type DataGridApiPluginDefinition, type DataGridAggregationModel, type DataGridColumnSnapshot, type DataGridColumnPin, type DataGridComputedFieldDefinition, type DataGridCoreServiceRegistry, type DataGridFilterSnapshot, type DataGridFormulaFieldDefinition, type DataGridFormulaFunctionRegistry, type DataGridGroupBySpec, type DataGridMigrateStateOptions, type DataGridRowNode, type DataGridRowSelectionSnapshot, type DataGridRowModel, type DataGridRowNodeInput, type DataGridSetStateOptions, type DataGridSortState, type DataGridUnifiedColumnState, type DataGridUnifiedState, type DataGridPivotSpec, type DataGridRowId, type UseDataGridRuntimeResult } from "@affino/datagrid-vue";
|
|
3
3
|
import { defineDataGridStructuralRowActionHandler, type DataGridStructuralRowActionHandler, type DataGridStructuralRowActionId } from "./dataGridStructuralRowActions";
|
|
4
4
|
import type { DataGridBivariantCallback } from "./types/bivariance";
|
|
5
|
+
import type { DataGridCaptureFocusAnchorOptions, DataGridFocusAnchor, DataGridRestoreFocusAnchorOptions } from "./host/DataGridRuntimeHost";
|
|
5
6
|
import type { DataGridAppToolbarModule } from "./host/DataGridModuleHost";
|
|
6
7
|
import { type DataGridAppClientRowModelOptions, type DataGridAppColumnInput } from "./config/dataGridFormulaOptions";
|
|
7
8
|
import { type DataGridChromeProp } from "./config/dataGridChrome";
|
|
@@ -26,6 +27,7 @@ import type { DataGridCellEditablePredicate } from "./dataGridEditability";
|
|
|
26
27
|
import { type DataGridHistoryController, type DataGridHistoryProp } from "./dataGridHistory";
|
|
27
28
|
import type { DataGridAppViewMode, DataGridGanttProp } from "./gantt/dataGridGantt.types";
|
|
28
29
|
import type { DataGridTableStageCenterPaneDiagnostics, DataGridTableStageCellClass, DataGridTableStageCustomOverlay } from "./stage/dataGridTableStage.types";
|
|
30
|
+
export type { DataGridCaptureFocusAnchorOptions, DataGridFocusAnchor, DataGridRestoreFocusAnchorOptions, } from "./host/DataGridRuntimeHost";
|
|
29
31
|
type DataGridRuntimeOverrides = Omit<Partial<DataGridCoreServiceRegistry>, "rowModel" | "columnModel" | "viewport"> & {
|
|
30
32
|
viewport?: DataGridCoreServiceRegistry["viewport"];
|
|
31
33
|
};
|
|
@@ -369,6 +371,8 @@ export interface DataGridExposed<TRow = unknown> {
|
|
|
369
371
|
getHistory: () => DataGridHistoryController;
|
|
370
372
|
getApi: () => DataGridApi<TRow> | null;
|
|
371
373
|
getRuntime: () => DataGridExposedRuntime<TRow> | null;
|
|
374
|
+
captureFocusAnchor: (options?: DataGridCaptureFocusAnchorOptions) => DataGridFocusAnchor<DataGridRowId> | null;
|
|
375
|
+
restoreFocusAnchor: (anchor: DataGridFocusAnchor<DataGridRowId> | null | undefined, options?: DataGridRestoreFocusAnchorOptions) => Promise<boolean>;
|
|
372
376
|
restoreFocus: () => void;
|
|
373
377
|
getSelectionAggregatesLabel: () => string;
|
|
374
378
|
runStructuralRowAction: (action: DataGridStructuralRowActionId, rowId: string | number) => Promise<boolean>;
|
|
@@ -1000,10 +1004,10 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
|
|
|
1000
1004
|
rowModel: DataGridRowModel<Record<string, unknown>> | null;
|
|
1001
1005
|
}) => any) | undefined;
|
|
1002
1006
|
}, {
|
|
1007
|
+
readonly columns: readonly DataGridAppColumnInput<unknown>[];
|
|
1003
1008
|
readonly rows: readonly unknown[];
|
|
1004
1009
|
readonly readFilterCell: DataGridFilterCellReader<unknown> | undefined;
|
|
1005
1010
|
readonly readFilterCellStyle: DataGridFilterCellStyleReader<unknown> | undefined;
|
|
1006
|
-
readonly columns: readonly DataGridAppColumnInput<unknown>[];
|
|
1007
1011
|
readonly clientRowModelOptions: DataGridAppClientRowModelOptions<unknown> | undefined;
|
|
1008
1012
|
readonly rowHeightMode: "fixed" | "auto";
|
|
1009
1013
|
readonly layoutMode: DataGridLayoutMode;
|
|
@@ -1052,13 +1056,13 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
|
|
|
1052
1056
|
readonly toolbarModules: readonly DataGridAppToolbarModule[];
|
|
1053
1057
|
readonly history: DataGridHistoryProp | undefined;
|
|
1054
1058
|
readonly runStructuralRowAction: DataGridStructuralRowActionHandler<Record<string, unknown>> | undefined;
|
|
1055
|
-
readonly pageSize: number | undefined;
|
|
1056
|
-
readonly currentPage: number | undefined;
|
|
1057
1059
|
readonly startupOrder: readonly import("@affino/datagrid-core").DataGridCoreServiceName[] | undefined;
|
|
1058
1060
|
readonly theme: DataGridThemeProp;
|
|
1059
1061
|
readonly plugins: readonly DataGridApiPluginDefinition<unknown>[];
|
|
1060
1062
|
readonly services: DataGridRuntimeOverrides | undefined;
|
|
1061
1063
|
readonly autoStart: boolean;
|
|
1064
|
+
readonly pageSize: number | undefined;
|
|
1065
|
+
readonly currentPage: number | undefined;
|
|
1062
1066
|
readonly columnState: DataGridUnifiedColumnState | null | undefined;
|
|
1063
1067
|
readonly computedFields: readonly DataGridComputedFieldDefinition<unknown>[] | null | undefined;
|
|
1064
1068
|
readonly formulas: readonly DataGridFormulaFieldDefinition[] | null | undefined;
|