@vuu-ui/vuu-data-react 3.1.0-beta.1 → 3.1.0-beta.2
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 +14 -14
- package/src/data-editing/{EditForm.mjs → EditForm.js} +3 -3
- package/src/data-editing/{UnsavedChangesReport.mjs → UnsavedChangesReport.js} +1 -1
- package/src/data-editing/{edit-validation-rules.mjs → edit-validation-rules.js} +1 -1
- package/src/data-editing/index.js +6 -0
- package/src/data-editing/{useEditForm.mjs → useEditForm.js} +3 -3
- package/src/datasource-provider/{VuuDataSourceProvider.mjs → VuuDataSourceProvider.js} +1 -1
- package/src/datasource-provider/index.js +1 -0
- package/src/hooks/{useVuuMenuActions.mjs → useVuuMenuActions.js} +1 -1
- package/src/index.js +10 -0
- package/src/lost-connection-indicator/{useLostConnection.mjs → useLostConnection.js} +1 -1
- package/src/session-editing-form/index.js +1 -0
- package/src/data-editing/index.mjs +0 -6
- package/src/datasource-provider/index.mjs +0 -1
- package/src/index.mjs +0 -10
- package/src/session-editing-form/index.mjs +0 -1
- /package/src/data-editing/{edit-rule-validation-checker.mjs → edit-rule-validation-checker.js} +0 -0
- /package/src/data-editing/{form-edit-state.mjs → form-edit-state.js} +0 -0
- /package/src/data-editing/{get-data-item-edit-control.mjs → get-data-item-edit-control.js} +0 -0
- /package/src/datasource-provider/{useAutoLoginToVuuServer.mjs → useAutoLoginToVuuServer.js} +0 -0
- /package/src/hooks/{useLookupValues.mjs → useLookupValues.js} +0 -0
- /package/src/hooks/{useSessionDataSource.mjs → useSessionDataSource.js} +0 -0
- /package/src/hooks/{useTypeaheadSuggestions.mjs → useTypeaheadSuggestions.js} +0 -0
- /package/src/hooks/{useVisualLinks.mjs → useVisualLinks.js} +0 -0
- /package/src/hooks/{useVuuTables.mjs → useVuuTables.js} +0 -0
- /package/src/lost-connection-indicator/{LostConnectionIndicator.mjs → LostConnectionIndicator.js} +0 -0
- /package/src/session-editing-form/{SessionEditingForm.mjs → SessionEditingForm.js} +0 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.1.0-beta.
|
|
2
|
+
"version": "3.1.0-beta.2",
|
|
3
3
|
"main": "src/index.ts",
|
|
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.1.0-beta.
|
|
14
|
-
"@vuu-ui/vuu-filter-types": "3.1.0-beta.
|
|
15
|
-
"@vuu-ui/vuu-protocol-types": "3.1.0-beta.
|
|
16
|
-
"@vuu-ui/vuu-table-types": "3.1.0-beta.
|
|
13
|
+
"@vuu-ui/vuu-data-types": "3.1.0-beta.2",
|
|
14
|
+
"@vuu-ui/vuu-filter-types": "3.1.0-beta.2",
|
|
15
|
+
"@vuu-ui/vuu-protocol-types": "3.1.0-beta.2",
|
|
16
|
+
"@vuu-ui/vuu-table-types": "3.1.0-beta.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vuu-ui/vuu-context-menu": "3.1.0-beta.
|
|
20
|
-
"@vuu-ui/vuu-data-remote": "3.1.0-beta.
|
|
21
|
-
"@vuu-ui/vuu-filter-parser": "3.1.0-beta.
|
|
22
|
-
"@vuu-ui/vuu-filters": "3.1.0-beta.
|
|
23
|
-
"@vuu-ui/vuu-layout": "3.1.0-beta.
|
|
24
|
-
"@vuu-ui/vuu-notifications": "3.1.0-beta.
|
|
25
|
-
"@vuu-ui/vuu-ui-controls": "3.1.0-beta.
|
|
26
|
-
"@vuu-ui/vuu-utils": "3.1.0-beta.
|
|
27
|
-
"@vuu-ui/vuu-table": "3.1.0-beta.
|
|
19
|
+
"@vuu-ui/vuu-context-menu": "3.1.0-beta.2",
|
|
20
|
+
"@vuu-ui/vuu-data-remote": "3.1.0-beta.2",
|
|
21
|
+
"@vuu-ui/vuu-filter-parser": "3.1.0-beta.2",
|
|
22
|
+
"@vuu-ui/vuu-filters": "3.1.0-beta.2",
|
|
23
|
+
"@vuu-ui/vuu-layout": "3.1.0-beta.2",
|
|
24
|
+
"@vuu-ui/vuu-notifications": "3.1.0-beta.2",
|
|
25
|
+
"@vuu-ui/vuu-ui-controls": "3.1.0-beta.2",
|
|
26
|
+
"@vuu-ui/vuu-utils": "3.1.0-beta.2",
|
|
27
|
+
"@vuu-ui/vuu-table": "3.1.0-beta.2",
|
|
28
28
|
"@salt-ds/core": "1.54.1",
|
|
29
29
|
"@salt-ds/styles": "0.2.1",
|
|
30
30
|
"@salt-ds/window": "0.1.1"
|
|
@@ -3,10 +3,10 @@ import { Button, FormField, FormFieldLabel } from "@salt-ds/core";
|
|
|
3
3
|
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
4
4
|
import { useWindow } from "@salt-ds/window";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { registerRules } from "./edit-validation-rules.
|
|
7
|
-
import { useEditForm } from "./useEditForm.
|
|
6
|
+
import { registerRules } from "./edit-validation-rules.js";
|
|
7
|
+
import { useEditForm } from "./useEditForm.js";
|
|
8
8
|
import EditForm from "./EditForm.css";
|
|
9
|
-
import { getDataItemEditControl } from "./get-data-item-edit-control.
|
|
9
|
+
import { getDataItemEditControl } from "./get-data-item-edit-control.js";
|
|
10
10
|
const classBase = "EditForm";
|
|
11
11
|
registerRules();
|
|
12
12
|
const EditForm_EditForm = ({ className, dataSource, formFieldDescriptors, onSubmit: onSubmitProp, ...htmlAttributes })=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useComponentCssInjection } from "@salt-ds/styles";
|
|
3
3
|
import { useWindow } from "@salt-ds/window";
|
|
4
|
-
import { buildFormEditState } from "./form-edit-state.
|
|
4
|
+
import { buildFormEditState } from "./form-edit-state.js";
|
|
5
5
|
import UnsavedChangesReport from "./UnsavedChangesReport.css";
|
|
6
6
|
const classBase = "vuuUnsavedChanges";
|
|
7
7
|
const UnsavedChangesReport_UnsavedChangesReport = ({ entity, editedEntity })=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { registerComponent } from "@vuu-ui/vuu-utils";
|
|
2
|
-
import { OK } from "./edit-rule-validation-checker.
|
|
2
|
+
import { OK } from "./edit-rule-validation-checker.js";
|
|
3
3
|
const isString = (value)=>"string" == typeof value;
|
|
4
4
|
const NUMERIC = /^(?:[0-9]|\.)+$/;
|
|
5
5
|
const CharValidatorNumeric = (rule, value)=>{
|
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Range, buildColumnMap, dataSourceRowToEntity, messageHasDataRows, queryClosest } from "@vuu-ui/vuu-utils";
|
|
3
3
|
import { Button } from "@salt-ds/core";
|
|
4
4
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
5
|
-
import { UnsavedChangesReport } from "./UnsavedChangesReport.
|
|
6
|
-
import { buildValidationChecker, getEditValidationRules } from "./edit-rule-validation-checker.
|
|
7
|
-
import { CLEAN_FORM, buildFormEditState } from "./form-edit-state.
|
|
5
|
+
import { UnsavedChangesReport } from "./UnsavedChangesReport.js";
|
|
6
|
+
import { buildValidationChecker, getEditValidationRules } from "./edit-rule-validation-checker.js";
|
|
7
|
+
import { CLEAN_FORM, buildFormEditState } from "./form-edit-state.js";
|
|
8
8
|
import { useModal } from "@vuu-ui/vuu-ui-controls";
|
|
9
9
|
const CLEAN_VALIDATION = {
|
|
10
10
|
ok: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ConnectionManager, VuuDataSource } from "@vuu-ui/vuu-data-remote";
|
|
3
3
|
import { DataProvider } from "@vuu-ui/vuu-utils";
|
|
4
|
-
import { useAutoLoginToVuuServer } from "./useAutoLoginToVuuServer.
|
|
4
|
+
import { useAutoLoginToVuuServer } from "./useAutoLoginToVuuServer.js";
|
|
5
5
|
const getServerAPI = ()=>ConnectionManager.serverAPI;
|
|
6
6
|
const VuuDataSourceProvider = ({ authenticate, autoConnect = false, autoLogin = false, children, websocketUrl })=>{
|
|
7
7
|
useAutoLoginToVuuServer({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./VuuDataSourceProvider.js";
|
|
@@ -6,7 +6,7 @@ import { NotificationType, useNotifications } from "@vuu-ui/vuu-notifications";
|
|
|
6
6
|
import { BulkEditPanel, isTableLocation } from "@vuu-ui/vuu-table";
|
|
7
7
|
import { getLayoutComponent, isActionMessage, isCustomComponentActionMessage, isSessionTableActionMessage, useData } from "@vuu-ui/vuu-utils";
|
|
8
8
|
import { useCallback } from "react";
|
|
9
|
-
import { SessionEditingForm } from "../session-editing-form/index.
|
|
9
|
+
import { SessionEditingForm } from "../session-editing-form/index.js";
|
|
10
10
|
import { useModal } from "@vuu-ui/vuu-ui-controls";
|
|
11
11
|
const isRoot = (menu)=>"ROOT" === menu.name;
|
|
12
12
|
const isCellMenu = (options)=>"cell" === options.context;
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./data-editing/index.js";
|
|
2
|
+
export * from "./datasource-provider/index.js";
|
|
3
|
+
export * from "./session-editing-form/index.js";
|
|
4
|
+
export { useLookupValues } from "./hooks/useLookupValues.js";
|
|
5
|
+
export { useSessionDataSource } from "./hooks/useSessionDataSource.js";
|
|
6
|
+
export { getTypeaheadParams, useTypeaheadSuggestions } from "./hooks/useTypeaheadSuggestions.js";
|
|
7
|
+
export { useVisualLinks } from "./hooks/useVisualLinks.js";
|
|
8
|
+
export { isRowMenu, isSelectionMenu, useVuuMenuActions } from "./hooks/useVuuMenuActions.js";
|
|
9
|
+
export { useVuuTables } from "./hooks/useVuuTables.js";
|
|
10
|
+
export { useLostConnection } from "./lost-connection-indicator/useLostConnection.js";
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ConnectionManager, isConnected } from "@vuu-ui/vuu-data-remote";
|
|
3
3
|
import { useCallback, useMemo, useRef } from "react";
|
|
4
4
|
import { NotificationType, useNotifications } from "@vuu-ui/vuu-notifications";
|
|
5
|
-
import { LostConnectionIndicator } from "./LostConnectionIndicator.
|
|
5
|
+
import { LostConnectionIndicator } from "./LostConnectionIndicator.js";
|
|
6
6
|
const useLostConnection = ()=>{
|
|
7
7
|
const { hideNotification, showNotification } = useNotifications();
|
|
8
8
|
const isConnectedRef = useRef(ConnectionManager.connected);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SessionEditingForm.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./VuuDataSourceProvider.mjs";
|
package/src/index.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./data-editing/index.mjs";
|
|
2
|
-
export * from "./datasource-provider/index.mjs";
|
|
3
|
-
export * from "./session-editing-form/index.mjs";
|
|
4
|
-
export { useLookupValues } from "./hooks/useLookupValues.mjs";
|
|
5
|
-
export { useSessionDataSource } from "./hooks/useSessionDataSource.mjs";
|
|
6
|
-
export { getTypeaheadParams, useTypeaheadSuggestions } from "./hooks/useTypeaheadSuggestions.mjs";
|
|
7
|
-
export { useVisualLinks } from "./hooks/useVisualLinks.mjs";
|
|
8
|
-
export { isRowMenu, isSelectionMenu, useVuuMenuActions } from "./hooks/useVuuMenuActions.mjs";
|
|
9
|
-
export { useVuuTables } from "./hooks/useVuuTables.mjs";
|
|
10
|
-
export { useLostConnection } from "./lost-connection-indicator/useLostConnection.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SessionEditingForm.mjs";
|
/package/src/data-editing/{edit-rule-validation-checker.mjs → edit-rule-validation-checker.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/lost-connection-indicator/{LostConnectionIndicator.mjs → LostConnectionIndicator.js}
RENAMED
|
File without changes
|
|
File without changes
|