@bsol-oss/react-datatable5 11.0.0-beta.1 → 11.0.0-beta.10

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.
Files changed (50) hide show
  1. package/dist/index.d.ts +12 -5
  2. package/dist/index.js +841 -560
  3. package/dist/index.mjs +844 -564
  4. package/dist/types/components/DataTable/DataDisplay.d.ts +1 -1
  5. package/dist/types/components/DataTable/utils/getColumns.d.ts +2 -1
  6. package/dist/types/components/Form/Form.d.ts +8 -2
  7. package/dist/types/components/Form/SchemaFormContext.d.ts +1 -0
  8. package/dist/types/components/Form/components/ArrayRenderer.d.ts +7 -0
  9. package/dist/types/components/Form/components/BooleanPicker.d.ts +4 -1
  10. package/dist/types/components/Form/components/ColumnRenderer.d.ts +7 -0
  11. package/dist/types/components/Form/components/DatePicker.d.ts +4 -1
  12. package/dist/types/components/Form/components/EnumPicker.d.ts +4 -1
  13. package/dist/types/components/Form/components/FilePicker.d.ts +3 -1
  14. package/dist/types/components/Form/components/IdPicker.d.ts +4 -1
  15. package/dist/types/components/Form/components/NumberInputField.d.ts +4 -1
  16. package/dist/types/components/Form/components/ObjectInput.d.ts +5 -2
  17. package/dist/types/components/Form/components/RecordInput.d.ts +7 -0
  18. package/dist/types/components/Form/components/SchemaRenderer.d.ts +7 -0
  19. package/dist/types/components/Form/components/StringInputField.d.ts +4 -4
  20. package/dist/types/components/Form/components/TagPicker.d.ts +4 -1
  21. package/dist/types/components/Form/components/fields/ArrayRenderer.d.ts +7 -0
  22. package/dist/types/components/Form/components/fields/BooleanPicker.d.ts +7 -0
  23. package/dist/types/components/Form/components/fields/ColumnRenderer.d.ts +7 -0
  24. package/dist/types/components/Form/components/fields/DatePicker.d.ts +7 -0
  25. package/dist/types/components/Form/components/fields/EnumPicker.d.ts +8 -0
  26. package/dist/types/components/Form/components/fields/FilePicker.d.ts +5 -0
  27. package/dist/types/components/Form/components/fields/IdPicker.d.ts +8 -0
  28. package/dist/types/components/Form/components/fields/NumberInputField.d.ts +7 -0
  29. package/dist/types/components/Form/components/fields/ObjectInput.d.ts +7 -0
  30. package/dist/types/components/Form/components/fields/RecordInput.d.ts +7 -0
  31. package/dist/types/components/Form/components/fields/SchemaRenderer.d.ts +7 -0
  32. package/dist/types/components/Form/components/fields/StringInputField.d.ts +12 -0
  33. package/dist/types/components/Form/components/fields/TagPicker.d.ts +25 -0
  34. package/dist/types/components/Form/components/types/CustomJSONSchema7.d.ts +15 -0
  35. package/dist/types/components/Form/components/viewers/ArrayViewer.d.ts +7 -0
  36. package/dist/types/components/Form/components/viewers/BooleanViewer.d.ts +7 -0
  37. package/dist/types/components/Form/components/viewers/ColumnViewer.d.ts +7 -0
  38. package/dist/types/components/Form/components/viewers/DateViewer.d.ts +7 -0
  39. package/dist/types/components/Form/components/viewers/EnumViewer.d.ts +8 -0
  40. package/dist/types/components/Form/components/viewers/FileViewer.d.ts +5 -0
  41. package/dist/types/components/Form/components/viewers/IdViewer.d.ts +8 -0
  42. package/dist/types/components/Form/components/viewers/NumberViewer.d.ts +7 -0
  43. package/dist/types/components/Form/components/viewers/ObjectViewer.d.ts +7 -0
  44. package/dist/types/components/Form/components/viewers/RecordViewer.d.ts +7 -0
  45. package/dist/types/components/Form/components/viewers/SchemaViewer.d.ts +7 -0
  46. package/dist/types/components/Form/components/viewers/StringViewer.d.ts +12 -0
  47. package/dist/types/components/Form/components/viewers/TagViewer.d.ts +30 -0
  48. package/dist/types/components/Form/useSchemaContext.d.ts +2 -14
  49. package/dist/types/components/Form/utils/removeIndex.d.ts +1 -0
  50. package/package.json +3 -4
