@affino/datagrid-vue-app 0.1.34 → 0.1.36
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 +21 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +56 -44
- package/package.json +3 -3
package/dist/DataGrid.d.ts
CHANGED
|
@@ -35,6 +35,11 @@ export type DataGridFilterCellReader<TRow = unknown> = DataGridBivariantCallback
|
|
|
35
35
|
row: DataGridRowNode<TRow>,
|
|
36
36
|
columnKey: string
|
|
37
37
|
], unknown>;
|
|
38
|
+
export type DataGridFilterCellStyleReader<TRow = unknown> = DataGridBivariantCallback<[
|
|
39
|
+
row: DataGridRowNode<TRow>,
|
|
40
|
+
columnKey: string,
|
|
41
|
+
styleKey: string
|
|
42
|
+
], unknown>;
|
|
38
43
|
export type DataGridCellClassResolver<TRow = unknown> = DataGridBivariantCallback<[
|
|
39
44
|
row: DataGridRowNode<TRow>,
|
|
40
45
|
rowIndex: number,
|
|
@@ -49,6 +54,7 @@ export type DataGridCellStyleResolver<TRow = unknown> = DataGridBivariantCallbac
|
|
|
49
54
|
], CSSProperties | null | undefined>;
|
|
50
55
|
export declare function defineDataGridSelectionCellReader<TRow = unknown>(): <TReader extends DataGridSelectionCellReader<TRow>>(reader: TReader) => TReader;
|
|
51
56
|
export declare function defineDataGridFilterCellReader<TRow = unknown>(): <TReader extends DataGridFilterCellReader<TRow>>(reader: TReader) => TReader;
|
|
57
|
+
export declare function defineDataGridFilterCellStyleReader<TRow = unknown>(): <TReader extends DataGridFilterCellStyleReader<TRow>>(reader: TReader) => TReader;
|
|
52
58
|
export declare function defineDataGridCellClassResolver<TRow = unknown>(): <TResolver extends DataGridCellClassResolver<TRow>>(resolver: TResolver) => TResolver;
|
|
53
59
|
export declare function defineDataGridCellStyleResolver<TRow = unknown>(): <TResolver extends DataGridCellStyleResolver<TRow>>(resolver: TResolver) => TResolver;
|
|
54
60
|
export { defineDataGridStructuralRowActionHandler };
|
|
@@ -273,6 +279,10 @@ declare const dataGridProps: {
|
|
|
273
279
|
readonly type: PropType<DataGridFilterCellReader | undefined>;
|
|
274
280
|
readonly default: undefined;
|
|
275
281
|
};
|
|
282
|
+
readonly readFilterCellStyle: {
|
|
283
|
+
readonly type: PropType<DataGridFilterCellStyleReader | undefined>;
|
|
284
|
+
readonly default: undefined;
|
|
285
|
+
};
|
|
276
286
|
readonly cellClass: {
|
|
277
287
|
readonly type: PropType<DataGridCellClassResolver | undefined>;
|
|
278
288
|
readonly default: undefined;
|
|
@@ -311,7 +321,7 @@ declare const dataGridProps: {
|
|
|
311
321
|
};
|
|
312
322
|
};
|
|
313
323
|
type DataGridPublicPropsBase = ExtractPublicPropTypes<typeof dataGridProps>;
|
|
314
|
-
export type DataGridProps<TRow = unknown> = Omit<DataGridPublicPropsBase, "rows" | "rowModel" | "clientRowModelOptions" | "computedFields" | "columns" | "plugins" | "state" | "placeholderRows" | "readSelectionCell" | "readFilterCell" | "cellClass" | "cellStyle" | "isCellEditable"> & {
|
|
324
|
+
export type DataGridProps<TRow = unknown> = Omit<DataGridPublicPropsBase, "rows" | "rowModel" | "clientRowModelOptions" | "computedFields" | "columns" | "plugins" | "state" | "placeholderRows" | "readSelectionCell" | "readFilterCell" | "readFilterCellStyle" | "cellClass" | "cellStyle" | "isCellEditable"> & {
|
|
315
325
|
rows?: readonly (TRow | DataGridRowNodeInput<TRow>)[];
|
|
316
326
|
rowModel?: DataGridRowModel<TRow> | undefined;
|
|
317
327
|
clientRowModelOptions?: DataGridAppClientRowModelOptions<TRow> | undefined;
|
|
@@ -322,6 +332,7 @@ export type DataGridProps<TRow = unknown> = Omit<DataGridPublicPropsBase, "rows"
|
|
|
322
332
|
placeholderRows?: DataGridPlaceholderRowsProp<TRow> | undefined;
|
|
323
333
|
readSelectionCell?: DataGridSelectionCellReader<TRow> | undefined;
|
|
324
334
|
readFilterCell?: DataGridFilterCellReader<TRow> | undefined;
|
|
335
|
+
readFilterCellStyle?: DataGridFilterCellStyleReader<TRow> | undefined;
|
|
325
336
|
cellClass?: DataGridCellClassResolver<TRow> | undefined;
|
|
326
337
|
cellStyle?: DataGridCellStyleResolver<TRow> | undefined;
|
|
327
338
|
isCellEditable?: DataGridCellEditablePredicate<TRow> | undefined;
|
|
@@ -560,6 +571,10 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
|
|
|
560
571
|
readonly type: PropType<DataGridFilterCellReader | undefined>;
|
|
561
572
|
readonly default: undefined;
|
|
562
573
|
};
|
|
574
|
+
readonly readFilterCellStyle: {
|
|
575
|
+
readonly type: PropType<DataGridFilterCellStyleReader | undefined>;
|
|
576
|
+
readonly default: undefined;
|
|
577
|
+
};
|
|
563
578
|
readonly cellClass: {
|
|
564
579
|
readonly type: PropType<DataGridCellClassResolver | undefined>;
|
|
565
580
|
readonly default: undefined;
|
|
@@ -836,6 +851,10 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
|
|
|
836
851
|
readonly type: PropType<DataGridFilterCellReader | undefined>;
|
|
837
852
|
readonly default: undefined;
|
|
838
853
|
};
|
|
854
|
+
readonly readFilterCellStyle: {
|
|
855
|
+
readonly type: PropType<DataGridFilterCellStyleReader | undefined>;
|
|
856
|
+
readonly default: undefined;
|
|
857
|
+
};
|
|
839
858
|
readonly cellClass: {
|
|
840
859
|
readonly type: PropType<DataGridCellClassResolver | undefined>;
|
|
841
860
|
readonly default: undefined;
|
|
@@ -894,6 +913,7 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
|
|
|
894
913
|
}, {
|
|
895
914
|
readonly rows: readonly unknown[];
|
|
896
915
|
readonly readFilterCell: DataGridFilterCellReader<unknown> | undefined;
|
|
916
|
+
readonly readFilterCellStyle: DataGridFilterCellStyleReader<unknown> | undefined;
|
|
897
917
|
readonly columns: readonly DataGridAppColumnInput<unknown>[];
|
|
898
918
|
readonly clientRowModelOptions: DataGridAppClientRowModelOptions<unknown> | undefined;
|
|
899
919
|
readonly rowHeightMode: "fixed" | "auto";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const DataGrid: import("./DataGrid").DataGridComponent;
|
|
2
2
|
export { default as DataGridModuleHost } from "./host/DataGridModuleHost";
|
|
3
3
|
export { defineDataGridColumns } from "./config/dataGridFormulaOptions";
|
|
4
|
-
export { defineDataGridCellClassResolver, defineDataGridCellStyleResolver, defineDataGridComponent, defineDataGridFilterCellReader, defineDataGridSelectionCellReader, defineDataGridStructuralRowActionHandler, useDataGridRef, } from "./DataGrid";
|
|
5
|
-
export type { DataGridCellClassResolver, DataGridCellStyleResolver, DataGridComponent, DataGridComponentFor, DataGridExposed, DataGridFilterCellReader, DataGridInstance, DataGridProps, DataGridSelectionCellReader, } from "./DataGrid";
|
|
4
|
+
export { defineDataGridCellClassResolver, defineDataGridCellStyleResolver, defineDataGridComponent, defineDataGridFilterCellReader, defineDataGridFilterCellStyleReader, defineDataGridSelectionCellReader, defineDataGridStructuralRowActionHandler, useDataGridRef, } from "./DataGrid";
|
|
5
|
+
export type { DataGridCellClassResolver, DataGridCellStyleResolver, DataGridComponent, DataGridComponentFor, DataGridExposed, DataGridFilterCellReader, DataGridFilterCellStyleReader, DataGridInstance, DataGridProps, DataGridSelectionCellReader, } from "./DataGrid";
|
|
6
6
|
export type { DataGridStructuralRowActionContext, DataGridStructuralRowActionHandler, DataGridStructuralRowActionId, } from "./dataGridStructuralRowActions";
|
|
7
7
|
export type { DataGridAppClientRowModelOptions, DataGridAppCellRenderer, DataGridAppCellRendererContext, DataGridAppGroupCellRenderer, DataGridAppGroupCellRendererContext, DataGridAppCellRendererInteractiveContext, DataGridAppRowSurfaceContext, DataGridAppRowSurfaceKind, DataGridAppColumnInput, DataGridDeclarativeFormulaOptions, } from "./config/dataGridFormulaOptions";
|
|
8
8
|
export type { DataGridAppToolbarModule, } from "./host/DataGridModuleHost";
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Fe, ref as D, provide as Xe, computed as m, watch as S, onBeforeUnmount as we, h as ge, mergeProps as Ze, toRef as Me } from "vue";
|
|
2
2
|
import { useDataGridRuntime as et } from "@affino/datagrid-vue";
|
|
3
3
|
import { useDataGridAppSelection as tt, useDataGridAppRowSelection as ot } from "@affino/datagrid-vue/app";
|
|
4
4
|
import { r as nt, g as rt, h as lt, i as at, b as it, d as ut, c as st, j as dt, u as ct, D as ft } from "./chunks/useDataGridAppRowModel-JUDjg-Fq.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as Mo, k as Oo } from "./chunks/useDataGridAppRowModel-JUDjg-Fq.js";
|
|
6
6
|
import { s as mt } from "./chunks/DataGridTableStage.vue_vue_type_script_setup_true_lang-Q2ri6J1V.js";
|
|
7
|
-
import { applyGridTheme as yt, resolveGridThemeTokens as vt, defaultStyleConfig as
|
|
7
|
+
import { applyGridTheme as yt, resolveGridThemeTokens as vt, defaultStyleConfig as F, sugarTheme as xe, industrialNeutralTheme as Oe } from "@affino/datagrid-theme";
|
|
8
8
|
import { d as gt } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
|
|
9
9
|
function uo() {
|
|
10
10
|
return (e) => e;
|
|
11
11
|
}
|
|
12
12
|
const wt = {
|
|
13
|
-
default:
|
|
13
|
+
default: F,
|
|
14
14
|
"industrial-neutral": Oe,
|
|
15
15
|
industrialNeutral: Oe,
|
|
16
|
-
sugar:
|
|
16
|
+
sugar: xe
|
|
17
17
|
};
|
|
18
18
|
function pt(e, t) {
|
|
19
19
|
if (!e && !t)
|
|
@@ -46,13 +46,13 @@ function St(e) {
|
|
|
46
46
|
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;
|
|
47
47
|
}
|
|
48
48
|
function ht(e) {
|
|
49
|
-
return e == null ?
|
|
49
|
+
return e == null ? F : typeof e == "string" ? e === "sugar" ? de(F, xe) : wt[e] ?? F : St(e) ? de(F, e) : de(F, {
|
|
50
50
|
tokens: e
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
function bt(e) {
|
|
54
54
|
const t = ht(e);
|
|
55
|
-
return vt(t ??
|
|
55
|
+
return vt(t ?? F, {
|
|
56
56
|
document: typeof document > "u" ? void 0 : document
|
|
57
57
|
});
|
|
58
58
|
}
|
|
@@ -122,7 +122,7 @@ function At(e) {
|
|
|
122
122
|
buttonLabel: fe
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
const Bt = "all",
|
|
125
|
+
const Bt = "all", je = {
|
|
126
126
|
all: "columns",
|
|
127
127
|
rows: "none",
|
|
128
128
|
columns: "columns",
|
|
@@ -132,7 +132,7 @@ function Ge(e) {
|
|
|
132
132
|
return e === "rows" || e === "columns" || e === "none" || e === "all" ? e : Bt;
|
|
133
133
|
}
|
|
134
134
|
function Gt(e, t) {
|
|
135
|
-
return e === "columns" || e === "none" ? e :
|
|
135
|
+
return e === "columns" || e === "none" ? e : je[t];
|
|
136
136
|
}
|
|
137
137
|
function De(e, t) {
|
|
138
138
|
return e !== "none" || t === "columns";
|
|
@@ -150,7 +150,7 @@ function Pe(e) {
|
|
|
150
150
|
}
|
|
151
151
|
function Dt(e) {
|
|
152
152
|
if (typeof e == "string") {
|
|
153
|
-
const o = Ge(e), u =
|
|
153
|
+
const o = Ge(e), u = je[o];
|
|
154
154
|
return Pe({
|
|
155
155
|
body: o,
|
|
156
156
|
header: u,
|
|
@@ -198,11 +198,11 @@ function X(e) {
|
|
|
198
198
|
state: Lt(e.state)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Ft(e) {
|
|
202
202
|
return typeof e == "object" && e !== null;
|
|
203
203
|
}
|
|
204
204
|
function Ke(e, t, r) {
|
|
205
|
-
const o =
|
|
205
|
+
const o = Ft(e) ? e : null, u = t(o && "state" in o ? o.state : e, r);
|
|
206
206
|
if (!u)
|
|
207
207
|
return null;
|
|
208
208
|
const a = o?.viewMode, v = a === "gantt" ? "gantt" : a === "table" ? "table" : void 0;
|
|
@@ -211,10 +211,10 @@ function Ke(e, t, r) {
|
|
|
211
211
|
...v ? { viewMode: v } : {}
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function xt(e) {
|
|
215
215
|
return JSON.stringify(X(e));
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function jt(e, t, r) {
|
|
218
218
|
if (typeof e != "string" || e.trim().length === 0)
|
|
219
219
|
return null;
|
|
220
220
|
try {
|
|
@@ -227,7 +227,7 @@ function so(e, t, r) {
|
|
|
227
227
|
if (!e || typeof t != "string" || t.trim().length === 0)
|
|
228
228
|
return !1;
|
|
229
229
|
try {
|
|
230
|
-
return e.setItem(t,
|
|
230
|
+
return e.setItem(t, xt(r)), !0;
|
|
231
231
|
} catch {
|
|
232
232
|
return !1;
|
|
233
233
|
}
|
|
@@ -237,7 +237,7 @@ function co(e, t, r, o) {
|
|
|
237
237
|
return null;
|
|
238
238
|
try {
|
|
239
239
|
const u = e.getItem(t);
|
|
240
|
-
return u ?
|
|
240
|
+
return u ? jt(u, r, o) : null;
|
|
241
241
|
} catch {
|
|
242
242
|
return null;
|
|
243
243
|
}
|
|
@@ -298,7 +298,7 @@ function Ht(e, t) {
|
|
|
298
298
|
}
|
|
299
299
|
return t === "pagination" && (r.rows = !1), r;
|
|
300
300
|
}
|
|
301
|
-
const zt =
|
|
301
|
+
const zt = Fe({
|
|
302
302
|
name: "DataGridRuntimeHost",
|
|
303
303
|
inheritAttrs: !1,
|
|
304
304
|
props: {
|
|
@@ -577,7 +577,7 @@ function Et(e) {
|
|
|
577
577
|
for (const [i, y] of Object.entries(n.pins))
|
|
578
578
|
d.columns.setPin(i, y);
|
|
579
579
|
return !0;
|
|
580
|
-
},
|
|
580
|
+
}, x = () => {
|
|
581
581
|
if (b) {
|
|
582
582
|
const n = b, d = c();
|
|
583
583
|
if (d) {
|
|
@@ -601,7 +601,7 @@ function Et(e) {
|
|
|
601
601
|
}, V = () => {
|
|
602
602
|
const n = c();
|
|
603
603
|
!n || e.props.aggregationModel === void 0 || n.rows.setAggregationModel(e.props.aggregationModel ?? null);
|
|
604
|
-
},
|
|
604
|
+
}, j = () => {
|
|
605
605
|
const n = c();
|
|
606
606
|
!n || e.props.pivotModel === void 0 || n.pivot.setModel(e.props.pivotModel ?? null);
|
|
607
607
|
}, B = () => {
|
|
@@ -664,7 +664,7 @@ function Et(e) {
|
|
|
664
664
|
g();
|
|
665
665
|
}), r = n.columnModel.subscribe(() => {
|
|
666
666
|
g();
|
|
667
|
-
}), _(), B(), H(), E(), V(),
|
|
667
|
+
}), _(), B(), H(), E(), V(), j(), W(), x(), g(), e.emit.ready({ api: n.api }));
|
|
668
668
|
}, q = () => c()?.state.get() ?? null, te = (n, d) => c()?.state.migrate(n, d) ?? null, K = (n) => z(n) ? (u = C({
|
|
669
669
|
columnState: n,
|
|
670
670
|
columnOrder: null,
|
|
@@ -694,13 +694,13 @@ function Et(e) {
|
|
|
694
694
|
), S(
|
|
695
695
|
() => e.props.columns,
|
|
696
696
|
() => {
|
|
697
|
-
u = null, a = null, _(), B(),
|
|
697
|
+
u = null, a = null, _(), B(), x(), g();
|
|
698
698
|
},
|
|
699
699
|
{ deep: !0 }
|
|
700
700
|
), S(
|
|
701
701
|
() => [e.props.state, e.props.stateOptions],
|
|
702
702
|
() => {
|
|
703
|
-
_(), B(), H(), E(), V(),
|
|
703
|
+
_(), B(), H(), E(), V(), j(), W(), x(), g();
|
|
704
704
|
},
|
|
705
705
|
{ deep: !0 }
|
|
706
706
|
), S(
|
|
@@ -712,7 +712,7 @@ function Et(e) {
|
|
|
712
712
|
e.props.columnPins
|
|
713
713
|
],
|
|
714
714
|
() => {
|
|
715
|
-
B(),
|
|
715
|
+
B(), x(), g();
|
|
716
716
|
},
|
|
717
717
|
{ deep: !0 }
|
|
718
718
|
), S(
|
|
@@ -736,7 +736,7 @@ function Et(e) {
|
|
|
736
736
|
), S(
|
|
737
737
|
() => e.props.pivotModel,
|
|
738
738
|
() => {
|
|
739
|
-
|
|
739
|
+
j(), g();
|
|
740
740
|
},
|
|
741
741
|
{ deep: !0 }
|
|
742
742
|
), S(
|
|
@@ -819,6 +819,9 @@ function vo() {
|
|
|
819
819
|
function go() {
|
|
820
820
|
return (e) => e;
|
|
821
821
|
}
|
|
822
|
+
function wo() {
|
|
823
|
+
return (e) => e;
|
|
824
|
+
}
|
|
822
825
|
function Nt(e, t) {
|
|
823
826
|
if (!t || typeof e != "object" || e === null)
|
|
824
827
|
return;
|
|
@@ -1180,6 +1183,10 @@ const Zt = {
|
|
|
1180
1183
|
type: Function,
|
|
1181
1184
|
default: void 0
|
|
1182
1185
|
},
|
|
1186
|
+
readFilterCellStyle: {
|
|
1187
|
+
type: Function,
|
|
1188
|
+
default: void 0
|
|
1189
|
+
},
|
|
1183
1190
|
cellClass: {
|
|
1184
1191
|
type: Function,
|
|
1185
1192
|
default: void 0
|
|
@@ -1216,7 +1223,7 @@ const Zt = {
|
|
|
1216
1223
|
type: Array,
|
|
1217
1224
|
default: void 0
|
|
1218
1225
|
}
|
|
1219
|
-
}, Ie =
|
|
1226
|
+
}, Ie = Fe({
|
|
1220
1227
|
name: "DataGrid",
|
|
1221
1228
|
inheritAttrs: !1,
|
|
1222
1229
|
props: Zt,
|
|
@@ -1245,16 +1252,20 @@ const Zt = {
|
|
|
1245
1252
|
L.value,
|
|
1246
1253
|
e.pageSize,
|
|
1247
1254
|
e.currentPage
|
|
1248
|
-
)), H = m(() => rt(e.columnMenu)), Z = m(() => lt(e.cellMenu)), ee = m(() => at(e.rowIndexMenu)), z = m(() => Kt(e.columnLayout)), T = m(() => it(e.columnReorder)), U = m(() => It(e.aggregations)),
|
|
1255
|
+
)), H = m(() => rt(e.columnMenu)), Z = m(() => lt(e.cellMenu)), ee = m(() => at(e.rowIndexMenu)), z = m(() => Kt(e.columnLayout)), T = m(() => it(e.columnReorder)), U = m(() => It(e.aggregations)), x = m(() => Ct(e.advancedFilter)), E = m(() => At(e.findReplace)), V = m(() => Dt(e.gridLines)), j = m(() => Rt(e.groupBy)), B = m(() => e.state ?? P.value), _ = m(() => e.sortModel !== void 0 ? e.sortModel : B.value?.rows?.snapshot?.sortModel), W = m(() => e.filterModel !== void 0 ? e.filterModel : B.value?.rows?.snapshot?.filterModel ?? null), N = m(() => e.groupBy !== void 0 ? j.value ?? null : B.value?.rows?.snapshot?.groupBy ?? null), q = m(() => e.pivotModel !== void 0 ? e.pivotModel : B.value?.rows?.snapshot?.pivotModel ?? null), te = m(() => Ht(e.virtualization, L.value)), K = m(() => Pt(e.layoutMode, e.minRows, e.maxRows)), oe = m(() => mt(e.placeholderRows)), ne = m(() => ut(e.rowReorder)), J = m(() => {
|
|
1249
1256
|
const l = e.clientRowModelOptions?.readFilterCell;
|
|
1250
1257
|
return qt(
|
|
1251
1258
|
e.columns,
|
|
1252
1259
|
e.readFilterCell ?? l
|
|
1253
1260
|
);
|
|
1254
|
-
}), re = m(() =>
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1261
|
+
}), re = m(() => {
|
|
1262
|
+
const l = e.readFilterCellStyle ?? e.clientRowModelOptions?.readFilterCellStyle;
|
|
1263
|
+
return !J.value && !l ? e.clientRowModelOptions : {
|
|
1264
|
+
...e.clientRowModelOptions ?? {},
|
|
1265
|
+
readFilterCell: J.value,
|
|
1266
|
+
readFilterCellStyle: l
|
|
1267
|
+
};
|
|
1268
|
+
}), k = m(() => st({
|
|
1258
1269
|
columns: e.columns,
|
|
1259
1270
|
clientRowModelOptions: re.value,
|
|
1260
1271
|
computedFields: e.computedFields,
|
|
@@ -1289,7 +1300,7 @@ const Zt = {
|
|
|
1289
1300
|
return e.filterModel;
|
|
1290
1301
|
},
|
|
1291
1302
|
get groupBy() {
|
|
1292
|
-
return
|
|
1303
|
+
return j.value;
|
|
1293
1304
|
},
|
|
1294
1305
|
get aggregationModel() {
|
|
1295
1306
|
return e.aggregationModel;
|
|
@@ -1501,7 +1512,7 @@ const Zt = {
|
|
|
1501
1512
|
columnLayout: z.value,
|
|
1502
1513
|
columnReorder: T.value,
|
|
1503
1514
|
aggregations: U.value,
|
|
1504
|
-
advancedFilter:
|
|
1515
|
+
advancedFilter: x.value,
|
|
1505
1516
|
findReplace: E.value,
|
|
1506
1517
|
gridLines: V.value,
|
|
1507
1518
|
rowHeightMode: e.rowHeightMode,
|
|
@@ -1573,29 +1584,30 @@ const Zt = {
|
|
|
1573
1584
|
};
|
|
1574
1585
|
}
|
|
1575
1586
|
});
|
|
1576
|
-
function
|
|
1587
|
+
function po() {
|
|
1577
1588
|
return D(null);
|
|
1578
1589
|
}
|
|
1579
|
-
function
|
|
1590
|
+
function So() {
|
|
1580
1591
|
return Ie;
|
|
1581
1592
|
}
|
|
1582
|
-
const
|
|
1593
|
+
const ho = Ie;
|
|
1583
1594
|
export {
|
|
1584
|
-
|
|
1585
|
-
|
|
1595
|
+
ho as DataGrid,
|
|
1596
|
+
Mo as DataGridModuleHost,
|
|
1586
1597
|
fo as clearDataGridSavedViewInStorage,
|
|
1587
1598
|
Ie as default,
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1599
|
+
go as defineDataGridCellClassResolver,
|
|
1600
|
+
wo as defineDataGridCellStyleResolver,
|
|
1601
|
+
Oo as defineDataGridColumns,
|
|
1602
|
+
So as defineDataGridComponent,
|
|
1592
1603
|
yo as defineDataGridFilterCellReader,
|
|
1604
|
+
vo as defineDataGridFilterCellStyleReader,
|
|
1593
1605
|
mo as defineDataGridSelectionCellReader,
|
|
1594
1606
|
uo as defineDataGridStructuralRowActionHandler,
|
|
1595
1607
|
Ke as migrateDataGridSavedView,
|
|
1596
|
-
|
|
1608
|
+
jt as parseDataGridSavedView,
|
|
1597
1609
|
co as readDataGridSavedViewFromStorage,
|
|
1598
|
-
|
|
1599
|
-
|
|
1610
|
+
xt as serializeDataGridSavedView,
|
|
1611
|
+
po as useDataGridRef,
|
|
1600
1612
|
so as writeDataGridSavedViewToStorage
|
|
1601
1613
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@affino/datagrid-vue-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "Declarative Vue DataGrid component for Affino",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@affino/menu-vue": "^2.1.1",
|
|
43
43
|
"@affino/popover-vue": "^1.1.0",
|
|
44
|
-
"@affino/datagrid-theme": "0.2.2",
|
|
45
|
-
"@affino/datagrid-vue": "0.3.22",
|
|
46
44
|
"@affino/datagrid-chrome": "0.1.1",
|
|
45
|
+
"@affino/datagrid-theme": "0.2.2",
|
|
46
|
+
"@affino/datagrid-vue": "0.3.24",
|
|
47
47
|
"@affino/datagrid-gantt": "0.1.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|