sag_components 2.0.0-beta262 → 2.0.0-beta264
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
|
@@ -8939,26 +8939,27 @@ const IconContainer$5 = styled__default["default"].div`
|
|
|
8939
8939
|
cursor: pointer;
|
|
8940
8940
|
`;
|
|
8941
8941
|
|
|
8942
|
-
const DropdownSingleNew =
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8942
|
+
const DropdownSingleNew = _ref => {
|
|
8943
|
+
let {
|
|
8944
|
+
label,
|
|
8945
|
+
labelEmptyValue,
|
|
8946
|
+
options,
|
|
8947
|
+
selectedValue,
|
|
8948
|
+
onChange,
|
|
8949
|
+
required,
|
|
8950
|
+
disabled,
|
|
8951
|
+
width,
|
|
8952
|
+
height,
|
|
8953
|
+
withMarginBottom = true,
|
|
8954
|
+
error,
|
|
8955
|
+
errorMessage,
|
|
8956
|
+
xIconShow,
|
|
8957
|
+
labelColor,
|
|
8958
|
+
showLabelOnTop,
|
|
8959
|
+
orderBy,
|
|
8960
|
+
placeHolder = "",
|
|
8961
|
+
elementType
|
|
8962
|
+
} = _ref;
|
|
8962
8963
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
8963
8964
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
8964
8965
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -9463,26 +9464,27 @@ const IconContainer$4 = styled__default["default"].div`
|
|
|
9463
9464
|
cursor: pointer;
|
|
9464
9465
|
`;
|
|
9465
9466
|
|
|
9466
|
-
const DropdownMultiNew =
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9467
|
+
const DropdownMultiNew = _ref => {
|
|
9468
|
+
let {
|
|
9469
|
+
label,
|
|
9470
|
+
labelEmptyValue,
|
|
9471
|
+
options,
|
|
9472
|
+
selectedValue,
|
|
9473
|
+
onChange,
|
|
9474
|
+
required,
|
|
9475
|
+
disabled,
|
|
9476
|
+
width,
|
|
9477
|
+
height,
|
|
9478
|
+
withMarginBottom = true,
|
|
9479
|
+
error,
|
|
9480
|
+
errorMessage,
|
|
9481
|
+
labelColor,
|
|
9482
|
+
xIconShow,
|
|
9483
|
+
checkBoxColor,
|
|
9484
|
+
showLabelOnTop,
|
|
9485
|
+
orderBy,
|
|
9486
|
+
elementType
|
|
9487
|
+
} = _ref;
|
|
9486
9488
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
9487
9489
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
9488
9490
|
const [showAbove, setShowAbove] = React$1.useState(false);
|
|
@@ -34981,17 +34983,18 @@ styled.css`
|
|
|
34981
34983
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34982
34984
|
* • onCancel() — callback
|
|
34983
34985
|
*/
|
|
34984
|
-
const WeeksCalendar =
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34986
|
+
const WeeksCalendar = _ref => {
|
|
34987
|
+
let {
|
|
34988
|
+
year,
|
|
34989
|
+
defaultStartWeek = null,
|
|
34990
|
+
defaultEndWeek = null,
|
|
34991
|
+
backgroundColor = "#066768",
|
|
34992
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34993
|
+
allowedWeekRange = null,
|
|
34994
|
+
// New prop for range restriction
|
|
34995
|
+
onApply,
|
|
34996
|
+
onCancel
|
|
34997
|
+
} = _ref;
|
|
34995
34998
|
// state -------------------------------------------------
|
|
34996
34999
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
34997
35000
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -57734,6 +57737,7 @@ const OverlayDropdown = _ref => {
|
|
|
57734
57737
|
selectedColor = "#066768",
|
|
57735
57738
|
hoverColor = "#E6F0F0",
|
|
57736
57739
|
dropdownMaxHeight = "600px",
|
|
57740
|
+
dropdownWidth = "100%",
|
|
57737
57741
|
width = "100%",
|
|
57738
57742
|
height = "auto",
|
|
57739
57743
|
label,
|
|
@@ -57981,7 +57985,7 @@ const OverlayDropdown = _ref => {
|
|
|
57981
57985
|
ref: dropdownRef,
|
|
57982
57986
|
role: "listbox",
|
|
57983
57987
|
dropdownMaxHeight: dropdownMaxHeight,
|
|
57984
|
-
width:
|
|
57988
|
+
width: dropdownWidth,
|
|
57985
57989
|
position: dropdownPosition
|
|
57986
57990
|
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
|
|
57987
57991
|
$showBorder: group.overlayName,
|