@absreim/react-bootstrap-data-grid 1.2.0 → 1.2.1
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/Grid.jsx +1 -1
- package/package.json +1 -1
- package/selection/SelectionInput.jsx +1 -1
- package/types.d.ts +2 -0
package/Grid.jsx
CHANGED
|
@@ -159,7 +159,7 @@ var Grid = function (_a) {
|
|
|
159
159
|
{showSelectCol && (<td>
|
|
160
160
|
<SelectionInput selected={selectedSet.has(row.origIndex)} selectionInputModel={getSelectInputModel(row.origIndex, selectModel)} selectCallback={getSelectHandler(row.origIndex)}/>
|
|
161
161
|
</td>)}
|
|
162
|
-
{row.contents.map(function (value, index) { return (<td key={index} aria-colindex={index + 1}>
|
|
162
|
+
{row.contents.map(function (value, index) { return (<td key={index} aria-colindex={index + 1 + (showSelectCol ? 1 : 0)}>
|
|
163
163
|
{value}
|
|
164
164
|
</td>); })}
|
|
165
165
|
</tr>); })}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absreim/react-bootstrap-data-grid",
|
|
3
3
|
"description": "Data grid UI component for use with web apps using React and Bootstrap",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Brook Li",
|
|
7
7
|
"homepage": "https://react-bootstrap-data-grid.vercel.app/",
|
|
@@ -14,7 +14,7 @@ var SelectionInput = function (_a) {
|
|
|
14
14
|
selectCallback();
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
return (<input onClick={function (event) {
|
|
17
|
+
return (<input aria-description="input to select the current row" onClick={function (event) {
|
|
18
18
|
event.stopPropagation();
|
|
19
19
|
}} type={type} checked={selected} onChange={onChange} name={selectionInputModel.name}/>);
|
|
20
20
|
};
|
package/types.d.ts
CHANGED
|
@@ -101,3 +101,5 @@ export interface SingleSelectModel {
|
|
|
101
101
|
groupName: string;
|
|
102
102
|
}
|
|
103
103
|
export type SelectModel = SingleSelectModel | MultiSelectModel;
|
|
104
|
+
export type MultiSelectModelInitialState = Omit<MultiSelectModel, "setSelected">;
|
|
105
|
+
export type SingleSelectModelInitialState = Omit<SingleSelectModel, "setSelected">;
|