funda-ui 4.2.15 → 4.2.375

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.
Files changed (99) hide show
  1. package/CascadingSelect/index.css +6 -3
  2. package/CascadingSelect/index.js +10 -8
  3. package/CascadingSelectE2E/index.css +6 -3
  4. package/CascadingSelectE2E/index.js +9 -7
  5. package/Date/index.js +1 -1
  6. package/DropdownMenu/index.js +10 -1
  7. package/EventCalendar/index.css +6 -0
  8. package/EventCalendar/index.d.ts +4 -1
  9. package/EventCalendar/index.js +16 -4
  10. package/EventCalendarTimeline/index.css +20 -0
  11. package/EventCalendarTimeline/index.d.ts +9 -2
  12. package/EventCalendarTimeline/index.js +78 -23
  13. package/LiveSearch/index.css +12 -0
  14. package/LiveSearch/index.js +10 -8
  15. package/ModalDialog/index.js +1 -1
  16. package/MultilevelDropdownMenu/index.css +3 -0
  17. package/MultipleSelect/index.css +3 -1
  18. package/NativeSelect/index.js +75 -47
  19. package/Pagination/index.d.ts +2 -0
  20. package/Pagination/index.js +25 -21
  21. package/Radio/index.js +14 -6
  22. package/RangeSlider/index.css +1 -0
  23. package/RangeSlider/index.js +1 -1
  24. package/ScrollReveal/index.js +2 -1
  25. package/Select/index.css +20 -1
  26. package/Select/index.d.ts +1 -0
  27. package/Select/index.js +49 -29
  28. package/Tabs/index.js +13 -2
  29. package/TagInput/index.css +2 -1
  30. package/Toast/index.js +33 -16
  31. package/Tooltip/index.js +1 -1
  32. package/Tree/index.css +7 -5
  33. package/Tree/index.js +90 -56
  34. package/lib/cjs/CascadingSelect/index.js +10 -8
  35. package/lib/cjs/CascadingSelectE2E/index.js +9 -7
  36. package/lib/cjs/Date/index.js +1 -1
  37. package/lib/cjs/DropdownMenu/index.js +10 -1
  38. package/lib/cjs/EventCalendar/index.d.ts +4 -1
  39. package/lib/cjs/EventCalendar/index.js +16 -4
  40. package/lib/cjs/EventCalendarTimeline/index.d.ts +9 -2
  41. package/lib/cjs/EventCalendarTimeline/index.js +78 -23
  42. package/lib/cjs/LiveSearch/index.js +10 -8
  43. package/lib/cjs/ModalDialog/index.js +1 -1
  44. package/lib/cjs/NativeSelect/index.js +75 -47
  45. package/lib/cjs/Pagination/index.d.ts +2 -0
  46. package/lib/cjs/Pagination/index.js +25 -21
  47. package/lib/cjs/Radio/index.js +14 -6
  48. package/lib/cjs/RangeSlider/index.js +1 -1
  49. package/lib/cjs/ScrollReveal/index.js +2 -1
  50. package/lib/cjs/Select/index.d.ts +1 -0
  51. package/lib/cjs/Select/index.js +49 -29
  52. package/lib/cjs/Tabs/index.js +13 -2
  53. package/lib/cjs/Toast/index.js +33 -16
  54. package/lib/cjs/Tooltip/index.js +1 -1
  55. package/lib/cjs/Tree/index.js +90 -56
  56. package/lib/css/CascadingSelect/index.css +6 -3
  57. package/lib/css/CascadingSelectE2E/index.css +6 -3
  58. package/lib/css/EventCalendar/index.css +6 -0
  59. package/lib/css/EventCalendarTimeline/index.css +20 -0
  60. package/lib/css/LiveSearch/index.css +12 -0
  61. package/lib/css/MultilevelDropdownMenu/index.css +3 -0
  62. package/lib/css/MultipleSelect/index.css +3 -1
  63. package/lib/css/RangeSlider/index.css +1 -0
  64. package/lib/css/Select/index.css +20 -1
  65. package/lib/css/TagInput/index.css +2 -1
  66. package/lib/css/Tree/index.css +7 -5
  67. package/lib/esm/CascadingSelect/index.scss +7 -3
  68. package/lib/esm/CascadingSelect/index.tsx +6 -5
  69. package/lib/esm/CascadingSelectE2E/index.scss +8 -3
  70. package/lib/esm/CascadingSelectE2E/index.tsx +6 -3
  71. package/lib/esm/Date/index.tsx +1 -1
  72. package/lib/esm/DropdownMenu/index.tsx +11 -3
  73. package/lib/esm/EventCalendar/index.scss +6 -0
  74. package/lib/esm/EventCalendar/index.tsx +23 -6
  75. package/lib/esm/EventCalendarTimeline/index.scss +28 -1
  76. package/lib/esm/EventCalendarTimeline/index.tsx +196 -119
  77. package/lib/esm/LiveSearch/index.scss +14 -1
  78. package/lib/esm/LiveSearch/index.tsx +6 -4
  79. package/lib/esm/ModalDialog/index.tsx +1 -1
  80. package/lib/esm/MultilevelDropdownMenu/index.scss +4 -0
  81. package/lib/esm/MultipleSelect/index.scss +4 -1
  82. package/lib/esm/NativeSelect/index.tsx +4 -18
  83. package/lib/esm/NativeSelect/native-select-utils/func.ts +40 -0
  84. package/lib/esm/Pagination/index.tsx +31 -22
  85. package/lib/esm/Radio/index.tsx +19 -6
  86. package/lib/esm/RangeSlider/index.scss +2 -0
  87. package/lib/esm/RangeSlider/index.tsx +1 -1
  88. package/lib/esm/ScrollReveal/index.tsx +2 -1
  89. package/lib/esm/Select/index.scss +24 -2
  90. package/lib/esm/Select/index.tsx +87 -62
  91. package/lib/esm/Table/Table.tsx +2 -0
  92. package/lib/esm/Tabs/Tabs.tsx +19 -4
  93. package/lib/esm/TagInput/index.scss +2 -1
  94. package/lib/esm/Toast/index.tsx +30 -15
  95. package/lib/esm/Tooltip/index.tsx +1 -1
  96. package/lib/esm/Tree/TreeList.tsx +61 -54
  97. package/lib/esm/Tree/index.scss +10 -5
  98. package/lib/esm/Tree/index.tsx +4 -0
  99. package/package.json +1 -1
