jsl-ui 9.1.0 → 9.2.0

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.
@@ -2,6 +2,7 @@ export declare abstract class helper {
2
2
  static emptyGuid: string;
3
3
  static random(): number;
4
4
  static newGuid(): string;
5
+ static newSeqGuid(): string;
5
6
  static newDomGuid(): string;
6
7
  static isObject(obj: any): boolean;
7
8
  static isGuid(id: any): boolean;
@@ -7,6 +7,17 @@ var helper = /** @class */ (function () {
7
7
  helper.newGuid = function () {
8
8
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { var r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); });
9
9
  };
10
+ helper.newSeqGuid = function () {
11
+ var d = new Date().getTime().toString(16);
12
+ while (d.length < 12) {
13
+ d = "0" + d;
14
+ }
15
+ if (d.length > 12) {
16
+ d = d.substring(0, 12);
17
+ }
18
+ return "xxxxxxxx-xxxx-4xxx-yxxx-".replace(/[xy]/g, function (c) { var r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); })
19
+ + d;
20
+ };
10
21
  helper.newDomGuid = function () {
11
22
  return "axxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { var r = helper.random() * 16 | 0, v = c == "x" ? r : r & 0x3 | 0x8; return v.toString(16); });
12
23
  };
@@ -566,7 +566,7 @@ export function DataView(options) {
566
566
  if (g.groups) {
567
567
  addTotals(g.groups, level + 1);
568
568
  }
569
- if (gi.aggregators.length && (gi.aggregateEmpty || g.rows.length || (g.groups && g.groups.length))) {
569
+ if ( /*gi.aggregators.length &&*/(gi.aggregateEmpty || g.rows.length || (g.groups && g.groups.length))) {
570
570
  addGroupTotals(g);
571
571
  }
572
572
  g.collapsed = groupCollapsed ^ toggledGroups[g.groupingKey];
@@ -5136,7 +5136,8 @@ export function SlickGrid(container, data, columns, options) {
5136
5136
  trigger(self.onCellChange, {
5137
5137
  row: this.row,
5138
5138
  cell: this.cell,
5139
- item: item
5139
+ item: item,
5140
+ value: this.serializedValue
5140
5141
  });
5141
5142
  },
5142
5143
  undo: function () {
@@ -5145,7 +5146,8 @@ export function SlickGrid(container, data, columns, options) {
5145
5146
  trigger(self.onCellChange, {
5146
5147
  row: this.row,
5147
5148
  cell: this.cell,
5148
- item: item
5149
+ item: item,
5150
+ value: this.prevSerializedValue
5149
5151
  });
5150
5152
  }
5151
5153
  };