funda-ui 1.1.150 → 1.1.155

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.
@@ -1551,8 +1551,12 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1551
1551
  // console.log('_modalPosition: ', _modalOffsetPosition)
1552
1552
  }
1553
1553
  }
1554
- }
1555
1554
 
1555
+ // STEP 6:
1556
+ //-----------
1557
+ // no data label
1558
+ popwinNoMatchInit();
1559
+ }
1556
1560
  function popwinPosHide() {
1557
1561
  var _modalRef = document.querySelector("#multifunc-select__options-wrapper-".concat(idRes));
1558
1562
  if (_modalRef !== null && listContentRef.current !== null) {
@@ -1615,23 +1619,11 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1615
1619
  });
1616
1620
 
1617
1621
  // no data label
1618
- var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1619
- var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1620
- var emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every(function (node) {
1621
- if (!node.classList.contains('hide')) {
1622
- return false;
1623
- }
1624
- return true;
1625
- });
1626
- if (emptyFieldsCheck) {
1627
- _nodataDiv.classList.remove('hide');
1628
- if (_btnSelectAll !== null) _btnSelectAll.classList.add('hide');
1629
- } else {
1630
- _nodataDiv.classList.add('hide');
1631
- if (_btnSelectAll !== null) _btnSelectAll.classList.remove('hide');
1632
- }
1622
+ popwinNoMatchInit();
1633
1623
 
1634
1624
  // display all filtered items
1625
+ var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1626
+ var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1635
1627
  if (val.replace(/\s/g, "") === '') {
1636
1628
  [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).forEach(function (node) {
1637
1629
  node.classList.remove('hide');
@@ -1656,6 +1648,24 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1656
1648
  }
1657
1649
  }
1658
1650
  }
1651
+ function popwinNoMatchInit() {
1652
+ if (listContentRef.current === null) return;
1653
+ var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1654
+ var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1655
+ var emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every(function (node) {
1656
+ if (!node.classList.contains('hide')) {
1657
+ return false;
1658
+ }
1659
+ return true;
1660
+ });
1661
+ if (emptyFieldsCheck) {
1662
+ _nodataDiv.classList.remove('hide');
1663
+ if (_btnSelectAll !== null) _btnSelectAll.classList.add('hide');
1664
+ } else {
1665
+ _nodataDiv.classList.add('hide');
1666
+ if (_btnSelectAll !== null) _btnSelectAll.classList.remove('hide');
1667
+ }
1668
+ }
1659
1669
  function popwinContainerHeightReset() {
1660
1670
  if (listContentRef.current === null) return;
1661
1671
  listContentRef.current.removeAttribute('data-height');
@@ -1682,8 +1692,12 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1682
1692
  function activate() {
1683
1693
  // show list
1684
1694
  setIsOpen(true);
1685
- popwinPosInit();
1686
- popwinBtnEventsInit(optionsData);
1695
+
1696
+ // pop win initalization
1697
+ setTimeout(function () {
1698
+ popwinPosInit();
1699
+ popwinBtnEventsInit(optionsData);
1700
+ }, 0);
1687
1701
  if (LIVE_SEARCH_OK) {
1688
1702
  // clean data
1689
1703
  setOptionsData([]);
@@ -2537,7 +2551,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2537
2551
  width: WIN_WIDTH
2538
2552
  },
2539
2553
  role: "tablist"
2540
- }, controlTempValue !== null && optionsData.length === 0 ? /*#__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((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", {
2554
+ }, controlTempValue !== null && optionsData.length === 0 ? /*#__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((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", {
2541
2555
  className: "multifunc-select__options-contentlist rounded",
2542
2556
  style: {
2543
2557
  backgroundColor: 'var(--bs-list-group-bg)'
@@ -2639,7 +2653,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2639
2653
  }
2640
2654
  }));
2641
2655
  }
2642
- }) : null))))) : null));
2656
+ }) : null)))) : null));
2643
2657
  });
2644
2658
  /* harmony default export */ const src = (MultiFuncSelect);
2645
2659
  })();
