@affino/datagrid-vue-app 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/DataGrid.d.ts +3 -3
- package/dist/aggregations.d.ts +2 -0
- package/dist/aggregations.js +4 -0
- package/dist/chunks/DataGridAggregationsPopover-Cc5jl8dA.js +4 -0
- package/dist/chunks/{DataGridAggregationsPopover-BBREw3IM.js → DataGridAggregationsPopover.vue_vue_type_script_setup_true_lang-DgbgGPYX.js} +1 -1
- package/dist/chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-uUcd947u.js +1007 -0
- package/dist/chunks/DataGridGanttStageEntry-Cm-Z--yH.js +40 -0
- package/dist/chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-CNQ6W53N.js +8047 -0
- package/dist/chunks/useDataGridAppFindReplace-DTSLds4f.js +272 -0
- package/dist/chunks/useDataGridAppRowModel-B6wKTGdm.js +3965 -0
- package/dist/config/dataGridSavedView.d.ts +1 -1
- package/dist/gantt/DataGridGanttStageEntry.d.ts +1 -1
- package/dist/gantt/dataGridGantt.types.d.ts +2 -0
- package/dist/gantt.d.ts +1 -1
- package/dist/gantt.js +4 -4
- package/dist/host/DataGridDefaultRenderer.d.ts +1 -1
- package/dist/host/DataGridRuntimeHost.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/internal.js +28 -27
- package/package.json +5 -1
- package/dist/chunks/DataGridGanttStageEntry-BPW1JMgB.js +0 -9080
- package/dist/chunks/useDataGridAppRowModel-kmgM9pk5.js +0 -4100
package/README.md
CHANGED
|
@@ -74,6 +74,25 @@ Peer dependencies:
|
|
|
74
74
|
|
|
75
75
|
- `vue ^3.3.0`
|
|
76
76
|
|
|
77
|
+
## Optional Entrypoints
|
|
78
|
+
|
|
79
|
+
The root package entry is intentionally kept as the base table app surface.
|
|
80
|
+
|
|
81
|
+
Use subpath imports when you want optional feature modules explicitly:
|
|
82
|
+
|
|
83
|
+
- `@affino/datagrid-vue-app/gantt`
|
|
84
|
+
- `@affino/datagrid-vue-app/advanced-filter`
|
|
85
|
+
- `@affino/datagrid-vue-app/find-replace`
|
|
86
|
+
- `@affino/datagrid-vue-app/aggregations`
|
|
87
|
+
|
|
88
|
+
Practical implications:
|
|
89
|
+
|
|
90
|
+
- ordinary `DataGrid` table usage no longer needs to pull `@affino/datagrid-gantt` through the root runtime graph
|
|
91
|
+
- gantt stage code is loaded lazily only when the gantt view is rendered
|
|
92
|
+
- advanced filter, find / replace, and aggregations remain available as optional package entrypoints instead of mandatory consumer-side chunking requirements
|
|
93
|
+
|
|
94
|
+
Consumer-side chunk tuning can still help, but it is now an optimization rather than a workaround for the package boundary.
|
|
95
|
+
|
|
77
96
|
## Quick Start
|
|
78
97
|
|
|
79
98
|
Minimal example with virtualization and built-in features.
|
package/dist/DataGrid.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { type DataGridCellMenuProp, type DataGridRowIndexMenuProp } from "./over
|
|
|
18
18
|
import { type DataGridVirtualizationProp } from "./config/dataGridVirtualization";
|
|
19
19
|
import type { DataGridCellEditablePredicate } from "./dataGridEditability";
|
|
20
20
|
import { type DataGridHistoryProp } from "./dataGridHistory";
|
|
21
|
-
import type { DataGridAppViewMode, DataGridGanttProp } from "./gantt/dataGridGantt";
|
|
21
|
+
import type { DataGridAppViewMode, DataGridGanttProp } from "./gantt/dataGridGantt.types";
|
|
22
22
|
type DataGridRuntimeOverrides = Omit<Partial<DataGridCoreServiceRegistry>, "rowModel" | "columnModel" | "viewport"> & {
|
|
23
23
|
viewport?: DataGridCoreServiceRegistry["viewport"];
|
|
24
24
|
};
|
|
@@ -532,11 +532,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
532
532
|
state: DataGridUnifiedState<Record<string, unknown>> | null | undefined;
|
|
533
533
|
chrome: DataGridChromeProp | undefined;
|
|
534
534
|
gantt: DataGridGanttProp | undefined;
|
|
535
|
-
rowModel: DataGridRowModel<unknown> | undefined;
|
|
536
|
-
baseRowHeight: number;
|
|
537
535
|
virtualization: DataGridVirtualizationProp | undefined;
|
|
538
536
|
pagination: DataGridPaginationProp | undefined;
|
|
537
|
+
rowModel: DataGridRowModel<unknown> | undefined;
|
|
539
538
|
aggregations: DataGridAggregationsProp | undefined;
|
|
539
|
+
baseRowHeight: number;
|
|
540
540
|
sortModel: readonly DataGridSortState[] | undefined;
|
|
541
541
|
filterModel: DataGridFilterSnapshot | null | undefined;
|
|
542
542
|
groupBy: DataGridGroupByProp | undefined;
|