@onehat/ui 0.3.195 → 0.3.199

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": "@onehat/ui",
3
- "version": "0.3.195",
3
+ "version": "0.3.199",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -96,7 +96,7 @@ function GridComponent(props) {
96
96
  flatListProps = {},
97
97
  onRowPress,
98
98
  // enableEditors = false,
99
- loadOnRender = true,
99
+ forceLoadOnRender = false,
100
100
  pullToRefresh = true,
101
101
  hideNavColumn = true,
102
102
  noneFoundText,
@@ -872,7 +872,7 @@ function GridComponent(props) {
872
872
  applySelectorSelected();
873
873
  Repository.resumeEvents();
874
874
 
875
- if (Repository.isRemote && !Repository.isLoaded) {
875
+ if ((Repository.isRemote && !Repository.isLoaded) || forceLoadOnRender) {
876
876
  Repository.load();
877
877
  }
878
878
 
@@ -121,6 +121,8 @@ function Viewer(props) {
121
121
  propsToPass.mb = 1;
122
122
  }
123
123
  propsToPass.pl = 3;
124
+ } else if (type === 'FieldSet' && item.showToggleAllCheckbox) {
125
+ propsToPass.showToggleAllCheckbox = false; // don't allow it in view mode
124
126
  }
125
127
  const defaults = item.defaults;
126
128
  children = _.map(items, (item, ix) => {