@onehat/ui 0.3.194 → 0.3.198

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.194",
3
+ "version": "0.3.198",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -814,7 +814,7 @@ function Form(props) {
814
814
  }
815
815
  }
816
816
 
817
- if (!_.isEmpty(formState.errors) || !formState.isValid) {
817
+ if (!formState.isValid) {
818
818
  isSaveDisabled = true;
819
819
  isSubmitDisabled = true;
820
820
  }
@@ -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,
@@ -865,14 +865,14 @@ function GridComponent(props) {
865
865
  Repository.ons(['changePage', 'changePageSize',], deselectAll);
866
866
  }
867
867
  Repository.ons(['changeData', 'change'], forceUpdate);
868
- Repository.on('changeFilters', onChangeFilters);
869
- Repository.on('changeSorters', onChangeSorters);
868
+ // Repository.on('changeFilters', onChangeFilters);
869
+ // Repository.on('changeSorters', onChangeSorters);
870
870
 
871
871
 
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
 
@@ -883,8 +883,8 @@ function GridComponent(props) {
883
883
  Repository.offs(['changePage', 'changePageSize',], deselectAll);
884
884
  }
885
885
  Repository.offs(['changeData', 'change'], forceUpdate);
886
- Repository.off('changeFilters', onChangeFilters);
887
- Repository.off('changeSorters', onChangeSorters);
886
+ // Repository.off('changeFilters', onChangeFilters);
887
+ // Repository.off('changeSorters', onChangeSorters);
888
888
  };
889
889
  }, [isInited]);
890
890
 
@@ -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) => {