@popmenu/table 0.69.0 → 0.71.0

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/build/index.js CHANGED
@@ -188,7 +188,7 @@ function __rest$2(s, e) {
188
188
  return t;
189
189
  }
190
190
 
191
- var _g$1j$1;
191
+ var _g$1i$1;
192
192
 
193
193
  function _extends$2j$1() { _extends$2j$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2j$1.apply(this, arguments); }
194
194
 
@@ -200,7 +200,7 @@ function SvgCheckCircle$1(props) {
200
200
  strokeLinejoin: "round",
201
201
  width: "1em",
202
202
  height: "1em"
203
- }, props), _g$1j$1 || (_g$1j$1 = /*#__PURE__*/React__namespace.createElement("g", {
203
+ }, props), _g$1i$1 || (_g$1i$1 = /*#__PURE__*/React__namespace.createElement("g", {
204
204
  stroke: "currentColor"
205
205
  }, /*#__PURE__*/React__namespace.createElement("path", {
206
206
  d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
@@ -209,7 +209,7 @@ function SvgCheckCircle$1(props) {
209
209
  }))));
210
210
  }
211
211
 
212
- var _g$1h, _defs$H;
212
+ var _g$1g, _defs$G;
213
213
 
214
214
  function _extends$2g() { _extends$2g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2g.apply(this, arguments); }
215
215
 
@@ -221,12 +221,12 @@ function SvgXCircle(props) {
221
221
  strokeLinejoin: "round",
222
222
  width: "1em",
223
223
  height: "1em"
224
- }, props), _g$1h || (_g$1h = /*#__PURE__*/React__namespace.createElement("g", {
224
+ }, props), _g$1g || (_g$1g = /*#__PURE__*/React__namespace.createElement("g", {
225
225
  clipPath: "url(#x-circle_svg__clip0_8_6136)",
226
226
  stroke: "currentColor"
227
227
  }, /*#__PURE__*/React__namespace.createElement("path", {
228
228
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zM10 6l-4 4m0-4l4 4"
229
- }))), _defs$H || (_defs$H = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
229
+ }))), _defs$G || (_defs$G = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
230
230
  id: "x-circle_svg__clip0_8_6136"
231
231
  }, /*#__PURE__*/React__namespace.createElement("path", {
232
232
  fill: "currentColor",
@@ -234,7 +234,7 @@ function SvgXCircle(props) {
234
234
  })))));
235
235
  }
236
236
 
237
- var _g$18$1, _defs$B$1;
237
+ var _g$17$1, _defs$A$1;
238
238
 
239
239
  function _extends$24$1() { _extends$24$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$24$1.apply(this, arguments); }
240
240
 
@@ -246,12 +246,12 @@ function SvgInfo$1(props) {
246
246
  strokeLinejoin: "round",
247
247
  width: "1em",
248
248
  height: "1em"
249
- }, props), _g$18$1 || (_g$18$1 = /*#__PURE__*/React__namespace.createElement("g", {
249
+ }, props), _g$17$1 || (_g$17$1 = /*#__PURE__*/React__namespace.createElement("g", {
250
250
  clipPath: "url(#info_svg__clip0_8_5377)",
251
251
  stroke: "currentColor"
252
252
  }, /*#__PURE__*/React__namespace.createElement("path", {
253
253
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
254
- }))), _defs$B$1 || (_defs$B$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
254
+ }))), _defs$A$1 || (_defs$A$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
255
255
  id: "info_svg__clip0_8_5377"
256
256
  }, /*#__PURE__*/React__namespace.createElement("path", {
257
257
  fill: "currentColor",
@@ -259,7 +259,7 @@ function SvgInfo$1(props) {
259
259
  })))));
260
260
  }
261
261
 
262
- var _path$I$1;
262
+ var _path$J$1;
263
263
 
264
264
  function _extends$1D$1() { _extends$1D$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1D$1.apply(this, arguments); }
265
265
 
@@ -271,13 +271,13 @@ function SvgUser$1(props) {
271
271
  strokeLinejoin: "round",
272
272
  width: "1em",
273
273
  height: "1em"
274
- }, props), _path$I$1 || (_path$I$1 = /*#__PURE__*/React__namespace.createElement("path", {
274
+ }, props), _path$J$1 || (_path$J$1 = /*#__PURE__*/React__namespace.createElement("path", {
275
275
  d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
276
276
  stroke: "currentColor"
277
277
  })));
