@vuu-ui/vuu-table-extras 3.3.3 → 3.3.4
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.3.
|
|
2
|
+
"version": "3.3.4",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
"lezer-generate:column": "lezer-generator --output ./src/column-expression-input/column-language-parser/generated/column-parser.js ./src/column-expression-input/column-language-parser/grammar/column.grammar"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@vuu-ui/vuu-filter-types": "3.3.
|
|
15
|
-
"@vuu-ui/vuu-protocol-types": "3.3.
|
|
14
|
+
"@vuu-ui/vuu-filter-types": "3.3.4",
|
|
15
|
+
"@vuu-ui/vuu-protocol-types": "3.3.4"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@vuu-ui/vuu-codemirror": "3.3.
|
|
19
|
-
"@vuu-ui/vuu-data-editing": "3.3.
|
|
20
|
-
"@vuu-ui/vuu-data-react": "3.3.
|
|
21
|
-
"@vuu-ui/vuu-data-types": "3.3.
|
|
22
|
-
"@vuu-ui/vuu-table-types": "3.3.
|
|
23
|
-
"@vuu-ui/vuu-popups": "3.3.
|
|
24
|
-
"@vuu-ui/vuu-table": "3.3.
|
|
25
|
-
"@vuu-ui/vuu-utils": "3.3.
|
|
26
|
-
"@vuu-ui/vuu-ui-controls": "3.3.
|
|
18
|
+
"@vuu-ui/vuu-codemirror": "3.3.4",
|
|
19
|
+
"@vuu-ui/vuu-data-editing": "3.3.4",
|
|
20
|
+
"@vuu-ui/vuu-data-react": "3.3.4",
|
|
21
|
+
"@vuu-ui/vuu-data-types": "3.3.4",
|
|
22
|
+
"@vuu-ui/vuu-table-types": "3.3.4",
|
|
23
|
+
"@vuu-ui/vuu-popups": "3.3.4",
|
|
24
|
+
"@vuu-ui/vuu-table": "3.3.4",
|
|
25
|
+
"@vuu-ui/vuu-utils": "3.3.4",
|
|
26
|
+
"@vuu-ui/vuu-ui-controls": "3.3.4",
|
|
27
27
|
"@lezer/lr": "1.4.2",
|
|
28
28
|
"@salt-ds/core": "1.54.1",
|
|
29
29
|
"@salt-ds/lab": "1.0.0-alpha.83",
|
|
@@ -178,7 +178,7 @@ const exportSessionTableToCsv = async (dataSource, options = {})=>{
|
|
|
178
178
|
if (totalSize > maxRows) return void fail(new Error(`exportToCsv: row count ${totalSize} exceeds the ${maxRows} row limit`));
|
|
179
179
|
nextRequestedFrom = Math.min(CHUNK_SIZE, totalSize);
|
|
180
180
|
activeSessionDataSource.range = Range(0, nextRequestedFrom);
|
|
181
|
-
} else if ("batch" === message.mode && message.rows) {
|
|
181
|
+
} else if (("batch" === message.mode || "update" === message.mode) && message.rows) {
|
|
182
182
|
for (const row of message.rows){
|
|
183
183
|
const rowIndex = row[metadataKeys.IDX];
|
|
184
184
|
if ("number" == typeof rowIndex) collectedRows.set(rowIndex, row);
|
|
@@ -52,7 +52,7 @@ const useInlineAddRow = ({ columns })=>{
|
|
|
52
52
|
cell?.querySelector("input, button, [tabindex]")?.focus();
|
|
53
53
|
}, []);
|
|
54
54
|
useEffect(()=>{
|
|
55
|
-
editSession.configureNewRow(visibleInsertColumns.map(({ name })=>name));
|
|
55
|
+
editSession.configureNewRow(visibleInsertColumns.map(({ name })=>name), visibleInsertColumns.filter((column)=>false !== column.required).map(({ name })=>name));
|
|
56
56
|
}, [
|
|
57
57
|
editSession,
|
|
58
58
|
visibleInsertColumns
|
|
@@ -52,6 +52,7 @@ export declare const useInlineAddRow: ({ columns }: UseInlineAddRowProps) => {
|
|
|
52
52
|
status?: import("@salt-ds/core").ValidationStatus;
|
|
53
53
|
editableBulk?: import("@vuu-ui/vuu-data-types").BulkEdit;
|
|
54
54
|
name: string;
|
|
55
|
+
required?: boolean;
|
|
55
56
|
serverDataType?: import("@vuu-ui/vuu-protocol-types").VuuColumnDataType;
|
|
56
57
|
type?: import("@vuu-ui/vuu-data-types").DataValueType;
|
|
57
58
|
}[];
|