@affino/datagrid-vue-app 0.1.2 → 0.1.3

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.
Files changed (26) hide show
  1. package/dist/DataGrid.d.ts +4 -4
  2. package/dist/advanced-filter.d.ts +2 -0
  3. package/dist/advanced-filter.js +4 -0
  4. package/dist/chunks/DataGridAdvancedFilterPopover-Bak_CkaO.js +4 -0
  5. package/dist/chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DixN56Qv.js +226 -0
  6. package/dist/chunks/DataGridAggregationsPopover-DfQ3-UV4.js +173 -0
  7. package/dist/chunks/DataGridColumnLayoutPopover-Qt56b3CA.js +136 -0
  8. package/dist/chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js +399 -0
  9. package/dist/chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-CYwB5Dpa.js +916 -0
  10. package/dist/chunks/DataGridGanttStageEntry-B9YlOHt1.js +40 -0
  11. package/dist/chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-BJJoBCsA.js +6681 -0
  12. package/dist/chunks/useDataGridAppRowModel-Di-Zatjs.js +2761 -0
  13. package/dist/gantt/DataGridGanttStageEntry.d.ts +52 -0
  14. package/dist/gantt.d.ts +3 -0
  15. package/dist/gantt.js +8 -0
  16. package/dist/host/DataGridRuntimeHost.d.ts +2 -2
  17. package/dist/index.js +32 -30
  18. package/dist/internal.js +39 -35
  19. package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +5 -5
  20. package/dist/overlays/DataGridAggregationsPopover.vue.d.ts +4 -4
  21. package/dist/overlays/DataGridColumnLayoutPopover.vue.d.ts +4 -4
  22. package/dist/overlays/DataGridColumnMenu.vue.d.ts +2 -2
  23. package/dist/overlays/DataGridFilterableCombobox.vue.d.ts +2 -2
  24. package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +1 -1
  25. package/package.json +12 -4
  26. package/dist/chunks/useDataGridAppRowModel-CcTL-h8L.js +0 -11251
