@vuu-ui/vuu-data-react 4.2.4 → 4.2.6
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": "4.2.
|
|
2
|
+
"version": "4.2.6",
|
|
3
3
|
"main": "./src/index.js",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@vuu-ui/vuu-data-types": "4.2.
|
|
13
|
-
"@vuu-ui/vuu-filter-types": "4.2.
|
|
14
|
-
"@vuu-ui/vuu-protocol-types": "4.2.
|
|
15
|
-
"@vuu-ui/vuu-table-types": "4.2.
|
|
12
|
+
"@vuu-ui/vuu-data-types": "4.2.6",
|
|
13
|
+
"@vuu-ui/vuu-filter-types": "4.2.6",
|
|
14
|
+
"@vuu-ui/vuu-protocol-types": "4.2.6",
|
|
15
|
+
"@vuu-ui/vuu-table-types": "4.2.6"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@vuu-ui/vuu-context-menu": "4.2.
|
|
19
|
-
"@vuu-ui/vuu-data-remote": "4.2.
|
|
20
|
-
"@vuu-ui/vuu-filter-parser": "4.2.
|
|
21
|
-
"@vuu-ui/vuu-filters": "4.2.
|
|
22
|
-
"@vuu-ui/vuu-layout": "4.2.
|
|
23
|
-
"@vuu-ui/vuu-notifications": "4.2.
|
|
24
|
-
"@vuu-ui/vuu-ui-controls": "4.2.
|
|
25
|
-
"@vuu-ui/vuu-utils": "4.2.
|
|
26
|
-
"@vuu-ui/vuu-table": "4.2.
|
|
18
|
+
"@vuu-ui/vuu-context-menu": "4.2.6",
|
|
19
|
+
"@vuu-ui/vuu-data-remote": "4.2.6",
|
|
20
|
+
"@vuu-ui/vuu-filter-parser": "4.2.6",
|
|
21
|
+
"@vuu-ui/vuu-filters": "4.2.6",
|
|
22
|
+
"@vuu-ui/vuu-layout": "4.2.6",
|
|
23
|
+
"@vuu-ui/vuu-notifications": "4.2.6",
|
|
24
|
+
"@vuu-ui/vuu-ui-controls": "4.2.6",
|
|
25
|
+
"@vuu-ui/vuu-utils": "4.2.6",
|
|
26
|
+
"@vuu-ui/vuu-table": "4.2.6",
|
|
27
27
|
"@salt-ds/core": "1.74.0",
|
|
28
28
|
"@salt-ds/styles": "0.4.2",
|
|
29
29
|
"@salt-ds/window": "0.1.2"
|
|
@@ -4,7 +4,7 @@ import { hasShowNotificationAction, isGroupMenuItemDescriptor } from "@vuu-ui/vu
|
|
|
4
4
|
import { getFilterPredicate } from "@vuu-ui/vuu-filter-parser";
|
|
5
5
|
import { NotificationType, useNotifications } from "@vuu-ui/vuu-notifications";
|
|
6
6
|
import { BulkEditPanel, isTableLocation } from "@vuu-ui/vuu-table";
|
|
7
|
-
import { getLayoutComponent, isActionMessage, isCustomComponentActionMessage, isSessionTableActionMessage, useData } from "@vuu-ui/vuu-utils";
|
|
7
|
+
import { getLayoutComponent, getServerNotificationStatus, isActionMessage, isCustomComponentActionMessage, isSessionTableActionMessage, useData } from "@vuu-ui/vuu-utils";
|
|
8
8
|
import { useCallback } from "react";
|
|
9
9
|
import { SessionEditingForm } from "../session-editing-form/index.js";
|
|
10
10
|
import { useModal } from "@vuu-ui/vuu-ui-controls";
|
|
@@ -171,7 +171,7 @@ const useVuuMenuActions = ({ clientSideMenuActionHandler, dataSource, onRpcRespo
|
|
|
171
171
|
onClose: closeDialog
|
|
172
172
|
}), "Set Parameters");
|
|
173
173
|
}
|
|
174
|
-
const sessionDs = await ds.createSessionDataSource?.(
|
|
174
|
+
const sessionDs = await ds.createSessionDataSource?.("All");
|
|
175
175
|
const handleSubmit = ()=>{
|
|
176
176
|
sessionDs?.rpcRequest?.({
|
|
177
177
|
params: {
|
|
@@ -233,11 +233,10 @@ const useVuuMenuActions = ({ clientSideMenuActionHandler, dataSource, onRpcRespo
|
|
|
233
233
|
if (onRpcResponse?.(rpcResponse) === true) return true;
|
|
234
234
|
if (isActionMessage(rpcResponse)) {
|
|
235
235
|
if (hasShowNotificationAction(rpcResponse)) {
|
|
236
|
-
const { action
|
|
236
|
+
const { action } = rpcResponse;
|
|
237
237
|
showNotification({
|
|
238
|
-
|
|
239
|
-
content: message,
|
|
240
|
-
header: title,
|
|
238
|
+
...getServerNotificationStatus(action),
|
|
239
|
+
content: action.message,
|
|
241
240
|
type: NotificationType.Toast
|
|
242
241
|
});
|
|
243
242
|
} else if (isSessionTableActionMessage(rpcResponse)) showSessionEditingForm(dataSource, rpcResponse.action);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MenuActionHandler } from "@vuu-ui/vuu-context-menu";
|
|
2
|
-
import { DataSource, DataSourceVisualLinkCreatedMessage, RpcResponseHandler } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import type { DataSource, DataSourceVisualLinkCreatedMessage, RpcResponseHandler } from "@vuu-ui/vuu-data-types";
|
|
3
3
|
import type { LinkDescriptorWithLabel, VuuDataRowDto, VuuMenu, VuuMenuItem, VuuRowDataItemType } from "@vuu-ui/vuu-protocol-types";
|
|
4
4
|
import type { ColumnDescriptor, TableContextMenuDef } from "@vuu-ui/vuu-table-types";
|
|
5
5
|
export interface MenuActionConfig {
|