react-semaphor 0.0.116 → 0.0.118

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.
@@ -12,6 +12,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
12
12
  import { Layout } from 'react-grid-layout';
13
13
  import { Layouts } from 'react-grid-layout';
14
14
  import { Point } from 'chart.js';
15
+ import { default as React_2 } from 'react';
15
16
  import { default as ReactGridLayout_2 } from 'react-grid-layout';
16
17
  import { StoreApi } from 'zustand';
17
18
  import { UseBoundStore } from 'zustand';
@@ -178,6 +179,15 @@ export declare type CustomCard = CardWithContent | CardWithFooter;
178
179
 
179
180
  export declare function Dashboard(props: DashboardProps): JSX_2.Element;
180
181
 
182
+ export declare function DashboardCard({ card, footer, className, ...props }: DashboardCardProps): JSX_2.Element | null;
183
+
184
+ declare type DashboardCardProps = {
185
+ card: TCard;
186
+ footer?: React_2.ReactNode;
187
+ showControls?: boolean;
188
+ fetchCardData?: boolean;
189
+ } & React_2.HTMLAttributes<HTMLDivElement>;
190
+
181
191
  export declare function DashboardPlus({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX_2.Element;
182
192
 
183
193
  declare type DashboardPlusProps = {
@@ -451,6 +461,7 @@ export declare type TCardPreferences = {
451
461
  suffix?: string;
452
462
  enabled?: boolean | string;
453
463
  };
464
+ datasets?: TDatasetOptions[];
454
465
  };
455
466
 
456
467
  declare type TChartConfiguration = ChartConfiguration;
@@ -474,6 +485,12 @@ export declare type TDataColumn = {
474
485
  is_nullable?: string;
475
486
  };
476
487
 
488
+ export declare type TDatasetOptions = {
489
+ idx: number;
490
+ type?: 'bar' | 'line';
491
+ fill?: string | number;
492
+ };
493
+
477
494
  export declare type TEvent = {
478
495
  type: 'success' | 'error' | 'info' | 'warning';
479
496
  message: any;
@@ -612,6 +629,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
612
629
  suffix?: string | undefined;
613
630
  enabled?: string | boolean | undefined;
614
631
  } | undefined;
632
+ datasets?: {
633
+ idx: number;
634
+ type?: "bar" | "line" | undefined;
635
+ fill?: string | number | undefined;
636
+ }[] | undefined;
615
637
  } | undefined;
616
638
  lastSelectedDatabase?: string | undefined;
617
639
  lastSelectedSchema?: string | undefined;
@@ -690,6 +712,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
690
712
  suffix?: string | undefined;
691
713
  enabled?: string | boolean | undefined;
692
714
  } | undefined;
715
+ datasets?: {
716
+ idx: number;
717
+ type?: "bar" | "line" | undefined;
718
+ fill?: string | number | undefined;
719
+ }[] | undefined;
693
720
  } | undefined;
694
721
  lastSelectedDatabase?: string | undefined;
695
722
  lastSelectedSchema?: string | undefined;
@@ -725,6 +752,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
725
752
  suffix?: string | undefined;
726
753
  enabled?: string | boolean | undefined;
727
754
  } | undefined;
755
+ datasets?: {
756
+ idx: number;
757
+ type?: "bar" | "line" | undefined;
758
+ fill?: string | number | undefined;
759
+ }[] | undefined;
728
760
  } | undefined;
729
761
  lastSelectedDatabase?: string | undefined;
730
762
  lastSelectedSchema?: string | undefined;
@@ -844,6 +876,11 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
844
876
  suffix?: string | undefined;
845
877
  enabled?: string | boolean | undefined;
846
878
  } | undefined;
879
+ datasets?: {
880
+ idx: number;
881
+ type?: "bar" | "line" | undefined;
882
+ fill?: string | number | undefined;
883
+ }[] | undefined;
847
884
  } | undefined;
848
885
  lastSelectedDatabase?: string | undefined;
849
886
  lastSelectedSchema?: string | undefined;
@@ -1076,6 +1113,11 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1076
1113
  suffix?: string | undefined;
1077
1114
  enabled?: string | boolean | undefined;
1078
1115
  } | undefined;
1116
+ datasets?: {
1117
+ idx: number;
1118
+ type?: "bar" | "line" | undefined;
1119
+ fill?: string | number | undefined;
1120
+ }[] | undefined;
1079
1121
  } | undefined;
1080
1122
  lastSelectedDatabase?: string | undefined;
1081
1123
  lastSelectedSchema?: string | undefined;
@@ -1111,6 +1153,11 @@ export declare const useEditorStore: UseBoundStore<Omit<StoreApi<EditorStore>, "
1111
1153
  suffix?: string | undefined;
1112
1154
  enabled?: string | boolean | undefined;
1113
1155
  } | undefined;
1156
+ datasets?: {
1157
+ idx: number;
1158
+ type?: "bar" | "line" | undefined;
1159
+ fill?: string | number | undefined;
1160
+ }[] | undefined;
1114
1161
  } | undefined;
1115
1162
  lastSelectedDatabase?: string | undefined;
1116
1163
  lastSelectedSchema?: string | undefined;