funda-ui 4.7.625 → 4.7.701
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/CascadingSelect/index.js +2 -2
- package/CascadingSelectE2E/index.js +2 -2
- package/Chatbox/index.js +3 -17
- package/Checkbox/index.js +3 -3
- package/ColorPicker/index.js +3 -18
- package/Date/index.js +3 -18
- package/EventCalendarTimeline/index.d.ts +1 -1
- package/EventCalendarTimeline/index.js +11 -1
- package/File/index.d.ts +9 -0
- package/File/index.js +245 -93
- package/Input/index.js +3 -18
- package/LiveSearch/index.js +3 -18
- package/NativeSelect/index.js +3 -3
- package/NumberInput/index.js +3 -18
- package/Popover/index.css +198 -0
- package/Popover/index.d.ts +4 -0
- package/Popover/index.js +1808 -0
- package/README.md +1 -0
- package/Radio/index.js +3 -3
- package/RangeSlider/index.js +3 -18
- package/SearchBar/index.js +3 -18
- package/Select/index.js +3 -2
- package/Switch/index.js +3 -3
- package/TagInput/index.css +31 -31
- package/TagInput/index.js +12 -23
- package/Textarea/index.js +3 -17
- package/Utils/useSSE.d.ts +9 -0
- package/Utils/useSSE.js +211 -0
- package/all.d.ts +1 -0
- package/all.js +1 -0
- package/lib/cjs/CascadingSelect/index.js +2 -2
- package/lib/cjs/CascadingSelectE2E/index.js +2 -2
- package/lib/cjs/Chatbox/index.js +3 -17
- package/lib/cjs/Checkbox/index.js +3 -3
- package/lib/cjs/ColorPicker/index.js +3 -18
- package/lib/cjs/Date/index.js +3 -18
- package/lib/cjs/EventCalendarTimeline/index.d.ts +1 -1
- package/lib/cjs/EventCalendarTimeline/index.js +11 -1
- package/lib/cjs/File/index.d.ts +9 -0
- package/lib/cjs/File/index.js +245 -93
- package/lib/cjs/Input/index.js +3 -18
- package/lib/cjs/LiveSearch/index.js +3 -18
- package/lib/cjs/NativeSelect/index.js +3 -3
- package/lib/cjs/NumberInput/index.js +3 -18
- package/lib/cjs/Popover/index.d.ts +4 -0
- package/lib/cjs/Popover/index.js +1808 -0
- package/lib/cjs/Radio/index.js +3 -3
- package/lib/cjs/RangeSlider/index.js +3 -18
- package/lib/cjs/SearchBar/index.js +3 -18
- package/lib/cjs/Select/index.js +3 -2
- package/lib/cjs/Switch/index.js +3 -3
- package/lib/cjs/TagInput/index.js +12 -23
- package/lib/cjs/Textarea/index.js +3 -17
- package/lib/cjs/Utils/useSSE.d.ts +9 -0
- package/lib/cjs/Utils/useSSE.js +211 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/css/Popover/index.css +198 -0
- package/lib/css/TagInput/index.css +31 -31
- package/lib/esm/CascadingSelect/index.tsx +2 -2
- package/lib/esm/CascadingSelectE2E/index.tsx +2 -2
- package/lib/esm/Checkbox/index.tsx +3 -3
- package/lib/esm/ColorPicker/index.tsx +4 -15
- package/lib/esm/EventCalendarTimeline/index.tsx +11 -2
- package/lib/esm/File/index.tsx +148 -23
- package/lib/esm/Input/index.tsx +6 -17
- package/lib/esm/NativeSelect/index.tsx +3 -3
- package/lib/esm/NumberInput/index.tsx +7 -15
- package/lib/esm/Popover/Popover.tsx +251 -0
- package/lib/esm/Popover/PopoverClose.tsx +51 -0
- package/lib/esm/Popover/PopoverContent.tsx +72 -0
- package/lib/esm/Popover/PopoverTrigger.tsx +62 -0
- package/lib/esm/Popover/index.scss +272 -0
- package/lib/esm/Popover/index.tsx +4 -0
- package/lib/esm/Radio/index.tsx +3 -3
- package/lib/esm/SearchBar/index.tsx +8 -12
- package/lib/esm/Select/index.tsx +2 -2
- package/lib/esm/Switch/index.tsx +3 -3
- package/lib/esm/TagInput/index.scss +24 -24
- package/lib/esm/TagInput/index.tsx +13 -20
- package/lib/esm/Textarea/index.tsx +6 -14
- package/lib/esm/Utils/hooks/useSSE.tsx +109 -0
- package/lib/esm/index.js +1 -0
- package/package.json +1 -1
package/all.d.ts
CHANGED
package/all.js
CHANGED
|
@@ -29,6 +29,7 @@ exports.MultipleSelect = _interopRequireDefault(require("./MultipleSelect")).def
|
|
|
29
29
|
exports.NativeSelect = _interopRequireDefault(require("./NativeSelect")).default;
|
|
30
30
|
exports.NumberInput = _interopRequireDefault(require("./NumberInput")).default;
|
|
31
31
|
exports.Pagination = _interopRequireDefault(require("./Pagination")).default;
|
|
32
|
+
exports.Popover = _interopRequireDefault(require("./Popover")).default;
|
|
32
33
|
exports.Radio = _interopRequireDefault(require("./Radio")).default;
|
|
33
34
|
exports.RangeSlider = _interopRequireDefault(require("./RangeSlider")).default;
|
|
34
35
|
exports.Refresher = _interopRequireDefault(require("./Refresher")).default;
|
|
@@ -2628,7 +2628,7 @@ var CascadingSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2628
2628
|
}
|
|
2629
2629
|
function handleFocus(event) {
|
|
2630
2630
|
var _rootRef$current;
|
|
2631
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
2631
|
+
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus-floating');
|
|
2632
2632
|
|
|
2633
2633
|
//
|
|
2634
2634
|
handleDisplayOptions(null);
|
|
@@ -2640,7 +2640,7 @@ var CascadingSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2640
2640
|
var _rootRef$current2;
|
|
2641
2641
|
//----
|
|
2642
2642
|
//remove focus style
|
|
2643
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
2643
|
+
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus-floating');
|
|
2644
2644
|
|
|
2645
2645
|
//
|
|
2646
2646
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
@@ -3102,7 +3102,7 @@ var CascadingSelectE2E = /*#__PURE__*/(0,external_root_React_commonjs2_react_com
|
|
|
3102
3102
|
}
|
|
3103
3103
|
function handleFocus(event) {
|
|
3104
3104
|
var _rootRef$current;
|
|
3105
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
3105
|
+
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus-floating');
|
|
3106
3106
|
|
|
3107
3107
|
//
|
|
3108
3108
|
handleDisplayOptions(null);
|
|
@@ -3114,7 +3114,7 @@ var CascadingSelectE2E = /*#__PURE__*/(0,external_root_React_commonjs2_react_com
|
|
|
3114
3114
|
var _rootRef$current2;
|
|
3115
3115
|
//----
|
|
3116
3116
|
//remove focus style
|
|
3117
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
3117
|
+
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus-floating');
|
|
3118
3118
|
|
|
3119
3119
|
//
|
|
3120
3120
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
package/lib/cjs/Chatbox/index.js
CHANGED
|
@@ -2289,9 +2289,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2289
2289
|
return typeof p !== 'undefined' && p !== null && p !== '';
|
|
2290
2290
|
};
|
|
2291
2291
|
function handleFocus(event) {
|
|
2292
|
-
var _rootRef$current;
|
|
2293
2292
|
var el = event.target;
|
|
2294
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
2295
2293
|
|
|
2296
2294
|
//
|
|
2297
2295
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event, valRef.current);
|
|
@@ -2299,13 +2297,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2299
2297
|
function handleChange(event, curVal) {
|
|
2300
2298
|
setChangedVal(curVal);
|
|
2301
2299
|
|
|
2302
|
-
//----
|
|
2303
|
-
//remove focus style
|
|
2304
|
-
if (curVal === '') {
|
|
2305
|
-
var _rootRef$current2;
|
|
2306
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
2300
|
//
|
|
2310
2301
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, valRef.current, curVal);
|
|
2311
2302
|
|
|
@@ -2320,13 +2311,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2320
2311
|
var el = event.target;
|
|
2321
2312
|
var val = el.value;
|
|
2322
2313
|
|
|
2323
|
-
//----
|
|
2324
|
-
//remove focus style
|
|
2325
|
-
if (val === '') {
|
|
2326
|
-
var _rootRef$current3;
|
|
2327
|
-
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
2314
|
//
|
|
2331
2315
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event, valRef.current);
|
|
2332
2316
|
|
|
@@ -2433,7 +2417,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2433
2417
|
}
|
|
2434
2418
|
}, []);
|
|
2435
2419
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
2436
|
-
className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_3__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
|
|
2420
|
+
className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_3__.combinedCls)((0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_3__.clsWrite)(wrapperClassName, 'mb-3 position-relative'), {
|
|
2421
|
+
'focus-floating': changedVal !== ''
|
|
2422
|
+
}),
|
|
2437
2423
|
ref: rootRef
|
|
2438
2424
|
}, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
|
|
2439
2425
|
htmlFor: idRes,
|
|
@@ -569,7 +569,7 @@ var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
|
|
|
569
569
|
}, [contentRef, val]);
|
|
570
570
|
function handleFocus(event) {
|
|
571
571
|
var _rootRef$current;
|
|
572
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
572
|
+
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus-floating');
|
|
573
573
|
|
|
574
574
|
//
|
|
575
575
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
@@ -581,7 +581,7 @@ var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
|
|
|
581
581
|
|
|
582
582
|
//----
|
|
583
583
|
//remove focus style
|
|
584
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
584
|
+
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus-floating');
|
|
585
585
|
|
|
586
586
|
//
|
|
587
587
|
if (typeof onChange === 'function') {
|
|
@@ -592,7 +592,7 @@ var Checkbox = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
|
|
|
592
592
|
var _rootRef$current3;
|
|
593
593
|
//----
|
|
594
594
|
//remove focus style
|
|
595
|
-
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
|
|
595
|
+
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus-floating');
|
|
596
596
|
|
|
597
597
|
//
|
|
598
598
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
@@ -551,9 +551,6 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function handleFocus(event) {
|
|
554
|
-
var _rootRef$current;
|
|
555
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
556
|
-
|
|
557
554
|
//
|
|
558
555
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
559
556
|
}
|
|
@@ -561,13 +558,6 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
561
558
|
var val = event.target.value;
|
|
562
559
|
setChangedVal(val);
|
|
563
560
|
|
|
564
|
-
//----
|
|
565
|
-
//remove focus style
|
|
566
|
-
if (val === '') {
|
|
567
|
-
var _rootRef$current2;
|
|
568
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
569
|
-
}
|
|
570
|
-
|
|
571
561
|
//
|
|
572
562
|
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
573
563
|
}
|
|
@@ -575,13 +565,6 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
575
565
|
var el = event.target;
|
|
576
566
|
var val = event.target.value;
|
|
577
567
|
|
|
578
|
-
//----
|
|
579
|
-
//remove focus style
|
|
580
|
-
if (val === '') {
|
|
581
|
-
var _rootRef$current3;
|
|
582
|
-
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
|
|
583
|
-
}
|
|
584
|
-
|
|
585
568
|
//
|
|
586
569
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
587
570
|
}
|
|
@@ -591,7 +574,9 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
591
574
|
setChangedVal(value || '');
|
|
592
575
|
}, [value]);
|
|
593
576
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
594
|
-
className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('custom-colorpicker__wrapper', shapeClassName, (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative')
|
|
577
|
+
className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)('custom-colorpicker__wrapper', shapeClassName, (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'), {
|
|
578
|
+
'focus-floating': changedVal !== ''
|
|
579
|
+
}),
|
|
595
580
|
ref: rootRef
|
|
596
581
|
}, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
|
|
597
582
|
htmlFor: idRes,
|
package/lib/cjs/Date/index.js
CHANGED
|
@@ -1798,9 +1798,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
1800
|
function handleFocus(event) {
|
|
1801
|
-
var _rootRef$current;
|
|
1802
|
-
(_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.classList.add('focus');
|
|
1803
|
-
|
|
1804
1801
|
//
|
|
1805
1802
|
if (valRef.current) {
|
|
1806
1803
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event, onComposition, valRef.current);
|
|
@@ -1809,13 +1806,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1809
1806
|
function handleChange(event, curVal) {
|
|
1810
1807
|
setChangedVal(curVal);
|
|
1811
1808
|
|
|
1812
|
-
//----
|
|
1813
|
-
//remove focus style
|
|
1814
|
-
if (curVal === '') {
|
|
1815
|
-
var _rootRef$current2;
|
|
1816
|
-
(_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.classList.remove('focus');
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
1809
|
//
|
|
1820
1810
|
if (valRef.current) {
|
|
1821
1811
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, onComposition, valRef.current, curVal);
|
|
@@ -1832,13 +1822,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1832
1822
|
var el = event.target;
|
|
1833
1823
|
var val = event.target.value;
|
|
1834
1824
|
|
|
1835
|
-
//----
|
|
1836
|
-
//remove focus style
|
|
1837
|
-
if (val === '') {
|
|
1838
|
-
var _rootRef$current3;
|
|
1839
|
-
(_rootRef$current3 = rootRef.current) === null || _rootRef$current3 === void 0 ? void 0 : _rootRef$current3.classList.remove('focus');
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
1825
|
//
|
|
1843
1826
|
if (valRef.current) {
|
|
1844
1827
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event, onComposition, valRef.current);
|
|
@@ -1936,7 +1919,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1936
1919
|
}
|
|
1937
1920
|
}, []);
|
|
1938
1921
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
1939
|
-
className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'),
|
|
1922
|
+
className: (0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.combinedCls)((0, funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_2__.clsWrite)(wrapperClassName, 'mb-3 position-relative'), {
|
|
1923
|
+
'focus-floating': changedVal !== ''
|
|
1924
|
+
}),
|
|
1940
1925
|
ref: rootRef
|
|
1941
1926
|
}, label ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0___default().Fragment, null, typeof label === 'string' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", {
|
|
1942
1927
|
htmlFor: idRes,
|
|
@@ -87,7 +87,7 @@ export declare type EventCalendarTimelineProps = {
|
|
|
87
87
|
onKeyCopy?: (el: any, selectedCellsData: any[]) => void;
|
|
88
88
|
onKeyPaste?: (el: any, selectedCellsData: any[]) => void;
|
|
89
89
|
tableListSectionTitle?: string | React.ReactNode;
|
|
90
|
-
tableCellMinWidth?: number;
|
|
90
|
+
tableCellMinWidth?: number | ((mode: 'week' | 'month') => number);
|
|
91
91
|
tableTooltipDirection?: string;
|
|
92
92
|
tableTooltipOffset?: number;
|
|
93
93
|
tableTooltipExceededSidePosOffset?: number;
|
|
@@ -4117,7 +4117,6 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
4117
4117
|
var AUTO_SCROLL = autoScroll || false;
|
|
4118
4118
|
var SHOW_WEEK = showWeek || false;
|
|
4119
4119
|
var BODY_DRAG = draggable || false;
|
|
4120
|
-
var CELL_MIN_W = typeof tableCellMinWidth === 'undefined' ? SHOW_WEEK ? 100 : 50 : tableCellMinWidth;
|
|
4121
4120
|
var tableGridRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
4122
4121
|
var tableGridHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
4123
4122
|
var scrollHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
@@ -4158,6 +4157,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
4158
4157
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4159
4158
|
appearanceMode = _useState38[0],
|
|
4160
4159
|
setAppearanceMode = _useState38[1];
|
|
4160
|
+
|
|
4161
|
+
// Calculate CELL_MIN_W based on appearanceMode and tableCellMinWidth
|
|
4162
|
+
var CELL_MIN_W = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
4163
|
+
if (typeof tableCellMinWidth === 'undefined') {
|
|
4164
|
+
return appearanceMode === 'week' ? 100 : 50;
|
|
4165
|
+
}
|
|
4166
|
+
if (typeof tableCellMinWidth === 'function') {
|
|
4167
|
+
return tableCellMinWidth(appearanceMode);
|
|
4168
|
+
}
|
|
4169
|
+
return tableCellMinWidth;
|
|
4170
|
+
}, [tableCellMinWidth, appearanceMode]);
|
|
4161
4171
|
var findMondayAndTruncate = function findMondayAndTruncate(dates) {
|
|
4162
4172
|
var _res = dates.map(function (s) {
|
|
4163
4173
|
return new Date(s);
|
package/lib/cjs/File/index.d.ts
CHANGED
|
@@ -32,6 +32,15 @@ export declare type FileProps = {
|
|
|
32
32
|
fetchFuncAsync?: any;
|
|
33
33
|
fetchFuncMethod?: string;
|
|
34
34
|
fetchFuncMethodParams?: any[];
|
|
35
|
+
formDataAppend?: (formData: FormData, files: FileList) => void;
|
|
36
|
+
/** Enable chunked upload for large files */
|
|
37
|
+
enableChunkedUpload?: boolean;
|
|
38
|
+
/** Chunk size in bytes (default: 2MB) */
|
|
39
|
+
chunkSize?: number;
|
|
40
|
+
/** Custom function to append chunk data to FormData. Receives (formData: FormData, chunk: Blob, chunkIndex: number, totalChunks: number, file: File) */
|
|
41
|
+
chunkDataAppend?: (formData: FormData, chunk: Blob, chunkIndex: number, totalChunks: number, file: File) => void;
|
|
42
|
+
/** Callback for chunk upload progress. Receives (uploadedBytes: number, totalBytes: number, file: File, chunkIndex: number, totalChunks: number) */
|
|
43
|
+
onChunkProgress?: (uploadedBytes: number, totalBytes: number, file: File, chunkIndex: number, totalChunks: number) => void;
|
|
35
44
|
onChange?: (e: any, e2: any, value: any) => void;
|
|
36
45
|
onComplete?: (e: any, e2: any, callback: any, incomingData: string | null | undefined) => void;
|
|
37
46
|
onProgress?: (files: any, e: any, e2: any) => void;
|