sag_components 2.0.0-beta216 → 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 +54 -48
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +54 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -24166,21 +24166,22 @@ const DeleteIcon = styled.div`
|
|
|
24166
24166
|
position: absolute;
|
|
24167
24167
|
`;
|
|
24168
24168
|
|
|
24169
|
-
const QuickFilterDropdownSingle =
|
|
24170
|
-
|
|
24171
|
-
|
|
24172
|
-
|
|
24173
|
-
|
|
24174
|
-
|
|
24175
|
-
|
|
24176
|
-
|
|
24177
|
-
|
|
24178
|
-
|
|
24179
|
-
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
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;
|
|
24184
24185
|
const [isFocused, setIsFocused] = useState(false);
|
|
24185
24186
|
const [showOptions, setShowOptions] = useState(false);
|
|
24186
24187
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24637,25 +24638,26 @@ const IconContainer$2 = styled.div`
|
|
|
24637
24638
|
cursor: pointer;
|
|
24638
24639
|
`;
|
|
24639
24640
|
|
|
24640
|
-
const QuickFilterDropdownMultiSelection =
|
|
24641
|
-
|
|
24642
|
-
|
|
24643
|
-
|
|
24644
|
-
|
|
24645
|
-
|
|
24646
|
-
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
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;
|
|
24659
24661
|
const [isFocused, setIsFocused] = useState(false);
|
|
24660
24662
|
const [showOptions, setShowOptions] = useState(false);
|
|
24661
24663
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -34968,18 +34970,17 @@ css`
|
|
|
34968
34970
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34969
34971
|
* • onCancel() — callback
|
|
34970
34972
|
*/
|
|
34971
|
-
const WeeksCalendar =
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
} = _ref;
|
|
34973
|
+
const WeeksCalendar = ({
|
|
34974
|
+
year,
|
|
34975
|
+
defaultStartWeek = null,
|
|
34976
|
+
defaultEndWeek = null,
|
|
34977
|
+
backgroundColor = "#066768",
|
|
34978
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34979
|
+
allowedWeekRange = null,
|
|
34980
|
+
// New prop for range restriction
|
|
34981
|
+
onApply,
|
|
34982
|
+
onCancel
|
|
34983
|
+
}) => {
|
|
34983
34984
|
// state -------------------------------------------------
|
|
34984
34985
|
const [startWeek, setStartWeek] = useState(defaultStartWeek);
|
|
34985
34986
|
const [endWeek, setEndWeek] = useState(defaultEndWeek);
|
|
@@ -38780,7 +38781,12 @@ const TableHeader = ({
|
|
|
38780
38781
|
inputType: "text",
|
|
38781
38782
|
placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
|
|
38782
38783
|
fieldHeight: "40px",
|
|
38783
|
-
onTyping:
|
|
38784
|
+
onTyping: value => {
|
|
38785
|
+
setFilterState(prev => ({
|
|
38786
|
+
...prev,
|
|
38787
|
+
[key]: value
|
|
38788
|
+
}));
|
|
38789
|
+
},
|
|
38784
38790
|
onReset: () => {
|
|
38785
38791
|
setFilterState(prev => ({
|
|
38786
38792
|
...prev,
|
|
@@ -55033,7 +55039,7 @@ const OverlayDropdown = _ref => {
|
|
|
55033
55039
|
const [hoveredText, setHoveredText] = useState(null);
|
|
55034
55040
|
const [templateDialog, setTemplateDialog] = useState(null);
|
|
55035
55041
|
const [dropdownPosition, setDropdownPosition] = useState('below');
|
|
55036
|
-
const [lastDefinedGroup, setLastDefinedGroup] = useState(
|
|
55042
|
+
const [lastDefinedGroup, setLastDefinedGroup] = useState(data.find(group => group.overlayCode === 'last_defined'));
|
|
55037
55043
|
const buttonRef = useRef(null);
|
|
55038
55044
|
const dropdownRef = useRef(null);
|
|
55039
55045
|
const containerRef = useRef(null);
|