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 +22 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +22 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47095,16 +47095,16 @@ const NothingToTrackIcon = ({
|
|
|
47095
47095
|
// Table.jsx
|
|
47096
47096
|
const Table = props => {
|
|
47097
47097
|
const {
|
|
47098
|
-
width =
|
|
47099
|
-
height =
|
|
47100
|
-
tableTitle =
|
|
47101
|
-
tableBackground =
|
|
47098
|
+
width = "100%",
|
|
47099
|
+
height = "auto",
|
|
47100
|
+
tableTitle = "All Events",
|
|
47101
|
+
tableBackground = "#FFFFFF",
|
|
47102
47102
|
data = [],
|
|
47103
47103
|
counter = 0,
|
|
47104
47104
|
hideRowsCounter = false,
|
|
47105
47105
|
onButtonClick = () => {},
|
|
47106
|
-
buttonColor =
|
|
47107
|
-
buttonHoverColor =
|
|
47106
|
+
buttonColor = "#066768",
|
|
47107
|
+
buttonHoverColor = "#388586",
|
|
47108
47108
|
columns = [],
|
|
47109
47109
|
onRowClick = () => {},
|
|
47110
47110
|
onSort,
|
|
@@ -47112,14 +47112,14 @@ const Table = props => {
|
|
|
47112
47112
|
onSelectAll,
|
|
47113
47113
|
showSideButton = true,
|
|
47114
47114
|
onSideButtonClick = () => {},
|
|
47115
|
-
sideButtonColor =
|
|
47116
|
-
sideButtonHoverColor =
|
|
47117
|
-
selectedColor =
|
|
47115
|
+
sideButtonColor = "#066768",
|
|
47116
|
+
sideButtonHoverColor = "#388586",
|
|
47117
|
+
selectedColor = "#B4D1D2",
|
|
47118
47118
|
children = null,
|
|
47119
|
-
tableBodyHeight =
|
|
47119
|
+
tableBodyHeight = "728px",
|
|
47120
47120
|
isLoading = false,
|
|
47121
47121
|
isLoadingSpinner = false,
|
|
47122
|
-
isLoadingText =
|
|
47122
|
+
isLoadingText = "Loading Events...",
|
|
47123
47123
|
onLastRowsReached = () => {},
|
|
47124
47124
|
lastRowsThreshold = 3,
|
|
47125
47125
|
onSendClick = () => {},
|
|
@@ -47149,17 +47149,17 @@ const Table = props => {
|
|
|
47149
47149
|
expandedRows = {},
|
|
47150
47150
|
expandedContent = {},
|
|
47151
47151
|
onExpandRow = () => {},
|
|
47152
|
-
expandedBackgroundColor =
|
|
47152
|
+
expandedBackgroundColor = "#E6F0F0",
|
|
47153
47153
|
onDropdownSelected = () => {},
|
|
47154
47154
|
onCheckboxClick = () => {},
|
|
47155
47155
|
onHeaderCheckboxClick = () => {},
|
|
47156
47156
|
headerCheckboxStates = {},
|
|
47157
47157
|
disableCheckboxTooltipText = "",
|
|
47158
47158
|
onHeroClick = () => {},
|
|
47159
|
-
dotIndicatorColor =
|
|
47159
|
+
dotIndicatorColor = "#34D399",
|
|
47160
47160
|
onEditableClick = () => {},
|
|
47161
|
+
activeFilters = {},
|
|
47161
47162
|
resetFiltersKey = 0,
|
|
47162
|
-
// NEW: Add this prop
|
|
47163
47163
|
ref = null,
|
|
47164
47164
|
titleSize,
|
|
47165
47165
|
subTitleSize
|
|
@@ -47204,8 +47204,8 @@ const Table = props => {
|
|
|
47204
47204
|
}
|
|
47205
47205
|
}
|
|
47206
47206
|
};
|
|
47207
|
-
scrollWrapper.addEventListener(
|
|
47208
|
-
return () => scrollWrapper.removeEventListener(
|
|
47207
|
+
scrollWrapper.addEventListener("scroll", handleScroll);
|
|
47208
|
+
return () => scrollWrapper.removeEventListener("scroll", handleScroll);
|
|
47209
47209
|
}, [onLastRowsReached, data.length, lastRowsThreshold, hasTriggered]);
|
|
47210
47210
|
React$1.useEffect(() => {
|
|
47211
47211
|
if (!clearFocusOnOutsideClick || isEditMode) return;
|
|
@@ -47216,9 +47216,9 @@ const Table = props => {
|
|
|
47216
47216
|
}
|
|
47217
47217
|
}
|
|
47218
47218
|
};
|
|
47219
|
-
document.addEventListener(
|
|
47219
|
+
document.addEventListener("mousedown", handleOutsideClick);
|
|
47220
47220
|
return () => {
|
|
47221
|
-
document.removeEventListener(
|
|
47221
|
+
document.removeEventListener("mousedown", handleOutsideClick);
|
|
47222
47222
|
};
|
|
47223
47223
|
}, [clearFocusOnOutsideClick, isEditMode]);
|
|
47224
47224
|
const getNoDataIcon = icon => {
|
|
@@ -47249,7 +47249,7 @@ const Table = props => {
|
|
|
47249
47249
|
width: width,
|
|
47250
47250
|
height: height,
|
|
47251
47251
|
backgroundColor: tableBackground
|
|
47252
|
-
}, /*#__PURE__*/React__default["default"].createElement(NoInfoFound, null, /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React__default["default"].createElement(SubTitle, null, data.length === 0 ?
|
|
47252
|
+
}, /*#__PURE__*/React__default["default"].createElement(NoInfoFound, null, /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title$7, null, tableTitle), !hideRowsCounter && /*#__PURE__*/React__default["default"].createElement(SubTitle, null, data.length === 0 ? "No Events" : `${counter} Events`)), showSideButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
47253
47253
|
height: "45px",
|
|
47254
47254
|
leftIcon: "Plus",
|
|
47255
47255
|
text: "New Event",
|
|
@@ -47274,7 +47274,8 @@ const Table = props => {
|
|
|
47274
47274
|
expandable: expandable,
|
|
47275
47275
|
onHeaderCheckboxClick: onHeaderCheckboxClick,
|
|
47276
47276
|
headerCheckboxStates: headerCheckboxStates,
|
|
47277
|
-
resetFiltersKey: resetFiltersKey
|
|
47277
|
+
resetFiltersKey: resetFiltersKey,
|
|
47278
|
+
activeFilters: activeFilters
|
|
47278
47279
|
}), columns.length > 0 && data.length > 0 && /*#__PURE__*/React__default["default"].createElement(TableBody, {
|
|
47279
47280
|
ref: tableBodyRef,
|
|
47280
47281
|
columns: columns,
|
|
@@ -47329,7 +47330,7 @@ const Table = props => {
|
|
|
47329
47330
|
id: "LoaderWrapper"
|
|
47330
47331
|
}, /*#__PURE__*/React__default["default"].createElement(Loader, null)))));
|
|
47331
47332
|
};
|
|
47332
|
-
Table.displayName =
|
|
47333
|
+
Table.displayName = "Table";
|
|
47333
47334
|
|
|
47334
47335
|
const Card = styled.styled.div`
|
|
47335
47336
|
background: ${props => props.backgroundColor};
|