baseui 0.0.0-alpha-47b62ee → 0.0.0-alpha-eb67197
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/data-table/react-virtualized-auto-sizer.js +2 -1
- package/data-table/react-virtualized-auto-sizer.js.flow +8 -5
- package/data-table/react-virtualized-detect-element-resize.js +0 -1
- package/data-table/react-virtualized-detect-element-resize.js.flow +0 -1
- package/es/data-table/react-virtualized-auto-sizer.js +8 -3
- package/es/data-table/react-virtualized-detect-element-resize.js +0 -1
- package/esm/data-table/react-virtualized-auto-sizer.js +8 -3
- package/esm/data-table/react-virtualized-detect-element-resize.js +0 -1
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ var AutoSizer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
80
80
|
// Guard against AutoSizer component being removed from the DOM immediately after being added.
|
|
81
81
|
// This can result in invalid style values which can result in NaN values if we don't handle them.
|
|
82
82
|
// See issue #150 for more context.
|
|
83
|
+
console.log('on resize');
|
|
83
84
|
console.log(_this._parentNode.offsetWidth, _this._parentNode.offsetHeight);
|
|
84
85
|
var height = _this._parentNode.offsetHeight || 0;
|
|
85
86
|
var width = _this._parentNode.offsetWidth || 0;
|
|
@@ -183,7 +184,7 @@ var AutoSizer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
183
184
|
className: className,
|
|
184
185
|
ref: this._setRef,
|
|
185
186
|
style: _objectSpread(_objectSpread({}, outerStyle), style)
|
|
186
|
-
}, children(childParams));
|
|
187
|
+
}, !bailoutOnChildren && children(childParams));
|
|
187
188
|
}
|
|
188
189
|
}]);
|
|
189
190
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* React Virtualized AutoSizer
|
|
3
|
+
* https://github.com/bvaughn/react-virtualized-auto-sizer
|
|
4
|
+
* Brian Vaughn
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
4
7
|
|
|
5
8
|
import * as React from 'react';
|
|
6
9
|
import createDetectElementResize from './react-virtualized-detect-element-resize.js';
|
|
@@ -149,8 +152,7 @@ export default class AutoSizer extends React.PureComponent<Props, State> {
|
|
|
149
152
|
...style,
|
|
150
153
|
}}
|
|
151
154
|
>
|
|
152
|
-
{children(childParams)}
|
|
153
|
-
{/* {!bailoutOnChildren && children(childParams)} */}
|
|
155
|
+
{!bailoutOnChildren && children(childParams)}
|
|
154
156
|
</div>
|
|
155
157
|
);
|
|
156
158
|
}
|
|
@@ -163,6 +165,7 @@ export default class AutoSizer extends React.PureComponent<Props, State> {
|
|
|
163
165
|
// This can result in invalid style values which can result in NaN values if we don't handle them.
|
|
164
166
|
// See issue #150 for more context.
|
|
165
167
|
|
|
168
|
+
console.log('on resize');
|
|
166
169
|
console.log(this._parentNode.offsetWidth, this._parentNode.offsetHeight);
|
|
167
170
|
|
|
168
171
|
const height = this._parentNode.offsetHeight || 0;
|
|
@@ -20,7 +20,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
20
20
|
/**
|
|
21
21
|
* Detect Element Resize.
|
|
22
22
|
* https://github.com/sdecima/javascript-detect-element-resize
|
|
23
|
-
* https://github.com/sdecima/javascript-detect-element-resize/blob/9053c835839e347615006366fbd1f593a0acb581/LICENSE
|
|
24
23
|
* Sebastian Decima
|
|
25
24
|
*
|
|
26
25
|
* Forked from version 0.5.3; includes the following modifications:
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Detect Element Resize.
|
|
3
3
|
* https://github.com/sdecima/javascript-detect-element-resize
|
|
4
|
-
* https://github.com/sdecima/javascript-detect-element-resize/blob/9053c835839e347615006366fbd1f593a0acb581/LICENSE
|
|
5
4
|
* Sebastian Decima
|
|
6
5
|
*
|
|
7
6
|
* Forked from version 0.5.3; includes the following modifications:
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* React Virtualized AutoSizer
|
|
5
|
+
* https://github.com/bvaughn/react-virtualized-auto-sizer
|
|
6
|
+
* Brian Vaughn
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
5
9
|
import * as React from 'react';
|
|
6
10
|
import createDetectElementResize from './react-virtualized-detect-element-resize.js';
|
|
7
11
|
export default class AutoSizer extends React.PureComponent {
|
|
@@ -30,6 +34,7 @@ export default class AutoSizer extends React.PureComponent {
|
|
|
30
34
|
// Guard against AutoSizer component being removed from the DOM immediately after being added.
|
|
31
35
|
// This can result in invalid style values which can result in NaN values if we don't handle them.
|
|
32
36
|
// See issue #150 for more context.
|
|
37
|
+
console.log('on resize');
|
|
33
38
|
console.log(this._parentNode.offsetWidth, this._parentNode.offsetHeight);
|
|
34
39
|
const height = this._parentNode.offsetHeight || 0;
|
|
35
40
|
const width = this._parentNode.offsetWidth || 0;
|
|
@@ -132,7 +137,7 @@ export default class AutoSizer extends React.PureComponent {
|
|
|
132
137
|
style: { ...outerStyle,
|
|
133
138
|
...style
|
|
134
139
|
}
|
|
135
|
-
}, children(childParams));
|
|
140
|
+
}, !bailoutOnChildren && children(childParams));
|
|
136
141
|
}
|
|
137
142
|
|
|
138
143
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Detect Element Resize.
|
|
3
3
|
* https://github.com/sdecima/javascript-detect-element-resize
|
|
4
|
-
* https://github.com/sdecima/javascript-detect-element-resize/blob/9053c835839e347615006366fbd1f593a0acb581/LICENSE
|
|
5
4
|
* Sebastian Decima
|
|
6
5
|
*
|
|
7
6
|
* Forked from version 0.5.3; includes the following modifications:
|
|
@@ -26,8 +26,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
26
26
|
|
|
27
27
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* React Virtualized AutoSizer
|
|
31
|
+
* https://github.com/bvaughn/react-virtualized-auto-sizer
|
|
32
|
+
* Brian Vaughn
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
31
35
|
import * as React from 'react';
|
|
32
36
|
import createDetectElementResize from './react-virtualized-detect-element-resize.js';
|
|
33
37
|
|
|
@@ -68,6 +72,7 @@ var AutoSizer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68
72
|
// Guard against AutoSizer component being removed from the DOM immediately after being added.
|
|
69
73
|
// This can result in invalid style values which can result in NaN values if we don't handle them.
|
|
70
74
|
// See issue #150 for more context.
|
|
75
|
+
console.log('on resize');
|
|
71
76
|
console.log(_this._parentNode.offsetWidth, _this._parentNode.offsetHeight);
|
|
72
77
|
var height = _this._parentNode.offsetHeight || 0;
|
|
73
78
|
var width = _this._parentNode.offsetWidth || 0;
|
|
@@ -171,7 +176,7 @@ var AutoSizer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
171
176
|
className: className,
|
|
172
177
|
ref: this._setRef,
|
|
173
178
|
style: _objectSpread(_objectSpread({}, outerStyle), style)
|
|
174
|
-
}, children(childParams));
|
|
179
|
+
}, !bailoutOnChildren && children(childParams));
|
|
175
180
|
}
|
|
176
181
|
}]);
|
|
177
182
|
|
|
@@ -13,7 +13,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
/**
|
|
14
14
|
* Detect Element Resize.
|
|
15
15
|
* https://github.com/sdecima/javascript-detect-element-resize
|
|
16
|
-
* https://github.com/sdecima/javascript-detect-element-resize/blob/9053c835839e347615006366fbd1f593a0acb581/LICENSE
|
|
17
16
|
* Sebastian Decima
|
|
18
17
|
*
|
|
19
18
|
* Forked from version 0.5.3; includes the following modifications:
|