@devtable/dashboard 10.56.2 → 10.57.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.
@@ -3,11 +3,9 @@ export type GetRange = () => DateRangeValue;
3
3
  type Shrotcut = {
4
4
  label: string;
5
5
  value: string;
6
+ group: 'last' | 'recent' | 'this';
6
7
  getRange: GetRange;
7
8
  };
8
- export declare const shortcutGroups: {
9
- last: Shrotcut[];
10
- recent: Shrotcut[];
11
- this: Shrotcut[];
12
- };
9
+ export declare const getDateRangeShortcuts: () => Shrotcut[];
10
+ export declare function getDateRangeShortcutValue(shortcutValue: string): DateRangeValue | null;
13
11
  export {};
@@ -55,6 +55,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
55
55
  _name: "date-range";
56
56
  clearable: boolean;
57
57
  inputFormat: string;
58
+ default_shortcut: string;
58
59
  max_days: number;
59
60
  allowSingleDateInRange: boolean;
60
61
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -201,6 +202,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
201
202
  _name: "date-range";
202
203
  clearable: boolean;
203
204
  inputFormat: string;
205
+ default_shortcut: string;
204
206
  max_days: number;
205
207
  allowSingleDateInRange: boolean;
206
208
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -332,6 +334,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
332
334
  _name: "date-range";
333
335
  clearable: boolean;
334
336
  inputFormat: string;
337
+ default_shortcut: string;
335
338
  max_days: number;
336
339
  allowSingleDateInRange: boolean;
337
340
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -463,6 +466,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
463
466
  _name: "date-range";
464
467
  clearable: boolean;
465
468
  inputFormat: string;
469
+ default_shortcut: string;
466
470
  max_days: number;
467
471
  allowSingleDateInRange: boolean;
468
472
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -595,6 +599,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
595
599
  _name: "date-range";
596
600
  clearable: boolean;
597
601
  inputFormat: string;
602
+ default_shortcut: string;
598
603
  max_days: number;
599
604
  allowSingleDateInRange: boolean;
600
605
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -763,6 +768,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
763
768
  _name: "date-range";
764
769
  clearable: boolean;
765
770
  inputFormat: string;
771
+ default_shortcut: string;
766
772
  max_days: number;
767
773
  allowSingleDateInRange: boolean;
768
774
  } | import("mobx-state-tree").ModelSnapshotType<{