material-react-table-narender 2.13.10 → 2.13.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +13 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/locales/te/index.d.ts +3 -0
- package/locales/te/index.esm.d.ts +3 -0
- package/locales/te/index.esm.js +95 -0
- package/locales/te/index.js +99 -0
- package/locales/te/package.json +6 -0
- package/package.json +1 -1
- package/src/utils/cell.utils.ts +15 -7
package/dist/index.js
CHANGED
@@ -528,6 +528,11 @@ const openEditingCell = ({ cell, table, }) => {
|
|
528
528
|
const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement, event, header, parentElement, table, }) => {
|
529
529
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
530
530
|
debugger;
|
531
|
+
if (event.altKey && event.key.toLowerCase() === 'n') {
|
532
|
+
event.preventDefault();
|
533
|
+
table.options.enableKeyboardShortcuts = !table.options.enableKeyboardShortcuts;
|
534
|
+
return;
|
535
|
+
}
|
531
536
|
if (!table.options.enableKeyboardShortcuts)
|
532
537
|
return;
|
533
538
|
if (event.isPropagationStopped())
|
@@ -591,24 +596,24 @@ const cellKeyboardShortcuts = ({ cell, cellElements, cellValue, containerElement
|
|
591
596
|
const button = currentCell.querySelector('button');
|
592
597
|
const autocomplete = currentCell.querySelector('.MuiAutocomplete-root input[type="text"]');
|
593
598
|
// Focus the appropriate element
|
594
|
-
if (
|
599
|
+
if (autocomplete) {
|
600
|
+
autocomplete.focus();
|
601
|
+
(_j = autocomplete.select) === null || _j === void 0 ? void 0 : _j.call(autocomplete);
|
602
|
+
}
|
603
|
+
else if (input) {
|
595
604
|
input.focus();
|
596
|
-
(
|
605
|
+
(_k = input.select) === null || _k === void 0 ? void 0 : _k.call(input);
|
597
606
|
}
|
598
607
|
else if (select) {
|
599
608
|
select.focus();
|
600
609
|
}
|
601
610
|
else if (checkbox) {
|
602
611
|
checkbox.focus();
|
603
|
-
checkbox.click();
|
612
|
+
// checkbox.click();
|
604
613
|
}
|
605
614
|
else if (button) {
|
606
615
|
button.focus();
|
607
|
-
button.click();
|
608
|
-
}
|
609
|
-
else if (autocomplete) {
|
610
|
-
autocomplete.focus();
|
611
|
-
(_k = autocomplete.select) === null || _k === void 0 ? void 0 : _k.call(autocomplete);
|
616
|
+
// button.click();
|
612
617
|
}
|
613
618
|
}
|
614
619
|
}
|