sag_components 2.0.0-beta294 → 2.0.0-beta295

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
@@ -47085,16 +47085,16 @@ const NothingToTrackIcon = ({
47085
47085
  // Table.jsx
47086
47086
  const Table = props => {
47087
47087
  const {
47088
- width = '100%',
47089
- height = 'auto',
47090
- tableTitle = 'All Events',
47091
- tableBackground = '#FFFFFF',
47088
+ width = "100%",
47089
+ height = "auto",
47090
+ tableTitle = "All Events",
47091
+ tableBackground = "#FFFFFF",
47092
47092
  data = [],
47093
47093
  counter = 0,
47094
47094
  hideRowsCounter = false,
47095
47095
  onButtonClick = () => {},
47096
- buttonColor = '#066768',
47097
- buttonHoverColor = '#388586',
47096
+ buttonColor = "#066768",
47097
+ buttonHoverColor = "#388586",
47098
47098
  columns = [],
47099
47099
  onRowClick = () => {},
47100
47100
  onSort,
@@ -47102,14 +47102,14 @@ const Table = props => {
47102
47102
  onSelectAll,
47103
47103
  showSideButton = true,
47104
47104
  onSideButtonClick = () => {},
47105
- sideButtonColor = '#066768',
47106
- sideButtonHoverColor = '#388586',
47107
- selectedColor = '#B4D1D2',
47105
+ sideButtonColor = "#066768",
47106
+ sideButtonHoverColor = "#388586",
47107
+ selectedColor = "#B4D1D2",
47108
47108
  children = null,
47109
- tableBodyHeight = '728px',
47109
+ tableBodyHeight = "728px",
47110
47110
  isLoading = false,
47111
47111
  isLoadingSpinner = false,
47112
- isLoadingText = 'Loading Events...',
47112
+ isLoadingText = "Loading Events...",
47113
47113
  onLastRowsReached = () => {},
47114
47114
  lastRowsThreshold = 3,
47115
47115
  onSendClick = () => {},
@@ -47139,17 +47139,17 @@ const Table = props => {
47139
47139
  expandedRows = {},
47140
47140
  expandedContent = {},
47141
47141
  onExpandRow = () => {},
47142
- expandedBackgroundColor = '#E6F0F0',
47142
+ expandedBackgroundColor = "#E6F0F0",
47143
47143
  onDropdownSelected = () => {},
47144
47144
  onCheckboxClick = () => {},
47145
47145
  onHeaderCheckboxClick = () => {},
47146
47146
  headerCheckboxStates = {},
47147
47147
  disableCheckboxTooltipText = "",
47148
47148
  onHeroClick = () => {},
47149
- dotIndicatorColor = '#34D399',
47149
+ dotIndicatorColor = "#34D399",
47150
47150
  onEditableClick = () => {},
47151
+ activeFilters = {},
47151
47152
  resetFiltersKey = 0,
47152
- // NEW: Add this prop
47153
47153
  ref = null,
47154
47154
  titleSize,
47155
47155
  subTitleSize
@@ -47194,8 +47194,8 @@ const Table = props => {
47194
47194
  }
47195
47195
  }
47196
47196
  };
47197
- scrollWrapper.addEventListener('scroll', handleScroll);
47198
- return () => scrollWrapper.removeEventListener('scroll', handleScroll);
47197
+ scrollWrapper.addEventListener("scroll", handleScroll);
47198
+ return () => scrollWrapper.removeEventListener("scroll", handleScroll);
47199
47199
  }, [onLastRowsReached, data.length, lastRowsThreshold, hasTriggered]);
47200
47200
  useEffect(() => {
47201
47201
  if (!clearFocusOnOutsideClick || isEditMode) return;
@@ -47206,9 +47206,9 @@ const Table = props => {
47206
47206
  }
47207
47207
  }
47208
47208
  };
47209
- document.addEventListener('mousedown', handleOutsideClick);
47209
+ document.addEventListener("mousedown", handleOutsideClick);
47210
47210
  return () => {
47211
- document.removeEventListener('mousedown', handleOutsideClick);
47211
+ document.removeEventListener("mousedown", handleOutsideClick);
47212
47212
  };
47213
47213
  }, [clearFocusOnOutsideClick, isEditMode]);
47214
47214
  const getNoDataIcon = icon => {
@@ -47239,7 +47239,7 @@ const Table = props => {
47239
47239
  width: width,
47240
47240
  height: height,
47241
47241
  backgroundColor: tableBackground
47242
- }, /*#__PURE__*/React$1.createElement(NoInfoFound, null, /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React$1.createElement(SubTitle, null, data.length === 0 ? 'No Events' : `${counter} Events`)), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
47242
+ }, /*#__PURE__*/React$1.createElement(NoInfoFound, null, /*#__PURE__*/React$1.createElement(TableTop, null, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React$1.createElement(SubTitle, null, data.length === 0 ? "No Events" : `${counter} Events`)), showSideButton && /*#__PURE__*/React$1.createElement(Button$1, {
47243
47243
  height: "45px",
47244
47244
  leftIcon: "Plus",
47245
47245
  text: "New Event",
@@ -47264,7 +47264,8 @@ const Table = props => {
47264
47264
  expandable: expandable,
47265
47265
  onHeaderCheckboxClick: onHeaderCheckboxClick,
47266
47266
  headerCheckboxStates: headerCheckboxStates,
47267
- resetFiltersKey: resetFiltersKey
47267
+ resetFiltersKey: resetFiltersKey,
47268
+ activeFilters: activeFilters
47268
47269
  }), columns.length > 0 && data.length > 0 && /*#__PURE__*/React$1.createElement(TableBody, {
47269
47270
  ref: tableBodyRef,
47270
47271
  columns: columns,
@@ -47319,7 +47320,7 @@ const Table = props => {
47319
47320
  id: "LoaderWrapper"
47320
47321
  }, /*#__PURE__*/React$1.createElement(Loader, null)))));
47321
47322
  };
47322
- Table.displayName = 'Table';
47323
+ Table.displayName = "Table";
47323
47324
 
47324
47325
  const Card = styled$1.div`
47325
47326
  background: ${props => props.backgroundColor};