funda-ui 4.2.255 → 4.2.445

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 (77) hide show
  1. package/CascadingSelect/index.js +1 -1
  2. package/EventCalendar/index.css +3 -0
  3. package/EventCalendar/index.d.ts +4 -1
  4. package/EventCalendar/index.js +16 -4
  5. package/EventCalendarTimeline/index.css +17 -0
  6. package/EventCalendarTimeline/index.d.ts +9 -2
  7. package/EventCalendarTimeline/index.js +77 -22
  8. package/LiveSearch/index.css +12 -0
  9. package/LiveSearch/index.js +1 -1
  10. package/ModalDialog/index.js +1 -1
  11. package/MultilevelDropdownMenu/index.css +2 -2
  12. package/MultilevelDropdownMenu/index.js +54 -46
  13. package/MultipleSelect/index.css +35 -26
  14. package/MultipleSelect/index.d.ts +3 -0
  15. package/MultipleSelect/index.js +366 -134
  16. package/NativeSelect/index.js +75 -47
  17. package/Pagination/index.d.ts +2 -0
  18. package/Pagination/index.js +25 -21
  19. package/Radio/index.js +14 -6
  20. package/RangeSlider/index.css +1 -0
  21. package/Select/index.css +5 -0
  22. package/Select/index.d.ts +1 -0
  23. package/Select/index.js +31 -11
  24. package/Tabs/index.js +13 -2
  25. package/Tree/index.js +90 -56
  26. package/lib/cjs/CascadingSelect/index.js +1 -1
  27. package/lib/cjs/EventCalendar/index.d.ts +4 -1
  28. package/lib/cjs/EventCalendar/index.js +16 -4
  29. package/lib/cjs/EventCalendarTimeline/index.d.ts +9 -2
  30. package/lib/cjs/EventCalendarTimeline/index.js +77 -22
  31. package/lib/cjs/LiveSearch/index.js +1 -1
  32. package/lib/cjs/ModalDialog/index.js +1 -1
  33. package/lib/cjs/MultilevelDropdownMenu/index.js +54 -46
  34. package/lib/cjs/MultipleSelect/index.d.ts +3 -0
  35. package/lib/cjs/MultipleSelect/index.js +366 -134
  36. package/lib/cjs/NativeSelect/index.js +75 -47
  37. package/lib/cjs/Pagination/index.d.ts +2 -0
  38. package/lib/cjs/Pagination/index.js +25 -21
  39. package/lib/cjs/Radio/index.js +14 -6
  40. package/lib/cjs/Select/index.d.ts +1 -0
  41. package/lib/cjs/Select/index.js +31 -11
  42. package/lib/cjs/Tabs/index.js +13 -2
  43. package/lib/cjs/Tree/index.js +90 -56
  44. package/lib/css/EventCalendar/index.css +3 -0
  45. package/lib/css/EventCalendarTimeline/index.css +17 -0
  46. package/lib/css/LiveSearch/index.css +12 -0
  47. package/lib/css/MultilevelDropdownMenu/index.css +2 -2
  48. package/lib/css/MultipleSelect/index.css +35 -26
  49. package/lib/css/RangeSlider/index.css +1 -0
  50. package/lib/css/Select/index.css +5 -0
  51. package/lib/esm/CascadingSelect/index.tsx +1 -1
  52. package/lib/esm/EventCalendar/index.scss +2 -0
  53. package/lib/esm/EventCalendar/index.tsx +23 -6
  54. package/lib/esm/EventCalendarTimeline/index.scss +24 -1
  55. package/lib/esm/EventCalendarTimeline/index.tsx +195 -118
  56. package/lib/esm/LiveSearch/index.scss +14 -1
  57. package/lib/esm/LiveSearch/index.tsx +1 -1
  58. package/lib/esm/ModalDialog/index.tsx +1 -1
  59. package/lib/esm/MultilevelDropdownMenu/{MenuList.tsx → ItemList.tsx} +52 -45
  60. package/lib/esm/MultilevelDropdownMenu/index.scss +2 -2
  61. package/lib/esm/MultilevelDropdownMenu/index.tsx +12 -4
  62. package/lib/esm/MultipleSelect/ItemList.tsx +300 -0
  63. package/lib/esm/MultipleSelect/index.scss +61 -30
  64. package/lib/esm/MultipleSelect/index.tsx +56 -87
  65. package/lib/esm/MultipleSelect/multiple-select-utils/func.ts +29 -0
  66. package/lib/esm/NativeSelect/index.tsx +4 -18
  67. package/lib/esm/NativeSelect/native-select-utils/func.ts +40 -0
  68. package/lib/esm/Pagination/index.tsx +31 -22
  69. package/lib/esm/Radio/index.tsx +19 -6
  70. package/lib/esm/RangeSlider/index.scss +2 -0
  71. package/lib/esm/Select/index.scss +6 -1
  72. package/lib/esm/Select/index.tsx +70 -54
  73. package/lib/esm/Table/Table.tsx +2 -0
  74. package/lib/esm/Tabs/Tabs.tsx +19 -4
  75. package/lib/esm/Tree/TreeList.tsx +61 -54
  76. package/lib/esm/Tree/index.tsx +4 -0
  77. package/package.json +1 -1
