@devtable/dashboard 10.52.0 → 10.53.0
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/components/filter/filter-date-range/widget/calendar.d.ts +10 -0
- package/dist/components/filter/filter-date-range/widget/count-days.d.ts +5 -0
- package/dist/components/filter/filter-date-range/widget/hints.d.ts +3 -0
- package/dist/components/filter/filter-date-range/widget/index.d.ts +11 -0
- package/dist/components/filter/filter-date-range/widget/shortcuts/index.d.ts +4 -0
- package/dist/components/filter/filter-date-range/widget/shortcuts/shortcuts.d.ts +13 -0
- package/dist/components/filter/filter-date-range/widget/type.d.ts +5 -0
- package/dist/dashboard.es.js +9426 -9216
- package/dist/dashboard.umd.js +87 -87
- package/dist/model/meta-model/dashboard/content/filter/widgets/date-range.d.ts +0 -9
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DateRangeValue } from './type';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: DateRangeValue;
|
|
4
|
+
onChange: (v: DateRangeValue) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
max_days: number;
|
|
7
|
+
allowSingleDateInRange: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const Calendar: ({ value, onChange, close, max_days, allowSingleDateInRange }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DateRangeValue } from './type';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: DateRangeValue;
|
|
4
|
+
onChange: (v: DateRangeValue) => void;
|
|
5
|
+
label: string;
|
|
6
|
+
inputFormat: string;
|
|
7
|
+
allowSingleDateInRange: boolean;
|
|
8
|
+
max_days: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const DateRangeWidget: ({ label, value, onChange, max_days, allowSingleDateInRange, inputFormat }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateRangeValue } from '../type';
|
|
2
|
+
export type GetRange = () => DateRangeValue;
|
|
3
|
+
type Shrotcut = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
getRange: GetRange;
|
|
7
|
+
};
|
|
8
|
+
export declare const shortcutGroups: {
|
|
9
|
+
last: Shrotcut[];
|
|
10
|
+
recent: Shrotcut[];
|
|
11
|
+
this: Shrotcut[];
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type DateValue = Date | null;
|
|
3
|
+
export type SetDateValue = React.Dispatch<React.SetStateAction<DateValue>>;
|
|
4
|
+
export type DateRangeValue = [DateValue, DateValue];
|
|
5
|
+
export type SetDateRangeValue = React.Dispatch<React.SetStateAction<DateValue>>;
|