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.esm.js
CHANGED
|
@@ -10580,24 +10580,23 @@ const QuarterPopupPicker = ({
|
|
|
10580
10580
|
};
|
|
10581
10581
|
|
|
10582
10582
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
10583
|
-
const QuarterPicker =
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
} = _ref;
|
|
10583
|
+
const QuarterPicker = ({
|
|
10584
|
+
availableQuarters,
|
|
10585
|
+
// ["Q1-2024"]
|
|
10586
|
+
label,
|
|
10587
|
+
onChange,
|
|
10588
|
+
borderRadius,
|
|
10589
|
+
required,
|
|
10590
|
+
width,
|
|
10591
|
+
height,
|
|
10592
|
+
placeholder,
|
|
10593
|
+
disabled,
|
|
10594
|
+
borderColor,
|
|
10595
|
+
borderColorFocus,
|
|
10596
|
+
textColor,
|
|
10597
|
+
selectedValue,
|
|
10598
|
+
startYear
|
|
10599
|
+
}) => {
|
|
10601
10600
|
const [isFocused, setIsFocused] = useState(false);
|
|
10602
10601
|
const [isOpen, setIsOpen] = useState(false);
|
|
10603
10602
|
const [value, setValue] = useState('');
|
|
@@ -11039,23 +11038,22 @@ const MonthPopupPicker = ({
|
|
|
11039
11038
|
};
|
|
11040
11039
|
|
|
11041
11040
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11042
|
-
const MonthPicker =
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
} = _ref;
|
|
11041
|
+
const MonthPicker = ({
|
|
11042
|
+
availableMonths,
|
|
11043
|
+
label,
|
|
11044
|
+
onChange,
|
|
11045
|
+
borderRadius,
|
|
11046
|
+
required,
|
|
11047
|
+
width,
|
|
11048
|
+
height,
|
|
11049
|
+
placeholder,
|
|
11050
|
+
disabled,
|
|
11051
|
+
borderColor,
|
|
11052
|
+
borderColorFocus,
|
|
11053
|
+
textColor,
|
|
11054
|
+
selectedValue,
|
|
11055
|
+
startYear
|
|
11056
|
+
}) => {
|
|
11059
11057
|
const [isFocused, setIsFocused] = useState(false);
|
|
11060
11058
|
const [isOpen, setIsOpen] = useState(false);
|
|
11061
11059
|
const [value, setValue] = useState('');
|
|
@@ -34968,18 +34966,17 @@ css`
|
|
|
34968
34966
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34969
34967
|
* • onCancel() — callback
|
|
34970
34968
|
*/
|
|
34971
|
-
const WeeksCalendar =
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
} = _ref;
|
|
34969
|
+
const WeeksCalendar = ({
|
|
34970
|
+
year,
|
|
34971
|
+
defaultStartWeek = null,
|
|
34972
|
+
defaultEndWeek = null,
|
|
34973
|
+
backgroundColor = "#066768",
|
|
34974
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34975
|
+
allowedWeekRange = null,
|
|
34976
|
+
// New prop for range restriction
|
|
34977
|
+
onApply,
|
|
34978
|
+
onCancel
|
|
34979
|
+
}) => {
|
|
34983
34980
|
// state -------------------------------------------------
|
|
34984
34981
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34985
34982
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -36074,12 +36071,9 @@ const ToggleSwitchLabel = styled.label`
|
|
|
36074
36071
|
position: relative;
|
|
36075
36072
|
cursor: pointer;
|
|
36076
36073
|
user-select: none;
|
|
36077
|
-
opacity: ${
|
|
36078
|
-
|
|
36079
|
-
|
|
36080
|
-
} = _ref;
|
|
36081
|
-
return disabled ? 0.5 : 1;
|
|
36082
|
-
}};
|
|
36074
|
+
opacity: ${({
|
|
36075
|
+
disabled
|
|
36076
|
+
}) => disabled ? 0.5 : 1};
|
|
36083
36077
|
`;
|
|
36084
36078
|
const ToggleInput = styled.input`
|
|
36085
36079
|
display: none;
|
|
@@ -36087,19 +36081,15 @@ const ToggleInput = styled.input`
|
|
|
36087
36081
|
const ToggleSlider = styled.span`
|
|
36088
36082
|
display: block;
|
|
36089
36083
|
position: relative;
|
|
36090
|
-
background: ${
|
|
36091
|
-
|
|
36092
|
-
|
|
36093
|
-
|
|
36094
|
-
} = _ref2;
|
|
36095
|
-
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36096
|
-
}};
|
|
36084
|
+
background: ${({
|
|
36085
|
+
checked,
|
|
36086
|
+
disabled
|
|
36087
|
+
}) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
|
|
36097
36088
|
border-radius: 999px;
|
|
36098
36089
|
transition: background 0.2s;
|
|
36099
|
-
${
|
|
36100
|
-
|
|
36101
|
-
|
|
36102
|
-
} = _ref3;
|
|
36090
|
+
${({
|
|
36091
|
+
size
|
|
36092
|
+
}) => {
|
|
36103
36093
|
switch (size) {
|
|
36104
36094
|
case "s":
|
|
36105
36095
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36118,10 +36108,9 @@ const ToggleSlider = styled.span`
|
|
|
36118
36108
|
background: #fff;
|
|
36119
36109
|
border-radius: 50%;
|
|
36120
36110
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36121
|
-
${
|
|
36122
|
-
|
|
36123
|
-
|
|
36124
|
-
} = _ref4;
|
|
36111
|
+
${({
|
|
36112
|
+
size
|
|
36113
|
+
}) => {
|
|
36125
36114
|
switch (size) {
|
|
36126
36115
|
case "s":
|
|
36127
36116
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36131,11 +36120,10 @@ const ToggleSlider = styled.span`
|
|
|
36131
36120
|
return css`width: 20px; height: 20px;`;
|
|
36132
36121
|
}
|
|
36133
36122
|
}}
|
|
36134
|
-
left: ${
|
|
36135
|
-
|
|
36136
|
-
|
|
36137
|
-
|
|
36138
|
-
} = _ref5;
|
|
36123
|
+
left: ${({
|
|
36124
|
+
checked,
|
|
36125
|
+
size
|
|
36126
|
+
}) => {
|
|
36139
36127
|
if (!checked) return "3px";
|
|
36140
36128
|
switch (size) {
|
|
36141
36129
|
case "s":
|
|
@@ -38780,7 +38768,12 @@ const TableHeader = ({
|
|
|
38780
38768
|
inputType: "text",
|
|
38781
38769
|
placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
|
|
38782
38770
|
fieldHeight: "40px",
|
|
38783
|
-
onTyping:
|
|
38771
|
+
onTyping: value => {
|
|
38772
|
+
setFilterState(prev => ({
|
|
38773
|
+
...prev,
|
|
38774
|
+
[key]: value
|
|
38775
|
+
}));
|
|
38776
|
+
},
|
|
38784
38777
|
onReset: () => {
|
|
38785
38778
|
setFilterState(prev => ({
|
|
38786
38779
|
...prev,
|