package/Select/index.js CHANGED
@@ -4477,7 +4477,7 @@ var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
4477
4477
  // EXTERNAL MODULE: ../Utils/dist/cjs/index.js
4478
4478
  var dist_cjs = __webpack_require__(456);
4479
4479
  ;// CONCATENATED MODULE: ./src/index.tsx
4480
- var _excluded = ["contentRef", "popupRef", "wrapperClassName", "controlClassName", "controlExClassName", "exceededSidePosOffset", "multiSelect", "multiSelectSelectedItemOnlyStatus", "renderSelectedValue", "disabled", "required", "value", "label", "name", "readOnly", "placeholder", "id", "autoComplete", "autoCapitalize", "spellCheck", "options", "cleanTrigger", "lockBodyScroll", "hierarchical", "indentation", "doubleIndent", "style", "depth", "controlArrow", "winWidth", "tabIndex", "fetchTrigger", "fetchTriggerForDefaultData", "fetchNoneInfo", "fetchUpdate", "fetchFuncAsync", "fetchFuncMethod", "fetchFuncMethodParams", "data", "extractValueByBrackets", "fetchCallback", "onFetch", "onLoad", "onSelect", "onChange", "onBlur", "onFocus"];
4480
+ var _excluded = ["contentRef", "popupRef", "wrapperClassName", "controlClassName", "controlExClassName", "exceededSidePosOffset", "multiSelect", "multiSelectEntireAreaTrigger", "multiSelectSelectedItemOnlyStatus", "renderSelectedValue", "disabled", "required", "value", "label", "name", "readOnly", "placeholder", "id", "autoComplete", "autoCapitalize", "spellCheck", "options", "cleanTrigger", "lockBodyScroll", "hierarchical", "indentation", "doubleIndent", "style", "depth", "controlArrow", "winWidth", "tabIndex", "fetchTrigger", "fetchTriggerForDefaultData", "fetchNoneInfo", "fetchUpdate", "fetchFuncAsync", "fetchFuncMethod", "fetchFuncMethodParams", "data", "extractValueByBrackets", "fetchCallback", "onFetch", "onLoad", "onSelect", "onChange", "onBlur", "onFocus"];
4481
4481
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
4482
4482
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4483
4483
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -4512,6 +4512,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
4512
4512
  controlExClassName = props.controlExClassName,
4513
4513
  exceededSidePosOffset = props.exceededSidePosOffset,
4514
4514
  multiSelect = props.multiSelect,
4515
+ multiSelectEntireAreaTrigger = props.multiSelectEntireAreaTrigger,
4515
4516
  multiSelectSelectedItemOnlyStatus = props.multiSelectSelectedItemOnlyStatus,
