funda-ui 1.1.145 → 1.1.148

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.
@@ -2465,7 +2465,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
2465
2465
  return _ref2.apply(this, arguments);
2466
2466
  };
2467
2467
  }()
2468
- }, modalContent)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2468
+ }, modalContent)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2469
2469
  ref: tableTooltipModalRef,
2470
2470
  id: "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
2471
2471
  className: "e-cal-tl-table__cell-tooltipwrapper d-inline-block ".concat(isShowTableTooltip ? 'active' : ''),
@@ -803,6 +803,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
803
803
  onBlur = props.onBlur,
804
804
  onFocus = props.onFocus,
805
805
  attributes = _objectWithoutProperties(props, _excluded);
806
+ var LIVE_SEARCH_OK = typeof fetchTrigger !== 'undefined' && fetchTrigger === true ? true : false;
806
807
  var LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof window['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
807
808
 
808
809
  var INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : typeof readOnly === 'undefined' ? null : readOnly;
@@ -1433,9 +1434,13 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1433
1434
  function cancel() {
1434
1435
  // hide list
1435
1436
  setIsOpen(false);
1436
-
1437
- // restore data
1438
- setOptionsData(orginalData);
1437
+ if (LIVE_SEARCH_OK) {
1438
+ // clean data
1439
+ setOptionsData([]);
1440
+ } else {
1441
+ // restore data
1442
+ setOptionsData(orginalData);
1443
+ }
1439
1444
 
1440
1445
  // update temporary value
1441
1446
  setControlTempValue(null);
@@ -1446,9 +1451,13 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1446
1451
  function activate() {
1447
1452
  // show list
1448
1453
  setIsOpen(true);
1449
-
1450
- // restore data
1451
- setOptionsData(orginalData);
1454
+ if (LIVE_SEARCH_OK) {
1455
+ // clean data
1456
+ setOptionsData([]);
1457
+ } else {
1458
+ // restore data
1459
+ setOptionsData(orginalData);
1460
+ }
1452
1461
 
1453
1462
  // update temporary value
1454
1463
  setControlTempValue('');
@@ -1852,8 +1861,14 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1852
1861
  //
1853
1862
  if (val.replace(/\s/g, "") === '') {
1854
1863
  // No elements found. Consider changing the search query.
1855
- // restore data
1856
- setOptionsData(orginalData);
1864
+
1865
+ if (LIVE_SEARCH_OK) {
1866
+ // clean data
1867
+ setOptionsData([]);
1868
+ } else {
1869
+ // restore data
1870
+ setOptionsData(orginalData);
1871
+ }
1857
1872
  } else {
1858
1873
  handleChangeFetchSafe(val);
1859
1874
  }
@@ -2162,7 +2177,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2162
2177
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
2163
2178
  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"
2164
2179
  })))))), 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", {
2165
- className: "multifunc-select-multi__control-searchbtn position-absolute top-0 end-0"
2180
+ className: "multifunc-select-single__control-searchbtn position-absolute top-0 end-0"
2166
2181
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
2167
2182
  tabIndex: -1,
2168
2183
  type: "button",
package/Tooltip/index.js CHANGED
@@ -386,7 +386,7 @@ var Tooltip = function Tooltip(props) {
386
386
  (_document$querySelect = document.querySelector("#tooltip__wrapper-".concat(idRes))) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.remove();
387
387
  };
388
388
  }, []);
389
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
389
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
390
390
  ref: modalRef,
391
391
  id: "tooltip__wrapper-".concat(idRes),
392
392
  className: "".concat(wrapperClassName || wrapperClassName === '' ? "tooltip__wrapper ".concat(wrapperClassName) : "tooltip__wrapper d-inline-block", " ").concat(isShow ? 'active' : ''),
@@ -2465,7 +2465,7 @@ var EventCalendarTimeline = function EventCalendarTimeline(props) {
2465
2465
  return _ref2.apply(this, arguments);
2466
2466
  };
2467
2467
  }()
2468
- }, modalContent)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2468
+ }, modalContent)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
2469
2469
  ref: tableTooltipModalRef,
2470
2470
  id: "e-cal-tl-table__cell-tooltipwrapper-".concat(idRes),
2471
2471
  className: "e-cal-tl-table__cell-tooltipwrapper d-inline-block ".concat(isShowTableTooltip ? 'active' : ''),
