@scheels-softdev/kendoreact-generics 1.6.0 → 1.6.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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export default function MultiSelectDD<T>({ data, selectedData, field, selectEvent, title, }: {
2
+ export declare function MultiSelectDropdown<T>({ data, selectedData, field, selectEvent, title, }: {
3
3
  data: T[];
4
4
  selectedData: T[];
5
5
  field: keyof T;
@@ -4,7 +4,7 @@ import { filterBy } from "@progress/kendo-data-query";
4
4
  import { MultiSelect } from "@progress/kendo-react-dropdowns";
5
5
  const pageSize = 10;
6
6
  //TODO move this component to @scheels-softdev/kendoreact-generics NPM package
7
- export default function MultiSelectDD({ data, selectedData, field, selectEvent, title, }) {
7
+ export function MultiSelectDropdown({ data, selectedData, field, selectEvent, title, }) {
8
8
  const filteredData = React.useRef(data.slice());
9
9
  const [state, setState] = React.useState({
10
10
  subsetData: data.slice(0, pageSize),
package/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export { FilterCellDropdown } from "./FilterCellDropdown";
7
7
  export { ToolbarButton } from "./Toolbar";
8
8
  export { GenericDropdown } from "./GenericDropdown";
9
9
  export { GridChangeEvent, CommonProps } from "./PropTypes";
10
+ export { MultiSelectDropdown } from "./MultiSelectDropdown";
package/index.js CHANGED
@@ -6,3 +6,4 @@ export { CommandCellSwitch } from "./commandCell/CommandCellSwitch";
6
6
  export { FilterCellDropdown } from "./FilterCellDropdown";
7
7
  export { ToolbarButton } from "./Toolbar";
8
8
  export { GenericDropdown } from "./GenericDropdown";
9
+ export { MultiSelectDropdown } from "./MultiSelectDropdown";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",