sag_components 2.0.0-beta283 → 2.0.0-beta285
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
|
@@ -2322,7 +2322,7 @@ const TooltipContainer$4 = styled.div`
|
|
|
2322
2322
|
`;
|
|
2323
2323
|
|
|
2324
2324
|
/* Wrapping */
|
|
2325
|
-
const TooltipWrapper$
|
|
2325
|
+
const TooltipWrapper$3 = styled.div`
|
|
2326
2326
|
display: inline-block;
|
|
2327
2327
|
position: relative;
|
|
2328
2328
|
`;
|
|
@@ -2429,7 +2429,7 @@ const Tooltip$2 = props => {
|
|
|
2429
2429
|
};
|
|
2430
2430
|
return /*#__PURE__*/React$1.createElement(TooltipContainer$4, {
|
|
2431
2431
|
className: className
|
|
2432
|
-
}, /*#__PURE__*/React$1.createElement(TooltipWrapper$
|
|
2432
|
+
}, /*#__PURE__*/React$1.createElement(TooltipWrapper$3, {
|
|
2433
2433
|
className: "tooltip-wrapper",
|
|
2434
2434
|
onMouseEnter: showTooltip ? showTip : () => {},
|
|
2435
2435
|
onMouseLeave: showTooltip ? hideTip : () => {}
|
|
@@ -12165,7 +12165,7 @@ const PaginationContainer = styled.div`
|
|
|
12165
12165
|
cursor: default;
|
|
12166
12166
|
}
|
|
12167
12167
|
`;
|
|
12168
|
-
const TooltipWrapper$
|
|
12168
|
+
const TooltipWrapper$2 = styled.div`
|
|
12169
12169
|
width: max-content;
|
|
12170
12170
|
max-width: 330px;
|
|
12171
12171
|
/* white-space: wrap; */
|
|
@@ -12483,7 +12483,7 @@ const ReportTable = props => {
|
|
|
12483
12483
|
}
|
|
12484
12484
|
return colNumber;
|
|
12485
12485
|
};
|
|
12486
|
-
const getTooltipText = value => /*#__PURE__*/React$1.createElement(TooltipWrapper$
|
|
12486
|
+
const getTooltipText = value => /*#__PURE__*/React$1.createElement(TooltipWrapper$2, null, value);
|
|
12487
12487
|
const truncateString = (str, maxLength) => {
|
|
12488
12488
|
let val = str.length > maxLength ? str.slice(0, maxLength) + "..." : str;
|
|
12489
12489
|
return val;
|
|
@@ -24643,25 +24643,26 @@ const IconContainer$2 = styled.div`
|
|
|
24643
24643
|
cursor: pointer;
|
|
24644
24644
|
`;
|
|
24645
24645
|
|
|
24646
|
-
const QuickFilterDropdownMultiSelection =
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24646
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24647
|
+
let {
|
|
24648
|
+
label,
|
|
24649
|
+
labelEmptyValue,
|
|
24650
|
+
options,
|
|
24651
|
+
selectedValue,
|
|
24652
|
+
placeHolder,
|
|
24653
|
+
onChange,
|
|
24654
|
+
required,
|
|
24655
|
+
disabled,
|
|
24656
|
+
width,
|
|
24657
|
+
height,
|
|
24658
|
+
error,
|
|
24659
|
+
errorMessage,
|
|
24660
|
+
labelColor,
|
|
24661
|
+
xIconShow,
|
|
24662
|
+
checkBoxColor,
|
|
24663
|
+
showLabelOnTop,
|
|
24664
|
+
dropdownHeight
|
|
24665
|
+
} = _ref;
|
|
24665
24666
|
const [isFocused, setIsFocused] = useState(false);
|
|
24666
24667
|
const [showOptions, setShowOptions] = useState(false);
|
|
24667
24668
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -26572,7 +26573,7 @@ const TooltipContainer$3 = styled.div`
|
|
|
26572
26573
|
top: ${props => props.top};
|
|
26573
26574
|
left: ${props => props.left};
|
|
26574
26575
|
`;
|
|
26575
|
-
const TooltipWrapper = styled.div`
|
|
26576
|
+
const TooltipWrapper$1 = styled.div`
|
|
26576
26577
|
display: inline-block;
|
|
26577
26578
|
position: relative;
|
|
26578
26579
|
`;
|
|
@@ -26672,7 +26673,7 @@ const Tooltip$1 = props => {
|
|
|
26672
26673
|
className: className,
|
|
26673
26674
|
top: `${top}px`,
|
|
26674
26675
|
left: `${left}px`
|
|
26675
|
-
}, /*#__PURE__*/React$1.createElement(TooltipWrapper, null, /*#__PURE__*/React$1.createElement(TooltipTip, {
|
|
26676
|
+
}, /*#__PURE__*/React$1.createElement(TooltipWrapper$1, null, /*#__PURE__*/React$1.createElement(TooltipTip, {
|
|
26676
26677
|
className: `controls ${direction || 'top'}`
|
|
26677
26678
|
}, content)));
|
|
26678
26679
|
};
|
|
@@ -57447,6 +57448,9 @@ const scrollableStyles = `
|
|
|
57447
57448
|
border-radius: 4px;
|
|
57448
57449
|
}
|
|
57449
57450
|
`;
|
|
57451
|
+
const TooltipWrapper = styled(Tooltip$2)`
|
|
57452
|
+
width: 100%;
|
|
57453
|
+
`;
|
|
57450
57454
|
const DropdownContainer = styled.div`
|
|
57451
57455
|
position: relative;
|
|
57452
57456
|
width: ${props => props.width || '100%'};
|
|
@@ -57480,7 +57484,7 @@ const DropdownList = styled.ul`
|
|
|
57480
57484
|
border-radius: 10px;
|
|
57481
57485
|
margin: 0;
|
|
57482
57486
|
padding: 8px 0;
|
|
57483
|
-
width: ${props => props.width || '100%'};
|
|
57487
|
+
min-width: ${props => props.width || '100%'};
|
|
57484
57488
|
max-height: ${props => props.dropdownMaxHeight || '420px'};
|
|
57485
57489
|
overflow-y: auto;
|
|
57486
57490
|
left: 0;
|
|
@@ -57521,12 +57525,12 @@ const SectionTitle = styled.li`
|
|
|
57521
57525
|
list-style: none;
|
|
57522
57526
|
`;
|
|
57523
57527
|
const DropdownItem = styled.li`
|
|
57524
|
-
padding: 8px
|
|
57528
|
+
padding: 8px 20px;
|
|
57525
57529
|
cursor: pointer;
|
|
57526
57530
|
display: flex;
|
|
57527
57531
|
align-items: center;
|
|
57532
|
+
gap: 8px;
|
|
57528
57533
|
justify-content: space-between;
|
|
57529
|
-
margin: 0 12px;
|
|
57530
57534
|
background: ${props => props.selected ? props.selectedColor || '#066768' : 'transparent'};
|
|
57531
57535
|
font-weight: ${props => props.selected ? '500' : '400'};
|
|
57532
57536
|
color: ${props => props.disabled ? '#D0D0D0' : props.selected ? '#fff' : '#212121'};
|
|
@@ -57555,21 +57559,6 @@ const TruncatedText = styled.span`
|
|
|
57555
57559
|
font-weight: 400;
|
|
57556
57560
|
color: ${props => props.color};
|
|
57557
57561
|
`;
|
|
57558
|
-
styled.div`
|
|
57559
|
-
position: absolute;
|
|
57560
|
-
left: 0; // <- Align with left edge of parent
|
|
57561
|
-
bottom: 100%; // <- Position ABOVE the element
|
|
57562
|
-
margin-bottom: 8px; // <- Add space between tooltip and element
|
|
57563
|
-
background: #fff;
|
|
57564
|
-
color: #222;
|
|
57565
|
-
border: 1px solid #e0e0e0;
|
|
57566
|
-
border-radius: 6px;
|
|
57567
|
-
box-shadow: 0 2px 12px rgba(0,0,0,0.12);
|
|
57568
|
-
padding: 8px 12px;
|
|
57569
|
-
font-size: 13px;
|
|
57570
|
-
/* max-width: 320px; */
|
|
57571
|
-
white-space: pre-line;
|
|
57572
|
-
`;
|
|
57573
57562
|
const Label$1 = styled.label`
|
|
57574
57563
|
font-size: 14px;
|
|
57575
57564
|
font-weight: 400;
|
|
@@ -57875,8 +57864,6 @@ OverlayTemplateDialog.propTypes = {
|
|
|
57875
57864
|
};
|
|
57876
57865
|
|
|
57877
57866
|
// OverlayDropdown.jsx
|
|
57878
|
-
|
|
57879
|
-
// Main Component
|
|
57880
57867
|
const OverlayDropdown = _ref => {
|
|
57881
57868
|
let {
|
|
57882
57869
|
// Data / selection
|
|
@@ -58126,7 +58113,12 @@ const OverlayDropdown = _ref => {
|
|
|
58126
58113
|
isDarkerBackground: isDarkerBackground,
|
|
58127
58114
|
height: height,
|
|
58128
58115
|
type: "button"
|
|
58116
|
+
}, /*#__PURE__*/React$1.createElement(TooltipWrapper, {
|
|
58117
|
+
topFactor: -0.7,
|
|
58118
|
+
content: selected?.label,
|
|
58119
|
+
showTooltip: !!selected
|
|
58129
58120
|
}, /*#__PURE__*/React$1.createElement(Wrapper, null, /*#__PURE__*/React$1.createElement(TruncatedText, {
|
|
58121
|
+
className: "selected",
|
|
58130
58122
|
onMouseEnter: () => setHoveredText(selected?.label),
|
|
58131
58123
|
onMouseLeave: () => setHoveredText(null),
|
|
58132
58124
|
color: !selected && open ? placeHolderColor : "inherit"
|
|
@@ -58138,7 +58130,7 @@ const OverlayDropdown = _ref => {
|
|
|
58138
58130
|
width: "12px",
|
|
58139
58131
|
height: "12px",
|
|
58140
58132
|
color: "#B1B1B1"
|
|
58141
|
-
}))), open && /*#__PURE__*/React$1.createElement(DropdownList, {
|
|
58133
|
+
})))), open && /*#__PURE__*/React$1.createElement(DropdownList, {
|
|
58142
58134
|
ref: dropdownRef,
|
|
58143
58135
|
role: "listbox",
|
|
58144
58136
|
dropdownMaxHeight: dropdownMaxHeight,
|