@svgrid/grid-wc 3.0.42 → 3.0.44
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/shadow/sv-grid-shadow-element.js +13 -13
- package/dist/sv-grid-element.js +13 -13
- package/package.json +3 -3
|
@@ -323,32 +323,32 @@ function At() {
|
|
|
323
323
|
}));
|
|
324
324
|
let l = n[a];
|
|
325
325
|
if (!l) return t;
|
|
326
|
-
let u = /* @__PURE__ */ new Map();
|
|
326
|
+
let u = /* @__PURE__ */ new Map(), d = r.find((e) => e.id === l)?.columnDef, f = d?.groupValue ?? ((e) => e);
|
|
327
327
|
for (let e of t) {
|
|
328
|
-
let t = e.getCellValueByColumnId(l), n = String(t ?? ""), r = u.get(n);
|
|
328
|
+
let t = f(e.getCellValueByColumnId(l)), n = String(t ?? ""), r = u.get(n);
|
|
329
329
|
r ? (r.rows.push(e), !r.mixed && r.raw !== t && (r.mixed = !0)) : u.set(n, {
|
|
330
330
|
rows: [e],
|
|
331
331
|
raw: t,
|
|
332
332
|
mixed: !1
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
let
|
|
336
|
-
return
|
|
337
|
-
let
|
|
335
|
+
let p = [], m = 0, h = [...u], g = d?.groupOrder;
|
|
336
|
+
return g && !e.getState().sorting?.some((e) => e.id === l) && h.sort((e, t) => g(e[1].raw, t[1].raw)), h.forEach(([t, u]) => {
|
|
337
|
+
let d = u.rows, f = `${s}_${l}_${t}`, h = i(d, a + 1, o + 1, f, u.mixed ? c : {
|
|
338
338
|
i: l,
|
|
339
|
-
v:
|
|
339
|
+
v: u.raw,
|
|
340
340
|
p: c
|
|
341
341
|
}), g = {
|
|
342
342
|
t: e,
|
|
343
343
|
c: r,
|
|
344
|
-
r:
|
|
344
|
+
r: d,
|
|
345
345
|
g: l,
|
|
346
|
-
k:
|
|
346
|
+
k: t,
|
|
347
347
|
f: c,
|
|
348
348
|
v: void 0
|
|
349
349
|
}, _ = {
|
|
350
|
-
id:
|
|
351
|
-
index:
|
|
350
|
+
id: f,
|
|
351
|
+
index: m++,
|
|
352
352
|
depth: o,
|
|
353
353
|
subRows: h,
|
|
354
354
|
leafCount: a + 1 >= n.length ? h.length : h.reduce((e, t) => e + (t.leafCount ?? 0), 0),
|
|
@@ -358,8 +358,8 @@ function At() {
|
|
|
358
358
|
Object.defineProperty(_, "original", {
|
|
359
359
|
get: Ot,
|
|
360
360
|
enumerable: !0
|
|
361
|
-
}),
|
|
362
|
-
}),
|
|
361
|
+
}), p.push(_);
|
|
362
|
+
}), p;
|
|
363
363
|
}
|
|
364
364
|
return i(t, 0, 0, "group", null);
|
|
365
365
|
};
|
|
@@ -2576,7 +2576,7 @@ function ir(e, t) {
|
|
|
2576
2576
|
function ar(e) {
|
|
2577
2577
|
function t(t, n) {
|
|
2578
2578
|
let r = t.columnDef.editable;
|
|
2579
|
-
if (r === !1) return !1;
|
|
2579
|
+
if (r === !1 || (e.props.editable ?? e.props.enableInlineEditing) === !1) return !1;
|
|
2580
2580
|
if (n) {
|
|
2581
2581
|
let t = e.props.serverGroup;
|
|
2582
2582
|
if (t && n.original !== void 0 && t.isGroup(n.original) || e.placeholderStateOf?.(n)) return !1;
|
package/dist/sv-grid-element.js
CHANGED
|
@@ -323,32 +323,32 @@ function At() {
|
|
|
323
323
|
}));
|
|
324
324
|
let l = n[a];
|
|
325
325
|
if (!l) return t;
|
|
326
|
-
let u = /* @__PURE__ */ new Map();
|
|
326
|
+
let u = /* @__PURE__ */ new Map(), d = r.find((e) => e.id === l)?.columnDef, f = d?.groupValue ?? ((e) => e);
|
|
327
327
|
for (let e of t) {
|
|
328
|
-
let t = e.getCellValueByColumnId(l), n = String(t ?? ""), r = u.get(n);
|
|
328
|
+
let t = f(e.getCellValueByColumnId(l)), n = String(t ?? ""), r = u.get(n);
|
|
329
329
|
r ? (r.rows.push(e), !r.mixed && r.raw !== t && (r.mixed = !0)) : u.set(n, {
|
|
330
330
|
rows: [e],
|
|
331
331
|
raw: t,
|
|
332
332
|
mixed: !1
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
let
|
|
336
|
-
return
|
|
337
|
-
let
|
|
335
|
+
let p = [], m = 0, h = [...u], g = d?.groupOrder;
|
|
336
|
+
return g && !e.getState().sorting?.some((e) => e.id === l) && h.sort((e, t) => g(e[1].raw, t[1].raw)), h.forEach(([t, u]) => {
|
|
337
|
+
let d = u.rows, f = `${s}_${l}_${t}`, h = i(d, a + 1, o + 1, f, u.mixed ? c : {
|
|
338
338
|
i: l,
|
|
339
|
-
v:
|
|
339
|
+
v: u.raw,
|
|
340
340
|
p: c
|
|
341
341
|
}), g = {
|
|
342
342
|
t: e,
|
|
343
343
|
c: r,
|
|
344
|
-
r:
|
|
344
|
+
r: d,
|
|
345
345
|
g: l,
|
|
346
|
-
k:
|
|
346
|
+
k: t,
|
|
347
347
|
f: c,
|
|
348
348
|
v: void 0
|
|
349
349
|
}, _ = {
|
|
350
|
-
id:
|
|
351
|
-
index:
|
|
350
|
+
id: f,
|
|
351
|
+
index: m++,
|
|
352
352
|
depth: o,
|
|
353
353
|
subRows: h,
|
|
354
354
|
leafCount: a + 1 >= n.length ? h.length : h.reduce((e, t) => e + (t.leafCount ?? 0), 0),
|
|
@@ -358,8 +358,8 @@ function At() {
|
|
|
358
358
|
Object.defineProperty(_, "original", {
|
|
359
359
|
get: Ot,
|
|
360
360
|
enumerable: !0
|
|
361
|
-
}),
|
|
362
|
-
}),
|
|
361
|
+
}), p.push(_);
|
|
362
|
+
}), p;
|
|
363
363
|
}
|
|
364
364
|
return i(t, 0, 0, "group", null);
|
|
365
365
|
};
|
|
@@ -2576,7 +2576,7 @@ function ir(e, t) {
|
|
|
2576
2576
|
function ar(e) {
|
|
2577
2577
|
function t(t, n) {
|
|
2578
2578
|
let r = t.columnDef.editable;
|
|
2579
|
-
if (r === !1) return !1;
|
|
2579
|
+
if (r === !1 || (e.props.editable ?? e.props.enableInlineEditing) === !1) return !1;
|
|
2580
2580
|
if (n) {
|
|
2581
2581
|
let t = e.props.serverGroup;
|
|
2582
2582
|
if (t && n.original !== void 0 && t.isGroup(n.original) || e.placeholderStateOf?.(n)) return !1;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "commercial",
|
|
5
5
|
"url": "https://svgrid.com/pricing"
|
|
6
6
|
},
|
|
7
|
-
"version": "3.0.
|
|
7
|
+
"version": "3.0.44",
|
|
8
8
|
"description": "SvGrid as a framework-agnostic web component (<sv-grid> custom element, plus <sv-grid-shadow> for an open shadow root and <sv-chart> for the standalone chart). Drop into React, Vue, Angular, or plain HTML - no build step required.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"license": "MIT",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"vite": "^8.2.1",
|
|
113
113
|
"vue": "^3.5.42",
|
|
114
114
|
"vue-tsc": "^3.3.11",
|
|
115
|
-
"@svgrid/enterprise": "^3.1.
|
|
116
|
-
"@svgrid/grid": "^3.0.
|
|
115
|
+
"@svgrid/enterprise": "^3.1.36",
|
|
116
|
+
"@svgrid/grid": "^3.0.32"
|
|
117
117
|
},
|
|
118
118
|
"types": "./dist/sv-grid-element.d.ts",
|
|
119
119
|
"peerDependencies": {
|