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.js
CHANGED
|
@@ -24176,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24176
24176
|
position: absolute;
|
|
24177
24177
|
`;
|
|
24178
24178
|
|
|
24179
|
-
const QuickFilterDropdownSingle =
|
|
24180
|
-
|
|
24181
|
-
|
|
24182
|
-
|
|
24183
|
-
|
|
24184
|
-
|
|
24185
|
-
|
|
24186
|
-
|
|
24187
|
-
|
|
24188
|
-
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
|
|
24192
|
-
|
|
24193
|
-
|
|
24179
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
24180
|
+
let {
|
|
24181
|
+
label,
|
|
24182
|
+
hoverColor,
|
|
24183
|
+
options,
|
|
24184
|
+
selectedValue,
|
|
24185
|
+
placeHolder,
|
|
24186
|
+
onChange,
|
|
24187
|
+
disabled,
|
|
24188
|
+
width,
|
|
24189
|
+
error,
|
|
24190
|
+
errorMessage,
|
|
24191
|
+
xIconShow,
|
|
24192
|
+
labelColor,
|
|
24193
|
+
showLabelOnTop
|
|
24194
|
+
} = _ref;
|
|
24194
24195
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24195
24196
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24196
24197
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24647,25 +24648,26 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24647
24648
|
cursor: pointer;
|
|
24648
24649
|
`;
|
|
24649
24650
|
|
|
24650
|
-
const QuickFilterDropdownMultiSelection =
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24668
|
-
|
|
24651
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
24652
|
+
let {
|
|
24653
|
+
label,
|
|
24654
|
+
labelEmptyValue,
|
|
24655
|
+
options,
|
|
24656
|
+
selectedValue,
|
|
24657
|
+
placeHolder,
|
|
24658
|
+
onChange,
|
|
24659
|
+
required,
|
|
24660
|
+
disabled,
|
|
24661
|
+
width,
|
|
24662
|
+
height,
|
|
24663
|
+
error,
|
|
24664
|
+
errorMessage,
|
|
24665
|
+
labelColor,
|
|
24666
|
+
xIconShow,
|
|
24667
|
+
checkBoxColor,
|
|
24668
|
+
showLabelOnTop,
|
|
24669
|
+
dropdownHeight
|
|
24670
|
+
} = _ref;
|
|
24669
24671
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24670
24672
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24671
24673
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -34978,18 +34980,17 @@ styled.css`
|
|
|
34978
34980
|
* • onApply(start,end) — callback, both numbers (inclusive)
|
|
34979
34981
|
* • onCancel() — callback
|
|
34980
34982
|
*/
|
|
34981
|
-
const WeeksCalendar =
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
} = _ref;
|
|
34983
|
+
const WeeksCalendar = ({
|
|
34984
|
+
year,
|
|
34985
|
+
defaultStartWeek = null,
|
|
34986
|
+
defaultEndWeek = null,
|
|
34987
|
+
backgroundColor = "#066768",
|
|
34988
|
+
hoverBackgroundColor = "#E6F0F0",
|
|
34989
|
+
allowedWeekRange = null,
|
|
34990
|
+
// New prop for range restriction
|
|
34991
|
+
onApply,
|
|
34992
|
+
onCancel
|
|
34993
|
+
}) => {
|
|
34993
34994
|
// state -------------------------------------------------
|
|
34994
34995
|
const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
|
|
34995
34996
|
const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
|
|
@@ -38790,7 +38791,12 @@ const TableHeader = ({
|
|
|
38790
38791
|
inputType: "text",
|
|
38791
38792
|
placeholder: column.key === 'EventCode' ? 'Enter Event ID' : 'Search..',
|
|
38792
38793
|
fieldHeight: "40px",
|
|
38793
|
-
onTyping:
|
|
38794
|
+
onTyping: value => {
|
|
38795
|
+
setFilterState(prev => ({
|
|
38796
|
+
...prev,
|
|
38797
|
+
[key]: value
|
|
38798
|
+
}));
|
|
38799
|
+
},
|
|
38794
38800
|
onReset: () => {
|
|
38795
38801
|
setFilterState(prev => ({
|
|
38796
38802
|
...prev,
|
|
@@ -55043,7 +55049,7 @@ const OverlayDropdown = _ref => {
|
|
|
55043
55049
|
const [hoveredText, setHoveredText] = React$1.useState(null);
|
|
55044
55050
|
const [templateDialog, setTemplateDialog] = React$1.useState(null);
|
|
55045
55051
|
const [dropdownPosition, setDropdownPosition] = React$1.useState('below');
|
|
55046
|
-
const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(
|
|
55052
|
+
const [lastDefinedGroup, setLastDefinedGroup] = React$1.useState(data.find(group => group.overlayCode === 'last_defined'));
|
|
55047
55053
|
const buttonRef = React$1.useRef(null);
|
|
55048
55054
|
const dropdownRef = React$1.useRef(null);
|
|
55049
55055
|
const containerRef = React$1.useRef(null);
|