278
278
  }
279
279
 
280
- var _g$U$1, _defs$s$1;
280
+ var _g$T$1, _defs$r$1;
281
281
 
282
282
  function _extends$1z$1() { _extends$1z$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1z$1.apply(this, arguments); }
283
283
 
@@ -289,12 +289,12 @@ function SvgError$1(props) {
289
289
  strokeLinejoin: "round",
290
290
  width: "1em",
291
291
  height: "1em"
292
- }, props), _g$U$1 || (_g$U$1 = /*#__PURE__*/React__namespace.createElement("g", {
292
+ }, props), _g$T$1 || (_g$T$1 = /*#__PURE__*/React__namespace.createElement("g", {
293
293
  clipPath: "url(#error_svg__clip0_8_5411)",
294
294
  stroke: "currentColor"
295
295
  }, /*#__PURE__*/React__namespace.createElement("path", {
296
296
  d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
297
- }))), _defs$s$1 || (_defs$s$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
297
+ }))), _defs$r$1 || (_defs$r$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
298
298
  id: "error_svg__clip0_8_5411"
299
299
  }, /*#__PURE__*/React__namespace.createElement("path", {
300
300
  fill: "currentColor",
@@ -302,7 +302,7 @@ function SvgError$1(props) {
302
302
  })))));
303
303
  }
304
304
 
305
- var _path$F$1;
305
+ var _path$G$1;
306
306
 
307
307
  function _extends$1y$1() { _extends$1y$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y$1.apply(this, arguments); }
308
308
 
@@ -314,7 +314,7 @@ function SvgWarning$1(props) {
314
314
  strokeLinejoin: "round",
315
315
  width: "1em",
316
316
  height: "1em"
317
- }, props), _path$F$1 || (_path$F$1 = /*#__PURE__*/React__namespace.createElement("path", {
317
+ }, props), _path$G$1 || (_path$G$1 = /*#__PURE__*/React__namespace.createElement("path", {
318
318
  d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
319
319
  stroke: "currentColor"
320
320
  })));
@@ -1135,7 +1135,7 @@ var useStyles$6 = core.makeStyles(function (theme) { return ({
1135
1135
  },
1136
1136
  }); });
1137
1137
 
1138
- var _path$1b;
1138
+ var _path$1c;
1139
1139
 
1140
1140
  function _extends$2E() { _extends$2E = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2E.apply(this, arguments); }
1141
1141
 
@@ -1147,13 +1147,13 @@ function SvgChevronDown(props) {
1147
1147
  strokeLinejoin: "round",
1148
1148
  width: "1em",
1149
1149
  height: "1em"
1150
- }, props), _path$1b || (_path$1b = /*#__PURE__*/React__namespace.createElement("path", {
1150
+ }, props), _path$1c || (_path$1c = /*#__PURE__*/React__namespace.createElement("path", {
1151
1151
  d: "M4 6l4 4 4-4",
1152
1152
  stroke: "currentColor"
1153
1153
  })));
1154
1154
  }
1155
1155
 
1156
- var _path$1a;
1156
+ var _path$1b;
1157
1157
 
1158
1158
  function _extends$2D() { _extends$2D = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2D.apply(this, arguments); }
1159
1159
 
@@ -1165,13 +1165,13 @@ function SvgChevronUp(props) {
1165
1165
  strokeLinejoin: "round",
1166
1166
  width: "1em",
1167
1167
  height: "1em"
1168
- }, props), _path$1a || (_path$1a = /*#__PURE__*/React__namespace.createElement("path", {
1168
+ }, props), _path$1b || (_path$1b = /*#__PURE__*/React__namespace.createElement("path", {
1169
1169
  d: "M12 10L8 6l-4 4",
1170
1170
  stroke: "currentColor"
1171
1171
  })));
1172
1172
  }
1173
1173
 
1174
- var _path$14;
1174
+ var _path$15;
1175
1175
 
1176
1176
  function _extends$2s() { _extends$2s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2s.apply(this, arguments); }
1177
1177
 
