sag_components 2.0.0-beta259 → 2.0.0-beta260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -24167,21 +24167,22 @@ const DeleteIcon = styled.div`
|
|
|
24167
24167
|
position: absolute;
|
|
24168
24168
|
`;
|
|
24169
24169
|
|
|
24170
|
-
const QuickFilterDropdownSingle =
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24170
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24171
|
+
let {
|
|
24172
|
+
label,
|
|
24173
|
+
hoverColor,
|
|
24174
|
+
options,
|
|
24175
|
+
selectedValue,
|
|
24176
|
+
placeHolder,
|
|
24177
|
+
onChange,
|
|
24178
|
+
disabled,
|
|
24179
|
+
width,
|
|
24180
|
+
error,
|
|
24181
|
+
errorMessage,
|
|
24182
|
+
xIconShow,
|
|
24183
|
+
labelColor,
|
|
24184
|
+
showLabelOnTop
|
|
24185
|
+
} = _ref;
|
|
24185
24186
|
const [isFocused, setIsFocused] = useState(false);
|
|
24186
24187
|
const [showOptions, setShowOptions] = useState(false);
|
|
24187
24188
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24638,25 +24639,26 @@ const IconContainer$2 = styled.div`
|
|
|
24638
24639
|
cursor: pointer;
|
|
24639
24640
|
`;
|
|
24640
24641
|
|
|
24641
|
-
const QuickFilterDropdownMultiSelection =
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24642
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24643
|
+
let {
|
|
24644
|
+
label,
|
|
24645
|
+
labelEmptyValue,
|
|
24646
|
+
options,
|
|
24647
|
+
selectedValue,
|
|
24648
|
+
placeHolder,
|
|
24649
|
+
onChange,
|
|
24650
|
+
required,
|
|
24651
|
+
disabled,
|
|
24652
|
+
width,
|
|
24653
|
+
height,
|
|
24654
|
+
error,
|
|
24655
|
+
errorMessage,
|
|
24656
|
+
labelColor,
|
|
24657
|
+
xIconShow,
|
|
24658
|
+
checkBoxColor,
|
|
24659
|
+
showLabelOnTop,
|
|
24660
|
+
dropdownHeight
|
|
24661
|
+
} = _ref;
|
|
24660
24662
|
const [isFocused, setIsFocused] = useState(false);
|
|
24661
24663
|
const [showOptions, setShowOptions] = useState(false);
|
|
24662
24664
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -37630,6 +37632,11 @@ const SearchInput = styled.input`
|
|
|
37630
37632
|
border-color: #c0c0c0;
|
|
37631
37633
|
}
|
|
37632
37634
|
`;
|
|
37635
|
+
const ListWrapper = styled.div`
|
|
37636
|
+
max-height: ${props => props.maxHeight || 'unset'};
|
|
37637
|
+
overflow-y: auto;
|
|
37638
|
+
position: relative;
|
|
37639
|
+
`;
|
|
37633
37640
|
const CheckboxGroup = styled.div`
|
|
37634
37641
|
display: flex;
|
|
37635
37642
|
flex-direction: column;
|
|
@@ -37840,7 +37847,7 @@ const FilterPop = props => {
|
|
|
37840
37847
|
}));
|
|
37841
37848
|
return {
|
|
37842
37849
|
visibleItems: visible,
|
|
37843
|
-
totalHeight: sortedList.length * itemHeight,
|
|
37850
|
+
totalHeight: (sortedList.length + 1) * (itemHeight + 8),
|
|
37844
37851
|
offsetY: startIndex * itemHeight
|
|
37845
37852
|
};
|
|
37846
37853
|
}, [sortedList, scrollTop, itemHeight, overscan, maxHeight]);
|
|
@@ -37997,14 +38004,10 @@ const FilterPop = props => {
|
|
|
37997
38004
|
value: searchTerm,
|
|
37998
38005
|
onChange: handleSearchChange,
|
|
37999
38006
|
accentColor: color
|
|
38000
|
-
}), /*#__PURE__*/React$1.createElement(
|
|
38007
|
+
}), /*#__PURE__*/React$1.createElement(ListWrapper, {
|
|
38001
38008
|
ref: scrollContainerRef,
|
|
38002
38009
|
onScroll: handleScroll,
|
|
38003
|
-
|
|
38004
|
-
maxHeight: maxHeight,
|
|
38005
|
-
overflowY: "auto",
|
|
38006
|
-
position: "relative"
|
|
38007
|
-
}
|
|
38010
|
+
maxHeight: maxHeight
|
|
38008
38011
|
}, sortedList.length === 1 ? /*#__PURE__*/React$1.createElement(NoResultsMessage, null, "No items match your search") : /*#__PURE__*/React$1.createElement("div", {
|
|
38009
38012
|
style: {
|
|
38010
38013
|
height: `${totalHeight}px`,
|
|
@@ -43321,7 +43324,6 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
43321
43324
|
case "hero":
|
|
43322
43325
|
try {
|
|
43323
43326
|
const isDisabled = column?.disable || false;
|
|
43324
|
-
console.log('Rendering hero icon with value:', value, column);
|
|
43325
43327
|
if (value === null || value === undefined) return null;
|
|
43326
43328
|
return /*#__PURE__*/React$1.createElement(HeroButton, {
|
|
43327
43329
|
disabled: isDisabled,
|