@onehat/ui 0.4.73 → 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.
|
|
3
|
+
"version": "0.4.75",
|
|
4
4
|
"description": "Base UI for OneHat apps",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"decimal.js": "^10.5.0",
|
|
67
67
|
"inflector-js": "^1.0.1",
|
|
68
68
|
"js-cookie": "^3.0.5",
|
|
69
|
-
"native-base": "^3.4.28",
|
|
70
69
|
"react-hook-form": "^7.55.0",
|
|
70
|
+
"react-native-progress": "^5.0.1",
|
|
71
71
|
"react-redux": "^9.2.0",
|
|
72
72
|
"tailwindcss": "^3.4.17",
|
|
73
73
|
"yup": "^1.6.1"
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"react-native": "*",
|
|
88
88
|
"react-native-draggable": "^3.3.0",
|
|
89
89
|
"react-native-svg": "*",
|
|
90
|
-
"react-native-progress": "^5.0.1",
|
|
91
90
|
"react18-json-view": "^0.2.8",
|
|
92
91
|
"use-file-picker": "^2.1.1"
|
|
93
92
|
},
|
|
@@ -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
|
}
|