@@ -1551,8 +1551,12 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1551
1551
  // console.log('_modalPosition: ', _modalOffsetPosition)
1552
1552
  }
1553
1553
  }
1554
- }
1555
1554
 
1555
+ // STEP 6:
1556
+ //-----------
1557
+ // no data label
1558
+ popwinNoMatchInit();
1559
+ }
1556
1560
  function popwinPosHide() {
1557
1561
  var _modalRef = document.querySelector("#multifunc-select__options-wrapper-".concat(idRes));
1558
1562
  if (_modalRef !== null && listContentRef.current !== null) {
@@ -1615,23 +1619,11 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1615
1619
  });
1616
1620
 
1617
1621
  // no data label
1618
- var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1619
- var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1620
- var emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every(function (node) {
1621
- if (!node.classList.contains('hide')) {
1622
- return false;
1623
- }
1624
- return true;
1625
- });
1626
- if (emptyFieldsCheck) {
1627
- _nodataDiv.classList.remove('hide');
1628
- if (_btnSelectAll !== null) _btnSelectAll.classList.add('hide');
1629
- } else {
1630
- _nodataDiv.classList.add('hide');
1631
- if (_btnSelectAll !== null) _btnSelectAll.classList.remove('hide');
1632
- }
1622
+ popwinNoMatchInit();
1633
1623
 
1634
1624
  // display all filtered items
1625
+ var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1626
+ var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1635
1627
  if (val.replace(/\s/g, "") === '') {
1636
1628
  [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).forEach(function (node) {
1637
1629
  node.classList.remove('hide');
@@ -1656,6 +1648,24 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1656
1648
  }
1657
1649
  }
1658
1650
  }
1651
+ function popwinNoMatchInit() {
1652
+ if (listContentRef.current === null) return;
1653
+ var _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
1654
+ var _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
1655
+ var emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every(function (node) {
1656
+ if (!node.classList.contains('hide')) {
1657
+ return false;
1658
+ }
1659
+ return true;
1660
+ });
1661
+ if (emptyFieldsCheck) {
1662
+ _nodataDiv.classList.remove('hide');
1663
+ if (_btnSelectAll !== null) _btnSelectAll.classList.add('hide');
1664
+ } else {
1665
+ _nodataDiv.classList.add('hide');
1666
+ if (_btnSelectAll !== null) _btnSelectAll.classList.remove('hide');
1667
+ }
1668
+ }
1659
1669
  function popwinContainerHeightReset() {
1660
1670
  if (listContentRef.current === null) return;
1661
1671
  listContentRef.current.removeAttribute('data-height');
@@ -1682,8 +1692,12 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
1682
1692
  function activate() {
1683
1693
  // show list
1684
1694
  setIsOpen(true);
1685
- popwinPosInit();
1686
- popwinBtnEventsInit(optionsData);
1695
+
1696
+ // pop win initalization
1697
+ setTimeout(function () {
1698
+ popwinPosInit();
1699
+ popwinBtnEventsInit(optionsData);
1700
+ }, 0);
1687
1701
  if (LIVE_SEARCH_OK) {
1688
1702
  // clean data
1689
1703
  setOptionsData([]);
@@ -2537,7 +2551,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2537
2551
  width: WIN_WIDTH
2538
2552
  },
2539
2553
  role: "tablist"
2540
- }, controlTempValue !== null && optionsData.length === 0 ? /*#__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((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", {
2554
+ }, controlTempValue !== null && optionsData.length === 0 ? /*#__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((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", {
2541
2555
  className: "multifunc-select__options-contentlist rounded",
2542
2556
  style: {
2543
2557
  backgroundColor: 'var(--bs-list-group-bg)'
@@ -2639,7 +2653,7 @@ var MultiFuncSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
2639
2653
  }
2640
2654
  }));
2641
2655
  }
2642
- }) : null))))) : null));
2656
+ }) : null)))) : null));
2643
2657
  });
2644
2658
  /* harmony default export */ const src = (MultiFuncSelect);
2645
2659
  })();
@@ -790,6 +790,16 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
790
790
 
791
791
  }
792
792
 