@@ -18,9 +18,12 @@
18
18
  font-weight: 400;
19
19
  line-height: 1.5;
20
20
  color: inherit;
21
+ /* required */
22
+ display: flex;
21
23
  }
22
24
  .cas-select__wrapper .cas-select__result div {
23
- display: inline;
25
+ /* required */
26
+ display: flex;
24
27
  }
25
28
  .cas-select__wrapper .cas-select__result span {
26
29
  padding: 3px;
@@ -57,8 +60,8 @@
57
60
  }
58
61
  .cas-select__wrapper .cas-select__val .arrow {
59
62
  position: absolute;
60
- top: 0;
61
- margin-top: 0.3rem;
63
+ top: 50%;
64
+ transform: translateY(-50%);
62
65
  right: 0.5rem;
63
66
  }
64
67
  .cas-select__wrapper .cas-select__val .arrow svg .arrow-fill-g {
@@ -4605,20 +4605,22 @@ var CascadingSelect = function CascadingSelect(props) {
4605
4605
  windowScrollUpdate = _useWindowScroll2[1];
4606
4606
  function popwinPosInit() {
4607
4607
  var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
4608
- if (valRef.current === null) return;
4608
+ if (rootRef.current === null || valRef.current === null) return;
4609
4609
 
4610
4610
  // update modal position
4611
4611
  var _modalRef = document.querySelector("#cas-select__items-wrapper-".concat(idRes));
4612
4612
  var _triggerRef = valRef.current;
4613
+ var _triggerXaxisRef = rootRef.current;
4613
4614
 
4614
4615
  // console.log(getAbsolutePositionOfStage(_triggerRef));
4615
4616
 
4616
4617
  if (_modalRef === null) return;
4617
- var _getAbsolutePositionO = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerRef),
4618
- x = _getAbsolutePositionO.x,
4619
- y = _getAbsolutePositionO.y,
4620
- width = _getAbsolutePositionO.width,
4621
- height = _getAbsolutePositionO.height;
4618
+ var _getAbsolutePositionO = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerXaxisRef),
4619
+ x = _getAbsolutePositionO.x;
4620
+ var _getAbsolutePositionO2 = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerRef),
4621
+ y = _getAbsolutePositionO2.y,
4622
+ width = _getAbsolutePositionO2.width,
4623
+ height = _getAbsolutePositionO2.height;
4622
4624
  var _triggerBox = _triggerRef.getBoundingClientRect();
4623
4625
  var targetPos = '';
4624
4626
 
