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 CHANGED
@@ -24166,21 +24166,22 @@ const DeleteIcon = styled.div`
24166
24166
  position: absolute;
24167
24167
  `;
24168
24168
 
24169
- const QuickFilterDropdownSingle = ({
24170
- label,
24171
- hoverColor,
24172
- options,
24173
- selectedValue,
24174
- placeHolder,
24175
- onChange,
24176
- disabled,
24177
- width,
24178
- error,
24179
- errorMessage,
24180
- xIconShow,
24181
- labelColor,
24182
- showLabelOnTop
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
- label,
24642
- labelEmptyValue,
24643
- options,
24644
- selectedValue,
24645
- placeHolder,
24646
- onChange,
24647
- required,
24648
- disabled,
24649
- width,
24650
- height,
24651
- error,
24652
- errorMessage,
24653
- labelColor,
24654
- xIconShow,
24655
- checkBoxColor,
24656
- showLabelOnTop,
24657
- dropdownHeight
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 = _ref => {
34972
- let {
34973
- year,
34974
- defaultStartWeek = null,
34975
- defaultEndWeek = null,
34976
- backgroundColor = "#066768",
34977
- hoverBackgroundColor = "#E6F0F0",
34978
- allowedWeekRange = null,
34979
- // New prop for range restriction
34980
- onApply,
34981
- onCancel
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(null);
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);