sag_components 2.0.0-beta282 → 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.js
CHANGED
|
@@ -2332,7 +2332,7 @@ const TooltipContainer$4 = styled__default["default"].div`
|
|
|
2332
2332
|
`;
|
|
2333
2333
|
|
|
2334
2334
|
/* Wrapping */
|
|
2335
|
-
const TooltipWrapper$
|
|
2335
|
+
const TooltipWrapper$3 = styled__default["default"].div`
|
|
2336
2336
|
display: inline-block;
|
|
2337
2337
|
position: relative;
|
|
2338
2338
|
`;
|
|
@@ -2439,7 +2439,7 @@ const Tooltip$2 = props => {
|
|
|
2439
2439
|
};
|
|
2440
2440
|
return /*#__PURE__*/React__default["default"].createElement(TooltipContainer$4, {
|
|
2441
2441
|
className: className
|
|
2442
|
-
}, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$
|
|
2442
|
+
}, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$3, {
|
|
2443
2443
|
className: "tooltip-wrapper",
|
|
2444
2444
|
onMouseEnter: showTooltip ? showTip : () => {},
|
|
2445
2445
|
onMouseLeave: showTooltip ? hideTip : () => {}
|
|
@@ -8940,27 +8940,28 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8940
8940
|
cursor: pointer;
|
|
8941
8941
|
`;
|
|
8942
8942
|
|
|
8943
|
-
const DropdownSingleNew =
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8943
|
+
const DropdownSingleNew = _ref => {
|
|
8944
|
+
let {
|
|
8945
|
+
label,
|
|
8946
|
+
labelEmptyValue,
|
|
8947
|
+
options,
|
|
8948
|
+
selectedValue,
|
|
8949
|
+
onChange,
|
|
8950
|
+
required,
|
|
8951
|
+
disabled,
|
|
8952
|
+
width,
|
|
8953
|
+
height,
|
|
8954
|
+
minHeight,
|
|
8955
|
+
withMarginBottom = true,
|
|
8956
|
+
error,
|
|
8957
|
+
errorMessage,
|
|
8958
|
+
xIconShow,
|
|
8959
|
+
labelColor,
|
|
8960
|
+
showLabelOnTop,
|
|
8961
|
+
orderBy,
|
|
8962
|
+
placeHolder = "",
|
|
8963
|
+
elementType
|
|
8964
|
+
} = _ref;
|
|
8964
8965
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8965
8966
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8966
8967
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -12175,7 +12176,7 @@ const PaginationContainer = styled__default["default"].div`
|
|
|
12175
12176
|
cursor: default;
|
|
12176
12177
|
}
|
|
12177
12178
|
`;
|
|
12178
|
-
const TooltipWrapper$
|
|
12179
|
+
const TooltipWrapper$2 = styled__default["default"].div`
|
|
12179
12180
|
width: max-content;
|
|
12180
12181
|
max-width: 330px;
|
|
12181
12182
|
/* white-space: wrap; */
|
|
@@ -12493,7 +12494,7 @@ const ReportTable = props => {
|
|
|
12493
12494
|
}
|
|
12494
12495
|
return colNumber;
|
|
12495
12496
|
};
|
|
12496
|
-
const getTooltipText = value => /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$
|
|
12497
|
+
const getTooltipText = value => /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$2, null, value);
|
|
12497
12498
|
const truncateString = (str, maxLength) => {
|
|
12498
12499
|
let val = str.length > maxLength ? str.slice(0, maxLength) + "..." : str;
|
|
12499
12500
|
return val;
|
|
@@ -26583,7 +26584,7 @@ const TooltipContainer$3 = styled__default["default"].div`
|
|
|
26583
26584
|
top: ${props => props.top};
|
|
26584
26585
|
left: ${props => props.left};
|
|
26585
26586
|
`;
|
|
26586
|
-
const TooltipWrapper = styled__default["default"].div`
|
|
26587
|
+
const TooltipWrapper$1 = styled__default["default"].div`
|
|
26587
26588
|
display: inline-block;
|
|
26588
26589
|
position: relative;
|
|
26589
26590
|
`;
|
|
@@ -26683,7 +26684,7 @@ const Tooltip$1 = props => {
|
|
|
26683
26684
|
className: className,
|
|
26684
26685
|
top: `${top}px`,
|
|
26685
26686
|
left: `${left}px`
|
|
26686
|
-
}, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper, null, /*#__PURE__*/React__default["default"].createElement(TooltipTip, {
|
|
26687
|
+
}, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(TooltipTip, {
|
|
26687
26688
|
className: `controls ${direction || 'top'}`
|
|
26688
26689
|
}, content)));
|
|
26689
26690
|
};
|
|
@@ -34985,17 +34986,18 @@ styled.css`
|
|
|
34985
34986
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34986
34987
|
* • onCancel() — callback
|
|
34987
34988
|
*/
|
|
34988
|
-
const WeeksCalendar =
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34996
|
-
|
|
34997
|
-
|
|
34998
|
-
|
|
34989
|
+
const WeeksCalendar = _ref => {
|
|
34990
|
+
let {
|
|
34991
|
+
year,
|
|
34992
|
+
defaultStartWeek = null,
|
|
34993
|
+
defaultEndWeek = null,
|
|
34994
|
+
backgroundColor = "#066768",
|
|
34995
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34996
|
+
allowedWeekRange = null,
|
|
34997
|
+
// New prop for range restriction
|
|
34998
|
+
onApply,
|
|
34999
|
+
onCancel
|
|
35000
|
+
} = _ref;
|
|
34999
35001
|
// state -------------------------------------------------
|
|
35000
35002
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
35001
35003
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -57458,6 +57460,9 @@ const scrollableStyles = `
|
|
|
57458
57460
|
border-radius: 4px;
|
|
57459
57461
|
}
|
|
57460
57462
|
`;
|
|
57463
|
+
const TooltipWrapper = styled__default["default"](Tooltip$2)`
|
|
57464
|
+
max-width: 100%;
|
|
57465
|
+
`;
|
|
57461
57466
|
const DropdownContainer = styled__default["default"].div`
|
|
57462
57467
|
position: relative;
|
|
57463
57468
|
width: ${props => props.width || '100%'};
|
|
@@ -57491,7 +57496,7 @@ const DropdownList = styled__default["default"].ul`
|
|
|
57491
57496
|
border-radius: 10px;
|
|
57492
57497
|
margin: 0;
|
|
57493
57498
|
padding: 8px 0;
|
|
57494
|
-
width: ${props => props.width || '100%'};
|
|
57499
|
+
min-width: ${props => props.width || '100%'};
|
|
57495
57500
|
max-height: ${props => props.dropdownMaxHeight || '420px'};
|
|
57496
57501
|
overflow-y: auto;
|
|
57497
57502
|
left: 0;
|
|
@@ -57532,12 +57537,12 @@ const SectionTitle = styled__default["default"].li`
|
|
|
57532
57537
|
list-style: none;
|
|
57533
57538
|
`;
|
|
57534
57539
|
const DropdownItem = styled__default["default"].li`
|
|
57535
|
-
padding: 8px
|
|
57540
|
+
padding: 8px 20px;
|
|
57536
57541
|
cursor: pointer;
|
|
57537
57542
|
display: flex;
|
|
57538
57543
|
align-items: center;
|
|
57544
|
+
gap: 8px;
|
|
57539
57545
|
justify-content: space-between;
|
|
57540
|
-
margin: 0 12px;
|
|
57541
57546
|
background: ${props => props.selected ? props.selectedColor || '#066768' : 'transparent'};
|
|
57542
57547
|
font-weight: ${props => props.selected ? '500' : '400'};
|
|
57543
57548
|
color: ${props => props.disabled ? '#D0D0D0' : props.selected ? '#fff' : '#212121'};
|
|
@@ -57566,21 +57571,6 @@ const TruncatedText = styled__default["default"].span`
|
|
|
57566
57571
|
font-weight: 400;
|
|
57567
57572
|
color: ${props => props.color};
|
|
57568
57573
|
`;
|
|
57569
|
-
styled__default["default"].div`
|
|
57570
|
-
position: absolute;
|
|
57571
|
-
left: 0; // <- Align with left edge of parent
|
|
57572
|
-
bottom: 100%; // <- Position ABOVE the element
|
|
57573
|
-
margin-bottom: 8px; // <- Add space between tooltip and element
|
|
57574
|
-
background: #fff;
|
|
57575
|
-
color: #222;
|
|
57576
|
-
border: 1px solid #e0e0e0;
|
|
57577
|
-
border-radius: 6px;
|
|
57578
|
-
box-shadow: 0 2px 12px rgba(0,0,0,0.12);
|
|
57579
|
-
padding: 8px 12px;
|
|
57580
|
-
font-size: 13px;
|
|
57581
|
-
/* max-width: 320px; */
|
|
57582
|
-
white-space: pre-line;
|
|
57583
|
-
`;
|
|
57584
57574
|
const Label$1 = styled__default["default"].label`
|
|
57585
57575
|
font-size: 14px;
|
|
57586
57576
|
font-weight: 400;
|
|
@@ -57886,8 +57876,6 @@ OverlayTemplateDialog.propTypes = {
|
|
|
57886
57876
|
};
|
|
57887
57877
|
|
|
57888
57878
|
// OverlayDropdown.jsx
|
|
57889
|
-
|
|
57890
|
-
// Main Component
|
|
57891
57879
|
const OverlayDropdown = _ref => {
|
|
57892
57880
|
let {
|
|
57893
57881
|
// Data / selection
|
|
@@ -58137,7 +58125,12 @@ const OverlayDropdown = _ref => {
|
|
|
58137
58125
|
isDarkerBackground: isDarkerBackground,
|
|
58138
58126
|
height: height,
|
|
58139
58127
|
type: "button"
|
|
58128
|
+
}, /*#__PURE__*/React__default["default"].createElement(TooltipWrapper, {
|
|
58129
|
+
topFactor: -0.7,
|
|
58130
|
+
content: selected?.label,
|
|
58131
|
+
showTooltip: !!selected
|
|
58140
58132
|
}, /*#__PURE__*/React__default["default"].createElement(Wrapper, null, /*#__PURE__*/React__default["default"].createElement(TruncatedText, {
|
|
58133
|
+
className: "selected",
|
|
58141
58134
|
onMouseEnter: () => setHoveredText(selected?.label),
|
|
58142
58135
|
onMouseLeave: () => setHoveredText(null),
|
|
58143
58136
|
color: !selected && open ? placeHolderColor : "inherit"
|
|
@@ -58149,7 +58142,7 @@ const OverlayDropdown = _ref => {
|
|
|
58149
58142
|
width: "12px",
|
|
58150
58143
|
height: "12px",
|
|
58151
58144
|
color: "#B1B1B1"
|
|
58152
|
-
}))), open && /*#__PURE__*/React__default["default"].createElement(DropdownList, {
|
|
58145
|
+
})))), open && /*#__PURE__*/React__default["default"].createElement(DropdownList, {
|
|
58153
58146
|
ref: dropdownRef,
|
|
58154
58147
|
role: "listbox",
|
|
58155
58148
|
dropdownMaxHeight: dropdownMaxHeight,
|