@@ -4660,7 +4662,7 @@ var CascadingSelect = function CascadingSelect(props) {
4660
4662
  // Determine whether it exceeds the far right or left side of the screen
4661
4663
  var _modalContent = _modalRef;
4662
4664
  var _modalBox = _modalContent.getBoundingClientRect();
4663
- if (typeof _modalContent.dataset.offset === 'undefined') {
4665
+ if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
4664
4666
  // 10 pixels is used to account for some bias in mobile devices
4665
4667
  if (_modalBox.right + 10 > window.innerWidth) {
4666
4668
  var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
@@ -5079,7 +5081,7 @@ var CascadingSelect = function CascadingSelect(props) {
5079
5081
  var _findNode = searchObject(_data, function (v) {
5080
5082
  return v != null && v != undefined && v[rowQueryAttr] == targetVal[col - 1];
5081
5083
  });
5082
- var childList = _findNode[0].children;
5084
+ var childList = typeof _findNode[0] !== 'undefined' ? _findNode[0].children : undefined;
5083
5085
 
5084
5086
  // STEP 1: ===========
5085
5087
  //active item from current column
@@ -18,9 +18,12 @@
18
18
  font-weight: 400;
19
19
  line-height: 1.5;
20
20
  color: inherit;
21
+ /* required */
22
+ display: flex;
21
23
  }
22
24
  .cas-select-e2e__wrapper .cas-select-e2e__result div {
23
- display: inline;
25
+ /* required */
26
+ display: flex;
24
27
  }
25
28
  .cas-select-e2e__wrapper .cas-select-e2e__result span {
26
29
  padding: 3px;
@@ -57,8 +60,8 @@
57
60
  }
58
61
  .cas-select-e2e__wrapper .cas-select-e2e__val .arrow {
59
62
  position: absolute;
60
- top: 0;
61
- margin-top: 0.3rem;
63
+ top: 50%;
64
+ transform: translateY(-50%);
62
65
  right: 0.5rem;
63
66
  }
64
67
  .cas-select-e2e__wrapper .cas-select-e2e__val .arrow svg .arrow-fill-g {
@@ -4630,20 +4630,22 @@ var CascadingSelectE2E = function CascadingSelectE2E(props) {
4630
4630
  windowScrollUpdate = _useWindowScroll2[1];
4631
4631
  function popwinPosInit() {
4632
4632
  var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
4633
- if (valRef.current === null) return;
4633
+ if (rootRef.current === null || valRef.current === null) return;
4634
4634
 
4635
4635
  // update modal position
4636
4636
  var _modalRef = document.querySelector("#cas-select-e2e__items-wrapper-".concat(idRes));
4637
4637
  var _triggerRef = valRef.current;
4638
+ var _triggerXaxisRef = rootRef.current;
4638
4639
 
4639
4640
  // console.log(getAbsolutePositionOfStage(_triggerRef));
4640
4641
 
4641
4642
  if (_modalRef === null) return;
4642
- var _getAbsolutePositionO = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerRef),
4643
- x = _getAbsolutePositionO.x,
4644
- y = _getAbsolutePositionO.y,
4645
- width = _getAbsolutePositionO.width,
4646
- height = _getAbsolutePositionO.height;
4643
+ var _getAbsolutePositionO = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerXaxisRef),
4644
+ x = _getAbsolutePositionO.x;
4645
+ var _getAbsolutePositionO2 = (0,dist_cjs.getAbsolutePositionOfStage)(_triggerRef),
4646
+ y = _getAbsolutePositionO2.y,
4647
+ width = _getAbsolutePositionO2.width,
4648
+ height = _getAbsolutePositionO2.height;
4647
4649
  var _triggerBox = _triggerRef.getBoundingClientRect();
4648
4650
  var targetPos = '';
4649
4651
 
@@ -4685,7 +4687,7 @@ var CascadingSelectE2E = function CascadingSelectE2E(props) {
4685
4687
  // Determine whether it exceeds the far right or left side of the screen
4686
4688
  var _modalContent = _modalRef;
4687
4689
  var _modalBox = _modalContent.getBoundingClientRect();
4688
- if (typeof _modalContent.dataset.offset === 'undefined') {
4690
+ if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
4689
4691
  // 10 pixels is used to account for some bias in mobile devices
4690
4692
  if (_modalBox.right + 10 > window.innerWidth) {
4691
4693
  var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
package/Date/index.js CHANGED
@@ -10080,7 +10080,7 @@ var src_Date = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
10080
10080
  // Determine whether it exceeds the max height of the popup
10081
10081
  var _modalContent = _modalRef;
10082
10082
  var _modalBox = _modalContent.getBoundingClientRect();
10083
- if (typeof _modalContent.dataset.offset === 'undefined') {
10083
+ if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
10084
10084
  // 10 pixels is used to account for some bias in mobile devices
10085
10085
  if (_modalBox.right + 10 > window.innerWidth) {
10086
10086
  var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
@@ -4496,6 +4496,12 @@ var DropdownMenu = function DropdownMenu(props) {
4496
4496
  });
4497
4497
  });
4498
4498
 
4499
+ // force display
4500
+ var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
4501
+ _useState6 = _slicedToArray(_useState5, 2),
4502
+ initPopRoot = _useState6[0],
4503
+ setInitPopRoot = _useState6[1];
4504
+
4499
4505
  // click outside
4500
4506
  (0,dist_cjs.useClickOutside)({
4501
4507
  enabled: isOpen && rootRef.current && modalRef.current,
@@ -4623,6 +4629,9 @@ var DropdownMenu = function DropdownMenu(props) {
4623
4629
  _modalRef.classList.remove('active');
4624
4630
  }
4625
4631
  }
4632
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4633
+ setInitPopRoot(true);
4634
+ }, []);
4626
4635
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
4627
4636
  ref: rootRef,
4628
4637
  className: "dd-menu__wrapper ".concat(wrapperClassName || wrapperClassName === '' ? wrapperClassName : "dd-menu-default", " ").concat(isOpen ? 'active' : ''),
@@ -4668,7 +4677,7 @@ var DropdownMenu = function DropdownMenu(props) {
4668
4677
  return void 0;
4669
4678
  }
4670
4679
  }), " ", /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((cjs_default()), {
4671
- show: true,
4680
+ show: initPopRoot,
4672
4681
  containerClassName: "DropdownMenu"
4673
4682
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
4674
4683
  ref: modalRef,
@@ -115,6 +115,9 @@
115
115
  display: none;
116
116
  color: var(--e-cal-delete-btn-color);
117
117
  }
118
+ .e-cal__wrapper .e-cal__row .e-cal__cell .e-cal__day__eventdel svg {
119
+ fill: var(--e-cal-delete-btn-color);
120
+ }
118
121
  .e-cal__wrapper .e-cal__row .e-cal__cell .e-cal__day__eventdel svg path {
119
122
  fill: var(--e-cal-delete-btn-color);
120
123
  }
@@ -217,6 +220,9 @@
217
220
  margin: 0;
218
221
  box-shadow: none;
219
222
  cursor: pointer;
223
+ /* required */
224
+ display: inline-flex;
225
+ align-items: center;
220
226
  }
221
227
  .e-cal__wrapper .e-cal__btn svg path {
222
228
  fill: var(--e-cal-header-arrow-bg);
@@ -34,12 +34,15 @@ declare type EventCalendarProps = {
34
34
  modalSubmitBtnLabel?: string | React.ReactNode;
35
35
  modalSubmitDeleteBtnClassName?: string;
36
36
  modalSubmitDeleteBtnLabel?: string | React.ReactNode;
37
- onModalEditOpen?: (currentData: any) => void;
37
+ onModalEditOpen?: (currentData: any, openwin: any) => void;
38
38
  onModalEditClose?: (currentData: any) => void;
39
39
  onModalDeleteOpen?: (currentData: any) => void;
40
40
  onModalDeleteClose?: (currentData: any) => void;
41
41
  onModalEditEvent?: (currentData: any, closewin: any) => void;
42
42
  onModalDeleteEvent?: (currentData: any, closewin: any) => void;
43
+ onCellMouseEnter?: (el: any) => void;
44
+ onCellMouseLeave?: (el: any) => void;
45
+ onCellClick?: (el: any) => void;
43
46
  };
44
47
  declare const EventCalendar: (props: EventCalendarProps) => JSX.Element;
45
48
  export default EventCalendar;
@@ -4569,7 +4569,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
4569
4569
  var DEPTH = depth || 1055; // the default value same as bootstrap
4570
4570
  var M_WIDTH = fullscreen ? undefined : typeof maxWidth === 'function' ? maxWidth() : maxWidth ? maxWidth : undefined;
4571
4571
  var M_HEIGHT = typeof minHeight === 'function' ? minHeight() : minHeight ? minHeight : undefined;
4572
- var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
4572
+ var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? false : lockBodyScroll;
4573
4573
  var uniqueID = (0, funda_utils__WEBPACK_IMPORTED_MODULE_2__.useComId)();
4574
4574
  var modalRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
4575
4575
  var triggerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
@@ -5076,7 +5076,10 @@ var EventCalendar = function EventCalendar(props) {
5076
5076
  onModalDeleteOpen = props.onModalDeleteOpen,
5077
5077
  onModalDeleteClose = props.onModalDeleteClose,
5078
5078
  onModalEditEvent = props.onModalEditEvent,
5079
- onModalDeleteEvent = props.onModalDeleteEvent;
5079
+ onModalDeleteEvent = props.onModalDeleteEvent,
5080
+ onCellMouseEnter = props.onCellMouseEnter,
5081
+ onCellMouseLeave = props.onCellMouseLeave,
5082
+ onCellClick = props.onCellClick;
5080
5083
  var DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
5081
5084
  var DAYS_LEAP = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
5082
5085
  var WEEK = langWeek || ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'];
@@ -5506,7 +5509,15 @@ var EventCalendar = function EventCalendar(props) {
5506
5509
  "data-date": getCalendarDate(_dateShow),
5507
5510
  "data-day": padZero(d),
5508
5511
  "data-week": i,
5512
+ onMouseEnter: function onMouseEnter(e) {
5513
+ onCellMouseEnter === null || onCellMouseEnter === void 0 ? void 0 : onCellMouseEnter(e);
5514
+ },
5515
+ onMouseLeave: function onMouseLeave(e) {
5516
+ onCellMouseLeave === null || onCellMouseLeave === void 0 ? void 0 : onCellMouseLeave(e);
5517
+ },
5509
5518
  onClick: function onClick(e) {
5519
+ //
5520
+ onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(e);
5510
5521
  if (d > 0) {
5511
5522
  handleDayChange(e, d);
5512
5523
  onChangeDate === null || onChangeDate === void 0 ? void 0 : onChangeDate(e, _currentData.length === 0 ? {
@@ -5514,11 +5525,12 @@ var EventCalendar = function EventCalendar(props) {
5514
5525
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
5515
5526
  } : _currentData[0]);
5516
5527
  if (EVENTS_ENABLED) {
5517
- setShowEdit(true);
5518
5528
  onModalEditOpen === null || onModalEditOpen === void 0 ? void 0 : onModalEditOpen(_currentData.length === 0 ? {
5519
5529
  id: 0,
5520
5530
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
5521
- } : _currentData[0]);
5531
+ } : _currentData[0], function () {
5532
+ return setShowEdit(true);
5533
+ });
5522
5534
  }
5523
5535
  }
5524
5536
  }
@@ -132,6 +132,9 @@
132
132
  margin: 0;
133
133
  box-shadow: none;
134
134
  cursor: pointer;
135
+ /* required */
136
+ display: inline-flex;
137
+ align-items: center;
135
138
  }
136
139
  .e-cal-tl__wrapper .e-cal-tl__btn svg path {
137
140
  fill: var(--e-cal-tl-header-arrow-bg);
@@ -341,6 +344,9 @@
341
344
  background-color: var(--e-cal-tl-table-event-hover-bg);
342
345
  box-shadow: var(--e-cal-tl-table-event-hover-shadow);
343
346
  }
347
+ .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content__container:not(.empty):hover .e-cal-tl__day__eventdel {
348
+ display: block;
349
+ }
344
350
  .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content__container.has-event .e-cal-tl-table__cell-cushion {
345
351
  padding: 0;
346
352
  }
@@ -349,6 +355,20 @@
349
355
  width: 100%;
350
356
  font-size: var(--e-cal-tl-table-event-font-size);
351
357
  }
358
+ .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content__container .e-cal-tl__day__eventdel {
359
+ position: absolute;
360
+ z-index: 1;
361
+ left: 0;
362
+ top: 0;
363
+ display: none;
364
+ color: var(--e-cal-tl-table-delete-btn-color);
365
+ }
366
+ .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content__container .e-cal-tl__day__eventdel svg {
367
+ fill: var(--e-cal-tl-table-delete-btn-color);
368
+ }
369
+ .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-content__container .e-cal-tl__day__eventdel svg path {
370
+ fill: var(--e-cal-tl-table-delete-btn-color);
371
+ }
352
372
  .e-cal-tl-table__timeline-table__wrapper .e-cal-tl-table__cell-cushion-headercontent__container {
353
373
  text-align: center;
354
374
  }
@@ -7,8 +7,12 @@ export interface EventsValueConfig {
7
7
  dataTooltip?: string;
8
8
  eventStyles?: React.CSSProperties;
9
9
  }
10
+ export interface TimelineRowFieldConfig {
11
+ id: string | number;
12
+ title: string;
13
+ }
10
14
  export interface TimelineValueConfig {
11
- listSection: string;
15
+ listSection: TimelineRowFieldConfig;
12
16
  eventSources: EventsValueConfig[];
13
17
  }
14
18
  declare type EventCalendarTimelineProps = {
@@ -43,12 +47,15 @@ declare type EventCalendarTimelineProps = {
43
47
  modalSubmitBtnLabel?: string | React.ReactNode;
44
48
  modalSubmitDeleteBtnClassName?: string;
45
49
  modalSubmitDeleteBtnLabel?: string | React.ReactNode;
46
- onModalEditOpen?: (currentData: any) => void;
50
+ onModalEditOpen?: (currentData: any, openwin: any) => void;
47
51
  onModalEditClose?: (currentData: any) => void;
48
52
  onModalDeleteOpen?: (currentData: any) => void;
49
53
  onModalDeleteClose?: (currentData: any) => void;
50
54
  onModalEditEvent?: (currentData: any, closewin: any) => void;
51
55
  onModalDeleteEvent?: (currentData: any, closewin: any) => void;
56
+ onCellMouseEnter?: (el: any) => void;
57
+ onCellMouseLeave?: (el: any) => void;
58
+ onCellClick?: (el: any) => void;
52
59
  tableListSectionTitle?: string | React.ReactNode;
53
60
  tableCellMinWidth?: number;
54
61
  tableTooltipDirection?: string;
@@ -4569,7 +4569,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
4569
4569
  var DEPTH = depth || 1055; // the default value same as bootstrap
4570
4570
  var M_WIDTH = fullscreen ? undefined : typeof maxWidth === 'function' ? maxWidth() : maxWidth ? maxWidth : undefined;
4571
4571
  var M_HEIGHT = typeof minHeight === 'function' ? minHeight() : minHeight ? minHeight : undefined;
4572
- var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
4572
+ var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? false : lockBodyScroll;
4573
4573
  var uniqueID = (0, funda_utils__WEBPACK_IMPORTED_MODULE_2__.useComId)();
4574
4574
  var modalRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
4575
4575
  var triggerRef = (0, react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
@@ -9365,6 +9365,9 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9365
9365
  onModalDeleteClose = props.onModalDeleteClose,
9366
9366
  onModalEditEvent = props.onModalEditEvent,
9367
9367
  onModalDeleteEvent = props.onModalDeleteEvent,
9368
+ onCellMouseEnter = props.onCellMouseEnter,
9369
+ onCellMouseLeave = props.onCellMouseLeave,
9370
+ onCellClick = props.onCellClick,
9368
9371
  tableListSectionTitle = props.tableListSectionTitle,
9369
9372
  tableCellMinWidth = props.tableCellMinWidth,
9370
9373
  tableTooltipDirection = props.tableTooltipDirection,
@@ -9451,6 +9454,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9451
9454
  var BODY_DRAG = draggable || false;
9452
9455
  var CELL_MIN_W = typeof tableCellMinWidth === 'undefined' ? SHOW_WEEK ? 100 : 50 : tableCellMinWidth;
9453
9456
  var tableGridRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
9457
+ var tableGridHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
9454
9458
  var scrollHeaderRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
9455
9459
  var scrollBodyRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
9456
9460
  var scrollListRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
@@ -9650,7 +9654,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9650
9654
  // Determine whether it exceeds the far right or left side of the screen
9651
9655
  var _modalContent = _tableTooltipModalRef.querySelector('.e-cal-tl-table__cell-tooltipcontent');
9652
9656
  var _modalBox = _modalContent.getBoundingClientRect();
9653
- if (typeof _modalContent.dataset.offset === 'undefined') {
9657
+ if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
9654
9658
  // 10 pixels is used to account for some bias in mobile devices
9655
9659
  if (_modalBox.right + 10 > window.innerWidth) {
9656
9660
  var _modalOffsetPosition = _modalBox.right - window.innerWidth + CELL_TOOLTIP_EXCEEDED_SIDE_POS_OFFSET;
@@ -9847,7 +9851,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9847
9851
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
9848
9852
  className: "e-cal-tl-table__cell-cushion e-cal-tl-table__cell-cushion-title",
9849
9853
  dangerouslySetInnerHTML: {
9850
- __html: item.listSection
9854
+ __html: item.listSection.title
9851
9855
  }
9852
9856
  })));
9853
9857
  });
@@ -9905,12 +9909,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9905
9909
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
9906
9910
  } : _currentData[0]);
