@affino/datagrid-vue-app 0.1.45 → 0.1.46

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/gantt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as t } from "./chunks/DataGridGanttStageEntry-CKjSVRMy.js";
1
+ import { D as t } from "./chunks/DataGridGanttStageEntry-DNXWCKVs.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,
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { defineComponent as je, ref as G, provide as tt, computed as m, watch as S, onBeforeUnmount as pe, h as ge, mergeProps as ot, unref as Me, toRef as Ce } from "vue";
2
- import { useDataGridRuntime as nt } from "@affino/datagrid-vue";
3
- import { useDataGridAppSelection as rt, useDataGridAppRowSelection as lt } from "@affino/datagrid-vue/app";
4
- import { r as at, g as it, h as ut, i as st, j as dt, b as ct, d as ft, c as mt, k as yt, u as vt, D as gt } from "./chunks/useDataGridAppRowModel-BoU8RlUc.js";
5
- import { a as Ao, l as Bo } from "./chunks/useDataGridAppRowModel-BoU8RlUc.js";
6
- import { r as pt } from "./chunks/dataGridAdvancedFilter-xnME5bRa.js";
7
- import { r as wt } from "./chunks/DataGridGanttStageEntry-CKjSVRMy.js";
8
- import { applyGridTheme as St, resolveGridThemeTokens as ht, defaultStyleConfig as j, sugarTheme as Ie, industrialNeutralTheme as Oe } from "@affino/datagrid-theme";
9
- import { d as Rt } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
10
- function fo() {
2
+ import { useDataGridRuntime as nt, cloneDataGridFilterSnapshot as rt } from "@affino/datagrid-vue";
3
+ import { useDataGridAppSelection as lt, useDataGridAppRowSelection as at } from "@affino/datagrid-vue/app";
4
+ import { r as it, g as ut, h as st, i as dt, j as ct, b as ft, d as mt, c as yt, k as vt, u as gt, D as pt } from "./chunks/useDataGridAppRowModel-DKyzpK78.js";
5
+ import { a as Bo, l as Do } from "./chunks/useDataGridAppRowModel-DKyzpK78.js";
6
+ import { r as wt } from "./chunks/dataGridAdvancedFilter-xnME5bRa.js";
7
+ import { r as St } from "./chunks/DataGridGanttStageEntry-DNXWCKVs.js";
8
+ import { applyGridTheme as ht, resolveGridThemeTokens as Rt, defaultStyleConfig as j, sugarTheme as Ie, industrialNeutralTheme as Oe } from "@affino/datagrid-theme";
9
+ import { d as bt } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
10
+ function mo() {
11
11
  return (e) => e;
12
12
  }
13
- const bt = {
13
+ const Mt = {
14
14
  default: j,
15
15
  "industrial-neutral": Oe,
16
16
  industrialNeutral: Oe,
17
17
  sugar: Ie
18
18
  };
19
- function Mt(e, t) {
19
+ function Ct(e, t) {
20
20
  if (!e && !t)
21
21
  return;
22
22
  const l = {
@@ -40,26 +40,26 @@ function fe(e, t) {
40
40
  summary: { ...e.summary ?? {}, ...t.summary ?? {} },
41
41
  state: { ...e.state ?? {}, ...t.state ?? {} },
42
42
  tokens: { ...e.tokens ?? {}, ...t.tokens ?? {} },
43
- tokenVariants: Mt(e.tokenVariants, t.tokenVariants)
43
+ tokenVariants: Ct(e.tokenVariants, t.tokenVariants)
44
44
  };
45
45
  }
46
- function Ct(e) {
46
+ function Ot(e) {
47
47
  return !e || typeof e != "object" ? !1 : "tokens" in e || "tokenVariants" in e || "activeTokenVariant" in e || "defaultTokenVariant" in e || "inheritThemeFromDocument" in e || "documentDarkClass" in e || "grid" in e || "header" in e || "body" in e || "group" in e || "summary" in e || "state" in e;
48
48
  }
49
- function Ot(e) {
50
- return e == null ? j : typeof e == "string" ? e === "sugar" ? fe(j, Ie) : bt[e] ?? j : Ct(e) ? fe(j, e) : fe(j, {
49
+ function At(e) {
50
+ return e == null ? j : typeof e == "string" ? e === "sugar" ? fe(j, Ie) : Mt[e] ?? j : Ot(e) ? fe(j, e) : fe(j, {
51
51
  tokens: e
52
52
  });
53
53
  }
54
- function At(e) {
55
- const t = Ot(e);
56
- return ht(t ?? j, {
54
+ function Bt(e) {
55
+ const t = At(e);
56
+ return Rt(t ?? j, {
57
57
  document: typeof document > "u" ? void 0 : document
58
58
  });
59
59
  }
60
60
  function Ae(e, t) {
61
- const l = At(t);
62
- return St(e, l), l;
61
+ const l = Bt(t);
62
+ return ht(e, l), l;
63
63
  }
64
64
  function Be(e, t) {
65
65
  return Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t;
@@ -67,7 +67,7 @@ function Be(e, t) {
67
67
  function De(e, t) {
68
68
  return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : t;
69
69
  }
70
- function Bt(e) {
70
+ function Dt(e) {
71
71
  if (e !== void 0) {
72
72
  if (e == null)
73
73
  return null;
@@ -82,10 +82,10 @@ function Bt(e) {
82
82
  return e;
83
83
  }
84
84
  }
85
- function Dt(e, t) {
85
+ function Pt(e, t) {
86
86
  return t === !0 || t && typeof t == "object" ? "pagination" : e ?? "virtualization";
87
87
  }
88
- function Pt(e, t, l, o) {
88
+ function Gt(e, t, l, o) {
89
89
  if (t !== "pagination")
90
90
  return null;
91
91
  const u = 100, a = De(l, u), v = Be(o, 0);
@@ -98,7 +98,7 @@ function Pt(e, t, l, o) {
98
98
  };
99
99
  }
100
100
  const me = "Find / replace";
101
- function Gt(e) {
101
+ function Ft(e) {
102
102
  return typeof e == "boolean" ? {
103
103
  enabled: e,
104
104
  buttonLabel: me
@@ -110,16 +110,16 @@ function Gt(e) {
110
110
  buttonLabel: me
111
111
  };
112
112
  }
113
- const Ft = "all", Ke = {
113
+ const xt = "all", Ke = {
114
114
  all: "columns",
115
115
  rows: "none",
116
116
  columns: "columns",
117
117
  none: "none"
118
118
  };
119
119
  function Pe(e) {
120
- return e === "rows" || e === "columns" || e === "none" || e === "all" ? e : Ft;
120
+ return e === "rows" || e === "columns" || e === "none" || e === "all" ? e : xt;
121
121
  }
122
- function xt(e, t) {
122
+ function jt(e, t) {
123
123
  return e === "columns" || e === "none" ? e : Ke[t];
124
124
  }
125
125
  function Ge(e, t) {
@@ -136,7 +136,7 @@ function Fe(e) {
136
136
  headerColumns: o
137
137
  };
138
138
  }
139
- function jt(e) {
139
+ function It(e) {
140
140
  if (typeof e == "string") {
141
141
  const o = Pe(e), u = Ke[o];
142
142
  return Fe({
@@ -145,7 +145,7 @@ function jt(e) {
145
145
  pinnedSeparators: Ge(o, u)
146
146
  });
147
147
  }
148
- const t = Pe(e?.body), l = xt(e?.header, t);
148
+ const t = Pe(e?.body), l = jt(e?.header, t);
149
149
  return Fe({
150
150
  body: t,
151
151
  header: l,
@@ -158,7 +158,7 @@ function xe(e) {
158
158
  const t = Math.max(0, Math.trunc(e));
159
159
  return t > 0 ? t : null;
160
160
  }
161
- function It(e, t, l) {
161
+ function Kt(e, t, l) {
162
162
  const o = e === "auto-height" ? "auto-height" : "fill";
163
163
  if (o !== "auto-height")
164
164
  return {
@@ -174,7 +174,7 @@ function It(e, t, l) {
174
174
  maxRows: a
175
175
  };
176
176
  }
177
- function Kt(e) {
177
+ function Ht(e) {
178
178
  return {
179
179
  ...e,
180
180
  transaction: null
@@ -183,14 +183,14 @@ function Kt(e) {
183
183
  function X(e) {
184
184
  return {
185
185
  ...e,
186
- state: Kt(e.state)
186
+ state: Ht(e.state)
187
187
  };
188
188
  }
189
- function Ht(e) {
189
+ function Lt(e) {
190
190
  return typeof e == "object" && e !== null;
191
191
  }
192
192
  function He(e, t, l) {
193
- const o = Ht(e) ? e : null, u = t(o && "state" in o ? o.state : e, l);
193
+ const o = Lt(e) ? e : null, u = t(o && "state" in o ? o.state : e, l);
194
194
  if (!u)
195
195
  return null;
196
196
  const a = o?.viewMode, v = a === "gantt" ? "gantt" : a === "table" ? "table" : void 0;
@@ -199,10 +199,10 @@ function He(e, t, l) {
199
199
  ...v ? { viewMode: v } : {}
200
200
  });
201
201
  }
202
- function Lt(e) {
202
+ function zt(e) {
203
203
  return JSON.stringify(X(e));
204
204
  }
205
- function zt(e, t, l) {
205
+ function Et(e, t, l) {
206
206
  if (typeof e != "string" || e.trim().length === 0)
207
207
  return null;
208
208
  try {
@@ -211,26 +211,26 @@ function zt(e, t, l) {
211
211
  return null;
212
212
  }
213
213
  }
214
- function mo(e, t, l) {
214
+ function yo(e, t, l) {
215
215
  if (!e || typeof t != "string" || t.trim().length === 0)
216
216
  return !1;
217
217
  try {
218
- return e.setItem(t, Lt(l)), !0;
218
+ return e.setItem(t, zt(l)), !0;
219
219
  } catch {
220
220
  return !1;
221
221
  }
222
222
  }
223
- function yo(e, t, l, o) {
223
+ function vo(e, t, l, o) {
224
224
  if (!e || typeof t != "string" || t.trim().length === 0)
225
225
  return null;
226
226
  try {
227
227
  const u = e.getItem(t);
228
- return u ? zt(u, l, o) : null;
228
+ return u ? Et(u, l, o) : null;
229
229
  } catch {
230
230
  return null;
231
231
  }
232
232
  }
233
- function vo(e, t) {
233
+ function go(e, t) {
234
234
  if (!e || typeof t != "string" || t.trim().length === 0)
235
235
  return !1;
236
236
  try {
@@ -240,7 +240,7 @@ function vo(e, t) {
240
240
  }
241
241
  }
242
242
  const ye = "Aggregations";
243
- function Et(e) {
243
+ function Vt(e) {
244
244
  return typeof e == "boolean" ? {
245
245
  enabled: e,
246
246
  buttonLabel: ye
@@ -255,7 +255,7 @@ function Et(e) {
255
255
  function $(e, t) {
256
256
  return Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t;
257
257
  }
258
- function Vt(e, t) {
258
+ function Wt(e, t) {
259
259
  const l = {
260
260
  rows: !0,
261
261
  columns: !1,
@@ -273,7 +273,7 @@ function Vt(e, t) {
273
273
  }
274
274
  return t === "pagination" && (l.rows = !1), l;
275
275
  }
276
- const Wt = je({
276
+ const Tt = je({
277
277
  name: "DataGridRuntimeHost",
278
278
  inheritAttrs: !1,
279
279
  props: {
@@ -329,7 +329,7 @@ const Wt = je({
329
329
  },
330
330
  setup(e, { attrs: t, slots: l, emit: o, expose: u }) {
331
331
  const a = G(null);
332
- tt(Rt, a);
332
+ tt(bt, a);
333
333
  let v = null;
334
334
  const s = nt({
335
335
  rows: m(() => e.rows),
@@ -464,13 +464,13 @@ function O(e) {
464
464
  return null;
465
465
  }
466
466
  }
467
- function Tt(e) {
467
+ function _t(e) {
468
468
  return e ? {
469
469
  fields: [...e.fields],
470
470
  expandedByDefault: e.expandedByDefault
471
471
  } : null;
472
472
  }
473
- function _t(e) {
473
+ function kt(e) {
474
474
  let t = null, l = null, o = !1, u = null, a = null, v = null, s = null, w = null, h = null, A = null, b = null, R = null;
475
475
  const F = () => {
476
476
  t?.(), l?.(), t = null, l = null;
@@ -501,7 +501,7 @@ function _t(e) {
501
501
  ), e.emit.columnWidths(n.widths), e.emit.columnPins(n.pins));
502
502
  }
503
503
  if (d) {
504
- const i = Tt(d.rows.getSnapshot().groupBy), y = O(i);
504
+ const i = _t(d.rows.getSnapshot().groupBy), y = O(i);
505
505
  y !== w && (w = y, e.emit.groupBy(i));
506
506
  const C = d.state.get(), M = O(C);
507
507
  A = M, M !== s && (s = M, e.emit.state(C));
@@ -741,26 +741,26 @@ function _t(e) {
741
741
  collapseAllGroups: le
742
742
  };
743
743
  }
744
- function kt(e) {
744
+ function Ut(e) {
745
745
  if (!Number.isFinite(e))
746
746
  return;
747
747
  const t = Math.trunc(e);
748
748
  return t > 0 ? t : void 0;
749
749
  }
750
- function Ut(e) {
750
+ function Nt(e) {
751
751
  return e === !1 ? !1 : e === "window" ? "window" : "grid";
752
752
  }
753
- function Nt(e) {
753
+ function qt(e) {
754
754
  return e === !0 || e === "toolbar" ? "toolbar" : e === "external-only" ? "external-only" : !1;
755
755
  }
756
- function qt() {
756
+ function Jt() {
757
757
  return {
758
758
  canUndo: () => !1,
759
759
  canRedo: () => !1,
760
760
  runHistoryAction: async () => null
761
761
  };
762
762
  }
763
- function Jt(e) {
763
+ function Yt(e) {
764
764
  if (e === !1)
765
765
  return {
766
766
  enabled: !1,
@@ -771,9 +771,9 @@ function Jt(e) {
771
771
  const t = typeof e == "object" && e !== null ? e : {};
772
772
  return e === void 0 || e === !0 || t.enabled !== !1 ? {
773
773
  enabled: !0,
774
- depth: kt(t.depth),
775
- shortcuts: Ut(t.shortcuts),
776
- controls: Nt(t.controls),
774
+ depth: Ut(t.depth),
775
+ shortcuts: Nt(t.shortcuts),
776
+ controls: qt(t.controls),
777
777
  adapter: t.adapter
778
778
  } : {
779
779
  enabled: !1,
@@ -782,9 +782,6 @@ function Jt(e) {
782
782
  controls: !1
783
783
  };
784
784
  }
785
- function go() {
786
- return (e) => e;
787
- }
788
785
  function po() {
789
786
  return (e) => e;
790
787
  }
@@ -797,7 +794,10 @@ function So() {
797
794
  function ho() {
798
795
  return (e) => e;
799
796
  }
800
- function Yt(e, t) {
797
+ function Ro() {
798
+ return (e) => e;
799
+ }
800
+ function $t(e, t) {
801
801
  if (!t || typeof e != "object" || e === null)
802
802
  return;
803
803
  const l = t.split(".").filter(Boolean);
@@ -816,7 +816,7 @@ function Yt(e, t) {
816
816
  }
817
817
  return o;
818
818
  }
819
- function $t(e, t) {
819
+ function Qt(e, t) {
820
820
  const l = /* @__PURE__ */ new Map();
821
821
  for (const o of e ?? []) {
822
822
  const u = String(o.key ?? "").trim();
@@ -841,10 +841,10 @@ function $t(e, t) {
841
841
  if (!s)
842
842
  return;
843
843
  const w = v[s];
844
- return typeof w < "u" ? w : Yt(v, s);
844
+ return typeof w < "u" ? w : $t(v, s);
845
845
  };
846
846
  }
847
- function Qt() {
847
+ function Xt() {
848
848
  return {
849
849
  name: "selection",
850
850
  getRowSelectionSnapshot: () => null,
@@ -875,7 +875,7 @@ function Q(e, t) {
875
875
  await u(o);
876
876
  };
877
877
  }
878
- function Xt(e) {
878
+ function Zt(e) {
879
879
  const {
880
880
  userSelectionService: t,
881
881
  cellSelectionService: l,
@@ -903,7 +903,7 @@ function Xt(e) {
903
903
  clearSelectedRows: o.clearSelectedRows
904
904
  };
905
905
  }
906
- function Zt(e, t) {
906
+ function eo(e, t) {
907
907
  if (e?.focusedRow !== t?.focusedRow)
908
908
  return !1;
909
909
  const l = e?.selectedRows ?? [], o = t?.selectedRows ?? [];
@@ -914,7 +914,7 @@ function Zt(e, t) {
914
914
  return !1;
915
915
  return !0;
916
916
  }
917
- function eo(e, t) {
917
+ function to(e, t) {
918
918
  if (e === t)
919
919
  return !0;
920
920
  const l = Object.entries(e ?? {}), o = Object.entries(t ?? {});
@@ -925,19 +925,19 @@ function eo(e, t) {
925
925
  return !1;
926
926
  return !0;
927
927
  }
928
- function to(e, t) {
928
+ function oo(e, t) {
929
929
  if (e === t)
930
930
  return !0;
931
931
  if (e.length !== t.length)
932
932
  return !1;
933
933
  for (let l = 0; l < e.length; l += 1) {
934
934
  const o = e[l], u = t[l];
935
- if (!o || !u || o.key !== u.key || o.component !== u.component || !eo(o.props, u.props))
935
+ if (!o || !u || o.key !== u.key || o.component !== u.component || !to(o.props, u.props))
936
936
  return !1;
937
937
  }
938
938
  return !0;
939
939
  }
940
- const oo = {
940
+ const no = {
941
941
  rows: {
942
942
  type: Array,
943
943
  default: () => []
@@ -1217,7 +1217,7 @@ const oo = {
1217
1217
  }, Le = je({
1218
1218
  name: "DataGrid",
1219
1219
  inheritAttrs: !1,
1220
- props: oo,
1220
+ props: no,
1221
1221
  emits: {
1222
1222
  "cell-change": (e) => !0,
1223
1223
  "cell-edit": (e) => !0,
@@ -1237,16 +1237,16 @@ const oo = {
1237
1237
  ready: (e) => !0
1238
1238
  },
1239
1239
  setup(e, { attrs: t, slots: l, emit: o, expose: u }) {
1240
- const a = G(null), v = qt(), s = G(null), w = G(null), h = G([]);
1240
+ const a = G(null), v = Jt(), s = G(null), w = G(null), h = G([]);
1241
1241
  let A = null, b = !1;
1242
- const R = G(e.viewMode === "gantt" ? "gantt" : "table"), F = G(e.state ?? null), P = m(() => Jt(e.history)), f = m(() => at(e.chrome)), x = m(() => Dt(e.renderMode, e.pagination)), g = m(() => Pt(
1242
+ const R = G(e.viewMode === "gantt" ? "gantt" : "table"), F = G(e.state ?? null), P = m(() => Yt(e.history)), f = m(() => it(e.chrome)), x = m(() => Pt(e.renderMode, e.pagination)), g = m(() => Gt(
1243
1243
  e.pagination,
1244
1244
  x.value,
1245
1245
  e.pageSize,
1246
1246
  e.currentPage
1247
- )), L = m(() => it(e.columnMenu)), Z = m(() => ut(e.cellMenu)), ee = m(() => st(e.rowIndexMenu)), z = m(() => dt(e.columnLayout)), E = m(() => ct(e.columnReorder)), U = m(() => Et(e.aggregations)), I = m(() => pt(e.advancedFilter)), V = m(() => Gt(e.findReplace)), W = m(() => jt(e.gridLines)), K = m(() => Bt(e.groupBy)), B = m(() => e.state ?? F.value), T = m(() => e.sortModel !== void 0 ? e.sortModel : B.value?.rows?.snapshot?.sortModel), _ = m(() => e.filterModel !== void 0 ? e.filterModel : B.value?.rows?.snapshot?.filterModel ?? null), N = m(() => e.groupBy !== void 0 ? K.value ?? null : B.value?.rows?.snapshot?.groupBy ?? null), q = m(() => e.pivotModel !== void 0 ? e.pivotModel : B.value?.rows?.snapshot?.pivotModel ?? null), te = m(() => Vt(e.virtualization, x.value)), H = m(() => It(e.layoutMode, e.minRows, e.maxRows)), oe = m(() => wt(e.placeholderRows)), ne = m(() => ft(e.rowReorder)), J = m(() => {
1247
+ )), L = m(() => ut(e.columnMenu)), Z = m(() => st(e.cellMenu)), ee = m(() => dt(e.rowIndexMenu)), z = m(() => ct(e.columnLayout)), E = m(() => ft(e.columnReorder)), U = m(() => Vt(e.aggregations)), I = m(() => wt(e.advancedFilter)), V = m(() => Ft(e.findReplace)), W = m(() => It(e.gridLines)), K = m(() => Dt(e.groupBy)), B = m(() => e.state ?? F.value), T = m(() => e.sortModel !== void 0 ? e.sortModel : B.value?.rows?.snapshot?.sortModel), _ = m(() => e.filterModel !== void 0 ? e.filterModel : rt(B.value?.rows?.snapshot?.filterModel ?? null)), N = m(() => e.groupBy !== void 0 ? K.value ?? null : B.value?.rows?.snapshot?.groupBy ?? null), q = m(() => e.pivotModel !== void 0 ? e.pivotModel : B.value?.rows?.snapshot?.pivotModel ?? null), te = m(() => Wt(e.virtualization, x.value)), H = m(() => Kt(e.layoutMode, e.minRows, e.maxRows)), oe = m(() => St(e.placeholderRows)), ne = m(() => mt(e.rowReorder)), J = m(() => {
1248
1248
  const r = e.clientRowModelOptions?.readFilterCell;
1249
- return $t(
1249
+ return Qt(
1250
1250
  e.columns,
1251
1251
  e.readFilterCell ?? r
1252
1252
  );
@@ -1257,13 +1257,13 @@ const oo = {
1257
1257
  readFilterCell: J.value,
1258
1258
  readFilterCellStyle: r
1259
1259
  };
1260
- }), k = m(() => mt({
1260
+ }), k = m(() => yt({
1261
1261
  columns: e.columns,
1262
1262
  clientRowModelOptions: re.value,
1263
1263
  computedFields: e.computedFields,
1264
1264
  formulas: e.formulas,
1265
1265
  formulaFunctions: e.formulaFunctions
1266
- })), le = m(() => yt(e.columns)), Y = {
1266
+ })), le = m(() => vt(e.columns)), Y = {
1267
1267
  get state() {
1268
1268
  return e.state;
1269
1269
  },
@@ -1338,16 +1338,16 @@ const oo = {
1338
1338
  syncSelectionSnapshotFromRuntime: Ee,
1339
1339
  selectionService: Ve,
1340
1340
  selectionAggregatesLabel: We
1341
- } = rt(C), {
1341
+ } = lt(C), {
1342
1342
  rowSelectionSnapshot: ae,
1343
1343
  syncRowSelectionSnapshotFromRuntime: ie,
1344
1344
  reconcileRowSelectionFromRuntime: Te,
1345
1345
  selectionService: we
1346
- } = lt({
1346
+ } = at({
1347
1347
  resolveRuntime: () => a.value
1348
- }), _e = m(() => e.rowSelection ? we : Qt()), ke = m(() => ({
1348
+ }), _e = m(() => e.rowSelection ? we : Xt()), ke = m(() => ({
1349
1349
  ...e.services ?? {},
1350
- selection: Xt({
1350
+ selection: Zt({
1351
1351
  userSelectionService: e.services?.selection,
1352
1352
  cellSelectionService: Ve,
1353
1353
  rowSelectionService: _e.value
@@ -1355,14 +1355,14 @@ const oo = {
1355
1355
  })), {
1356
1356
  dataGridInstanceKey: Ue,
1357
1357
  resolvedRowModel: ue
1358
- } = vt({
1358
+ } = gt({
1359
1359
  rows: Ce(e, "rows"),
1360
1360
  rowModel: Ce(e, "rowModel"),
1361
1361
  clientRowModelOptions: k,
1362
1362
  onOwnedRowModelRecreated: () => {
1363
1363
  p.dispose();
1364
1364
  }
1365
- }), p = _t({
1365
+ }), p = kt({
1366
1366
  gridRef: a,
1367
1367
  props: Y,
1368
1368
  emit: {
@@ -1403,7 +1403,7 @@ const oo = {
1403
1403
  if (r) {
1404
1404
  if (c !== void 0) {
1405
1405
  const D = a.value?.api.rowSelection;
1406
- Zt(ae.value, c) || (c ? D?.setSnapshot(c) : D?.clear(), ie());
1406
+ eo(ae.value, c) || (c ? D?.setSnapshot(c) : D?.clear(), ie());
1407
1407
  return;
1408
1408
  }
1409
1409
  ie();
@@ -1427,7 +1427,7 @@ const oo = {
1427
1427
  }, Re = (r) => {
1428
1428
  w.value = r;
1429
1429
  }, $e = (r) => {
1430
- to(h.value, r) || (h.value = r, A = r, !b && (b = !0, Promise.resolve().then(() => {
1430
+ oo(h.value, r) || (h.value = r, A = r, !b && (b = !0, Promise.resolve().then(() => {
1431
1431
  b = !1;
1432
1432
  const c = A;
1433
1433
  A = null, c && o("toolbar-modules-change", c);
@@ -1554,7 +1554,7 @@ const oo = {
1554
1554
  runStructuralRowAction: e.runStructuralRowAction
1555
1555
  };
1556
1556
  return ge(
1557
- Wt,
1557
+ Tt,
1558
1558
  {
1559
1559
  ...t,
1560
1560
  ref: a,
@@ -1590,7 +1590,7 @@ const oo = {
1590
1590
  }
1591
1591
  })
1592
1592
  } : {
1593
- default: (c) => ge(gt, {
1593
+ default: (c) => ge(pt, {
1594
1594
  ...r,
1595
1595
  runtime: c.runtime,
1596
1596
  runtimeRowModel: c.rowModel,
@@ -1605,30 +1605,30 @@ const oo = {
1605
1605
  };
1606
1606
  }
1607
1607
  });
1608
- function Ro() {
1608
+ function bo() {
1609
1609
  return G(null);
1610
1610
  }
1611
- function bo() {
1611
+ function Mo() {
1612
1612
  return Le;
1613
1613
  }
1614
- const Mo = Le;
1614
+ const Co = Le;
1615
1615
  export {
1616
- Mo as DataGrid,
1617
- Ao as DataGridModuleHost,
1618
- vo as clearDataGridSavedViewInStorage,
1616
+ Co as DataGrid,
1617
+ Bo as DataGridModuleHost,
1618
+ go as clearDataGridSavedViewInStorage,
1619
1619
  Le as default,
1620
- So as defineDataGridCellClassResolver,
1621
- ho as defineDataGridCellStyleResolver,
1622
- Bo as defineDataGridColumns,
1623
- bo as defineDataGridComponent,
1624
- po as defineDataGridFilterCellReader,
1625
- wo as defineDataGridFilterCellStyleReader,
1626
- go as defineDataGridSelectionCellReader,
1627
- fo as defineDataGridStructuralRowActionHandler,
1620
+ ho as defineDataGridCellClassResolver,
1621
+ Ro as defineDataGridCellStyleResolver,
1622
+ Do as defineDataGridColumns,
1623
+ Mo as defineDataGridComponent,
1624
+ wo as defineDataGridFilterCellReader,
1625
+ So as defineDataGridFilterCellStyleReader,
1626
+ po as defineDataGridSelectionCellReader,
1627
+ mo as defineDataGridStructuralRowActionHandler,
1628
1628
  He as migrateDataGridSavedView,
1629
- zt as parseDataGridSavedView,
1630
- yo as readDataGridSavedViewFromStorage,
1631
- Lt as serializeDataGridSavedView,
1632
- Ro as useDataGridRef,
1633
- mo as writeDataGridSavedViewToStorage
1629
+ Et as parseDataGridSavedView,
1630
+ vo as readDataGridSavedViewFromStorage,
1631
+ zt as serializeDataGridSavedView,
1632
+ bo as useDataGridRef,
1633
+ yo as writeDataGridSavedViewToStorage
1634
1634
  };
package/dist/internal.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as t, r } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
2
2
  import { buildDataGridChromePaneModel as i, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
3
- import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-BoU8RlUc.js";
4
- import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-CKjSVRMy.js";
3
+ import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-DKyzpK78.js";
4
+ import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-DNXWCKVs.js";
5
5
  import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DxZakgyj.js";
6
6
  import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
7
7
  import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
@@ -1,7 +1,6 @@
1
1
  import { type ComputedRef, type CSSProperties, type Ref } from "vue";
2
- import type { DataGridFilterSnapshot, DataGridGroupBySpec, DataGridGroupExpansionSnapshot, DataGridRowNode, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
2
+ import type { DataGridFilterSnapshot, DataGridGroupBySpec, DataGridGroupExpansionSnapshot, DataGridPaginationSnapshot, DataGridRowNode, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, DataGridSortState, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
3
  import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
4
- import type { DataGridPaginationSnapshot, DataGridSortState } from "@affino/datagrid-core";
5
4
  import { type DataGridAppPasteOptions } from "@affino/datagrid-vue/app";
6
5
  import type { DataGridCellEditablePredicate } from "../dataGridEditability";
7
6
  import type { DataGridHistoryController } from "../dataGridHistory";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affino/datagrid-vue-app",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "@affino/datagrid-chrome": "0.1.1",
45
45
  "@affino/datagrid-gantt": "0.1.2",
46
46
  "@affino/datagrid-theme": "0.2.2",
47
- "@affino/datagrid-vue": "0.3.32"
47
+ "@affino/datagrid-vue": "0.3.33"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "vue": "^3.3.0"