sag_components 2.0.0-beta258 → 2.0.0-beta259
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 +42 -36
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +42 -36
- package/dist/index.js.map +1 -1
- package/dist/types/components/Table/data.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -24167,22 +24167,21 @@ 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
|
-
|
|
24185
|
-
} = _ref;
|
|
24170
|
+
const QuickFilterDropdownSingle = ({
|
|
24171
|
+
label,
|
|
24172
|
+
hoverColor,
|
|
24173
|
+
options,
|
|
24174
|
+
selectedValue,
|
|
24175
|
+
placeHolder,
|
|
24176
|
+
onChange,
|
|
24177
|
+
disabled,
|
|
24178
|
+
width,
|
|
24179
|
+
error,
|
|
24180
|
+
errorMessage,
|
|
24181
|
+
xIconShow,
|
|
24182
|
+
labelColor,
|
|
24183
|
+
showLabelOnTop
|
|
24184
|
+
}) => {
|
|
24186
24185
|
const [isFocused, setIsFocused] = useState(false);
|
|
24187
24186
|
const [showOptions, setShowOptions] = useState(false);
|
|
24188
24187
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24639,26 +24638,25 @@ const IconContainer$2 = styled.div`
|
|
|
24639
24638
|
cursor: pointer;
|
|
24640
24639
|
`;
|
|
24641
24640
|
|
|
24642
|
-
const QuickFilterDropdownMultiSelection =
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
} = _ref;
|
|
24641
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24642
|
+
label,
|
|
24643
|
+
labelEmptyValue,
|
|
24644
|
+
options,
|
|
24645
|
+
selectedValue,
|
|
24646
|
+
placeHolder,
|
|
24647
|
+
onChange,
|
|
24648
|
+
required,
|
|
24649
|
+
disabled,
|
|
24650
|
+
width,
|
|
24651
|
+
height,
|
|
24652
|
+
error,
|
|
24653
|
+
errorMessage,
|
|
24654
|
+
labelColor,
|
|
24655
|
+
xIconShow,
|
|
24656
|
+
checkBoxColor,
|
|
24657
|
+
showLabelOnTop,
|
|
24658
|
+
dropdownHeight
|
|
24659
|
+
}) => {
|
|
24662
24660
|
const [isFocused, setIsFocused] = useState(false);
|
|
24663
24661
|
const [showOptions, setShowOptions] = useState(false);
|
|
24664
24662
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -42036,6 +42034,11 @@ const HeroButton = styled.button`
|
|
|
42036
42034
|
> svg {
|
|
42037
42035
|
pointer-events: none;
|
|
42038
42036
|
}
|
|
42037
|
+
|
|
42038
|
+
&:disabled {
|
|
42039
|
+
cursor: not-allowed;
|
|
42040
|
+
opacity: 0.5;
|
|
42041
|
+
}
|
|
42039
42042
|
`;
|
|
42040
42043
|
const EditableCell = styled.div`
|
|
42041
42044
|
display: flex;
|
|
@@ -43317,8 +43320,11 @@ const TableBody = /*#__PURE__*/forwardRef(({
|
|
|
43317
43320
|
}
|
|
43318
43321
|
case "hero":
|
|
43319
43322
|
try {
|
|
43323
|
+
const isDisabled = column?.disable || false;
|
|
43324
|
+
console.log('Rendering hero icon with value:', value, column);
|
|
43320
43325
|
if (value === null || value === undefined) return null;
|
|
43321
43326
|
return /*#__PURE__*/React$1.createElement(HeroButton, {
|
|
43327
|
+
disabled: isDisabled,
|
|
43322
43328
|
onClick: e => {
|
|
43323
43329
|
e.stopPropagation();
|
|
43324
43330
|
if (onHeroClick) {
|