sag_components 2.0.0-beta283 → 2.0.0-beta284
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 : () => {}
|
|
@@ -8930,27 +8930,28 @@ const IconContainer$5 = styled.div`
|
|
|
8930
8930
|
cursor: pointer;
|
|
8931
8931
|
`;
|
|
8932
8932
|
|
|
8933
|
-
const DropdownSingleNew =
|
|
8934
|
-
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8933
|
+
const DropdownSingleNew = _ref => {
|
|
8934
|
+
let {
|
|
8935
|
+
label,
|
|
8936
|
+
labelEmptyValue,
|
|
8937
|
+
options,
|
|
8938
|
+
selectedValue,
|
|
8939
|
+
onChange,
|
|
8940
|
+
required,
|
|
8941
|
+
disabled,
|
|
8942
|
+
width,
|
|
8943
|
+
height,
|
|
8944
|
+
minHeight,
|
|
8945
|
+
withMarginBottom = true,
|
|
8946
|
+
error,
|
|
8947
|
+
errorMessage,
|
|
8948
|
+
xIconShow,
|
|
8949
|
+
labelColor,
|
|
8950
|
+
showLabelOnTop,
|
|
8951
|
+
orderBy,
|
|
8952
|
+
placeHolder = "",
|
|
8953
|
+
elementType
|
|
8954
|
+
} = _ref;
|
|
8954
8955
|
const [isFocused, setIsFocused] = useState(false);
|
|
8955
8956
|
const [showOptions, setShowOptions] = useState(false);
|
|
8956
8957
|
const [showAbove, setShowAbove] = useState(false);
|
|
@@ -12165,7 +12166,7 @@ const PaginationContainer = styled.div`
|
|
|
12165
12166
|
cursor: default;
|
|
12166
12167
|
}
|
|
12167
12168
|
`;
|
|
12168
|
-
const TooltipWrapper$
|
|
12169
|
+
const TooltipWrapper$2 = styled.div`
|
|
12169
12170
|
width: max-content;
|
|
12170
12171
|
max-width: 330px;
|
|
12171
12172
|
/* white-space: wrap; */
|
|
@@ -12483,7 +12484,7 @@ const ReportTable = props => {
|
|
|
12483
12484
|
}
|
|
12484
12485
|
return colNumber;
|
|
12485
12486
|
};
|
|
12486
|
-
const getTooltipText = value => /*#__PURE__*/React$1.createElement(TooltipWrapper$
|
|
12487
|
+
const getTooltipText = value => /*#__PURE__*/React$1.createElement(TooltipWrapper$2, null, value);
|
|
12487
12488
|
const truncateString = (str, maxLength) => {
|
|
12488
12489
|
let val = str.length > maxLength ? str.slice(0, maxLength) + "..." : str;
|
|
12489
12490
|
return val;
|
|
@@ -24643,25 +24644,26 @@ const IconContainer$2 = styled.div`
|
|
|
24643
24644
|
cursor: pointer;
|
|
24644
24645
|
`;
|
|
24645
24646
|
|
|
24646
|
-
const QuickFilterDropdownMultiSelection =
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24647
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24648
|
+
let {
|
|
24649
|
+
label,
|
|
24650
|
+
labelEmptyValue,
|
|
24651
|
+
options,
|
|
24652
|
+
selectedValue,
|
|
24653
|
+
placeHolder,
|
|
24654
|
+
onChange,
|
|
24655
|
+
required,
|
|
24656
|
+
disabled,
|
|
24657
|
+
width,
|
|
24658
|
+
height,
|
|
24659
|
+
error,
|
|
24660
|
+
errorMessage,
|
|
24661
|
+
labelColor,
|
|
24662
|
+
xIconShow,
|
|
24663
|
+
checkBoxColor,
|
|
24664
|
+
showLabelOnTop,
|
|
24665
|
+
dropdownHeight
|
|
24666
|
+
} = _ref;
|
|
24665
24667
|
const [isFocused, setIsFocused] = useState(false);
|
|
24666
24668
|
const [showOptions, setShowOptions] = useState(false);
|
|
24667
24669
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -26572,7 +26574,7 @@ const TooltipContainer$3 = styled.div`
|
|
|
26572
26574
|
top: ${props => props.top};
|
|
26573
26575
|
left: ${props => props.left};
|
|
26574
26576
|
`;
|
|
26575
|
-
const TooltipWrapper = styled.div`
|
|
26577
|
+
const TooltipWrapper$1 = styled.div`
|
|
26576
26578
|
display: inline-block;
|
|
26577
26579
|
position: relative;
|
|
26578
26580
|
`;
|
|
@@ -26672,7 +26674,7 @@ const Tooltip$1 = props => {
|
|
|
26672
26674
|
className: className,
|
|
26673
26675
|
top: `${top}px`,
|
|
26674
26676
|
left: `${left}px`
|
|
26675
|
-
}, /*#__PURE__*/React$1.createElement(TooltipWrapper, null, /*#__PURE__*/React$1.createElement(TooltipTip, {
|
|
26677
|
+
}, /*#__PURE__*/React$1.createElement(TooltipWrapper$1, null, /*#__PURE__*/React$1.createElement(TooltipTip, {
|
|
26676
26678
|
className: `controls ${direction || 'top'}`
|
|
26677
26679
|
}, content)));
|
|
26678
26680
|
};
|
|
@@ -34974,17 +34976,18 @@ css`
|
|
|
34974
34976
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34975
34977
|
* • onCancel() — callback
|
|
34976
34978
|
*/
|
|
34977
|
-
const WeeksCalendar =
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34979
|
+
const WeeksCalendar = _ref => {
|
|
34980
|
+
let {
|
|
34981
|
+
year,
|
|
34982
|
+
defaultStartWeek = null,
|
|
34983
|
+
defaultEndWeek = null,
|
|
34984
|
+
backgroundColor = "#066768",
|
|
34985
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34986
|
+
allowedWeekRange = null,
|
|
34987
|
+
// New prop for range restriction
|
|
34988
|
+
onApply,
|
|
34989
|
+
onCancel
|
|
34990
|
+
} = _ref;
|
|
34988
34991
|
// state -------------------------------------------------
|
|
34989
34992
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34990
34993
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -57447,6 +57450,9 @@ const scrollableStyles = `
|
|
|
57447
57450
|
border-radius: 4px;
|
|
57448
57451
|
}
|
|
57449
57452
|
`;
|
|
57453
|
+
const TooltipWrapper = styled(Tooltip$2)`
|
|
57454
|
+
max-width: 100%;
|
|
57455
|
+
`;
|
|
57450
57456
|
const DropdownContainer = styled.div`
|
|
57451
57457
|
position: relative;
|
|
57452
57458
|
width: ${props => props.width || '100%'};
|
|
@@ -57480,7 +57486,7 @@ const DropdownList = styled.ul`
|
|
|
57480
57486
|
border-radius: 10px;
|
|
57481
57487
|
margin: 0;
|
|
57482
57488
|
padding: 8px 0;
|
|
57483
|
-
width: ${props => props.width || '100%'};
|
|
57489
|
+
min-width: ${props => props.width || '100%'};
|
|
57484
57490
|
max-height: ${props => props.dropdownMaxHeight || '420px'};
|
|
57485
57491
|
overflow-y: auto;
|
|
57486
57492
|
left: 0;
|
|
@@ -57521,12 +57527,12 @@ const SectionTitle = styled.li`
|
|
|
57521
57527
|
list-style: none;
|
|
57522
57528
|
`;
|
|
57523
57529
|
const DropdownItem = styled.li`
|
|
57524
|
-
padding: 8px
|
|
57530
|
+
padding: 8px 20px;
|
|
57525
57531
|
cursor: pointer;
|
|
57526
57532
|
display: flex;
|
|
57527
57533
|
align-items: center;
|
|
57534
|
+
gap: 8px;
|
|
57528
57535
|
justify-content: space-between;
|
|
57529
|
-
margin: 0 12px;
|
|
57530
57536
|
background: ${props => props.selected ? props.selectedColor || '#066768' : 'transparent'};
|
|
57531
57537
|
font-weight: ${props => props.selected ? '500' : '400'};
|
|
57532
57538
|
color: ${props => props.disabled ? '#D0D0D0' : props.selected ? '#fff' : '#212121'};
|
|
@@ -57555,21 +57561,6 @@ const TruncatedText = styled.span`
|
|
|
57555
57561
|
font-weight: 400;
|
|
57556
57562
|
color: ${props => props.color};
|
|
57557
57563
|
`;
|
|
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
57564
|
const Label$1 = styled.label`
|
|
57574
57565
|
font-size: 14px;
|
|
57575
57566
|
font-weight: 400;
|
|
@@ -57875,8 +57866,6 @@ OverlayTemplateDialog.propTypes = {
|
|
|
57875
57866
|
};
|
|
57876
57867
|
|
|
57877
57868
|
// OverlayDropdown.jsx
|
|
57878
|
-
|
|
57879
|
-
// Main Component
|
|
57880
57869
|
const OverlayDropdown = _ref => {
|
|
57881
57870
|
let {
|
|
57882
57871
|
// Data / selection
|
|
@@ -58126,7 +58115,12 @@ const OverlayDropdown = _ref => {
|
|
|
58126
58115
|
isDarkerBackground: isDarkerBackground,
|
|
58127
58116
|
height: height,
|
|
58128
58117
|
type: "button"
|
|
58118
|
+
}, /*#__PURE__*/React$1.createElement(TooltipWrapper, {
|
|
58119
|
+
topFactor: -0.7,
|
|
58120
|
+
content: selected?.label,
|
|
58121
|
+
showTooltip: !!selected
|
|
58129
58122
|
}, /*#__PURE__*/React$1.createElement(Wrapper, null, /*#__PURE__*/React$1.createElement(TruncatedText, {
|
|
58123
|
+
className: "selected",
|
|
58130
58124
|
onMouseEnter: () => setHoveredText(selected?.label),
|
|
58131
58125
|
onMouseLeave: () => setHoveredText(null),
|
|
58132
58126
|
color: !selected && open ? placeHolderColor : "inherit"
|
|
@@ -58138,7 +58132,7 @@ const OverlayDropdown = _ref => {
|
|
|
58138
58132
|
width: "12px",
|
|
58139
58133
|
height: "12px",
|
|
58140
58134
|
color: "#B1B1B1"
|
|
58141
|
-
}))), open && /*#__PURE__*/React$1.createElement(DropdownList, {
|
|
58135
|
+
})))), open && /*#__PURE__*/React$1.createElement(DropdownList, {
|
|
58142
58136
|
ref: dropdownRef,
|
|
58143
58137
|
role: "listbox",
|
|
58144
58138
|
dropdownMaxHeight: dropdownMaxHeight,
|