@@ -1183,13 +1183,13 @@ function SvgSort(props) {
1183
1183
  strokeLinejoin: "round",
1184
1184
  width: "1em",
1185
1185
  height: "1em"
1186
- }, props), _path$14 || (_path$14 = /*#__PURE__*/React__namespace.createElement("path", {
1186
+ }, props), _path$15 || (_path$15 = /*#__PURE__*/React__namespace.createElement("path", {
1187
1187
  d: "M11.333 6L8 2.667 4.667 6m6.666 4L8 13.334 4.667 10",
1188
1188
  stroke: "currentColor"
1189
1189
  })));
1190
1190
  }
1191
1191
 
1192
- var _path$Y;
1192
+ var _path$Z;
1193
1193
 
1194
1194
  function _extends$2a() { _extends$2a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2a.apply(this, arguments); }
1195
1195
 
@@ -1201,13 +1201,13 @@ function SvgFilter(props) {
1201
1201
  strokeLinejoin: "round",
1202
1202
  width: "1em",
1203
1203
  height: "1em"
1204
- }, props), _path$Y || (_path$Y = /*#__PURE__*/React__namespace.createElement("path", {
1204
+ }, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
1205
1205
  d: "M14.667 2H1.333l5.334 6.307v4.36L9.333 14V8.307L14.667 2z",
1206
1206
  stroke: "currentColor"
1207
1207
  })));
1208
1208
  }
1209
1209
 
1210
- var _path$Q;
1210
+ var _path$R;
1211
1211
 
1212
1212
  function _extends$1V() { _extends$1V = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1V.apply(this, arguments); }
1213
1213
 
@@ -1219,13 +1219,13 @@ function SvgMore(props) {
1219
1219
  strokeLinejoin: "round",
1220
1220
  width: "1em",
1221
1221
  height: "1em"
1222
- }, props), _path$Q || (_path$Q = /*#__PURE__*/React__namespace.createElement("path", {
1222
+ }, props), _path$R || (_path$R = /*#__PURE__*/React__namespace.createElement("path", {
1223
1223
  d: "M8 8.667a.667.667 0 100-1.334.667.667 0 000 1.334zM8 4a.667.667 0 100-1.334A.667.667 0 008 4zm0 9.333A.667.667 0 108 12a.667.667 0 000 1.333z",
1224
1224
  stroke: "currentColor"
1225
1225
  })));
1226
1226
  }
1227
1227
 
1228
- var _path$M;
1228
+ var _path$N;
1229
1229
 
1230
1230
  function _extends$1P() { _extends$1P = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1P.apply(this, arguments); }
1231
1231
 
@@ -1237,7 +1237,7 @@ function SvgSearch(props) {
1237
1237
  strokeLinejoin: "round",
1238
1238
  width: "1em",
1239
1239
  height: "1em"
1240
- }, props), _path$M || (_path$M = /*#__PURE__*/React__namespace.createElement("path", {
1240
+ }, props), _path$N || (_path$N = /*#__PURE__*/React__namespace.createElement("path", {
1241
1241
  d: "M7.333 12.667A5.333 5.333 0 107.333 2a5.333 5.333 0 000 10.667zM14 14l-2.9-2.9",
1242
1242
  stroke: "currentColor"
1243
1243
  })));