9907
9911
  if (EVENTS_ENABLED) {
9908
- setShowEdit(true);
9909
9912
  onModalEditOpen === null || onModalEditOpen === void 0 ? void 0 : onModalEditOpen(_currentData.length === 0 ? {
9910
9913
  rowData: listSectionData,
9911
9914
  id: 0,
9912
9915
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
9913
- } : _currentData[0]);
9916
+ } : _currentData[0], function () {
9917
+ return setShowEdit(true);
9918
+ });
9914
9919
  }
9915
9920
  }
9916
9921
  }
@@ -9951,11 +9956,15 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9951
9956
  e.preventDefault();
9952
9957
  e.stopPropagation();
9953
9958
  setShowDelete(true);
9959
+ var _existsContent = _currentData[0];
9960
+ if (typeof _existsContent !== 'undefined') {
9961
+ _existsContent.rowData = listSectionData;
9962
+ }
9954
9963
  onModalDeleteOpen === null || onModalDeleteOpen === void 0 ? void 0 : onModalDeleteOpen(_currentData.length === 0 ? {
9955
9964
  rowData: listSectionData,
9956
9965
  id: 0,
9957
9966
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
9958
- } : _currentData[0]);
9967
+ } : _existsContent);
9959
9968
  }
9960
9969
  }, iconRemove ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, iconRemove) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
