@vuu-ui/vuu-data-react 3.5.17 → 3.5.18

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.17",
2
+ "version": "3.5.18",
3
3
  "main": "./src/index.js",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
@@ -10,21 +10,21 @@
10
10
  "type-defs": "node ../../scripts/build-type-defs.mjs"
11
11
  },
12
12
  "devDependencies": {
13
- "@vuu-ui/vuu-data-types": "3.5.17",
14
- "@vuu-ui/vuu-filter-types": "3.5.17",
15
- "@vuu-ui/vuu-protocol-types": "3.5.17",
16
- "@vuu-ui/vuu-table-types": "3.5.17"
13
+ "@vuu-ui/vuu-data-types": "3.5.18",
14
+ "@vuu-ui/vuu-filter-types": "3.5.18",
15
+ "@vuu-ui/vuu-protocol-types": "3.5.18",
16
+ "@vuu-ui/vuu-table-types": "3.5.18"
17
17
  },
18
18
  "dependencies": {
19
- "@vuu-ui/vuu-context-menu": "3.5.17",
20
- "@vuu-ui/vuu-data-remote": "3.5.17",
21
- "@vuu-ui/vuu-filter-parser": "3.5.17",
22
- "@vuu-ui/vuu-filters": "3.5.17",
23
- "@vuu-ui/vuu-layout": "3.5.17",
24
- "@vuu-ui/vuu-notifications": "3.5.17",
25
- "@vuu-ui/vuu-ui-controls": "3.5.17",
26
- "@vuu-ui/vuu-utils": "3.5.17",
27
- "@vuu-ui/vuu-table": "3.5.17",
19
+ "@vuu-ui/vuu-context-menu": "3.5.18",
20
+ "@vuu-ui/vuu-data-remote": "3.5.18",
21
+ "@vuu-ui/vuu-filter-parser": "3.5.18",
22
+ "@vuu-ui/vuu-filters": "3.5.18",
23
+ "@vuu-ui/vuu-layout": "3.5.18",
24
+ "@vuu-ui/vuu-notifications": "3.5.18",
25
+ "@vuu-ui/vuu-ui-controls": "3.5.18",
26
+ "@vuu-ui/vuu-utils": "3.5.18",
27
+ "@vuu-ui/vuu-table": "3.5.18",
28
28
  "@salt-ds/core": "1.54.1",
29
29
  "@salt-ds/styles": "0.2.1",
30
30
  "@salt-ds/window": "0.1.1"
@@ -86,7 +86,7 @@ const getDataItemEditControl = ({ InputProps, TypeaheadProps, className, commitO
86
86
  "data-edit-control": true
87
87
  });
88
88
  }
89
- if ("toggle" === variant && "boolean" === dataDescriptor.serverDataType) return /*#__PURE__*/ jsx(ToggleFilter, {
89
+ if ("toggle" === variant && ("boolean" === dataDescriptor.serverDataType || "char" === dataDescriptor.serverDataType && values?.length)) return /*#__PURE__*/ jsx(ToggleFilter, {
90
90
  className: className,
91
91
  column: dataDescriptor.name,
92
92
  "data-edit-control": true,
@@ -35,7 +35,8 @@ export interface DataItemEditControlProps {
35
35
  * unavailable options are not offered.
36
36
  * Recommended for toggle filters, not usually necessary for other
37
37
  * filter variants. Boolean values are supported for toggle filters on
38
- * boolean columns, where values default to [true, false].
38
+ * boolean columns, where values default to [true, false]. A toggle filter
39
+ * on a char column requires values, which are not validated.
39
40
  */
40
41
  values?: ToggleFilterValue[];
41
42
  variant?: FilterControlVariant;