canvas-datagrid 0.25.3 → 0.26.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.
package/lib/main.js CHANGED
@@ -8,7 +8,9 @@ import draw from './draw';
8
8
  import events from './events';
9
9
  import touch from './touch';
10
10
  import intf from './intf';
11
+ import selections from './selections/index';
11
12
  import contextMenu from './contextMenu';
13
+ import button from './button';
12
14
  import dom from './dom';
13
15
  import publicMethods from './publicMethods';
14
16
 
@@ -20,7 +22,9 @@ var modules = [
20
22
  events,
21
23
  touch,
22
24
  intf,
25
+ selections,
23
26
  contextMenu,
27
+ button,
24
28
  dom,
25
29
  publicMethods,
26
30
  ];
@@ -35,8 +39,10 @@ function Grid(args) {
35
39
  if (self.isChildGrid) {
36
40
  self.intf = {};
37
41
  } else {
42
+ // Written directly (no eval) so the bundle works under a Content Security
43
+ // Policy without 'unsafe-eval' (#311); ES5-only browsers are not targeted.
38
44
  self.intf = self.isComponent
39
- ? eval('Reflect.construct(HTMLElement, [], new.target)')
45
+ ? Reflect.construct(HTMLElement, [], new.target)
40
46
  : document.createElement('canvas');
41
47
  }
42
48
  self.args = args;
@@ -101,6 +107,7 @@ export default function canvasDatagrid(args) {
101
107
  'filters',
102
108
  'treeGridAttributes',
103
109
  'cellGridAttributes',
110
+ 'fillCellCallback',
104
111
  'data',
105
112
  'schema',
106
113
  ];