@@ -1264,12 +1264,22 @@ var useStyles$4 = core.makeStyles(function (theme) { return ({
1264
1264
 
1265
1265
  var TableContext = React.createContext({});
1266
1266
 
1267
+ var FilterPanelContext = React.createContext(null);
1268
+ var useFilterPanelContext = function () {
1269
+ var context = React.useContext(FilterPanelContext);
1270
+ if (!context) {
1271
+ throw new Error('useFilterPanelContext has to be used within <FilterPanelContext.Provider>');
1272
+ }
1273
+ return context;
1274
+ };
1275
+
1267
1276
  var SelectFilter = function (props) {
1268
1277
  var _a, _b, _c;
1269
1278
  var options = props.options, columnId = props.columnId, multiple = props.multiple;
1270
1279
  var classes = useStyles$4();
1271
1280
  var table = React.useContext(TableContext);
1272
- var _d = React.useState(false), open = _d[0], setOpen = _d[1];
1281
+ var _d = useFilterPanelContext().anchorState, setAnchorEl = _d[1];
1282
+ var _e = React.useState(false), open = _e[0], setOpen = _e[1];
1273
1283
  var column = table.getColumn(columnId);
1274
1284
  var meta = column.columnDef.meta;
1275
1285
  var filterName = (_a = meta === null || meta === void 0 ? void 0 : meta.filter) === null || _a === void 0 ? void 0 : _a.name;
@@ -1304,6 +1314,7 @@ var SelectFilter = function (props) {
1304
1314
  var handleChange = function (event) {
1305
1315
  event.stopPropagation();
1306
1316
  column.setFilterValue(event.target.value);
1317
+ setAnchorEl(null);
1307
1318
  };
1308
1319
  var handleItemClick = function () {
1309
1320
  if (multiple) {
@@ -1534,7 +1545,7 @@ function __rest(s, e) {
1534
1545
  return t;
1535
1546
  }
1536
1547
 
1537
- var _path$I;
1548
+ var _path$J;
1538
1549
 
1539
1550
  function _extends$1D() { _extends$1D = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1D.apply(this, arguments); }
1540
1551
 
@@ -1546,7 +1557,7 @@ function SvgUser(props) {
1546
1557
  strokeLinejoin: "round",
1547
1558
  width: "1em",
1548
1559
  height: "1em"
1549
- }, props), _path$I || (_path$I = /*#__PURE__*/React__namespace.createElement("path", {
1560
+ }, props), _path$J || (_path$J = /*#__PURE__*/React__namespace.createElement("path", {
1550
1561
  d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
1551
1562
  stroke: "currentColor"
1552
1563
  })));
@@ -2213,7 +2224,7 @@ core.makeStyles(function (theme) { return ({
2213
2224
  },
2214
2225
  }); });
2215
2226
 
2216
- var _g$1j;
2227
+ var _g$1i;
2217
2228
 
2218
2229
  function _extends$2j() { _extends$2j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2j.apply(this, arguments); }
2219
2230
 
@@ -2225,7 +2236,7 @@ function SvgCheckCircle(props) {
2225
2236
  strokeLinejoin: "round",
2226
2237
  width: "1em",
2227
2238
  height: "1em"
2228
- }, props), _g$1j || (_g$1j = /*#__PURE__*/React__namespace.createElement("g", {
2239
+ }, props), _g$1i || (_g$1i = /*#__PURE__*/React__namespace.createElement("g", {
2229
2240
  stroke: "currentColor"
2230
2241
  }, /*#__PURE__*/React__namespace.createElement("path", {
2231
2242
  d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
@@ -2234,7 +2245,7 @@ function SvgCheckCircle(props) {
2234
2245
  }))));
2235
2246
  }
2236
2247
 
2237
- var _path$_;
2248
+ var _path$$;
2238
2249
 
2239
2250
  function _extends$2h() { _extends$2h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2h.apply(this, arguments); }
2240
2251
 
@@ -2246,13 +2257,13 @@ function SvgX(props) {
2246
2257
  strokeLinejoin: "round",
2247
2258
  width: "1em",
2248
2259
  height: "1em"
2249
- }, props), _path$_ || (_path$_ = /*#__PURE__*/React__namespace.createElement("path", {
2260
+ }, props), _path$$ || (_path$$ = /*#__PURE__*/React__namespace.createElement("path", {
2250
2261
  d: "M12 4l-8 8m0-8l8 8",
2251
2262
  stroke: "currentColor"
2252
2263
  })));
2253
2264
  }
2254
2265
 
2255
- var _g$1b, _defs$C;
2266
+ var _g$1a, _defs$B;
2256
2267
 
2257
2268
  function _extends$27() { _extends$27 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$27.apply(this, arguments); }
2258
2269
 
@@ -2264,14 +2275,14 @@ function SvgHelp(props) {
2264
2275
  strokeLinejoin: "round",
2265
2276
  width: "1em",
2266
2277
  height: "1em"
2267
- }, props), _g$1b || (_g$1b = /*#__PURE__*/React__namespace.createElement("g", {
2278
+ }, props), _g$1a || (_g$1a = /*#__PURE__*/React__namespace.createElement("g", {
2268
2279
  clipPath: "url(#help_svg__clip0_8_5446)",
2269
2280
  stroke: "currentColor"
2270
2281
  }, /*#__PURE__*/React__namespace.createElement("path", {
2271
2282
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
2272
2283
  }), /*#__PURE__*/React__namespace.createElement("path", {
2273
2284
  d: "M6.06 6a2 2 0 013.887.667c0 1.333-2 2-2 2M8 11.334h.007"
2274
- }))), _defs$C || (_defs$C = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2285
+ }))), _defs$B || (_defs$B = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2275
2286
  id: "help_svg__clip0_8_5446"
2276
2287
  }, /*#__PURE__*/React__namespace.createElement("path", {
2277
2288
  fill: "currentColor",
@@ -2279,7 +2290,7 @@ function SvgHelp(props) {
2279
2290
  })))));
