schummar-table 0.44.1 → 0.45.1
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.cjs +424 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +343 -203
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -54,6 +54,10 @@ type DatePickerProps = {
|
|
|
54
54
|
maxDate?: Date;
|
|
55
55
|
/** Whether to show the calendar week in the first column */
|
|
56
56
|
showCalendarWeek?: boolean;
|
|
57
|
+
/** Whether to show and allow editing of time */
|
|
58
|
+
showTime?: boolean | {
|
|
59
|
+
showSeconds?: boolean;
|
|
60
|
+
};
|
|
57
61
|
};
|
|
58
62
|
declare function DatePickerProvider({ children, ...props }: Partial<Omit<DatePickerProps, 'value' | 'onChange'>> & {
|
|
59
63
|
children?: ReactNode;
|
|
@@ -99,10 +103,10 @@ declare function dateIntersect(a: Date | DateRange | null | undefined, b: Date |
|
|
|
99
103
|
declare function dateClamp(date: Date, min?: Date, max?: Date): Date;
|
|
100
104
|
declare function DatePicker(props: DatePickerProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
101
105
|
|
|
102
|
-
declare function DateFilter<TItem, TColumnValue>({ locale, firstDayOfWeek, defaultDateInView, quickOptions, singleSelect, filterBy, minDate, maxDate, showCalendarWeek, ...props }: {
|
|
106
|
+
declare function DateFilter<TItem, TColumnValue>({ locale, firstDayOfWeek, defaultDateInView, quickOptions, singleSelect, filterBy, minDate, maxDate, showCalendarWeek, showTime, ...props }: {
|
|
103
107
|
/** If enabled, only single days can be selected. Ranges otherwise. */
|
|
104
108
|
singleSelect?: boolean;
|
|
105
|
-
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
109
|
+
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek' | 'showTime'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
106
110
|
|
|
107
111
|
interface RangeFilterProps<T, V> extends CommonFilterProps<T, V, number | null, [number | null, number | null] | null> {
|
|
108
112
|
min?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ type DatePickerProps = {
|
|
|
54
54
|
maxDate?: Date;
|
|
55
55
|
/** Whether to show the calendar week in the first column */
|
|
56
56
|
showCalendarWeek?: boolean;
|
|
57
|
+
/** Whether to show and allow editing of time */
|
|
58
|
+
showTime?: boolean | {
|
|
59
|
+
showSeconds?: boolean;
|
|
60
|
+
};
|
|
57
61
|
};
|
|
58
62
|
declare function DatePickerProvider({ children, ...props }: Partial<Omit<DatePickerProps, 'value' | 'onChange'>> & {
|
|
59
63
|
children?: ReactNode;
|
|
@@ -99,10 +103,10 @@ declare function dateIntersect(a: Date | DateRange | null | undefined, b: Date |
|
|
|
99
103
|
declare function dateClamp(date: Date, min?: Date, max?: Date): Date;
|
|
100
104
|
declare function DatePicker(props: DatePickerProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
101
105
|
|
|
102
|
-
declare function DateFilter<TItem, TColumnValue>({ locale, firstDayOfWeek, defaultDateInView, quickOptions, singleSelect, filterBy, minDate, maxDate, showCalendarWeek, ...props }: {
|
|
106
|
+
declare function DateFilter<TItem, TColumnValue>({ locale, firstDayOfWeek, defaultDateInView, quickOptions, singleSelect, filterBy, minDate, maxDate, showCalendarWeek, showTime, ...props }: {
|
|
103
107
|
/** If enabled, only single days can be selected. Ranges otherwise. */
|
|
104
108
|
singleSelect?: boolean;
|
|
105
|
-
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
109
|
+
} & Pick<DatePickerProps, 'locale' | 'firstDayOfWeek' | 'defaultDateInView' | 'quickOptions' | 'minDate' | 'maxDate' | 'showCalendarWeek' | 'showTime'> & CommonFilterProps<TItem, TColumnValue, Date | DateRange | null, Date | DateRange | null>): JSX.Element;
|
|
106
110
|
|
|
107
111
|
interface RangeFilterProps<T, V> extends CommonFilterProps<T, V, number | null, [number | null, number | null] | null> {
|
|
108
112
|
min?: number;
|