File tree 4 files changed +19
-72
lines changed
packages/charts/src/internal 4 files changed +19
-72
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import { Loader } from './Loader' ;
2
- import React from 'react' ;
1
+ import { Loader } from '@ui5/webcomponents-react/lib/Loader' ;
2
+ import React , { CSSProperties } from 'react' ;
3
+
4
+ const loaderStyles : CSSProperties = {
5
+ position : 'absolute'
6
+ } ;
3
7
4
8
export const getLoadingState = ( loading , datasets , Placeholder ) => {
5
9
if ( ! loading ) {
6
10
return null ;
7
11
}
8
12
9
13
if ( loading && datasets . length > 0 ) {
10
- return < Loader /> ;
14
+ return < Loader style = { loaderStyles } /> ;
11
15
}
12
16
13
17
if ( loading && datasets . length === 0 ) {
Original file line number Diff line number Diff line change 4
4
"filename" : " charts.development.js" ,
5
5
"bundleType" : " NODE_DEV" ,
6
6
"packageName" : " charts" ,
7
- "size" : 18056 ,
8
- "gzip" : 5173
7
+ "size" : 18083 ,
8
+ "gzip" : 5180
9
9
},
10
10
{
11
11
"filename" : " charts.production.min.js" ,
12
12
"bundleType" : " NODE_PROD" ,
13
13
"packageName" : " charts" ,
14
- "size" : 18056 ,
15
- "gzip" : 5173
14
+ "size" : 18083 ,
15
+ "gzip" : 5180
16
16
},
17
17
{
18
18
"filename" : " base.development.js" ,
32
32
"filename" : " main.development.js" ,
33
33
"bundleType" : " NODE_DEV" ,
34
34
"packageName" : " main" ,
35
- "size" : 113686 ,
36
- "gzip" : 29814
35
+ "size" : 115370 ,
36
+ "gzip" : 30233
37
37
},
38
38
{
39
39
"filename" : " main.production.min.js" ,
40
40
"bundleType" : " NODE_PROD" ,
41
41
"packageName" : " main" ,
42
- "size" : 113686 ,
43
- "gzip" : 29814
42
+ "size" : 115370 ,
43
+ "gzip" : 30233
44
44
},
45
45
{
46
46
"filename" : " main.js" ,
47
47
"bundleType" : " NODE_ES" ,
48
48
"packageName" : " main" ,
49
- "size" : 211218 ,
50
- "gzip" : 41316
49
+ "size" : 213865 ,
50
+ "gzip" : 41812
51
51
},
52
52
{
53
53
"filename" : " base.js" ,
60
60
"filename" : " charts.js" ,
61
61
"bundleType" : " NODE_ES" ,
62
62
"packageName" : " charts" ,
63
- "size" : 36160 ,
64
- "gzip" : 6804
63
+ "size" : 36195 ,
64
+ "gzip" : 6811
65
65
}
66
66
]
67
67
}
You can’t perform that action at this time.
0 commit comments