2280
2291
  }
2281
2292
 
2282
- var _g$18, _defs$B;
2293
+ var _g$17, _defs$A;
2283
2294
 
2284
2295
  function _extends$24() { _extends$24 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$24.apply(this, arguments); }
2285
2296
 
@@ -2291,12 +2302,12 @@ function SvgInfo(props) {
2291
2302
  strokeLinejoin: "round",
2292
2303
  width: "1em",
2293
2304
  height: "1em"
2294
- }, props), _g$18 || (_g$18 = /*#__PURE__*/React__namespace.createElement("g", {
2305
+ }, props), _g$17 || (_g$17 = /*#__PURE__*/React__namespace.createElement("g", {
2295
2306
  clipPath: "url(#info_svg__clip0_8_5377)",
2296
2307
  stroke: "currentColor"
2297
2308
  }, /*#__PURE__*/React__namespace.createElement("path", {
2298
2309
  d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
2299
- }))), _defs$B || (_defs$B = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2310
+ }))), _defs$A || (_defs$A = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2300
2311
  id: "info_svg__clip0_8_5377"
2301
2312
  }, /*#__PURE__*/React__namespace.createElement("path", {
2302
2313
  fill: "currentColor",
@@ -2304,7 +2315,7 @@ function SvgInfo(props) {
2304
2315
  })))));
2305
2316
  }
2306
2317
 
2307
- var _g$U, _defs$s;
2318
+ var _g$T, _defs$r;
2308
2319
 
2309
2320
  function _extends$1z() { _extends$1z = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1z.apply(this, arguments); }
2310
2321
 
@@ -2316,12 +2327,12 @@ function SvgError(props) {
2316
2327
  strokeLinejoin: "round",
2317
2328
  width: "1em",
2318
2329
  height: "1em"
2319
- }, props), _g$U || (_g$U = /*#__PURE__*/React__namespace.createElement("g", {
2330
+ }, props), _g$T || (_g$T = /*#__PURE__*/React__namespace.createElement("g", {
2320
2331
  clipPath: "url(#error_svg__clip0_8_5411)",
2321
2332
  stroke: "currentColor"
2322
2333
  }, /*#__PURE__*/React__namespace.createElement("path", {
2323
2334
  d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
2324
- }))), _defs$s || (_defs$s = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2335
+ }))), _defs$r || (_defs$r = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
2325
2336
  id: "error_svg__clip0_8_5411"
2326
2337
  }, /*#__PURE__*/React__namespace.createElement("path", {
2327
2338
  fill: "currentColor",
@@ -2329,7 +2340,7 @@ function SvgError(props) {
2329
2340
  })))));
2330
2341
  }
2331
2342
 
2332
- var _path$F;
2343
+ var _path$G;
2333
2344
 
2334
2345
  function _extends$1y() { _extends$1y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
2335
2346
 
@@ -2341,7 +2352,7 @@ function SvgWarning(props) {
2341
2352
  strokeLinejoin: "round",
2342
2353
  width: "1em",
2343
2354
  height: "1em"
2344
- }, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
2355
+ }, props), _path$G || (_path$G = /*#__PURE__*/React__namespace.createElement("path", {
2345
2356
  d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
2346
2357
  stroke: "currentColor"
2347
2358
  })));
@@ -2854,17 +2865,17 @@ var useSettingsIndexCardStyles = styles.makeStyles(function (theme) { return ({
2854
2865
  }); });
2855
2866
 
