@teselagen/ui 0.5.19 → 0.5.20
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/DataTable/index.d.ts +5 -0
- package/DataTable/utils/getIdOrCodeOrIndex.d.ts +2 -1
- package/DataTable/utils/rowClick.d.ts +2 -10
- package/FormComponents/Uploader.d.ts +1 -29
- package/index.cjs.js +6639 -6640
- package/index.d.ts +2 -2
- package/index.es.js +6636 -6637
- package/package.json +3 -1
- package/src/DataTable/CellDragHandle.js +7 -6
- package/src/DataTable/PagingTool.js +1 -1
- package/src/DataTable/index.js +779 -389
- package/src/DataTable/utils/getIdOrCodeOrIndex.js +1 -1
- package/src/DataTable/utils/rowClick.js +4 -7
- package/src/DataTable/utils/selection.js +1 -1
- package/src/DataTable/validateTableWideErrors.js +1 -1
- package/src/FillWindow.js +3 -2
- package/src/FormComponents/Uploader.js +400 -400
- package/src/FormComponents/tryToMatchSchemas.js +6 -0
- package/src/UploadCsvWizard.js +371 -312
- package/src/index.js +3 -3
- package/src/showDialogOnDocBody.js +9 -5
- package/src/useDialog.js +4 -7
- package/src/utils/renderOnDoc.js +5 -8
- package/style.css +7 -7
- package/utils/renderOnDoc.d.ts +1 -1
- package/src/ExcelCell.js +0 -38
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isEmpty, forEach, range } from "lodash-es";
|
|
2
2
|
import { getSelectedRowsFromEntities } from "./selection";
|
|
3
|
-
import
|
|
3
|
+
import getIdOrCodeOrIndex from "./getIdOrCodeOrIndex";
|
|
4
4
|
import { getRecordsFromIdMap } from "./withSelectedEntities";
|
|
5
5
|
|
|
6
6
|
export default function rowClick(e, rowInfo, entities, props) {
|
|
@@ -124,10 +124,8 @@ export function changeSelectedEntities({ idMap, entities = [], change }) {
|
|
|
124
124
|
change("reduxFormSelectedEntityIdMap", newIdMap);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
export function finalizeSelection({
|
|
128
|
-
|
|
129
|
-
entities,
|
|
130
|
-
props: {
|
|
127
|
+
export function finalizeSelection({ idMap, entities, props }) {
|
|
128
|
+
const {
|
|
131
129
|
onDeselect,
|
|
132
130
|
onSingleRowSelect,
|
|
133
131
|
onMultiRowSelect,
|
|
@@ -135,8 +133,7 @@ export function finalizeSelection({
|
|
|
135
133
|
onRowSelect,
|
|
136
134
|
noSelect,
|
|
137
135
|
change
|
|
138
|
-
}
|
|
139
|
-
}) {
|
|
136
|
+
} = props;
|
|
140
137
|
if (noSelect) return;
|
|
141
138
|
if (
|
|
142
139
|
noDeselectAll &&
|
package/src/FillWindow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { isFunction } from "lodash-es";
|
|
3
|
+
import reactDom from "react-dom";
|
|
3
4
|
import rerenderOnWindowResize from "./rerenderOnWindowResize";
|
|
4
5
|
import "./FillWindow.css";
|
|
5
6
|
|
|
@@ -62,7 +63,7 @@ export default class FillWindow extends React.Component {
|
|
|
62
63
|
: this.props.children}
|
|
63
64
|
</div>
|
|
64
65
|
);
|
|
65
|
-
if (asPortal) return createPortal(inner, window.document.body);
|
|
66
|
+
if (asPortal) return reactDom.createPortal(inner, window.document.body);
|
|
66
67
|
return inner;
|
|
67
68
|
}
|
|
68
69
|
}
|