9961
9970
  width: "20px",
@@ -9978,11 +9987,30 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9978
9987
  "data-day": padZero(d),
9979
9988
  "data-week": i,
9980
9989
  "data-row": rowIndex,
9981
- onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
9982
- handleTableTooltipMouseEnter(e, _eventContentTooltip);
9983
- } : function () {},
9984
- onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
9990
+ onMouseEnter: function onMouseEnter(e) {
9991
+ onCellMouseEnter === null || onCellMouseEnter === void 0 ? void 0 : onCellMouseEnter(e);
9992
+ if (_eventContentTooltip !== '') {
9993
+ if (typeof tableTooltipDisabled === 'undefined' || tableTooltipDisabled === false) {
9994
+ if (_eventContent !== '') {
9995
+ handleTableTooltipMouseEnter(e, _eventContentTooltip);
9996
+ }
9997
+ }
9998
+ }
9999
+ },
10000
+ onMouseLeave: function onMouseLeave(e) {
10001
+ onCellMouseLeave === null || onCellMouseLeave === void 0 ? void 0 : onCellMouseLeave(e);
10002
+ if (_eventContentTooltip !== '') {
10003
+ if (typeof tableTooltipDisabled === 'undefined' || tableTooltipDisabled === false) {
10004
+ if (_eventContent !== '') {
10005
+ handleTableTooltipMouseLeave();
10006
+ }
10007
+ }
10008
+ }
10009
+ },
9985
10010
  onClick: function onClick(e) {
10011
+ //
10012
+ onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(e);
10013
+
9986
10014
  // update row data
9987
10015
  setTableRowNum(rowIndex);
9988
10016
  if (_currentData.length > 0) {
@@ -9998,12 +10026,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
9998
10026
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
9999
10027
  } : _currentData[0]);