2856
2867
  var SettingsIndexCard = React.forwardRef(function (props, ref) {
2857
- var title = props.title, description = props.description, Icon = props.Icon, onClick = props.onClick, statusLabel = props.statusLabel, restProps = __rest$1(props, ["title", "description", "Icon", "onClick", "statusLabel"]);
2868
+ var title = props.title, description = props.description, Icon$1 = props.Icon, onClick = props.onClick, statusLabel = props.statusLabel, restProps = __rest$1(props, ["title", "description", "Icon", "onClick", "statusLabel"]);
2858
2869
  var classes = useSettingsIndexCardStyles(props);
2859
2870
  var showStatusLabel = (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text) && (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color);
2860
2871
  return (React__default['default'].createElement(core.ButtonBase, __assign$1({ onClick: onClick, ref: ref }, restProps),
2861
2872
  React__default['default'].createElement(Card__default['default'], { classes: { root: classes.cardRoot } },
2862
2873
  React__default['default'].createElement(CardContent__default['default'], { classes: { root: classes.cardContentRoot } },
2863
2874
  React__default['default'].createElement(core.Box, { fontSize: "32px", display: "flex", justifyContent: 'space-between', alignItems: "center", paddingBottom: 2 },
2864
- React__default['default'].createElement(Icon$1, { icon: Icon || SvgHelp, size: "inherit" }),
2865
- showStatusLabel && (React__default['default'].createElement(Typography$1, { weight: "semi-bold", variant: "body2", color: statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color }, statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text))),
2866
- React__default['default'].createElement(Typography$1, { align: "left", variant: "h6", gutterBottom: true }, title),
2867
- description && (React__default['default'].createElement(Typography$1, { align: "left", variant: "body2", color: "grey.700" }, description))))));
2875
+ React__default['default'].createElement(Icon, { icon: Icon$1 || SvgHelp, size: "inherit" }),
2876
+ showStatusLabel && (React__default['default'].createElement(Typography, { weight: "semi-bold", variant: "body2", color: statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color }, statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text))),
2877
+ React__default['default'].createElement(Typography, { align: "left", variant: "h6", gutterBottom: true }, title),
2878
+ description && (React__default['default'].createElement(Typography, { align: "left", variant: "body2", color: "grey.700" }, description))))));
2868
2879
  });
2869
2880
  SettingsIndexCard.displayName = 'SettingsIndexCard';
2870
2881
 
