@onehat/ui 0.4.74 → 0.4.75

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.4.74",
3
+ "version": "0.4.75",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -33,6 +33,7 @@ function InlineEditor(props) {
33
33
  onEditorSave,
34
34
  onEditorClose,
35
35
  editorStateRef,
36
+ showSelectHandle = true,
36
37
 
37
38
  // withComponent
38
39
  self,
@@ -152,6 +153,7 @@ function InlineEditor(props) {
152
153
  onClose={onEditorClose}
153
154
  parent={self}
154
155
  reference="form"
156
+ showSelectHandle={showSelectHandle}
155
157
  className={clsx(
156
158
  'InlineEditor-Form',
157
159
  'flex-1',
@@ -88,6 +88,7 @@ export const ComboComponent = forwardRef((props, ref) => {
88
88
  isInTag = false,
89
89
  minimizeForRow = false,
90
90
  reloadOnTrigger = false,
91
+ searchHasInitialPercent = false,
91
92
  menuHeight,
92
93
  placeholder,
93
94
  onRowPress,
@@ -483,7 +484,7 @@ export const ComboComponent = forwardRef((props, ref) => {
483
484
  filterName = getFilterName(isId);
484
485
  if (Repository.isRemote) {
485
486
  // remote
486
- const filterValue = _.isEmpty(value) ? null : (isId ? value.match(idRegex)[1] : value + '%');
487
+ const filterValue = _.isEmpty(value) ? null : (isId ? value.match(idRegex)[1] : (searchHasInitialPercent ? '%' : '') + value + '%');
487
488
  await Repository.filter(filterName, filterValue);
488
489
  if (!Repository.isAutoLoad) {
489
490
  await Repository.reload();
@@ -112,6 +112,7 @@ function Form(props) {
112
112
  additionalFooterButtons,
113
113
  disableFooter = false,
114
114
  hideResetButton = false,
115
+ showSelectHandle = false,
115
116
 
116
117
  // sizing of outer container
117
118
  maxHeight,
@@ -414,6 +415,9 @@ function Form(props) {
414
415
  }
415
416
 
416
417
  let elementClassName = 'Form-Element';
418
+ if (showSelectHandle && ix === 0) {
419
+ elementClassName += ' ml-[40px]';
420
+ }
417
421
  if (type.match(/Tag/)) {
418
422
  elementClassName += ' overflow-auto';
419
423
  }
@@ -133,7 +133,7 @@ function Report(props) {
133
133
  reportType: REPORT_TYPES__EXCEL,
134
134
  showReportHeaders,
135
135
  }),
136
- disabledOnInvalid: true,
136
+ disableOnInvalid: true,
137
137
  });
138
138
  }
139
139
  if (!disablePdf) {