4516
4517
  renderSelectedValue = props.renderSelectedValue,
4517
4518
  disabled = props.disabled,
@@ -4559,7 +4560,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
4559
4560
 
4560
4561
  var INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : typeof readOnly === 'undefined' ? null : readOnly;
4561
4562
  var VALUE_BY_BRACKETS = typeof extractValueByBrackets === 'undefined' ? true : extractValueByBrackets;
4562
- var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? true : lockBodyScroll;
4563
+ var LOCK_BODY_SCROLL = typeof lockBodyScroll === 'undefined' ? false : lockBodyScroll;
4563
4564
  var WIN_WIDTH = typeof winWidth === 'function' ? winWidth() : winWidth ? winWidth : 'auto';
4564
4565
  var INDENT_PLACEHOLDER = doubleIndent ? "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" : "&nbsp;&nbsp;&nbsp;&nbsp;";
4565
4566
  var INDENT_LAST_PLACEHOLDER = "".concat(typeof indentation !== 'undefined' && indentation !== '' ? "".concat(indentation, "&nbsp;&nbsp;") : '');
@@ -4623,10 +4624,11 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
4623
4624
  var blinkingCursorPosDivRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
4624
4625
  var selectedSign = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
4625
4626
  var MULTI_SEL_VALID = multiSelect ? multiSelect.valid : false;
4627
+ var MULTI_SEL_ENTIRE_AREA_TRIGGER = typeof multiSelectEntireAreaTrigger === 'undefined' ? true : multiSelectEntireAreaTrigger;
4626
4628
  var MULTI_SEL_LABEL = multiSelect ? multiSelect.selectAllLabel : 'Select all options';
4627
4629
  var MULTI_SEL_SELECTED_STATUS = {
4628
4630
  itemsLabel: '{num} Selected',
4629
- allItemsLabel: 'All Content',
4631
+ allItemsLabel: 'All Content ({num})',
4630
4632
  noneLabel: 'No items selected'
4631
4633
  };
4632
4634
  var _useState19 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
@@ -4658,6 +4660,12 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
4658
4660
  }, [popupRef]);