@@ -3232,7 +3243,7 @@ var FilterPanel = function () {
3232
3243
  var handleClose = function () {
3233
3244
  setAnchorEl(null);
3234
3245
  };
3235
- return (React__default['default'].createElement(React__default['default'].Fragment, null,
3246
+ return (React__default['default'].createElement(FilterPanelContext.Provider, { value: { anchorState: [anchorEl, setAnchorEl] } },
3236
3247
  React__default['default'].createElement(Trigger, { onClick: handleClick }),
3237
3248
  React__default['default'].createElement(Panel, { onClose: handleClose, anchorEl: anchorEl })));
3238
3249
  };
@@ -4040,11 +4051,12 @@ var ColumnFilterResetButton = function (props) {
4040
4051
  var defaultTableProps = {
4041
4052
  enableSortingRemoval: true,
4042
4053
  fullWidth: true,
4054
+ paginated: true,
4043
4055
  sortable: false,
4044
4056
  searchable: false,
4045
4057
  };
4046
4058
  var Table = function (props) {
4047
- var title = props.title, data = props.data, columns = props.columns, enableSortingRemoval = props.enableSortingRemoval, loading = props.loading, searchable = props.searchable, sortable = props.sortable, externalFilterState = props.filterState, externalGlobalFilterState = props.globalFilterState, externalPaginationState = props.paginationState, externalSortingState = props.sortingState, externalVisibilityState = props.visibilityState, pageCount = props.pageCount, GlobalFilterProps = props.GlobalFilterProps, Empty = props.Empty, idBase = props.idBase;
4059
+ var title = props.title, data = props.data, columns = props.columns, enableSortingRemoval = props.enableSortingRemoval, loading = props.loading, searchable = props.searchable, sortable = props.sortable, externalFilterState = props.filterState, externalGlobalFilterState = props.globalFilterState, externalPaginationState = props.paginationState, externalSortingState = props.sortingState, externalVisibilityState = props.visibilityState, paginated = props.paginated, pageCount = props.pageCount, GlobalFilterProps = props.GlobalFilterProps, Empty = props.Empty, idBase = props.idBase;
4048
4060
  var classes = useStyles$7(props);
4049
4061
  var rootRef = React.useRef(null);
4050
4062
  // Prepare Empty State
@@ -4070,7 +4082,7 @@ var Table = function (props) {
4070
4082
  var columnVisibility = (externalVisibilityState || [])[0];
4071
4083
  var isControlledColumnVisibility = Boolean(externalVisibilityState);
4072
4084
  // Init table instance
4073
- var table = reactTable.useReactTable(__assign$3(__assign$3(__assign$3(__assign$3(__assign$3({ data: data, columns: columns, state: __assign$3(__assign$3(__assign$3(__assign$3(__assign$3({}, (isControlledPagination && { pagination: pagination })), (isControlledGlobalFilter && { globalFilter: globalFilter })), (isControlledColumnFilters && { columnFilters: columnFilters })), (isControlledColumnVisibility && { columnVisibility: columnVisibility })), (isControlledColumnSort && { sorting: sorting })), enableSorting: sortable, enableSortingRemoval: enableSortingRemoval, globalFilterFn: coercedValueIncludesString, getCoreRowModel: reactTable.getCoreRowModel(), getSortedRowModel: reactTable.getSortedRowModel(), getFilteredRowModel: reactTable.getFilteredRowModel(), getPaginationRowModel: reactTable.getPaginationRowModel() }, (isControlledPagination && controlledPaginationOptions)), (isControlledGlobalFilter && controlledGlobalFilterOptions)), (isControlledColumnFilters && controlledColumnFiltersOptions)), (isControlledColumnSort && controlledColumnSortOptions)), { meta: { idBase: idBase } }));
4085
+ var table = reactTable.useReactTable(__assign$3(__assign$3(__assign$3(__assign$3(__assign$3(__assign$3({ data: data, columns: columns, state: __assign$3(__assign$3(__assign$3(__assign$3(__assign$3({}, (isControlledPagination && { pagination: pagination })), (isControlledGlobalFilter && { globalFilter: globalFilter })), (isControlledColumnFilters && { columnFilters: columnFilters })), (isControlledColumnVisibility && { columnVisibility: columnVisibility })), (isControlledColumnSort && { sorting: sorting })), enableSorting: sortable, enableSortingRemoval: enableSortingRemoval, globalFilterFn: coercedValueIncludesString, getCoreRowModel: reactTable.getCoreRowModel(), getSortedRowModel: reactTable.getSortedRowModel(), getFilteredRowModel: reactTable.getFilteredRowModel() }, (paginated && { getPaginationRowModel: reactTable.getPaginationRowModel() })), (isControlledPagination && controlledPaginationOptions)), (isControlledGlobalFilter && controlledGlobalFilterOptions)), (isControlledColumnFilters && controlledColumnFiltersOptions)), (isControlledColumnSort && controlledColumnSortOptions)), { meta: { idBase: idBase } }));
4074
4086
  var _f = useColumnFilters(table), selectedColumnFilters = _f.selectedColumnFilters, hasColumnFilters = _f.hasColumnFilters, deselectColumnFilter = _f.deselectColumnFilter, formatSelectedFilterText = _f.formatSelectedFilterText, resetColumnFilters = _f.resetColumnFilters;
4075
4087
  var handlePagination = function (_e, pageNumber) {
4076
4088
  var pageIndex = pageNumber - 1;
@@ -4099,7 +4111,7 @@ var Table = function (props) {
4099
4111
  isEmpty && isEmptyComponentValid && Empty && !loading && (React__default['default'].createElement(core.Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 }, React.createElement(Empty))),
4100
4112
  loading && (React__default['default'].createElement(core.Box, { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", p: 2, flexGrow: 1 },
4101
4113
  React__default['default'].createElement(CircularProgress__default['default'], { size: 80, color: "inherit" }))),
4102
- table.getPageCount() > 1 && (React__default['default'].createElement(TableFooter, null,
4114
+ paginated && table.getPageCount() > 1 && (React__default['default'].createElement(TableFooter, null,
4103
4115
  React__default['default'].createElement(lab.Pagination, { page: table.getState().pagination.pageIndex + 1, count: table.getPageCount(), onChange: handlePagination, disabled: loading }))))));
4104
4116
  };
4105
4117
  Table.defaultProps = defaultTableProps;