@poirazis/supercomponents-shared 1.0.19 → 1.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poirazis/supercomponents-shared",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Shared Svelte components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -970,7 +970,9 @@
970
970
  canInsert,
971
971
  $stbSortColumn,
972
972
  fetchOnScroll,
973
- rowHeight
973
+ rowHeight,
974
+ $stbSortColumn,
975
+ $stbSortOrder
974
976
  );
975
977
 
976
978
  // Scroll to Top when filter changes
@@ -28,16 +28,17 @@
28
28
  goTo(state: string) {
29
29
  return state;
30
30
  },
31
- reset() {
32
- localValue = value;
33
- lastEdit = undefined;
34
- return "View";
35
- },
36
31
  },
37
32
  View: {
38
33
  _enter() {
39
34
  localValue = value;
40
35
  },
36
+ reset() {
37
+ originalValue = value;
38
+ localValue = value;
39
+ lastEdit = undefined;
40
+ return "View";
41
+ },
41
42
  focus() {
42
43
  if (!cellOptions.readonly && !cellOptions.disabled) return "Editing";
43
44
  },
@@ -73,9 +74,14 @@
73
74
  return "View";
74
75
  },
75
76
  debounce(e: KeyboardEvent) {
76
- if ((e.key.length === 1 && e.key !== "." && isNaN(Number(e.key)) && !e.ctrlKey) ||
77
- e.keyCode == 32 ||
78
- (e.key === "." && e.target.value.toString().indexOf(".") > -1)) {
77
+ if (
78
+ (e.key.length === 1 &&
79
+ e.key !== "." &&
80
+ isNaN(Number(e.key)) &&
81
+ !e.ctrlKey) ||
82
+ e.keyCode == 32 ||
83
+ (e.key === "." && e.target.value.toString().indexOf(".") > -1)
84
+ ) {
79
85
  e.preventDefault();
80
86
  return;
81
87
  }