10000
10028
  if (EVENTS_ENABLED) {
10001
- setShowEdit(true);
10002
10029
  onModalEditOpen === null || onModalEditOpen === void 0 ? void 0 : onModalEditOpen(_currentData.length === 0 ? {
10003
10030
  rowData: listSectionData,
10004
10031
  id: 0,
10005
10032
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10006
- } : _currentData[0]);
10033
+ } : _currentData[0], function () {
10034
+ return setShowEdit(true);
10035
+ });
10007
10036
  }
10008
10037
  }
10009
10038
  }
@@ -10085,12 +10114,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10085
10114
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10086
10115
  } : _currentData[0]);
10087
10116
  if (EVENTS_ENABLED) {
10088
- setShowEdit(true);
10089
10117
  onModalEditOpen === null || onModalEditOpen === void 0 ? void 0 : onModalEditOpen(_currentData.length === 0 ? {
10090
10118
  rowData: listSectionData,
10091
10119
  id: 0,
10092
10120
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10093
- } : _currentData[0]);
10121
+ } : _currentData[0], function () {
10122
+ return setShowEdit(true);
10123
+ });
10094
10124
  }
10095
10125
  }
10096
10126
  }
@@ -10137,11 +10167,15 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10137
10167
  e.preventDefault();
10138
10168
  e.stopPropagation();
