@carbon/ibm-products 2.42.1-canary.21 → 2.42.1-canary.22
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { Hooks } from 'react-table';
|
8
|
+
declare const useSelectRows: (hooks: Hooks) => void;
|
1
9
|
export default useSelectRows;
|
2
|
-
declare function useSelectRows(hooks: any): void;
|
@@ -108,7 +108,8 @@ var SelectRow = function SelectRow(datagridState) {
|
|
108
108
|
dispatch: dispatch,
|
109
109
|
rowData: row,
|
110
110
|
isChecked: event.target.checked,
|
111
|
-
getRowId: getRowId
|
111
|
+
getRowId: getRowId,
|
112
|
+
selectAll: null
|
112
113
|
});
|
113
114
|
};
|
114
115
|
var selectDisabled = isFetching || row.getRowProps().disabled;
|
@@ -128,7 +129,7 @@ var SelectRow = function SelectRow(datagridState) {
|
|
128
129
|
onSelect: onSelectHandler,
|
129
130
|
id: rowId,
|
130
131
|
name: "".concat(rowId, "-name"),
|
131
|
-
className: cx([checkboxClass, cellProps.className, _defineProperty({}, "".concat(checkboxClass, "-sticky-left"), isFirstColumnStickyLeft && windowSize > 671)]),
|
132
|
+
className: cx([checkboxClass, cellProps.className, _defineProperty({}, "".concat(checkboxClass, "-sticky-left"), isFirstColumnStickyLeft && Number(windowSize) > 671)]),
|
132
133
|
ariaLabel: title,
|
133
134
|
disabled: selectDisabled
|
134
135
|
}));
|
@@ -1,2 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { Hooks } from 'react-table';
|
8
|
+
declare const useSelectRows: (hooks: Hooks) => void;
|
1
9
|
export default useSelectRows;
|
2
|
-
declare function useSelectRows(hooks: any): void;
|
@@ -117,7 +117,8 @@ var SelectRow = function SelectRow(datagridState) {
|
|
117
117
|
dispatch: dispatch,
|
118
118
|
rowData: row,
|
119
119
|
isChecked: event.target.checked,
|
120
|
-
getRowId: getRowId
|
120
|
+
getRowId: getRowId,
|
121
|
+
selectAll: null
|
121
122
|
});
|
122
123
|
};
|
123
124
|
var selectDisabled = isFetching || row.getRowProps().disabled;
|
@@ -137,7 +138,7 @@ var SelectRow = function SelectRow(datagridState) {
|
|
137
138
|
onSelect: onSelectHandler,
|
138
139
|
id: rowId,
|
139
140
|
name: "".concat(rowId, "-name"),
|
140
|
-
className: cx__default["default"]([checkboxClass, cellProps.className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(checkboxClass, "-sticky-left"), isFirstColumnStickyLeft && windowSize > 671)]),
|
141
|
+
className: cx__default["default"]([checkboxClass, cellProps.className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(checkboxClass, "-sticky-left"), isFirstColumnStickyLeft && Number(windowSize) > 671)]),
|
141
142
|
ariaLabel: title,
|
142
143
|
disabled: selectDisabled
|
143
144
|
}));
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carbon/ibm-products",
|
3
3
|
"description": "Carbon for IBM Products",
|
4
|
-
"version": "2.42.1-canary.
|
4
|
+
"version": "2.42.1-canary.22+bf7c0c878",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"module": "es/index.js",
|
@@ -121,5 +121,5 @@
|
|
121
121
|
"react": "^16.8.6 || ^17.0.1 || ^18.2.0",
|
122
122
|
"react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
|
123
123
|
},
|
124
|
-
"gitHead": "
|
124
|
+
"gitHead": "bf7c0c878d500b064d623355d607b75717f8a799"
|
125
125
|
}
|