793
+
794
+
795
+
796
+ // STEP 6:
797
+ //-----------
798
+ // no data label
799
+ popwinNoMatchInit();
800
+
801
+
802
+
793
803
  }
794
804
 
795
805
 
@@ -864,6 +874,7 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
864
874
  function popwinFilterItems(val: any) {
865
875
  if (listContentRef.current === null) return;
866
876
 
877
+
867
878
  [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).forEach((node: any) => {
868
879
 
869
880
  // Avoid fatal errors causing page crashes
@@ -886,27 +897,12 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
886
897
 
887
898
 
888
899
  // no data label
889
- const _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
890
- const _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
891
- const emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every((node: any) => {
892
- if (!node.classList.contains('hide')) {
893
- return false;
894
- }
895
- return true;
896
- });
897
-
898
-
899
- if (emptyFieldsCheck) {
900
- _nodataDiv.classList.remove('hide');
901
- if ( _btnSelectAll !== null ) _btnSelectAll.classList.add('hide');
902
- } else {
903
- _nodataDiv.classList.add('hide');
904
- if ( _btnSelectAll !== null ) _btnSelectAll.classList.remove('hide');
905
- }
906
-
900
+ popwinNoMatchInit();
907
901
 
908
902
 
909
903
  // display all filtered items
904
+ const _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
905
+ const _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
910
906
  if (val.replace(/\s/g, "") === '') {
911
907
  [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).forEach((node: any) => {
912
908
  node.classList.remove('hide');
@@ -940,6 +936,32 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
940
936
 
941
937
  }
942
938
 
939
+
940
+
941
+
942
+ function popwinNoMatchInit() {
943
+ if (listContentRef.current === null) return;
944
+
945
+ const _btnSelectAll = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--select-all');
946
+ const _nodataDiv = listContentRef.current.querySelector('.multifunc-select-multi__control-option-item--nomatch');
947
+ const emptyFieldsCheck = [].slice.call(listContentRef.current.querySelectorAll('.multifunc-select-multi__control-option-item')).every((node: any) => {
948
+ if (!node.classList.contains('hide')) {
949
+ return false;
950
+ }
951
+ return true;
952
+ });
953
+
954
+ if (emptyFieldsCheck) {
955
+ _nodataDiv.classList.remove('hide');
956
+ if ( _btnSelectAll !== null ) _btnSelectAll.classList.add('hide');
957
+ } else {
958
+ _nodataDiv.classList.add('hide');
959
+ if ( _btnSelectAll !== null ) _btnSelectAll.classList.remove('hide');
960
+ }
961
+
962
+ }
963
+
964
+
943
965
  function popwinContainerHeightReset() {
944
966
  if (listContentRef.current === null) return;
945
967
 
@@ -974,8 +996,14 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
974
996
 
975
997
  // show list
976
998
  setIsOpen(true);
977
- popwinPosInit();
978
- popwinBtnEventsInit(optionsData);
999
+
1000
+ // pop win initalization
1001
+ setTimeout( ()=> {
1002
+ popwinPosInit();
1003
+ popwinBtnEventsInit(optionsData);
1004
+ }, 0 );
1005
+
1006
+
979
1007
 
980
1008
  if (LIVE_SEARCH_OK) {
981
1009
  // clean data
@@ -1868,75 +1896,77 @@ const MultiFuncSelect = forwardRef((props: MultiFuncSelectProps, ref: any) => {
1868
1896
  {controlTempValue !== null && optionsData.length === 0 ? <>
1869
1897
 
1870
1898
  </> : <>
1871
- <div className="multifunc-select__options-contentlist rounded" style={{backgroundColor: 'var(--bs-list-group-bg)'}} ref={listContentRef}>
1872
- <div className="multifunc-select__options-contentlist-inner">
1873
-
1874
- {/* SELECT ALL BUTTON */}
1875
- {MULTI_SEL_VALID ? <>
1876
- <span tabIndex={-1} className="list-group-item list-group-item-action border-start-0 border-end-0 text-secondary bg-light multifunc-select-multi__control-option-item--select-all" role="tab" style={{ display: multiSelect?.selectAll ? 'block' : 'none' }}>
1877
- <span tabIndex={-1} className="btn btn-secondary" dangerouslySetInnerHTML={{
1878
- __html: `${multiSelect?.selectAllLabel || 'Select all options'}`
1879
- }}></span>
1880
- </span>
1881
- </> : null}
1882
- {/* /SELECT ALL BUTTON */}
1883
-
1884
- {/* NO MATCH */}
1885
- <button tabIndex={-1} type="button" className="list-group-item list-group-item-action no-match border-0 multifunc-select-multi__control-option-item--nomatch hide" disabled>{fetchNoneInfo || 'No match yet'}</button>
1886
- {/* /NO MATCH */}
1887
-
1888
-
1889
- {/* OPTIONS LIST */}
1890
- {optionsData ? optionsData.map((item, index) => {
1891
- const startItemBorder = index === 0 ? 'border-top-0' : '';
1892
- const endItemBorder = index === optionsData.length - 1 ? 'border-bottom-0' : '';
1893
-
1894
-
1899
+
1895
1900
 
1896
- if (!MULTI_SEL_VALID) {
1901
+ </>}
1897
1902
 
1898
- // ++++++++++++++++++++
1899
- // Single selection
1900
- // ++++++++++++++++++++
1901
- return <button tabIndex={-1} type="button" data-index={index} key={index} className={`list-group-item list-group-item-action border-start-0 border-end-0 multifunc-select-multi__control-option-item ${startItemBorder} ${endItemBorder} border-bottom-0 ${typeof item.disabled === 'undefined' ? '' : (item.disabled == true ? 'disabled' : '')}`} data-value={`${item.value}`} data-label={`${item.label}`} data-querystring={`${typeof item.queryString === 'undefined' ? '' : item.queryString}`} data-itemdata={JSON.stringify(item)} role="tab" dangerouslySetInnerHTML={{
1903
+ <div className="multifunc-select__options-contentlist rounded" style={{backgroundColor: 'var(--bs-list-group-bg)'}} ref={listContentRef}>
1904
+ <div className="multifunc-select__options-contentlist-inner">
1905
+
1906
+ {/* SELECT ALL BUTTON */}
1907
+ {MULTI_SEL_VALID ? <>
1908
+ <span tabIndex={-1} className="list-group-item list-group-item-action border-start-0 border-end-0 text-secondary bg-light multifunc-select-multi__control-option-item--select-all" role="tab" style={{ display: multiSelect?.selectAll ? 'block' : 'none' }}>
1909
+ <span tabIndex={-1} className="btn btn-secondary" dangerouslySetInnerHTML={{
1910
+ __html: `${multiSelect?.selectAllLabel || 'Select all options'}`
1911
+ }}></span>
1912
+ </span>
1913
+ </> : null}
1914
+ {/* /SELECT ALL BUTTON */}
1915
+
1916
+ {/* NO MATCH */}
1917
+ <button tabIndex={-1} type="button" className="list-group-item list-group-item-action no-match border-0 multifunc-select-multi__control-option-item--nomatch hide" disabled>{fetchNoneInfo || 'No match yet'}</button>
1918
+ {/* /NO MATCH */}
1919
+
1920
+
1921
+ {/* OPTIONS LIST */}
1922
+ {optionsData ? optionsData.map((item, index) => {
1923
+ const startItemBorder = index === 0 ? 'border-top-0' : '';
1924
+ const endItemBorder = index === optionsData.length - 1 ? 'border-bottom-0' : '';
1925
+
1926
+
1927
+
1928
+ if (!MULTI_SEL_VALID) {
1929
+
1930
+ // ++++++++++++++++++++
1931
+ // Single selection
1932
+ // ++++++++++++++++++++
1933
+ return <button tabIndex={-1} type="button" data-index={index} key={index} className={`list-group-item list-group-item-action border-start-0 border-end-0 multifunc-select-multi__control-option-item ${startItemBorder} ${endItemBorder} border-bottom-0 ${typeof item.disabled === 'undefined' ? '' : (item.disabled == true ? 'disabled' : '')}`} data-value={`${item.value}`} data-label={`${item.label}`} data-querystring={`${typeof item.queryString === 'undefined' ? '' : item.queryString}`} data-itemdata={JSON.stringify(item)} role="tab" dangerouslySetInnerHTML={{
1934
+ __html: item.label
1935
+ }}></button>
1936
+
1937
+ } else {
1938
+
1939
+ // ++++++++++++++++++++
1940
+ // Multiple selection
1941
+ // ++++++++++++++++++++
1942
+ const itemSelected = multiSelControlOptionExist(controlArr.values, item.value) ? true : false;
1943
+
1944
+ return <button tabIndex={-1} type="button" data-selected={`${itemSelected ? 'true' : 'false'}`} data-index={index} key={index} className={`list-group-item list-group-item-action border-start-0 border-end-0 multifunc-select-multi__control-option-item ${startItemBorder} ${endItemBorder} border-bottom-0 ${itemSelected ? 'list-group-item-secondary item-selected' : ''} ${typeof item.disabled === 'undefined' ? '' : (item.disabled == true ? 'disabled' : '')}`} data-value={`${item.value}`} data-label={`${item.label}`} data-querystring={`${typeof item.queryString === 'undefined' ? '' : item.queryString}`} data-itemdata={JSON.stringify(item)} role="tab">
1945
+ <var className="me-1 multifunc-select-multi__control-option-checkbox multifunc-select-multi__control-option-checkbox--selected">
1946
+ <svg width="1.2em" height="1.2em" fill="#000000" viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /></svg>
1947
+
1948
+ </var>
1949
+ <var className="me-1 multifunc-select-multi__control-option-checkbox">
1950
+ <svg width="1.2em" height="1.2em" viewBox="0 0 24 24" fill="none">
1951
+ <path d="M4 7.2002V16.8002C4 17.9203 4 18.4801 4.21799 18.9079C4.40973 19.2842 4.71547 19.5905 5.0918 19.7822C5.5192 20 6.07899 20 7.19691 20H16.8031C17.921 20 18.48 20 18.9074 19.7822C19.2837 19.5905 19.5905 19.2842 19.7822 18.9079C20 18.4805 20 17.9215 20 16.8036V7.19691C20 6.07899 20 5.5192 19.7822 5.0918C19.5905 4.71547 19.2837 4.40973 18.9074 4.21799C18.4796 4 17.9203 4 16.8002 4H7.2002C6.08009 4 5.51962 4 5.0918 4.21799C4.71547 4.40973 4.40973 4.71547 4.21799 5.0918C4 5.51962 4 6.08009 4 7.2002Z" stroke="#000000" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
1952
+ </svg>
1953
+ </var>
1954
+ <var className={`me-1 multifunc-select-multi__control-option-checkbox-placeholder ${itemSelected ? 'd-none' : ''}`}>
1955
+ <svg width="1.2em" height="1.2em" fill="#000000" viewBox="0 0 24 24"><path d="M4 7.2002V16.8002C4 17.9203 4 18.4801 4.21799 18.9079C4.40973 19.2842 4.71547 19.5905 5.0918 19.7822C5.5192 20 6.07899 20 7.19691 20H16.8031C17.921 20 18.48 20 18.9074 19.7822C19.2837 19.5905 19.5905 19.2842 19.7822 18.9079C20 18.4805 20 17.9215 20 16.8036V7.19691C20 6.07899 20 5.5192 19.7822 5.0918C19.5905 4.71547 19.2837 4.40973 18.9074 4.21799C18.4796 4 17.9203 4 16.8002 4H7.2002C6.08009 4 5.51962 4 5.0918 4.21799C4.71547 4.40973 4.40973 4.71547 4.21799 5.0918C4 5.51962 4 6.08009 4 7.2002Z" /></svg>
1956
+ </var>
1957
+ <span dangerouslySetInnerHTML={{
1902
1958
  __html: item.label
1903
- }}></button>
1904
-
1905
- } else {
1906
-
1907
- // ++++++++++++++++++++
1908
- // Multiple selection
1909
- // ++++++++++++++++++++
1910
- const itemSelected = multiSelControlOptionExist(controlArr.values, item.value) ? true : false;
1911
-
1912
- return <button tabIndex={-1} type="button" data-selected={`${itemSelected ? 'true' : 'false'}`} data-index={index} key={index} className={`list-group-item list-group-item-action border-start-0 border-end-0 multifunc-select-multi__control-option-item ${startItemBorder} ${endItemBorder} border-bottom-0 ${itemSelected ? 'list-group-item-secondary item-selected' : ''} ${typeof item.disabled === 'undefined' ? '' : (item.disabled == true ? 'disabled' : '')}`} data-value={`${item.value}`} data-label={`${item.label}`} data-querystring={`${typeof item.queryString === 'undefined' ? '' : item.queryString}`} data-itemdata={JSON.stringify(item)} role="tab">
1913
- <var className="me-1 multifunc-select-multi__control-option-checkbox multifunc-select-multi__control-option-checkbox--selected">
1914
- <svg width="1.2em" height="1.2em" fill="#000000" viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /></svg>
1915
-
1916
- </var>
1917
- <var className="me-1 multifunc-select-multi__control-option-checkbox">
1918
- <svg width="1.2em" height="1.2em" viewBox="0 0 24 24" fill="none">
1919
- <path d="M4 7.2002V16.8002C4 17.9203 4 18.4801 4.21799 18.9079C4.40973 19.2842 4.71547 19.5905 5.0918 19.7822C5.5192 20 6.07899 20 7.19691 20H16.8031C17.921 20 18.48 20 18.9074 19.7822C19.2837 19.5905 19.5905 19.2842 19.7822 18.9079C20 18.4805 20 17.9215 20 16.8036V7.19691C20 6.07899 20 5.5192 19.7822 5.0918C19.5905 4.71547 19.2837 4.40973 18.9074 4.21799C18.4796 4 17.9203 4 16.8002 4H7.2002C6.08009 4 5.51962 4 5.0918 4.21799C4.71547 4.40973 4.40973 4.71547 4.21799 5.0918C4 5.51962 4 6.08009 4 7.2002Z" stroke="#000000" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
1920
- </svg>
1921
- </var>
1922
- <var className={`me-1 multifunc-select-multi__control-option-checkbox-placeholder ${itemSelected ? 'd-none' : ''}`}>
1923
- <svg width="1.2em" height="1.2em" fill="#000000" viewBox="0 0 24 24"><path d="M4 7.2002V16.8002C4 17.9203 4 18.4801 4.21799 18.9079C4.40973 19.2842 4.71547 19.5905 5.0918 19.7822C5.5192 20 6.07899 20 7.19691 20H16.8031C17.921 20 18.48 20 18.9074 19.7822C19.2837 19.5905 19.5905 19.2842 19.7822 18.9079C20 18.4805 20 17.9215 20 16.8036V7.19691C20 6.07899 20 5.5192 19.7822 5.0918C19.5905 4.71547 19.2837 4.40973 18.9074 4.21799C18.4796 4 17.9203 4 16.8002 4H7.2002C6.08009 4 5.51962 4 5.0918 4.21799C4.71547 4.40973 4.40973 4.71547 4.21799 5.0918C4 5.51962 4 6.08009 4 7.2002Z" /></svg>
1924
- </var>
1925
- <span dangerouslySetInnerHTML={{
1926
- __html: item.label
1927
- }}></span>
1928
- </button>
1959
+ }}></span>
1960
+ </button>
1929
1961
 
1930
- }
1962
+ }
1931
1963
 
1932
1964
 
1933
- }) : null}
1934
- {/* /OPTIONS LIST */}
1965
+ }) : null}
1966
+ {/* /OPTIONS LIST */}
1935
1967
 
1936
- </div>
1937
1968
  </div>
1938
-
1939
- </>}
1969
+ </div>
1940
1970
 
1941
1971
 
1942
1972
  </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.150",
5
+ "version": "1.1.155",
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",