@vuu-ui/vuu-data-react 3.5.0 → 3.5.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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.5.
|
|
2
|
+
"version": "3.5.1",
|
|
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.
|
|
14
|
-
"@vuu-ui/vuu-filter-types": "3.5.
|
|
15
|
-
"@vuu-ui/vuu-protocol-types": "3.5.
|
|
16
|
-
"@vuu-ui/vuu-table-types": "3.5.
|
|
13
|
+
"@vuu-ui/vuu-data-types": "3.5.1",
|
|
14
|
+
"@vuu-ui/vuu-filter-types": "3.5.1",
|
|
15
|
+
"@vuu-ui/vuu-protocol-types": "3.5.1",
|
|
16
|
+
"@vuu-ui/vuu-table-types": "3.5.1"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vuu-ui/vuu-context-menu": "3.5.
|
|
20
|
-
"@vuu-ui/vuu-data-remote": "3.5.
|
|
21
|
-
"@vuu-ui/vuu-filter-parser": "3.5.
|
|
22
|
-
"@vuu-ui/vuu-filters": "3.5.
|
|
23
|
-
"@vuu-ui/vuu-layout": "3.5.
|
|
24
|
-
"@vuu-ui/vuu-notifications": "3.5.
|
|
25
|
-
"@vuu-ui/vuu-ui-controls": "3.5.
|
|
26
|
-
"@vuu-ui/vuu-utils": "3.5.
|
|
27
|
-
"@vuu-ui/vuu-table": "3.5.
|
|
19
|
+
"@vuu-ui/vuu-context-menu": "3.5.1",
|
|
20
|
+
"@vuu-ui/vuu-data-remote": "3.5.1",
|
|
21
|
+
"@vuu-ui/vuu-filter-parser": "3.5.1",
|
|
22
|
+
"@vuu-ui/vuu-filters": "3.5.1",
|
|
23
|
+
"@vuu-ui/vuu-layout": "3.5.1",
|
|
24
|
+
"@vuu-ui/vuu-notifications": "3.5.1",
|
|
25
|
+
"@vuu-ui/vuu-ui-controls": "3.5.1",
|
|
26
|
+
"@vuu-ui/vuu-utils": "3.5.1",
|
|
27
|
+
"@vuu-ui/vuu-table": "3.5.1",
|
|
28
28
|
"@salt-ds/core": "1.54.1",
|
|
29
29
|
"@salt-ds/styles": "0.2.1",
|
|
30
30
|
"@salt-ds/window": "0.1.1"
|
|
@@ -21,7 +21,7 @@ function toTimeString(value, timestamp, { timeZone }, milliseconds = false) {
|
|
|
21
21
|
if (isValidTimeString(timeString)) return timeString;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const getDataItemEditControl = ({ InputProps, TypeaheadProps, className, commitOnBlur, commitWhenCleared, dataDescriptor, editOperation = "update", errorMessage, onCommit, table, values, variant })=>{
|
|
24
|
+
const getDataItemEditControl = ({ InputProps, TypeaheadProps, className, commitOnBlur, commitWhenCleared, dataDescriptor, editOperation = "update", errorMessage, labels, onCommit, table, values, variant })=>{
|
|
25
25
|
const dataVariant = variant && "toggle" !== variant ? variant : void 0;
|
|
26
26
|
const temporalInfo = getTemporalInfo(dataDescriptor);
|
|
27
27
|
if (!isDataValueEditable(dataDescriptor, editOperation, true)) return /*#__PURE__*/ jsx(VuuInput, {
|
|
@@ -86,6 +86,7 @@ const getDataItemEditControl = ({ InputProps, TypeaheadProps, className, commitO
|
|
|
86
86
|
className: className,
|
|
87
87
|
column: dataDescriptor.name,
|
|
88
88
|
"data-edit-control": true,
|
|
89
|
+
labels: labels,
|
|
89
90
|
onCommit: onCommit,
|
|
90
91
|
table: table,
|
|
91
92
|
values: values,
|
|
@@ -21,6 +21,11 @@ export interface DataItemEditControlProps {
|
|
|
21
21
|
dataDescriptor: DataValueDescriptor;
|
|
22
22
|
editOperation?: "insert" | "update";
|
|
23
23
|
errorMessage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional labels, only used with 'toggle' variant. If provided, must
|
|
26
|
+
* have same number of items as values. Defaults to values.
|
|
27
|
+
*/
|
|
28
|
+
labels?: string[];
|
|
24
29
|
onCommit: CommitHandler<HTMLElement>;
|
|
25
30
|
table?: TableSchemaTable;
|
|
26
31
|
/**
|
|
@@ -34,4 +39,4 @@ export interface DataItemEditControlProps {
|
|
|
34
39
|
variant?: FilterControlVariant;
|
|
35
40
|
}
|
|
36
41
|
export type ValidationStatus = "initial" | true | string;
|
|
37
|
-
export declare const getDataItemEditControl: ({ InputProps, TypeaheadProps, className, commitOnBlur, commitWhenCleared, dataDescriptor, editOperation, errorMessage, onCommit, table, values, variant, }: DataItemEditControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const getDataItemEditControl: ({ InputProps, TypeaheadProps, className, commitOnBlur, commitWhenCleared, dataDescriptor, editOperation, errorMessage, labels, onCommit, table, values, variant, }: DataItemEditControlProps) => import("react/jsx-runtime").JSX.Element;
|