sag_components 2.0.0-beta217 → 2.0.0-beta218
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 +98 -85
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +98 -85
- 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("");
|
|
@@ -24635,25 +24638,26 @@ const IconContainer$2 = styled.div`
|
|
|
24635
24638
|
cursor: pointer;
|
|
24636
24639
|
`;
|
|
24637
24640
|
|
|
24638
|
-
const QuickFilterDropdownMultiSelection =
|
|
24639
|
-
|
|
24640
|
-
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24641
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24642
|
+
let {
|
|
24643
|
+
label,
|
|
24644
|
+
labelEmptyValue,
|
|
24645
|
+
options,
|
|
24646
|
+
selectedValue,
|
|
24647
|
+
placeHolder,
|
|
24648
|
+
onChange,
|
|
24649
|
+
required,
|
|
24650
|
+
disabled,
|
|
24651
|
+
width,
|
|
24652
|
+
height,
|
|
24653
|
+
error,
|
|
24654
|
+
errorMessage,
|
|
24655
|
+
labelColor,
|
|
24656
|
+
xIconShow,
|
|
24657
|
+
checkBoxColor,
|
|
24658
|
+
showLabelOnTop,
|
|
24659
|
+
dropdownHeight
|
|
24660
|
+
} = _ref;
|
|
24657
24661
|
const [isFocused, setIsFocused] = useState(false);
|
|
24658
24662
|
const [showOptions, setShowOptions] = useState(false);
|
|
24659
24663
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -36071,9 +36075,12 @@ const ToggleSwitchLabel = styled.label`
|
|
|
36071
36075
|
position: relative;
|
|
36072
36076
|
cursor: pointer;
|
|
36073
36077
|
user-select: none;
|
|
36074
|
-
opacity: ${
|
|
36075
|
-
|
|
36076
|
-
|
|
36078
|
+
opacity: ${_ref => {
|
|
36079
|
+
let {
|
|
36080
|
+
disabled
|
|
36081
|
+
} = _ref;
|
|
36082
|
+
return disabled ? 0.5 : 1;
|
|
36083
|
+
}};
|
|
36077
36084
|
`;
|
|
36078
36085
|
const ToggleInput = styled.input`
|
|
36079
36086
|
display: none;
|
|
@@ -36081,15 +36088,19 @@ const ToggleInput = styled.input`
|
|
|
36081
36088
|
const ToggleSlider = styled.span`
|
|
36082
36089
|
display: block;
|
|
36083
36090
|
position: relative;
|
|
36084
|
-
background: ${
|
|
36085
|
-
|
|
36086
|
-
|
|
36087
|
-
|
|
36091
|
+
background: ${_ref2 => {
|
|
36092
|
+
let {
|
|
36093
|
+
checked,
|
|
36094
|
+
disabled
|
|
36095
|
+
} = _ref2;
|
|
36096
|
+
return checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc";
|
|
36097
|
+
}};
|
|
36088
36098
|
border-radius: 999px;
|
|
36089
36099
|
transition: background 0.2s;
|
|
36090
|
-
${
|
|
36091
|
-
|
|
36092
|
-
|
|
36100
|
+
${_ref3 => {
|
|
36101
|
+
let {
|
|
36102
|
+
size
|
|
36103
|
+
} = _ref3;
|
|
36093
36104
|
switch (size) {
|
|
36094
36105
|
case "s":
|
|
36095
36106
|
return css`width: 40px; height: 20px;`;
|
|
@@ -36108,9 +36119,10 @@ const ToggleSlider = styled.span`
|
|
|
36108
36119
|
background: #fff;
|
|
36109
36120
|
border-radius: 50%;
|
|
36110
36121
|
transition: left 0.2s, width 0.2s, height 0.2s;
|
|
36111
|
-
${
|
|
36112
|
-
|
|
36113
|
-
|
|
36122
|
+
${_ref4 => {
|
|
36123
|
+
let {
|
|
36124
|
+
size
|
|
36125
|
+
} = _ref4;
|
|
36114
36126
|
switch (size) {
|
|
36115
36127
|
case "s":
|
|
36116
36128
|
return css`width: 14px; height: 14px;`;
|
|
@@ -36120,10 +36132,11 @@ const ToggleSlider = styled.span`
|
|
|
36120
36132
|
return css`width: 20px; height: 20px;`;
|
|
36121
36133
|
}
|
|
36122
36134
|
}}
|
|
36123
|
-
left: ${
|
|
36124
|
-
|
|
36125
|
-
|
|
36126
|
-
|
|
36135
|
+
left: ${_ref5 => {
|
|
36136
|
+
let {
|
|
36137
|
+
checked,
|
|
36138
|
+
size
|
|
36139
|
+
} = _ref5;
|
|
36127
36140
|
if (!checked) return "3px";
|
|
36128
36141
|
switch (size) {
|
|
36129
36142
|
case "s":
|
|
@@ -55026,7 +55039,7 @@ const OverlayDropdown = _ref => {
|
|
|
55026
55039
|
const [hoveredText, setHoveredText] = useState(null);
|
|
55027
55040
|
const [templateDialog, setTemplateDialog] = useState(null);
|
|
55028
55041
|
const [dropdownPosition, setDropdownPosition] = useState('below');
|
|
55029
|
-
const [lastDefinedGroup, setLastDefinedGroup] = useState(
|
|
55042
|
+
const [lastDefinedGroup, setLastDefinedGroup] = useState(data.find(group => group.overlayCode === 'last_defined'));
|
|
55030
55043
|
const buttonRef = useRef(null);
|
|
55031
55044
|
const dropdownRef = useRef(null);
|
|
55032
55045
|
const containerRef = useRef(null);
|