funda-ui 4.5.55 → 4.5.512
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.
|
@@ -5447,12 +5447,23 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5447
5447
|
function outerWrapperInit() {
|
|
5448
5448
|
var _rootRef$current$pare;
|
|
5449
5449
|
if (rootRef.current === null) return;
|
|
5450
|
+
var hasInlineHeightOrMaxHeight = function hasInlineHeightOrMaxHeight(element) {
|
|
5451
|
+
if (!element) return false;
|
|
5452
|
+
return element.style.height !== '' || element.style.maxHeight !== '';
|
|
5453
|
+
};
|
|
5450
5454
|
|
|
5451
|
-
// calculate wrapper width
|
|
5455
|
+
// calculate wrapper width & height
|
|
5452
5456
|
var wrapperWidth = ((_rootRef$current$pare = rootRef.current.parentElement) === null || _rootRef$current$pare === void 0 ? void 0 : _rootRef$current$pare.offsetWidth) || 0;
|
|
5453
5457
|
if (rootRef.current && wrapperWidth > 0 && rootWidth.current === 0) {
|
|
5458
|
+
var _rootRef$current$pare2;
|
|
5454
5459
|
rootWidth.current = wrapperWidth;
|
|
5455
5460
|
rootRef.current.style.width = wrapperWidth + 'px';
|
|
5461
|
+
|
|
5462
|
+
// height
|
|
5463
|
+
var wrapperHeight = ((_rootRef$current$pare2 = rootRef.current.parentElement) === null || _rootRef$current$pare2 === void 0 ? void 0 : _rootRef$current$pare2.offsetHeight) || 0;
|
|
5464
|
+
if (hasInlineHeightOrMaxHeight(rootRef.current.parentElement) && wrapperHeight > 0) {
|
|
5465
|
+
rootRef.current.style.height = wrapperHeight + 'px';
|
|
5466
|
+
}
|
|
5456
5467
|
}
|
|
5457
5468
|
}
|
|
5458
5469
|
function tableGridInit() {
|
|
@@ -5447,12 +5447,23 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5447
5447
|
function outerWrapperInit() {
|
|
5448
5448
|
var _rootRef$current$pare;
|
|
5449
5449
|
if (rootRef.current === null) return;
|
|
5450
|
+
var hasInlineHeightOrMaxHeight = function hasInlineHeightOrMaxHeight(element) {
|
|
5451
|
+
if (!element) return false;
|
|
5452
|
+
return element.style.height !== '' || element.style.maxHeight !== '';
|
|
5453
|
+
};
|
|
5450
5454
|
|
|
5451
|
-
// calculate wrapper width
|
|
5455
|
+
// calculate wrapper width & height
|
|
5452
5456
|
var wrapperWidth = ((_rootRef$current$pare = rootRef.current.parentElement) === null || _rootRef$current$pare === void 0 ? void 0 : _rootRef$current$pare.offsetWidth) || 0;
|
|
5453
5457
|
if (rootRef.current && wrapperWidth > 0 && rootWidth.current === 0) {
|
|
5458
|
+
var _rootRef$current$pare2;
|
|
5454
5459
|
rootWidth.current = wrapperWidth;
|
|
5455
5460
|
rootRef.current.style.width = wrapperWidth + 'px';
|
|
5461
|
+
|
|
5462
|
+
// height
|
|
5463
|
+
var wrapperHeight = ((_rootRef$current$pare2 = rootRef.current.parentElement) === null || _rootRef$current$pare2 === void 0 ? void 0 : _rootRef$current$pare2.offsetHeight) || 0;
|
|
5464
|
+
if (hasInlineHeightOrMaxHeight(rootRef.current.parentElement) && wrapperHeight > 0) {
|
|
5465
|
+
rootRef.current.style.height = wrapperHeight + 'px';
|
|
5466
|
+
}
|
|
5456
5467
|
}
|
|
5457
5468
|
}
|
|
5458
5469
|
function tableGridInit() {
|
|
@@ -1826,11 +1826,23 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
1826
1826
|
function outerWrapperInit() {
|
|
1827
1827
|
if (rootRef.current === null) return;
|
|
1828
1828
|
|
|
1829
|
-
|
|
1829
|
+
const hasInlineHeightOrMaxHeight = (element: HTMLElement) => {
|
|
1830
|
+
if (!element) return false;
|
|
1831
|
+
return element.style.height !== '' || element.style.maxHeight !== '';
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
// calculate wrapper width & height
|
|
1830
1835
|
const wrapperWidth = rootRef.current.parentElement?.offsetWidth || 0;
|
|
1831
1836
|
if (rootRef.current && wrapperWidth > 0 && rootWidth.current === 0) {
|
|
1832
1837
|
rootWidth.current = wrapperWidth;
|
|
1833
1838
|
rootRef.current.style.width = wrapperWidth + 'px';
|
|
1839
|
+
|
|
1840
|
+
// height
|
|
1841
|
+
const wrapperHeight = rootRef.current.parentElement?.offsetHeight || 0;
|
|
1842
|
+
if (hasInlineHeightOrMaxHeight(rootRef.current.parentElement) && wrapperHeight > 0) {
|
|
1843
|
+
rootRef.current.style.height = wrapperHeight + 'px';
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1834
1846
|
}
|
|
1835
1847
|
}
|
|
1836
1848
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.512",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|