material-react-table 0.7.0-alpha.1 → 0.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MaterialReactTable.d.ts +195 -58
- package/dist/material-react-table.cjs.development.js +239 -931
- 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 +239 -931
- package/dist/material-react-table.esm.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
- package/src/MaterialReactTable.tsx +364 -126
- 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 +2 -2
- 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/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/toolbar/MRT_LinearProgressBar.tsx +1 -1
- package/src/toolbar/MRT_TablePagination.tsx +3 -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,11 @@ 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
|
+
},
|
|
2247
1475
|
component: "div",
|
|
2248
1476
|
count: getPrePaginationRowModel().rows.length,
|
|
2249
1477
|
onPageChange: function onPageChange(_, newPage) {
|
|
@@ -2252,11 +1480,7 @@ var MRT_TablePagination = function MRT_TablePagination(_ref) {
|
|
|
2252
1480
|
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
2253
1481
|
page: pageIndex,
|
|
2254
1482
|
rowsPerPage: pageSize,
|
|
2255
|
-
|
|
2256
|
-
sx: {
|
|
2257
|
-
m: '0 1rem 0 1ch'
|
|
2258
|
-
}
|
|
2259
|
-
},
|
|
1483
|
+
rowsPerPageOptions: [5, 10, 20, 25, 50, 100],
|
|
2260
1484
|
showFirstButton: showFirstLastPageButtons,
|
|
2261
1485
|
showLastButton: showFirstLastPageButtons
|
|
2262
1486
|
}, tablePaginationProps, {
|
|
@@ -2287,7 +1511,9 @@ var MRT_ToolbarAlertBanner = function MRT_ToolbarAlertBanner(_ref) {
|
|
|
2287
1511
|
grouping = _getState.grouping;
|
|
2288
1512
|
|
|
2289
1513
|
var isMobile = material.useMediaQuery('(max-width:720px)');
|
|
2290
|
-
var alertProps = muiTableToolbarAlertBannerProps instanceof Function ? muiTableToolbarAlertBannerProps(
|
|
1514
|
+
var alertProps = muiTableToolbarAlertBannerProps instanceof Function ? muiTableToolbarAlertBannerProps({
|
|
1515
|
+
tableInstance: tableInstance
|
|
1516
|
+
}) : muiTableToolbarAlertBannerProps;
|
|
2291
1517
|
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
1518
|
var groupedByMessage = grouping.length > 0 ? React__default.createElement("span", null, localization.groupedBy, ' ', grouping.map(function (columnId, index) {
|
|
2293
1519
|
var _tableInstance$getAll;
|
|
@@ -2327,7 +1553,7 @@ var MRT_ToolbarAlertBanner = function MRT_ToolbarAlertBanner(_ref) {
|
|
|
2327
1553
|
sx: {
|
|
2328
1554
|
p: '0.5rem 1rem'
|
|
2329
1555
|
}
|
|
2330
|
-
}, selectMessage, groupedByMessage)));
|
|
1556
|
+
}, selectMessage, React__default.createElement("br", null), groupedByMessage)));
|
|
2331
1557
|
};
|
|
2332
1558
|
|
|
2333
1559
|
var MRT_LinearProgressBar = function MRT_LinearProgressBar(_ref) {
|
|
@@ -2336,7 +1562,9 @@ var MRT_LinearProgressBar = function MRT_LinearProgressBar(_ref) {
|
|
|
2336
1562
|
muiLinearProgressProps = _tableInstance$option.muiLinearProgressProps,
|
|
2337
1563
|
isReloading = _tableInstance$option.isReloading,
|
|
2338
1564
|
isLoading = _tableInstance$option.isLoading;
|
|
2339
|
-
var linearProgressProps = muiLinearProgressProps instanceof Function ? muiLinearProgressProps(
|
|
1565
|
+
var linearProgressProps = muiLinearProgressProps instanceof Function ? muiLinearProgressProps({
|
|
1566
|
+
tableInstance: tableInstance
|
|
1567
|
+
}) : muiLinearProgressProps;
|
|
2340
1568
|
return React__default.createElement(material.Collapse, {
|
|
2341
1569
|
"in": isReloading || isLoading,
|
|
2342
1570
|
unmountOnExit: true
|
|
@@ -2376,7 +1604,9 @@ var MRT_ToolbarTop = function MRT_ToolbarTop(_ref2) {
|
|
|
2376
1604
|
var _getState = getState(),
|
|
2377
1605
|
isFullScreen = _getState.isFullScreen;
|
|
2378
1606
|
|
|
2379
|
-
var toolbarProps = muiTableToolbarTopProps instanceof Function ? muiTableToolbarTopProps(
|
|
1607
|
+
var toolbarProps = muiTableToolbarTopProps instanceof Function ? muiTableToolbarTopProps({
|
|
1608
|
+
tableInstance: tableInstance
|
|
1609
|
+
}) : muiTableToolbarTopProps;
|
|
2380
1610
|
return React__default.createElement(material.Toolbar, Object.assign({
|
|
2381
1611
|
id: "mrt-" + idPrefix + "-toolbar-top",
|
|
2382
1612
|
variant: "dense"
|
|
@@ -2397,7 +1627,9 @@ var MRT_ToolbarTop = function MRT_ToolbarTop(_ref2) {
|
|
|
2397
1627
|
display: 'flex',
|
|
2398
1628
|
justifyContent: 'space-between'
|
|
2399
1629
|
}
|
|
2400
|
-
}, (_renderToolbarCustomA = renderToolbarCustomActions == null ? void 0 : renderToolbarCustomActions(
|
|
1630
|
+
}, (_renderToolbarCustomA = renderToolbarCustomActions == null ? void 0 : renderToolbarCustomActions({
|
|
1631
|
+
tableInstance: tableInstance
|
|
1632
|
+
})) != null ? _renderToolbarCustomA : React__default.createElement("span", null), React__default.createElement(material.Box, {
|
|
2401
1633
|
sx: {
|
|
2402
1634
|
display: 'flex',
|
|
2403
1635
|
gap: '0.5rem',
|
|
@@ -2430,7 +1662,9 @@ var MRT_ToolbarBottom = function MRT_ToolbarBottom(_ref) {
|
|
|
2430
1662
|
var _getState = getState(),
|
|
2431
1663
|
isFullScreen = _getState.isFullScreen;
|
|
2432
1664
|
|
|
2433
|
-
var toolbarProps = muiTableToolbarBottomProps instanceof Function ? muiTableToolbarBottomProps(
|
|
1665
|
+
var toolbarProps = muiTableToolbarBottomProps instanceof Function ? muiTableToolbarBottomProps({
|
|
1666
|
+
tableInstance: tableInstance
|
|
1667
|
+
}) : muiTableToolbarBottomProps;
|
|
2434
1668
|
return React__default.createElement(material.Toolbar, Object.assign({
|
|
2435
1669
|
id: "mrt-" + idPrefix + "-toolbar-bottom",
|
|
2436
1670
|
variant: "dense"
|
|
@@ -2484,8 +1718,14 @@ var MRT_FilterTextField = function MRT_FilterTextField(_ref) {
|
|
|
2484
1718
|
anchorEl = _useState[0],
|
|
2485
1719
|
setAnchorEl = _useState[1];
|
|
2486
1720
|
|
|
2487
|
-
var mTableHeadCellFilterTextFieldProps = muiTableHeadCellFilterTextFieldProps instanceof Function ? muiTableHeadCellFilterTextFieldProps(
|
|
2488
|
-
|
|
1721
|
+
var mTableHeadCellFilterTextFieldProps = muiTableHeadCellFilterTextFieldProps instanceof Function ? muiTableHeadCellFilterTextFieldProps({
|
|
1722
|
+
column: column,
|
|
1723
|
+
tableInstance: tableInstance
|
|
1724
|
+
}) : muiTableHeadCellFilterTextFieldProps;
|
|
1725
|
+
var mcTableHeadCellFilterTextFieldProps = column.muiTableHeadCellFilterTextFieldProps instanceof Function ? column.muiTableHeadCellFilterTextFieldProps({
|
|
1726
|
+
column: column,
|
|
1727
|
+
tableInstance: tableInstance
|
|
1728
|
+
}) : column.muiTableHeadCellFilterTextFieldProps;
|
|
2489
1729
|
|
|
2490
1730
|
var textFieldProps = _extends({}, mTableHeadCellFilterTextFieldProps, mcTableHeadCellFilterTextFieldProps);
|
|
2491
1731
|
|
|
@@ -2662,8 +1902,14 @@ var MRT_ToggleColumnActionMenuButton = function MRT_ToggleColumnActionMenuButton
|
|
|
2662
1902
|
setAnchorEl(event.currentTarget);
|
|
2663
1903
|
};
|
|
2664
1904
|
|
|
2665
|
-
var mTableHeadCellColumnActionsButtonProps = muiTableHeadCellColumnActionsButtonProps instanceof Function ? muiTableHeadCellColumnActionsButtonProps(
|
|
2666
|
-
|
|
1905
|
+
var mTableHeadCellColumnActionsButtonProps = muiTableHeadCellColumnActionsButtonProps instanceof Function ? muiTableHeadCellColumnActionsButtonProps({
|
|
1906
|
+
column: column,
|
|
1907
|
+
tableInstance: tableInstance
|
|
1908
|
+
}) : muiTableHeadCellColumnActionsButtonProps;
|
|
1909
|
+
var mcTableHeadCellColumnActionsButtonProps = column.muiTableHeadCellColumnActionsButtonProps instanceof Function ? column.muiTableHeadCellColumnActionsButtonProps({
|
|
1910
|
+
column: column,
|
|
1911
|
+
tableInstance: tableInstance
|
|
1912
|
+
}) : column.muiTableHeadCellColumnActionsButtonProps;
|
|
2667
1913
|
|
|
2668
1914
|
var iconButtonProps = _extends({}, mTableHeadCellColumnActionsButtonProps, mcTableHeadCellColumnActionsButtonProps);
|
|
2669
1915
|
|
|
@@ -2698,7 +1944,7 @@ var MRT_ToggleColumnActionMenuButton = function MRT_ToggleColumnActionMenuButton
|
|
|
2698
1944
|
};
|
|
2699
1945
|
|
|
2700
1946
|
var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
2701
|
-
var _column$Header;
|
|
1947
|
+
var _getState2, _getState2$currentFil, _column$Header;
|
|
2702
1948
|
|
|
2703
1949
|
var header = _ref.header,
|
|
2704
1950
|
tableInstance = _ref.tableInstance;
|
|
@@ -2719,34 +1965,21 @@ var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
|
2719
1965
|
showFilters = _getState.showFilters;
|
|
2720
1966
|
|
|
2721
1967
|
var column = header.column;
|
|
2722
|
-
var mTableHeadCellProps = muiTableHeadCellProps instanceof Function ? muiTableHeadCellProps(
|
|
2723
|
-
|
|
1968
|
+
var mTableHeadCellProps = muiTableHeadCellProps instanceof Function ? muiTableHeadCellProps({
|
|
1969
|
+
column: column,
|
|
1970
|
+
tableInstance: tableInstance
|
|
1971
|
+
}) : muiTableHeadCellProps;
|
|
1972
|
+
var mcTableHeadCellProps = column.muiTableHeadCellProps instanceof Function ? column.muiTableHeadCellProps({
|
|
1973
|
+
column: column,
|
|
1974
|
+
tableInstance: tableInstance
|
|
1975
|
+
}) : column.muiTableHeadCellProps;
|
|
2724
1976
|
|
|
2725
1977
|
var tableCellProps = _extends({}, header.getHeaderProps(), mTableHeadCellProps, mcTableHeadCellProps);
|
|
2726
1978
|
|
|
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
|
-
|
|
1979
|
+
var sortTooltip = !!column.getIsSorted() ? column.getIsSorted() === 'desc' ? localization.clearSort : localization.sortByColumnDesc.replace('{column}', column.header) : localization.sortByColumnAsc.replace('{column}', column.header);
|
|
1980
|
+
var filterType = (_getState2 = getState()) == null ? void 0 : (_getState2$currentFil = _getState2.currentFilterTypes) == null ? void 0 : _getState2$currentFil[header.id];
|
|
1981
|
+
var filterTooltip = !!column.getColumnFilterValue() ? localization.filteringByColumn.replace('{column}', String(column.header)).replace('{filterType}', filterType instanceof Function ? '' : // @ts-ignore
|
|
1982
|
+
localization["filter" + (filterType.charAt(0).toUpperCase() + filterType.slice(1))]).replace('{filterValue}', column.getColumnFilterValue()).replace('" "', '') : localization.showHideFilters;
|
|
2750
1983
|
var headerElement = (_column$Header = column == null ? void 0 : column.Header == null ? void 0 : column.Header({
|
|
2751
1984
|
header: header,
|
|
2752
1985
|
tableInstance: tableInstance
|
|
@@ -2867,7 +2100,10 @@ var MRT_TableHeadRow = function MRT_TableHeadRow(_ref) {
|
|
|
2867
2100
|
var headerGroup = _ref.headerGroup,
|
|
2868
2101
|
tableInstance = _ref.tableInstance;
|
|
2869
2102
|
var muiTableHeadRowProps = tableInstance.options.muiTableHeadRowProps;
|
|
2870
|
-
var mTableHeadRowProps = muiTableHeadRowProps instanceof Function ? muiTableHeadRowProps(
|
|
2103
|
+
var mTableHeadRowProps = muiTableHeadRowProps instanceof Function ? muiTableHeadRowProps({
|
|
2104
|
+
headerGroup: headerGroup,
|
|
2105
|
+
tableInstance: tableInstance
|
|
2106
|
+
}) : muiTableHeadRowProps;
|
|
2871
2107
|
|
|
2872
2108
|
var tableRowProps = _extends({}, headerGroup == null ? void 0 : headerGroup.getHeaderGroupProps(), mTableHeadRowProps);
|
|
2873
2109
|
|
|
@@ -2888,7 +2124,9 @@ var MRT_TableHead = function MRT_TableHead(_ref) {
|
|
|
2888
2124
|
getLeftHeaderGroups = tableInstance.getLeftHeaderGroups,
|
|
2889
2125
|
getRightHeaderGroups = tableInstance.getRightHeaderGroups,
|
|
2890
2126
|
muiTableHeadProps = tableInstance.options.muiTableHeadProps;
|
|
2891
|
-
var tableHeadProps = muiTableHeadProps instanceof Function ? muiTableHeadProps(
|
|
2127
|
+
var tableHeadProps = muiTableHeadProps instanceof Function ? muiTableHeadProps({
|
|
2128
|
+
tableInstance: tableInstance
|
|
2129
|
+
}) : muiTableHeadProps;
|
|
2892
2130
|
var getHeaderGroupsMap = {
|
|
2893
2131
|
center: getCenterHeaderGroups,
|
|
2894
2132
|
left: getLeftHeaderGroups,
|
|
@@ -2908,7 +2146,9 @@ var MRT_EditCellTextField = function MRT_EditCellTextField(_ref) {
|
|
|
2908
2146
|
var cell = _ref.cell,
|
|
2909
2147
|
tableInstance = _ref.tableInstance;
|
|
2910
2148
|
var getState = tableInstance.getState,
|
|
2911
|
-
|
|
2149
|
+
_tableInstance$option = tableInstance.options,
|
|
2150
|
+
enableRowEditing = _tableInstance$option.enableRowEditing,
|
|
2151
|
+
muiTableBodyCellEditTextFieldProps = _tableInstance$option.muiTableBodyCellEditTextFieldProps;
|
|
2912
2152
|
var column = cell.column,
|
|
2913
2153
|
row = cell.row;
|
|
2914
2154
|
|
|
@@ -2919,16 +2159,30 @@ var MRT_EditCellTextField = function MRT_EditCellTextField(_ref) {
|
|
|
2919
2159
|
// });
|
|
2920
2160
|
}
|
|
2921
2161
|
|
|
2922
|
-
column.onCellEditChange == null ? void 0 : column.onCellEditChange(
|
|
2162
|
+
column.onCellEditChange == null ? void 0 : column.onCellEditChange({
|
|
2163
|
+
event: event,
|
|
2164
|
+
cell: cell,
|
|
2165
|
+
tableInstance: tableInstance
|
|
2166
|
+
});
|
|
2923
2167
|
};
|
|
2924
2168
|
|
|
2925
|
-
var mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function ? muiTableBodyCellEditTextFieldProps(
|
|
2926
|
-
|
|
2169
|
+
var mTableBodyCellEditTextFieldProps = muiTableBodyCellEditTextFieldProps instanceof Function ? muiTableBodyCellEditTextFieldProps({
|
|
2170
|
+
cell: cell,
|
|
2171
|
+
tableInstance: tableInstance
|
|
2172
|
+
}) : muiTableBodyCellEditTextFieldProps;
|
|
2173
|
+
var mcTableBodyCellEditTextFieldProps = column.muiTableBodyCellEditTextFieldProps instanceof Function ? column.muiTableBodyCellEditTextFieldProps({
|
|
2174
|
+
cell: cell,
|
|
2175
|
+
tableInstance: tableInstance
|
|
2176
|
+
}) : column.muiTableBodyCellEditTextFieldProps;
|
|
2927
2177
|
|
|
2928
|
-
var textFieldProps = _extends({}, mTableBodyCellEditTextFieldProps, mcTableBodyCellEditTextFieldProps);
|
|
2929
|
-
// return <>{Edit({ ...textFieldProps, cell })}</>;
|
|
2930
|
-
// }
|
|
2178
|
+
var textFieldProps = _extends({}, mTableBodyCellEditTextFieldProps, mcTableBodyCellEditTextFieldProps);
|
|
2931
2179
|
|
|
2180
|
+
if (enableRowEditing && column.enableEditing !== false && column.Edit) {
|
|
2181
|
+
return React__default.createElement(React__default.Fragment, null, column.Edit == null ? void 0 : column.Edit({
|
|
2182
|
+
cell: cell,
|
|
2183
|
+
tableInstance: tableInstance
|
|
2184
|
+
}));
|
|
2185
|
+
}
|
|
2932
2186
|
|
|
2933
2187
|
return React__default.createElement(material.TextField, Object.assign({
|
|
2934
2188
|
margin: "dense",
|
|
@@ -2962,8 +2216,14 @@ var MRT_CopyButton = function MRT_CopyButton(_ref) {
|
|
|
2962
2216
|
}, 4000);
|
|
2963
2217
|
};
|
|
2964
2218
|
|
|
2965
|
-
var mTableBodyCellCopyButtonProps = muiTableBodyCellCopyButtonProps instanceof Function ? muiTableBodyCellCopyButtonProps(
|
|
2966
|
-
|
|
2219
|
+
var mTableBodyCellCopyButtonProps = muiTableBodyCellCopyButtonProps instanceof Function ? muiTableBodyCellCopyButtonProps({
|
|
2220
|
+
cell: cell,
|
|
2221
|
+
tableInstance: tableInstance
|
|
2222
|
+
}) : muiTableBodyCellCopyButtonProps;
|
|
2223
|
+
var mcTableBodyCellCopyButtonProps = cell.column.muiTableBodyCellCopyButtonProps instanceof Function ? cell.column.muiTableBodyCellCopyButtonProps({
|
|
2224
|
+
cell: cell,
|
|
2225
|
+
tableInstance: tableInstance
|
|
2226
|
+
}) : cell.column.muiTableBodyCellCopyButtonProps;
|
|
2967
2227
|
|
|
2968
2228
|
var buttonProps = _extends({}, mTableBodyCellCopyButtonProps, mcTableBodyCellCopyButtonProps);
|
|
2969
2229
|
|
|
@@ -3017,8 +2277,14 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
3017
2277
|
|
|
3018
2278
|
var column = cell.column,
|
|
3019
2279
|
row = cell.row;
|
|
3020
|
-
var mTableCellBodyProps = muiTableBodyCellProps instanceof Function ? muiTableBodyCellProps(
|
|
3021
|
-
|
|
2280
|
+
var mTableCellBodyProps = muiTableBodyCellProps instanceof Function ? muiTableBodyCellProps({
|
|
2281
|
+
cell: cell,
|
|
2282
|
+
tableInstance: tableInstance
|
|
2283
|
+
}) : muiTableBodyCellProps;
|
|
2284
|
+
var mcTableCellBodyProps = column.muiTableBodyCellProps instanceof Function ? column.muiTableBodyCellProps({
|
|
2285
|
+
cell: cell,
|
|
2286
|
+
tableInstance: tableInstance
|
|
2287
|
+
}) : column.muiTableBodyCellProps;
|
|
3022
2288
|
|
|
3023
2289
|
var tableCellProps = _extends({}, cell.getCellProps(), mTableCellBodyProps, mcTableCellBodyProps);
|
|
3024
2290
|
|
|
@@ -3027,7 +2293,11 @@ var MRT_TableBodyCell = function MRT_TableBodyCell(_ref) {
|
|
|
3027
2293
|
}, [column.columnDefType, column.getWidth()]);
|
|
3028
2294
|
return React__default.createElement(material.TableCell, Object.assign({
|
|
3029
2295
|
onClick: function onClick(event) {
|
|
3030
|
-
return onCellClick == null ? void 0 : onCellClick(
|
|
2296
|
+
return onCellClick == null ? void 0 : onCellClick({
|
|
2297
|
+
event: event,
|
|
2298
|
+
cell: cell,
|
|
2299
|
+
tableInstance: tableInstance
|
|
2300
|
+
});
|
|
3031
2301
|
}
|
|
3032
2302
|
}, tableCellProps, {
|
|
3033
2303
|
sx: _extends({
|
|
@@ -3061,12 +2331,22 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
3061
2331
|
muiTableDetailPanelProps = _tableInstance$option.muiTableDetailPanelProps,
|
|
3062
2332
|
onDetailPanelClick = _tableInstance$option.onDetailPanelClick,
|
|
3063
2333
|
renderDetailPanel = _tableInstance$option.renderDetailPanel;
|
|
3064
|
-
var tableRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps(
|
|
3065
|
-
|
|
2334
|
+
var tableRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps({
|
|
2335
|
+
row: row,
|
|
2336
|
+
tableInstance: tableInstance
|
|
2337
|
+
}) : muiTableBodyRowProps;
|
|
2338
|
+
var tableCellProps = muiTableDetailPanelProps instanceof Function ? muiTableDetailPanelProps({
|
|
2339
|
+
row: row,
|
|
2340
|
+
tableInstance: tableInstance
|
|
2341
|
+
}) : muiTableDetailPanelProps;
|
|
3066
2342
|
return React__default.createElement(material.TableRow, Object.assign({}, tableRowProps), React__default.createElement(material.TableCell, Object.assign({
|
|
3067
2343
|
colSpan: getVisibleFlatColumns().length + 10,
|
|
3068
2344
|
onClick: function onClick(event) {
|
|
3069
|
-
return onDetailPanelClick == null ? void 0 : onDetailPanelClick(
|
|
2345
|
+
return onDetailPanelClick == null ? void 0 : onDetailPanelClick({
|
|
2346
|
+
event: event,
|
|
2347
|
+
row: row,
|
|
2348
|
+
tableInstance: tableInstance
|
|
2349
|
+
});
|
|
3070
2350
|
}
|
|
3071
2351
|
}, tableCellProps, {
|
|
3072
2352
|
sx: _extends({
|
|
@@ -3077,7 +2357,10 @@ var MRT_TableDetailPanel = function MRT_TableDetailPanel(_ref) {
|
|
|
3077
2357
|
}, tableCellProps == null ? void 0 : tableCellProps.sx)
|
|
3078
2358
|
}), React__default.createElement(material.Collapse, {
|
|
3079
2359
|
"in": row.getIsExpanded()
|
|
3080
|
-
}, renderDetailPanel == null ? void 0 : renderDetailPanel(
|
|
2360
|
+
}, renderDetailPanel == null ? void 0 : renderDetailPanel({
|
|
2361
|
+
row: row,
|
|
2362
|
+
tableInstance: tableInstance
|
|
2363
|
+
}))));
|
|
3081
2364
|
};
|
|
3082
2365
|
|
|
3083
2366
|
var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
@@ -3095,7 +2378,10 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
3095
2378
|
getRightVisibleCells = row.getRightVisibleCells,
|
|
3096
2379
|
getRowProps = row.getRowProps,
|
|
3097
2380
|
getVisibleCells = row.getVisibleCells;
|
|
3098
|
-
var mTableBodyRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps(
|
|
2381
|
+
var mTableBodyRowProps = muiTableBodyRowProps instanceof Function ? muiTableBodyRowProps({
|
|
2382
|
+
row: row,
|
|
2383
|
+
tableInstance: tableInstance
|
|
2384
|
+
}) : muiTableBodyRowProps;
|
|
3099
2385
|
|
|
3100
2386
|
var tableRowProps = _extends({}, getRowProps(), mTableBodyRowProps);
|
|
3101
2387
|
|
|
@@ -3108,7 +2394,11 @@ var MRT_TableBodyRow = function MRT_TableBodyRow(_ref) {
|
|
|
3108
2394
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(material.TableRow, Object.assign({
|
|
3109
2395
|
hover: true,
|
|
3110
2396
|
onClick: function onClick(event) {
|
|
3111
|
-
return onRowClick == null ? void 0 : onRowClick(
|
|
2397
|
+
return onRowClick == null ? void 0 : onRowClick({
|
|
2398
|
+
event: event,
|
|
2399
|
+
row: row,
|
|
2400
|
+
tableInstance: tableInstance
|
|
2401
|
+
});
|
|
3112
2402
|
},
|
|
3113
2403
|
selected: getIsSelected()
|
|
3114
2404
|
}, tableRowProps), getVisibleCellsMap[pinned]().map(function (cell) {
|
|
@@ -3133,7 +2423,9 @@ var MRT_TableBody = function MRT_TableBody(_ref) {
|
|
|
3133
2423
|
enablePagination = _tableInstance$option.enablePagination,
|
|
3134
2424
|
muiTableBodyProps = _tableInstance$option.muiTableBodyProps;
|
|
3135
2425
|
var rows = enablePagination ? getPaginationRowModel().rows : getPrePaginationRowModel().rows;
|
|
3136
|
-
var mTableBodyProps = muiTableBodyProps instanceof Function ? muiTableBodyProps(
|
|
2426
|
+
var mTableBodyProps = muiTableBodyProps instanceof Function ? muiTableBodyProps({
|
|
2427
|
+
tableInstance: tableInstance
|
|
2428
|
+
}) : muiTableBodyProps;
|
|
3137
2429
|
|
|
3138
2430
|
var tableBodyProps = _extends({}, getTableBodyProps(), mTableBodyProps);
|
|
3139
2431
|
|
|
@@ -3161,8 +2453,14 @@ var MRT_TableFooterCell = function MRT_TableFooterCell(_ref) {
|
|
|
3161
2453
|
isDensePadding = _getState.isDensePadding;
|
|
3162
2454
|
|
|
3163
2455
|
var column = footer.column;
|
|
3164
|
-
var mTableFooterCellProps = muiTableFooterCellProps instanceof Function ? muiTableFooterCellProps(
|
|
3165
|
-
|
|
2456
|
+
var mTableFooterCellProps = muiTableFooterCellProps instanceof Function ? muiTableFooterCellProps({
|
|
2457
|
+
column: column,
|
|
2458
|
+
tableInstance: tableInstance
|
|
2459
|
+
}) : muiTableFooterCellProps;
|
|
2460
|
+
var mcTableFooterCellProps = column.muiTableFooterCellProps instanceof Function ? column.muiTableFooterCellProps({
|
|
2461
|
+
column: column,
|
|
2462
|
+
tableInstance: tableInstance
|
|
2463
|
+
}) : column.muiTableFooterCellProps;
|
|
3166
2464
|
|
|
3167
2465
|
var tableCellProps = _extends({}, footer.getFooterProps(), mTableFooterCellProps, mcTableFooterCellProps);
|
|
3168
2466
|
|
|
@@ -3197,7 +2495,10 @@ var MRT_TableFooterRow = function MRT_TableFooterRow(_ref) {
|
|
|
3197
2495
|
if (!((_footerGroup$headers = footerGroup.headers) != null && _footerGroup$headers.some(function (h) {
|
|
3198
2496
|
return h.column.columnDef.footer || h.column.Footer;
|
|
3199
2497
|
}))) return null;
|
|
3200
|
-
var mTableFooterRowProps = muiTableFooterRowProps instanceof Function ? muiTableFooterRowProps(
|
|
2498
|
+
var mTableFooterRowProps = muiTableFooterRowProps instanceof Function ? muiTableFooterRowProps({
|
|
2499
|
+
footerGroup: footerGroup,
|
|
2500
|
+
tableInstance: tableInstance
|
|
2501
|
+
}) : muiTableFooterRowProps;
|
|
3201
2502
|
|
|
3202
2503
|
var tableRowProps = _extends({}, footerGroup.getFooterGroupProps(), mTableFooterRowProps);
|
|
3203
2504
|
|
|
@@ -3218,7 +2519,9 @@ var MRT_TableFooter = function MRT_TableFooter(_ref) {
|
|
|
3218
2519
|
getLeftFooterGroups = tableInstance.getLeftFooterGroups,
|
|
3219
2520
|
getRightFooterGroups = tableInstance.getRightFooterGroups,
|
|
3220
2521
|
muiTableFooterProps = tableInstance.options.muiTableFooterProps;
|
|
3221
|
-
var tableFooterProps = muiTableFooterProps instanceof Function ? muiTableFooterProps(
|
|
2522
|
+
var tableFooterProps = muiTableFooterProps instanceof Function ? muiTableFooterProps({
|
|
2523
|
+
tableInstance: tableInstance
|
|
2524
|
+
}) : muiTableFooterProps;
|
|
3222
2525
|
var getFooterGroupsMap = {
|
|
3223
2526
|
center: getCenterFooterGroups,
|
|
3224
2527
|
left: getLeftFooterGroups,
|
|
@@ -3243,7 +2546,9 @@ var MRT_Table = function MRT_Table(_ref) {
|
|
|
3243
2546
|
hideTableFooter = _tableInstance$option.hideTableFooter,
|
|
3244
2547
|
hideTableHead = _tableInstance$option.hideTableHead,
|
|
3245
2548
|
muiTableProps = _tableInstance$option.muiTableProps;
|
|
3246
|
-
var mTableProps = muiTableProps instanceof Function ? muiTableProps(
|
|
2549
|
+
var mTableProps = muiTableProps instanceof Function ? muiTableProps({
|
|
2550
|
+
tableInstance: tableInstance
|
|
2551
|
+
}) : muiTableProps;
|
|
3247
2552
|
|
|
3248
2553
|
var tableProps = _extends({}, getTableProps(), mTableProps);
|
|
3249
2554
|
|
|
@@ -3294,7 +2599,9 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3294
2599
|
totalToolbarHeight = _useState[0],
|
|
3295
2600
|
setTotalToolbarHeight = _useState[1];
|
|
3296
2601
|
|
|
3297
|
-
var tableContainerProps = muiTableContainerProps instanceof Function ? muiTableContainerProps(
|
|
2602
|
+
var tableContainerProps = muiTableContainerProps instanceof Function ? muiTableContainerProps({
|
|
2603
|
+
tableInstance: tableInstance
|
|
2604
|
+
}) : muiTableContainerProps;
|
|
3298
2605
|
React.useLayoutEffect(function () {
|
|
3299
2606
|
var _document$getElementB, _document, _document$getElementB2, _document$getElementB3, _document2, _document2$getElement;
|
|
3300
2607
|
|
|
@@ -3316,9 +2623,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3316
2623
|
display: 'grid',
|
|
3317
2624
|
gridTemplateColumns: getLeftTableWidth() + "fr " + getCenterTableWidth() + "fr " + getRightTableWidth() + "fr"
|
|
3318
2625
|
}
|
|
3319
|
-
}, React__default.createElement(material.Box
|
|
3320
|
-
, {
|
|
3321
|
-
// @ts-ignore
|
|
2626
|
+
}, React__default.createElement(material.Box, {
|
|
3322
2627
|
sx: function sx(theme) {
|
|
3323
2628
|
var _columnPinning$left;
|
|
3324
2629
|
|
|
@@ -3331,8 +2636,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3331
2636
|
}, React__default.createElement(MRT_Table, {
|
|
3332
2637
|
pinned: "left",
|
|
3333
2638
|
tableInstance: tableInstance
|
|
3334
|
-
})), React__default.createElement(material.Box
|
|
3335
|
-
, {
|
|
2639
|
+
})), React__default.createElement(material.Box, {
|
|
3336
2640
|
sx: function sx(theme) {
|
|
3337
2641
|
return commonBoxStyles({
|
|
3338
2642
|
theme: theme
|
|
@@ -3341,9 +2645,7 @@ var MRT_TableContainer = function MRT_TableContainer(_ref2) {
|
|
|
3341
2645
|
}, React__default.createElement(MRT_Table, {
|
|
3342
2646
|
pinned: "center",
|
|
3343
2647
|
tableInstance: tableInstance
|
|
3344
|
-
})), React__default.createElement(material.Box
|
|
3345
|
-
, {
|
|
3346
|
-
// @ts-ignore
|
|
2648
|
+
})), React__default.createElement(material.Box, {
|
|
3347
2649
|
sx: function sx(theme) {
|
|
3348
2650
|
var _columnPinning$right;
|
|
3349
2651
|
|
|
@@ -3382,23 +2684,29 @@ var MRT_TablePaper = function MRT_TablePaper(_ref) {
|
|
|
3382
2684
|
}
|
|
3383
2685
|
}
|
|
3384
2686
|
}, [isFullScreen]);
|
|
3385
|
-
var tablePaperProps = muiTablePaperProps instanceof Function ? muiTablePaperProps(
|
|
2687
|
+
var tablePaperProps = muiTablePaperProps instanceof Function ? muiTablePaperProps({
|
|
2688
|
+
tableInstance: tableInstance
|
|
2689
|
+
}) : muiTablePaperProps;
|
|
3386
2690
|
return React__default.createElement(material.Paper, Object.assign({
|
|
3387
2691
|
elevation: 2
|
|
3388
2692
|
}, tablePaperProps, {
|
|
3389
2693
|
sx: _extends({
|
|
3390
|
-
|
|
2694
|
+
transition: 'all 0.2s ease-in-out'
|
|
2695
|
+
}, tablePaperProps == null ? void 0 : tablePaperProps.sx),
|
|
2696
|
+
style: {
|
|
3391
2697
|
height: isFullScreen ? '100%' : undefined,
|
|
3392
2698
|
left: isFullScreen ? '0' : undefined,
|
|
3393
|
-
|
|
2699
|
+
margin: isFullScreen ? '0' : undefined,
|
|
2700
|
+
maxHeight: isFullScreen ? '100%' : undefined,
|
|
2701
|
+
maxWidth: isFullScreen ? '100%' : undefined,
|
|
3394
2702
|
overflowY: !isFullScreen ? 'hidden' : undefined,
|
|
3395
2703
|
position: isFullScreen ? 'fixed' : undefined,
|
|
3396
2704
|
right: isFullScreen ? '0' : undefined,
|
|
3397
2705
|
top: isFullScreen ? '0' : undefined,
|
|
3398
|
-
transition: 'all 0.2s ease-in-out',
|
|
3399
2706
|
width: isFullScreen ? '100vw' : undefined,
|
|
3400
|
-
zIndex: isFullScreen ? 1200 : 1
|
|
3401
|
-
|
|
2707
|
+
zIndex: isFullScreen ? 1200 : 1,
|
|
2708
|
+
bottom: isFullScreen ? '0' : undefined
|
|
2709
|
+
}
|
|
3402
2710
|
}), !hideToolbarTop && React__default.createElement(MRT_ToolbarTop, {
|
|
3403
2711
|
tableInstance: tableInstance
|
|
3404
2712
|
}), React__default.createElement(MRT_TableContainer, {
|