4659
4661
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(contentRef, function () {
4660
4662
  return {
4663
+ active: function active() {
4664
+ handleShowList();
4665
+ },
4666
+ focus: function focus() {
4667
+ selectInputRef.current.select();
4668
+ },
4661
4669
  clear: function clear(cb) {
4662
4670
  if (MULTI_SEL_VALID) {
4663
4671
  updateOptionCheckboxes('remove');
@@ -5693,6 +5701,8 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
5693
5701
  }
5694
5702
  function handleMultiControlItemRemove(event) {
5695
5703
  event.preventDefault();
5704
+ event.stopPropagation(); /* REQUIRED */
5705
+
5696
5706
  var valueToRemove = String(event.currentTarget.dataset.value);
5697
5707
  var getCurrentIndex = controlArr.values.findIndex(function (item) {
5698
5708
  return item.toString() === valueToRemove;
@@ -6091,7 +6101,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
6091
6101
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
6092
6102
  d: "M144,6525.39 L142.594,6524 L133.987,6532.261 L133.069,6531.38 L133.074,6531.385 L125.427,6524.045 L124,6525.414 C126.113,6527.443 132.014,6533.107 133.987,6535 C135.453,6533.594 134.024,6534.965 144,6525.39"
6093
6103
  })))))), fetchTrigger ? /*#__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("span", {
6094
- className: "custom-select-multi__control-searchbtn position-absolute top-0 end-0"
6104
+ className: "custom-select-multi__control-searchbtn"
6095
6105
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
6096
6106
  tabIndex: -1,
6097
6107
  type: "button",
@@ -6118,17 +6128,27 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
6118
6128
  className: "custom-select-multi__inputplaceholder-wrapper"
6119
6129
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
6120
6130
  className: "custom-select-multi__inputplaceholder-inner"
6121
- }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
6131
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
6132
+ style: MULTI_SEL_ENTIRE_AREA_TRIGGER ? {
6133
+ pointerEvents: 'auto',
6134
+ cursor: 'pointer'
6135
+ } : undefined,
6136
+ onClick: MULTI_SEL_ENTIRE_AREA_TRIGGER ? typeof readOnly === 'undefined' || !readOnly ? handleShowList : function () {
6137
+ return void 0;
6138
+ } : function () {
6139
+ return void 0;
6140
+ }
6141
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("ul", {
6122
6142
  className: "custom-select-multi__list"
6123
6143
  }, typeof multiSelectSelectedItemOnlyStatus !== 'undefined' ? /*#__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("li", {
6124
6144
  className: "custom-select-multi__list-item-statusstring"
6125
- }, typeof multiSelectSelectedItemOnlyStatus.itemsLabel === 'string' && controlArr.labels.length > 0 && controlArr.labels.length < optionsData.length ? multiSelectSelectedItemOnlyStatus.itemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null, typeof multiSelectSelectedItemOnlyStatus.noneLabel === 'string' && controlArr.labels.length === 0 ? multiSelectSelectedItemOnlyStatus.noneLabel : null, typeof multiSelectSelectedItemOnlyStatus.allItemsLabel === 'string' && controlArr.labels.length === optionsData.length ? multiSelectSelectedItemOnlyStatus.allItemsLabel : null, typeof multiSelectSelectedItemOnlyStatus.itemsLabel !== 'string' && controlArr.labels.length > 0 ? MULTI_SEL_SELECTED_STATUS.itemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null, typeof multiSelectSelectedItemOnlyStatus.noneLabel !== 'string' && controlArr.labels.length === 0 ? MULTI_SEL_SELECTED_STATUS.noneLabel : null, typeof multiSelectSelectedItemOnlyStatus.allItemsLabel !== 'string' && controlArr.labels.length === optionsData.length ? MULTI_SEL_SELECTED_STATUS.allItemsLabel : null)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, typeof renderSelectedValue === 'function' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, renderSelectedValue(controlArr, handleMultiControlItemRemove)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, controlArr.labels.map(function (item, index) {
6145
+ }, typeof multiSelectSelectedItemOnlyStatus.itemsLabel === 'string' && controlArr.labels.length > 0 && controlArr.labels.length < optionsData.length ? multiSelectSelectedItemOnlyStatus.itemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null, typeof multiSelectSelectedItemOnlyStatus.noneLabel === 'string' && controlArr.labels.length === 0 ? multiSelectSelectedItemOnlyStatus.noneLabel : null, typeof multiSelectSelectedItemOnlyStatus.allItemsLabel === 'string' && controlArr.labels.length === optionsData.length ? multiSelectSelectedItemOnlyStatus.allItemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null, typeof multiSelectSelectedItemOnlyStatus.itemsLabel !== 'string' && controlArr.labels.length > 0 ? MULTI_SEL_SELECTED_STATUS.itemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null, typeof multiSelectSelectedItemOnlyStatus.noneLabel !== 'string' && controlArr.labels.length === 0 ? MULTI_SEL_SELECTED_STATUS.noneLabel : null, typeof multiSelectSelectedItemOnlyStatus.allItemsLabel !== 'string' && controlArr.labels.length === optionsData.length ? MULTI_SEL_SELECTED_STATUS.allItemsLabel.replace('{num}', "".concat(controlArr.labels.length)) : null)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, typeof renderSelectedValue === 'function' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, renderSelectedValue(controlArr, handleMultiControlItemRemove)) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, controlArr.labels.map(function (item, index) {
6126
6146
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
6127
6147
  key: 'selected-item-' + index,
6128
6148
  "data-value": controlArr.values[index],
6129
6149
  "data-label-full": item,
6130
- "data-label-text": stripHTML(item)
6131
- }, stripHTML(item), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("a", {
6150
+ "data-label-text": formatIndentVal(stripHTML(item), INDENT_LAST_PLACEHOLDER)
6151
+ }, formatIndentVal(stripHTML(item), INDENT_LAST_PLACEHOLDER), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("a", {
6132
6152
  href: "#",
6133
6153
  tabIndex: -1,
6134
6154
  onClick: handleMultiControlItemRemove,
@@ -6141,7 +6161,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
6141
6161
  fill: "#000",
6142
6162
  d: "M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"
6143
6163
  }))));
6144
- })), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
6164
+ }))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
6145
6165
  className: "custom-select-multi__list-item-add"
6146
6166
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
6147
6167
  className: "position-relative"
@@ -6180,7 +6200,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
6180
6200
  autoComplete: typeof autoComplete === 'undefined' ? 'off' : autoComplete,
6181
6201
  autoCapitalize: typeof autoCapitalize === 'undefined' ? 'off' : autoCapitalize,
6182
6202
  spellCheck: typeof spellCheck === 'undefined' ? false : spellCheck
6183
- }, attributes)))))))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
6203
+ }, attributes))))))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
6184
6204
  className: "custom-select-arrow ".concat(isOpen ? 'reverse' : ''),
6185
6205
  style: {
6186
6206
  display: fetchTrigger ? 'none' : 'inline-block'
@@ -6202,7 +6222,7 @@ var Select = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_
6202
6222
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
6203
6223
  d: "M144,6525.39 L142.594,6524 L133.987,6532.261 L133.069,6531.38 L133.074,6531.385 L125.427,6524.045 L124,6525.414 C126.113,6527.443 132.014,6533.107 133.987,6535 C135.453,6533.594 134.024,6534.965 144,6525.39"
6204
6224
  })))))), fetchTrigger ? /*#__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("span", {
6205
- className: "custom-select-multi__control-searchbtn position-absolute top-0 end-0"
6225
+ className: "custom-select-multi__control-searchbtn"
6206
6226
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
6207
6227
  tabIndex: -1,
6208
6228
  type: "button",
package/Tabs/index.js CHANGED
@@ -4267,7 +4267,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
4267
4267
  //
4268
4268
 
4269
4269
 
4270
- var Tabs = function Tabs(props) {
4270
+ var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef)(function (props, externalRef) {
4271
4271
  var wrapperClassName = props.wrapperClassName,
4272
4272
  navClassName = props.navClassName,
4273
4273
  panelClassName = props.panelClassName,
@@ -4281,6 +4281,17 @@ var Tabs = function Tabs(props) {
4281
4281
  var uniqueID = (0,cjs.useComId)();
4282
4282
  var rootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
4283
4283
  var speed = animTransitionDuration ? animTransitionDuration : 150;
4284
+
4285
+ // exposes the following methods
4286
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(externalRef, function () {
4287
+ return {
4288
+ go: function go(index) {
4289
+ var reactDomWrapperEl = rootRef.current;
4290
+ var $li = [].slice.call(reactDomWrapperEl.querySelectorAll('ul > li'));
4291
+ itemInit($li[index], false);
4292
+ }
4293
+ };
4294
+ }, [externalRef]);
4284
4295
  var elDisplay = function elDisplay(type, node) {
4285
4296
  if (node === null) return;
4286
4297
 
@@ -4439,7 +4450,7 @@ var Tabs = function Tabs(props) {
4439
4450
  });
4440
4451
  }
4441
4452
  }())));
4442
- };
4453
+ });
4443
4454
  /* harmony default export */ const src_Tabs = (Tabs);
