@onehat/ui 0.3.257 → 0.3.259
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
|
@@ -819,41 +819,18 @@ function GridComponent(props) {
|
|
|
819
819
|
return;
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
header,
|
|
825
|
-
fieldName, // from @onehat/data model
|
|
826
|
-
type, // specify which column type to use (custom or built-in)
|
|
827
|
-
isEditable = false,
|
|
828
|
-
editor,
|
|
829
|
-
format,
|
|
830
|
-
renderer, // React component will render the output
|
|
831
|
-
reorderable = true,
|
|
832
|
-
resizable = true,
|
|
833
|
-
sortable = true,
|
|
834
|
-
w,
|
|
835
|
-
flex,
|
|
836
|
-
isHidden = false,
|
|
837
|
-
} = columnConfig,
|
|
838
|
-
|
|
839
|
-
config = {
|
|
822
|
+
const
|
|
823
|
+
defaults = {
|
|
840
824
|
columnId: uuid(),
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
format,
|
|
847
|
-
renderer,
|
|
848
|
-
reorderable,
|
|
849
|
-
resizable,
|
|
850
|
-
sortable,
|
|
851
|
-
w,
|
|
852
|
-
flex,
|
|
853
|
-
isHidden,
|
|
825
|
+
isEditable: false,
|
|
826
|
+
reorderable: true,
|
|
827
|
+
resizable: true,
|
|
828
|
+
sortable: true,
|
|
829
|
+
isHidden: false,
|
|
854
830
|
isOver: false,
|
|
855
|
-
}
|
|
856
|
-
|
|
831
|
+
},
|
|
832
|
+
config = _.assign({}, defaults, columnConfig);
|
|
833
|
+
|
|
857
834
|
if (!(config.w || config.width) && !config.flex) {
|
|
858
835
|
// Neither is set
|
|
859
836
|
config.w = 100; // default
|
|
@@ -24,7 +24,7 @@ import IconButton from '../../Components/Buttons/IconButton.js';
|
|
|
24
24
|
import Xmark from '../../Components/Icons/Xmark.js'
|
|
25
25
|
import withAlert from '../../Components/Hoc/withAlert.js';
|
|
26
26
|
import withData from '../../Components/Hoc/withData.js';
|
|
27
|
-
import
|
|
27
|
+
import downloadInBackground from '../../Functions/downloadInBackground.js';
|
|
28
28
|
import _ from 'lodash';
|
|
29
29
|
|
|
30
30
|
const
|
|
@@ -51,7 +51,7 @@ function FileCardCustom(props) {
|
|
|
51
51
|
borderWidth={1}
|
|
52
52
|
borderColor="primary.700"
|
|
53
53
|
onPress={() => {
|
|
54
|
-
|
|
54
|
+
downloadInBackground(downloadUrl);
|
|
55
55
|
}}
|
|
56
56
|
>
|
|
57
57
|
{isDownloading && <Spinner mr={2} />}
|