@vuu-ui/vuu-data-editing 3.3.11 → 4.0.0-alpha.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "4.0.0-alpha.2",
|
|
3
3
|
"description": "Shared data editing APIs and React components for VUU UI",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"author": "heswell",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@salt-ds/core": "1.
|
|
15
|
-
"@vuu-ui/vuu-ui-controls": "
|
|
16
|
-
"@vuu-ui/vuu-utils": "
|
|
14
|
+
"@salt-ds/core": "1.67.0",
|
|
15
|
+
"@vuu-ui/vuu-ui-controls": "4.0.0-alpha.2",
|
|
16
|
+
"@vuu-ui/vuu-utils": "4.0.0-alpha.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@vuu-ui/vuu-data-types": "
|
|
20
|
-
"@vuu-ui/vuu-protocol-types": "
|
|
21
|
-
"@vuu-ui/vuu-table-types": "
|
|
19
|
+
"@vuu-ui/vuu-data-types": "4.0.0-alpha.2",
|
|
20
|
+
"@vuu-ui/vuu-protocol-types": "4.0.0-alpha.2",
|
|
21
|
+
"@vuu-ui/vuu-table-types": "4.0.0-alpha.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^19.2.3"
|
|
@@ -3,6 +3,6 @@ import type { EditSession } from "./EditSession";
|
|
|
3
3
|
export declare const DataEditingProvider: ({ children, editSession, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
editSession: EditSession;
|
|
6
|
-
}) => import("react
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
7
|
export declare function useEditSession(throwIfUnavailable?: false): EditSession | undefined;
|
|
8
8
|
export declare function useEditSession(throwIfUnavailable: true): EditSession;
|
package/types/EditButtons.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export interface EditButtonProps {
|
|
|
11
11
|
confirmSave?: () => boolean | Promise<boolean>;
|
|
12
12
|
confirmCancel?: () => boolean | Promise<boolean>;
|
|
13
13
|
}
|
|
14
|
-
export declare const EditButtons: ({ canCancel, canSave, confirmCancel, confirmSave, editSession, hasSelection, onCancel, onDelete, onSave, saveLabel, }: EditButtonProps) => import("react
|
|
14
|
+
export declare const EditButtons: ({ canCancel, canSave, confirmCancel, confirmSave, editSession, hasSelection, onCancel, onDelete, onSave, saveLabel, }: EditButtonProps) => import("react").JSX.Element;
|
|
@@ -9,5 +9,5 @@ export interface EditModeContextProps {
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const EditModeProvider: ({ children }: {
|
|
11
11
|
children: ReactNode;
|
|
12
|
-
}) => import("react
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
13
|
export declare const useEditMode: () => EditModeContextProps;
|
|
@@ -9,4 +9,4 @@ export declare const getUndoButtonContent: (componentProps?: UndoCellRendererCom
|
|
|
9
9
|
text: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
export declare const getUndoTooltipContent: (action: unknown) => "Undo delete row" | "Undo insert row" | "Undo row edits" | undefined;
|
|
12
|
-
export declare const UndoCellRenderer: ({ column, dataRow, }: TableCellRendererProps) => import("react
|
|
12
|
+
export declare const UndoCellRenderer: ({ column, dataRow, }: TableCellRendererProps) => import("react").JSX.Element | null;
|
package/types/edit-utils.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type { DataRow, RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
|
2
2
|
export { isInlineEditingSession } from "@vuu-ui/vuu-utils";
|
|
3
3
|
export declare const isEditRowReadOnly: (dataRow: DataRow) => boolean;
|
|
4
4
|
export declare const withDataRowEditErrors: <T extends DataRow>(dataRow: T, errors: Record<string, string>) => T;
|
|
5
|
-
export declare const getVuuEditMessage: (dataRow: DataRow, column: RuntimeColumnDescriptor, originalValue: string) => string | import("react
|
|
5
|
+
export declare const getVuuEditMessage: (dataRow: DataRow, column: RuntimeColumnDescriptor, originalValue: string) => string | import("react").JSX.Element | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DataRow } from "@vuu-ui/vuu-table-types";
|
|
2
2
|
export declare const EDIT_ACTION_ROW_CLASS_NAME_GENERATOR = "vuu-edit-actions";
|
|
3
|
-
export declare const editActionRowClassNameGenerator: (dataRow: DataRow) => "vuuTableRow-
|
|
3
|
+
export declare const editActionRowClassNameGenerator: (dataRow: DataRow) => "vuuTableRow-deleted" | "vuuTableRow-inserted" | undefined;
|