@bsol-oss/react-datatable5 12.0.0-beta.81 → 12.0.0-beta.83
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/dist/index.d.ts +28 -1
- package/dist/index.js +280 -135
- package/dist/index.mjs +282 -138
- package/dist/types/components/Form/components/MediaLibraryBrowser.d.ts +22 -0
- package/dist/types/components/Form/components/fields/FilePicker.d.ts +16 -0
- package/dist/types/components/Form/components/fields/FormMediaLibraryBrowser.d.ts +2 -0
- package/dist/types/components/Form/components/types/CustomJSONSchema7.d.ts +6 -0
- package/dist/types/components/Form/components/viewers/SchemaViewer.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
import { FilePickerMediaFile, FilePickerLabels } from '../types/CustomJSONSchema7';
|
|
1
2
|
import { InputDefaultProps } from './types';
|
|
3
|
+
interface FilePickerDialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onSelect: (fileId: string) => void;
|
|
7
|
+
title: string;
|
|
8
|
+
filterImageOnly?: boolean;
|
|
9
|
+
onFetchFiles?: (search: string) => Promise<FilePickerMediaFile[]>;
|
|
10
|
+
onUploadFile?: (file: File) => Promise<string>;
|
|
11
|
+
enableUpload?: boolean;
|
|
12
|
+
labels?: FilePickerLabels;
|
|
13
|
+
translate: (key: string) => string;
|
|
14
|
+
colLabel: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function FilePickerDialog({ open, onClose, onSelect, title, filterImageOnly, onFetchFiles, onUploadFile, enableUpload, labels, translate, colLabel, }: FilePickerDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
17
|
export declare const FilePicker: ({ column, schema, prefix }: InputDefaultProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -39,6 +39,10 @@ export interface FilePickerLabels {
|
|
|
39
39
|
noFilesFound?: string;
|
|
40
40
|
cancel?: string;
|
|
41
41
|
select?: string;
|
|
42
|
+
uploadTab?: string;
|
|
43
|
+
browseTab?: string;
|
|
44
|
+
uploading?: string;
|
|
45
|
+
uploadFailed?: string;
|
|
42
46
|
}
|
|
43
47
|
export interface CustomJSONSchema7 extends JSONSchema7 {
|
|
44
48
|
gridColumn?: string;
|
|
@@ -85,4 +89,6 @@ export interface FilePickerProps {
|
|
|
85
89
|
onFetchFiles?: (search: string) => Promise<FilePickerMediaFile[]>;
|
|
86
90
|
enableMediaLibrary?: boolean;
|
|
87
91
|
filterImageOnly?: boolean;
|
|
92
|
+
enableUpload?: boolean;
|
|
93
|
+
onUploadFile?: (file: File) => Promise<string>;
|
|
88
94
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export * from './components/Form/components/core/FormRoot';
|
|
|
118
118
|
export * from './components/Form/components/core/FormTitle';
|
|
119
119
|
export * from './components/Form/components/core/FormBody';
|
|
120
120
|
export * from './components/Form/components/types/CustomJSONSchema7';
|
|
121
|
+
export * from './components/Form/components/MediaLibraryBrowser';
|
|
121
122
|
export * from './components/Form/useForm';
|
|
122
123
|
export * from './components/Form/utils/buildErrorMessages';
|
|
123
124
|
export * from './components/DatePicker/DatePicker';
|