@azrico/reactgrid 1.2.33 → 1.2.34
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/.vscode/launch.json +15 -0
- package/config/config-overrides.js +12 -36
- package/config/tsconfig.base.json +0 -4
- package/dist/src/themes/grid.css +3 -0
- package/package.json +1 -1
- package/src/index.tsx +5 -5
- package/src/themes/grid.css +3 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"type": "chrome",
|
|
9
|
+
"request": "launch",
|
|
10
|
+
"name": "Launch Chrome against localhost",
|
|
11
|
+
"url": "http://localhost:3000",
|
|
12
|
+
"webRoot": "${workspaceFolder}"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const path = require(
|
|
1
|
+
const path = require('path');
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
const fs = require(
|
|
3
|
+
const fs = require('fs');
|
|
4
4
|
const {
|
|
5
5
|
override,
|
|
6
6
|
babelInclude,
|
|
@@ -8,34 +8,10 @@ const {
|
|
|
8
8
|
useBabelRc,
|
|
9
9
|
addWebpackModuleRule,
|
|
10
10
|
// addDecoratorsLegacy,
|
|
11
|
-
} = require(
|
|
11
|
+
} = require('customize-cra');
|
|
12
12
|
// const rewireReactHotLoader = require("react-app-rewire-hot-loader");
|
|
13
13
|
|
|
14
14
|
module.exports = (config, env) => {
|
|
15
|
-
/* -------------------------------------------------------------------------- */
|
|
16
|
-
let rootdir = path.resolve("..");
|
|
17
|
-
if (!path.dirname(rootdir).startsWith("amadeus")) {
|
|
18
|
-
rootdir = path.resolve("../..");
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const folders = ["packages", "packages_extra"];
|
|
22
|
-
const result_paths = [];
|
|
23
|
-
|
|
24
|
-
for (let index = 0; index < folders.length; index++) {
|
|
25
|
-
const current_folder = folders[index];
|
|
26
|
-
|
|
27
|
-
const packageFolders = fs.readdirSync(
|
|
28
|
-
path.resolve(`${rootdir}/${current_folder}`),
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
const packageFiles = packageFolders.map((fld) =>
|
|
32
|
-
fs.realpathSync(
|
|
33
|
-
path.resolve(`${rootdir}/${current_folder}/${fld}/src`),
|
|
34
|
-
),
|
|
35
|
-
);
|
|
36
|
-
result_paths.push(...packageFiles);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
15
|
config = Object.assign(
|
|
40
16
|
// rewireReactHotLoader(config),
|
|
41
17
|
override(
|
|
@@ -45,23 +21,23 @@ module.exports = (config, env) => {
|
|
|
45
21
|
|
|
46
22
|
addWebpackModuleRule({
|
|
47
23
|
test: /\.html$/i,
|
|
48
|
-
loader:
|
|
24
|
+
loader: 'html-loader',
|
|
49
25
|
}),
|
|
50
26
|
addWebpackModuleRule({
|
|
51
27
|
test: /\.css$/i,
|
|
52
|
-
loader:
|
|
28
|
+
loader: 'raw-loader',
|
|
53
29
|
}),
|
|
54
30
|
addWebpackAlias({
|
|
55
|
-
stream:
|
|
56
|
-
path:
|
|
57
|
-
|
|
58
|
-
cldr:
|
|
59
|
-
cldr$:
|
|
31
|
+
stream: 'stream-browserify',
|
|
32
|
+
path: 'path-browserify',
|
|
33
|
+
'react-native': 'react-native-web',
|
|
34
|
+
cldr: 'cldrjs/dist/cldr',
|
|
35
|
+
cldr$: 'cldrjs',
|
|
60
36
|
}),
|
|
61
37
|
useBabelRc(),
|
|
62
|
-
babelInclude([path.resolve(
|
|
38
|
+
babelInclude([path.resolve('src')])
|
|
63
39
|
// addDecoratorsLegacy(),
|
|
64
|
-
)(config, env)
|
|
40
|
+
)(config, env)
|
|
65
41
|
);
|
|
66
42
|
|
|
67
43
|
return config;
|
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
//"globalize/*": ["node_modules/globalize/dist/globalize/*"],
|
|
22
22
|
//"cldr": ["node_modules/cldrjs/dist/cldr"],
|
|
23
23
|
//"cldr/*": ["node_modules/cldrjs/dist/cldr/*"],
|
|
24
|
-
|
|
25
|
-
"@amadeusproject/*": ["packages/*"],
|
|
26
|
-
"@amadeusproject_extra/*": ["packages_extra/*"],
|
|
27
|
-
"@amadeusproject_main/*": ["packages_main/*"]
|
|
28
24
|
}
|
|
29
25
|
},
|
|
30
26
|
"exclude": ["**/node_modules", "**/dist"]
|
package/dist/src/themes/grid.css
CHANGED
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -10,8 +10,8 @@ import ReactDOM from 'react-dom/client';
|
|
|
10
10
|
//
|
|
11
11
|
export default AzGrid;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const testroot = document.getElementById('testroot');
|
|
14
|
+
if (testroot) {
|
|
15
|
+
const root = ReactDOM.createRoot(document.getElementById('testroot') as HTMLElement);
|
|
16
|
+
root.render(<ExampleGrid />);
|
|
17
|
+
}
|