sag_components 2.0.0-beta216 → 2.0.0-beta217
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 +67 -74
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +67 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10590,24 +10590,23 @@ const QuarterPopupPicker = ({
|
|
|
10590
10590
|
};
|
|
10591
10591
|
|
|
10592
10592
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10593
|
-
const QuarterPicker =
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
} = _ref;
|
|
10593
|
+
const QuarterPicker = ({
|
|
10594
|
+
availableQuarters,
|
|
10595
|
+
// ["Q1-2024"]
|
|
10596
|
+
label,
|
|
10597
|
+
onChange,
|
|
10598
|
+
borderRadius,
|
|
10599
|
+
required,
|
|
10600
|
+
width,
|
|
10601
|
+
height,
|
|
10602
|
+
placeholder,
|
|
10603
|
+
disabled,
|
|
10604
|
+
borderColor,
|
|
10605
|
+
borderColorFocus,
|
|
10606
|
+
textColor,
|
|
10607
|
+
selectedValue,
|
|
10608
|
+
startYear
|
|
10609
|
+
}) => {
|
|
10611
10610
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10612
10611
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
10613
10612
|
const [value, setValue] = React$1.useState('');
|
|
@@ -11049,23 +11048,22 @@ const MonthPopupPicker = ({
|
|
|
11049
11048
|
};
|
|
11050
11049
|
|
|
11051
11050
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11052
|
-
const MonthPicker =
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
} = _ref;
|
|
11051
|
+
const MonthPicker = ({
|
|
11052
|
+
availableMonths,
|
|
11053
|
+
label,
|
|
11054
|
+
onChange,
|
|
11055
|
+
borderRadius,
|
|
11056
|
+
required,
|
|
11057
|
+
width,
|
|
11058
|
+
height,
|
|
11059
|
+
placeholder,
|
|
11060
|
+
disabled,
|
|
11061
|
+
borderColor,
|
|
11062
|
+
borderColorFocus,
|
|
11063
|
+
textColor,
|
|
11064
|
+
selectedValue,
|
|
11065
|
+
startYear
|
|
11066
|
+
}) => {
|
|
11069
11067
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11070
11068
|
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
11071
11069
|
const [value, setValue] = React$1.useState('');
|
|
@@ -34978,18 +34976,17 @@ styled.css`
|
|
|
34978
34976
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34979
34977
|
* • onCancel() — callback
|
|
34980
34978
|
*/
|
|
34981
|
-
const WeeksCalendar =
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
} = _ref;
|
|
34979
|
+
const WeeksCalendar = ({
|
|
34980
|
+
year,
|
|
34981
|
+
defaultStartWeek = null,
|
|
34982
|
+
defaultEndWeek = null,
|
|
34983
|
+
backgroundColor = "#066768",
|
|
34984
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34985
|
+
allowedWeekRange = null,
|
|
34986
|
+
// New prop for range restriction
|
|
34987
|
+
onApply,
|
|
34988
|
+
onCancel
|
|
34989
|
+
}) => {
|
|
34993
34990
|
// state -------------------------------------------------
|
|
34994
34991
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
34995
34992
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -36084,12 +36081,9 @@ const ToggleSwitchLabel = styled__default["default"].label`
|
|
|
36084
36081
|
position: relative;
|
|
36085
36082
|
cursor: pointer;
|
|
36086
36083
|
user-select: none;
|
|
36087
|
-
opacity: ${
|
|
36088
|
-
|
|
36089
|
-
|
|
36090
|
-
} = _ref;
|
|
36091
|
-
return disabled ? 0.5 : 1;
|
|
36092
|
-
}};
|
|
36084
|
+
opacity: ${({
|
|
36085
|
+
disabled
|
|
36086
|
+
}) => disabled ? 0.5 : 1};
|
|
36093
36087
|
`;
|
|
36094
36088
|
const ToggleInput = styled__default["default"].input`
|
|
36095
36089
|
display: none;
|
|
@@ -36097,19 +36091,15 @@ const ToggleInput = styled__default["default"].input`
|
|
|
36097
36091
|
const ToggleSlider = styled__default["default"].span`
|
|
36098
36092
|
display: block;
|
|
36099
36093
|
position: relative;
|
|
36100
|
-
background: ${
|
|
36101
|
-
|
|
36102
|
-
|
|
36103
|
-
|
|
36104
|
-
} = _ref2;
|
|
36105
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36106
|
-
}};
|
|
36094
|
+
background: ${({
|
|
36095
|
+
checked,
|
|
36096
|
+
disabled
|
|
36097
|
+
}) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
|
|
36107
36098
|
border-radius: 999px;
|
|
36108
36099
|
transition: background 0.2s;
|
|
36109
|
-
${
|
|
36110
|
-
|
|
36111
|
-
|
|
36112
|
-
} = _ref3;
|
|
36100
|
+
${({
|
|
36101
|
+
size
|
|
36102
|
+
}) => {
|
|
36113
36103
|
switch (size) {
|
|
36114
36104
|
case "s":
|
|
36115
36105
|
return styled.css`width: 40px; height: 20px;`;
|
|
@@ -36128,10 +36118,9 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36128
36118
|
background: #fff;
|
|
36129
36119
|
border-radius: 50%;
|
|
36130
36120
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36131
|
-
${
|
|
36132
|
-
|
|
36133
|
-
|
|
36134
|
-
} = _ref4;
|
|
36121
|
+
${({
|
|
36122
|
+
size
|
|
36123
|
+
}) => {
|
|
36135
36124
|
switch (size) {
|
|
36136
36125
|
case "s":
|
|
36137
36126
|
return styled.css`width: 14px; height: 14px;`;
|
|
@@ -36141,11 +36130,10 @@ const ToggleSlider = styled__default["default"].span`
|
|
|
36141
36130
|
return styled.css`width: 20px; height: 20px;`;
|
|
36142
36131
|
}
|
|
36143
36132
|
}}
|
|
36144
|
-
left: ${
|
|
36145
|
-
|
|
36146
|
-
|
|
36147
|
-
|
|
36148
|
-
} = _ref5;
|
|
36133
|
+
left: ${({
|
|
36134
|
+
checked,
|
|
36135
|
+
size
|
|
36136
|
+
}) => {
|
|
36149
36137
|
if (!checked) return "3px";
|
|
36150
36138
|
switch (size) {
|
|
36151
36139
|
case "s":
|
|
@@ -38790,7 +38778,12 @@ const TableHeader = ({
|
|
|
38790
38778
|
inputType: "text",
|
|
38791
38779
|
placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
|
|
38792
38780
|
fieldHeight: "40px",
|
|
38793
|
-
onTyping:
|
|
38781
|
+
onTyping: value => {
|
|
38782
|
+
setFilterState(prev => ({
|
|
38783
|
+
...prev,
|
|
38784
|
+
[key]: value
|
|
38785
|
+
}));
|
|
38786
|
+
},
|
|
38794
38787
|
onReset: () => {
|
|
38795
38788
|
setFilterState(prev => ({
|
|
38796
38789
|
...prev,
|