@@ -7,29 +7,38 @@ import * as ReactDOM from 'react-dom';
7
7
import { MaxStringCompare } from '../../client/datascience/data-viewing/types' ;
8
8
import { KeyCodes } from '../react-common/constants' ;
9
9
import { measureText } from '../react-common/textMeasure' ;
10
+ import './globalJQueryImports' ;
10
11
import { ReactSlickGridFilterBox } from './reactSlickGridFilterBox' ;
11
12
12
- // Slickgrid requires jquery to be defined. Globally. So we do some hacks here.
13
- // We need to manipulate the grid with the same jquery that it uses
14
- // use slickgridJQ instead of the usual $ to make it clear that we need that JQ and not
15
- // the one currently in node-modules
16
- // tslint:disable-next-line: no-var-requires no-require-imports
17
- require ( 'expose-loader?jQuery!slickgrid/lib/jquery-1.11.2.min' ) ;
13
+ /*
14
+ WARNING: Do not change the order of these imports.
15
+ Slick grid MUST be imported after we load jQuery and other stuff from `./globalJQueryImports`
16
+ */
18
17
// tslint:disable-next-line: no-var-requires no-require-imports
19
18
const slickgridJQ = require ( 'slickgrid/lib/jquery-1.11.2.min' ) ;
20
- // tslint:disable-next-line: no-var-requires no-require-imports
21
- require ( 'expose-loader?jQuery.fn.drag!slickgrid/lib/jquery.event.drag-2.3.0' ) ;
22
19
20
+ // Adding comments to ensure order of imports does not change due to auto formatters.
21
+ // tslint:disable-next-line: ordered-imports
23
22
import 'slickgrid/slick.core' ;
23
+ // Adding comments to ensure order of imports does not change due to auto formatters.
24
+ // tslint:disable-next-line: ordered-imports
24
25
import 'slickgrid/slick.dataview' ;
26
+ // Adding comments to ensure order of imports does not change due to auto formatters.
27
+ // tslint:disable-next-line: ordered-imports
25
28
import 'slickgrid/slick.grid' ;
26
-
29
+ // Adding comments to ensure order of imports does not change due to auto formatters.
30
+ // tslint:disable-next-line: ordered-imports
27
31
import 'slickgrid/plugins/slick.autotooltips' ;
28
-
32
+ // Adding comments to ensure order of imports does not change due to auto formatters.
33
+ // tslint:disable-next-line: ordered-imports
29
34
import 'slickgrid/slick.grid.css' ;
30
-
31
35
// Make sure our css comes after the slick grid css. We override some of its styles.
36
+ // tslint:disable-next-line: ordered-imports
32
37
import './reactSlickGrid.css' ;
38
+ /*
39
+ WARNING: Do not change the order of these imports.
40
+ Slick grid MUST be imported after we load jQuery and other stuff from `./globalJQueryImports`
41
+ */
33
42
34
43
const MinColumnWidth = 70 ;
35
44
const MaxColumnWidth = 500 ;
0 commit comments