4444
4455
  ;// CONCATENATED MODULE: ./src/index.tsx
4445
4456
 
package/Tree/index.js CHANGED
@@ -4255,10 +4255,11 @@ var activeClass = function activeClass(el, mode) {
4255
4255
  ;// CONCATENATED MODULE: ./src/TreeList.tsx
4256
4256
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4257
4257
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4258
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4259
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
4260
4258
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
4261
4259
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
4260
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e3) { function e(_x3) { return _e3.apply(this, arguments); } e.toString = function () { return _e3.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
4261
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4262
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
4262
4263
 
4263
4264
 
4264
4265
  // HAS CHECKBOX
@@ -4276,6 +4277,7 @@ function TreeList(props) {
4276
4277
  arrow = props.arrow,
4277
4278
  arrowIcons = props.arrowIcons,
4278
4279
  childClassName = props.childClassName,
4280
+ orginalData = props.orginalData,
4279
4281
  data = props.data,
4280
4282
  getCheckedPrint = props.getCheckedPrint,
4281
4283
  updateCheckedPrint = props.updateCheckedPrint,
@@ -4342,55 +4344,82 @@ function TreeList(props) {
4342
4344
  if (item.key === key) arr[index].checked = val;
4343
4345
  });
4344
4346
  };
4345
- var setCheckboxIndeterminateData = function setCheckboxIndeterminateData(arr, key, val) {
4346
- arr.forEach(function (item, index) {
4347
- if (item.key === key) arr[index].indeterminate = val;
4348
- });
4349
- };
4350
- var setCheckboxIndeterminateStatus = function setCheckboxIndeterminateStatus(checkedData, printData, el) {
4351
- var _parentsLi = [];
4352
- if (el !== null) {
4353
- _parentsLi = [].slice.call((0,cjs.getParents)(el, 'li'));
4354
- _parentsLi.splice(0, 1);
4355
- } else {
4356
- _parentsLi = [].slice.call(document.querySelectorAll("#".concat(checkboxNamePrefix, " li")));
4347
+
4348
+ // check whether the node is in the Indeterminate state
4349
+ var isIndeterminate = function isIndeterminate(node) {
4350
+ if (!node.children || node.children.length === 0) {
4351
+ return false;
4357
4352
  }
4353
+ var hasChecked = false;
4354
+ var hasUnchecked = false;
4355
+ var _iterator = _createForOfIteratorHelper(node.children),
4356
+ _step;
4357
+ try {
4358
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
4359
+ var child = _step.value;
4360
+ if (isIndeterminate(child)) {
4361
+ return true;
4362
+ }
4363
+ if (child.checked) {
4364
+ hasChecked = true;
4365
+ } else {
4366
+ hasUnchecked = true;
4367
+ }
4358
4368
 
4359
- //---
4360
- _parentsLi.forEach(function (node) {
4361
- var _checkboxes = (0,cjs.getChildren)(node, '[type="checkbox"]');
4362
- var parentKey = typeof _checkboxes[0] === 'undefined' ? '' : _checkboxes[0].dataset.key;
4369
+ // If there are some selected and some unchecked, the node is Indeterminate
4370
+ if (hasChecked && hasUnchecked) {
4371
+ return true;
4372
+ }
4373
+ }
4363
4374
 
4364
- //
4365
- var _checkedLengthCalcArr = [];
4366
- checkedData.forEach(function (oitem, oindex) {
4367
- _checkboxes.forEach(function (el) {
4368
- if (el.dataset.key === oitem.key) _checkedLengthCalcArr.push(oitem);
4369
- });
4375
+ // If all child nodes are the same, it is not Indeterminate
4376
+ } catch (err) {
4377
+ _iterator.e(err);
4378
+ } finally {
4379
+ _iterator.f();
4380
+ }
4381
+ return false;
4382
+ };
4383
+ var updateTreeCheckedItems = function updateTreeCheckedItems(arr, flatArr) {
4384
+ if (!Array.isArray(arr)) return;
4385
+ var _loop = function _loop() {
4386
+ var orginalDataKey = arr[i].key;
4387
+ var targetItem = flatArr.find(function (v) {
4388
+ return v.key === orginalDataKey;
4370
4389
  });
4371
- _checkedLengthCalcArr = _checkedLengthCalcArr.filter(function (el) {
4372
- return el.key !== parentKey;
4390
+ if (typeof targetItem !== 'undefined') {
4391
+ // update value of checked
4392
+ arr[i].checked = targetItem.checked;
4393
+ }
4394
+ if (arr[i].children) updateTreeCheckedItems(arr[i].children, flatArr);
4395
+ };
4396
+ for (var i = 0; i < arr.length; i++) {
4397
+ _loop();
4398
+ }
4399
+ };
4400
+ var updateIndeterminateData = function updateIndeterminateData(arr, flatArr) {
4401
+ if (!Array.isArray(arr)) return;
4402
+ var _loop2 = function _loop2() {
4403
+ var orginalDataKey = arr[i].key;
4404
+ var targetItem = flatArr.find(function (v) {
4405
+ return v.key === orginalDataKey;
4373
4406
  });
4374
-
4375
- //
4376
- var _checkedLength = _checkedLengthCalcArr.filter(function (el) {
4377
- return el.checked === true;
4378
- }).length;
4379
- if (_checkedLength === 0) {
4380
- setCheckboxIndeterminateData(checkedData, parentKey, false);
4381
- } else {
4382
- if (_checkedLength === _checkboxes.length - 1) {
4383
- setCheckboxIndeterminateData(checkedData, parentKey, false);
4384
- setCheckboxCheckedData(checkedData, parentKey, true);
4385
- printData.push(formatCheckboxControlVal(_checkboxes[0]));
4386
- }
4387
- if (_checkedLength < _checkboxes.length - 1) {
4388
- setCheckboxIndeterminateData(checkedData, parentKey, true);
4389
- setCheckboxCheckedData(checkedData, parentKey, false);
4390
- printData = removeItemOnce(printData, parentKey);
4391
- }
4407
+ if (typeof targetItem !== 'undefined') {
4408
+ // update indeterminate of item
4409
+ targetItem.indeterminate = isIndeterminate(arr[i]);
4392
4410
  }
4393
- });
4411
+ if (arr[i].children) updateIndeterminateData(arr[i].children, flatArr);
4412
+ };
4413
+ for (var i = 0; i < arr.length; i++) {
4414
+ _loop2();
4415
+ }
4416
+ };
4417
+ var setCheckboxIndeterminateStatus = function setCheckboxIndeterminateStatus(checkedData, printData, el) {
4418
+ // update checked items from orginal data
4419
+ updateTreeCheckedItems(orginalData, checkedData);
4420
+
4421
+ // check whether the node is in the Indeterminate state
4422
+ updateIndeterminateData(orginalData, checkedData);
4394
4423
  return [checkedData, printData];
4395
4424
  };
4396
4425
  var closeChild = function closeChild(hyperlink, ul) {
@@ -4512,7 +4541,6 @@ function TreeList(props) {
4512
4541
  //-----------
4513
4542
  if (val === true) {
4514
4543
  _res.push(formatCheckboxControlVal(el));
4515
- setCheckboxIndeterminateData(_checkedData, _curKey, false);
4516
4544
  setCheckboxCheckedData(_checkedData, _curKey, true);
4517
4545
  } else {
4518
4546
  setCheckboxCheckedData(_checkedData, _curKey, false);
@@ -4525,7 +4553,6 @@ function TreeList(props) {
4525
4553
  [].slice.call((0,cjs.getChildren)(el.closest('li'), '[type="checkbox"]')).forEach(function (node) {
4526
4554
  if (val === true) {
4527
4555
  if (node.dataset.key !== _curKey) {
4528
- setCheckboxIndeterminateData(_checkedData, node.dataset.key, false);
4529
4556
  setCheckboxCheckedData(_checkedData, node.dataset.key, true);
4530
4557
  _res.push(formatCheckboxControlVal(node));
4531
4558
  }
@@ -4707,6 +4734,7 @@ function TreeList(props) {
4707
4734
  }), titleArrowGenerator()), item.customContentToHyperlink), item.customContentToLiTag, item.children && item.children.length > 0 && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TreeList, {
4708
4735
  rootNode: rootNode,
4709
4736
  checkboxNamePrefix: checkboxNamePrefix,
4737
+ orginalData: orginalData,
4710
4738
  data: item.children,
4711
4739
  first: false,
4712
4740
  arrow: arrow,
@@ -4773,20 +4801,24 @@ var Tree = function Tree(props) {
4773
4801
  var rootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
4774
4802
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null),
4775
4803
  _useState2 = src_slicedToArray(_useState, 2),
4776
- list = _useState2[0],
4777
- setList = _useState2[1];
4778
- var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
4804
+ orginalData = _useState2[0],
4805
+ setOrginalData = _useState2[1];
4806
+ var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null),
4779
4807
  _useState4 = src_slicedToArray(_useState3, 2),
4780
- flatList = _useState4[0],
4781
- setFlatList = _useState4[1];
4808
+ list = _useState4[0],
4809
+ setList = _useState4[1];
4782
4810
  var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
4783
4811
  _useState6 = src_slicedToArray(_useState5, 2),
4784
- checkedPrint = _useState6[0],
4785
- setCheckedPrint = _useState6[1];
4812
+ flatList = _useState6[0],
4813
+ setFlatList = _useState6[1];
4786
4814
  var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
4787
4815
  _useState8 = src_slicedToArray(_useState7, 2),
4788
- checkedData = _useState8[0],
4789
- setCheckedData = _useState8[1];
4816
+ checkedPrint = _useState8[0],
4817
+ setCheckedPrint = _useState8[1];
4818
+ var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
4819
+ _useState10 = src_slicedToArray(_useState9, 2),
4820
+ checkedData = _useState10[0],
4821
+ setCheckedData = _useState10[1];
4790
4822
  var expandClassName = "".concat(showLine ? 'show-line' : '', " ").concat(disableArrow ? 'hide-arrow' : '', " ").concat(disableCollapse ? 'collapse-disabled' : '', " ").concat(lineStyle ? "line--".concat(lineStyle) : '', " ").concat(checkable ? 'has-checkbox' : '');
4791
4823
  var updateTreeData = function updateTreeData(list, key, children) {
4792
4824
  return list ? list.map(function (node) {
@@ -5016,6 +5048,7 @@ var Tree = function Tree(props) {
5016
5048
  }
5017
5049
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
5018
5050
  initDefaultValue(null, null, true, retrieveData);
5051
+ setOrginalData(data);
5019
5052
  }, [data, retrieveData]);
5020
5053
  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("nav", {
5021
5054
  tabIndex: 0,
@@ -5031,6 +5064,7 @@ var Tree = function Tree(props) {
5031
5064
  disableCollapse: disableCollapse,
5032
5065
  arrow: arrow,
5033
5066
  arrowIcons: arrowIcons,
5067
+ orginalData: orginalData,
5034
5068
  data: Array.isArray(retrieveData) && retrieveData.length > 0 ? filterRetriveData(flatList, retrieveData) : list,
5035
5069
  childClassName: childClassName || 'tree-diagram-default-nav',
5036
5070
  onSelect: onSelect,
@@ -5081,7 +5081,7 @@ var CascadingSelect = function CascadingSelect(props) {
5081
5081
  var _findNode = searchObject(_data, function (v) {
5082
5082
  return v != null && v != undefined && v[rowQueryAttr] == targetVal[col - 1];
5083
5083
  });
5084
- var childList = _findNode[0].children;
5084
+ var childList = typeof _findNode[0] !== 'undefined' ? _findNode[0].children : undefined;
5085
5085
 
5086
5086
  // STEP 1: ===========
5087
5087
  //active item from current column
@@ -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
  }
@@ -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;