material-react-table 0.7.0-alpha.1 → 0.7.0-alpha.4
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/README.md +29 -19
- package/dist/MaterialReactTable.d.ts +196 -59
- package/dist/buttons/MRT_CopyButton.d.ts +1 -2
- package/dist/material-react-table.cjs.development.js +246 -932
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +246 -932
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +4 -4
- package/src/MaterialReactTable.tsx +364 -127
- package/src/body/MRT_TableBody.tsx +1 -1
- package/src/body/MRT_TableBodyCell.tsx +3 -3
- package/src/body/MRT_TableBodyRow.tsx +2 -2
- package/src/body/MRT_TableDetailPanel.tsx +6 -4
- package/src/buttons/MRT_CopyButton.tsx +3 -4
- package/src/buttons/MRT_EditActionButtons.tsx +4 -2
- package/src/buttons/MRT_ExpandButton.tsx +1 -1
- package/src/buttons/MRT_ToggleColumnActionMenuButton.tsx +5 -2
- package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +1 -1
- package/src/buttons/MRT_ToggleSearchButton.tsx +6 -1
- package/src/footer/MRT_TableFooter.tsx +1 -1
- package/src/footer/MRT_TableFooterCell.tsx +2 -2
- package/src/footer/MRT_TableFooterRow.tsx +1 -1
- package/src/head/MRT_TableHead.tsx +1 -1
- package/src/head/MRT_TableHeadCell.tsx +22 -29
- package/src/head/MRT_TableHeadRow.tsx +1 -1
- package/src/inputs/MRT_EditCellTextField.tsx +7 -7
- package/src/inputs/MRT_FilterTextField.tsx +2 -2
- package/src/inputs/MRT_SearchTextField.tsx +8 -3
- package/src/inputs/MRT_SelectCheckbox.tsx +9 -7
- package/src/localization.ts +0 -1
- package/src/menus/MRT_RowActionMenu.tsx +5 -3
- package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +4 -5
- package/src/table/MRT_Table.tsx +1 -1
- package/src/table/MRT_TableContainer.tsx +16 -20
- package/src/table/MRT_TablePaper.tsx +9 -5
- package/src/table/MRT_TableRoot.tsx +1 -0
- package/src/toolbar/MRT_LinearProgressBar.tsx +1 -1
- package/src/toolbar/MRT_TablePagination.tsx +6 -2
- package/src/toolbar/MRT_ToolbarAlertBanner.tsx +2 -1
- package/src/toolbar/MRT_ToolbarBottom.tsx +1 -1
- package/src/toolbar/MRT_ToolbarInternalButtons.tsx +5 -4
- package/src/toolbar/MRT_ToolbarTop.tsx +2 -2
|
@@ -37,42 +37,6 @@ var reactTable = require('@tanstack/react-table');
|
|
|
37
37
|
var material = require('@mui/material');
|
|
38
38
|
var matchSorter = require('match-sorter');
|
|
39
39
|
|
|
40
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
41
|
-
try {
|
|
42
|
-
var info = gen[key](arg);
|
|
43
|
-
var value = info.value;
|
|
44
|
-
} catch (error) {
|
|
45
|
-
reject(error);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (info.done) {
|
|
50
|
-
resolve(value);
|
|
51
|
-
} else {
|
|
52
|
-
Promise.resolve(value).then(_next, _throw);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
function _asyncToGenerator(fn) {
|
|
57
|
-
return function () {
|
|
58
|
-
var self = this,
|
|
59
|
-
args = arguments;
|
|
60
|
-
return new Promise(function (resolve, reject) {
|
|
61
|
-
var gen = fn.apply(self, args);
|
|
62
|
-
|
|
63
|
-
function _next(value) {
|
|
64
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _throw(err) {
|
|
68
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
_next(undefined);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
40
|
function _extends() {
|
|
77
41
|
_extends = Object.assign || function (target) {
|
|
78
42
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -240,7 +204,11 @@ var MRT_ExpandButton = function MRT_ExpandButton(_ref) {
|
|
|
240
204
|
|
|
241
205
|
var handleToggleExpand = function handleToggleExpand(event) {
|
|
242
206
|
row.toggleExpanded();
|
|
243
|
-
onRowExpandChange == null ? void 0 : onRowExpandChange(
|
|
207
|
+
onRowExpandChange == null ? void 0 : onRowExpandChange({
|
|
208
|
+
event: event,
|
|
209
|
+
row: row,
|
|
210
|
+
tableInstance: tableInstance
|
|
211
|
+
});
|
|
244
212
|
};
|
|
245
213
|
|
|
246
214
|
return React__default.createElement(material.IconButton, {
|
|
@@ -569,11 +537,11 @@ var MRT_ShowHideColumnsMenuItems = function MRT_ShowHideColumnsMenuItems(_ref) {
|
|
|
569
537
|
column.toggleVisibility();
|
|
570
538
|
}
|
|
571
539
|
|
|
572
|
-
onColumnHide == null ? void 0 : onColumnHide(
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
})
|
|
540
|
+
onColumnHide == null ? void 0 : onColumnHide({
|
|
541
|
+
column: column,
|
|
542
|
+
columnVisibility: columnVisibility,
|
|
543
|
+
tableInstance: tableInstance
|
|
544
|
+
});
|
|
577
545
|
};
|
|
578
546
|
|
|
579
547
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(material.MenuItem, {
|
|
@@ -943,8 +911,6 @@ var MRT_ColumnActionMenu = function MRT_ColumnActionMenu(_ref) {
|
|
|
943
911
|
};
|
|
944
912
|
|
|
945
913
|
var MRT_RowActionMenu = function MRT_RowActionMenu(_ref) {
|
|
946
|
-
var _renderRowActionMenuI;
|
|
947
|
-
|
|
948
914
|
var anchorEl = _ref.anchorEl,
|
|
949
915
|
handleEdit = _ref.handleEdit,
|
|
950
916
|
row = _ref.row,
|
|
@@ -974,770 +940,14 @@ var MRT_RowActionMenu = function MRT_RowActionMenu(_ref) {
|
|
|
974
940
|
sx: commonMenuItemStyles$1
|
|
975
941
|
}, React__default.createElement(material.Box, {
|
|
976
942
|
sx: commonListItemStyles
|
|
977
|
-
}, React__default.createElement(material.ListItemIcon, null, React__default.createElement(EditIcon, null)), localization.edit)),
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
function createCommonjsModule(fn, module) {
|
|
983
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
987
|
-
/**
|
|
988
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
989
|
-
*
|
|
990
|
-
* This source code is licensed under the MIT license found in the
|
|
991
|
-
* LICENSE file in the root directory of this source tree.
|
|
992
|
-
*/
|
|
993
|
-
|
|
994
|
-
var runtime = (function (exports) {
|
|
995
|
-
|
|
996
|
-
var Op = Object.prototype;
|
|
997
|
-
var hasOwn = Op.hasOwnProperty;
|
|
998
|
-
var undefined$1; // More compressible than void 0.
|
|
999
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
1000
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
1001
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
1002
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1003
|
-
|
|
1004
|
-
function define(obj, key, value) {
|
|
1005
|
-
Object.defineProperty(obj, key, {
|
|
1006
|
-
value: value,
|
|
1007
|
-
enumerable: true,
|
|
1008
|
-
configurable: true,
|
|
1009
|
-
writable: true
|
|
1010
|
-
});
|
|
1011
|
-
return obj[key];
|
|
1012
|
-
}
|
|
1013
|
-
try {
|
|
1014
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
1015
|
-
define({}, "");
|
|
1016
|
-
} catch (err) {
|
|
1017
|
-
define = function(obj, key, value) {
|
|
1018
|
-
return obj[key] = value;
|
|
1019
|
-
};
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
1023
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
1024
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
1025
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
1026
|
-
var context = new Context(tryLocsList || []);
|
|
1027
|
-
|
|
1028
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
1029
|
-
// .throw, and .return methods.
|
|
1030
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
1031
|
-
|
|
1032
|
-
return generator;
|
|
1033
|
-
}
|
|
1034
|
-
exports.wrap = wrap;
|
|
1035
|
-
|
|
1036
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
1037
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
1038
|
-
// have been (and was previously) designed to take a closure to be
|
|
1039
|
-
// invoked without arguments, but in all the cases we care about we
|
|
1040
|
-
// already have an existing method we want to call, so there's no need
|
|
1041
|
-
// to create a new function object. We can even get away with assuming
|
|
1042
|
-
// the method takes exactly one argument, since that happens to be true
|
|
1043
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
1044
|
-
// only additional allocation required is the completion record, which
|
|
1045
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
1046
|
-
function tryCatch(fn, obj, arg) {
|
|
1047
|
-
try {
|
|
1048
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
1049
|
-
} catch (err) {
|
|
1050
|
-
return { type: "throw", arg: err };
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
1055
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
1056
|
-
var GenStateExecuting = "executing";
|
|
1057
|
-
var GenStateCompleted = "completed";
|
|
1058
|
-
|
|
1059
|
-
// Returning this object from the innerFn has the same effect as
|
|
1060
|
-
// breaking out of the dispatch switch statement.
|
|
1061
|
-
var ContinueSentinel = {};
|
|
1062
|
-
|
|
1063
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
1064
|
-
// .constructor.prototype properties for functions that return Generator
|
|
1065
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
1066
|
-
// minifier not to mangle the names of these two functions.
|
|
1067
|
-
function Generator() {}
|
|
1068
|
-
function GeneratorFunction() {}
|
|
1069
|
-
function GeneratorFunctionPrototype() {}
|
|
1070
|
-
|
|
1071
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
1072
|
-
// don't natively support it.
|
|
1073
|
-
var IteratorPrototype = {};
|
|
1074
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
1075
|
-
return this;
|
|
1076
|
-
});
|
|
1077
|
-
|
|
1078
|
-
var getProto = Object.getPrototypeOf;
|
|
1079
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
1080
|
-
if (NativeIteratorPrototype &&
|
|
1081
|
-
NativeIteratorPrototype !== Op &&
|
|
1082
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
1083
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
1084
|
-
// of the polyfill.
|
|
1085
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
1089
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
1090
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
1091
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
1092
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
1093
|
-
GeneratorFunction.displayName = define(
|
|
1094
|
-
GeneratorFunctionPrototype,
|
|
1095
|
-
toStringTagSymbol,
|
|
1096
|
-
"GeneratorFunction"
|
|
1097
|
-
);
|
|
1098
|
-
|
|
1099
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
1100
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
1101
|
-
function defineIteratorMethods(prototype) {
|
|
1102
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
1103
|
-
define(prototype, method, function(arg) {
|
|
1104
|
-
return this._invoke(method, arg);
|
|
1105
|
-
});
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
1110
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
1111
|
-
return ctor
|
|
1112
|
-
? ctor === GeneratorFunction ||
|
|
1113
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
1114
|
-
// do is to check its .name property.
|
|
1115
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
1116
|
-
: false;
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
exports.mark = function(genFun) {
|
|
1120
|
-
if (Object.setPrototypeOf) {
|
|
1121
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
1122
|
-
} else {
|
|
1123
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
1124
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
1125
|
-
}
|
|
1126
|
-
genFun.prototype = Object.create(Gp);
|
|
1127
|
-
return genFun;
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
// Within the body of any async function, `await x` is transformed to
|
|
1131
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
1132
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
1133
|
-
// meant to be awaited.
|
|
1134
|
-
exports.awrap = function(arg) {
|
|
1135
|
-
return { __await: arg };
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
1139
|
-
function invoke(method, arg, resolve, reject) {
|
|
1140
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
1141
|
-
if (record.type === "throw") {
|
|
1142
|
-
reject(record.arg);
|
|
1143
|
-
} else {
|
|
1144
|
-
var result = record.arg;
|
|
1145
|
-
var value = result.value;
|
|
1146
|
-
if (value &&
|
|
1147
|
-
typeof value === "object" &&
|
|
1148
|
-
hasOwn.call(value, "__await")) {
|
|
1149
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
1150
|
-
invoke("next", value, resolve, reject);
|
|
1151
|
-
}, function(err) {
|
|
1152
|
-
invoke("throw", err, resolve, reject);
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
1157
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
1158
|
-
// the .value of the Promise<{value,done}> result for the
|
|
1159
|
-
// current iteration.
|
|
1160
|
-
result.value = unwrapped;
|
|
1161
|
-
resolve(result);
|
|
1162
|
-
}, function(error) {
|
|
1163
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
1164
|
-
// into the async generator function so it can be handled there.
|
|
1165
|
-
return invoke("throw", error, resolve, reject);
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
var previousPromise;
|
|
1171
|
-
|
|
1172
|
-
function enqueue(method, arg) {
|
|
1173
|
-
function callInvokeWithMethodAndArg() {
|
|
1174
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
1175
|
-
invoke(method, arg, resolve, reject);
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
return previousPromise =
|
|
1180
|
-
// If enqueue has been called before, then we want to wait until
|
|
1181
|
-
// all previous Promises have been resolved before calling invoke,
|
|
1182
|
-
// so that results are always delivered in the correct order. If
|
|
1183
|
-
// enqueue has not been called before, then it is important to
|
|
1184
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
1185
|
-
// so that the async generator function has the opportunity to do
|
|
1186
|
-
// any necessary setup in a predictable way. This predictability
|
|
1187
|
-
// is why the Promise constructor synchronously invokes its
|
|
1188
|
-
// executor callback, and why async functions synchronously
|
|
1189
|
-
// execute code before the first await. Since we implement simple
|
|
1190
|
-
// async functions in terms of async generators, it is especially
|
|
1191
|
-
// important to get this right, even though it requires care.
|
|
1192
|
-
previousPromise ? previousPromise.then(
|
|
1193
|
-
callInvokeWithMethodAndArg,
|
|
1194
|
-
// Avoid propagating failures to Promises returned by later
|
|
1195
|
-
// invocations of the iterator.
|
|
1196
|
-
callInvokeWithMethodAndArg
|
|
1197
|
-
) : callInvokeWithMethodAndArg();
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
// Define the unified helper method that is used to implement .next,
|
|
1201
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
1202
|
-
this._invoke = enqueue;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
1206
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
1207
|
-
return this;
|
|
1208
|
-
});
|
|
1209
|
-
exports.AsyncIterator = AsyncIterator;
|
|
1210
|
-
|
|
1211
|
-
// Note that simple async functions are implemented on top of
|
|
1212
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
1213
|
-
// the final result produced by the iterator.
|
|
1214
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
1215
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
1216
|
-
|
|
1217
|
-
var iter = new AsyncIterator(
|
|
1218
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
1219
|
-
PromiseImpl
|
|
1220
|
-
);
|
|
1221
|
-
|
|
1222
|
-
return exports.isGeneratorFunction(outerFn)
|
|
1223
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
1224
|
-
: iter.next().then(function(result) {
|
|
1225
|
-
return result.done ? result.value : iter.next();
|
|
1226
|
-
});
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
1230
|
-
var state = GenStateSuspendedStart;
|
|
1231
|
-
|
|
1232
|
-
return function invoke(method, arg) {
|
|
1233
|
-
if (state === GenStateExecuting) {
|
|
1234
|
-
throw new Error("Generator is already running");
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
if (state === GenStateCompleted) {
|
|
1238
|
-
if (method === "throw") {
|
|
1239
|
-
throw arg;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
1243
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
1244
|
-
return doneResult();
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
context.method = method;
|
|
1248
|
-
context.arg = arg;
|
|
1249
|
-
|
|
1250
|
-
while (true) {
|
|
1251
|
-
var delegate = context.delegate;
|
|
1252
|
-
if (delegate) {
|
|
1253
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
1254
|
-
if (delegateResult) {
|
|
1255
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
1256
|
-
return delegateResult;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
if (context.method === "next") {
|
|
1261
|
-
// Setting context._sent for legacy support of Babel's
|
|
1262
|
-
// function.sent implementation.
|
|
1263
|
-
context.sent = context._sent = context.arg;
|
|
1264
|
-
|
|
1265
|
-
} else if (context.method === "throw") {
|
|
1266
|
-
if (state === GenStateSuspendedStart) {
|
|
1267
|
-
state = GenStateCompleted;
|
|
1268
|
-
throw context.arg;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
context.dispatchException(context.arg);
|
|
1272
|
-
|
|
1273
|
-
} else if (context.method === "return") {
|
|
1274
|
-
context.abrupt("return", context.arg);
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
state = GenStateExecuting;
|
|
1278
|
-
|
|
1279
|
-
var record = tryCatch(innerFn, self, context);
|
|
1280
|
-
if (record.type === "normal") {
|
|
1281
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
1282
|
-
// GenStateExecuting and loop back for another invocation.
|
|
1283
|
-
state = context.done
|
|
1284
|
-
? GenStateCompleted
|
|
1285
|
-
: GenStateSuspendedYield;
|
|
1286
|
-
|
|
1287
|
-
if (record.arg === ContinueSentinel) {
|
|
1288
|
-
continue;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
return {
|
|
1292
|
-
value: record.arg,
|
|
1293
|
-
done: context.done
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
} else if (record.type === "throw") {
|
|
1297
|
-
state = GenStateCompleted;
|
|
1298
|
-
// Dispatch the exception by looping back around to the
|
|
1299
|
-
// context.dispatchException(context.arg) call above.
|
|
1300
|
-
context.method = "throw";
|
|
1301
|
-
context.arg = record.arg;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
1308
|
-
// result, either by returning a { value, done } result from the
|
|
1309
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
1310
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
1311
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
1312
|
-
var method = delegate.iterator[context.method];
|
|
1313
|
-
if (method === undefined$1) {
|
|
1314
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
1315
|
-
// method always terminates the yield* loop.
|
|
1316
|
-
context.delegate = null;
|
|
1317
|
-
|
|
1318
|
-
if (context.method === "throw") {
|
|
1319
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
1320
|
-
if (delegate.iterator["return"]) {
|
|
1321
|
-
// If the delegate iterator has a return method, give it a
|
|
1322
|
-
// chance to clean up.
|
|
1323
|
-
context.method = "return";
|
|
1324
|
-
context.arg = undefined$1;
|
|
1325
|
-
maybeInvokeDelegate(delegate, context);
|
|
1326
|
-
|
|
1327
|
-
if (context.method === "throw") {
|
|
1328
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
1329
|
-
// "return" to "throw", let that override the TypeError below.
|
|
1330
|
-
return ContinueSentinel;
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
context.method = "throw";
|
|
1335
|
-
context.arg = new TypeError(
|
|
1336
|
-
"The iterator does not provide a 'throw' method");
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
return ContinueSentinel;
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
1343
|
-
|
|
1344
|
-
if (record.type === "throw") {
|
|
1345
|
-
context.method = "throw";
|
|
1346
|
-
context.arg = record.arg;
|
|
1347
|
-
context.delegate = null;
|
|
1348
|
-
return ContinueSentinel;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
var info = record.arg;
|
|
1352
|
-
|
|
1353
|
-
if (! info) {
|
|
1354
|
-
context.method = "throw";
|
|
1355
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
1356
|
-
context.delegate = null;
|
|
1357
|
-
return ContinueSentinel;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
if (info.done) {
|
|
1361
|
-
// Assign the result of the finished delegate to the temporary
|
|
1362
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
1363
|
-
context[delegate.resultName] = info.value;
|
|
1364
|
-
|
|
1365
|
-
// Resume execution at the desired location (see delegateYield).
|
|
1366
|
-
context.next = delegate.nextLoc;
|
|
1367
|
-
|
|
1368
|
-
// If context.method was "throw" but the delegate handled the
|
|
1369
|
-
// exception, let the outer generator proceed normally. If
|
|
1370
|
-
// context.method was "next", forget context.arg since it has been
|
|
1371
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
1372
|
-
// "return", allow the original .return call to continue in the
|
|
1373
|
-
// outer generator.
|
|
1374
|
-
if (context.method !== "return") {
|
|
1375
|
-
context.method = "next";
|
|
1376
|
-
context.arg = undefined$1;
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
} else {
|
|
1380
|
-
// Re-yield the result returned by the delegate method.
|
|
1381
|
-
return info;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
1385
|
-
// the outer generator.
|
|
1386
|
-
context.delegate = null;
|
|
1387
|
-
return ContinueSentinel;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
1391
|
-
// unified ._invoke helper method.
|
|
1392
|
-
defineIteratorMethods(Gp);
|
|
1393
|
-
|
|
1394
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
1395
|
-
|
|
1396
|
-
// A Generator should always return itself as the iterator object when the
|
|
1397
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
1398
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
1399
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
1400
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
1401
|
-
define(Gp, iteratorSymbol, function() {
|
|
1402
|
-
return this;
|
|
1403
|
-
});
|
|
1404
|
-
|
|
1405
|
-
define(Gp, "toString", function() {
|
|
1406
|
-
return "[object Generator]";
|
|
1407
|
-
});
|
|
1408
|
-
|
|
1409
|
-
function pushTryEntry(locs) {
|
|
1410
|
-
var entry = { tryLoc: locs[0] };
|
|
1411
|
-
|
|
1412
|
-
if (1 in locs) {
|
|
1413
|
-
entry.catchLoc = locs[1];
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
if (2 in locs) {
|
|
1417
|
-
entry.finallyLoc = locs[2];
|
|
1418
|
-
entry.afterLoc = locs[3];
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
this.tryEntries.push(entry);
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
function resetTryEntry(entry) {
|
|
1425
|
-
var record = entry.completion || {};
|
|
1426
|
-
record.type = "normal";
|
|
1427
|
-
delete record.arg;
|
|
1428
|
-
entry.completion = record;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
function Context(tryLocsList) {
|
|
1432
|
-
// The root entry object (effectively a try statement without a catch
|
|
1433
|
-
// or a finally block) gives us a place to store values thrown from
|
|
1434
|
-
// locations where there is no enclosing try statement.
|
|
1435
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
1436
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
1437
|
-
this.reset(true);
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
exports.keys = function(object) {
|
|
1441
|
-
var keys = [];
|
|
1442
|
-
for (var key in object) {
|
|
1443
|
-
keys.push(key);
|
|
1444
|
-
}
|
|
1445
|
-
keys.reverse();
|
|
1446
|
-
|
|
1447
|
-
// Rather than returning an object with a next method, we keep
|
|
1448
|
-
// things simple and return the next function itself.
|
|
1449
|
-
return function next() {
|
|
1450
|
-
while (keys.length) {
|
|
1451
|
-
var key = keys.pop();
|
|
1452
|
-
if (key in object) {
|
|
1453
|
-
next.value = key;
|
|
1454
|
-
next.done = false;
|
|
1455
|
-
return next;
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
// To avoid creating an additional object, we just hang the .value
|
|
1460
|
-
// and .done properties off the next function object itself. This
|
|
1461
|
-
// also ensures that the minifier will not anonymize the function.
|
|
1462
|
-
next.done = true;
|
|
1463
|
-
return next;
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
|
|
1467
|
-
function values(iterable) {
|
|
1468
|
-
if (iterable) {
|
|
1469
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
1470
|
-
if (iteratorMethod) {
|
|
1471
|
-
return iteratorMethod.call(iterable);
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
if (typeof iterable.next === "function") {
|
|
1475
|
-
return iterable;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
if (!isNaN(iterable.length)) {
|
|
1479
|
-
var i = -1, next = function next() {
|
|
1480
|
-
while (++i < iterable.length) {
|
|
1481
|
-
if (hasOwn.call(iterable, i)) {
|
|
1482
|
-
next.value = iterable[i];
|
|
1483
|
-
next.done = false;
|
|
1484
|
-
return next;
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
next.value = undefined$1;
|
|
1489
|
-
next.done = true;
|
|
1490
|
-
|
|
1491
|
-
return next;
|
|
1492
|
-
};
|
|
1493
|
-
|
|
1494
|
-
return next.next = next;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
// Return an iterator with no values.
|
|
1499
|
-
return { next: doneResult };
|
|
1500
|
-
}
|
|
1501
|
-
exports.values = values;
|
|
1502
|
-
|
|
1503
|
-
function doneResult() {
|
|
1504
|
-
return { value: undefined$1, done: true };
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
Context.prototype = {
|
|
1508
|
-
constructor: Context,
|
|
1509
|
-
|
|
1510
|
-
reset: function(skipTempReset) {
|
|
1511
|
-
this.prev = 0;
|
|
1512
|
-
this.next = 0;
|
|
1513
|
-
// Resetting context._sent for legacy support of Babel's
|
|
1514
|
-
// function.sent implementation.
|
|
1515
|
-
this.sent = this._sent = undefined$1;
|
|
1516
|
-
this.done = false;
|
|
1517
|
-
this.delegate = null;
|
|
1518
|
-
|
|
1519
|
-
this.method = "next";
|
|
1520
|
-
this.arg = undefined$1;
|
|
1521
|
-
|
|
1522
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
1523
|
-
|
|
1524
|
-
if (!skipTempReset) {
|
|
1525
|
-
for (var name in this) {
|
|
1526
|
-
// Not sure about the optimal order of these conditions:
|
|
1527
|
-
if (name.charAt(0) === "t" &&
|
|
1528
|
-
hasOwn.call(this, name) &&
|
|
1529
|
-
!isNaN(+name.slice(1))) {
|
|
1530
|
-
this[name] = undefined$1;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
},
|
|
1535
|
-
|
|
1536
|
-
stop: function() {
|
|
1537
|
-
this.done = true;
|
|
1538
|
-
|
|
1539
|
-
var rootEntry = this.tryEntries[0];
|
|
1540
|
-
var rootRecord = rootEntry.completion;
|
|
1541
|
-
if (rootRecord.type === "throw") {
|
|
1542
|
-
throw rootRecord.arg;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
return this.rval;
|
|
1546
|
-
},
|
|
1547
|
-
|
|
1548
|
-
dispatchException: function(exception) {
|
|
1549
|
-
if (this.done) {
|
|
1550
|
-
throw exception;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
var context = this;
|
|
1554
|
-
function handle(loc, caught) {
|
|
1555
|
-
record.type = "throw";
|
|
1556
|
-
record.arg = exception;
|
|
1557
|
-
context.next = loc;
|
|
1558
|
-
|
|
1559
|
-
if (caught) {
|
|
1560
|
-
// If the dispatched exception was caught by a catch block,
|
|
1561
|
-
// then let that catch block handle the exception normally.
|
|
1562
|
-
context.method = "next";
|
|
1563
|
-
context.arg = undefined$1;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
return !! caught;
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1570
|
-
var entry = this.tryEntries[i];
|
|
1571
|
-
var record = entry.completion;
|
|
1572
|
-
|
|
1573
|
-
if (entry.tryLoc === "root") {
|
|
1574
|
-
// Exception thrown outside of any try block that could handle
|
|
1575
|
-
// it, so set the completion value of the entire function to
|
|
1576
|
-
// throw the exception.
|
|
1577
|
-
return handle("end");
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
if (entry.tryLoc <= this.prev) {
|
|
1581
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
1582
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
1583
|
-
|
|
1584
|
-
if (hasCatch && hasFinally) {
|
|
1585
|
-
if (this.prev < entry.catchLoc) {
|
|
1586
|
-
return handle(entry.catchLoc, true);
|
|
1587
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
1588
|
-
return handle(entry.finallyLoc);
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
} else if (hasCatch) {
|
|
1592
|
-
if (this.prev < entry.catchLoc) {
|
|
1593
|
-
return handle(entry.catchLoc, true);
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
} else if (hasFinally) {
|
|
1597
|
-
if (this.prev < entry.finallyLoc) {
|
|
1598
|
-
return handle(entry.finallyLoc);
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
} else {
|
|
1602
|
-
throw new Error("try statement without catch or finally");
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
},
|
|
1607
|
-
|
|
1608
|
-
abrupt: function(type, arg) {
|
|
1609
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1610
|
-
var entry = this.tryEntries[i];
|
|
1611
|
-
if (entry.tryLoc <= this.prev &&
|
|
1612
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
1613
|
-
this.prev < entry.finallyLoc) {
|
|
1614
|
-
var finallyEntry = entry;
|
|
1615
|
-
break;
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
if (finallyEntry &&
|
|
1620
|
-
(type === "break" ||
|
|
1621
|
-
type === "continue") &&
|
|
1622
|
-
finallyEntry.tryLoc <= arg &&
|
|
1623
|
-
arg <= finallyEntry.finallyLoc) {
|
|
1624
|
-
// Ignore the finally entry if control is not jumping to a
|
|
1625
|
-
// location outside the try/catch block.
|
|
1626
|
-
finallyEntry = null;
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
1630
|
-
record.type = type;
|
|
1631
|
-
record.arg = arg;
|
|
1632
|
-
|
|
1633
|
-
if (finallyEntry) {
|
|
1634
|
-
this.method = "next";
|
|
1635
|
-
this.next = finallyEntry.finallyLoc;
|
|
1636
|
-
return ContinueSentinel;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
return this.complete(record);
|
|
1640
|
-
},
|
|
1641
|
-
|
|
1642
|
-
complete: function(record, afterLoc) {
|
|
1643
|
-
if (record.type === "throw") {
|
|
1644
|
-
throw record.arg;
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
if (record.type === "break" ||
|
|
1648
|
-
record.type === "continue") {
|
|
1649
|
-
this.next = record.arg;
|
|
1650
|
-
} else if (record.type === "return") {
|
|
1651
|
-
this.rval = this.arg = record.arg;
|
|
1652
|
-
this.method = "return";
|
|
1653
|
-
this.next = "end";
|
|
1654
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
1655
|
-
this.next = afterLoc;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
return ContinueSentinel;
|
|
1659
|
-
},
|
|
1660
|
-
|
|
1661
|
-
finish: function(finallyLoc) {
|
|
1662
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1663
|
-
var entry = this.tryEntries[i];
|
|
1664
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
1665
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
1666
|
-
resetTryEntry(entry);
|
|
1667
|
-
return ContinueSentinel;
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
|
|
1672
|
-
"catch": function(tryLoc) {
|
|
1673
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1674
|
-
var entry = this.tryEntries[i];
|
|
1675
|
-
if (entry.tryLoc === tryLoc) {
|
|
1676
|
-
var record = entry.completion;
|
|
1677
|
-
if (record.type === "throw") {
|
|
1678
|
-
var thrown = record.arg;
|
|
1679
|
-
resetTryEntry(entry);
|
|
1680
|
-
}
|
|
1681
|
-
return thrown;
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
// The context.catch method must only be called with a location
|
|
1686
|
-
// argument that corresponds to a known catch block.
|
|
1687
|
-
throw new Error("illegal catch attempt");
|
|
1688
|
-
},
|
|
1689
|
-
|
|
1690
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
1691
|
-
this.delegate = {
|
|
1692
|
-
iterator: values(iterable),
|
|
1693
|
-
resultName: resultName,
|
|
1694
|
-
nextLoc: nextLoc
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
if (this.method === "next") {
|
|
1698
|
-
// Deliberately forget the last sent value so that we don't
|
|
1699
|
-
// accidentally pass it on to the delegate.
|
|
1700
|
-
this.arg = undefined$1;
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
return ContinueSentinel;
|
|
943
|
+
}, React__default.createElement(material.ListItemIcon, null, React__default.createElement(EditIcon, null)), localization.edit)), renderRowActionMenuItems == null ? void 0 : renderRowActionMenuItems({
|
|
944
|
+
row: row,
|
|
945
|
+
tableInstance: tableInstance,
|
|
946
|
+
closeMenu: function closeMenu() {
|
|
947
|
+
return setAnchorEl(null);
|
|
1704
948
|
}
|
|
1705
|
-
};
|
|
1706
|
-
|
|
1707
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
1708
|
-
// or not, return the runtime object so that we can declare the variable
|
|
1709
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
1710
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
1711
|
-
return exports;
|
|
1712
|
-
|
|
1713
|
-
}(
|
|
1714
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
1715
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
1716
|
-
// object. Either way, the resulting object will be used to initialize
|
|
1717
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
1718
|
-
module.exports
|
|
1719
|
-
));
|
|
1720
|
-
|
|
1721
|
-
try {
|
|
1722
|
-
regeneratorRuntime = runtime;
|
|
1723
|
-
} catch (accidentalStrictMode) {
|
|
1724
|
-
// This module should not be running in strict mode, so the above
|
|
1725
|
-
// assignment should always work unless something is misconfigured. Just
|
|
1726
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
1727
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
1728
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
1729
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
1730
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
1731
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
1732
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1733
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
1734
|
-
if (typeof globalThis === "object") {
|
|
1735
|
-
globalThis.regeneratorRuntime = runtime;
|
|
1736
|
-
} else {
|
|
1737
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1738
|
-
}
|
|
1739
|
-
}
|
|
1740
|
-
});
|
|
949
|
+
}));
|
|
950
|
+
};
|
|
1741
951
|
|
|
1742
952
|
var MRT_EditActionButtons = function MRT_EditActionButtons(_ref) {
|
|
1743
953
|
var row = _ref.row,
|
|
@@ -1751,6 +961,9 @@ var MRT_EditActionButtons = function MRT_EditActionButtons(_ref) {
|
|
|
1751
961
|
onRowEditSubmit = _tableInstance$option.onRowEditSubmit,
|
|
1752
962
|
setCurrentEditingRow = _tableInstance$option.setCurrentEditingRow;
|
|
1753
963
|
|
|
964
|
+
var _getState = getState(),
|
|
965
|
+
currentEditingRow = _getState.currentEditingRow;
|
|
966
|
+
|
|
1754
967
|
var handleCancel = function handleCancel() {
|
|
1755
968
|
var _row$original;
|
|
1756
969
|
|
|
@@ -1758,32 +971,13 @@ var MRT_EditActionButtons = function MRT_EditActionButtons(_ref) {
|
|
|
1758
971
|
setCurrentEditingRow(null);
|
|
1759
972
|
};
|
|
1760
973
|
|
|
1761
|
-
var handleSave =
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
case 0:
|
|
1769
|
-
_context.next = 2;
|
|
1770
|
-
return onRowEditSubmit == null ? void 0 : onRowEditSubmit((_getState$currentEdit = getState().currentEditingRow) != null ? _getState$currentEdit : row);
|
|
1771
|
-
|
|
1772
|
-
case 2:
|
|
1773
|
-
setCurrentEditingRow(null);
|
|
1774
|
-
|
|
1775
|
-
case 3:
|
|
1776
|
-
case "end":
|
|
1777
|
-
return _context.stop();
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
}, _callee);
|
|
1781
|
-
}));
|
|
1782
|
-
|
|
1783
|
-
return function handleSave() {
|
|
1784
|
-
return _ref2.apply(this, arguments);
|
|
1785
|
-
};
|
|
1786
|
-
}();
|
|
974
|
+
var handleSave = function handleSave() {
|
|
975
|
+
onRowEditSubmit == null ? void 0 : onRowEditSubmit({
|
|
976
|
+
row: currentEditingRow != null ? currentEditingRow : row,
|
|
977
|
+
tableInstance: tableInstance
|
|
978
|
+
});
|
|
979
|
+
setCurrentEditingRow(null);
|
|
980
|
+
};
|
|
1787
981
|
|
|
1788
982
|
return React__default.createElement(material.Box, {
|
|
1789
983
|
sx: {
|
|
@@ -1848,7 +1042,10 @@ var MRT_ToggleRowActionMenuButton = function MRT_ToggleRowActionMenuButton(_ref)
|
|
|
1848
1042
|
setAnchorEl(null);
|
|
1849
1043
|
};
|
|
1850
1044
|
|
|
1851
|
-
return React__default.createElement(React__default.Fragment, null, renderRowActions ? React__default.createElement(React__default.Fragment, null, renderRowActions(
|
|
1045
|
+
return React__default.createElement(React__default.Fragment, null, renderRowActions ? React__default.createElement(React__default.Fragment, null, renderRowActions({
|
|
1046
|
+
row: row,
|
|
1047
|
+
tableInstance: tableInstance
|
|
1048
|
+
})) : row.id === (currentEditingRow == null ? void 0 : currentEditingRow.id) ? React__default.createElement(MRT_EditActionButtons, {
|
|
1852
1049
|
row: row,
|
|
1853
1050
|
tableInstance: tableInstance
|
|
1854
1051
|
}) : !renderRowActionMenuItems && enableRowEditing ? React__default.createElement(material.Tooltip, {
|
|
@@ -1900,18 +1097,31 @@ var MRT_SelectCheckbox = function MRT_SelectCheckbox(_ref) {
|
|
|
1900
1097
|
var _getToggleAllRowsSele;
|
|
1901
1098
|
|
|
1902
1099
|
getToggleAllRowsSelectedProps == null ? void 0 : (_getToggleAllRowsSele = getToggleAllRowsSelectedProps()) == null ? void 0 : _getToggleAllRowsSele.onChange == null ? void 0 : _getToggleAllRowsSele.onChange(event);
|
|
1903
|
-
onSelectAllChange == null ? void 0 : onSelectAllChange(
|
|
1100
|
+
onSelectAllChange == null ? void 0 : onSelectAllChange({
|
|
1101
|
+
event: event,
|
|
1102
|
+
selectedRows: event.target.checked ? getRowModel().flatRows : [],
|
|
1103
|
+
tableInstance: tableInstance
|
|
1104
|
+
});
|
|
1904
1105
|
} else if (row) {
|
|
1905
1106
|
var _row$getToggleSelecte;
|
|
1906
1107
|
|
|
1907
1108
|
row == null ? void 0 : (_row$getToggleSelecte = row.getToggleSelectedProps()) == null ? void 0 : _row$getToggleSelecte.onChange == null ? void 0 : _row$getToggleSelecte.onChange(event);
|
|
1908
|
-
onSelectChange == null ? void 0 : onSelectChange(
|
|
1909
|
-
|
|
1910
|
-
|
|
1109
|
+
onSelectChange == null ? void 0 : onSelectChange({
|
|
1110
|
+
event: event,
|
|
1111
|
+
row: row,
|
|
1112
|
+
selectedRows: event.target.checked ? [].concat(getSelectedRowModel().flatRows, [row]) : getSelectedRowModel().flatRows.filter(function (selectedRow) {
|
|
1113
|
+
return selectedRow.id !== row.id;
|
|
1114
|
+
}),
|
|
1115
|
+
tableInstance: tableInstance
|
|
1116
|
+
});
|
|
1911
1117
|
}
|
|
1912
1118
|
};
|
|
1913
1119
|
|
|
1914
|
-
var mTableBodyRowSelectCheckboxProps = muiSelectCheckboxProps instanceof Function ? muiSelectCheckboxProps(
|
|
1120
|
+
var mTableBodyRowSelectCheckboxProps = muiSelectCheckboxProps instanceof Function ? muiSelectCheckboxProps({
|
|
1121
|
+
isSelectAll: !!selectAll,
|
|
1122
|
+
row: row,
|
|
1123
|
+
tableInstance: tableInstance
|
|
1124
|
+
}) : muiSelectCheckboxProps;
|
|
1915
1125
|
var rtSelectCheckboxProps = selectAll ? getToggleAllRowsSelectedProps() : row == null ? void 0 : row.getToggleSelectedProps();
|
|
1916
1126
|
|
|
1917
1127
|
var checkboxProps = _extends({}, rtSelectCheckboxProps, mTableBodyRowSelectCheckboxProps);
|
|
@@ -1966,7 +1176,10 @@ var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
|
|
|
1966
1176
|
var _event$target$value;
|
|
1967
1177
|
|
|
1968
1178
|
setGlobalFilter((_event$target$value = event.target.value) != null ? _event$target$value : undefined);
|
|
1969
|
-
onGlobalFilterChange == null ? void 0 : onGlobalFilterChange(
|
|
1179
|
+
onGlobalFilterChange == null ? void 0 : onGlobalFilterChange({
|
|
1180
|
+
event: event,
|
|
1181
|
+
tableInstance: tableInstance
|
|
1182
|
+
});
|
|
1970
1183
|
}, 200), []);
|
|
1971
1184
|
|
|
1972
1185
|
var handleGlobalFilterMenuOpen = function handleGlobalFilterMenuOpen(event) {
|
|
@@ -1978,6 +1191,9 @@ var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
|
|
|
1978
1191
|
setGlobalFilter(undefined);
|
|
1979
1192
|
};
|
|
1980
1193
|
|
|
1194
|
+
var textFieldProps = muiSearchTextFieldProps instanceof Function ? muiSearchTextFieldProps({
|
|
1195
|
+
tableInstance: tableInstance
|
|
1196
|
+
}) : muiSearchTextFieldProps;
|
|
1981
1197
|
return React__default.createElement(material.Collapse, {
|
|
1982
1198
|
"in": showSearch,
|
|
1983
1199
|
orientation: "horizontal"
|
|
@@ -2019,10 +1235,10 @@ var MRT_SearchTextField = function MRT_SearchTextField(_ref) {
|
|
|
2019
1235
|
fontSize: "small"
|
|
2020
1236
|
})))
|
|
2021
1237
|
}
|
|
2022
|
-
},
|
|
1238
|
+
}, textFieldProps, {
|
|
2023
1239
|
sx: _extends({
|
|
2024
1240
|
justifySelf: 'end'
|
|
2025
|
-
},
|
|
1241
|
+
}, textFieldProps == null ? void 0 : textFieldProps.sx)
|
|
2026
1242
|
})), React__default.createElement(MRT_FilterTypeMenu, {
|
|
2027
1243
|
anchorEl: anchorEl,
|
|
2028
1244
|
setAnchorEl: setAnchorEl,
|
|
@@ -2163,12 +1379,16 @@ var MRT_ToggleSearchButton = function MRT_ToggleSearchButton(_ref) {
|
|
|
2163
1379
|
var _getState = getState(),
|
|
2164
1380
|
showSearch = _getState.showSearch;
|
|
2165
1381
|
|
|
1382
|
+
var textFieldProps = muiSearchTextFieldProps instanceof Function ? muiSearchTextFieldProps({
|
|
1383
|
+
tableInstance: tableInstance
|
|
1384
|
+
}) : muiSearchTextFieldProps;
|
|
1385
|
+
|
|
2166
1386
|
var handleToggleSearch = function handleToggleSearch() {
|
|
2167
1387
|
setShowSearch(!showSearch);
|
|
2168
1388
|
setTimeout(function () {
|
|
2169
|
-
var _document$getElementB,
|
|
1389
|
+
var _document$getElementB, _textFieldProps$id;
|
|
2170
1390
|
|
|
2171
|
-
return (_document$getElementB = document.getElementById((
|
|
1391
|
+
return (_document$getElementB = document.getElementById((_textFieldProps$id = textFieldProps == null ? void 0 : textFieldProps.id) != null ? _textFieldProps$id : "mrt-" + idPrefix + "-search-text-field")) == null ? void 0 : _document$getElementB.focus();
|
|
2172
1392
|
}, 200);
|
|
2173
1393
|
};
|
|
2174
1394
|
|
|
@@ -2192,12 +1412,13 @@ var MRT_ToolbarInternalButtons = function MRT_ToolbarInternalButtons(_ref) {
|
|
|
2192
1412
|
renderToolbarInternalActions = _tableInstance$option.renderToolbarInternalActions;
|
|
2193
1413
|
|
|
2194
1414
|
if (renderToolbarInternalActions) {
|
|
2195
|
-
return React__default.createElement(React__default.Fragment, null, renderToolbarInternalActions(
|
|
2196
|
-
|
|
2197
|
-
MRT_ToggleFiltersButton: MRT_ToggleFiltersButton,
|
|
1415
|
+
return React__default.createElement(React__default.Fragment, null, renderToolbarInternalActions({
|
|
1416
|
+
MRT_FullScreenToggleButton: MRT_FullScreenToggleButton,
|
|
2198
1417
|
MRT_ShowHideColumnsButton: MRT_ShowHideColumnsButton,
|
|
2199
1418
|
MRT_ToggleDensePaddingButton: MRT_ToggleDensePaddingButton,
|
|
2200
|
-
|
|
1419
|
+
MRT_ToggleFiltersButton: MRT_ToggleFiltersButton,
|
|
1420
|
+
MRT_ToggleSearchButton: MRT_ToggleSearchButton,
|
|
1421
|
+
tableInstance: tableInstance
|
|
2201
1422
|
}));
|
|
2202
1423
|
}
|
|
2203
1424
|
|
|
@@ -2236,7 +1457,9 @@ var MRT_TablePagination = function MRT_TablePagination(_ref) {
|
|
|
2236
1457
|
_getState$pagination$2 = _getState$pagination.pageIndex,
|
|
2237
1458
|
pageIndex = _getState$pagination$2 === void 0 ? 0 : _getState$pagination$2;
|
|
2238
1459
|
|
|
2239
|
-
var tablePaginationProps = muiTablePaginationProps instanceof Function ? muiTablePaginationProps(
|
|
1460
|
+
var tablePaginationProps = muiTablePaginationProps instanceof Function ? muiTablePaginationProps({
|
|
1461
|
+
tableInstance: tableInstance
|
|
1462
|
+
}) : muiTablePaginationProps;
|
|
2240
1463
|
|
|
2241
1464
|
var handleChangeRowsPerPage = function handleChangeRowsPerPage(event) {
|
|
2242
1465
|
setPageSize(+event.target.value);
|
|
@@ -2244,6 +1467,16 @@ var MRT_TablePagination = function MRT_TablePagination(_ref) {
|
|
|
2244
1467
|
|
|
2245
1468
|
var showFirstLastPageButtons = getPrePaginationRowModel().rows.length / pageSize > 2;
|
|
2246
1469
|
return React__default.createElement(material.TablePagination, Object.assign({
|
|
1470
|
+
SelectProps: {
|
|
1471
|
+
sx: {
|
|
1472
|
+
m: '0 1rem 0 1ch'
|
|
1473
|
+
},
|
|
1474
|
+
MenuProps: {
|
|
1475
|
+
MenuListProps: {
|
|
1476
|
+
disablePadding: true
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
2247
1480
|
component: "div",
|
|
2248
1481
|
count: getPrePaginationRowModel().rows.length,
|
|
2249
1482
|
onPageChange: function onPageChange(_, newPage) {
|
|
@@ -2252,11 +1485,7 @@ var MRT_TablePagination = function MRT_TablePagination(_ref) {
|
|
|
2252
1485
|
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
2253
1486
|
page: pageIndex,
|
|
2254
1487
|
rowsPerPage: pageSize,
|
|
2255
|
-
|
|
2256
|
-
sx: {
|
|
2257
|
-
m: '0 1rem 0 1ch'
|
|
2258
|
-
}
|
|
2259
|
-
},
|
|
1488
|
+
rowsPerPageOptions: [5, 10, 15, 20, 25, 30, 50, 100],
|
|
2260
1489
|
showFirstButton: showFirstLastPageButtons,
|
|
2261
1490
|
showLastButton: showFirstLastPageButtons
|
|
2262
1491
|
}, tablePaginationProps, {
|
|
@@ -2287,7 +1516,9 @@ var MRT_ToolbarAlertBanner = function MRT_ToolbarAlertBanner(_ref) {
|
|
|
2287
1516
|
grouping = _getState.grouping;
|
|
2288
1517
|
|
|
2289
1518
|
var isMobile = material.useMediaQuery('(max-width:720px)');
|
|
2290
|
-
var alertProps = muiTableToolbarAlertBannerProps instanceof Function ? muiTableToolbarAlertBannerProps(
|
|
1519
|
+
var alertProps = muiTableToolbarAlertBannerProps instanceof Function ? muiTableToolbarAlertBannerProps({
|
|
1520
|
+
tableInstance: tableInstance
|
|
1521
|
+
}) : muiTableToolbarAlertBannerProps;
|
|
2291
1522
|
var selectMessage = getSelectedRowModel().rows.length > 0 ? (_localization$selecte = localization.selectedCountOfRowCountRowsSelected) == null ? void 0 : (_localization$selecte2 = _localization$selecte.replace('{selectedCount}', getSelectedRowModel().rows.length.toString())) == null ? void 0 : _localization$selecte2.replace('{rowCount}', getPrePaginationRowModel().rows.length.toString()) : null;
|
|
2292
1523
|
var groupedByMessage = grouping.length > 0 ? React__default.createElement("span", null, localization.groupedBy, ' ', grouping.map(function (columnId, index) {
|
|
2293
1524
|
var _tableInstance$getAll;
|
|
@@ -2327,7 +1558,7 @@ var MRT_ToolbarAlertBanner = function MRT_ToolbarAlertBanner(_ref) {
|
|
|
2327
1558
|
sx: {
|
|
2328
1559
|
p: '0.5rem 1rem'
|
|
2329
1560
|
}
|
|
2330
|
-
}, selectMessage, groupedByMessage)));
|
|
1561
|
+
}, selectMessage, React__default.createElement("br", null), groupedByMessage)));
|
|
2331
1562
|
};
|
|
2332
1563
|
|
|
2333
1564
|
var MRT_LinearProgressBar = function MRT_LinearProgressBar(_ref) {
|
|
@@ -2336,7 +1567,9 @@ var MRT_LinearProgressBar = function MRT_LinearProgressBar(_ref) {
|
|
|
2336
1567
|
muiLinearProgressProps = _tableInstance$option.muiLinearProgressProps,
|
|
2337
1568
|
isReloading = _tableInstance$option.isReloading,
|
|
2338
1569
|
isLoading = _tableInstance$option.isLoading;
|
|
2339
|
-
var linearProgressProps = muiLinearProgressProps instanceof Function ? muiLinearProgressProps(
|
|
1570
|
+
var linearProgressProps = muiLinearProgressProps instanceof Function ? muiLinearProgressProps({
|
|
1571
|
+
tableInstance: tableInstance
|
|
1572
|
+
}) : muiLinearProgressProps;
|
|
2340
1573
|
return React__default.createElement(material.Collapse, {
|
|
2341
1574
|
"in": isReloading || isLoading,
|
|
2342
1575
|
unmountOnExit: true
|
|
@@ -2376,7 +1609,9 @@ var MRT_ToolbarTop = function MRT_ToolbarTop(_ref2) {
|
|
|
2376
1609
|
var _getState = getState(),
|
|
2377
1610
|
isFullScreen = _getState.isFullScreen;
|
|
2378
1611
|
|
|
2379
|
-
var toolbarProps = muiTableToolbarTopProps instanceof Function ? muiTableToolbarTopProps(
|
|
1612
|
+
var toolbarProps = muiTableToolbarTopProps instanceof Function ? muiTableToolbarTopProps({
|
|
1613
|
+
tableInstance: tableInstance
|
|
1614
|
+
}) : muiTableToolbarTopProps;
|
|
2380
1615
|
return React__default.createElement(material.Toolbar, Object.assign({
|
|
2381
1616
|
id: "mrt-" + idPrefix + "-toolbar-top",
|
|
2382
1617
|
variant: "dense"
|
|
@@ -2397,7 +1632,9 @@ var MRT_ToolbarTop = function MRT_ToolbarTop(_ref2) {
|
|
|
2397
1632
|
display: 'flex',
|
|
2398
1633
|
justifyContent: 'space-between'
|
|
2399
1634
|
}
|
|
2400
|
-
}, (_renderToolbarCustomA = renderToolbarCustomActions == null ? void 0 : renderToolbarCustomActions(
|
|
1635
|
+
}, (_renderToolbarCustomA = renderToolbarCustomActions == null ? void 0 : renderToolbarCustomActions({
|
|
1636
|
+
tableInstance: tableInstance
|
|
1637
|
+
})) != null ? _renderToolbarCustomA : React__default.createElement("span", null), React__default.createElement(material.Box, {
|
|
2401
1638
|
sx: {
|
|
2402
1639
|
display: 'flex',
|
|
2403
1640
|
gap: '0.5rem',
|
|
@@ -2430,7 +1667,9 @@ var MRT_ToolbarBottom = function MRT_ToolbarBottom(_ref) {
|
|
|
2430
1667
|
var _getState = getState(),
|
|
2431
1668
|
isFullScreen = _getState.isFullScreen;
|
|
2432
1669
|
|
|
2433
|
-
var toolbarProps = muiTableToolbarBottomProps instanceof Function ? muiTableToolbarBottomProps(
|
|
1670
|
+
var toolbarProps = muiTableToolbarBottomProps instanceof Function ? muiTableToolbarBottomProps({
|
|
1671
|
+
tableInstance: tableInstance
|
|
1672
|
+
}) : muiTableToolbarBottomProps;
|
|
2434
1673
|
return React__default.createElement(material.Toolbar, Object.assign({
|
|
2435
1674
|
id: "mrt-" + idPrefix + "-toolbar-bottom",
|
|
2436
1675
|
variant: "dense"
|
|
@@ -2484,8 +1723,14 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
|
2484
1723
|
anchorEl = _useState[0],
|
|
2485
1724
|
setAnchorEl = _useState[1];
|
|
2486
1725
|
|
|
2487
|
-
var mTableHeadCellFilterTextFieldProps = muiTableHeadCellFilterTextFieldProps instanceof Function ? muiTableHeadCellFilterTextFieldProps(
|
|
2488
|
-
|
|
1726
|
+
var mTableHeadCellFilterTextFieldProps = muiTableHeadCellFilterTextFieldProps instanceof Function ? muiTableHeadCellFilterTextFieldProps({
|
|
1727
|
+
column: column,
|
|
1728
|
+
tableInstance: tableInstance
|
|
1729
|
+
}) : muiTableHeadCellFilterTextFieldProps;
|
|
1730
|
+
var mcTableHeadCellFilterTextFieldProps = column.muiTableHeadCellFilterTextFieldProps instanceof Function ? column.muiTableHeadCellFilterTextFieldProps({
|
|
1731
|
+
column: column,
|
|
1732
|
+
tableInstance: tableInstance
|
|
1733
|
+
}) : column.muiTableHeadCellFilterTextFieldProps;
|
|
2489
1734
|
|
|
2490
1735
|
var textFieldProps = _extends({}, mTableHeadCellFilterTextFieldProps, mcTableHeadCellFilterTextFieldProps);
|
|
2491
1736
|
|
|
@@ -2662,8 +1907,14 @@ var MRT_ToggleColumnActionMenuButton = function MRT_ToggleColumnActionMenuButton
|
|
|
2662
1907
|
setAnchorEl(event.currentTarget);
|
|
2663
1908
|
};
|
|
2664
1909
|
|
|
2665
|
-
var mTableHeadCellColumnActionsButtonProps = muiTableHeadCellColumnActionsButtonProps instanceof Function ? muiTableHeadCellColumnActionsButtonProps(
|
|
2666
|
-
|
|
1910
|
+
var mTableHeadCellColumnActionsButtonProps = muiTableHeadCellColumnActionsButtonProps instanceof Function ? muiTableHeadCellColumnActionsButtonProps({
|
|
1911
|
+
column: column,
|
|
1912
|
+
tableInstance: tableInstance
|
|
1913
|
+
}) : muiTableHeadCellColumnActionsButtonProps;
|
|
1914
|
+
var mcTableHeadCellColumnActionsButtonProps = column.muiTableHeadCellColumnActionsButtonProps instanceof Function ? column.muiTableHeadCellColumnActionsButtonProps({
|
|
1915
|
+
column: column,
|
|
1916
|
+
tableInstance: tableInstance
|
|
1917
|
+
}) : column.muiTableHeadCellColumnActionsButtonProps;
|
|
2667
1918
|
|
|
2668
1919
|
var iconButtonProps = _extends({}, mTableHeadCellColumnActionsButtonProps, mcTableHeadCellColumnActionsButtonProps);
|
|
2669
1920
|
|
|
@@ -2698,7 +1949,7 @@ var MRT_ToggleColumnActionMenuButton = function MRT_ToggleColumnActionMenuButton
|
|
|
2698
1949
|
};
|
|
2699
1950
|
|
|
2700
1951
|
var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
2701
|
-
var _column$Header;
|
|
1952
|
+
var _getState2, _getState2$currentFil, _column$Header;
|
|
2702
1953
|
|
|
2703
1954
|
var header = _ref.header,
|
|
2704
1955
|
tableInstance = _ref.tableInstance;
|
|
@@ -2719,34 +1970,21 @@ var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
|
2719
1970
|
showFilters = _getState.showFilters;
|
|
2720
1971
|
|
|
2721
1972
|
var column = header.column;
|
|
2722
|
-
var mTableHeadCellProps = muiTableHeadCellProps instanceof Function ? muiTableHeadCellProps(
|
|
2723
|
-
|
|
1973
|
+
var mTableHeadCellProps = muiTableHeadCellProps instanceof Function ? muiTableHeadCellProps({
|
|
1974
|
+
column: column,
|
|
1975
|
+
tableInstance: tableInstance
|
|
1976
|
+
}) : muiTableHeadCellProps;
|
|
1977
|
+
var mcTableHeadCellProps = column.muiTableHeadCellProps instanceof Function ? column.muiTableHeadCellProps({
|
|
1978
|
+
column: column,
|
|
1979
|
+
tableInstance: tableInstance
|
|
1980
|
+
}) : column.muiTableHeadCellProps;
|
|
2724
1981
|
|
|
2725
1982
|
var tableCellProps = _extends({}, header.getHeaderProps(), mTableHeadCellProps, mcTableHeadCellProps);
|
|
2726
1983
|
|
|
2727
|
-
var sortTooltip = !!column.getIsSorted() ? column.getIsSorted() === 'desc' ? localization.clearSort : localization.sortByColumnDesc.replace('{column}', column.header) : localization.sortByColumnAsc.replace('{column}', column.header);
|
|
2728
|
-
|
|
2729
|
-
var filterTooltip = ''
|
|
2730
|
-
|
|
2731
|
-
// .replace('{column}', String(headerString))
|
|
2732
|
-
// .replace(
|
|
2733
|
-
// '{filterType}',
|
|
2734
|
-
// filterType instanceof Function
|
|
2735
|
-
// ? ''
|
|
2736
|
-
// : // @ts-ignore
|
|
2737
|
-
// localization[
|
|
2738
|
-
// `filter${
|
|
2739
|
-
// filterType.charAt(0).toUpperCase() + filterType.slice(1)
|
|
2740
|
-
// }`
|
|
2741
|
-
// ],
|
|
2742
|
-
// )
|
|
2743
|
-
// .replace(
|
|
2744
|
-
// '{filterValue}',
|
|
2745
|
-
// getColumnFilterValue() as string,
|
|
2746
|
-
// )
|
|
2747
|
-
// .replace('" "', '')
|
|
2748
|
-
// : localization.showHideFilters;
|
|
2749
|
-
|
|
1984
|
+
var sortTooltip = !!column.getIsSorted() ? column.getIsSorted() === 'desc' ? localization.clearSort : localization.sortByColumnDesc.replace('{column}', column.header) : localization.sortByColumnAsc.replace('{column}', column.header);
|
|
1985
|
+
var filterType = (_getState2 = getState()) == null ? void 0 : (_getState2$currentFil = _getState2.currentFilterTypes) == null ? void 0 : _getState2$currentFil[header.id];
|
|
1986
|
+
var filterTooltip = !!column.getColumnFilterValue() ? localization.filteringByColumn.replace('{column}', String(column.header)).replace('{filterType}', filterType instanceof Function ? '' : // @ts-ignore
|
|
1987
|
+
localization["filter" + (filterType.charAt(0).toUpperCase() + filterType.slice(1))]).replace('{filterValue}', column.getColumnFilterValue()).replace('" "', '') : localization.showHideFilters;
|
|
2750
1988
|
var headerElement = (_column$Header = column == null ? void 0 : column.Header == null ? void 0 : column.Header({
|
|
2751
1989
|
header: header,
|
|
2752
1990
|
tableInstance: tableInstance
|
|
@@ -2867,7 +2105,10 @@ var MRT_TableHeadRow = function MRT_TableHeadRow(_ref) {
|
|
|
2867
2105
|
var headerGroup = _ref.headerGroup,
|
|
2868
2106
|
tableInstance = _ref.tableInstance;
|
|
2869
2107
|
var muiTableHeadRowProps = tableInstance.options.muiTableHeadRowProps;
|
|
2870
|
-
var mTableHeadRowProps = muiTableHeadRowProps instanceof Function ? muiTableHeadRowProps(
|
|
2108
|
+
var mTableHeadRowProps = muiTableHeadRowProps instanceof Function ? muiTableHeadRowProps({
|
|
2109
|
+
headerGroup: headerGroup,
|
|
2110
|
+
tableInstance: tableInstance
|
|
2111
|
+
}) : muiTableHeadRowProps;
|
|
2871
2112
|
|
|
2872
2113
|
var tableRowProps = _extends({}, headerGroup == null ? void 0 : headerGroup.getHeaderGroupProps(), mTableHeadRowProps);
|
|
2873
2114
|
|
|
@@ -2888,7 +2129,9 @@ var MRT_TableHead = function MRT_TableHead(_ref) {
|
|
|
2888
2129
|
getLeftHeaderGroups = tableInstance.getLeftHeaderGroups,
|
|
2889
2130
|
getRightHeaderGroups = tableInstance.getRightHeaderGroups,
|
|
2890
2131
|
muiTableHeadProps = tableInstance.options.muiTableHeadProps;
|
|
2891
|
-
var tableHeadProps = muiTableHeadProps instanceof Function ? muiTableHeadProps(
|
|
2132
|
+
var tableHeadProps = muiTableHeadProps instanceof Function ? muiTableHeadProps({
|
|
2133
|
+
tableInstance: tableInstance
|
|
2134
|
+
}) : muiTableHeadProps;
|
|
2892
2135
|
var getHeaderGroupsMap = {
|
|
2893
2136
|
center: getCenterHeaderGroups,
|
|
2894
2137
|
left: getLeftHeaderGroups,
|
|
@@ -2908,7 +2151,9 @@ var MRT_EditCellTextField = function MRT_EditCellTextField(_ref) {
|
|
|
2908
2151
|
var cell = _ref.cell,
|
|
2909
2152
|
tableInstance = _ref.tableInstance;
|
|
2910
2153
|
var getState = tableInstance.getState,
|
|
2911
|
-
|
|
2154
|
+
_tableInstance$option = tableInstance.options,
|
|
2155
|
+
enableRowEditing = _tableInstance$option.enableRowEditing,
|
|
2156
|
+
muiTableBodyCellEditTextFieldProps = _tableInstance$option.muiTableBodyCellEditTextFieldProps;
|
|
2912
2157
|
var column = cell.column,
|
|
2913
2158
|
row = cell.row;
|
|
2914
2159
|
|
|
@@ -2919,16 +2164,30 @@ var MRT_EditCellTextField = function MRT_EditCellTextField(_ref) {
|
|
|
2919
2164
|
// });
|
|
2920
2165
|
}
|
|
2921
2166
|
|
|
2922
|
-
column.onCellEditChange == null ? void 0 : column.onCellEditChange(
|
|
2167
|
+
column.onCellEditChange == null ? void 0 : column.onCellEditChange({
|
|
2168
|
+
event: event,
|
|
2169
|
+
cell: cell,
|
|
2170
|
+
tableInstance: tableInstance
|
|
2171
|
+
});
|
|
2923
2172
|
};
|
|
2924
2173
|
|
|
2925
|
-
var mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function ? muiTableBodyCellEditTextFieldProps(
|
|
2926
|
-
|
|
2174
|
+
var mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function ? muiTableBodyCellEditTextFieldProps({
|
|
2175
|
+
cell: cell,
|
|
2176
|
+
tableInstance: tableInstance
|
|
2177
|
+
}) : muiTableBodyCellEditTextFieldProps;
|
|
2178
|
+
var mcTableBodyCellEditTextFieldProps = column.muiTableBodyCellEditTextFieldProps instanceof Function ? column.muiTableBodyCellEditTextFieldProps({
|
|
2179
|
+
cell: cell,
|
|
2180
|
+
tableInstance: tableInstance
|
|
2181
|
+
}) : column.muiTableBodyCellEditTextFieldProps;
|
|
2927
2182
|
|
|
2928
|
-
var textFieldProps = _extends({}, mTableBodyCellEditTextFieldProps, mcTableBodyCellEditTextFieldProps);
|
|
2929
|
-
// return <>{Edit({ ...textFieldProps, cell })}</>;
|
|
2930
|
-
// }
|
|
2183
|
+
var textFieldProps = _extends({}, mTableBodyCellEditTextFieldProps, mcTableBodyCellEditTextFieldProps);
|
|
2931
2184
|
|
|
2185
|
+
if (enableRowEditing && column.enableEditing !== false && column.Edit) {
|
|
2186
|
+
return React__default.createElement(React__default.Fragment, null, column.Edit == null ? void 0 : column.Edit({
|
|
2187
|
+
cell: cell,
|
|
2188
|
+
tableInstance: tableInstance
|
|
2189
|
+
}));
|
|
2190
|
+
}
|
|
2932
2191
|
|
|
2933
2192
|
return React__default.createElement(material.TextField, Object.assign({
|
|
2934
2193
|
margin: "dense",
|
|
@@ -2962,8 +2221,14 @@ var MRT_CopyButton = function MRT_CopyButton(_ref) {
|
|
|
2962
2221
|
}, 4000);
|
|
2963
2222
|
};
|
|
2964
2223
|
|
|
2965
|
-
var mTableBodyCellCopyButtonProps = muiTableBodyCellCopyButtonProps instanceof Function ? muiTableBodyCellCopyButtonProps(
|
|
2966
|
-
|
|
2224
|
+
var mTableBodyCellCopyButtonProps = muiTableBodyCellCopyButtonProps instanceof Function ? muiTableBodyCellCopyButtonProps({
|
|
2225
|
+
cell: cell,
|
|
2226
|
+
tableInstance: tableInstance
|
|
2227
|
+
}) : muiTableBodyCellCopyButtonProps;
|
|
2228
|
+
var mcTableBodyCellCopyButtonProps = cell.column.muiTableBodyCellCopyButtonProps instanceof Function ? cell.column.muiTableBodyCellCopyButtonProps({
|
|
2229
|
+
cell: cell,
|
|
2230
|
+
tableInstance: tableInstance
|
|
2231
|
+
}) : cell.column.muiTableBodyCellCopyButtonProps;
|
|
2967
2232
|
|
|
2968
2233
|
var buttonProps = _extends({}, mTableBodyCellCopyButtonProps, mcTableBodyCellCopyButtonProps);
|
|
2969
2234
|
|
|
@@ -3017,8 +2282,14 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
3017
2282
|
|
|
3018
2283
|
var column = cell.column,
|
|
3019
2284
|
row = cell.row;
|
|
3020
|
-
var mTableCellBodyProps = muiTableBodyCellProps instanceof Function ? muiTableBodyCellProps(
|
|
3021
|
-
|
|
2285
|
+
var mTableCellBodyProps = muiTableBodyCellProps instanceof Function ? muiTableBodyCellProps({
|
|
2286
|
+
cell: cell,
|
|
2287
|
+
tableInstance: tableInstance
|
|
2288
|
+
}) : muiTableBodyCellProps;
|
|
2289
|
+
var mcTableCellBodyProps = column.muiTableBodyCellProps instanceof Function ? column.muiTableBodyCellProps({
|
|
2290
|
+
cell: cell,
|
|
2291
|
+
tableInstance: tableInstance
|
|
2292
|
+
}) : column.muiTableBodyCellProps;
|
|
3022
2293
|
|
|
3023
2294
|
var tableCellProps = _extends({}, cell.getCellProps(), mTableCellBodyProps, mcTableCellBodyProps);
|
|
3024
2295
|
|
|
@@ -3027,7 +2298,11 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
3027
2298
|
}, [column.columnDefType, column.getWidth()]);
|
|
3028
2299
|
return React__default.createElement(material.TableCell, Object.assign({
|
|
3029
2300
|
onClick: function onClick(event) {
|
|
3030
|
-
return onCellClick == null ? void 0 : onCellClick(
|
|
2301
|
+
return onCellClick == null ? void 0 : onCellClick({
|
|
2302
|
+
event: event,
|
|
2303
|
+
cell: cell,
|
|
2304
|
+
tableInstance: tableInstance
|
|
2305
|
+
});
|
|
3031
2306
|
}
|
|
3032
2307
|
}, tableCellProps, {
|
|
3033
2308
|
sx: _extends({
|
|
@@ -3061,12 +2336,22 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
3061
2336
|
muiTableDetailPanelProps = _tableInstance$option.muiTableDetailPanelProps,
|
|
3062
2337
|
onDetailPanelClick = _tableInstance$option.onDetailPanelClick,
|
|
3063
2338
|
renderDetailPanel = _tableInstance$option.renderDetailPanel;
|
|
3064
|
-
var tableRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps(
|
|
3065
|
-
|
|
2339
|
+
var tableRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps({
|
|
2340
|
+
row: row,
|
|
2341
|
+
tableInstance: tableInstance
|
|
2342
|
+
}) : muiTableBodyRowProps;
|
|
2343
|
+
var tableCellProps = muiTableDetailPanelProps instanceof Function ? muiTableDetailPanelProps({
|
|
2344
|
+
row: row,
|
|
2345
|
+
tableInstance: tableInstance
|
|
2346
|
+
}) : muiTableDetailPanelProps;
|
|
3066
2347
|
return React__default.createElement(material.TableRow, Object.assign({}, tableRowProps), React__default.createElement(material.TableCell, Object.assign({
|
|
3067
2348
|
colSpan: getVisibleFlatColumns().length + 10,
|
|
3068
2349
|
onClick: function onClick(event) {
|
|
3069
|
-
return onDetailPanelClick == null ? void 0 : onDetailPanelClick(
|
|
2350
|
+
return onDetailPanelClick == null ? void 0 : onDetailPanelClick({
|
|
2351
|
+
event: event,
|
|
2352
|
+
row: row,
|
|
2353
|
+
tableInstance: tableInstance
|
|
2354
|
+
});
|
|
3070
2355
|
}
|
|
3071
2356
|
}, tableCellProps, {
|
|
3072
2357
|
sx: _extends({
|
|
@@ -3077,7 +2362,10 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
3077
2362
|
}, tableCellProps == null ? void 0 : tableCellProps.sx)
|
|
3078
2363
|
}), React__default.createElement(material.Collapse, {
|
|
3079
2364
|
"in": row.getIsExpanded()
|
|
3080
|
-
}, renderDetailPanel == null ? void 0 : renderDetailPanel(
|
|
2365
|
+
}, renderDetailPanel == null ? void 0 : renderDetailPanel({
|
|
2366
|
+
row: row,
|
|
2367
|
+
tableInstance: tableInstance
|
|
2368
|
+
}))));
|
|
3081
2369
|
};
|
|
3082
2370
|
|
|
3083
2371
|
var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
@@ -3095,7 +2383,10 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
3095
2383
|
getRightVisibleCells = row.getRightVisibleCells,
|
|
3096
2384
|
getRowProps = row.getRowProps,
|
|
3097
2385
|
getVisibleCells = row.getVisibleCells;
|
|
3098
|
-
var mTableBodyRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps(
|
|
2386
|
+
var mTableBodyRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps({
|
|
2387
|
+
row: row,
|
|
2388
|
+
tableInstance: tableInstance
|
|
2389
|
+
}) : muiTableBodyRowProps;
|
|
3099
2390
|
|
|
3100
2391
|
var tableRowProps = _extends({}, getRowProps(), mTableBodyRowProps);
|
|
3101
2392
|
|
|
@@ -3108,7 +2399,11 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
3108
2399
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(material.TableRow, Object.assign({
|
|
3109
2400
|
hover: true,
|
|
3110
2401
|
onClick: function onClick(event) {
|
|
3111
|
-
return onRowClick == null ? void 0 : onRowClick(
|
|
2402
|
+
return onRowClick == null ? void 0 : onRowClick({
|
|
2403
|
+
event: event,
|
|
2404
|
+
row: row,
|
|
2405
|
+
tableInstance: tableInstance
|
|
2406
|
+
});
|
|
3112
2407
|
},
|
|
3113
2408
|
selected: getIsSelected()
|
|
3114
2409
|
}, tableRowProps), getVisibleCellsMap[pinned]().map(function (cell) {
|
|
@@ -3133,7 +2428,9 @@ var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
|
3133
2428
|
enablePagination = _tableInstance$option.enablePagination,
|
|
3134
2429
|
muiTableBodyProps = _tableInstance$option.muiTableBodyProps;
|
|
3135
2430
|
var rows = enablePagination ? getPaginationRowModel().rows : getPrePaginationRowModel().rows;
|
|
3136
|
-
var mTableBodyProps = muiTableBodyProps instanceof Function ? muiTableBodyProps(
|
|
2431
|
+
var mTableBodyProps = muiTableBodyProps instanceof Function ? muiTableBodyProps({
|
|
2432
|
+
tableInstance: tableInstance
|
|
2433
|
+
}) : muiTableBodyProps;
|
|
3137
2434
|
|
|
3138
2435
|
var tableBodyProps = _extends({}, getTableBodyProps(), mTableBodyProps);
|
|
3139
2436
|
|
|
@@ -3161,8 +2458,14 @@ var MRT_TableFooterCell = function MRT_TableFooterCell(_ref) {
|
|
|
3161
2458
|
isDensePadding = _getState.isDensePadding;
|
|
3162
2459
|
|
|
3163
2460
|
var column = footer.column;
|
|
3164
|
-
var mTableFooterCellProps = muiTableFooterCellProps instanceof Function ? muiTableFooterCellProps(
|
|
3165
|
-
|
|
2461
|
+
var mTableFooterCellProps = muiTableFooterCellProps instanceof Function ? muiTableFooterCellProps({
|
|
2462
|
+
column: column,
|
|
2463
|
+
tableInstance: tableInstance
|
|
2464
|
+
}) : muiTableFooterCellProps;
|
|
2465
|
+
var mcTableFooterCellProps = column.muiTableFooterCellProps instanceof Function ? column.muiTableFooterCellProps({
|
|
2466
|
+
column: column,
|
|
2467
|
+
tableInstance: tableInstance
|
|
2468
|
+
}) : column.muiTableFooterCellProps;
|
|
3166
2469
|
|
|
3167
2470
|
var tableCellProps = _extends({}, footer.getFooterProps(), mTableFooterCellProps, mcTableFooterCellProps);
|
|
3168
2471
|
|
|
@@ -3197,7 +2500,10 @@ var MRT_TableFooterRow = function MRT_TableFooterRow(_ref) {
|
|
|
3197
2500
|
if (!((_footerGroup$headers = footerGroup.headers) != null && _footerGroup$headers.some(function (h) {
|
|
3198
2501
|
return h.column.columnDef.footer || h.column.Footer;
|
|
3199
2502
|
}))) return null;
|
|
3200
|
-
var mTableFooterRowProps = muiTableFooterRowProps instanceof Function ? muiTableFooterRowProps(
|
|
2503
|
+
var mTableFooterRowProps = muiTableFooterRowProps instanceof Function ? muiTableFooterRowProps({
|
|
2504
|
+
footerGroup: footerGroup,
|
|
2505
|
+
tableInstance: tableInstance
|
|
2506
|
+
}) : muiTableFooterRowProps;
|
|
3201
2507
|
|
|
3202
2508
|
var tableRowProps = _extends({}, footerGroup.getFooterGroupProps(), mTableFooterRowProps);
|
|
3203
2509
|
|
|
@@ -3218,7 +2524,9 @@ var MRT_TableFooter = function MRT_TableFooter(_ref) {
|
|
|
3218
2524
|
getLeftFooterGroups = tableInstance.getLeftFooterGroups,
|
|
3219
2525
|
getRightFooterGroups = tableInstance.getRightFooterGroups,
|
|
3220
2526
|
muiTableFooterProps = tableInstance.options.muiTableFooterProps;
|
|
3221
|
-
var tableFooterProps = muiTableFooterProps instanceof Function ? muiTableFooterProps(
|
|
2527
|
+
var tableFooterProps = muiTableFooterProps instanceof Function ? muiTableFooterProps({
|
|
2528
|
+
tableInstance: tableInstance
|
|
2529
|
+
}) : muiTableFooterProps;
|
|
3222
2530
|
var getFooterGroupsMap = {
|
|
3223
2531
|
center: getCenterFooterGroups,
|
|
3224
2532
|
left: getLeftFooterGroups,
|
|
@@ -3243,7 +2551,9 @@ var MRT_Table = function MRT_Table(_ref) {
|
|
|
3243
2551
|
hideTableFooter = _tableInstance$option.hideTableFooter,
|
|
3244
2552
|
hideTableHead = _tableInstance$option.hideTableHead,
|
|
3245
2553
|
muiTableProps = _tableInstance$option.muiTableProps;
|
|
3246
|
-
var mTableProps = muiTableProps instanceof Function ? muiTableProps(
|
|
2554
|
+
var mTableProps = muiTableProps instanceof Function ? muiTableProps({
|
|
2555
|
+
tableInstance: tableInstance
|
|
2556
|
+
}) : muiTableProps;
|
|
3247
2557
|
|
|
3248
2558
|
var tableProps = _extends({}, getTableProps(), mTableProps);
|
|
3249
2559
|
|
|
@@ -3294,7 +2604,9 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3294
2604
|
totalToolbarHeight = _useState[0],
|
|
3295
2605
|
setTotalToolbarHeight = _useState[1];
|
|
3296
2606
|
|
|
3297
|
-
var tableContainerProps = muiTableContainerProps instanceof Function ? muiTableContainerProps(
|
|
2607
|
+
var tableContainerProps = muiTableContainerProps instanceof Function ? muiTableContainerProps({
|
|
2608
|
+
tableInstance: tableInstance
|
|
2609
|
+
}) : muiTableContainerProps;
|
|
3298
2610
|
React.useLayoutEffect(function () {
|
|
3299
2611
|
var _document$getElementB, _document, _document$getElementB2, _document$getElementB3, _document2, _document2$getElement;
|
|
3300
2612
|
|
|
@@ -3316,9 +2628,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3316
2628
|
display: 'grid',
|
|
3317
2629
|
gridTemplateColumns: getLeftTableWidth() + "fr " + getCenterTableWidth() + "fr " + getRightTableWidth() + "fr"
|
|
3318
2630
|
}
|
|
3319
|
-
}, React__default.createElement(material.Box
|
|
3320
|
-
, {
|
|
3321
|
-
// @ts-ignore
|
|
2631
|
+
}, React__default.createElement(material.Box, {
|
|
3322
2632
|
sx: function sx(theme) {
|
|
3323
2633
|
var _columnPinning$left;
|
|
3324
2634
|
|
|
@@ -3331,8 +2641,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3331
2641
|
}, React__default.createElement(MRT_Table, {
|
|
3332
2642
|
pinned: "left",
|
|
3333
2643
|
tableInstance: tableInstance
|
|
3334
|
-
})), React__default.createElement(material.Box
|
|
3335
|
-
, {
|
|
2644
|
+
})), React__default.createElement(material.Box, {
|
|
3336
2645
|
sx: function sx(theme) {
|
|
3337
2646
|
return commonBoxStyles({
|
|
3338
2647
|
theme: theme
|
|
@@ -3341,9 +2650,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3341
2650
|
}, React__default.createElement(MRT_Table, {
|
|
3342
2651
|
pinned: "center",
|
|
3343
2652
|
tableInstance: tableInstance
|
|
3344
|
-
})), React__default.createElement(material.Box
|
|
3345
|
-
, {
|
|
3346
|
-
// @ts-ignore
|
|
2653
|
+
})), React__default.createElement(material.Box, {
|
|
3347
2654
|
sx: function sx(theme) {
|
|
3348
2655
|
var _columnPinning$right;
|
|
3349
2656
|
|
|
@@ -3382,23 +2689,29 @@ var MRT_TablePaper = function MRT_TablePaper(_ref) {
|
|
|
3382
2689
|
}
|
|
3383
2690
|
}
|
|
3384
2691
|
}, [isFullScreen]);
|
|
3385
|
-
var tablePaperProps = muiTablePaperProps instanceof Function ? muiTablePaperProps(
|
|
2692
|
+
var tablePaperProps = muiTablePaperProps instanceof Function ? muiTablePaperProps({
|
|
2693
|
+
tableInstance: tableInstance
|
|
2694
|
+
}) : muiTablePaperProps;
|
|
3386
2695
|
return React__default.createElement(material.Paper, Object.assign({
|
|
3387
2696
|
elevation: 2
|
|
3388
2697
|
}, tablePaperProps, {
|
|
3389
2698
|
sx: _extends({
|
|
3390
|
-
|
|
2699
|
+
transition: 'all 0.2s ease-in-out'
|
|
2700
|
+
}, tablePaperProps == null ? void 0 : tablePaperProps.sx),
|
|
2701
|
+
style: {
|
|
3391
2702
|
height: isFullScreen ? '100%' : undefined,
|
|
3392
2703
|
left: isFullScreen ? '0' : undefined,
|
|
3393
|
-
|
|
2704
|
+
margin: isFullScreen ? '0' : undefined,
|
|
2705
|
+
maxHeight: isFullScreen ? '100%' : undefined,
|
|
2706
|
+
maxWidth: isFullScreen ? '100%' : undefined,
|
|
3394
2707
|
overflowY: !isFullScreen ? 'hidden' : undefined,
|
|
3395
2708
|
position: isFullScreen ? 'fixed' : undefined,
|
|
3396
2709
|
right: isFullScreen ? '0' : undefined,
|
|
3397
2710
|
top: isFullScreen ? '0' : undefined,
|
|
3398
|
-
transition: 'all 0.2s ease-in-out',
|
|
3399
2711
|
width: isFullScreen ? '100vw' : undefined,
|
|
3400
|
-
zIndex: isFullScreen ? 1200 : 1
|
|
3401
|
-
|
|
2712
|
+
zIndex: isFullScreen ? 1200 : 1,
|
|
2713
|
+
bottom: isFullScreen ? '0' : undefined
|
|
2714
|
+
}
|
|
3402
2715
|
}), !hideToolbarTop && React__default.createElement(MRT_ToolbarTop, {
|
|
3403
2716
|
tableInstance: tableInstance
|
|
3404
2717
|
}), React__default.createElement(MRT_TableContainer, {
|
|
@@ -3593,6 +2906,7 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
|
|
|
3593
2906
|
var tableInstance = reactTable.useTable(table, _extends({}, props, {
|
|
3594
2907
|
//@ts-ignore
|
|
3595
2908
|
filterTypes: defaultFilterFNs,
|
|
2909
|
+
debugAll: false,
|
|
3596
2910
|
globalFilterType: currentGlobalFilterType,
|
|
3597
2911
|
columnFilterRowsFn: reactTable.columnFilterRowsFn,
|
|
3598
2912
|
columns: columns,
|
|
@@ -3635,7 +2949,7 @@ var MRT_TableRoot = function MRT_TableRoot(props) {
|
|
|
3635
2949
|
});
|
|
3636
2950
|
};
|
|
3637
2951
|
|
|
3638
|
-
var _excluded$5 = ["enableColumnActions", "enableColumnFilters", "enableDensePaddingToggle", "enableExpandAll", "enableFullScreenToggle", "enableGlobalFilter", "enableHiding", "enablePagination", "enableSelectAll", "enableSorting", "enableStickyHeader", "
|
|
2952
|
+
var _excluded$5 = ["enableColumnActions", "enableColumnFilters", "enableDensePaddingToggle", "enableExpandAll", "enableFullScreenToggle", "enableGlobalFilter", "enableHiding", "enablePagination", "enableSelectAll", "enableSorting", "enableStickyHeader", "icons", "localization", "positionActionsColumn", "positionPagination", "positionToolbarActions", "positionToolbarAlertBanner"];
|
|
3639
2953
|
var MaterialReactTable = (function (_ref) {
|
|
3640
2954
|
var _ref$enableColumnActi = _ref.enableColumnActions,
|
|
3641
2955
|
enableColumnActions = _ref$enableColumnActi === void 0 ? true : _ref$enableColumnActi,
|