@bsol-oss/react-datatable5 12.0.0-beta.6 → 12.0.0-beta.60
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/README.md +192 -0
- package/dist/index.d.ts +212 -91
- package/dist/index.js +1396 -426
- package/dist/index.mjs +1402 -432
- package/dist/types/components/DataTable/DataTable.d.ts +4 -2
- package/dist/types/components/DataTable/DataTableServer.d.ts +4 -2
- package/dist/types/components/DataTable/DefaultTable.d.ts +9 -12
- package/dist/types/components/DataTable/context/DataTableContext.d.ts +22 -3
- package/dist/types/components/DataTable/context/useDataTableContext.d.ts +2 -2
- package/dist/types/components/DataTable/controls/DensityFeature.d.ts +23 -0
- package/dist/types/components/DataTable/controls/DensityToggleButton.d.ts +6 -0
- package/dist/types/components/DataTable/controls/EditSortingButton.d.ts +7 -0
- package/dist/types/components/DataTable/controls/FilterDialog.d.ts +5 -0
- package/dist/types/components/DataTable/controls/PageSizeControl.d.ts +4 -0
- package/dist/types/components/DataTable/controls/Pagination.d.ts +1 -0
- package/dist/types/components/DataTable/controls/ReloadButton.d.ts +4 -0
- package/dist/types/components/DataTable/controls/ResetFilteringButton.d.ts +1 -0
- package/dist/types/components/DataTable/controls/ResetSelectionButton.d.ts +1 -0
- package/dist/types/components/DataTable/controls/ResetSortingButton.d.ts +1 -0
- package/dist/types/components/DataTable/controls/RowCountText.d.ts +1 -0
- package/dist/types/components/DataTable/controls/SelectAllRowsToggle.d.ts +8 -0
- package/dist/types/components/DataTable/controls/TableControls.d.ts +29 -0
- package/dist/types/components/DataTable/controls/TableFilterTags.d.ts +1 -0
- package/dist/types/components/DataTable/controls/TableFilters.d.ts +1 -0
- package/dist/types/components/DataTable/controls/TableSelector.d.ts +1 -0
- package/dist/types/components/DataTable/controls/TableSorter.d.ts +1 -0
- package/dist/types/components/DataTable/controls/TableViewer.d.ts +1 -0
- package/dist/types/components/DataTable/controls/ViewDialog.d.ts +5 -0
- package/dist/types/components/DataTable/display/CardHeader.d.ts +13 -0
- package/dist/types/components/DataTable/display/DataDisplay.d.ts +6 -0
- package/dist/types/components/DataTable/display/EmptyState.d.ts +5 -0
- package/dist/types/components/DataTable/display/ErrorAlert.d.ts +4 -0
- package/dist/types/components/DataTable/display/RecordDisplay.d.ts +9 -0
- package/dist/types/components/DataTable/display/Table.d.ts +10 -0
- package/dist/types/components/DataTable/display/TableBody.d.ts +20 -0
- package/dist/types/components/DataTable/display/TableCardContainer.d.ts +10 -0
- package/dist/types/components/DataTable/display/TableCards.d.ts +11 -0
- package/dist/types/components/DataTable/display/TableComponent.d.ts +6 -0
- package/dist/types/components/DataTable/display/TableDataDisplay.d.ts +6 -0
- package/dist/types/components/DataTable/display/TableFooter.d.ts +5 -0
- package/dist/types/components/DataTable/display/TableHeader.d.ts +51 -0
- package/dist/types/components/DataTable/display/TableLoadingComponent.d.ts +5 -0
- package/dist/types/components/DataTable/display/TextCell.d.ts +10 -0
- package/dist/types/components/DataTable/useDataTable.d.ts +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +23 -0
- package/dist/types/components/DatePicker/DateTimePicker.d.ts +11 -0
- package/dist/types/components/DatePicker/DurationPicker.d.ts +12 -0
- package/dist/types/components/DatePicker/IsoTimePicker.d.ts +16 -0
- package/dist/types/components/DatePicker/PickerDemo.d.ts +1 -0
- package/dist/types/components/DatePicker/UniversalPicker.d.ts +9 -0
- package/dist/types/components/DatePicker/index.d.ts +7 -0
- package/dist/types/components/Filter/TagFilter.d.ts +5 -1
- package/dist/types/components/Form/SchemaFormContext.d.ts +3 -1
- package/dist/types/components/Form/components/core/DefaultForm.d.ts +2 -1
- package/dist/types/components/Form/components/core/FormRoot.d.ts +4 -2
- package/dist/types/components/Form/components/fields/CustomInput.d.ts +8 -0
- package/dist/types/components/Form/components/fields/DatePicker.d.ts +2 -7
- package/dist/types/components/Form/components/fields/DateTimePicker.d.ts +2 -0
- package/dist/types/components/Form/components/fields/EnumPicker.d.ts +2 -1
- package/dist/types/components/Form/components/fields/FilePicker.d.ts +2 -5
- package/dist/types/components/Form/components/fields/StringInputField.d.ts +2 -5
- package/dist/types/components/Form/components/fields/TextAreaInput.d.ts +12 -0
- package/dist/types/components/Form/components/fields/TimePicker.d.ts +7 -0
- package/dist/types/components/Form/components/fields/types.d.ts +6 -0
- package/dist/types/components/Form/components/types/CustomJSONSchema7.d.ts +19 -1
- package/dist/types/components/Form/components/viewers/CustomViewer.d.ts +8 -0
- package/dist/types/components/Form/components/viewers/DateTimeViewer.d.ts +7 -0
- package/dist/types/components/Form/components/viewers/TextAreaViewer.d.ts +12 -0
- package/dist/types/components/Form/components/viewers/TimeViewer.d.ts +7 -0
- package/dist/types/components/Form/utils/translateWrapper.d.ts +6 -0
- package/dist/types/components/Form/utils/validation.d.ts +104 -0
- package/dist/types/components/TimePicker/TimePicker.d.ts +20 -0
- package/dist/types/index.d.ts +48 -33
- package/package.json +9 -2
|
@@ -4,8 +4,9 @@ import { JSONSchema7 } from "json-schema";
|
|
|
4
4
|
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
5
5
|
import { FieldValues, SubmitHandler, UseFormReturn } from "react-hook-form";
|
|
6
6
|
import { UseTranslationResponse } from "react-i18next";
|
|
7
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
7
8
|
export interface FormRootProps<TData extends FieldValues> {
|
|
8
|
-
schema:
|
|
9
|
+
schema: CustomJSONSchema7;
|
|
9
10
|
serverUrl: string;
|
|
10
11
|
requestUrl?: string;
|
|
11
12
|
idMap: Record<string, object>;
|
|
@@ -20,6 +21,7 @@ export interface FormRootProps<TData extends FieldValues> {
|
|
|
20
21
|
rowNumber?: number | string;
|
|
21
22
|
requestOptions?: AxiosRequestConfig;
|
|
22
23
|
getUpdatedData?: () => TData | Promise<TData> | void;
|
|
24
|
+
customErrorRenderer?: (error: unknown) => ReactNode;
|
|
23
25
|
}
|
|
24
26
|
export interface CustomJSONSchema7Definition extends JSONSchema7 {
|
|
25
27
|
variant: string;
|
|
@@ -36,4 +38,4 @@ export declare const idPickerSanityCheck: (column: string, foreign_key?: {
|
|
|
36
38
|
column?: string | undefined;
|
|
37
39
|
display_column?: string | undefined;
|
|
38
40
|
} | undefined) => void;
|
|
39
|
-
export declare const FormRoot: <TData extends FieldValues>({ schema, idMap, setIdMap, form, serverUrl, translate, children, order, ignore, include, onSubmit, rowNumber, requestOptions, getUpdatedData, }: FormRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const FormRoot: <TData extends FieldValues>({ schema, idMap, setIdMap, form, serverUrl, translate, children, order, ignore, include, onSubmit, rowNumber, requestOptions, getUpdatedData, customErrorRenderer, }: FormRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
3
|
+
export interface DatePickerProps {
|
|
4
|
+
column: string;
|
|
5
|
+
schema: CustomJSONSchema7;
|
|
6
|
+
prefix: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CustomInput: ({ column, schema, prefix }: DatePickerProps) => import("react").ReactNode;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
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;
|
|
1
|
+
import { InputDefaultProps } from "./types";
|
|
2
|
+
export declare const DatePicker: ({ column, schema, prefix }: InputDefaultProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,5 +4,6 @@ export interface IdPickerProps {
|
|
|
4
4
|
isMultiple?: boolean;
|
|
5
5
|
schema: CustomJSONSchema7;
|
|
6
6
|
prefix: string;
|
|
7
|
+
showTotalAndLimit?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const EnumPicker: ({ column, isMultiple, schema, prefix, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const EnumPicker: ({ column, isMultiple, schema, prefix, showTotalAndLimit, }: IdPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
schema: any;
|
|
4
|
-
prefix: any;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { InputDefaultProps } from "./types";
|
|
2
|
+
export declare const FilePicker: ({ column, schema, prefix }: InputDefaultProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface StringInputFieldProps {
|
|
3
|
-
column: string;
|
|
4
|
-
schema: CustomJSONSchema7;
|
|
5
|
-
prefix: string;
|
|
1
|
+
import { InputDefaultProps } from "./types";
|
|
2
|
+
export interface StringInputFieldProps extends InputDefaultProps {
|
|
6
3
|
}
|
|
7
4
|
export interface ForeignKeyProps {
|
|
8
5
|
column: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
2
|
+
export interface TextAreaInputProps {
|
|
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 TextAreaInput: ({ column, schema, prefix, }: TextAreaInputProps) => 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 TimePicker: ({ column, schema, prefix }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import { JSONSchema7 } from "json-schema";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { ForeignKeyProps } from "../fields/StringInputField";
|
|
4
|
+
import { UseFormReturn } from "react-hook-form";
|
|
4
5
|
export interface CustomJSONSchema7 extends JSONSchema7 {
|
|
5
6
|
gridColumn?: string;
|
|
6
7
|
gridRow?: string;
|
|
7
8
|
foreign_key?: ForeignKeyProps;
|
|
8
9
|
variant?: string;
|
|
9
|
-
renderDisplay
|
|
10
|
+
renderDisplay?: (item: unknown) => ReactNode;
|
|
11
|
+
inputRender?: (props: {
|
|
12
|
+
column: string;
|
|
13
|
+
schema: CustomJSONSchema7;
|
|
14
|
+
prefix: string;
|
|
15
|
+
formContext: UseFormReturn;
|
|
16
|
+
}) => ReactNode;
|
|
17
|
+
inputViewerRender?: (props: {
|
|
18
|
+
column: string;
|
|
19
|
+
schema: CustomJSONSchema7;
|
|
20
|
+
prefix: string;
|
|
21
|
+
formContext: UseFormReturn;
|
|
22
|
+
}) => ReactNode;
|
|
23
|
+
dateFormat?: string;
|
|
24
|
+
displayDateFormat?: string;
|
|
25
|
+
timeFormat?: string;
|
|
26
|
+
displayTimeFormat?: string;
|
|
27
|
+
showLabel?: boolean;
|
|
10
28
|
}
|
|
11
29
|
export interface TagPickerProps {
|
|
12
30
|
column: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
3
|
+
export interface DatePickerProps {
|
|
4
|
+
column: string;
|
|
5
|
+
schema: CustomJSONSchema7;
|
|
6
|
+
prefix: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const CustomViewer: ({ column, schema, prefix }: DatePickerProps) => import("react").ReactNode;
|
|
@@ -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 DateTimeViewer: ({ column, schema, prefix }: DateViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
2
|
+
export interface TextAreaViewerProps {
|
|
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 TextAreaViewer: ({ column, schema, prefix, }: TextAreaViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CustomJSONSchema7 } from "../types/CustomJSONSchema7";
|
|
2
|
+
export interface TimeViewerProps {
|
|
3
|
+
column: string;
|
|
4
|
+
schema: CustomJSONSchema7;
|
|
5
|
+
prefix: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TimeViewer: ({ column, schema, prefix }: TimeViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { JSONSchema7 } from "json-schema";
|
|
2
|
+
declare const errorMessages: {
|
|
3
|
+
en: {
|
|
4
|
+
required: (field: string) => string;
|
|
5
|
+
format: (format: string) => string;
|
|
6
|
+
type: (expectedType: string, actualType: string) => string;
|
|
7
|
+
minLength: (limit: number) => string;
|
|
8
|
+
maxLength: (limit: number) => string;
|
|
9
|
+
minimum: (limit: number) => string;
|
|
10
|
+
maximum: (limit: number) => string;
|
|
11
|
+
pattern: () => string;
|
|
12
|
+
enum: (allowedValues: string[]) => string;
|
|
13
|
+
default: () => string;
|
|
14
|
+
};
|
|
15
|
+
'zh-HK': {
|
|
16
|
+
required: (field: string) => string;
|
|
17
|
+
format: (format: string) => string;
|
|
18
|
+
type: (expectedType: string, actualType: string) => string;
|
|
19
|
+
minLength: (limit: number) => string;
|
|
20
|
+
maxLength: (limit: number) => string;
|
|
21
|
+
minimum: (limit: number) => string;
|
|
22
|
+
maximum: (limit: number) => string;
|
|
23
|
+
pattern: () => string;
|
|
24
|
+
enum: (allowedValues: string[]) => string;
|
|
25
|
+
default: () => string;
|
|
26
|
+
};
|
|
27
|
+
'zh-TW': {
|
|
28
|
+
required: (field: string) => string;
|
|
29
|
+
format: (format: string) => string;
|
|
30
|
+
type: (expectedType: string, actualType: string) => string;
|
|
31
|
+
minLength: (limit: number) => string;
|
|
32
|
+
maxLength: (limit: number) => string;
|
|
33
|
+
minimum: (limit: number) => string;
|
|
34
|
+
maximum: (limit: number) => string;
|
|
35
|
+
pattern: () => string;
|
|
36
|
+
enum: (allowedValues: string[]) => string;
|
|
37
|
+
default: () => string;
|
|
38
|
+
};
|
|
39
|
+
'zh-CN': {
|
|
40
|
+
required: (field: string) => string;
|
|
41
|
+
format: (format: string) => string;
|
|
42
|
+
type: (expectedType: string, actualType: string) => string;
|
|
43
|
+
minLength: (limit: number) => string;
|
|
44
|
+
maxLength: (limit: number) => string;
|
|
45
|
+
minimum: (limit: number) => string;
|
|
46
|
+
maximum: (limit: number) => string;
|
|
47
|
+
pattern: () => string;
|
|
48
|
+
enum: (allowedValues: string[]) => string;
|
|
49
|
+
default: () => string;
|
|
50
|
+
};
|
|
51
|
+
zh: {
|
|
52
|
+
required: (field: string) => string;
|
|
53
|
+
format: (format: string) => string;
|
|
54
|
+
type: (expectedType: string, actualType: string) => string;
|
|
55
|
+
minLength: (limit: number) => string;
|
|
56
|
+
maxLength: (limit: number) => string;
|
|
57
|
+
minimum: (limit: number) => string;
|
|
58
|
+
maximum: (limit: number) => string;
|
|
59
|
+
pattern: () => string;
|
|
60
|
+
enum: (allowedValues: string[]) => string;
|
|
61
|
+
default: () => string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type SupportedLocale = keyof typeof errorMessages;
|
|
65
|
+
export interface ValidationError {
|
|
66
|
+
field: string;
|
|
67
|
+
message: string;
|
|
68
|
+
value?: unknown;
|
|
69
|
+
schemaPath?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface ValidationResult {
|
|
72
|
+
isValid: boolean;
|
|
73
|
+
errors: ValidationError[];
|
|
74
|
+
}
|
|
75
|
+
export interface ValidationOptions {
|
|
76
|
+
locale?: SupportedLocale;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Validates data against a JSON Schema using AJV with i18n support
|
|
80
|
+
* @param data - The data to validate
|
|
81
|
+
* @param schema - The JSON Schema to validate against
|
|
82
|
+
* @param options - Validation options including locale
|
|
83
|
+
* @returns ValidationResult containing validation status and errors
|
|
84
|
+
*/
|
|
85
|
+
export declare const validateData: (data: unknown, schema: JSONSchema7, options?: ValidationOptions) => ValidationResult;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a reusable validator function for a specific schema with i18n support
|
|
88
|
+
* @param schema - The JSON Schema to create validator for
|
|
89
|
+
* @param locale - The locale to use for error messages
|
|
90
|
+
* @returns A function that validates data against the schema
|
|
91
|
+
*/
|
|
92
|
+
export declare const createSchemaValidator: (schema: JSONSchema7, locale?: SupportedLocale) => (data: unknown) => ValidationResult;
|
|
93
|
+
/**
|
|
94
|
+
* Get available locales for validation error messages
|
|
95
|
+
* @returns Array of supported locale codes
|
|
96
|
+
*/
|
|
97
|
+
export declare const getSupportedLocales: () => SupportedLocale[];
|
|
98
|
+
/**
|
|
99
|
+
* Check if a locale is supported
|
|
100
|
+
* @param locale - The locale to check
|
|
101
|
+
* @returns Boolean indicating if the locale is supported
|
|
102
|
+
*/
|
|
103
|
+
export declare const isLocaleSupported: (locale: string) => locale is "en" | "zh-HK" | "zh-TW" | "zh-CN" | "zh";
|
|
104
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
interface TimePickerProps {
|
|
3
|
+
hour: number | null;
|
|
4
|
+
setHour: Dispatch<SetStateAction<number | null>>;
|
|
5
|
+
minute: number | null;
|
|
6
|
+
setMinute: Dispatch<SetStateAction<number | null>>;
|
|
7
|
+
meridiem: "am" | "pm" | null;
|
|
8
|
+
setMeridiem: Dispatch<SetStateAction<"am" | "pm" | null>>;
|
|
9
|
+
onChange?: (newValue: {
|
|
10
|
+
hour: number | null;
|
|
11
|
+
minute: number | null;
|
|
12
|
+
meridiem: "am" | "pm" | null;
|
|
13
|
+
}) => void;
|
|
14
|
+
meridiemLabel?: {
|
|
15
|
+
am: string;
|
|
16
|
+
pm: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare function TimePicker({ hour, setHour, minute, setMinute, meridiem, setMeridiem, meridiemLabel, onChange, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,6 +12,17 @@ declare module "@tanstack/react-table" {
|
|
|
12
12
|
* The display name of the column, used for rendering headers.
|
|
13
13
|
*/
|
|
14
14
|
displayName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text configuration for the column header menu items.
|
|
17
|
+
* These strings can be customized per column.
|
|
18
|
+
*/
|
|
19
|
+
headerTexts?: {
|
|
20
|
+
pinColumn?: string;
|
|
21
|
+
cancelPin?: string;
|
|
22
|
+
sortAscending?: string;
|
|
23
|
+
sortDescending?: string;
|
|
24
|
+
clearSorting?: string;
|
|
25
|
+
};
|
|
15
26
|
/**
|
|
16
27
|
* Specifies the type of filter to be used for the column.
|
|
17
28
|
*
|
|
@@ -32,7 +43,10 @@ declare module "@tanstack/react-table" {
|
|
|
32
43
|
/**
|
|
33
44
|
* Options for the select filter variant, if applicable.
|
|
34
45
|
*/
|
|
35
|
-
filterOptions?:
|
|
46
|
+
filterOptions?: {
|
|
47
|
+
label: string;
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
36
50
|
/**
|
|
37
51
|
* Configuration for the range filter variant, if applicable.
|
|
38
52
|
*
|
|
@@ -57,44 +71,45 @@ declare module "@tanstack/react-table" {
|
|
|
57
71
|
renderFilter?: (column: Column<TData>) => ReactNode;
|
|
58
72
|
}
|
|
59
73
|
}
|
|
60
|
-
export * from "./components/
|
|
61
|
-
export * from "./components/
|
|
62
|
-
export * from "./components/
|
|
63
|
-
export * from "./components/
|
|
64
|
-
export * from "./components/
|
|
65
|
-
export * from "./components/
|
|
66
|
-
export * from "./components/
|
|
67
|
-
export * from "./components/
|
|
68
|
-
export * from "./components/
|
|
69
|
-
export * from "./components/
|
|
70
|
-
export * from "./components/DataTable/CardHeader";
|
|
71
|
-
export * from "./components/DataTable/
|
|
72
|
-
export * from "./components/DataTable/
|
|
74
|
+
export * from "./components/DataTable/controls/DensityToggleButton";
|
|
75
|
+
export * from "./components/DataTable/controls/EditSortingButton";
|
|
76
|
+
export * from "./components/DataTable/controls/FilterDialog";
|
|
77
|
+
export * from "./components/DataTable/controls/PageSizeControl";
|
|
78
|
+
export * from "./components/DataTable/controls/Pagination";
|
|
79
|
+
export * from "./components/DataTable/controls/ResetFilteringButton";
|
|
80
|
+
export * from "./components/DataTable/controls/ResetSelectionButton";
|
|
81
|
+
export * from "./components/DataTable/controls/ResetSortingButton";
|
|
82
|
+
export * from "./components/DataTable/controls/RowCountText";
|
|
83
|
+
export * from "./components/DataTable/controls/ViewDialog";
|
|
84
|
+
export * from "./components/DataTable/display/CardHeader";
|
|
85
|
+
export * from "./components/DataTable/display/EmptyState";
|
|
86
|
+
export * from "./components/DataTable/display/ErrorAlert";
|
|
73
87
|
export * from "./components/DataTable/context/useDataTableContext";
|
|
74
|
-
export * from "./components/DataTable/DataDisplay";
|
|
88
|
+
export * from "./components/DataTable/display/DataDisplay";
|
|
75
89
|
export * from "./components/DataTable/DataTable";
|
|
76
90
|
export * from "./components/DataTable/DataTableServer";
|
|
77
91
|
export * from "./components/DataTable/DefaultTable";
|
|
78
|
-
export * from "./components/DataTable/ReloadButton";
|
|
79
|
-
export * from "./components/DataTable/Table";
|
|
80
|
-
export * from "./components/DataTable/TableBody";
|
|
81
|
-
export * from "./components/DataTable/TableCardContainer";
|
|
82
|
-
export * from "./components/DataTable/TableCards";
|
|
83
|
-
export * from "./components/DataTable/TableComponent";
|
|
84
|
-
export * from "./components/DataTable/TableControls";
|
|
85
|
-
export * from "./components/DataTable/TableFilters";
|
|
86
|
-
export * from "./components/DataTable/TableFilterTags";
|
|
87
|
-
export * from "./components/DataTable/TableFooter";
|
|
88
|
-
export * from "./components/DataTable/TableHeader";
|
|
89
|
-
export
|
|
90
|
-
export * from "./components/DataTable/
|
|
91
|
-
export * from "./components/DataTable/
|
|
92
|
-
export * from "./components/DataTable/
|
|
93
|
-
export * from "./components/DataTable/
|
|
92
|
+
export * from "./components/DataTable/controls/ReloadButton";
|
|
93
|
+
export * from "./components/DataTable/display/Table";
|
|
94
|
+
export * from "./components/DataTable/display/TableBody";
|
|
95
|
+
export * from "./components/DataTable/display/TableCardContainer";
|
|
96
|
+
export * from "./components/DataTable/display/TableCards";
|
|
97
|
+
export * from "./components/DataTable/display/TableComponent";
|
|
98
|
+
export * from "./components/DataTable/controls/TableControls";
|
|
99
|
+
export * from "./components/DataTable/controls/TableFilters";
|
|
100
|
+
export * from "./components/DataTable/controls/TableFilterTags";
|
|
101
|
+
export * from "./components/DataTable/display/TableFooter";
|
|
102
|
+
export * from "./components/DataTable/display/TableHeader";
|
|
103
|
+
export type { TableHeaderTexts } from "./components/DataTable/display/TableHeader";
|
|
104
|
+
export * from "./components/DataTable/display/TableLoadingComponent";
|
|
105
|
+
export * from "./components/DataTable/controls/TableSelector";
|
|
106
|
+
export * from "./components/DataTable/controls/TableSorter";
|
|
107
|
+
export * from "./components/DataTable/controls/TableViewer";
|
|
108
|
+
export * from "./components/DataTable/display/TextCell";
|
|
94
109
|
export * from "./components/DataTable/useDataTable";
|
|
95
110
|
export * from "./components/DataTable/useDataTableServer";
|
|
96
111
|
export * from "./components/DataTable/utils/getColumns";
|
|
97
|
-
export * from "./components/
|
|
112
|
+
export * from "./components/DataTable/display/TableDataDisplay";
|
|
98
113
|
export * from "./components/Filter/GlobalFilter";
|
|
99
114
|
export * from "./components/Form/components/core/DefaultForm";
|
|
100
115
|
export * from "./components/Form/components/core/FormRoot";
|
|
@@ -105,4 +120,4 @@ export * from "./components/DatePicker/DatePicker";
|
|
|
105
120
|
export * from "./components/DatePicker/getMultiDates";
|
|
106
121
|
export * from "./components/DatePicker/getRangeDates";
|
|
107
122
|
export * from "./components/DatePicker/RangeDatePicker";
|
|
108
|
-
export * from "./components/DataTable/
|
|
123
|
+
export * from "./components/DataTable/display/RecordDisplay";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bsol-oss/react-datatable5",
|
|
3
|
-
"version": "12.0.0-beta.
|
|
3
|
+
"version": "12.0.0-beta.60",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,12 +37,15 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@atlaskit/pragmatic-drag-and-drop": "^1.4.0",
|
|
39
39
|
"@bsol-oss/dayzed-react19": "^0.0.4",
|
|
40
|
-
"@chakra-ui/react": "^3.
|
|
40
|
+
"@chakra-ui/react": "^3.19.1",
|
|
41
41
|
"@emotion/react": "^11.13.5",
|
|
42
42
|
"@tanstack/match-sorter-utils": "^8.15.1",
|
|
43
43
|
"@tanstack/react-query": "^5.66.9",
|
|
44
44
|
"@tanstack/react-table": "^8.21.2",
|
|
45
45
|
"@uidotdev/usehooks": "^2.4.1",
|
|
46
|
+
"ajv": "^8.12.0",
|
|
47
|
+
"ajv-errors": "^3.0.0",
|
|
48
|
+
"ajv-formats": "^3.0.1",
|
|
46
49
|
"axios": "^1.7.9",
|
|
47
50
|
"dayjs": "^1.11.13",
|
|
48
51
|
"next-themes": "^0.4.4",
|
|
@@ -63,6 +66,7 @@
|
|
|
63
66
|
"@storybook/react": "^8.4.7",
|
|
64
67
|
"@storybook/react-vite": "^8.4.7",
|
|
65
68
|
"@storybook/test": "^8.4.7",
|
|
69
|
+
"@types/ajv-errors": "^2.0.0",
|
|
66
70
|
"@types/json-schema": "^7.0.15",
|
|
67
71
|
"@types/react": "19.0.2",
|
|
68
72
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
@@ -70,6 +74,9 @@
|
|
|
70
74
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
71
75
|
"@typescript-eslint/parser": "^7.2.0",
|
|
72
76
|
"@vitejs/plugin-react": "^4.2.1",
|
|
77
|
+
"ajv": "^8.12.0",
|
|
78
|
+
"ajv-formats": "^3.0.1",
|
|
79
|
+
"ajv-errors": "^3.0.0",
|
|
73
80
|
"eslint": "^8.57.0",
|
|
74
81
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
75
82
|
"eslint-plugin-react-refresh": "^0.4.6",
|