sag_components 2.0.0-beta206 → 2.0.0-beta208
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 +100 -87
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +100 -87
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10580,23 +10580,24 @@ 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
|
-
|
|
10583
|
+
const QuarterPicker = _ref => {
|
|
10584
|
+
let {
|
|
10585
|
+
availableQuarters,
|
|
10586
|
+
// ["Q1-2024"]
|
|
10587
|
+
label,
|
|
10588
|
+
onChange,
|
|
10589
|
+
borderRadius,
|
|
10590
|
+
required,
|
|
10591
|
+
width,
|
|
10592
|
+
height,
|
|
10593
|
+
placeholder,
|
|
10594
|
+
disabled,
|
|
10595
|
+
borderColor,
|
|
10596
|
+
borderColorFocus,
|
|
10597
|
+
textColor,
|
|
10598
|
+
selectedValue,
|
|
10599
|
+
startYear
|
|
10600
|
+
} = _ref;
|
|
10600
10601
|
const [isFocused, setIsFocused] = useState(false);
|
|
10601
10602
|
const [isOpen, setIsOpen] = useState(false);
|
|
10602
10603
|
const [value, setValue] = useState('');
|
|
@@ -11038,22 +11039,23 @@ const MonthPopupPicker = ({
|
|
|
11038
11039
|
};
|
|
11039
11040
|
|
|
11040
11041
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
11041
|
-
const MonthPicker =
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11042
|
+
const MonthPicker = _ref => {
|
|
11043
|
+
let {
|
|
11044
|
+
availableMonths,
|
|
11045
|
+
label,
|
|
11046
|
+
onChange,
|
|
11047
|
+
borderRadius,
|
|
11048
|
+
required,
|
|
11049
|
+
width,
|
|
11050
|
+
height,
|
|
11051
|
+
placeholder,
|
|
11052
|
+
disabled,
|
|
11053
|
+
borderColor,
|
|
11054
|
+
borderColorFocus,
|
|
11055
|
+
textColor,
|
|
11056
|
+
selectedValue,
|
|
11057
|
+
startYear
|
|
11058
|
+
} = _ref;
|
|
11057
11059
|
const [isFocused, setIsFocused] = useState(false);
|
|
11058
11060
|
const [isOpen, setIsOpen] = useState(false);
|
|
11059
11061
|
const [value, setValue] = useState('');
|
|
@@ -24164,21 +24166,22 @@ const DeleteIcon = styled.div`
|
|
|
24164
24166
|
position: absolute;
|
|
24165
24167
|
`;
|
|
24166
24168
|
|
|
24167
|
-
const QuickFilterDropdownSingle =
|
|
24168
|
-
|
|
24169
|
-
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24169
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24170
|
+
let {
|
|
24171
|
+
label,
|
|
24172
|
+
hoverColor,
|
|
24173
|
+
options,
|
|
24174
|
+
selectedValue,
|
|
24175
|
+
placeHolder,
|
|
24176
|
+
onChange,
|
|
24177
|
+
disabled,
|
|
24178
|
+
width,
|
|
24179
|
+
error,
|
|
24180
|
+
errorMessage,
|
|
24181
|
+
xIconShow,
|
|
24182
|
+
labelColor,
|
|
24183
|
+
showLabelOnTop
|
|
24184
|
+
} = _ref;
|
|
24182
24185
|
const [isFocused, setIsFocused] = useState(false);
|
|
24183
24186
|
const [showOptions, setShowOptions] = useState(false);
|
|
24184
24187
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24575,23 +24578,24 @@ const IconContainer$2 = styled.div`
|
|
|
24575
24578
|
cursor: pointer;
|
|
24576
24579
|
`;
|
|
24577
24580
|
|
|
24578
|
-
const QuickFilterDropdownMultiSelection =
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24581
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24582
|
+
let {
|
|
24583
|
+
label,
|
|
24584
|
+
labelEmptyValue,
|
|
24585
|
+
options,
|
|
24586
|
+
selectedValue,
|
|
24587
|
+
placeHolder,
|
|
24588
|
+
onChange,
|
|
24589
|
+
required,
|
|
24590
|
+
disabled,
|
|
24591
|
+
width,
|
|
24592
|
+
error,
|
|
24593
|
+
errorMessage,
|
|
24594
|
+
labelColor,
|
|
24595
|
+
xIconShow,
|
|
24596
|
+
checkBoxColor,
|
|
24597
|
+
showLabelOnTop
|
|
24598
|
+
} = _ref;
|
|
24595
24599
|
const [isFocused, setIsFocused] = useState(false);
|
|
24596
24600
|
const [showOptions, setShowOptions] = useState(false);
|
|
24597
24601
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -35967,9 +35971,12 @@ const ToggleSwitchLabel = styled.label`
|
|
|
35967
35971
|
position: relative;
|
|
35968
35972
|
cursor: pointer;
|
|
35969
35973
|
user-select: none;
|
|
35970
|
-
opacity: ${
|
|
35971
|
-
|
|
35972
|
-
|
|
35974
|
+
opacity: ${_ref => {
|
|
35975
|
+
let {
|
|
35976
|
+
disabled
|
|
35977
|
+
} = _ref;
|
|
35978
|
+
return disabled ? 0.5 : 1;
|
|
35979
|
+
}};
|
|
35973
35980
|
`;
|
|
35974
35981
|
const ToggleInput = styled.input`
|
|
35975
35982
|
display: none;
|
|
@@ -35977,15 +35984,19 @@ const ToggleInput = styled.input`
|
|
|
35977
35984
|
const ToggleSlider = styled.span`
|
|
35978
35985
|
display: block;
|
|
35979
35986
|
position: relative;
|
|
35980
|
-
background: ${
|
|
35981
|
-
|
|
35982
|
-
|
|
35983
|
-
|
|
35987
|
+
background: ${_ref2 => {
|
|
35988
|
+
let {
|
|
35989
|
+
checked,
|
|
35990
|
+
disabled
|
|
35991
|
+
} = _ref2;
|
|
35992
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
35993
|
+
}};
|
|
35984
35994
|
border-radius: 999px;
|
|
35985
35995
|
transition: background 0.2s;
|
|
35986
|
-
${
|
|
35987
|
-
|
|
35988
|
-
|
|
35996
|
+
${_ref3 => {
|
|
35997
|
+
let {
|
|
35998
|
+
size
|
|
35999
|
+
} = _ref3;
|
|
35989
36000
|
switch (size) {
|
|
35990
36001
|
case "s":
|
|
35991
36002
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36004,9 +36015,10 @@ const ToggleSlider = styled.span`
|
|
|
36004
36015
|
background: #fff;
|
|
36005
36016
|
border-radius: 50%;
|
|
36006
36017
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36007
|
-
${
|
|
36008
|
-
|
|
36009
|
-
|
|
36018
|
+
${_ref4 => {
|
|
36019
|
+
let {
|
|
36020
|
+
size
|
|
36021
|
+
} = _ref4;
|
|
36010
36022
|
switch (size) {
|
|
36011
36023
|
case "s":
|
|
36012
36024
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36016,10 +36028,11 @@ const ToggleSlider = styled.span`
|
|
|
36016
36028
|
return css`width: 20px; height: 20px;`;
|
|
36017
36029
|
}
|
|
36018
36030
|
}}
|
|
36019
|
-
left: ${
|
|
36020
|
-
|
|
36021
|
-
|
|
36022
|
-
|
|
36031
|
+
left: ${_ref5 => {
|
|
36032
|
+
let {
|
|
36033
|
+
checked,
|
|
36034
|
+
size
|
|
36035
|
+
} = _ref5;
|
|
36023
36036
|
if (!checked) return "3px";
|
|
36024
36037
|
switch (size) {
|
|
36025
36038
|
case "s":
|
|
@@ -36033,9 +36046,9 @@ const ToggleSlider = styled.span`
|
|
|
36033
36046
|
}
|
|
36034
36047
|
`;
|
|
36035
36048
|
|
|
36036
|
-
/**
|
|
36037
|
-
* ToggleSwitch component for on/off states.
|
|
36038
|
-
* Supports small/large sizes and disabled state.
|
|
36049
|
+
/**
|
|
36050
|
+
* ToggleSwitch component for on/off states.
|
|
36051
|
+
* Supports small/large sizes and disabled state.
|
|
36039
36052
|
*/
|
|
36040
36053
|
function ToggleSwitch(_ref) {
|
|
36041
36054
|
let {
|
|
@@ -38746,7 +38759,7 @@ const TableHeader = ({
|
|
|
38746
38759
|
type: "checkbox",
|
|
38747
38760
|
onChange: e => handleCheckboxChange(column.key, e.target.checked),
|
|
38748
38761
|
"data-column": column.key
|
|
38749
|
-
}), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle
|
|
38762
|
+
}), column.fieldType?.toLowerCase() === 'checkbox' && column.showCheckboxInTitle === true && /*#__PURE__*/React$1.createElement(ColumnCheckbox, {
|
|
38750
38763
|
type: "checkbox",
|
|
38751
38764
|
checked: headerCheckboxStates[column.key] || false,
|
|
38752
38765
|
onChange: e => handleHeaderCheckboxClick(column.key, e),
|
|
@@ -38763,7 +38776,7 @@ const TableHeader = ({
|
|
|
38763
38776
|
alignItems: 'center',
|
|
38764
38777
|
justifyContent: 'center'
|
|
38765
38778
|
}
|
|
38766
|
-
}), column.
|
|
38779
|
+
}), column.title && /*#__PURE__*/React$1.createElement(ColumnLabel, null, column.title), (column.filter || column.sort) && /*#__PURE__*/React$1.createElement(ColumnActions, null, column.sort && /*#__PURE__*/React$1.createElement(IconButton, {
|
|
38767
38780
|
ref: el => iconRefs.current[`sort-${column.key}`] = el,
|
|
38768
38781
|
onClick: () => handleSort(column.key),
|
|
38769
38782
|
onMouseEnter: () => setFocusedSort(column.key),
|