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.js CHANGED
@@ -24176,21 +24176,22 @@ const DeleteIcon = styled__default["default"].div`
24176
24176
  position: absolute;
24177
24177
  `;
24178
24178
 
24179
- const QuickFilterDropdownSingle = ({
24180
- label,
24181
- hoverColor,
24182
- options,
24183
- selectedValue,
24184
- placeHolder,
24185
- onChange,
24186
- disabled,
24187
- width,
24188
- error,
24189
- errorMessage,
24190
- xIconShow,
24191
- labelColor,
24192
- showLabelOnTop
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
- label,
24652
- labelEmptyValue,
24653
- options,
24654
- selectedValue,
24655
- placeHolder,
24656
- onChange,
24657
- required,
24658
- disabled,
24659
- width,
24660
- height,
24661
- error,
24662
- errorMessage,
24663
- labelColor,
24664
- xIconShow,
24665
- checkBoxColor,
24666
- showLabelOnTop,
24667
- dropdownHeight
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 = _ref => {
34982
- let {
34983
- year,
34984
- defaultStartWeek = null,
34985
- defaultEndWeek = null,
34986
- backgroundColor = "#066768",
34987
- hoverBackgroundColor = "#E6F0F0",
34988
- allowedWeekRange = null,
34989
- // New prop for range restriction
34990
- onApply,
34991
- onCancel
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(null);
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);