@affino/datagrid-vue-app 0.1.1 → 0.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/DataGrid.d.ts +9 -9
- package/dist/DataGridTableStage.vue.d.ts +112 -0
- package/dist/chunks/useDataGridAppRowModel-CcTL-h8L.js +11251 -0
- package/dist/gantt/DataGridGanttStage.vue.d.ts +21 -0
- package/dist/host/DataGridDefaultRenderer.d.ts +3 -3
- package/dist/host/DataGridRuntimeHost.d.ts +1 -1
- package/dist/index.js +1125 -4
- package/dist/internal.js +37 -14
- package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +62 -0
- package/dist/overlays/DataGridAggregationsPopover.vue.d.ts +62 -0
- package/dist/overlays/DataGridCellComboboxEditor.vue.d.ts +29 -0
- package/dist/overlays/DataGridColumnLayoutPopover.vue.d.ts +51 -0
- package/dist/overlays/DataGridColumnMenu.vue.d.ts +65 -0
- package/dist/overlays/DataGridFilterableCombobox.vue.d.ts +76 -0
- package/dist/stage/DataGridTableStage.vue.d.ts +115 -0
- package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +121 -0
- package/dist/stage/DataGridTableStageFillActionMenu.vue.d.ts +30 -0
- package/dist/stage/DataGridTableStageHeader.vue.d.ts +84 -0
- package/dist/stage/DataGridTableStageOverlayLayer.vue.d.ts +34 -0
- package/dist/stage/DataGridTableStagePinnedPane.vue.d.ts +43 -0
- package/package.json +8 -5
- package/dist/DataGrid.js +0 -565
- package/dist/DataGridDefaultRenderer.js +0 -2
- package/dist/DataGridModuleHost.js +0 -2
- package/dist/DataGridRuntimeHost.js +0 -1
- package/dist/config/dataGridAdvancedFilter.js +0 -21
- package/dist/config/dataGridAggregations.js +0 -21
- package/dist/config/dataGridColumnLayout.js +0 -21
- package/dist/config/dataGridFormulaOptions.js +0 -137
- package/dist/config/dataGridPublicProps.js +0 -58
- package/dist/config/dataGridSavedView.js +0 -73
- package/dist/config/dataGridVirtualization.js +0 -32
- package/dist/dataGridAdvancedFilter.js +0 -1
- package/dist/dataGridAggregations.js +0 -1
- package/dist/dataGridAppContext.js +0 -1
- package/dist/dataGridCellComboboxState.d.ts +0 -10
- package/dist/dataGridCellComboboxState.js +0 -67
- package/dist/dataGridColumnLayout.js +0 -1
- package/dist/dataGridColumnMenu.d.ts +0 -9
- package/dist/dataGridColumnMenu.js +0 -21
- package/dist/dataGridEditability.js +0 -1
- package/dist/dataGridFilterableCombobox.js +0 -1
- package/dist/dataGridFormulaOptions.js +0 -1
- package/dist/dataGridGantt.d.ts +0 -3
- package/dist/dataGridGantt.js +0 -1
- package/dist/dataGridGanttDependencySelection.d.ts +0 -7
- package/dist/dataGridGanttDependencySelection.js +0 -46
- package/dist/dataGridGanttLabel.d.ts +0 -2
- package/dist/dataGridGanttLabel.js +0 -30
- package/dist/dataGridGanttSplit.d.ts +0 -20
- package/dist/dataGridGanttSplit.js +0 -31
- package/dist/dataGridGanttWheel.d.ts +0 -10
- package/dist/dataGridGanttWheel.js +0 -30
- package/dist/dataGridOverlayThemeVars.d.ts +0 -1
- package/dist/dataGridOverlayThemeVars.js +0 -32
- package/dist/dataGridPublicProps.js +0 -1
- package/dist/dataGridTableStage.types.js +0 -1
- package/dist/dataGridTableStageBody.types.js +0 -1
- package/dist/dataGridTableStageContext.js +0 -1
- package/dist/dataGridTheme.js +0 -1
- package/dist/dataGridVirtualization.js +0 -1
- package/dist/ensureDataGridAppStyles.js +0 -1
- package/dist/gantt/dataGridGantt.js +0 -1
- package/dist/gantt/dataGridGanttDependencySelection.js +0 -46
- package/dist/gantt/dataGridGanttLabel.js +0 -30
- package/dist/gantt/dataGridGanttSplit.js +0 -31
- package/dist/gantt/dataGridGanttWheel.js +0 -30
- package/dist/host/DataGridDefaultRenderer.js +0 -1847
- package/dist/host/DataGridModuleHost.js +0 -23
- package/dist/host/DataGridRuntimeHost.js +0 -174
- package/dist/overlays/dataGridCellComboboxState.js +0 -67
- package/dist/overlays/dataGridColumnMenu.js +0 -190
- package/dist/overlays/dataGridContextMenu.js +0 -218
- package/dist/overlays/dataGridFilterableCombobox.js +0 -74
- package/dist/overlays/dataGridOverlayThemeVars.js +0 -32
- package/dist/stage/dataGridTableStage.types.js +0 -1
- package/dist/stage/dataGridTableStageBody.types.js +0 -1
- package/dist/stage/dataGridTableStageContext.js +0 -88
- package/dist/stage/useDataGridTableStageBindings.js +0 -162
- package/dist/stage/useDataGridTableStageCellIo.js +0 -62
- package/dist/stage/useDataGridTableStageColumns.js +0 -124
- package/dist/stage/useDataGridTableStageFillAction.js +0 -28
- package/dist/stage/useDataGridTableStageHistory.js +0 -46
- package/dist/stage/useDataGridTableStageRowSelection.js +0 -107
- package/dist/stage/useDataGridTableStageRuntime.js +0 -526
- package/dist/stage/useDataGridTableStageScrollSync.js +0 -49
- package/dist/stage/useDataGridTableStageViewportKeyboard.js +0 -58
- package/dist/stage/useDataGridTableStageVisualSelection.js +0 -83
- package/dist/theme/dataGridTheme.js +0 -84
- package/dist/theme/ensureDataGridAppStyles.js +0 -2656
- package/dist/useDataGridAppControlledState.js +0 -390
- package/dist/useDataGridAppRowModel.js +0 -85
- package/dist/useDataGridTableStageBindings.js +0 -1
- package/dist/useDataGridTableStageCellIo.d.ts +0 -28
- package/dist/useDataGridTableStageCellIo.js +0 -62
- package/dist/useDataGridTableStageColumns.d.ts +0 -21
- package/dist/useDataGridTableStageColumns.js +0 -122
- package/dist/useDataGridTableStageFillAction.d.ts +0 -19
- package/dist/useDataGridTableStageFillAction.js +0 -28
- package/dist/useDataGridTableStageHistory.d.ts +0 -31
- package/dist/useDataGridTableStageHistory.js +0 -46
- package/dist/useDataGridTableStageRowSelection.d.ts +0 -28
- package/dist/useDataGridTableStageRowSelection.js +0 -103
- package/dist/useDataGridTableStageRuntime.js +0 -1
- package/dist/useDataGridTableStageScrollSync.d.ts +0 -17
- package/dist/useDataGridTableStageScrollSync.js +0 -49
- package/dist/useDataGridTableStageViewportKeyboard.d.ts +0 -20
- package/dist/useDataGridTableStageViewportKeyboard.js +0 -58
- package/dist/useDataGridTableStageVisualSelection.d.ts +0 -24
- package/dist/useDataGridTableStageVisualSelection.js +0 -70
package/dist/internal.js
CHANGED
|
@@ -1,14 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { _ as t, D as i, a as r, b as d, c as s, d as o, e as l, f as n, g as G, p as D, r as S, h as g, u, i as b, j as T, k as c, l as m, m as p, n as R, o as x, q as C, s as M, t as v, v as w, w as f, x as h, y } from "./chunks/useDataGridAppRowModel-CcTL-h8L.js";
|
|
2
|
+
import { buildDataGridChromePaneModel as F, buildDataGridChromeRenderModel as O } from "@affino/datagrid-chrome";
|
|
3
|
+
import { buildDataGridTimelineRenderModels as E, normalizeDataGridGanttOptions as H, resolveDataGridTimelineRange as K } from "@affino/datagrid-gantt";
|
|
4
|
+
export {
|
|
5
|
+
t as DataGridAdvancedFilterPopover,
|
|
6
|
+
i as DataGridDefaultRenderer,
|
|
7
|
+
r as DataGridGanttStage,
|
|
8
|
+
d as DataGridModuleHost,
|
|
9
|
+
s as DataGridTableStage,
|
|
10
|
+
F as buildDataGridChromePaneModel,
|
|
11
|
+
O as buildDataGridChromeRenderModel,
|
|
12
|
+
E as buildDataGridTimelineRenderModels,
|
|
13
|
+
o as createDataGridTableStageContext,
|
|
14
|
+
l as createDataGridTableStageContextFromProps,
|
|
15
|
+
n as dataGridAppRootElementKey,
|
|
16
|
+
G as dataGridTableStageContextKey,
|
|
17
|
+
H as normalizeDataGridGanttOptions,
|
|
18
|
+
D as provideDataGridTableStageContext,
|
|
19
|
+
S as readDataGridOverlayThemeVars,
|
|
20
|
+
g as resolveDataGridFormulaRowModelOptions,
|
|
21
|
+
K as resolveDataGridTimelineRange,
|
|
22
|
+
u as useDataGridAppRowModel,
|
|
23
|
+
b as useDataGridTableStageBindings,
|
|
24
|
+
T as useDataGridTableStageCellsSection,
|
|
25
|
+
c as useDataGridTableStageColumnsSection,
|
|
26
|
+
m as useDataGridTableStageContext,
|
|
27
|
+
p as useDataGridTableStageEditingSection,
|
|
28
|
+
R as useDataGridTableStageInteractionSection,
|
|
29
|
+
x as useDataGridTableStageLayoutSection,
|
|
30
|
+
C as useDataGridTableStageMode,
|
|
31
|
+
M as useDataGridTableStageRowHeightMode,
|
|
32
|
+
v as useDataGridTableStageRowsSection,
|
|
33
|
+
w as useDataGridTableStageRuntime,
|
|
34
|
+
f as useDataGridTableStageSection,
|
|
35
|
+
h as useDataGridTableStageSelectionSection,
|
|
36
|
+
y as useDataGridTableStageViewportSection
|
|
37
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { DataGridAppAdvancedFilterClauseDraft, DataGridAppAdvancedFilterClausePatch, DataGridAppAdvancedFilterColumnOption } from "@affino/datagrid-vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
clauses: readonly DataGridAppAdvancedFilterClauseDraft[];
|
|
5
|
+
columns: readonly DataGridAppAdvancedFilterColumnOption[];
|
|
6
|
+
appliedFilterSummaryItems?: readonly string[];
|
|
7
|
+
hasAnyFilters?: boolean;
|
|
8
|
+
buttonLabel?: string;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
12
|
+
appliedFilterSummaryItems: () => never[];
|
|
13
|
+
hasAnyFilters: boolean;
|
|
14
|
+
buttonLabel: string;
|
|
15
|
+
active: boolean;
|
|
16
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
open: () => void;
|
|
18
|
+
cancel: () => void;
|
|
19
|
+
add: () => void;
|
|
20
|
+
remove: (clauseId: number) => void;
|
|
21
|
+
apply: () => void;
|
|
22
|
+
"reset-all": () => void;
|
|
23
|
+
"update-clause": (payload: DataGridAppAdvancedFilterClausePatch) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
25
|
+
appliedFilterSummaryItems: () => never[];
|
|
26
|
+
hasAnyFilters: boolean;
|
|
27
|
+
buttonLabel: string;
|
|
28
|
+
active: boolean;
|
|
29
|
+
}>>> & {
|
|
30
|
+
onCancel?: (() => any) | undefined;
|
|
31
|
+
onOpen?: (() => any) | undefined;
|
|
32
|
+
onAdd?: (() => any) | undefined;
|
|
33
|
+
onRemove?: ((clauseId: number) => any) | undefined;
|
|
34
|
+
onApply?: (() => any) | undefined;
|
|
35
|
+
"onReset-all"?: (() => any) | undefined;
|
|
36
|
+
"onUpdate-clause"?: ((payload: DataGridAppAdvancedFilterClausePatch) => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
appliedFilterSummaryItems: readonly string[];
|
|
39
|
+
hasAnyFilters: boolean;
|
|
40
|
+
buttonLabel: string;
|
|
41
|
+
active: boolean;
|
|
42
|
+
}, {}>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_TypePropsToOption<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} : {
|
|
61
|
+
[K in keyof T as K]: T[K];
|
|
62
|
+
}) & {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { DataGridAggregationPanelItem } from "../config/dataGridAggregations";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
basis: "filtered" | "source";
|
|
5
|
+
items: readonly DataGridAggregationPanelItem[];
|
|
6
|
+
buttonLabel?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
disabledReason?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
12
|
+
buttonLabel: string;
|
|
13
|
+
active: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
disabledReason: string;
|
|
16
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
open: () => void;
|
|
18
|
+
cancel: () => void;
|
|
19
|
+
apply: () => void;
|
|
20
|
+
clear: () => void;
|
|
21
|
+
"update-basis": (basis: "source" | "filtered") => void;
|
|
22
|
+
"toggle-column": (key: string, enabled: boolean) => void;
|
|
23
|
+
"update-op": (key: string, op: string) => void;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
25
|
+
buttonLabel: string;
|
|
26
|
+
active: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
disabledReason: string;
|
|
29
|
+
}>>> & {
|
|
30
|
+
onCancel?: (() => any) | undefined;
|
|
31
|
+
onOpen?: (() => any) | undefined;
|
|
32
|
+
onApply?: (() => any) | undefined;
|
|
33
|
+
onClear?: (() => any) | undefined;
|
|
34
|
+
"onUpdate-basis"?: ((basis: "source" | "filtered") => any) | undefined;
|
|
35
|
+
"onToggle-column"?: ((key: string, enabled: boolean) => any) | undefined;
|
|
36
|
+
"onUpdate-op"?: ((key: string, op: string) => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
buttonLabel: string;
|
|
40
|
+
active: boolean;
|
|
41
|
+
disabledReason: string;
|
|
42
|
+
}, {}>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_TypePropsToOption<T> = {
|
|
46
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
48
|
+
} : {
|
|
49
|
+
type: import('vue').PropType<T[K]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type __VLS_WithDefaults<P, D> = {
|
|
54
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
55
|
+
default: D[K];
|
|
56
|
+
}> : P[K];
|
|
57
|
+
};
|
|
58
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
59
|
+
[K in keyof T]: T[K];
|
|
60
|
+
} : {
|
|
61
|
+
[K in keyof T as K]: T[K];
|
|
62
|
+
}) & {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DataGridFilterableComboboxOption } from "./dataGridFilterableCombobox";
|
|
2
|
+
type CommitTarget = "stay" | "next" | "previous";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value: string;
|
|
5
|
+
options?: ReadonlyArray<DataGridFilterableComboboxOption>;
|
|
6
|
+
loadOptions?: (query: string) => Promise<ReadonlyArray<DataGridFilterableComboboxOption>>;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
initialFilter?: string;
|
|
9
|
+
openOnMount?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
commit: (value: string, target?: CommitTarget | undefined) => void;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
optionsResolved: (options: readonly DataGridFilterableComboboxOption[]) => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
16
|
+
onCancel?: (() => any) | undefined;
|
|
17
|
+
onOptionsResolved?: ((options: readonly DataGridFilterableComboboxOption[]) => any) | undefined;
|
|
18
|
+
onCommit?: ((value: string, target?: CommitTarget | undefined) => any) | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { DataGridAppColumnLayoutPanelItem, DataGridAppColumnLayoutVisibilityPatch } from "@affino/datagrid-vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
items: readonly DataGridAppColumnLayoutPanelItem[];
|
|
5
|
+
buttonLabel?: string;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
9
|
+
buttonLabel: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
open: () => void;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
apply: () => void;
|
|
15
|
+
"toggle-visibility": (payload: DataGridAppColumnLayoutVisibilityPatch) => void;
|
|
16
|
+
"move-up": (key: string) => void;
|
|
17
|
+
"move-down": (key: string) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
19
|
+
buttonLabel: string;
|
|
20
|
+
active: boolean;
|
|
21
|
+
}>>> & {
|
|
22
|
+
onCancel?: (() => any) | undefined;
|
|
23
|
+
onOpen?: (() => any) | undefined;
|
|
24
|
+
onApply?: (() => any) | undefined;
|
|
25
|
+
"onToggle-visibility"?: ((payload: DataGridAppColumnLayoutVisibilityPatch) => any) | undefined;
|
|
26
|
+
"onMove-up"?: ((key: string) => any) | undefined;
|
|
27
|
+
"onMove-down"?: ((key: string) => any) | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
buttonLabel: string;
|
|
30
|
+
active: boolean;
|
|
31
|
+
}, {}>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_TypePropsToOption<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} : {
|
|
50
|
+
[K in keyof T as K]: T[K];
|
|
51
|
+
}) & {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { DataGridColumnMenuActionOptions, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels } from "./dataGridColumnMenu";
|
|
2
|
+
type DataGridColumnPin = "left" | "right" | "none";
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
rows: readonly Record<string, unknown>[];
|
|
5
|
+
items: readonly DataGridColumnMenuItemKey[];
|
|
6
|
+
disabledItems: readonly DataGridColumnMenuItemKey[];
|
|
7
|
+
disabledReasons: DataGridColumnMenuDisabledReasons;
|
|
8
|
+
labels: DataGridColumnMenuItemLabels;
|
|
9
|
+
actionOptions: DataGridColumnMenuActionOptions;
|
|
10
|
+
columnKey: string;
|
|
11
|
+
columnLabel: string;
|
|
12
|
+
columnDataType?: string;
|
|
13
|
+
sortDirection: "asc" | "desc" | null;
|
|
14
|
+
sortEnabled: boolean;
|
|
15
|
+
pin: DataGridColumnPin;
|
|
16
|
+
grouped: boolean;
|
|
17
|
+
groupOrder: number | null;
|
|
18
|
+
groupEnabled: boolean;
|
|
19
|
+
filterEnabled: boolean;
|
|
20
|
+
valueFilterRowLimit: number;
|
|
21
|
+
textFilterEnabled: boolean;
|
|
22
|
+
textFilterValue: string;
|
|
23
|
+
filterActive: boolean;
|
|
24
|
+
selectedFilterTokens: readonly string[];
|
|
25
|
+
maxFilterValues: number;
|
|
26
|
+
};
|
|
27
|
+
declare function toggleMenuFromElement(element: HTMLElement | null): void;
|
|
28
|
+
declare var __VLS_15: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
toggleMenuFromElement: typeof toggleMenuFromElement;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
default?: (props: typeof __VLS_15) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
sort: (direction: "desc" | "asc" | null) => void;
|
|
37
|
+
pin: (pin: DataGridColumnPin) => void;
|
|
38
|
+
group: (grouped: boolean) => void;
|
|
39
|
+
"apply-filter": (tokens: readonly string[]) => void;
|
|
40
|
+
"clear-filter": () => void;
|
|
41
|
+
"update-text-filter": (value: string) => void;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
|
|
43
|
+
onSort?: ((direction: "desc" | "asc" | null) => any) | undefined;
|
|
44
|
+
onGroup?: ((grouped: boolean) => any) | undefined;
|
|
45
|
+
onPin?: ((pin: DataGridColumnPin) => any) | undefined;
|
|
46
|
+
"onApply-filter"?: ((tokens: readonly string[]) => any) | undefined;
|
|
47
|
+
"onClear-filter"?: (() => any) | undefined;
|
|
48
|
+
"onUpdate-text-filter"?: ((value: string) => any) | undefined;
|
|
49
|
+
}, {}, {}>;
|
|
50
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_TypePropsToOption<T> = {
|
|
54
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
55
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
56
|
+
} : {
|
|
57
|
+
type: import('vue').PropType<T[K]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type DataGridFilterableComboboxOption } from "./dataGridFilterableCombobox";
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
5
|
+
value: string;
|
|
6
|
+
options?: ReadonlyArray<DataGridFilterableComboboxOption>;
|
|
7
|
+
loadOptions?: (query: string) => Promise<ReadonlyArray<DataGridFilterableComboboxOption>>;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
openOnMount?: boolean;
|
|
11
|
+
initialFilter?: string;
|
|
12
|
+
openOnFocus?: boolean;
|
|
13
|
+
inlinePanel?: boolean;
|
|
14
|
+
stickyPopoverId?: string;
|
|
15
|
+
}>, {
|
|
16
|
+
options: () => never[];
|
|
17
|
+
placeholder: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
openOnMount: boolean;
|
|
20
|
+
initialFilter: string;
|
|
21
|
+
openOnFocus: boolean;
|
|
22
|
+
inlinePanel: boolean;
|
|
23
|
+
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
commit: (value: string, target?: ("stay" | "next" | "previous") | undefined) => void;
|
|
25
|
+
cancel: () => void;
|
|
26
|
+
optionsResolved: (options: readonly DataGridFilterableComboboxOption[]) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
28
|
+
value: string;
|
|
29
|
+
options?: ReadonlyArray<DataGridFilterableComboboxOption>;
|
|
30
|
+
loadOptions?: (query: string) => Promise<ReadonlyArray<DataGridFilterableComboboxOption>>;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
openOnMount?: boolean;
|
|
34
|
+
initialFilter?: string;
|
|
35
|
+
openOnFocus?: boolean;
|
|
36
|
+
inlinePanel?: boolean;
|
|
37
|
+
stickyPopoverId?: string;
|
|
38
|
+
}>, {
|
|
39
|
+
options: () => never[];
|
|
40
|
+
placeholder: string;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
openOnMount: boolean;
|
|
43
|
+
initialFilter: string;
|
|
44
|
+
openOnFocus: boolean;
|
|
45
|
+
inlinePanel: boolean;
|
|
46
|
+
}>>> & {
|
|
47
|
+
onCancel?: (() => any) | undefined;
|
|
48
|
+
onOptionsResolved?: ((options: readonly DataGridFilterableComboboxOption[]) => any) | undefined;
|
|
49
|
+
onCommit?: ((value: string, target?: ("stay" | "next" | "previous") | undefined) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
options: ReadonlyArray<DataGridFilterableComboboxOption>;
|
|
52
|
+
placeholder: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
openOnMount: boolean;
|
|
55
|
+
initialFilter: string;
|
|
56
|
+
openOnFocus: boolean;
|
|
57
|
+
inlinePanel: boolean;
|
|
58
|
+
}, {}>;
|
|
59
|
+
type __VLS_TypePropsToOption<T> = {
|
|
60
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
61
|
+
type: import('vue').PropType<Required<T>[K]>;
|
|
62
|
+
} : {
|
|
63
|
+
type: import('vue').PropType<T[K]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_WithDefaults<P, D> = {
|
|
68
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
69
|
+
default: D[K];
|
|
70
|
+
}> : P[K];
|
|
71
|
+
};
|
|
72
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
73
|
+
[K in keyof T]: T[K];
|
|
74
|
+
} : {
|
|
75
|
+
[K in keyof T as K]: T[K];
|
|
76
|
+
}) & {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { DataGridTableStageProps } from "./dataGridTableStage.types";
|
|
3
|
+
import { type DataGridTableStageContext } from "./dataGridTableStageContext";
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
+
mode: {
|
|
6
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["mode"]>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
rowHeightMode: {
|
|
10
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rowHeightMode"]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
layout: {
|
|
14
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
viewport: {
|
|
18
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["viewport"]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
columns: {
|
|
22
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["columns"]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
rows: {
|
|
26
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rows"]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
selection: {
|
|
30
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["selection"]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
editing: {
|
|
34
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["editing"]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
cells: {
|
|
38
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["cells"]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
interaction: {
|
|
42
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["interaction"]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
onViewportContextMenu: {
|
|
46
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
stageContext: {
|
|
50
|
+
type: PropType<DataGridTableStageContext<Record<string, unknown>>>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
getStageRootElement: () => HTMLElement | null;
|
|
55
|
+
getHeaderElement: () => HTMLElement | null;
|
|
56
|
+
getBodyViewportElement: () => HTMLElement | null;
|
|
57
|
+
getVisibleRowMetrics: () => readonly {
|
|
58
|
+
top: number;
|
|
59
|
+
height: number;
|
|
60
|
+
}[];
|
|
61
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
mode: {
|
|
63
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["mode"]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
rowHeightMode: {
|
|
67
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rowHeightMode"]>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
layout: {
|
|
71
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["layout"]>;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
viewport: {
|
|
75
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["viewport"]>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
columns: {
|
|
79
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["columns"]>;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
rows: {
|
|
83
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["rows"]>;
|
|
84
|
+
required: true;
|
|
85
|
+
};
|
|
86
|
+
selection: {
|
|
87
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["selection"]>;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
editing: {
|
|
91
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["editing"]>;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
cells: {
|
|
95
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["cells"]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
interaction: {
|
|
99
|
+
type: PropType<DataGridTableStageProps<Record<string, unknown>>["interaction"]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
onViewportContextMenu: {
|
|
103
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
104
|
+
default: undefined;
|
|
105
|
+
};
|
|
106
|
+
stageContext: {
|
|
107
|
+
type: PropType<DataGridTableStageContext<Record<string, unknown>>>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
}>>, {
|
|
111
|
+
onViewportContextMenu: (event: MouseEvent) => void;
|
|
112
|
+
stageContext: DataGridTableStageContext<Record<string, unknown>>;
|
|
113
|
+
}, {}>;
|
|
114
|
+
declare const _default: typeof __VLS_export;
|
|
115
|
+
export default _default;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { DataGridTableStageBodyRow, DataGridTableStageCenterPaneRenderApi, DataGridTableStageOverlaySegment } from "./dataGridTableStageBody.types";
|
|
3
|
+
import type { DataGridElementRefHandler } from "./dataGridTableStage.types";
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
+
viewportRef: {
|
|
6
|
+
type: PropType<DataGridElementRefHandler>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
displayRows: {
|
|
10
|
+
type: PropType<readonly DataGridTableStageBodyRow[]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
topSpacerHeight: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
bottomSpacerHeight: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
viewportClass: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
handleScroll: {
|
|
26
|
+
type: PropType<(event: Event) => void>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
handleWheel: {
|
|
30
|
+
type: PropType<(event: WheelEvent) => void>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
handleKeydown: {
|
|
34
|
+
type: PropType<(event: KeyboardEvent) => void>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
handleContextMenu: {
|
|
38
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
selectionOverlaySegments: {
|
|
42
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
fillPreviewOverlaySegments: {
|
|
46
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
movePreviewOverlaySegments: {
|
|
50
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
renderApi: {
|
|
54
|
+
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
viewportRef: {
|
|
59
|
+
type: PropType<DataGridElementRefHandler>;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
displayRows: {
|
|
63
|
+
type: PropType<readonly DataGridTableStageBodyRow[]>;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
topSpacerHeight: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
bottomSpacerHeight: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
viewportClass: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
handleScroll: {
|
|
79
|
+
type: PropType<(event: Event) => void>;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
handleWheel: {
|
|
83
|
+
type: PropType<(event: WheelEvent) => void>;
|
|
84
|
+
default: undefined;
|
|
85
|
+
};
|
|
86
|
+
handleKeydown: {
|
|
87
|
+
type: PropType<(event: KeyboardEvent) => void>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
handleContextMenu: {
|
|
91
|
+
type: PropType<(event: MouseEvent) => void>;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
selectionOverlaySegments: {
|
|
95
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
fillPreviewOverlaySegments: {
|
|
99
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
100
|
+
required: true;
|
|
101
|
+
};
|
|
102
|
+
movePreviewOverlaySegments: {
|
|
103
|
+
type: PropType<readonly DataGridTableStageOverlaySegment[]>;
|
|
104
|
+
required: true;
|
|
105
|
+
};
|
|
106
|
+
renderApi: {
|
|
107
|
+
type: PropType<DataGridTableStageCenterPaneRenderApi>;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
}>>, {
|
|
111
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
112
|
+
topSpacerHeight: number;
|
|
113
|
+
bottomSpacerHeight: number;
|
|
114
|
+
viewportRef: DataGridElementRefHandler;
|
|
115
|
+
viewportClass: string;
|
|
116
|
+
handleScroll: (event: Event) => void;
|
|
117
|
+
handleWheel: (event: WheelEvent) => void;
|
|
118
|
+
handleContextMenu: (event: MouseEvent) => void;
|
|
119
|
+
}, {}>;
|
|
120
|
+
declare const _default: typeof __VLS_export;
|
|
121
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CSSProperties, type PropType } from "vue";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
3
|
+
isOpen: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
style: {
|
|
8
|
+
type: PropType<CSSProperties | null>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
toggle: (event: MouseEvent) => void;
|
|
13
|
+
selected: () => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
isOpen: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
style: {
|
|
20
|
+
type: PropType<CSSProperties | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
}>> & {
|
|
24
|
+
onToggle?: ((event: MouseEvent) => any) | undefined;
|
|
25
|
+
onSelected?: (() => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
style: CSSProperties | null;
|
|
28
|
+
}, {}>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|