10139
10169
  setShowDelete(true);
10170
+ var _existsContent = _currentData[0];
10171
+ if (typeof _existsContent !== 'undefined') {
10172
+ _existsContent.rowData = listSectionData;
10173
+ }
10140
10174
  onModalDeleteOpen === null || onModalDeleteOpen === void 0 ? void 0 : onModalDeleteOpen(_currentData.length === 0 ? {
10141
10175
  rowData: listSectionData,
10142
10176
  id: 0,
10143
10177
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10144
- } : _currentData[0]);
10178
+ } : _existsContent);
10145
10179
  }
10146
10180
  }, iconRemove ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, iconRemove) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
10147
10181
  width: "20px",
@@ -10164,11 +10198,30 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10164
10198
  "data-day": padZero(d),
10165
10199
  "data-week": i,
10166
10200
  "data-row": rowIndex,
10167
- onMouseEnter: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? function (e) {
10168
- handleTableTooltipMouseEnter(e, _eventContentTooltip);
10169
- } : function () {},
10170
- onMouseLeave: _eventContentTooltip === '' ? function () {} : tableTooltipDisabled ? function () {} : _eventContent !== '' ? handleTableTooltipMouseLeave : function () {},
10201
+ onMouseEnter: function onMouseEnter(e) {
10202
+ onCellMouseEnter === null || onCellMouseEnter === void 0 ? void 0 : onCellMouseEnter(e);
10203
+ if (_eventContentTooltip !== '') {
10204
+ if (typeof tableTooltipDisabled === 'undefined' || tableTooltipDisabled === false) {
10205
+ if (_eventContent !== '') {
10206
+ handleTableTooltipMouseEnter(e, _eventContentTooltip);
10207
+ }
10208
+ }
10209
+ }
10210
+ },
10211
+ onMouseLeave: function onMouseLeave(e) {
10212
+ onCellMouseLeave === null || onCellMouseLeave === void 0 ? void 0 : onCellMouseLeave(e);
10213
+ if (_eventContentTooltip !== '') {
10214
+ if (typeof tableTooltipDisabled === 'undefined' || tableTooltipDisabled === false) {
10215
+ if (_eventContent !== '') {
10216
+ handleTableTooltipMouseLeave();
10217
+ }
10218
+ }
10219
+ }
10220
+ },
10171
10221
  onClick: function onClick(e) {
10222
+ //
10223
+ onCellClick === null || onCellClick === void 0 ? void 0 : onCellClick(e);
10224
+
10172
10225
  // update row data
10173
10226
  setTableRowNum(rowIndex);
10174
10227
  if (_currentData.length > 0) {
@@ -10184,12 +10237,13 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10184
10237
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10185
10238
  } : _currentData[0]);
10186
10239
  if (EVENTS_ENABLED) {
10187
- setShowEdit(true);
10188
10240
  onModalEditOpen === null || onModalEditOpen === void 0 ? void 0 : onModalEditOpen(_currentData.length === 0 ? {
10189
10241
  rowData: listSectionData,
10190
10242
  id: 0,
10191
10243
  date: getCalendarDate("".concat(year, "-").concat(month + 1, "-").concat(d))
10192
- } : _currentData[0]);
10244
+ } : _currentData[0], function () {
10245
+ return setShowEdit(true);
10246
+ });
10193
10247
  }
10194
10248
  }
10195
10249
  }
@@ -10537,7 +10591,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10537
10591
  type: "button",
10538
10592
  className: "e-cal-tl__btn e-cal-tl__btn--today",
10539
10593
  onClick: handleTodayChange
