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.js
CHANGED
|
@@ -24177,21 +24177,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24177
24177
|
position: absolute;
|
|
24178
24178
|
`;
|
|
24179
24179
|
|
|
24180
|
-
const QuickFilterDropdownSingle =
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24194
|
-
|
|
24180
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24181
|
+
let {
|
|
24182
|
+
label,
|
|
24183
|
+
hoverColor,
|
|
24184
|
+
options,
|
|
24185
|
+
selectedValue,
|
|
24186
|
+
placeHolder,
|
|
24187
|
+
onChange,
|
|
24188
|
+
disabled,
|
|
24189
|
+
width,
|
|
24190
|
+
error,
|
|
24191
|
+
errorMessage,
|
|
24192
|
+
xIconShow,
|
|
24193
|
+
labelColor,
|
|
24194
|
+
showLabelOnTop
|
|
24195
|
+
} = _ref;
|
|
24195
24196
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24196
24197
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24197
24198
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24648,25 +24649,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24648
24649
|
cursor: pointer;
|
|
24649
24650
|
`;
|
|
24650
24651
|
|
|
24651
|
-
const QuickFilterDropdownMultiSelection =
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24652
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24653
|
+
let {
|
|
24654
|
+
label,
|
|
24655
|
+
labelEmptyValue,
|
|
24656
|
+
options,
|
|
24657
|
+
selectedValue,
|
|
24658
|
+
placeHolder,
|
|
24659
|
+
onChange,
|
|
24660
|
+
required,
|
|
24661
|
+
disabled,
|
|
24662
|
+
width,
|
|
24663
|
+
height,
|
|
24664
|
+
error,
|
|
24665
|
+
errorMessage,
|
|
24666
|
+
labelColor,
|
|
24667
|
+
xIconShow,
|
|
24668
|
+
checkBoxColor,
|
|
24669
|
+
showLabelOnTop,
|
|
24670
|
+
dropdownHeight
|
|
24671
|
+
} = _ref;
|
|
24670
24672
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24671
24673
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24672
24674
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -37640,6 +37642,11 @@ const SearchInput = styled__default["default"].input`
|
|
|
37640
37642
|
border-color: #c0c0c0;
|
|
37641
37643
|
}
|
|
37642
37644
|
`;
|
|
37645
|
+
const ListWrapper = styled__default["default"].div`
|
|
37646
|
+
max-height: ${props => props.maxHeight || 'unset'};
|
|
37647
|
+
overflow-y: auto;
|
|
37648
|
+
position: relative;
|
|
37649
|
+
`;
|
|
37643
37650
|
const CheckboxGroup = styled__default["default"].div`
|
|
37644
37651
|
display: flex;
|
|
37645
37652
|
flex-direction: column;
|
|
@@ -37850,7 +37857,7 @@ const FilterPop = props => {
|
|
|
37850
37857
|
}));
|
|
37851
37858
|
return {
|
|
37852
37859
|
visibleItems: visible,
|
|
37853
|
-
totalHeight: sortedList.length * itemHeight,
|
|
37860
|
+
totalHeight: (sortedList.length + 1) * (itemHeight + 8),
|
|
37854
37861
|
offsetY: startIndex * itemHeight
|
|
37855
37862
|
};
|
|
37856
37863
|
}, [sortedList, scrollTop, itemHeight, overscan, maxHeight]);
|
|
@@ -38007,14 +38014,10 @@ const FilterPop = props => {
|
|
|
38007
38014
|
value: searchTerm,
|
|
38008
38015
|
onChange: handleSearchChange,
|
|
38009
38016
|
accentColor: color
|
|
38010
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
38017
|
+
}), /*#__PURE__*/React__default["default"].createElement(ListWrapper, {
|
|
38011
38018
|
ref: scrollContainerRef,
|
|
38012
38019
|
onScroll: handleScroll,
|
|
38013
|
-
|
|
38014
|
-
maxHeight: maxHeight,
|
|
38015
|
-
overflowY: "auto",
|
|
38016
|
-
position: "relative"
|
|
38017
|
-
}
|
|
38020
|
+
maxHeight: maxHeight
|
|
38018
38021
|
}, sortedList.length === 1 ? /*#__PURE__*/React__default["default"].createElement(NoResultsMessage, null, "No items match your search") : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
38019
38022
|
style: {
|
|
38020
38023
|
height: `${totalHeight}px`,
|
|
@@ -43331,7 +43334,6 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
43331
43334
|
case "hero":
|
|
43332
43335
|
try {
|
|
43333
43336
|
const isDisabled = column?.disable || false;
|
|
43334
|
-
console.log('Rendering hero icon with value:', value, column);
|
|
43335
43337
|
if (value === null || value === undefined) return null;
|
|
43336
43338
|
return /*#__PURE__*/React__default["default"].createElement(HeroButton, {
|
|
43337
43339
|
disabled: isDisabled,
|