@scheels-softdev/kendoreact-generics 1.6.13 → 1.6.14

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.
@@ -4,7 +4,7 @@ changeEvent, // function to call when the selected value changes
4
4
  textFields, // array of field names to use for text values
5
5
  separator, // optional separator to use for concatenating text values
6
6
  disabled, // boolean to disable the dropdown
7
- idField, }: {
7
+ idField, title, }: {
8
8
  data: T[];
9
9
  selectedId: number;
10
10
  changeEvent: Function;
@@ -12,4 +12,5 @@ idField, }: {
12
12
  separator?: string;
13
13
  idField?: keyof T;
14
14
  disabled?: boolean;
15
+ title?: string;
15
16
  }): import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,7 @@ changeEvent, // function to call when the selected value changes
10
10
  textFields, // array of field names to use for text values
11
11
  separator, // optional separator to use for concatenating text values
12
12
  disabled, // boolean to disable the dropdown
13
- idField, }) {
13
+ idField, title, }) {
14
14
  //local state
15
15
  const pageSize = 8;
16
16
  const [dataList, setDataList] = useState(data.map((x) => {
@@ -51,7 +51,7 @@ idField, }) {
51
51
  return Object.assign(Object.assign({}, x), { textValue: getTextValue(x, textFields.map((x) => x.toString()), separator) });
52
52
  }));
53
53
  }, [data, textFields, separator]);
54
- return (_jsx("div", Object.assign({ "data-testid": "dropdown" }, { children: _jsx(ComboBox, { disabled: disabled, data: state.subsetData, textField: "textValue", virtual: {
54
+ return (_jsx("div", Object.assign({ "data-testid": "dropdown" }, { children: _jsx(ComboBox, { label: title, disabled: disabled, data: state.subsetData, textField: "textValue", virtual: {
55
55
  // enable virtualization for large datasets
56
56
  total: state.total,
57
57
  pageSize: pageSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",