@scheels-softdev/kendoreact-generics 2.7.1 → 2.8.0

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.
@@ -53,7 +53,6 @@ export function GenericDropdown({ data, selectedId, selectedData, onChange, text
53
53
  };
54
54
  // function to handle page changes for virtualization
55
55
  const pageChange = (event) => {
56
- console.log("page change data: ", event.page, filteredData.current);
57
56
  const skip = event.page.skip;
58
57
  const take = event.page.take;
59
58
  const newSubsetData = filteredData.current.length ? filteredData.current.slice(skip, skip + take) : data.slice(skip, skip + take);
@@ -1,8 +1,10 @@
1
- export declare function CommandCellCheckBox({ checked, onCheck, onUncheck, }: {
1
+ export declare function CommandCellCheckBox({ checked, onCheck, onUncheck, disabled, }: {
2
2
  /** Boolean value indicating whether the checkbox is checked (`true`) or unchecked (`false`). */
3
3
  checked: boolean;
4
4
  /** Callback function to be called when the checkbox is checked. */
5
5
  onCheck: Function;
6
6
  /** Callback function to be called when the checkbox is unchecked. */
7
7
  onUncheck: Function;
8
+ /** Boolean value indicating whether the checkbox is disabled. */
9
+ disabled: boolean;
8
10
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Checkbox } from "@progress/kendo-react-inputs";
3
- export function CommandCellCheckBox({ checked, onCheck, onUncheck, }) {
3
+ export function CommandCellCheckBox({ checked, onCheck, onUncheck, disabled, }) {
4
4
  const functionToRun = () => {
5
5
  if (checked) {
6
6
  onUncheck();
@@ -9,5 +9,5 @@ export function CommandCellCheckBox({ checked, onCheck, onUncheck, }) {
9
9
  onCheck();
10
10
  }
11
11
  };
12
- return (_jsx("td", Object.assign({ className: "justify-content-center", "data-testid": "checkbox" }, { children: _jsx(Checkbox, { checked: checked, onChange: functionToRun }) })));
12
+ return (_jsx("td", Object.assign({ className: "justify-content-center", "data-testid": "checkbox" }, { children: _jsx(Checkbox, { checked: checked, onChange: functionToRun, disabled: disabled }) })));
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest",