funda-ui 4.4.35 → 4.5.12
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/Date/index.js +1078 -77
- package/EventCalendar/index.js +8 -2
- package/EventCalendarTimeline/index.js +32 -1
- package/Input/index.d.ts +7 -0
- package/Input/index.js +699 -57
- package/MasonryLayout/index.js +11 -1
- package/MultipleSelect/index.d.ts +1 -0
- package/MultipleSelect/index.js +7 -5
- package/RangeSlider/index.js +1078 -77
- package/Select/index.js +34 -2
- package/Textarea/index.d.ts +7 -0
- package/Textarea/index.js +707 -10
- package/Tree/index.js +2 -0
- package/Utils/inputsCalculation.d.ts +18 -1
- package/Utils/inputsCalculation.js +26 -0
- package/lib/cjs/Date/index.js +1078 -77
- package/lib/cjs/EventCalendar/index.js +8 -2
- package/lib/cjs/EventCalendarTimeline/index.js +32 -1
- package/lib/cjs/Input/index.d.ts +7 -0
- package/lib/cjs/Input/index.js +699 -57
- package/lib/cjs/MasonryLayout/index.js +11 -1
- package/lib/cjs/MultipleSelect/index.d.ts +1 -0
- package/lib/cjs/MultipleSelect/index.js +7 -5
- package/lib/cjs/RangeSlider/index.js +1078 -77
- package/lib/cjs/Select/index.js +34 -2
- package/lib/cjs/Textarea/index.d.ts +7 -0
- package/lib/cjs/Textarea/index.js +707 -10
- package/lib/cjs/Tree/index.js +2 -0
- package/lib/cjs/Utils/inputsCalculation.d.ts +18 -1
- package/lib/cjs/Utils/inputsCalculation.js +26 -0
- package/lib/esm/EventCalendar/index.tsx +8 -6
- package/lib/esm/EventCalendarTimeline/index.tsx +439 -403
- package/lib/esm/Input/index.tsx +299 -77
- package/lib/esm/MasonryLayout/index.tsx +9 -2
- package/lib/esm/MultipleSelect/index.tsx +6 -4
- package/lib/esm/Textarea/index.tsx +332 -39
- package/lib/esm/Tree/TreeList.tsx +4 -1
- package/lib/esm/Tree/index.tsx +1 -0
- package/lib/esm/Utils/libs/inputsCalculation.ts +60 -31
- package/package.json +1 -1
|
@@ -2989,6 +2989,8 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
2989
2989
|
setWinMonth = _useState22[1];
|
|
2990
2990
|
|
|
2991
2991
|
// modal dialog
|
|
2992
|
+
var modalEditHandleRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
2993
|
+
var modalDeleteHandleRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
2992
2994
|
var EVENTS_ENABLED = typeof modalContent !== 'undefined';
|
|
2993
2995
|
var EVENTS_DELETE_ENABLED = typeof modalDeleteContent !== 'undefined';
|
|
2994
2996
|
var _useState23 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
@@ -3023,8 +3025,10 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
3023
3025
|
// exposes the following methods
|
|
3024
3026
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle)(contentRef, function () {
|
|
3025
3027
|
return {
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
+
closeModal: function closeModal() {
|
|
3029
|
+
if (modalEditHandleRef.current) modalEditHandleRef.current.close();
|
|
3030
|
+
if (modalDeleteHandleRef.current) modalDeleteHandleRef.current.close();
|
|
3031
|
+
}
|
|
3028
3032
|
};
|
|
3029
3033
|
}, [contentRef]);
|
|
3030
3034
|
|
|
@@ -3629,6 +3633,7 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
3629
3633
|
className: "custom-event-cal__btn custom-event-cal__btn--today",
|
|
3630
3634
|
onClick: handleTodayChange
|
|
3631
3635
|
}, langToday || 'Today'))), EVENTS_ENABLED ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_modaldialog__WEBPACK_IMPORTED_MODULE_3___default()), {
|
|
3636
|
+
ref: modalDeleteHandleRef,
|
|
3632
3637
|
show: showDelete,
|
|
3633
3638
|
maskOpacity: modalMaskOpacity,
|
|
3634
3639
|
triggerClassName: "",
|
|
@@ -3660,6 +3665,7 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
3660
3665
|
};
|
|
3661
3666
|
}()
|
|
3662
3667
|
}, modalDeleteContent || 'Are you sure?'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_modaldialog__WEBPACK_IMPORTED_MODULE_3___default()), {
|
|
3668
|
+
ref: modalEditHandleRef,
|
|
3663
3669
|
show: showEdit,
|
|
3664
3670
|
maskOpacity: modalMaskOpacity,
|
|
3665
3671
|
heading: modalHeading,
|
|
@@ -3990,6 +3990,10 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
3990
3990
|
//
|
|
3991
3991
|
var FILL_BLANK_DATE_DISABLD = typeof forwardAndBackFillDisabled === 'undefined' ? true : forwardAndBackFillDisabled;
|
|
3992
3992
|
|
|
3993
|
+
// root
|
|
3994
|
+
var rootRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
3995
|
+
var rootWidth = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);
|
|
3996
|
+
|
|
3993
3997
|
//
|
|
3994
3998
|
var now = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
3995
3999
|
return new Date();
|
|
@@ -4041,6 +4045,8 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
4041
4045
|
setWinMonth = _useState22[1];
|
|
4042
4046
|
|
|
4043
4047
|
// modal dialog
|
|
4048
|
+
var modalEditHandleRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
4049
|
+
var modalDeleteHandleRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
4044
4050
|
var EVENTS_ENABLED = typeof modalContent !== 'undefined';
|
|
4045
4051
|
var EVENTS_DELETE_ENABLED = typeof modalDeleteContent !== 'undefined';
|
|
4046
4052
|
var _useState23 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
@@ -4128,6 +4134,10 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
4128
4134
|
// reset selection area
|
|
4129
4135
|
setSelectedCells([]);
|
|
4130
4136
|
setCopiedCells(null);
|
|
4137
|
+
},
|
|
4138
|
+
closeModal: function closeModal() {
|
|
4139
|
+
if (modalEditHandleRef.current) modalEditHandleRef.current.close();
|
|
4140
|
+
if (modalDeleteHandleRef.current) modalDeleteHandleRef.current.close();
|
|
4131
4141
|
}
|
|
4132
4142
|
};
|
|
4133
4143
|
}, [contentRef]);
|
|
@@ -5434,6 +5444,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5434
5444
|
trElements[i].style.height = tdOHeight;
|
|
5435
5445
|
}
|
|
5436
5446
|
}
|
|
5447
|
+
function outerWrapperInit() {
|
|
5448
|
+
var _rootRef$current$pare;
|
|
5449
|
+
if (rootRef.current === null) return;
|
|
5450
|
+
|
|
5451
|
+
// calculate wrapper width
|
|
5452
|
+
var wrapperWidth = ((_rootRef$current$pare = rootRef.current.parentElement) === null || _rootRef$current$pare === void 0 ? void 0 : _rootRef$current$pare.offsetWidth) || 0;
|
|
5453
|
+
if (rootRef.current && wrapperWidth > 0 && rootWidth.current === 0) {
|
|
5454
|
+
rootWidth.current = wrapperWidth;
|
|
5455
|
+
rootRef.current.style.width = wrapperWidth + 'px';
|
|
5456
|
+
}
|
|
5457
|
+
}
|
|
5437
5458
|
function tableGridInit() {
|
|
5438
5459
|
//
|
|
5439
5460
|
if (tableGridRef.current === null) return;
|
|
@@ -5699,7 +5720,12 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5699
5720
|
onListRenderComplete === null || onListRenderComplete === void 0 ? void 0 : onListRenderComplete();
|
|
5700
5721
|
}, [eventsValue, customTodayDate, appearanceMode]);
|
|
5701
5722
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
5723
|
+
// calculate wrapper width (!!!FIRST!!!)
|
|
5724
|
+
//--------------
|
|
5725
|
+
outerWrapperInit();
|
|
5726
|
+
|
|
5702
5727
|
// !!!Please do not use dependencies
|
|
5728
|
+
//--------------
|
|
5703
5729
|
return function () {
|
|
5704
5730
|
// reset table grid
|
|
5705
5731
|
tableGridReset();
|
|
@@ -5710,6 +5736,9 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5710
5736
|
};
|
|
5711
5737
|
}, []);
|
|
5712
5738
|
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", {
|
|
5739
|
+
ref: rootRef,
|
|
5740
|
+
className: "custom-event-tl__outerwrapper"
|
|
5741
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
5713
5742
|
className: (0,funda_utils_dist_cjs_cls__WEBPACK_IMPORTED_MODULE_7__.combinedCls)("custom-event-tl__wrapper custom-event-tl__wrapper--".concat(appearanceMode), calendarWrapperClassName)
|
|
5714
5743
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
5715
5744
|
className: "custom-event-tl__header bg-body-tertiary"
|
|
@@ -5921,7 +5950,8 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5921
5950
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", {
|
|
5922
5951
|
key: i
|
|
5923
5952
|
}, generateDaysUi(item.eventSources, item.listSection, i, true));
|
|
5924
|
-
})))))))))))), EVENTS_ENABLED ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_modaldialog__WEBPACK_IMPORTED_MODULE_2___default()), {
|
|
5953
|
+
}))))))))))))), EVENTS_ENABLED ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_modaldialog__WEBPACK_IMPORTED_MODULE_2___default()), {
|
|
5954
|
+
ref: modalDeleteHandleRef,
|
|
5925
5955
|
show: showDelete,
|
|
5926
5956
|
maskOpacity: modalMaskOpacity,
|
|
5927
5957
|
triggerClassName: "",
|
|
@@ -5960,6 +5990,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
5960
5990
|
};
|
|
5961
5991
|
}()
|
|
5962
5992
|
}, modalDeleteContent || 'Are you sure?'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((funda_modaldialog__WEBPACK_IMPORTED_MODULE_2___default()), {
|
|
5993
|
+
ref: modalEditHandleRef,
|
|
5963
5994
|
show: showEdit,
|
|
5964
5995
|
maskOpacity: modalMaskOpacity,
|
|
5965
5996
|
heading: modalHeading,
|
package/lib/cjs/Input/index.d.ts
CHANGED
|
@@ -30,6 +30,13 @@ export declare type InputProps = {
|
|
|
30
30
|
iconLeft?: React.ReactNode | string;
|
|
31
31
|
iconRight?: React.ReactNode | string;
|
|
32
32
|
appendControl?: React.ReactNode;
|
|
33
|
+
aiPredict?: boolean;
|
|
34
|
+
aiPredictRemainingTextRGB?: number[];
|
|
35
|
+
aiPredictConfirmKey?: Array<string[]>;
|
|
36
|
+
aiPredictFetchFuncAsync?: any;
|
|
37
|
+
aiPredictFetchFuncMethod?: string;
|
|
38
|
+
aiPredictFetchFuncMethodParams?: any[];
|
|
39
|
+
aiPredictFetchCallback?: (data: any) => void;
|
|
33
40
|
/** -- */
|
|
34
41
|
id?: string;
|
|
35
42
|
style?: React.CSSProperties;
|