@@ -803,6 +803,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
803
803
  onBlur = props.onBlur,
804
804
  onFocus = props.onFocus,
805
805
  attributes = _objectWithoutProperties(props, _excluded);
806
+ var LIVE_SEARCH_OK = typeof fetchTrigger !== 'undefined' && fetchTrigger === true ? true : false;
806
807
  var LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof window['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
807
808
 
808
809
  var INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : typeof readOnly === 'undefined' ? null : readOnly;
@@ -1433,9 +1434,13 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1433
1434
  function cancel() {
1434
1435
  // hide list
1435
1436
  setIsOpen(false);
1436
-
1437
- // restore data
1438
- setOptionsData(orginalData);
1437
+ if (LIVE_SEARCH_OK) {
1438
+ // clean data
1439
+ setOptionsData([]);
1440
+ } else {
1441
+ // restore data
1442
+ setOptionsData(orginalData);
1443
+ }
1439
1444
 
1440
1445
  // update temporary value
1441
1446
  setControlTempValue(null);
@@ -1446,9 +1451,13 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1446
1451
  function activate() {
1447
1452
  // show list
1448
1453
  setIsOpen(true);
1449
-
1450
- // restore data
1451
- setOptionsData(orginalData);
1454
+ if (LIVE_SEARCH_OK) {
1455
+ // clean data
1456
+ setOptionsData([]);
1457
+ } else {
1458
+ // restore data
1459
+ setOptionsData(orginalData);
1460
+ }
1452
1461
 
1453
1462
  // update temporary value
1454
1463
  setControlTempValue('');
@@ -1852,8 +1861,14 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1852
1861
  //
1853
1862
  if (val.replace(/\s/g, "") === '') {
1854
1863
  // No elements found. Consider changing the search query.
1855
- // restore data
1856
- setOptionsData(orginalData);
1864
+
1865
+ if (LIVE_SEARCH_OK) {
1866
+ // clean data
1867
+ setOptionsData([]);
1868
+ } else {
1869
+ // restore data
1870
+ setOptionsData(orginalData);
1871
+ }
1857
1872
  } else {
1858
1873
  handleChangeFetchSafe(val);
1859
1874
  }
@@ -2162,7 +2177,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2162
2177
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
2163
2178
  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"
2164
2179
  })))))), 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", {
2165
- className: "multifunc-select-multi__control-searchbtn position-absolute top-0 end-0"
2180
+ className: "multifunc-select-single__control-searchbtn position-absolute top-0 end-0"
2166
2181
  }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
2167
2182
  tabIndex: -1,
2168
2183
  type: "button",
@@ -386,7 +386,7 @@ var Tooltip = function Tooltip(props) {
386
386
  (_document$querySelect = document.querySelector("#tooltip__wrapper-".concat(idRes))) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.remove();
387
387
  };
388
388
  }, []);
389
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
389
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
390
390
  ref: modalRef,
391
391
  id: "tooltip__wrapper-".concat(idRes),
392
392
  className: "".concat(wrapperClassName || wrapperClassName === '' ? "tooltip__wrapper ".concat(wrapperClassName) : "tooltip__wrapper d-inline-block", " ").concat(isShow ? 'active' : ''),
@@ -1694,7 +1694,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
1694
1694
  {/*//////////////////// Table Grid Tooltip //////////////////// */}
1695
1695
  {/*////////////////////////////////////////////////// */}
1696
1696
  {/* FIX: "Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node" when using remove() */}
1697
- <div>
1697
+ <span>
1698
1698
  <div
1699
1699
  ref={tableTooltipModalRef}
1700
1700
  id={`e-cal-tl-table__cell-tooltipwrapper-${idRes}`}
@@ -1708,7 +1708,7 @@ const EventCalendarTimeline = (props: EventCalendarTimelineProps) => {
1708
1708
  </div>
1709
1709
  </div>
1710
1710
 
1711
- </div>
1711
+ </span>
1712
1712
 
1713
1713
 
1714
1714
 
@@ -135,6 +135,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
135
135
  } = props;
136
136
 
137
137
 