10540
- }, langToday || 'Today'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
10594
+ }, langToday || 'Today'))), val.length === 0 ? null : /*#__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", {
10541
10595
  ref: tableGridRef,
10542
10596
  className: "e-cal-tl-table__timeline-table__wrapper invisible"
10543
10597
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("table", {
@@ -10546,6 +10600,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10546
10600
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("colgroup", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("col", {
10547
10601
  className: "e-cal-tl-table__datagrid-header"
10548
10602
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("col", null), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("col", null)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("thead", {
10603
+ ref: tableGridHeaderRef,
10549
10604
  role: "rowgroup"
10550
10605
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", {
10551
10606
  role: "presentation"
@@ -10623,7 +10678,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
10623
10678
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", {
10624
10679
  key: i
10625
10680
  }, generateDaysUi(item.eventSources, item.listSection, i, true));
10626
- }))))))))))), 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()), {
10681
+ })))))))))))), 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()), {
10627
10682
  show: showDelete,
10628
10683
  maskOpacity: modalMaskOpacity,
10629
10684
  triggerClassName: "",
@@ -1,6 +1,18 @@
1
1
  /* ======================================================
2
2
  <!-- Live Search -->
3
3
  /* ====================================================== */
4
+ .livesearch__wrapper {
5
+ /*------ Search button ------*/
6
+ }
7
+ .livesearch__wrapper .livesearch__wrapper-searchbtn {
8
+ position: absolute;
9
+ right: 0;
10
+ top: 50%;
11
+ transform: translateY(-50%);
12
+ z-index: 5;
13
+ pointer-events: auto;
14
+ }
15
+
4
16
  /*------ List ------*/
5
17
  .livesearch__options-wrapper {
6
18
  --livesearch-listgroup-popwin-min-width: 200px;
@@ -9125,22 +9125,24 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
9125
9125
  windowScrollUpdate = _useWindowScroll2[1];
9126
9126
  function popwinPosInit() {
9127
9127
  var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
9128
- if (listContentRef.current === null || inputRef.current === null) return;
9128
+ if (listContentRef.current === null || rootRef.current === null || inputRef.current === null) return;
9129
9129
  var contentHeightOffset = 80;
9130
9130
  var contentMaxHeight = 0;
9131
9131
 
9132
9132
  // update modal position
9133
9133
  var _modalRef = document.querySelector("#livesearch__options-wrapper-".concat(idRes));
9134
9134
  var _triggerRef = inputRef.current;
9135
+ var _triggerXaxisRef = rootRef.current;
9135
9136
 
9136
9137
  // console.log(getAbsolutePositionOfStage(_triggerRef));
9137
9138
 
9138
9139
  if (_modalRef === null) return;
9139
- var _getAbsolutePositionO = (0,funda_utils__WEBPACK_IMPORTED_MODULE_3__.getAbsolutePositionOfStage)(_triggerRef),
9140
- x = _getAbsolutePositionO.x,
9141
- y = _getAbsolutePositionO.y,
9142
- width = _getAbsolutePositionO.width,
9143
- height = _getAbsolutePositionO.height;
9140
+ var _getAbsolutePositionO = (0,funda_utils__WEBPACK_IMPORTED_MODULE_3__.getAbsolutePositionOfStage)(_triggerXaxisRef),
9141
+ x = _getAbsolutePositionO.x;
9142
+ var _getAbsolutePositionO2 = (0,funda_utils__WEBPACK_IMPORTED_MODULE_3__.getAbsolutePositionOfStage)(_triggerRef),
9143
+ y = _getAbsolutePositionO2.y,
9144
+ width = _getAbsolutePositionO2.width,
9145
+ height = _getAbsolutePositionO2.height;
9144
9146
  var _triggerBox = _triggerRef.getBoundingClientRect();
9145
9147
  var targetPos = '';
9146
9148
 
@@ -9213,7 +9215,7 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
9213
9215
  // Determine whether it exceeds the far right or left side of the screen
9214
9216
  var _modalContent = _modalRef;
9215
9217
  var _modalBox = _modalContent.getBoundingClientRect();
9216
- if (typeof _modalContent.dataset.offset === 'undefined') {
9218
+ if (typeof _modalContent.dataset.offset === 'undefined' && _modalBox.left > 0) {
9217
9219
  // 10 pixels is used to account for some bias in mobile devices
9218
9220
  if (_modalBox.right + 10 > window.innerWidth) {
9219
9221
  var _modalOffsetPosition = _modalBox.right - window.innerWidth + EXCEEDED_SIDE_POS_OFFSET;
@@ -9782,7 +9784,7 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
9782
9784
  onClick: handleSelect
9783
9785
  });
9784
9786
  }) : null))))) : null, hideIcon ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !fetchTrigger ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
9785
- className: "livesearch__wrapper-searchbtn position-absolute top-0 end-0"
9787
+ className: "livesearch__wrapper-searchbtn"
9786
9788
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
9787
9789
  tabIndex: -1,
9788
9790
  type: "button",