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.js
CHANGED
|
@@ -24177,22 +24177,21 @@ 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
|
-
|
|
24195
|
-
} = _ref;
|
|
24180
|
+
const QuickFilterDropdownSingle = ({
|
|
24181
|
+
label,
|
|
24182
|
+
hoverColor,
|
|
24183
|
+
options,
|
|
24184
|
+
selectedValue,
|
|
24185
|
+
placeHolder,
|
|
24186
|
+
onChange,
|
|
24187
|
+
disabled,
|
|
24188
|
+
width,
|
|
24189
|
+
error,
|
|
24190
|
+
errorMessage,
|
|
24191
|
+
xIconShow,
|
|
24192
|
+
labelColor,
|
|
24193
|
+
showLabelOnTop
|
|
24194
|
+
}) => {
|
|
24196
24195
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24197
24196
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24198
24197
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24649,26 +24648,25 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24649
24648
|
cursor: pointer;
|
|
24650
24649
|
`;
|
|
24651
24650
|
|
|
24652
|
-
const QuickFilterDropdownMultiSelection =
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
} = _ref;
|
|
24651
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24652
|
+
label,
|
|
24653
|
+
labelEmptyValue,
|
|
24654
|
+
options,
|
|
24655
|
+
selectedValue,
|
|
24656
|
+
placeHolder,
|
|
24657
|
+
onChange,
|
|
24658
|
+
required,
|
|
24659
|
+
disabled,
|
|
24660
|
+
width,
|
|
24661
|
+
height,
|
|
24662
|
+
error,
|
|
24663
|
+
errorMessage,
|
|
24664
|
+
labelColor,
|
|
24665
|
+
xIconShow,
|
|
24666
|
+
checkBoxColor,
|
|
24667
|
+
showLabelOnTop,
|
|
24668
|
+
dropdownHeight
|
|
24669
|
+
}) => {
|
|
24672
24670
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24673
24671
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24674
24672
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -42046,6 +42044,11 @@ const HeroButton = styled__default["default"].button`
|
|
|
42046
42044
|
> svg {
|
|
42047
42045
|
pointer-events: none;
|
|
42048
42046
|
}
|
|
42047
|
+
|
|
42048
|
+
&:disabled {
|
|
42049
|
+
cursor: not-allowed;
|
|
42050
|
+
opacity: 0.5;
|
|
42051
|
+
}
|
|
42049
42052
|
`;
|
|
42050
42053
|
const EditableCell = styled__default["default"].div`
|
|
42051
42054
|
display: flex;
|
|
@@ -43327,8 +43330,11 @@ const TableBody = /*#__PURE__*/React$1.forwardRef(({
|
|
|
43327
43330
|
}
|
|
43328
43331
|
case "hero":
|
|
43329
43332
|
try {
|
|
43333
|
+
const isDisabled = column?.disable || false;
|
|
43334
|
+
console.log('Rendering hero icon with value:', value, column);
|
|
43330
43335
|
if (value === null || value === undefined) return null;
|
|
43331
43336
|
return /*#__PURE__*/React__default["default"].createElement(HeroButton, {
|
|
43337
|
+
disabled: isDisabled,
|
|
43332
43338
|
onClick: e => {
|
|
43333
43339
|
e.stopPropagation();
|
|
43334
43340
|
if (onHeroClick) {
|