@onehat/ui 0.4.22 → 0.4.23
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
|
@@ -53,7 +53,7 @@ function GridRow(props) {
|
|
|
53
53
|
hash = item?.hash || item;
|
|
54
54
|
return useMemo(() => {
|
|
55
55
|
|
|
56
|
-
let bg = props.bg || styles.GRID_ROW_BG,
|
|
56
|
+
let bg = rowProps.bg || props.bg || styles.GRID_ROW_BG,
|
|
57
57
|
mixWith;
|
|
58
58
|
if (isSelected) {
|
|
59
59
|
if (showHovers && isHovered) {
|
|
@@ -137,7 +137,7 @@ function GridRow(props) {
|
|
|
137
137
|
extraProps._web.style = {};
|
|
138
138
|
}
|
|
139
139
|
extraProps._web.style = {
|
|
140
|
-
userSelect: 'none',
|
|
140
|
+
// userSelect: 'none',
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
return <HStackNative
|
|
@@ -171,7 +171,7 @@ function GridRow(props) {
|
|
|
171
171
|
key={key}
|
|
172
172
|
overflow="hidden"
|
|
173
173
|
style={{
|
|
174
|
-
userSelect: 'none',
|
|
174
|
+
// userSelect: 'none',
|
|
175
175
|
...colStyle,
|
|
176
176
|
}}
|
|
177
177
|
minimizeForRow={true}
|
|
@@ -217,7 +217,7 @@ function GridRow(props) {
|
|
|
217
217
|
{...testProps('cell-' + config.fieldName)}
|
|
218
218
|
key={key}
|
|
219
219
|
style={{
|
|
220
|
-
userSelect: 'none',
|
|
220
|
+
// userSelect: 'none',
|
|
221
221
|
...colStyle,
|
|
222
222
|
}}
|
|
223
223
|
numberOfLines={1}
|
|
@@ -23,6 +23,7 @@ function ManagerScreen(props) {
|
|
|
23
23
|
title,
|
|
24
24
|
sideModeComponent,
|
|
25
25
|
fullModeComponent,
|
|
26
|
+
onChangeMode,
|
|
26
27
|
|
|
27
28
|
// withComponent
|
|
28
29
|
self,
|
|
@@ -45,6 +46,9 @@ function ManagerScreen(props) {
|
|
|
45
46
|
if (id) {
|
|
46
47
|
setSaved(id + '-mode', newMode);
|
|
47
48
|
}
|
|
49
|
+
if (onChangeMode) {
|
|
50
|
+
onChangeMode(newMode);
|
|
51
|
+
}
|
|
48
52
|
},
|
|
49
53
|
onLayout = (e) => {
|
|
50
54
|
if (sideModeComponent) {
|
|
@@ -121,6 +121,7 @@ function TreeComponent(props) {
|
|
|
121
121
|
initialSelection,
|
|
122
122
|
canRecordBeEdited,
|
|
123
123
|
onTreeLoad,
|
|
124
|
+
onLayout,
|
|
124
125
|
|
|
125
126
|
selectorId,
|
|
126
127
|
selectorSelected,
|
|
@@ -515,7 +516,7 @@ function TreeComponent(props) {
|
|
|
515
516
|
iconCollapsed: getNodeIcon(COLLAPSED, treeNode),
|
|
516
517
|
iconExpanded: getNodeIcon(EXPANDED, treeNode),
|
|
517
518
|
iconLeaf: getNodeIcon(LEAF, treeNode),
|
|
518
|
-
isExpanded: defaultToExpanded || isRoot, // all non-root treeNodes are collapsed by default
|
|
519
|
+
isExpanded: treeNode.isExpanded || defaultToExpanded || isRoot, // all non-root treeNodes are collapsed by default
|
|
519
520
|
isVisible: isRoot ? areRootsVisible : true,
|
|
520
521
|
isLoading: false,
|
|
521
522
|
children,
|
|
@@ -1380,6 +1381,7 @@ function TreeComponent(props) {
|
|
|
1380
1381
|
return <VStackNative
|
|
1381
1382
|
{...testProps(self)}
|
|
1382
1383
|
className={className}
|
|
1384
|
+
onLayout={onLayout}
|
|
1383
1385
|
>
|
|
1384
1386
|
{topToolbar}
|
|
1385
1387
|
|
|
@@ -43,7 +43,7 @@ export default function TreeNode(props) {
|
|
|
43
43
|
|
|
44
44
|
return useMemo(() => {
|
|
45
45
|
const icon = hasChildren ? (isExpanded ? iconExpanded : iconCollapsed) : iconLeaf;
|
|
46
|
-
let bg = props.bg || styles.TREE_NODE_BG,
|
|
46
|
+
let bg = props.nodeProps?.bg || props.bg || styles.TREE_NODE_BG,
|
|
47
47
|
mixWith;
|
|
48
48
|
if (isSelected) {
|
|
49
49
|
if (isHovered) {
|