138
+ const LIVE_SEARCH_OK = typeof fetchTrigger !== 'undefined' && fetchTrigger === true ? true : false;
138
139
  const LIVE_SEARCH_DISABLED = (typeof fetchTrigger === 'undefined' || fetchTrigger === false) && typeof window !== 'undefined' && typeof (window as any)['funda-ui__MultiFuncSelect-disable-livesearch'] !== 'undefined' ? true : false; // Globally disable real-time search functionality (only valid for non-dynamic requests)
139
140
 
140
141
  const INPUT_READONLY = LIVE_SEARCH_DISABLED ? true : (typeof readOnly === 'undefined' ? null : readOnly);
@@ -829,8 +830,14 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
829
830
  // hide list
830
831
  setIsOpen(false);
831
832
 
832
- // restore data
833
- setOptionsData(orginalData);
833
+
834
+ if (LIVE_SEARCH_OK) {
835
+ // clean data
836
+ setOptionsData([]);
837
+ } else {
838
+ // restore data
839
+ setOptionsData(orginalData);
840
+ }
834
841
 
835
842
  // update temporary value
836
843
  setControlTempValue(null);
@@ -845,8 +852,15 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
845
852
  // show list
846
853
  setIsOpen(true);
847
854
 
848
- // restore data
849
- setOptionsData(orginalData);
855
+
856
+ if (LIVE_SEARCH_OK) {
857
+ // clean data
858
+ setOptionsData([]);
859
+ } else {
860
+ // restore data
861
+ setOptionsData(orginalData);
862
+ }
863
+
850
864
 
851
865
  // update temporary value
852
866
  setControlTempValue('');
@@ -1253,12 +1267,22 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
1253
1267
  // update temporary value
1254
1268
  setControlTempValue(val);
1255
1269
 
1256
-
1270
+
1257
1271
  //
1258
1272
  if ( val.replace(/\s/g, "") === '' ) {
1259
1273
  // No elements found. Consider changing the search query.
1260
- // restore data
1261
- setOptionsData(orginalData);
1274
+
1275
+
1276
+ if (LIVE_SEARCH_OK) {
1277
+ // clean data
1278
+ setOptionsData([]);
1279
+ } else {
1280
+ // restore data
1281
+ setOptionsData(orginalData);
1282
+ }
1283
+
1284
+
1285
+
1262
1286
  } else {
1263
1287
  handleChangeFetchSafe(val);
1264
1288
  }
@@ -1585,7 +1609,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
1585
1609
 
1586
1610
 
1587
1611
  {fetchTrigger ? <>
1588
- <span className="multifunc-select-multi__control-searchbtn position-absolute top-0 end-0">
1612
+ <span className="multifunc-select-single__control-searchbtn position-absolute top-0 end-0">
1589
1613
  <button tabIndex={-1} type="button" className="btn border-end-0 rounded-pill" style={{pointerEvents: 'none'}}>
1590
1614
  <svg width="1em" height="1em" fill="#a5a5a5" viewBox="0 0 16 16">
1591
1615
  <path d="M12.027 9.92L16 13.95 14 16l-4.075-3.976A6.465 6.465 0 0 1 6.5 13C2.91 13 0 10.083 0 6.5 0 2.91 2.917 0 6.5 0 10.09 0 13 2.917 13 6.5a6.463 6.463 0 0 1-.973 3.42zM1.997 6.452c0 2.48 2.014 4.5 4.5 4.5 2.48 0 4.5-2.015 4.5-4.5 0-2.48-2.015-4.5-4.5-4.5-2.48 0-4.5 2.014-4.5 4.5z" fillRule="evenodd" />
@@ -200,7 +200,7 @@ const Tooltip = (props: TooltipProps) => {
200
200
  <>
201
201
 
202
202
  {/* FIX: "Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node" when using remove() */}
203
- <div>
203
+ <span>
204
204
  <div
205
205
  ref={modalRef}
206
206
  id={`tooltip__wrapper-${idRes}`}
@@ -211,7 +211,7 @@ const Tooltip = (props: TooltipProps) => {
211
211
  >
212
212
  <div className="tooltip__content">{content}</div>
213
213
  </div>
214
- </div>
214
+ </span>
215
215
 
216
216
 
217
217
  <div
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "UIUX Lab",
3
3
  "email": "uiuxlab@gmail.com",
4
4
  "name": "funda-ui",
5
- "version": "1.1.145",
5
+ "version": "1.1.148",
6
6
  "description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
7
7
  "repository": {
8
8
  "type": "git",