@affino/datagrid-vue-app 0.1.18 → 0.1.20
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 +40 -0
- package/dist/DataGrid.d.ts +20 -0
- package/dist/DataGridTableStage.vue.d.ts +9 -0
- package/dist/advanced-filter.js +1 -1
- package/dist/advancedFilterDraftClauses.d.ts +6 -0
- package/dist/chunks/{DataGridAdvancedFilterPopover-CabJ-Ztk.js → DataGridAdvancedFilterPopover-CRd9hbEZ.js} +1 -1
- package/dist/chunks/{DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-x-cfVm5j.js → DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DhdOikY0.js} +10 -8
- package/dist/chunks/{DataGridAggregationsPopover-DfQ3-UV4.js → DataGridAggregationsPopover-Bu7nZX7u.js} +6 -4
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-BPU8WkWd.js +373 -0
- package/dist/chunks/DataGridFindReplacePopover-DCuFy-bD.js +4 -0
- package/dist/chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-DfHFHhUf.js +171 -0
- package/dist/chunks/DataGridGanttStageEntry-BbSAXYrL.js +8404 -0
- package/dist/chunks/dataGridOverlayThemeVars-vzY74EIz.js +33 -0
- package/dist/chunks/useDataGridAppRowModel-Cq1nWBYl.js +3498 -0
- package/dist/config/dataGridFindReplace.d.ts +9 -0
- package/dist/config/dataGridGridLines.d.ts +16 -0
- package/dist/dataGridGridLines.d.ts +1 -0
- package/dist/find-replace.d.ts +2 -0
- package/dist/find-replace.js +4 -0
- package/dist/gantt.js +1 -1
- package/dist/gestures/dataGridTouchPanGuard.d.ts +13 -0
- package/dist/host/DataGridDefaultRenderer.d.ts +29 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +437 -366
- package/dist/internal.d.ts +1 -0
- package/dist/internal.js +19 -17
- package/dist/overlays/DataGridFindReplacePopover.vue.d.ts +74 -0
- package/dist/stage/DataGridTableStage.vue.d.ts +9 -0
- package/dist/stage/dataGridTableStage.types.d.ts +3 -0
- package/dist/stage/useDataGridTableStageCellIo.d.ts +1 -0
- package/dist/stage/useDataGridTableStageHistory.d.ts +3 -1
- package/dist/stage/useDataGridTableStageRuntime.d.ts +17 -2
- package/dist/stage/useDataGridTableStageScrollSync.d.ts +1 -1
- package/dist/useDataGridAppFindReplace.d.ts +54 -0
- package/package.json +7 -3
- package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js +0 -399
- package/dist/chunks/DataGridGanttStageEntry-CS2wpBnj.js +0 -7815
- package/dist/chunks/useDataGridAppRowModel-RrE_k6tK.js +0 -3008
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface DataGridFindReplaceOptions {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
buttonLabel: string;
|
|
4
|
+
}
|
|
5
|
+
export type DataGridFindReplaceProp = boolean | {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
buttonLabel?: string;
|
|
8
|
+
} | null;
|
|
9
|
+
export declare function resolveDataGridFindReplace(input: DataGridFindReplaceProp | undefined): DataGridFindReplaceOptions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type DataGridGridLinesPreset = "all" | "rows" | "columns" | "none";
|
|
2
|
+
export type DataGridGridLinesHeaderMode = "columns" | "none";
|
|
3
|
+
export interface DataGridGridLinesOptions {
|
|
4
|
+
body: DataGridGridLinesPreset;
|
|
5
|
+
header: DataGridGridLinesHeaderMode;
|
|
6
|
+
pinnedSeparators: boolean;
|
|
7
|
+
bodyRows: boolean;
|
|
8
|
+
bodyColumns: boolean;
|
|
9
|
+
headerColumns: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type DataGridGridLinesProp = DataGridGridLinesPreset | {
|
|
12
|
+
body?: DataGridGridLinesPreset | null;
|
|
13
|
+
header?: DataGridGridLinesHeaderMode | null;
|
|
14
|
+
pinnedSeparators?: boolean;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare function resolveDataGridGridLines(input: DataGridGridLinesProp | undefined): DataGridGridLinesOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./config/dataGridGridLines";
|
package/dist/gantt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as t } from "./chunks/DataGridGanttStageEntry-
|
|
1
|
+
import { D as t } from "./chunks/DataGridGanttStageEntry-BbSAXYrL.js";
|
|
2
2
|
import { buildDataGridTimelineRenderModels as r, normalizeDataGridGanttOptions as n, resolveDataGridTimelineRange as o } from "@affino/datagrid-gantt";
|
|
3
3
|
export {
|
|
4
4
|
t as DataGridGanttStage,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type DataGridTouchPanAxis = "x" | "y";
|
|
2
|
+
export interface ResolveDataGridTouchPanAxisInput {
|
|
3
|
+
deltaX: number;
|
|
4
|
+
deltaY: number;
|
|
5
|
+
maxScrollLeft: number;
|
|
6
|
+
maxScrollTop: number;
|
|
7
|
+
}
|
|
8
|
+
export interface InstallDataGridTouchPanGuardOptions {
|
|
9
|
+
root: HTMLElement;
|
|
10
|
+
resolveScrollContainers: () => readonly (HTMLElement | null | undefined)[];
|
|
11
|
+
}
|
|
12
|
+
export declare function resolveDataGridTouchPanAxis(input: ResolveDataGridTouchPanAxisInput): DataGridTouchPanAxis | null;
|
|
13
|
+
export declare function installDataGridTouchPanGuard(options: InstallDataGridTouchPanGuardOptions): () => void;
|
|
@@ -4,6 +4,8 @@ import { type GridSelectionPointLike, type DataGridRowId, type DataGridRowSelect
|
|
|
4
4
|
import { type DataGridAppInspectorPanel, type DataGridAppToolbarModule } from "./DataGridModuleHost";
|
|
5
5
|
import type { DataGridAdvancedFilterOptions } from "../config/dataGridAdvancedFilter";
|
|
6
6
|
import type { DataGridAggregationsOptions } from "../config/dataGridAggregations";
|
|
7
|
+
import type { DataGridFindReplaceOptions } from "../config/dataGridFindReplace";
|
|
8
|
+
import type { DataGridGridLinesOptions } from "../config/dataGridGridLines";
|
|
7
9
|
import type { DataGridCellEditablePredicate } from "../dataGridEditability";
|
|
8
10
|
import type { DataGridColumnLayoutOptions } from "../config/dataGridColumnLayout";
|
|
9
11
|
import { type DataGridColumnMenuOptions } from "../overlays/dataGridColumnMenu";
|
|
@@ -12,7 +14,17 @@ import { type DataGridAppViewMode, type DataGridGanttProp } from "../gantt/dataG
|
|
|
12
14
|
import type { DataGridLayoutMode } from "../config/dataGridLayout";
|
|
13
15
|
import type { DataGridVirtualizationOptions } from "../config/dataGridVirtualization";
|
|
14
16
|
type DataGridMode = "base" | "tree" | "pivot" | "worker";
|
|
15
|
-
type DataGridDefaultRendererRuntime =
|
|
17
|
+
type DataGridDefaultRendererRuntime = {
|
|
18
|
+
api: UseDataGridRuntimeResult<Record<string, unknown>>["api"];
|
|
19
|
+
syncBodyRowsInRange: UseDataGridRuntimeResult<Record<string, unknown>>["syncBodyRowsInRange"];
|
|
20
|
+
setViewportRange: UseDataGridRuntimeResult<Record<string, unknown>>["setViewportRange"];
|
|
21
|
+
rowPartition: UseDataGridRuntimeResult<Record<string, unknown>>["rowPartition"];
|
|
22
|
+
virtualWindow: UseDataGridRuntimeResult<Record<string, unknown>>["virtualWindow"];
|
|
23
|
+
columnSnapshot: UseDataGridRuntimeResult<Record<string, unknown>>["columnSnapshot"];
|
|
24
|
+
setVirtualWindowRange?: (range: {
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
}) => void;
|
|
16
28
|
getBodyRowAtIndex: (rowIndex: number) => import("@affino/datagrid-vue").DataGridRowNode<Record<string, unknown>> | null;
|
|
17
29
|
resolveBodyRowIndexById: (rowId: string | number) => number;
|
|
18
30
|
};
|
|
@@ -105,6 +117,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
117
|
type: PropType<DataGridAdvancedFilterOptions>;
|
|
106
118
|
required: true;
|
|
107
119
|
};
|
|
120
|
+
findReplace: {
|
|
121
|
+
type: PropType<DataGridFindReplaceOptions>;
|
|
122
|
+
required: true;
|
|
123
|
+
};
|
|
124
|
+
gridLines: {
|
|
125
|
+
type: PropType<DataGridGridLinesOptions>;
|
|
126
|
+
required: true;
|
|
127
|
+
};
|
|
108
128
|
rowHeightMode: {
|
|
109
129
|
type: PropType<"fixed" | "auto">;
|
|
110
130
|
default: string;
|
|
@@ -260,6 +280,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
260
280
|
type: PropType<DataGridAdvancedFilterOptions>;
|
|
261
281
|
required: true;
|
|
262
282
|
};
|
|
283
|
+
findReplace: {
|
|
284
|
+
type: PropType<DataGridFindReplaceOptions>;
|
|
285
|
+
required: true;
|
|
286
|
+
};
|
|
287
|
+
gridLines: {
|
|
288
|
+
type: PropType<DataGridGridLinesOptions>;
|
|
289
|
+
required: true;
|
|
290
|
+
};
|
|
263
291
|
rowHeightMode: {
|
|
264
292
|
type: PropType<"fixed" | "auto">;
|
|
265
293
|
default: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type { DataGridLayoutMode, DataGridResolvedLayoutOptions, } from "./confi
|
|
|
6
6
|
export type { DataGridCellEditablePredicate, DataGridCellEditablePredicateContext, } from "./dataGridEditability";
|
|
7
7
|
export type { DataGridThemePreset, DataGridThemeProp, } from "./theme/dataGridTheme";
|
|
8
8
|
export type { DataGridAdvancedFilterOptions, DataGridAdvancedFilterProp, } from "./config/dataGridAdvancedFilter";
|
|
9
|
+
export type { DataGridFindReplaceOptions, DataGridFindReplaceProp, } from "./config/dataGridFindReplace";
|
|
10
|
+
export type { DataGridGridLinesHeaderMode, DataGridGridLinesOptions, DataGridGridLinesPreset, DataGridGridLinesProp, } from "./config/dataGridGridLines";
|
|
9
11
|
export type { DataGridSavedViewSnapshot, DataGridSavedViewStorageLike, } from "./config/dataGridSavedView";
|
|
10
12
|
export type { DataGridColumnLayoutOptions, DataGridColumnLayoutProp, } from "./config/dataGridColumnLayout";
|
|
11
13
|
export { clearDataGridSavedViewInStorage, migrateDataGridSavedView, parseDataGridSavedView, readDataGridSavedViewFromStorage, serializeDataGridSavedView, writeDataGridSavedViewToStorage, } from "./config/dataGridSavedView";
|