@svgrid/grid-wc 3.0.34 → 3.0.35

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.
@@ -5024,17 +5024,33 @@ function Ar(e) {
5024
5024
  }
5025
5025
  function D(t, n) {
5026
5026
  let r = e.allRows[t], i = e.allColumns[n];
5027
- if (!r || !i || !i.columnDef.field) return;
5028
- let a = Un(r, i), o = !e.getCellDisplayValue(r.id, i.id, a);
5029
- r.original[i.columnDef.field] = o, Ie()?.cellEdited?.(e, {
5030
- row: r.original,
5031
- columnId: i.id
5027
+ if (!r || !i) return;
5028
+ let a = i.columnDef.field;
5029
+ if (!a) return;
5030
+ let o = r.original, s = o[a], c = Un(r, i), l = !e.getCellDisplayValue(r.id, i.id, c);
5031
+ An(e, () => {
5032
+ o[a] = l;
5033
+ let t = H(r.id, i.id);
5034
+ e.editedCellValues = {
5035
+ ...e.editedCellValues,
5036
+ [t]: l
5037
+ }, e.grid.store.setState((e) => ({ ...e })), Ie()?.cellEdited?.(e, {
5038
+ row: o,
5039
+ columnId: i.id
5040
+ }), s !== l && (Dn(e, [{
5041
+ rowId: r.id,
5042
+ columnId: i.id,
5043
+ field: a,
5044
+ before: s,
5045
+ after: l
5046
+ }]), e.props.onCellValueChange?.({
5047
+ rowIndex: e.internalData.indexOf(o),
5048
+ columnId: i.id,
5049
+ oldValue: s,
5050
+ newValue: l,
5051
+ row: o
5052
+ }));
5032
5053
  });
5033
- let s = H(r.id, i.id);
5034
- e.editedCellValues = {
5035
- ...e.editedCellValues,
5036
- [s]: o
5037
- }, e.grid.store.setState((e) => ({ ...e }));
5038
5054
  }
5039
5055
  function O(e) {
5040
5056
  if (navigator.clipboard?.writeText) {
@@ -5024,17 +5024,33 @@ function Ar(e) {
5024
5024
  }
5025
5025
  function D(t, n) {
5026
5026
  let r = e.allRows[t], i = e.allColumns[n];
5027
- if (!r || !i || !i.columnDef.field) return;
5028
- let a = Un(r, i), o = !e.getCellDisplayValue(r.id, i.id, a);
5029
- r.original[i.columnDef.field] = o, Ie()?.cellEdited?.(e, {
5030
- row: r.original,
5031
- columnId: i.id
5027
+ if (!r || !i) return;
5028
+ let a = i.columnDef.field;
5029
+ if (!a) return;
5030
+ let o = r.original, s = o[a], c = Un(r, i), l = !e.getCellDisplayValue(r.id, i.id, c);
5031
+ An(e, () => {
5032
+ o[a] = l;
5033
+ let t = H(r.id, i.id);
5034
+ e.editedCellValues = {
5035
+ ...e.editedCellValues,
5036
+ [t]: l
5037
+ }, e.grid.store.setState((e) => ({ ...e })), Ie()?.cellEdited?.(e, {
5038
+ row: o,
5039
+ columnId: i.id
5040
+ }), s !== l && (Dn(e, [{
5041
+ rowId: r.id,
5042
+ columnId: i.id,
5043
+ field: a,
5044
+ before: s,
5045
+ after: l
5046
+ }]), e.props.onCellValueChange?.({
5047
+ rowIndex: e.internalData.indexOf(o),
5048
+ columnId: i.id,
5049
+ oldValue: s,
5050
+ newValue: l,
5051
+ row: o
5052
+ }));
5032
5053
  });
5033
- let s = H(r.id, i.id);
5034
- e.editedCellValues = {
5035
- ...e.editedCellValues,
5036
- [s]: o
5037
- }, e.grid.store.setState((e) => ({ ...e }));
5038
5054
  }
5039
5055
  function O(e) {
5040
5056
  if (navigator.clipboard?.writeText) {
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.34",
7
+ "version": "3.0.35",
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",
@@ -113,7 +113,7 @@
113
113
  "vue": "^3.5.42",
114
114
  "vue-tsc": "^3.3.11",
115
115
  "@svgrid/enterprise": "^3.1.27",
116
- "@svgrid/grid": "^3.0.23"
116
+ "@svgrid/grid": "^3.0.24"
117
117
  },
118
118
  "types": "./dist/sv-grid-element.d.ts",
119
119
  "peerDependencies": {