@teselagen/ui 0.3.38 → 0.3.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.38",
3
+ "version": "0.3.40",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -820,7 +820,7 @@ class DataTable extends React.Component {
820
820
  //takes in a row element
821
821
  const text = this.getRowCopyText(rowEl);
822
822
  if (!text) return window.toastr.warning("No text to copy");
823
- this.handleCopyHelper(text, "Row Copied");
823
+ this.handleCopyHelper(text, undefined, "Row Copied");
824
824
  };
825
825
  handleCopyColumn = (e, cellWrapper, selectedRecords) => {
826
826
  const cellType = cellWrapper.getAttribute("data-test");
@@ -841,7 +841,7 @@ class DataTable extends React.Component {
841
841
  .join("\n");
842
842
  if (!textToCopy) return window.toastr.warning("No text to copy");
843
843
 
844
- this.handleCopyHelper(textToCopy, "Column copied");
844
+ this.handleCopyHelper(textToCopy, undefined, "Column copied");
845
845
  };
846
846
  updateEntitiesHelper = (ents, fn) => {
847
847
  const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } =
@@ -906,7 +906,7 @@ class DataTable extends React.Component {
906
906
  .join("\n");
907
907
  if (!textToCopy) return window.toastr.warning("No text to copy");
908
908
 
909
- this.handleCopyHelper(textToCopy, "Table copied");
909
+ this.handleCopyHelper(textToCopy, undefined, "Table copied");
910
910
  } catch (error) {
911
911
  console.error(`error:`, error);
912
912
  window.toastr.error("Error copying rows.");
@@ -967,7 +967,7 @@ class DataTable extends React.Component {
967
967
  });
968
968
  if (!fullCellText) return window.toastr.warning("No text to copy");
969
969
 
970
- this.handleCopyHelper(fullCellText, "Selected cells copied");
970
+ this.handleCopyHelper(fullCellText, undefined, "Selected cells copied");
971
971
  };
972
972
 
973
973
  handleCopySelectedRows = (selectedRecords, e) => {
@@ -996,7 +996,7 @@ class DataTable extends React.Component {
996
996
  .join("\n");
997
997
  if (!textToCopy) return window.toastr.warning("No text to copy");
998
998
 
999
- this.handleCopyHelper(textToCopy, "Selected rows copied");
999
+ this.handleCopyHelper(textToCopy, undefined, "Selected rows copied");
1000
1000
  } catch (error) {
1001
1001
  console.error(`error:`, error);
1002
1002
  window.toastr.error("Error copying rows.");
@@ -2494,7 +2494,7 @@ class DataTable extends React.Component {
2494
2494
  <Checkbox
2495
2495
  disabled={isEntityDisabled(row.original)}
2496
2496
  className="tg-cell-edit-boolean-checkbox"
2497
- {...dataTest}
2497
+ // {...dataTest}
2498
2498
  checked={oldVal === "True"}
2499
2499
  onChange={e => {
2500
2500
  const checked = e.target.checked;