funda-ui 1.1.142 → 1.1.144
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/EventCalendar/index.d.ts +3 -0
- package/EventCalendar/index.js +38 -0
- package/EventCalendarTimeline/index.d.ts +3 -0
- package/EventCalendarTimeline/index.js +51 -13
- package/MultiFuncSelect/index.js +4 -1
- package/lib/cjs/EventCalendar/index.d.ts +3 -0
- package/lib/cjs/EventCalendar/index.js +38 -0
- package/lib/cjs/EventCalendarTimeline/index.d.ts +3 -0
- package/lib/cjs/EventCalendarTimeline/index.js +51 -13
- package/lib/cjs/MultiFuncSelect/index.js +4 -1
- package/lib/esm/EventCalendar/index.tsx +45 -2
- package/lib/esm/EventCalendarTimeline/index.tsx +55 -9
- package/lib/esm/MultiFuncSelect/index.tsx +4 -1
- package/package.json +1 -1
package/EventCalendar/index.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ declare type EventCalendarProps = {
|
|
|
11
11
|
cellCloseBtnClassName?: string;
|
|
12
12
|
cellCloseBtnLabel?: string | React.ReactNode;
|
|
13
13
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
14
|
+
onChangeMonth?: (currentData: any) => void;
|
|
15
|
+
onChangeYear?: (currentData: any) => void;
|
|
16
|
+
onChangeToday?: (currentData: any) => void;
|
|
14
17
|
modalMaskOpacity?: string;
|
|
15
18
|
modalMaxWidth?: number | string;
|
|
16
19
|
modalMinHeight?: number | string;
|
package/EventCalendar/index.js
CHANGED
|
@@ -974,6 +974,9 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
974
974
|
langToday = props.langToday,
|
|
975
975
|
iconRemove = props.iconRemove,
|
|
976
976
|
onChangeDate = props.onChangeDate,
|
|
977
|
+
onChangeMonth = props.onChangeMonth,
|
|
978
|
+
onChangeYear = props.onChangeYear,
|
|
979
|
+
onChangeToday = props.onChangeToday,
|
|
977
980
|
cellCloseBtnClassName = props.cellCloseBtnClassName,
|
|
978
981
|
cellCloseBtnLabel = props.cellCloseBtnLabel,
|
|
979
982
|
modalMaskOpacity = props.modalMaskOpacity,
|
|
@@ -1187,6 +1190,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1187
1190
|
// update
|
|
1188
1191
|
setSelectedMonth(_date.getMonth());
|
|
1189
1192
|
setSelectedYear(_date.getFullYear());
|
|
1193
|
+
|
|
1194
|
+
//
|
|
1195
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1196
|
+
day: day,
|
|
1197
|
+
month: _date.getMonth(),
|
|
1198
|
+
year: _date.getFullYear()
|
|
1199
|
+
});
|
|
1190
1200
|
return _date;
|
|
1191
1201
|
});
|
|
1192
1202
|
}
|
|
@@ -1197,6 +1207,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1197
1207
|
// update
|
|
1198
1208
|
setSelectedMonth(_date.getMonth());
|
|
1199
1209
|
setSelectedYear(_date.getFullYear());
|
|
1210
|
+
|
|
1211
|
+
//
|
|
1212
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1213
|
+
day: day,
|
|
1214
|
+
month: _date.getMonth(),
|
|
1215
|
+
year: _date.getFullYear()
|
|
1216
|
+
});
|
|
1200
1217
|
return _date;
|
|
1201
1218
|
});
|
|
1202
1219
|
}
|
|
@@ -1210,6 +1227,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1210
1227
|
|
|
1211
1228
|
// close win
|
|
1212
1229
|
setWinYear(false);
|
|
1230
|
+
|
|
1231
|
+
//
|
|
1232
|
+
onChangeYear === null || onChangeYear === void 0 ? void 0 : onChangeYear({
|
|
1233
|
+
day: day,
|
|
1234
|
+
month: month,
|
|
1235
|
+
year: currentValue
|
|
1236
|
+
});
|
|
1213
1237
|
}
|
|
1214
1238
|
function handleMonthChange(currentIndex) {
|
|
1215
1239
|
setSelectedMonth(currentIndex);
|
|
@@ -1218,11 +1242,25 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1218
1242
|
|
|
1219
1243
|
// close win
|
|
1220
1244
|
setWinMonth(false);
|
|
1245
|
+
|
|
1246
|
+
//
|
|
1247
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1248
|
+
day: day,
|
|
1249
|
+
month: currentIndex,
|
|
1250
|
+
year: year
|
|
1251
|
+
});
|
|
1221
1252
|
}
|
|
1222
1253
|
function handleTodayChange() {
|
|
1223
1254
|
setSelectedMonth(now.getMonth());
|
|
1224
1255
|
setSelectedYear(now.getFullYear());
|
|
1225
1256
|
setTodayDate(now);
|
|
1257
|
+
|
|
1258
|
+
//
|
|
1259
|
+
onChangeToday === null || onChangeToday === void 0 ? void 0 : onChangeToday({
|
|
1260
|
+
day: now.getDay(),
|
|
1261
|
+
month: now.getMonth(),
|
|
1262
|
+
year: now.getFullYear()
|
|
1263
|
+
});
|
|
1226
1264
|
}
|
|
1227
1265
|
function handleShowWinYear() {
|
|
1228
1266
|
setWinYear(function (prevState) {
|
|
@@ -27,6 +27,9 @@ declare type EventCalendarTimelineProps = {
|
|
|
27
27
|
showWeek?: boolean;
|
|
28
28
|
autoScroll?: boolean;
|
|
29
29
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
30
|
+
onChangeMonth?: (currentData: any) => void;
|
|
31
|
+
onChangeYear?: (currentData: any) => void;
|
|
32
|
+
onChangeToday?: (currentData: any) => void;
|
|
30
33
|
modalMaskOpacity?: string;
|
|
31
34
|
modalMaxWidth?: number | string;
|
|
32
35
|
modalMinHeight?: number | string;
|
|
@@ -1125,6 +1125,9 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1125
1125
|
showWeek = props.showWeek,
|
|
1126
1126
|
autoScroll = props.autoScroll,
|
|
1127
1127
|
onChangeDate = props.onChangeDate,
|
|
1128
|
+
onChangeMonth = props.onChangeMonth,
|
|
1129
|
+
onChangeYear = props.onChangeYear,
|
|
1130
|
+
onChangeToday = props.onChangeToday,
|
|
1128
1131
|
modalMaskOpacity = props.modalMaskOpacity,
|
|
1129
1132
|
modalMaxWidth = props.modalMaxWidth,
|
|
1130
1133
|
modalMinHeight = props.modalMinHeight,
|
|
@@ -1369,7 +1372,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1369
1372
|
|
|
1370
1373
|
// update modal positiona
|
|
1371
1374
|
var _tableTooltipModalRef = document.querySelector("#e-cal-tl-table__cell-tooltipwrapper-".concat(idRes));
|
|
1372
|
-
var _triggerRef = e.
|
|
1375
|
+
var _triggerRef = e.currentTarget;
|
|
1373
1376
|
if (_tableTooltipModalRef !== null && _triggerRef !== null) {
|
|
1374
1377
|
var _getAbsolutePositionO = (0,_utils_get_element_property__WEBPACK_IMPORTED_MODULE_2__.getAbsolutePositionOfStage)(_triggerRef),
|
|
1375
1378
|
x = _getAbsolutePositionO.x,
|
|
@@ -1480,6 +1483,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1480
1483
|
setSelectedMonth(_date.getMonth());
|
|
1481
1484
|
setSelectedYear(_date.getFullYear());
|
|
1482
1485
|
|
|
1486
|
+
//
|
|
1487
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1488
|
+
day: day,
|
|
1489
|
+
month: _date.getMonth(),
|
|
1490
|
+
year: _date.getFullYear()
|
|
1491
|
+
});
|
|
1492
|
+
|
|
1483
1493
|
// restore table grid init status
|
|
1484
1494
|
restoreTableGridInitStatus();
|
|
1485
1495
|
return _date;
|
|
@@ -1493,6 +1503,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1493
1503
|
setSelectedMonth(_date.getMonth());
|
|
1494
1504
|
setSelectedYear(_date.getFullYear());
|
|
1495
1505
|
|
|
1506
|
+
//
|
|
1507
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1508
|
+
day: day,
|
|
1509
|
+
month: _date.getMonth(),
|
|
1510
|
+
year: _date.getFullYear()
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1496
1513
|
// restore table grid init status
|
|
1497
1514
|
restoreTableGridInitStatus();
|
|
1498
1515
|
return _date;
|
|
@@ -1509,6 +1526,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1509
1526
|
// close win
|
|
1510
1527
|
setWinYear(false);
|
|
1511
1528
|
|
|
1529
|
+
//
|
|
1530
|
+
onChangeYear === null || onChangeYear === void 0 ? void 0 : onChangeYear({
|
|
1531
|
+
day: day,
|
|
1532
|
+
month: month,
|
|
1533
|
+
year: currentValue
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1512
1536
|
// restore table grid init status
|
|
1513
1537
|
restoreTableGridInitStatus();
|
|
1514
1538
|
}
|
|
@@ -1520,6 +1544,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1520
1544
|
// close win
|
|
1521
1545
|
setWinMonth(false);
|
|
1522
1546
|
|
|
1547
|
+
//
|
|
1548
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1549
|
+
day: day,
|
|
1550
|
+
month: currentIndex,
|
|
1551
|
+
year: year
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1523
1554
|
// restore table grid init status
|
|
1524
1555
|
restoreTableGridInitStatus();
|
|
1525
1556
|
}
|
|
@@ -1528,6 +1559,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1528
1559
|
setSelectedYear(now.getFullYear());
|
|
1529
1560
|
setTodayDate(now);
|
|
1530
1561
|
|
|
1562
|
+
//
|
|
1563
|
+
onChangeToday === null || onChangeToday === void 0 ? void 0 : onChangeToday({
|
|
1564
|
+
day: now.getDay(),
|
|
1565
|
+
month: now.getMonth(),
|
|
1566
|
+
year: now.getFullYear()
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1531
1569
|
// restore table grid init status
|
|
1532
1570
|
restoreTableGridInitStatus();
|
|
1533
1571
|
}
|
|
@@ -1680,13 +1718,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1680
1718
|
fill: "#000"
|
|
1681
1719
|
}))), cellCloseBtnLabel || ''))) : '';
|
|
1682
1720
|
return d > 0 && d <= days[month] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1683
|
-
className: "e-cal-tl-table__cell-cushion-content__container ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1721
|
+
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1684
1722
|
key: "col" + i,
|
|
1685
1723
|
"data-index": colIndex - 1,
|
|
1686
1724
|
colSpan: 1,
|
|
1687
1725
|
"data-date": getCalendarDate(_dateShow),
|
|
1688
1726
|
"data-week": i,
|
|
1689
1727
|
"data-row": rowIndex,
|
|
1728
|
+
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1729
|
+
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1730
|
+
} : function () {},
|
|
1731
|
+
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
|
|
1690
1732
|
onClick: function onClick(e) {
|
|
1691
1733
|
// update row data
|
|
1692
1734
|
setTableRowNum(rowIndex);
|
|
@@ -1713,11 +1755,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1713
1755
|
}
|
|
1714
1756
|
}
|
|
1715
1757
|
}, d > 0 ? /*#__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", {
|
|
1716
|
-
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
1717
|
-
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1718
|
-
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1719
|
-
} : function () {},
|
|
1720
|
-
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {}
|
|
1758
|
+
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
1721
1759
|
}, _eventContent)) : null) : null;
|
|
1722
1760
|
}
|
|
1723
1761
|
});
|
|
@@ -1863,13 +1901,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1863
1901
|
fill: "#000"
|
|
1864
1902
|
}))), cellCloseBtnLabel || ''))) : '';
|
|
1865
1903
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1866
|
-
className: "e-cal-tl-table__cell-cushion-content__container ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1904
|
+
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1867
1905
|
key: "col" + i,
|
|
1868
1906
|
"data-index": _colIndex - 1,
|
|
1869
1907
|
colSpan: 1,
|
|
1870
1908
|
"data-date": getCalendarDate(_dateShow),
|
|
1871
1909
|
"data-week": i,
|
|
1872
1910
|
"data-row": rowIndex,
|
|
1911
|
+
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1912
|
+
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1913
|
+
} : function () {},
|
|
1914
|
+
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
|
|
1873
1915
|
onClick: function onClick(e) {
|
|
1874
1916
|
// update row data
|
|
1875
1917
|
setTableRowNum(rowIndex);
|
|
@@ -1898,11 +1940,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1898
1940
|
}, isFirstRow && __forwardFillNum && typeof __forwardFillNum[i] !== 'undefined' ? /*#__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", {
|
|
1899
1941
|
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content disabled"
|
|
1900
1942
|
}, "\xA0")) : null, d > 0 ? /*#__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", {
|
|
1901
|
-
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
1902
|
-
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1903
|
-
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1904
|
-
} : function () {},
|
|
1905
|
-
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {}
|
|
1943
|
+
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
1906
1944
|
}, _eventContent)) : null, isLastRow && __backFillNum && typeof __backFillNum[i - item.col.filter(Boolean).length] !== 'undefined' ? /*#__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", {
|
|
1907
1945
|
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content disabled"
|
|
1908
1946
|
}, "\xA0")) : null);
|
package/MultiFuncSelect/index.js
CHANGED
|
@@ -803,6 +803,9 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
803
803
|
onBlur = props.onBlur,
|
|
804
804
|
onFocus = props.onFocus,
|
|
805
805
|
attributes = _objectWithoutProperties(props, _excluded);
|
|
806
|
+
var LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof window['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
|
|
807
|
+
|
|
808
|
+
var INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : typeof readOnly === 'undefined' ? null : readOnly;
|
|
806
809
|
var VALUE_BY_BRACKETS = typeof extractValueByBrackets === 'undefined' ? true : extractValueByBrackets;
|
|
807
810
|
var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
|
|
808
811
|
var WIN_WIDTH = typeof winWidth === 'function' ? winWidth() : winWidth ? winWidth : 'auto';
|
|
@@ -2087,7 +2090,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2087
2090
|
onCompositionEnd: handleComposition,
|
|
2088
2091
|
disabled: disabled || null,
|
|
2089
2092
|
required: required || null,
|
|
2090
|
-
readOnly:
|
|
2093
|
+
readOnly: INPUT_READONLY,
|
|
2091
2094
|
value: controlTempValue || controlTempValue === '' ? controlTempValue : MULTI_SEL_VALID ? VALUE_BY_BRACKETS ? (0,convert.convertArrToValByBrackets)(formatIndentVal(controlArr.labels).map(function (v) {
|
|
2092
2095
|
return stripHTML(v);
|
|
2093
2096
|
})) : formatIndentVal(controlArr.labels).map(function (v) {
|
|
@@ -11,6 +11,9 @@ declare type EventCalendarProps = {
|
|
|
11
11
|
cellCloseBtnClassName?: string;
|
|
12
12
|
cellCloseBtnLabel?: string | React.ReactNode;
|
|
13
13
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
14
|
+
onChangeMonth?: (currentData: any) => void;
|
|
15
|
+
onChangeYear?: (currentData: any) => void;
|
|
16
|
+
onChangeToday?: (currentData: any) => void;
|
|
14
17
|
modalMaskOpacity?: string;
|
|
15
18
|
modalMaxWidth?: number | string;
|
|
16
19
|
modalMinHeight?: number | string;
|
|
@@ -974,6 +974,9 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
974
974
|
langToday = props.langToday,
|
|
975
975
|
iconRemove = props.iconRemove,
|
|
976
976
|
onChangeDate = props.onChangeDate,
|
|
977
|
+
onChangeMonth = props.onChangeMonth,
|
|
978
|
+
onChangeYear = props.onChangeYear,
|
|
979
|
+
onChangeToday = props.onChangeToday,
|
|
977
980
|
cellCloseBtnClassName = props.cellCloseBtnClassName,
|
|
978
981
|
cellCloseBtnLabel = props.cellCloseBtnLabel,
|
|
979
982
|
modalMaskOpacity = props.modalMaskOpacity,
|
|
@@ -1187,6 +1190,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1187
1190
|
// update
|
|
1188
1191
|
setSelectedMonth(_date.getMonth());
|
|
1189
1192
|
setSelectedYear(_date.getFullYear());
|
|
1193
|
+
|
|
1194
|
+
//
|
|
1195
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1196
|
+
day: day,
|
|
1197
|
+
month: _date.getMonth(),
|
|
1198
|
+
year: _date.getFullYear()
|
|
1199
|
+
});
|
|
1190
1200
|
return _date;
|
|
1191
1201
|
});
|
|
1192
1202
|
}
|
|
@@ -1197,6 +1207,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1197
1207
|
// update
|
|
1198
1208
|
setSelectedMonth(_date.getMonth());
|
|
1199
1209
|
setSelectedYear(_date.getFullYear());
|
|
1210
|
+
|
|
1211
|
+
//
|
|
1212
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1213
|
+
day: day,
|
|
1214
|
+
month: _date.getMonth(),
|
|
1215
|
+
year: _date.getFullYear()
|
|
1216
|
+
});
|
|
1200
1217
|
return _date;
|
|
1201
1218
|
});
|
|
1202
1219
|
}
|
|
@@ -1210,6 +1227,13 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1210
1227
|
|
|
1211
1228
|
// close win
|
|
1212
1229
|
setWinYear(false);
|
|
1230
|
+
|
|
1231
|
+
//
|
|
1232
|
+
onChangeYear === null || onChangeYear === void 0 ? void 0 : onChangeYear({
|
|
1233
|
+
day: day,
|
|
1234
|
+
month: month,
|
|
1235
|
+
year: currentValue
|
|
1236
|
+
});
|
|
1213
1237
|
}
|
|
1214
1238
|
function handleMonthChange(currentIndex) {
|
|
1215
1239
|
setSelectedMonth(currentIndex);
|
|
@@ -1218,11 +1242,25 @@ var EventCalendar = function EventCalendar(props) {
|
|
|
1218
1242
|
|
|
1219
1243
|
// close win
|
|
1220
1244
|
setWinMonth(false);
|
|
1245
|
+
|
|
1246
|
+
//
|
|
1247
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1248
|
+
day: day,
|
|
1249
|
+
month: currentIndex,
|
|
1250
|
+
year: year
|
|
1251
|
+
});
|
|
1221
1252
|
}
|
|
1222
1253
|
function handleTodayChange() {
|
|
1223
1254
|
setSelectedMonth(now.getMonth());
|
|
1224
1255
|
setSelectedYear(now.getFullYear());
|
|
1225
1256
|
setTodayDate(now);
|
|
1257
|
+
|
|
1258
|
+
//
|
|
1259
|
+
onChangeToday === null || onChangeToday === void 0 ? void 0 : onChangeToday({
|
|
1260
|
+
day: now.getDay(),
|
|
1261
|
+
month: now.getMonth(),
|
|
1262
|
+
year: now.getFullYear()
|
|
1263
|
+
});
|
|
1226
1264
|
}
|
|
1227
1265
|
function handleShowWinYear() {
|
|
1228
1266
|
setWinYear(function (prevState) {
|
|
@@ -27,6 +27,9 @@ declare type EventCalendarTimelineProps = {
|
|
|
27
27
|
showWeek?: boolean;
|
|
28
28
|
autoScroll?: boolean;
|
|
29
29
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
30
|
+
onChangeMonth?: (currentData: any) => void;
|
|
31
|
+
onChangeYear?: (currentData: any) => void;
|
|
32
|
+
onChangeToday?: (currentData: any) => void;
|
|
30
33
|
modalMaskOpacity?: string;
|
|
31
34
|
modalMaxWidth?: number | string;
|
|
32
35
|
modalMinHeight?: number | string;
|
|
@@ -1125,6 +1125,9 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1125
1125
|
showWeek = props.showWeek,
|
|
1126
1126
|
autoScroll = props.autoScroll,
|
|
1127
1127
|
onChangeDate = props.onChangeDate,
|
|
1128
|
+
onChangeMonth = props.onChangeMonth,
|
|
1129
|
+
onChangeYear = props.onChangeYear,
|
|
1130
|
+
onChangeToday = props.onChangeToday,
|
|
1128
1131
|
modalMaskOpacity = props.modalMaskOpacity,
|
|
1129
1132
|
modalMaxWidth = props.modalMaxWidth,
|
|
1130
1133
|
modalMinHeight = props.modalMinHeight,
|
|
@@ -1369,7 +1372,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1369
1372
|
|
|
1370
1373
|
// update modal positiona
|
|
1371
1374
|
var _tableTooltipModalRef = document.querySelector("#e-cal-tl-table__cell-tooltipwrapper-".concat(idRes));
|
|
1372
|
-
var _triggerRef = e.
|
|
1375
|
+
var _triggerRef = e.currentTarget;
|
|
1373
1376
|
if (_tableTooltipModalRef !== null && _triggerRef !== null) {
|
|
1374
1377
|
var _getAbsolutePositionO = (0,_utils_get_element_property__WEBPACK_IMPORTED_MODULE_2__.getAbsolutePositionOfStage)(_triggerRef),
|
|
1375
1378
|
x = _getAbsolutePositionO.x,
|
|
@@ -1480,6 +1483,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1480
1483
|
setSelectedMonth(_date.getMonth());
|
|
1481
1484
|
setSelectedYear(_date.getFullYear());
|
|
1482
1485
|
|
|
1486
|
+
//
|
|
1487
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1488
|
+
day: day,
|
|
1489
|
+
month: _date.getMonth(),
|
|
1490
|
+
year: _date.getFullYear()
|
|
1491
|
+
});
|
|
1492
|
+
|
|
1483
1493
|
// restore table grid init status
|
|
1484
1494
|
restoreTableGridInitStatus();
|
|
1485
1495
|
return _date;
|
|
@@ -1493,6 +1503,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1493
1503
|
setSelectedMonth(_date.getMonth());
|
|
1494
1504
|
setSelectedYear(_date.getFullYear());
|
|
1495
1505
|
|
|
1506
|
+
//
|
|
1507
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1508
|
+
day: day,
|
|
1509
|
+
month: _date.getMonth(),
|
|
1510
|
+
year: _date.getFullYear()
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1496
1513
|
// restore table grid init status
|
|
1497
1514
|
restoreTableGridInitStatus();
|
|
1498
1515
|
return _date;
|
|
@@ -1509,6 +1526,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1509
1526
|
// close win
|
|
1510
1527
|
setWinYear(false);
|
|
1511
1528
|
|
|
1529
|
+
//
|
|
1530
|
+
onChangeYear === null || onChangeYear === void 0 ? void 0 : onChangeYear({
|
|
1531
|
+
day: day,
|
|
1532
|
+
month: month,
|
|
1533
|
+
year: currentValue
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1512
1536
|
// restore table grid init status
|
|
1513
1537
|
restoreTableGridInitStatus();
|
|
1514
1538
|
}
|
|
@@ -1520,6 +1544,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1520
1544
|
// close win
|
|
1521
1545
|
setWinMonth(false);
|
|
1522
1546
|
|
|
1547
|
+
//
|
|
1548
|
+
onChangeMonth === null || onChangeMonth === void 0 ? void 0 : onChangeMonth({
|
|
1549
|
+
day: day,
|
|
1550
|
+
month: currentIndex,
|
|
1551
|
+
year: year
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1523
1554
|
// restore table grid init status
|
|
1524
1555
|
restoreTableGridInitStatus();
|
|
1525
1556
|
}
|
|
@@ -1528,6 +1559,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1528
1559
|
setSelectedYear(now.getFullYear());
|
|
1529
1560
|
setTodayDate(now);
|
|
1530
1561
|
|
|
1562
|
+
//
|
|
1563
|
+
onChangeToday === null || onChangeToday === void 0 ? void 0 : onChangeToday({
|
|
1564
|
+
day: now.getDay(),
|
|
1565
|
+
month: now.getMonth(),
|
|
1566
|
+
year: now.getFullYear()
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1531
1569
|
// restore table grid init status
|
|
1532
1570
|
restoreTableGridInitStatus();
|
|
1533
1571
|
}
|
|
@@ -1680,13 +1718,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1680
1718
|
fill: "#000"
|
|
1681
1719
|
}))), cellCloseBtnLabel || ''))) : '';
|
|
1682
1720
|
return d > 0 && d <= days[month] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1683
|
-
className: "e-cal-tl-table__cell-cushion-content__container ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1721
|
+
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(eventSourcesData && _currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1684
1722
|
key: "col" + i,
|
|
1685
1723
|
"data-index": colIndex - 1,
|
|
1686
1724
|
colSpan: 1,
|
|
1687
1725
|
"data-date": getCalendarDate(_dateShow),
|
|
1688
1726
|
"data-week": i,
|
|
1689
1727
|
"data-row": rowIndex,
|
|
1728
|
+
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1729
|
+
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1730
|
+
} : function () {},
|
|
1731
|
+
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
|
|
1690
1732
|
onClick: function onClick(e) {
|
|
1691
1733
|
// update row data
|
|
1692
1734
|
setTableRowNum(rowIndex);
|
|
@@ -1713,11 +1755,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1713
1755
|
}
|
|
1714
1756
|
}
|
|
1715
1757
|
}, d > 0 ? /*#__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", {
|
|
1716
|
-
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
1717
|
-
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1718
|
-
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1719
|
-
} : function () {},
|
|
1720
|
-
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {}
|
|
1758
|
+
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
1721
1759
|
}, _eventContent)) : null) : null;
|
|
1722
1760
|
}
|
|
1723
1761
|
});
|
|
@@ -1863,13 +1901,17 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1863
1901
|
fill: "#000"
|
|
1864
1902
|
}))), cellCloseBtnLabel || ''))) : '';
|
|
1865
1903
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", {
|
|
1866
|
-
className: "e-cal-tl-table__cell-cushion-content__container ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1904
|
+
className: "e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ".concat(_currentData.length > 0 ? 'has-event' : '', " ").concat(d > 0 ? '' : 'empty', " ").concat(d === now.getDate() ? 'today' : '', " ").concat(d === day && tableRowNum === rowIndex ? 'selected' : '', " ").concat(isLastCol ? 'last-cell' : ''),
|
|
1867
1905
|
key: "col" + i,
|
|
1868
1906
|
"data-index": _colIndex - 1,
|
|
1869
1907
|
colSpan: 1,
|
|
1870
1908
|
"data-date": getCalendarDate(_dateShow),
|
|
1871
1909
|
"data-week": i,
|
|
1872
1910
|
"data-row": rowIndex,
|
|
1911
|
+
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1912
|
+
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1913
|
+
} : function () {},
|
|
1914
|
+
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
|
|
1873
1915
|
onClick: function onClick(e) {
|
|
1874
1916
|
// update row data
|
|
1875
1917
|
setTableRowNum(rowIndex);
|
|
@@ -1898,11 +1940,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
|
|
|
1898
1940
|
}, isFirstRow && __forwardFillNum && typeof __forwardFillNum[i] !== 'undefined' ? /*#__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", {
|
|
1899
1941
|
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content disabled"
|
|
1900
1942
|
}, "\xA0")) : null, d > 0 ? /*#__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", {
|
|
1901
|
-
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
1902
|
-
onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
|
|
1903
|
-
handleTableTooltipMouseEnter(e, _eventContentTooltip);
|
|
1904
|
-
} : function () {},
|
|
1905
|
-
onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {}
|
|
1943
|
+
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
1906
1944
|
}, _eventContent)) : null, isLastRow && __backFillNum && typeof __backFillNum[i - item.col.filter(Boolean).length] !== 'undefined' ? /*#__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", {
|
|
1907
1945
|
className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content disabled"
|
|
1908
1946
|
}, "\xA0")) : null);
|
|
@@ -803,6 +803,9 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
803
803
|
onBlur = props.onBlur,
|
|
804
804
|
onFocus = props.onFocus,
|
|
805
805
|
attributes = _objectWithoutProperties(props, _excluded);
|
|
806
|
+
var LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof window['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
|
|
807
|
+
|
|
808
|
+
var INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : typeof readOnly === 'undefined' ? null : readOnly;
|
|
806
809
|
var VALUE_BY_BRACKETS = typeof extractValueByBrackets === 'undefined' ? true : extractValueByBrackets;
|
|
807
810
|
var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
|
|
808
811
|
var WIN_WIDTH = typeof winWidth === 'function' ? winWidth() : winWidth ? winWidth : 'auto';
|
|
@@ -2087,7 +2090,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
2087
2090
|
onCompositionEnd: handleComposition,
|
|
2088
2091
|
disabled: disabled || null,
|
|
2089
2092
|
required: required || null,
|
|
2090
|
-
readOnly:
|
|
2093
|
+
readOnly: INPUT_READONLY,
|
|
2091
2094
|
value: controlTempValue || controlTempValue === '' ? controlTempValue : MULTI_SEL_VALID ? VALUE_BY_BRACKETS ? (0,convert.convertArrToValByBrackets)(formatIndentVal(controlArr.labels).map(function (v) {
|
|
2092
2095
|
return stripHTML(v);
|
|
2093
2096
|
})) : formatIndentVal(controlArr.labels).map(function (v) {
|
|
@@ -25,7 +25,9 @@ type EventCalendarProps = {
|
|
|
25
25
|
cellCloseBtnClassName?: string;
|
|
26
26
|
cellCloseBtnLabel?: string | React.ReactNode;
|
|
27
27
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
28
|
-
|
|
28
|
+
onChangeMonth?: (currentData: any) => void;
|
|
29
|
+
onChangeYear?: (currentData: any) => void;
|
|
30
|
+
onChangeToday?: (currentData: any) => void;
|
|
29
31
|
|
|
30
32
|
// modal dialog
|
|
31
33
|
modalMaskOpacity?: string;
|
|
@@ -60,7 +62,9 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
60
62
|
langToday,
|
|
61
63
|
iconRemove,
|
|
62
64
|
onChangeDate,
|
|
63
|
-
|
|
65
|
+
onChangeMonth,
|
|
66
|
+
onChangeYear,
|
|
67
|
+
onChangeToday,
|
|
64
68
|
|
|
65
69
|
//
|
|
66
70
|
cellCloseBtnClassName,
|
|
@@ -254,6 +258,13 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
254
258
|
setSelectedMonth(_date.getMonth());
|
|
255
259
|
setSelectedYear(_date.getFullYear());
|
|
256
260
|
|
|
261
|
+
//
|
|
262
|
+
onChangeMonth?.({
|
|
263
|
+
day: day,
|
|
264
|
+
month: _date.getMonth(),
|
|
265
|
+
year: _date.getFullYear()
|
|
266
|
+
});
|
|
267
|
+
|
|
257
268
|
return _date;
|
|
258
269
|
});
|
|
259
270
|
|
|
@@ -268,6 +279,13 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
268
279
|
setSelectedMonth(_date.getMonth());
|
|
269
280
|
setSelectedYear(_date.getFullYear());
|
|
270
281
|
|
|
282
|
+
//
|
|
283
|
+
onChangeMonth?.({
|
|
284
|
+
day: day,
|
|
285
|
+
month: _date.getMonth(),
|
|
286
|
+
year: _date.getFullYear()
|
|
287
|
+
});
|
|
288
|
+
|
|
271
289
|
return _date;
|
|
272
290
|
});
|
|
273
291
|
}
|
|
@@ -283,6 +301,14 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
283
301
|
|
|
284
302
|
// close win
|
|
285
303
|
setWinYear(false);
|
|
304
|
+
|
|
305
|
+
//
|
|
306
|
+
onChangeYear?.({
|
|
307
|
+
day: day,
|
|
308
|
+
month: month,
|
|
309
|
+
year: currentValue
|
|
310
|
+
});
|
|
311
|
+
|
|
286
312
|
}
|
|
287
313
|
|
|
288
314
|
|
|
@@ -293,6 +319,15 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
293
319
|
|
|
294
320
|
// close win
|
|
295
321
|
setWinMonth(false);
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
//
|
|
325
|
+
onChangeMonth?.({
|
|
326
|
+
day: day,
|
|
327
|
+
month: currentIndex,
|
|
328
|
+
year: year
|
|
329
|
+
});
|
|
330
|
+
|
|
296
331
|
}
|
|
297
332
|
|
|
298
333
|
|
|
@@ -300,6 +335,14 @@ const EventCalendar = (props: EventCalendarProps) => {
|
|
|
300
335
|
setSelectedMonth(now.getMonth());
|
|
301
336
|
setSelectedYear(now.getFullYear());
|
|
302
337
|
setTodayDate(now);
|
|
338
|
+
|
|
339
|
+
//
|
|
340
|
+
onChangeToday?.({
|
|
341
|
+
day: now.getDay(),
|
|
342
|
+
month: now.getMonth(),
|
|
343
|
+
year: now.getFullYear()
|
|
344
|
+
});
|
|
345
|
+
|
|
303
346
|
}
|
|
304
347
|
|
|
305
348
|
|
|
@@ -2,6 +2,7 @@ import React, { useId, useState, useEffect, useMemo, useRef, useCallback } from
|
|
|
2
2
|
|
|
3
3
|
import ModalDialog from 'funda-modaldialog';
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
import { getAbsolutePositionOfStage } from './utils/get-element-property';
|
|
6
7
|
|
|
7
8
|
|
|
@@ -36,6 +37,9 @@ type EventCalendarTimelineProps = {
|
|
|
36
37
|
showWeek?: boolean;
|
|
37
38
|
autoScroll?: boolean;
|
|
38
39
|
onChangeDate?: (e: any, currentData: any) => void;
|
|
40
|
+
onChangeMonth?: (currentData: any) => void;
|
|
41
|
+
onChangeYear?: (currentData: any) => void;
|
|
42
|
+
onChangeToday?: (currentData: any) => void;
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
|
|
@@ -92,6 +96,9 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
92
96
|
showWeek,
|
|
93
97
|
autoScroll,
|
|
94
98
|
onChangeDate,
|
|
99
|
+
onChangeMonth,
|
|
100
|
+
onChangeYear,
|
|
101
|
+
onChangeToday,
|
|
95
102
|
|
|
96
103
|
//
|
|
97
104
|
modalMaskOpacity,
|
|
@@ -311,7 +318,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
311
318
|
|
|
312
319
|
// update modal positiona
|
|
313
320
|
const _tableTooltipModalRef: any = document.querySelector(`#e-cal-tl-table__cell-tooltipwrapper-${idRes}`);
|
|
314
|
-
const _triggerRef: any = e.
|
|
321
|
+
const _triggerRef: any = e.currentTarget;
|
|
315
322
|
|
|
316
323
|
if (_tableTooltipModalRef !== null && _triggerRef !== null) {
|
|
317
324
|
|
|
@@ -453,10 +460,19 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
453
460
|
setSelectedMonth(_date.getMonth());
|
|
454
461
|
setSelectedYear(_date.getFullYear());
|
|
455
462
|
|
|
463
|
+
//
|
|
464
|
+
onChangeMonth?.({
|
|
465
|
+
day: day,
|
|
466
|
+
month: _date.getMonth(),
|
|
467
|
+
year: _date.getFullYear()
|
|
468
|
+
});
|
|
469
|
+
|
|
456
470
|
|
|
457
471
|
// restore table grid init status
|
|
458
472
|
restoreTableGridInitStatus();
|
|
459
473
|
|
|
474
|
+
|
|
475
|
+
|
|
460
476
|
return _date;
|
|
461
477
|
});
|
|
462
478
|
|
|
@@ -471,6 +487,13 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
471
487
|
setSelectedMonth(_date.getMonth());
|
|
472
488
|
setSelectedYear(_date.getFullYear());
|
|
473
489
|
|
|
490
|
+
//
|
|
491
|
+
onChangeMonth?.({
|
|
492
|
+
day: day,
|
|
493
|
+
month: _date.getMonth(),
|
|
494
|
+
year: _date.getFullYear()
|
|
495
|
+
});
|
|
496
|
+
|
|
474
497
|
|
|
475
498
|
// restore table grid init status
|
|
476
499
|
restoreTableGridInitStatus();
|
|
@@ -492,6 +515,14 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
492
515
|
// close win
|
|
493
516
|
setWinYear(false);
|
|
494
517
|
|
|
518
|
+
|
|
519
|
+
//
|
|
520
|
+
onChangeYear?.({
|
|
521
|
+
day: day,
|
|
522
|
+
month: month,
|
|
523
|
+
year: currentValue
|
|
524
|
+
});
|
|
525
|
+
|
|
495
526
|
// restore table grid init status
|
|
496
527
|
restoreTableGridInitStatus();
|
|
497
528
|
|
|
@@ -506,6 +537,14 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
506
537
|
// close win
|
|
507
538
|
setWinMonth(false);
|
|
508
539
|
|
|
540
|
+
|
|
541
|
+
//
|
|
542
|
+
onChangeMonth?.({
|
|
543
|
+
day: day,
|
|
544
|
+
month: currentIndex,
|
|
545
|
+
year: year
|
|
546
|
+
});
|
|
547
|
+
|
|
509
548
|
// restore table grid init status
|
|
510
549
|
restoreTableGridInitStatus();
|
|
511
550
|
|
|
@@ -517,6 +556,13 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
517
556
|
setSelectedYear(now.getFullYear());
|
|
518
557
|
setTodayDate(now);
|
|
519
558
|
|
|
559
|
+
//
|
|
560
|
+
onChangeToday?.({
|
|
561
|
+
day: now.getDay(),
|
|
562
|
+
month: now.getMonth(),
|
|
563
|
+
year: now.getFullYear()
|
|
564
|
+
});
|
|
565
|
+
|
|
520
566
|
// restore table grid init status
|
|
521
567
|
restoreTableGridInitStatus();
|
|
522
568
|
|
|
@@ -689,13 +735,15 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
689
735
|
|
|
690
736
|
return d > 0 && d <= days[month] ? (
|
|
691
737
|
<td
|
|
692
|
-
className={`e-cal-tl-table__cell-cushion-content__container ${eventSourcesData && _currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
738
|
+
className={`e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ${eventSourcesData && _currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
693
739
|
key={"col" + i}
|
|
694
740
|
data-index={colIndex-1}
|
|
695
741
|
colSpan={1}
|
|
696
742
|
data-date={getCalendarDate(_dateShow)}
|
|
697
743
|
data-week={i}
|
|
698
744
|
data-row={rowIndex}
|
|
745
|
+
onMouseEnter={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? (e: React.MouseEvent) => {handleTableTooltipMouseEnter(e, _eventContentTooltip)} : () => {}) )}
|
|
746
|
+
onMouseLeave={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? handleTableTooltipMouseLeave : () => {}) )}
|
|
699
747
|
onClick={(e: React.MouseEvent) => {
|
|
700
748
|
|
|
701
749
|
// update row data
|
|
@@ -731,9 +779,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
731
779
|
{/* day */}
|
|
732
780
|
{d > 0 ? <>
|
|
733
781
|
<div
|
|
734
|
-
className="e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
735
|
-
onMouseEnter={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? (e: React.MouseEvent) => {handleTableTooltipMouseEnter(e, _eventContentTooltip)} : () => {}) )}
|
|
736
|
-
onMouseLeave={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? handleTableTooltipMouseLeave : () => {}) )}
|
|
782
|
+
className="e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
737
783
|
>
|
|
738
784
|
{_eventContent}
|
|
739
785
|
</div>
|
|
@@ -922,13 +968,15 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
922
968
|
|
|
923
969
|
return (
|
|
924
970
|
<td
|
|
925
|
-
className={`e-cal-tl-table__cell-cushion-content__container ${_currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
971
|
+
className={`e-cal-tl-table__cell-cushion-content__container e-cal-tl-table__cell-tooltiptrigger ${_currentData.length > 0 ? 'has-event' : ''} ${d > 0 ? '' : 'empty'} ${d === now.getDate() ? 'today' : ''} ${d === day && tableRowNum === rowIndex ? 'selected' : ''} ${isLastCol ? 'last-cell' : ''}`}
|
|
926
972
|
key={"col" + i}
|
|
927
973
|
data-index={colIndex-1}
|
|
928
974
|
colSpan={1}
|
|
929
975
|
data-date={getCalendarDate(_dateShow)}
|
|
930
976
|
data-week={i}
|
|
931
977
|
data-row={rowIndex}
|
|
978
|
+
onMouseEnter={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? (e: React.MouseEvent) => {handleTableTooltipMouseEnter(e, _eventContentTooltip)} : () => {}) )}
|
|
979
|
+
onMouseLeave={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? handleTableTooltipMouseLeave : () => {}) )}
|
|
932
980
|
onClick={(e: React.MouseEvent) => {
|
|
933
981
|
|
|
934
982
|
// update row data
|
|
@@ -971,9 +1019,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
|
|
|
971
1019
|
{/* day */}
|
|
972
1020
|
{d > 0 ? <>
|
|
973
1021
|
<div
|
|
974
|
-
className="e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content
|
|
975
|
-
onMouseEnter={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? (e: React.MouseEvent) => {handleTableTooltipMouseEnter(e, _eventContentTooltip)} : () => {}) )}
|
|
976
|
-
onMouseLeave={_eventContentTooltip === '' ? () => {} : ( tableTooltipDisabled ? () => {} : (_eventContent !== '' ? handleTableTooltipMouseLeave : () => {}) )}
|
|
1022
|
+
className="e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-content"
|
|
977
1023
|
>
|
|
978
1024
|
{_eventContent}
|
|
979
1025
|
</div>
|
|
@@ -135,6 +135,9 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
135
135
|
} = props;
|
|
136
136
|
|
|
137
137
|
|
|
138
|
+
const LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof (window as any)['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
|
|
139
|
+
|
|
140
|
+
const INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : (typeof readOnly === 'undefined' ? null : readOnly);
|
|
138
141
|
const VALUE_BY_BRACKETS = typeof extractValueByBrackets === 'undefined' ? true : extractValueByBrackets;
|
|
139
142
|
const LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
|
|
140
143
|
const WIN_WIDTH = typeof winWidth === 'function' ? winWidth() : winWidth ? winWidth : 'auto';
|
|
@@ -1521,7 +1524,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
|
|
|
1521
1524
|
onCompositionEnd={handleComposition}
|
|
1522
1525
|
disabled={disabled || null}
|
|
1523
1526
|
required={required || null}
|
|
1524
|
-
readOnly={
|
|
1527
|
+
readOnly={INPUT_READONLY}
|
|
1525
1528
|
value={controlTempValue || controlTempValue === '' ? controlTempValue : (MULTI_SEL_VALID ? (VALUE_BY_BRACKETS ? convertArrToValByBrackets(formatIndentVal(controlArr.labels).map((v: any) => stripHTML(v))) : formatIndentVal(controlArr.labels).map((v: any) => stripHTML(v)).join(',')) : stripHTML(controlLabel as never))} // do not use `defaultValue`
|
|
1526
1529
|
|
|
1527
1530
|
style={{cursor: 'pointer', borderBottomWidth: MULTI_SEL_VALID? '0' : '1px', ...style}}
|
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": "1.1.
|
|
5
|
+
"version": "1.1.144",
|
|
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",
|