slick-table 1.1.20 → 1.1.22
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/index.cjs.js +76 -76
- package/dist/index.es.js +3084 -3081
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/ctrlPressed.d.ts +3 -0
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/ctrlPressed.d.ts.map +1 -0
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysCopy.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysDelete.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysRedo.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/lib/hotKeys/hotKeysUndo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/lib/slickgrid/lib/hotKeys/ctrlPressed.ts +5 -0
- package/src/shared/lib/slickgrid/lib/hotKeys/hotKeysCopy.ts +3 -1
- package/src/shared/lib/slickgrid/lib/hotKeys/hotKeysDelete.ts +1 -0
- package/src/shared/lib/slickgrid/lib/hotKeys/hotKeysRedo.ts +3 -1
- package/src/shared/lib/slickgrid/lib/hotKeys/hotKeysUndo.ts +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ctrlPressed.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/ctrlPressed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAEpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotKeysCopy.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"hotKeysCopy.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysCopy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAEpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotKeysDelete.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysDelete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI/D,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"hotKeysDelete.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysDelete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAI/D,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAGtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotKeysRedo.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysRedo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"hotKeysRedo.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysRedo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAEpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hotKeysUndo.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysUndo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"hotKeysUndo.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/lib/slickgrid/lib/hotKeys/hotKeysUndo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,kBAAkB,CAAC,uBAEpE"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,8 @@ import { OnKeyDownEventArgs, SlickEventData } from "slickgrid";
|
|
|
2
2
|
|
|
3
3
|
import { EKeyCode } from "shared/model/enums";
|
|
4
4
|
|
|
5
|
+
import { ctrlPressed } from "./ctrlPressed";
|
|
6
|
+
|
|
5
7
|
export function hotKeysCopy(event: SlickEventData<OnKeyDownEventArgs>) {
|
|
6
|
-
return event
|
|
8
|
+
return ctrlPressed(event) && event.keyCode === EKeyCode.KeyB;
|
|
7
9
|
}
|
|
@@ -3,5 +3,6 @@ import { OnKeyDownEventArgs, SlickEventData } from "slickgrid";
|
|
|
3
3
|
import { EKeyCode } from "shared/model/enums";
|
|
4
4
|
|
|
5
5
|
export function hotKeysDelete(event: SlickEventData<OnKeyDownEventArgs>) {
|
|
6
|
+
console.log("hotKeysDelete", event);
|
|
6
7
|
return event.shiftKey && event.keyCode === EKeyCode.KeyDel;
|
|
7
8
|
}
|
|
@@ -2,6 +2,8 @@ import { OnKeyDownEventArgs, SlickEventData } from "slickgrid";
|
|
|
2
2
|
|
|
3
3
|
import { EKeyCode } from "shared/model/enums";
|
|
4
4
|
|
|
5
|
+
import { ctrlPressed } from "./ctrlPressed";
|
|
6
|
+
|
|
5
7
|
export function hotKeysRedo(event: SlickEventData<OnKeyDownEventArgs>) {
|
|
6
|
-
return event
|
|
8
|
+
return ctrlPressed(event) && event.keyCode === EKeyCode.KeyY;
|
|
7
9
|
}
|
|
@@ -2,6 +2,8 @@ import { OnKeyDownEventArgs, SlickEventData } from "slickgrid";
|
|
|
2
2
|
|
|
3
3
|
import { EKeyCode } from "shared/model/enums";
|
|
4
4
|
|
|
5
|
+
import { ctrlPressed } from "./ctrlPressed";
|
|
6
|
+
|
|
5
7
|
export function hotKeysUndo(event: SlickEventData<OnKeyDownEventArgs>) {
|
|
6
|
-
return event
|
|
8
|
+
return ctrlPressed(event) && event.keyCode === EKeyCode.KeyZ;
|
|
7
9
|
}
|