@svgrid/grid-wc 3.0.12 → 3.0.13

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.
@@ -5968,7 +5968,11 @@ function hi(t, n) {
5968
5968
  let ye = e(S({
5969
5969
  left: [...s.initialColumnPinning?.left ?? []],
5970
5970
  right: [...s.initialColumnPinning?.right ?? []]
5971
- })), be = e(0), Se = e(0), Ce = e(0), we = F(() => s.rowNumberWidth ?? 56), Te = F(() => s.showDetailToggle === !0);
5971
+ })), be = e(0), Se = e(0), Ce = e(0), we = F(function() {
5972
+ if (s.rowNumberWidth != null) return s.rowNumberWidth;
5973
+ let e = Math.max(s.data?.length ?? 0, s.rowCount ?? 0);
5974
+ return Math.max(56, 18 + 9 * String(e).length);
5975
+ }), Te = F(() => s.showDetailToggle === !0);
5972
5976
  function Ee(e, t) {
5973
5977
  let n = e.original;
5974
5978
  if (s.isDetailRow?.(n, t)) return null;
@@ -5968,7 +5968,11 @@ function hi(t, n) {
5968
5968
  let ye = e(S({
5969
5969
  left: [...s.initialColumnPinning?.left ?? []],
5970
5970
  right: [...s.initialColumnPinning?.right ?? []]
5971
- })), be = e(0), Se = e(0), Ce = e(0), we = F(() => s.rowNumberWidth ?? 56), Te = F(() => s.showDetailToggle === !0);
5971
+ })), be = e(0), Se = e(0), Ce = e(0), we = F(function() {
5972
+ if (s.rowNumberWidth != null) return s.rowNumberWidth;
5973
+ let e = Math.max(s.data?.length ?? 0, s.rowCount ?? 0);
5974
+ return Math.max(56, 18 + 9 * String(e).length);
5975
+ }), Te = F(() => s.showDetailToggle === !0);
5972
5976
  function Ee(e, t) {
5973
5977
  let n = e.original;
5974
5978
  if (s.isDetailRow?.(n, t)) return null;
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.12",
7
+ "version": "3.0.13",
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.7",
116
- "@svgrid/grid": "^3.0.10"
115
+ "@svgrid/enterprise": "^3.1.8",
116
+ "@svgrid/grid": "^3.0.11"
117
117
  },
118
118
  "types": "./dist/sv-grid-element.d.ts",
119
119
  "peerDependencies": {