@@ -3,4 +3,4 @@ export interface DataDisplayProps {
3
3
  variant?: "horizontal" | "stats" | "";
4
4
  translate?: UseTranslationResponse<any, any>;
5
5
  }
6
- export declare const DataDisplay: ({ variant, translate }: DataDisplayProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const DataDisplay: ({ variant }: DataDisplayProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,7 @@ import { JSONSchema7 } from "json-schema";
3
3
  import { UseTranslationResponse } from "react-i18next";
4
4
  export interface GetColumnsConfigs<K extends RowData> {
5
5
  schema: JSONSchema7;
6
+ include?: K[];
6
7
  ignore?: K[];
7
8
  width?: number[];
8
9
  meta?: {
@@ -12,4 +13,4 @@ export interface GetColumnsConfigs<K extends RowData> {
12
13
  translate?: UseTranslationResponse<any, any>;
13
14
  }
14
15
  export declare const widthSanityCheck: <K extends unknown>(widthList: number[], ignoreList: K[], properties: { [key in K as string]?: object | undefined; }) => void;
15
- export declare const getColumns: <TData extends unknown>({ schema, ignore, width, meta, defaultWidth, translate, }: GetColumnsConfigs<TData>) => ColumnDef<TData>[];
16
+ export declare const getColumns: <TData extends unknown>({ schema, include, ignore, width, meta, defaultWidth, translate, }: GetColumnsConfigs<TData>) => ColumnDef<TData>[];
@@ -1,4 +1,4 @@
1
- import { ForeignKeyProps } from "@/components/Form/components/StringInputField";
1
+ import { ForeignKeyProps } from "@/components/Form/components/fields/StringInputField";
2
2
  import { AxiosRequestConfig } from "axios";
3
3
  import { JSONSchema7 } from "json-schema";
4
4
  import { Dispatch, SetStateAction } from "react";
@@ -14,6 +14,7 @@ export interface FormProps<TData extends FieldValues> {
14
14
  translate: UseTranslationResponse<any, any>;
15
15
  order?: string[];
16
16
  ignore?: string[];
17
+ include?: string[];
17
18
  onSubmit?: SubmitHandler<TData>;
18
19
  rowNumber?: number | string;
19
20
  requestOptions?: AxiosRequestConfig;
@@ -27,4 +28,9 @@ export interface CustomJSONSchema7Definition extends JSONSchema7 {
27
28
  gridRow: string;
28
29
  foreign_key: ForeignKeyProps;
29
30
  }
30
- export declare const Form: <TData extends FieldValues>({ schema, idMap, setIdMap, form, serverUrl, translate, order, ignore, onSubmit, rowNumber, requestOptions, }: FormProps<TData>) => import("react/jsx-runtime").JSX.Element;
31
+ export declare const idPickerSanityCheck: (column: string, foreign_key?: {
32
+ table?: string | undefined;
33
+ column?: string | undefined;
34
+ display_column?: string | undefined;
35
+ } | undefined) => void;
36
+ export declare const Form: <TData extends FieldValues>({ schema, idMap, setIdMap, form, serverUrl, translate, order, ignore, include, onSubmit, rowNumber, requestOptions, }: FormProps<TData>) => import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,7 @@ export interface SchemaFormContext<TData extends FieldValues> {
9
9
  requestUrl: string;
10
10
  order: string[];
11
11
  ignore: string[];
12
+ include: string[];
12
13
  onSubmit?: (data: TData) => Promise<void>;
13
14
  rowNumber?: number | string;
14
15
  idMap: Record<string, object>;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
2
+ export interface ArrayRendererProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const ArrayRenderer: ({ schema, column, prefix, }: ArrayRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface DatePickerProps {
2
3
  column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
3
6
  }
4
- export declare const BooleanPicker: ({ column }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const BooleanPicker: ({ schema, column, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
2
+ export interface ColumnRendererProps {
3
+ column: string;
4
+ properties: Record<string, CustomJSONSchema7>;
5
+ prefix: string;
6
+ }
7
+ export declare const ColumnRenderer: ({ column, properties, prefix, }: ColumnRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface DatePickerProps {
2
3
  column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
3
6
  }
4
- export declare const DatePicker: ({ column }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const DatePicker: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface IdPickerProps {
2
3
  column: string;
3
4
  isMultiple?: boolean;
5
+ schema: CustomJSONSchema7;
6
+ prefix: string;
4
7
  }
5
- export declare const EnumPicker: ({ column, isMultiple }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const EnumPicker: ({ column, isMultiple, schema, prefix, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
- export declare const FilePicker: ({ column }: {
1
+ export declare const FilePicker: ({ column, schema, prefix }: {
2
2
  column: any;
3
+ schema: any;
4
+ prefix: any;
3
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface IdPickerProps {
2
3
  column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
3
6
  isMultiple?: boolean;
4
7
  }
5
- export declare const IdPicker: ({ column, isMultiple }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const IdPicker: ({ column, schema, prefix, isMultiple, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface NumberInputFieldProps {
2
3
  column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
3
6
  }
4
- export declare const NumberInputField: ({ column }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const NumberInputField: ({ schema, column, prefix, }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
- export interface DatePickerProps {
1
+ import { CustomJSONSchema7 } from "./StringInputField";
2
+ export interface ObjectInputProps {
3
+ schema: CustomJSONSchema7;
2
4
  column: string;
5
+ prefix: string;
3
6
  }
4
- export declare const ObjectInput: ({ column }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ObjectInput: ({ schema, column, prefix }: ObjectInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
2
+ export interface DatePickerProps {
3
+ schema: CustomJSONSchema7;
4
+ column: string;
5
+ prefix: string;
6
+ }
7
+ export declare const RecordInput: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
2
+ export interface SchemaRendererProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const SchemaRenderer: ({ schema, prefix, column, }: SchemaRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,6 +2,8 @@ import { JSONSchema7 } from "json-schema";
2
2
  import { ReactNode } from "react";
3
3
  export interface StringInputFieldProps {
4
4
  column: string;
5
+ schema: CustomJSONSchema7;
6
+ prefix: string;
5
7
  }
6
8
  export interface ForeignKeyProps {
7
9
  column: string;
@@ -11,10 +13,8 @@ export interface ForeignKeyProps {
11
13
  export interface CustomJSONSchema7 extends JSONSchema7 {
12
14
  gridColumn?: string;
13
15
  gridRow?: string;
14
- title?: string;
15
- in_table?: string;
16
- object_id_column?: string;
17
16
  foreign_key?: ForeignKeyProps;
17
+ variant?: string;
18
18
  renderDisplay: (item: unknown) => ReactNode;
19
19
  }
20
- export declare const StringInputField: ({ column }: StringInputFieldProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const StringInputField: ({ column, schema, prefix, }: StringInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,8 @@
1
+ import { CustomJSONSchema7 } from "./StringInputField";
1
2
  export interface TagPickerProps {
2
3
  column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
3
6
  }
4
7
  export interface Tag {
5
8
  id: string;
@@ -24,4 +27,4 @@ export interface TagData {
24
27
  export interface TagResponse {
25
28
  data: TagData[];
26
29
  }
27
- export declare const TagPicker: ({ column }: TagPickerProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const TagPicker: ({ column, schema, prefix }: TagPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ArrayRendererProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const ArrayRenderer: ({ schema, column, prefix, }: ArrayRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface DatePickerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const BooleanPicker: ({ schema, column, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ColumnRendererProps {
3
+ column: string;
4
+ properties: Record<string, CustomJSONSchema7>;
5
+ prefix: string;
6
+ }
7
+ export declare const ColumnRenderer: ({ column, properties, prefix, }: ColumnRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface DatePickerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const DatePicker: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface IdPickerProps {
3
+ column: string;
4
+ isMultiple?: boolean;
5
+ schema: CustomJSONSchema7;
6
+ prefix: string;
7
+ }
8
+ export declare const EnumPicker: ({ column, isMultiple, schema, prefix, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const FilePicker: ({ column, schema, prefix }: {
2
+ column: any;
3
+ schema: any;
4
+ prefix: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface IdPickerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ isMultiple?: boolean;
7
+ }
8
+ export declare const IdPicker: ({ column, schema, prefix, isMultiple, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface NumberInputFieldProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const NumberInputField: ({ schema, column, prefix, }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ObjectInputProps {
3
+ schema: CustomJSONSchema7;
4
+ column: string;
5
+ prefix: string;
6
+ }
7
+ export declare const ObjectInput: ({ schema, column, prefix }: ObjectInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface DatePickerProps {
3
+ schema: CustomJSONSchema7;
4
+ column: string;
5
+ prefix: string;
6
+ }
7
+ export declare const RecordInput: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface SchemaRendererProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const SchemaRenderer: ({ schema, prefix, column, }: SchemaRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface StringInputFieldProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export interface ForeignKeyProps {
8
+ column: string;
9
+ table: string;
10
+ display_column: string;
11
+ }
12
+ export declare const StringInputField: ({ column, schema, prefix, }: StringInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { TagPickerProps } from "../types/CustomJSONSchema7";
2
+ export interface Tag {
3
+ id: string;
4
+ name: string;
5
+ comment: string | null;
6
+ extra_info: string | null;
7
+ created_at: string;
8
+ updated_at: string;
9
+ table_id: string | null;
10
+ parent_id: string;
11
+ }
12
+ export interface AllTags {
13
+ [tagName: string]: Tag;
14
+ }
15
+ export interface TagData {
16
+ table_name: string;
17
+ parent_tag_name: string;
18
+ parent_tag_id: string;
19
+ all_tags: AllTags;
20
+ is_mutually_exclusive: boolean;
21
+ }
22
+ export interface TagResponse {
23
+ data: TagData[];
24
+ }
25
+ export declare const TagPicker: ({ column, schema, prefix }: TagPickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { JSONSchema7 } from "json-schema";
2
+ import { ReactNode } from "react";
3
+ import { ForeignKeyProps } from "../fields/StringInputField";
4
+ export interface CustomJSONSchema7 extends JSONSchema7 {
5
+ gridColumn?: string;
6
+ gridRow?: string;
7
+ foreign_key?: ForeignKeyProps;
8
+ variant?: string;
9
+ renderDisplay: (item: unknown) => ReactNode;
10
+ }
11
+ export interface TagPickerProps {
12
+ column: string;
13
+ schema: CustomJSONSchema7;
14
+ prefix: string;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ArrayViewerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const ArrayViewer: ({ schema, column, prefix }: ArrayViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface BooleanViewerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const BooleanViewer: ({ schema, column, prefix, }: BooleanViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ColumnViewerProps {
3
+ column: string;
4
+ properties: Record<string, CustomJSONSchema7>;
5
+ prefix: string;
6
+ }
7
+ export declare const ColumnViewer: ({ column, properties, prefix, }: ColumnViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface DateViewerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const DateViewer: ({ column, schema, prefix }: DateViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface EnumViewerProps {
3
+ column: string;
4
+ isMultiple?: boolean;
5
+ schema: CustomJSONSchema7;
6
+ prefix: string;
7
+ }
8
+ export declare const EnumViewer: ({ column, isMultiple, schema, prefix, }: EnumViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const FileViewer: ({ column, schema, prefix }: {
2
+ column: any;
3
+ schema: any;
4
+ prefix: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface IdViewerProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ isMultiple?: boolean;
7
+ }
8
+ export declare const IdViewer: ({ column, schema, prefix, isMultiple, }: IdViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface NumberInputFieldProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const NumberViewer: ({ schema, column, prefix, }: NumberInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface ObjectViewerProps {
3
+ schema: CustomJSONSchema7;
4
+ column: string;
5
+ prefix: string;
6
+ }
7
+ export declare const ObjectViewer: ({ schema, column, prefix }: ObjectViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface DatePickerProps {
3
+ schema: CustomJSONSchema7;
4
+ column: string;
5
+ prefix: string;
6
+ }
7
+ export declare const RecordInput: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface SchemaRendererProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export declare const SchemaViewer: ({ schema, prefix, column, }: SchemaRendererProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface StringInputFieldProps {
3
+ column: string;
4
+ schema: CustomJSONSchema7;
5
+ prefix: string;
6
+ }
7
+ export interface ForeignKeyProps {
8
+ column: string;
9
+ table: string;
10
+ display_column: string;
11
+ }
12
+ export declare const StringViewer: ({ column, schema, prefix, }: StringInputFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
2
+ export interface Tag {
3
+ id: string;
4
+ name: string;
5
+ comment: string | null;
6
+ extra_info: string | null;
7
+ created_at: string;
8
+ updated_at: string;
9
+ table_id: string | null;
10
+ parent_id: string;
11
+ }
12
+ export interface AllTags {
13
+ [tagName: string]: Tag;
14
+ }
15
+ export interface TagData {
16
+ table_name: string;
17
+ parent_tag_name: string;
18
+ parent_tag_id: string;
19
+ all_tags: AllTags;
20
+ is_mutually_exclusive: boolean;
21
+ }
22
+ export interface TagResponse {
23
+ data: TagData[];
24
+ }
25
+ export interface TagViewerProps {
26
+ column: string;
27
+ schema: CustomJSONSchema7;
28
+ prefix: string;
29
+ }
30
+ export declare const TagViewer: ({ column, schema, prefix }: TagViewerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const useSchemaContext: () => {
3
- schema: import("json-schema").JSONSchema7;
4
- serverUrl: string;
5
- requestUrl: string;
6
- order: string[];
7
- ignore: string[];
8
- onSubmit: ((data: unknown) => Promise<void>) | undefined;
9
- rowNumber: string | number | undefined;
10
- idMap: Record<string, object>;
11
- setIdMap: import("react").Dispatch<import("react").SetStateAction<Record<string, object>>>;
12
- translate: import("react-i18next").UseTranslationResponse<any, any>;
13
- requestOptions: import("axios").AxiosRequestConfig<any>;
14
- };
1
+ import { SchemaFormContext } from "./SchemaFormContext";
2
+ export declare const useSchemaContext: () => SchemaFormContext<unknown>;
@@ -0,0 +1 @@
1
+ export declare function removeIndex(str: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsol-oss/react-datatable5",
3
- "version": "11.0.0-beta.1",
3
+ "version": "11.0.0-beta.10",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -49,12 +49,11 @@
49
49
  "react": "^19.0.0",
50
50
  "react-dom": "^19.0.0",
51
51
  "react-hook-form": "^7.54.2",
52
+ "react-i18next": "^15.4.1",
52
53
  "react-icons": "^5.4.0",
53
- "tiny-invariant": "^1.3.3",
54
- "react-i18next": "^15.4.1"
54
+ "tiny-invariant": "^1.3.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@chromatic-com/storybook": "^3.2.3",
58
57
  "@rollup/plugin-alias": "^5.1.1",
59
58
  "@rollup/plugin-typescript": "^11.1.6",
60
59
  "@storybook/addon-essentials": "^8.4.7",