@@ -0,0 +1,52 @@
1
+ import { type PropType } from "vue";
2
+ import type { UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
+ import { type DataGridGanttProp } from "./dataGridGantt";
4
+ import type { DataGridTableStageContext } from "../stage/dataGridTableStageContext";
5
+ declare const _default: import("vue").DefineComponent<{
6
+ stageContext: {
7
+ type: PropType<DataGridTableStageContext<Record<string, unknown>>>;
8
+ required: true;
9
+ };
10
+ runtime: {
11
+ type: PropType<Pick<UseDataGridRuntimeResult<Record<string, unknown>>, "api">>;
12
+ required: true;
13
+ };
14
+ gantt: {
15
+ type: PropType<DataGridGanttProp | undefined>;
16
+ default: undefined;
17
+ };
18
+ baseRowHeight: {
19
+ type: NumberConstructor;
20
+ required: true;
21
+ };
22
+ rowVersion: {
23
+ type: NumberConstructor;
24
+ required: true;
25
+ };
26
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ stageContext: {
30
+ type: PropType<DataGridTableStageContext<Record<string, unknown>>>;
31
+ required: true;
32
+ };
33
+ runtime: {
34
+ type: PropType<Pick<UseDataGridRuntimeResult<Record<string, unknown>>, "api">>;
35
+ required: true;
36
+ };
37
+ gantt: {
38
+ type: PropType<DataGridGanttProp | undefined>;
39
+ default: undefined;
40
+ };
41
+ baseRowHeight: {
42
+ type: NumberConstructor;
43
+ required: true;
44
+ };
45
+ rowVersion: {
46
+ type: NumberConstructor;
47
+ required: true;
48
+ };
49
+ }>>, {
50
+ gantt: DataGridGanttProp | undefined;
51
+ }, {}>;
52
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export { default as DataGridGanttStage } from "./gantt/DataGridGanttStageEntry";
2
+ export { buildDataGridTimelineRenderModels, normalizeDataGridGanttOptions, resolveDataGridTimelineRange, } from "./gantt/dataGridGantt";
3
+ export type { DataGridAppViewMode, DataGridGanttDependencyRef, DataGridGanttDependencyType, DataGridGanttOptions, DataGridGanttProp, DataGridGanttZoomLevel, DataGridResolvedWorkingCalendar, DataGridTimelineHorizontalAlign, DataGridTimelineLine, DataGridTimelineModel, DataGridTimelineRange, DataGridTimelineRenderModels, DataGridTimelineSegment, DataGridTimelineSpan, DataGridTimelineViewport, DataGridWorkingCalendar, BuildDataGridTimelineRenderModelsInput, ResolveDataGridTimelineRangeInput, } from "./gantt/dataGridGantt";
package/dist/gantt.js ADDED
@@ -0,0 +1,8 @@
1
+ import { default as t } from "./chunks/DataGridGanttStageEntry-B9YlOHt1.js";
2
+ import { buildDataGridTimelineRenderModels as r, normalizeDataGridGanttOptions as d, resolveDataGridTimelineRange as n } from "@affino/datagrid-gantt";
3
+ export {
4
+ t as DataGridGanttStage,
5
+ r as buildDataGridTimelineRenderModels,
6
+ d as normalizeDataGridGanttOptions,
7
+ n as resolveDataGridTimelineRange
8
+ };
@@ -90,10 +90,10 @@ declare const _default: import("vue").DefineComponent<{
90
90
  "onCell-change"?: ((...args: any[]) => any) | undefined;
91
91
  "onSelection-change"?: ((...args: any[]) => any) | undefined;
92
92
  }, {
93
- columns: readonly DataGridColumnInput<unknown>[];
94
93
  rows: readonly unknown[];
95
- rowModel: DataGridRowModel<unknown> | undefined;
94
+ columns: readonly DataGridColumnInput<unknown>[];
96
95
  pagination: DataGridPaginationInput | null;
96
+ rowModel: DataGridRowModel<unknown> | undefined;
97
97
  renderMode: "virtualization" | "pagination";
98
98
  startupOrder: readonly import("@affino/datagrid-core").DataGridCoreServiceName[] | undefined;
99
99
  theme: DataGridThemeProp;
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  import { defineComponent as ae, ref as X, provide as ge, computed as g, watch as w, onBeforeUnmount as Z, h as Y, mergeProps as ve, toRef as te } from "vue";
2
- import { useDataGridRuntime as ye, useDataGridAppSelection as pe, useDataGridAppRowSelection as we } from "@affino/datagrid-vue";
3
- import { f as Se, z as he, A as be, B as Re, h as Me, C as Oe, u as Be, D as Ae } from "./chunks/useDataGridAppRowModel-CcTL-h8L.js";
4
- import { applyGridTheme as Ce, resolveGridThemeTokens as Pe, defaultStyleConfig as B, sugarTheme as ie, industrialNeutralTheme as oe } from "@affino/datagrid-theme";
2
+ import { useDataGridRuntime as ye } from "@affino/datagrid-vue";
3
+ import { useDataGridAppSelection as pe, useDataGridAppRowSelection as we } from "@affino/datagrid-vue/app";
4
+ import { d as Se, e as he, f as be, r as Re, g as Me, u as Oe, D as Be } from "./chunks/useDataGridAppRowModel-Di-Zatjs.js";
5
+ import { applyGridTheme as Ae, resolveGridThemeTokens as Ce, defaultStyleConfig as B, sugarTheme as ie, industrialNeutralTheme as oe } from "@affino/datagrid-theme";
6
+ import { d as Pe } from "./chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js";
5
7
  const Ge = {
6
8
  default: B,
7
9
  "industrial-neutral": oe,
@@ -45,13 +47,13 @@ function Ie(e) {
45
47
  }
46
48
  function Le(e) {
47
49
  const t = Ie(e);
48
- return Pe(t ?? B, {
50
+ return Ce(t ?? B, {
49
51
  document: typeof document > "u" ? void 0 : document
50
52
  });
51
53
  }
52
54
  function ne(e, t) {
53
55
  const r = Le(t);
54
- return Ce(e, r), r;
56
+ return Ae(e, r), r;
55
57
  }
56
58
  function re(e, t) {
57
59
  return Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t;
@@ -115,10 +117,10 @@ function ue(e, t, r) {
115
117
  ...p ? { viewMode: p } : {}
116
118
  };
117
119
  }
118
- function ze(e) {
120
+ function Ve(e) {
119
121
  return JSON.stringify(e);
120
122
  }
121
- function Ve(e, t, r) {
123
+ function ze(e, t, r) {
122
124
  if (typeof e != "string" || e.trim().length === 0)
123
125
  return null;
124
126
  try {
@@ -127,26 +129,26 @@ function Ve(e, t, r) {
127
129
  return null;
128
130
  }
129
131
  }
130
- function tt(e, t, r) {
132
+ function nt(e, t, r) {
131
133
  if (!e || typeof t != "string" || t.trim().length === 0)
132
134
  return !1;
133
135
  try {
134
- return e.setItem(t, ze(r)), !0;
136
+ return e.setItem(t, Ve(r)), !0;
135
137
  } catch {
136
138
  return !1;
137
139
  }
138
140
  }
139
- function ot(e, t, r, n) {
141
+ function rt(e, t, r, n) {
140
142
  if (!e || typeof t != "string" || t.trim().length === 0)
141
143
  return null;
142
144
  try {
143
145
  const f = e.getItem(t);
144
- return f ? Ve(f, r, n) : null;
146
+ return f ? ze(f, r, n) : null;
145
147
  } catch {
146
148
  return null;
147
149
  }
148
150
  }
149
- function nt(e, t) {
151
+ function lt(e, t) {
150
152
  if (!e || typeof t != "string" || t.trim().length === 0)
151
153
  return !1;
152
154
  try {
@@ -250,7 +252,7 @@ const Ne = ae({
250
252
  emits: ["cell-change", "selection-change"],
251
253
  setup(e, { attrs: t, slots: r, emit: n, expose: f }) {
252
254
  const u = X(null);
253
- ge(Se, u);
255
+ ge(Pe, u);
254
256
  let p = null;
255
257
  const a = ye({
256
258
  rows: g(() => e.rows),
@@ -494,7 +496,7 @@ function _e(e) {
494
496
  }), r = o.columnModel.subscribe(() => {
495
497
  v();
496
498
  }), I(), G(), y(), P(), x(), O(), D(), v(), e.emit.ready({ api: o.api }));
497
- }, z = () => e.gridRef.value?.api.state.get() ?? null, V = (o, d) => e.gridRef.value?.api.state.migrate(o, d) ?? null, H = (o) => {
499
+ }, V = () => e.gridRef.value?.api.state.get() ?? null, z = (o, d) => e.gridRef.value?.api.state.migrate(o, d) ?? null, H = (o) => {
498
500
  const d = e.gridRef.value?.api;
499
501
  if (!d)
500
502
  return !1;
@@ -596,8 +598,8 @@ function _e(e) {
596
598
  handleGridReady: L,
597
599
  dispose: F,
598
600
  getColumnState: C,
599
- getState: z,
600
- migrateState: V,
601
+ getState: V,
602
+ migrateState: z,
601
603
  applyColumnState: H,
602
604
  applyState: E,
603
605
  exportPivotLayout: k,
@@ -867,13 +869,13 @@ const qe = ae({
867
869
  a.value,
868
870
  e.pageSize,
869
871
  e.currentPage
870
- )), b = g(() => he(e.columnMenu)), M = g(() => be(e.cellMenu)), A = g(() => Re(e.rowIndexMenu)), C = g(() => He(e.columnLayout)), v = g(() => Ee(e.aggregations)), y = g(() => Te(e.advancedFilter)), P = g(() => je(e.groupBy)), x = g(() => ke(e.virtualization, a.value)), O = g(() => Me({
872
+ )), b = g(() => Se(e.columnMenu)), M = g(() => he(e.cellMenu)), A = g(() => be(e.rowIndexMenu)), C = g(() => He(e.columnLayout)), v = g(() => Ee(e.aggregations)), y = g(() => Te(e.advancedFilter)), P = g(() => je(e.groupBy)), x = g(() => ke(e.virtualization, a.value)), O = g(() => Re({
871
873
  columns: e.columns,
872
874
  clientRowModelOptions: e.clientRowModelOptions,
873
875
  computedFields: e.computedFields,
874
876
  formulas: e.formulas,
875
877
  formulaFunctions: e.formulaFunctions
876
- })), G = g(() => Oe(e.columns)), I = {
878
+ })), G = g(() => Me(e.columns)), I = {
877
879
  get state() {
878
880
  return e.state;
879
881
  },
@@ -919,11 +921,11 @@ const qe = ae({
919
921
  get columns() {
920
922
  return e.columns;
921
923
  }
922
- }, D = g(() => e.pivotModel ? "pivot" : O.value && "initialTreeData" in O.value ? "tree" : "base"), L = g(() => u.value?.api.columns.getSnapshot().visibleColumns ?? []), z = g(() => u.value?.api.rows.getCount() ?? 0), V = {
924
+ }, D = g(() => e.pivotModel ? "pivot" : O.value && "initialTreeData" in O.value ? "tree" : "base"), L = g(() => u.value?.api.columns.getSnapshot().visibleColumns ?? []), V = g(() => u.value?.api.rows.getCount() ?? 0), z = {
923
925
  mode: g(() => D.value),
924
926
  resolveRuntime: () => u.value,
925
927
  visibleColumns: L,
926
- totalRows: z,
928
+ totalRows: V,
927
929
  showRowSelection: g(() => e.rowSelection)
928
930
  }, {
929
931
  selectionSnapshot: H,
@@ -931,7 +933,7 @@ const qe = ae({
931
933
  syncSelectionSnapshotFromRuntime: k,
932
934
  selectionService: N,
933
935
  selectionAggregatesLabel: U
934
- } = pe(V), {
936
+ } = pe(z), {
935
937
  rowSelectionSnapshot: j,
936
938
  syncRowSelectionSnapshotFromRuntime: K,
937
939
  reconcileRowSelectionFromRuntime: F,
@@ -948,7 +950,7 @@ const qe = ae({
948
950
  })), {
949
951
  dataGridInstanceKey: s,
950
952
  resolvedRowModel: S
951
- } = Be({
953
+ } = Oe({
952
954
  rows: te(e, "rows"),
953
955
  rowModel: te(e, "rowModel"),
954
956
  clientRowModelOptions: O,
@@ -1103,7 +1105,7 @@ const qe = ae({
1103
1105
  }
1104
1106
  })
1105
1107
  } : {
1106
- default: (m) => Y(Ae, {
1108
+ default: (m) => Y(Be, {
1107
1109
  ...l,
1108
1110
  runtime: m.runtime,
1109
1111
  runtimeRowModel: m.rowModel
@@ -1112,14 +1114,14 @@ const qe = ae({
1112
1114
  );
1113
1115
  };
1114
1116
  }
1115
- }), rt = qe;
1117
+ }), at = qe;
1116
1118
  export {
1117
- rt as DataGrid,
1118
- nt as clearDataGridSavedViewInStorage,
1119
+ at as DataGrid,
1120
+ lt as clearDataGridSavedViewInStorage,
1119
1121
  qe as default,
1120
1122
  ue as migrateDataGridSavedView,
1121
- Ve as parseDataGridSavedView,
1122
- ot as readDataGridSavedViewFromStorage,
1123
- ze as serializeDataGridSavedView,
1124
- tt as writeDataGridSavedViewToStorage
1123
+ ze as parseDataGridSavedView,
1124
+ rt as readDataGridSavedViewFromStorage,
1125
+ Ve as serializeDataGridSavedView,
1126
+ nt as writeDataGridSavedViewToStorage
1125
1127
  };
package/dist/internal.js CHANGED
@@ -1,37 +1,41 @@
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";
1
+ import { d as t, r } from "./chunks/DataGridFilterableCombobox.vue_vue_type_script_setup_true_lang-_1TDQseN.js";
2
+ import { buildDataGridChromePaneModel as o, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
3
+ import { D as l, a as n, r as G, u as D, b as S, c as u } from "./chunks/useDataGridAppRowModel-Di-Zatjs.js";
4
+ import { _ as b } from "./chunks/DataGridGanttStage.vue_vue_type_script_setup_true_lang-CYwB5Dpa.js";
5
+ import { _ as m } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DixN56Qv.js";
6
+ import { _ as c, c as x, a as R, d as f, p as C, u as M, b as v, e as h, f as w, g as y, h as A, i as F, j as O, k as P, l as _, m as E, n as H } from "./chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-BJJoBCsA.js";
7
+ import { buildDataGridTimelineRenderModels as V, normalizeDataGridGanttOptions as j, resolveDataGridTimelineRange as k } from "@affino/datagrid-gantt";
4
8
  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
9
+ m as DataGridAdvancedFilterPopover,
10
+ l as DataGridDefaultRenderer,
11
+ b as DataGridGanttStage,
12
+ n as DataGridModuleHost,
13
+ c as DataGridTableStage,
14
+ o as buildDataGridChromePaneModel,
15
+ d as buildDataGridChromeRenderModel,
16
+ V as buildDataGridTimelineRenderModels,
17
+ x as createDataGridTableStageContext,
18
+ R as createDataGridTableStageContextFromProps,
19
+ t as dataGridAppRootElementKey,
20
+ f as dataGridTableStageContextKey,
21
+ j as normalizeDataGridGanttOptions,
22
+ C as provideDataGridTableStageContext,
23
+ r as readDataGridOverlayThemeVars,
24
+ G as resolveDataGridFormulaRowModelOptions,
25
+ k as resolveDataGridTimelineRange,
26
+ D as useDataGridAppRowModel,
27
+ S as useDataGridTableStageBindings,
28
+ M as useDataGridTableStageCellsSection,
29
+ v as useDataGridTableStageColumnsSection,
30
+ h as useDataGridTableStageContext,
31
+ w as useDataGridTableStageEditingSection,
32
+ y as useDataGridTableStageInteractionSection,
33
+ A as useDataGridTableStageLayoutSection,
34
+ F as useDataGridTableStageMode,
35
+ O as useDataGridTableStageRowHeightMode,
36
+ P as useDataGridTableStageRowsSection,
37
+ u as useDataGridTableStageRuntime,
38
+ _ as useDataGridTableStageSection,
39
+ E as useDataGridTableStageSelectionSection,
40
+ H as useDataGridTableStageViewportSection
37
41
  };
@@ -1,4 +1,4 @@
1
- import type { DataGridAppAdvancedFilterClauseDraft, DataGridAppAdvancedFilterClausePatch, DataGridAppAdvancedFilterColumnOption } from "@affino/datagrid-vue";
1
+ import type { DataGridAppAdvancedFilterClauseDraft, DataGridAppAdvancedFilterClausePatch, DataGridAppAdvancedFilterColumnOption } from "@affino/datagrid-vue/app";
2
2
  type __VLS_Props = {
3
3
  isOpen: boolean;
4
4
  clauses: readonly DataGridAppAdvancedFilterClauseDraft[];
@@ -14,9 +14,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
14
14
  buttonLabel: string;
15
15
  active: boolean;
16
16
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- open: () => void;
18
17
  cancel: () => void;
19
18
  add: () => void;
19
+ open: () => void;
20
20
  remove: (clauseId: number) => void;
21
21
  apply: () => void;
22
22
  "reset-all": () => void;
@@ -29,16 +29,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
29
29
  }>>> & {
30
30
  onCancel?: (() => any) | undefined;
31
31
  onOpen?: (() => any) | undefined;
32
+ onApply?: (() => any) | undefined;
32
33
  onAdd?: (() => any) | undefined;
33
34
  onRemove?: ((clauseId: number) => any) | undefined;
34
- onApply?: (() => any) | undefined;
35
35
  "onReset-all"?: (() => any) | undefined;
36
36
  "onUpdate-clause"?: ((payload: DataGridAppAdvancedFilterClausePatch) => any) | undefined;
37
37
  }, {
38
+ active: boolean;
39
+ buttonLabel: string;
38
40
  appliedFilterSummaryItems: readonly string[];
39
41
  hasAnyFilters: boolean;
40
- buttonLabel: string;
41
- active: boolean;
42
42
  }, {}>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  export default _default;
@@ -14,10 +14,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
14
14
  disabled: boolean;
15
15
  disabledReason: string;
16
16
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- open: () => void;
18
17
  cancel: () => void;
19
- apply: () => void;
20
18
  clear: () => void;
19
+ open: () => void;
20
+ apply: () => void;
21
21
  "update-basis": (basis: "source" | "filtered") => void;
22
22
  "toggle-column": (key: string, enabled: boolean) => void;
23
23
  "update-op": (key: string, op: string) => void;
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
36
36
  "onUpdate-op"?: ((key: string, op: string) => any) | undefined;
37
37
  }, {
38
38
  disabled: boolean;
39
- buttonLabel: string;
40
- active: boolean;
41
39
  disabledReason: string;
40
+ active: boolean;
41
+ buttonLabel: string;
42
42
  }, {}>;
43
43
  declare const _default: typeof __VLS_export;
44
44
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { DataGridAppColumnLayoutPanelItem, DataGridAppColumnLayoutVisibilityPatch } from "@affino/datagrid-vue";
1
+ import type { DataGridAppColumnLayoutPanelItem, DataGridAppColumnLayoutVisibilityPatch } from "@affino/datagrid-vue/app";
2
2
  type __VLS_Props = {
3
3
  isOpen: boolean;
4
4
  items: readonly DataGridAppColumnLayoutPanelItem[];
@@ -9,12 +9,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
9
9
  buttonLabel: string;
10
10
  active: boolean;
11
11
  }>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- open: () => void;
13
12
  cancel: () => void;
14
- apply: () => void;
13
+ open: () => void;
15
14
  "toggle-visibility": (payload: DataGridAppColumnLayoutVisibilityPatch) => void;
16
15
  "move-up": (key: string) => void;
17
16
  "move-down": (key: string) => void;
17
+ apply: () => void;
18
18
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
19
19
  buttonLabel: string;
20
20
  active: boolean;
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
26
26
  "onMove-up"?: ((key: string) => any) | undefined;
27
27
  "onMove-down"?: ((key: string) => any) | undefined;
28
28
  }, {
29
- buttonLabel: string;
30
29
  active: boolean;
30
+ buttonLabel: string;
31
31
  }, {}>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  export default _default;
@@ -33,14 +33,14 @@ type __VLS_Slots = {} & {
33
33
  default?: (props: typeof __VLS_15) => any;
34
34
  };
35
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;
36
+ sort: (direction: "asc" | "desc" | null) => void;
37
37
  pin: (pin: DataGridColumnPin) => void;
38
38
  group: (grouped: boolean) => void;
39
39
  "apply-filter": (tokens: readonly string[]) => void;
40
40
  "clear-filter": () => void;
41
41
  "update-text-filter": (value: string) => void;
42
42
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & {
43
- onSort?: ((direction: "desc" | "asc" | null) => any) | undefined;
43
+ onSort?: ((direction: "asc" | "desc" | null) => any) | undefined;
44
44
  onGroup?: ((grouped: boolean) => any) | undefined;
45
45
  onPin?: ((pin: DataGridColumnPin) => any) | undefined;
46
46
  "onApply-filter"?: ((tokens: readonly string[]) => any) | undefined;
@@ -48,9 +48,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
48
48
  onOptionsResolved?: ((options: readonly DataGridFilterableComboboxOption[]) => any) | undefined;
49
49
  onCommit?: ((value: string, target?: ("stay" | "next" | "previous") | undefined) => any) | undefined;
50
50
  }, {
51
- options: ReadonlyArray<DataGridFilterableComboboxOption>;
52
- placeholder: string;
53
51
  disabled: boolean;
52
+ placeholder: string;
53
+ options: ReadonlyArray<DataGridFilterableComboboxOption>;
54
54
  openOnMount: boolean;
55
55
  initialFilter: string;
56
56
  openOnFocus: boolean;
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
108
108
  required: true;
109
109
  };
110
110
  }>>, {
111
- handleKeydown: (event: KeyboardEvent) => void;
112
111
  topSpacerHeight: number;
113
112
  bottomSpacerHeight: number;
113
+ handleKeydown: (event: KeyboardEvent) => void;
114
114
  viewportRef: DataGridElementRefHandler;
115
115
  viewportClass: string;
116
116
  handleScroll: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affino/datagrid-vue-app",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,14 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
16
  },
17
+ "./gantt": {
18
+ "types": "./dist/gantt.d.ts",
19
+ "import": "./dist/gantt.js"
20
+ },
21
+ "./advanced-filter": {
22
+ "types": "./dist/advanced-filter.d.ts",
23
+ "import": "./dist/advanced-filter.js"
24
+ },
17
25
  "./internal": {
18
26
  "types": "./dist/internal.d.ts",
19
27
  "import": "./dist/internal.js"
@@ -25,10 +33,10 @@
25
33
  "dependencies": {
26
34
  "@affino/menu-vue": "^2.1.1",
27
35
  "@affino/popover-vue": "^1.1.0",
28
- "@affino/datagrid-chrome": "0.1.1",
29
36
  "@affino/datagrid-gantt": "0.1.1",
30
- "@affino/datagrid-theme": "0.2.2",
31
- "@affino/datagrid-vue": "0.3.3"
37
+ "@affino/datagrid-vue": "0.3.4",
38
+ "@affino/datagrid-chrome": "0.1.1",
39
+ "@affino/datagrid-theme": "0.2.2"
32
40
  },
33
41
  "peerDependencies": {
34
42
  "vue": "^3.3.0"