@onehat/ui 0.3.332 → 0.3.333
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
|
@@ -79,9 +79,11 @@ export default function ColumnSelectorWindow(props) {
|
|
|
79
79
|
const
|
|
80
80
|
[ix, header] = datum,
|
|
81
81
|
columnConfig = localColumnsConfig.current[ix],
|
|
82
|
-
isHidden = columnConfig.isHidden
|
|
82
|
+
isHidden = columnConfig.isHidden,
|
|
83
|
+
isHidable = columnConfig.isHidable;
|
|
83
84
|
return <CheckboxButton
|
|
84
85
|
isChecked={!isHidden}
|
|
86
|
+
isDisabled={!isHidable}
|
|
85
87
|
onPress={() => {
|
|
86
88
|
if (isHidden) {
|
|
87
89
|
onShowColumn(ix);
|
|
@@ -14,9 +14,6 @@ import {
|
|
|
14
14
|
SELECTION_MODE_SINGLE,
|
|
15
15
|
SELECTION_MODE_MULTI,
|
|
16
16
|
} from '../../Constants/Selection.js';
|
|
17
|
-
import {
|
|
18
|
-
v4 as uuid,
|
|
19
|
-
} from 'uuid';
|
|
20
17
|
import {
|
|
21
18
|
DROP_POSITION_BEFORE,
|
|
22
19
|
DROP_POSITION_AFTER,
|
|
@@ -841,6 +838,7 @@ function GridComponent(props) {
|
|
|
841
838
|
isResizable: true,
|
|
842
839
|
isSortable: true,
|
|
843
840
|
isHidden: inArray(columnConfig.id, defaultHiddenColumns),
|
|
841
|
+
isHidable: true,
|
|
844
842
|
isOver: false,
|
|
845
843
|
},
|
|
846
844
|
config = _.assign({}, defaults, columnConfig);
|
|
@@ -296,8 +296,8 @@ export default function GridHeaderRow(props) {
|
|
|
296
296
|
let {
|
|
297
297
|
fieldName,
|
|
298
298
|
header = _.upperFirst(fieldName),
|
|
299
|
-
isReorderable,
|
|
300
|
-
isResizable,
|
|
299
|
+
isReorderable: configIsReorderable,
|
|
300
|
+
isResizable: configIsResizable,
|
|
301
301
|
isSortable,
|
|
302
302
|
w,
|
|
303
303
|
flex,
|
|
@@ -305,8 +305,8 @@ export default function GridHeaderRow(props) {
|
|
|
305
305
|
isHidden = false,
|
|
306
306
|
} = config,
|
|
307
307
|
isSorter = isSortable && canColumnsSort && sortField === fieldName,
|
|
308
|
-
isReorderable = canColumnsReorder &&
|
|
309
|
-
isResizable = canColumnsResize &&
|
|
308
|
+
isReorderable = canColumnsReorder && configIsReorderable,
|
|
309
|
+
isResizable = canColumnsResize && configIsResizable,
|
|
310
310
|
propsToPass = {
|
|
311
311
|
borderRightWidth: 2,
|
|
312
312
|
borderRightColor: '#fff',
|