@bsol-oss/react-datatable5 13.0.1-beta.3 → 13.0.1-beta.5
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 +24 -18
- package/dist/index.js +661 -209
- package/dist/index.mjs +661 -209
- package/dist/types/components/DatePicker/DatePicker.d.ts +24 -0
- package/dist/types/components/DatePicker/DateTimePicker.d.ts +14 -1
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/Form/components/fields/FilePicker.d.ts +1 -1
- package/dist/types/components/Form/components/viewers/EnumViewer.d.ts +1 -1
- package/dist/types/components/Form/utils/useFormI18n.d.ts +2 -2
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/components/DatePicker/DatePickerInput.d.ts +0 -18
|
@@ -30,6 +30,9 @@ export interface DatePickerProps {
|
|
|
30
30
|
weekdayNamesShort: string[];
|
|
31
31
|
backButtonLabel?: string;
|
|
32
32
|
forwardButtonLabel?: string;
|
|
33
|
+
todayLabel?: string;
|
|
34
|
+
yesterdayLabel?: string;
|
|
35
|
+
tomorrowLabel?: string;
|
|
33
36
|
};
|
|
34
37
|
render?: (calendarData: CalendarRenderProps) => React.ReactNode;
|
|
35
38
|
}
|
|
@@ -38,6 +41,27 @@ export interface DatePickerLabels {
|
|
|
38
41
|
weekdayNamesShort: string[];
|
|
39
42
|
backButtonLabel?: string;
|
|
40
43
|
forwardButtonLabel?: string;
|
|
44
|
+
todayLabel?: string;
|
|
45
|
+
yesterdayLabel?: string;
|
|
46
|
+
tomorrowLabel?: string;
|
|
41
47
|
}
|
|
42
48
|
declare const DatePicker: React.FC<DatePickerProps>;
|
|
43
49
|
export default DatePicker;
|
|
50
|
+
export interface DatePickerInputProps {
|
|
51
|
+
value?: string | Date;
|
|
52
|
+
onChange?: (date?: string) => void;
|
|
53
|
+
placeholder?: string;
|
|
54
|
+
dateFormat?: string;
|
|
55
|
+
displayFormat?: string;
|
|
56
|
+
labels?: DatePickerLabels;
|
|
57
|
+
timezone?: string;
|
|
58
|
+
minDate?: Date;
|
|
59
|
+
maxDate?: Date;
|
|
60
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
61
|
+
showOutsideDays?: boolean;
|
|
62
|
+
monthsToDisplay?: number;
|
|
63
|
+
insideDialog?: boolean;
|
|
64
|
+
readOnly?: boolean;
|
|
65
|
+
showHelperButtons?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare function DatePickerInput({ value, onChange, placeholder, dateFormat, displayFormat, labels, timezone, minDate, maxDate, firstDayOfWeek, showOutsideDays, monthsToDisplay, insideDialog, readOnly, showHelperButtons, }: DatePickerInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,6 +12,19 @@ interface DateTimePickerProps {
|
|
|
12
12
|
minDate?: Date;
|
|
13
13
|
maxDate?: Date;
|
|
14
14
|
portalled?: boolean;
|
|
15
|
+
defaultDate?: string;
|
|
16
|
+
defaultTime?: TimeData;
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
interface TimeData12Hour {
|
|
19
|
+
hour: number | null;
|
|
20
|
+
minute: number | null;
|
|
21
|
+
meridiem: 'am' | 'pm' | null;
|
|
22
|
+
}
|
|
23
|
+
interface TimeData24Hour {
|
|
24
|
+
hour: number | null;
|
|
25
|
+
minute: number | null;
|
|
26
|
+
second?: number | null;
|
|
27
|
+
}
|
|
28
|
+
type TimeData = TimeData12Hour | TimeData24Hour;
|
|
29
|
+
export declare function DateTimePicker({ value, onChange, format, showSeconds, labels, timePickerLabels, timezone, startTime, minDate, maxDate, portalled, defaultDate, defaultTime, }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
30
|
export {};
|
|
@@ -4,5 +4,5 @@ export { IsoTimePicker } from './IsoTimePicker';
|
|
|
4
4
|
export { DateTimePicker } from './DateTimePicker';
|
|
5
5
|
export { DurationPicker } from './DurationPicker';
|
|
6
6
|
export { UniversalPicker } from './UniversalPicker';
|
|
7
|
-
export { DatePickerInput } from './
|
|
7
|
+
export { DatePickerInput } from './DatePicker';
|
|
8
8
|
export type { DatePickerProps, CalendarProps, GetDateColorProps, GetVariantProps, } from './DatePicker';
|
|
@@ -12,6 +12,6 @@ interface MediaBrowserDialogProps {
|
|
|
12
12
|
labels?: FilePickerLabels;
|
|
13
13
|
colLabel: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function MediaBrowserDialog({ open, onClose, onSelect, title, filterImageOnly, onFetchFiles, onUploadFile, enableUpload, labels,
|
|
15
|
+
export declare function MediaBrowserDialog({ open, onClose, onSelect, title, filterImageOnly, onFetchFiles, onUploadFile, enableUpload, labels, }: MediaBrowserDialogProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
16
|
export declare const FilePicker: ({ column, schema, prefix }: InputDefaultProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @param column - The column name
|
|
7
7
|
* @param prefix - The prefix for the field (usually empty string or parent path)
|
|
8
|
-
* @param schema -
|
|
8
|
+
* @param schema - Required schema object with title property
|
|
9
9
|
* @returns Object with label helper functions
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* const colLabel = formI18n.colLabel;
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare const useFormI18n: (column: string, prefix
|
|
28
|
+
export declare const useFormI18n: (column: string, prefix: string | undefined, schema: {
|
|
29
29
|
title?: string;
|
|
30
30
|
}) => {
|
|
31
31
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -126,7 +126,6 @@ export * from './components/DatePicker/DatePicker';
|
|
|
126
126
|
export * from './components/DatePicker/getMultiDates';
|
|
127
127
|
export * from './components/DatePicker/getRangeDates';
|
|
128
128
|
export * from './components/DatePicker/RangeDatePicker';
|
|
129
|
-
export * from './components/DatePicker/DatePickerInput';
|
|
130
129
|
export * from './components/DataTable/display/RecordDisplay';
|
|
131
130
|
export * from './components/DataTable/display/TableDataDisplay';
|
|
132
131
|
export * from './components/DataTable/DefaultTable';
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DatePickerLabels } from './DatePicker';
|
|
2
|
-
export interface DatePickerInputProps {
|
|
3
|
-
value?: string | Date;
|
|
4
|
-
onChange?: (date?: string) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
dateFormat?: string;
|
|
7
|
-
displayFormat?: string;
|
|
8
|
-
labels?: DatePickerLabels;
|
|
9
|
-
timezone?: string;
|
|
10
|
-
minDate?: Date;
|
|
11
|
-
maxDate?: Date;
|
|
12
|
-
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
13
|
-
showOutsideDays?: boolean;
|
|
14
|
-
monthsToDisplay?: number;
|
|
15
|
-
insideDialog?: boolean;
|
|
16
|
-
readOnly?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function DatePickerInput({ value, onChange, placeholder, dateFormat, displayFormat, labels, timezone, minDate, maxDate, firstDayOfWeek, showOutsideDays, monthsToDisplay, insideDialog, readOnly, }: DatePickerInputProps): import("react/jsx-runtime").JSX.Element;
|