@sentio/ui-dashboard 0.3.1 → 0.3.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.css +121 -16
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +136 -59
- package/dist/index.d.ts +136 -59
- package/dist/index.js +583 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +573 -19
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ type NoteAlignmentLike = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
|
22
22
|
type NoteVerticalAlignmentLike = 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
23
23
|
/** Series/value aggregation calculation. */
|
|
24
24
|
type CalculationLike = 'LAST' | 'FIRST' | 'MEAN' | 'TOTAL' | 'ALL' | 'MIN' | 'MAX';
|
|
25
|
+
/** Tabular-data column type (proto common.TabularData.ColumnType). */
|
|
26
|
+
type ColumnTypeLike = 'STRING' | 'NUMBER' | 'BOOLEAN' | 'LIST' | 'TIME' | 'MAP' | 'JSON' | 'TOKEN' | 'DYNAMIC';
|
|
25
27
|
/** Bar-gauge layout direction. */
|
|
26
28
|
type DirectionLike = 'HORIZONTAL' | 'VERTICAL';
|
|
27
29
|
/** Mark type for chart markers. */
|
|
@@ -268,6 +270,34 @@ interface TableConfigLike {
|
|
|
268
270
|
};
|
|
269
271
|
rowLimit?: number;
|
|
270
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Minimal shape of the query result TableControls inspects to enumerate
|
|
275
|
+
* columns — either a SQL result (column types) or metrics results (series
|
|
276
|
+
* with labels). Mirrors the fields read from the proto MetricsQueryResponse /
|
|
277
|
+
* SyncExecuteSQLResponse, so a consumer can pass either response directly.
|
|
278
|
+
*/
|
|
279
|
+
interface TableDataLike {
|
|
280
|
+
/** SQL path: column name → column type. */
|
|
281
|
+
result?: {
|
|
282
|
+
columnTypes?: {
|
|
283
|
+
[name: string]: ColumnTypeLike;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
/** Metrics path: one entry per query, each with its matrix samples. */
|
|
287
|
+
results?: Array<{
|
|
288
|
+
alias?: string;
|
|
289
|
+
matrix?: {
|
|
290
|
+
samples?: Array<{
|
|
291
|
+
metric?: {
|
|
292
|
+
labels?: {
|
|
293
|
+
[k: string]: string;
|
|
294
|
+
};
|
|
295
|
+
displayName?: string;
|
|
296
|
+
};
|
|
297
|
+
}>;
|
|
298
|
+
};
|
|
299
|
+
}>;
|
|
300
|
+
}
|
|
271
301
|
/** Compare-to-previous-period offset. */
|
|
272
302
|
interface CompareTimeLike {
|
|
273
303
|
ago?: DurationLike;
|
|
@@ -405,12 +435,12 @@ interface SeriesLike<T = Date> {
|
|
|
405
435
|
smooth?: boolean;
|
|
406
436
|
}
|
|
407
437
|
|
|
408
|
-
interface Props$
|
|
438
|
+
interface Props$v {
|
|
409
439
|
metric?: MetricInfoLike;
|
|
410
440
|
value: QueryLike;
|
|
411
441
|
onChange: (value: QueryLike) => void;
|
|
412
442
|
}
|
|
413
|
-
declare function AggregateInput({ metric, value, onChange }: Props$
|
|
443
|
+
declare function AggregateInput({ metric, value, onChange }: Props$v): react_jsx_runtime.JSX.Element;
|
|
414
444
|
|
|
415
445
|
declare enum ArgumentType {
|
|
416
446
|
String = 0,
|
|
@@ -445,28 +475,28 @@ declare const EventsFunctionMap: {
|
|
|
445
475
|
[name: string]: FunctionDef;
|
|
446
476
|
};
|
|
447
477
|
|
|
448
|
-
interface Props$
|
|
478
|
+
interface Props$u {
|
|
449
479
|
argument: ArgumentDef;
|
|
450
480
|
value?: ArgumentLike;
|
|
451
481
|
onChange?: (value: ArgumentLike) => void;
|
|
452
482
|
className?: string;
|
|
453
483
|
}
|
|
454
|
-
declare function ArgumentInput({ className, argument, value, onChange }: Props$
|
|
484
|
+
declare function ArgumentInput({ className, argument, value, onChange }: Props$u): react_jsx_runtime.JSX.Element;
|
|
455
485
|
|
|
456
|
-
interface Props$
|
|
486
|
+
interface Props$t {
|
|
457
487
|
value: QueryLike;
|
|
458
488
|
onChange: (value: QueryLike) => void;
|
|
459
489
|
}
|
|
460
|
-
declare function FunctionInput({ value, onChange }: Props$
|
|
490
|
+
declare function FunctionInput({ value, onChange }: Props$t): react_jsx_runtime.JSX.Element;
|
|
461
491
|
|
|
462
|
-
interface Props$
|
|
492
|
+
interface Props$s {
|
|
463
493
|
onClick: (func: FunctionDef) => void;
|
|
464
494
|
functionCategories?: typeof FunctionsCategories;
|
|
465
495
|
defaultFunc?: string;
|
|
466
496
|
}
|
|
467
|
-
declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$
|
|
497
|
+
declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$s): react_jsx_runtime.JSX.Element;
|
|
468
498
|
|
|
469
|
-
interface Props$
|
|
499
|
+
interface Props$r {
|
|
470
500
|
metric?: MetricInfoLike;
|
|
471
501
|
value: QueryLike;
|
|
472
502
|
onChange: (value: QueryLike) => void;
|
|
@@ -476,7 +506,7 @@ interface Props$o {
|
|
|
476
506
|
small?: boolean;
|
|
477
507
|
useRegex?: boolean;
|
|
478
508
|
}
|
|
479
|
-
declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$
|
|
509
|
+
declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$r): react_jsx_runtime.JSX.Element;
|
|
480
510
|
|
|
481
511
|
declare const SystemLabels: {
|
|
482
512
|
field: string;
|
|
@@ -539,7 +569,7 @@ type SeriesFinder = {
|
|
|
539
569
|
};
|
|
540
570
|
declare const ReactEChartsBase: react__default.ForwardRefExoticComponent<ReactEChartsProps & react__default.RefAttributes<EChartsHandle>>;
|
|
541
571
|
|
|
542
|
-
interface Props$
|
|
572
|
+
interface Props$q {
|
|
543
573
|
legend: string[];
|
|
544
574
|
legendSelected: Record<string, boolean>;
|
|
545
575
|
returnedSeries?: number;
|
|
@@ -547,7 +577,7 @@ interface Props$n {
|
|
|
547
577
|
onRendered: (v: boolean) => void;
|
|
548
578
|
chartHandle?: EChartsHandle;
|
|
549
579
|
}
|
|
550
|
-
declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$
|
|
580
|
+
declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
551
581
|
|
|
552
582
|
declare const RefreshContext: react.Context<{
|
|
553
583
|
refresh?: () => void;
|
|
@@ -555,14 +585,14 @@ declare const RefreshContext: react.Context<{
|
|
|
555
585
|
}>;
|
|
556
586
|
declare const RefreshButton: (props: Partial<ButtonProps>) => react_jsx_runtime.JSX.Element | null;
|
|
557
587
|
|
|
558
|
-
type Props$
|
|
588
|
+
type Props$p = {
|
|
559
589
|
value: ChartTypeLike;
|
|
560
590
|
onChange: (value: ChartTypeLike) => void;
|
|
561
591
|
small?: boolean;
|
|
562
592
|
};
|
|
563
|
-
declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$
|
|
593
|
+
declare const ChartTypeButtonGroup: ({ value, onChange, small }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
564
594
|
|
|
565
|
-
interface Props$
|
|
595
|
+
interface Props$o {
|
|
566
596
|
data: any;
|
|
567
597
|
compareTimeDuration?: DurationLike;
|
|
568
598
|
numberFormatter: (value: number, seriesId?: string) => string;
|
|
@@ -575,9 +605,9 @@ interface Props$l {
|
|
|
575
605
|
viewUsersDisabled?: (seriesId: string, seriesIndex: number) => boolean;
|
|
576
606
|
isFixed?: boolean;
|
|
577
607
|
}
|
|
578
|
-
declare function ChartTooltip({ data, numberFormatter, compareTimeDuration, highlightSeriesId, title, showTotal, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed }: Props$
|
|
608
|
+
declare function ChartTooltip({ data, numberFormatter, compareTimeDuration, highlightSeriesId, title, showTotal, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed }: Props$o): react_jsx_runtime.JSX.Element;
|
|
579
609
|
|
|
580
|
-
interface Props$
|
|
610
|
+
interface Props$n {
|
|
581
611
|
data: any;
|
|
582
612
|
compareTimeDuration?: DurationLike;
|
|
583
613
|
numberFormatter: (value: number) => string;
|
|
@@ -590,7 +620,7 @@ interface Props$k {
|
|
|
590
620
|
isFixed?: boolean;
|
|
591
621
|
sizeTitle?: string;
|
|
592
622
|
}
|
|
593
|
-
declare function ScatterChartTooltip({ data, numberFormatter, highlightSeriesId, title, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed, sizeTitle }: Props$
|
|
623
|
+
declare function ScatterChartTooltip({ data, numberFormatter, highlightSeriesId, title, onViewLogs, viewLogDisabled, onViewUsers, viewUsersDisabled, isFixed, sizeTitle }: Props$n): react_jsx_runtime.JSX.Element;
|
|
594
624
|
|
|
595
625
|
/** Minimal shape consumed from a computed series — only name + first data point. */
|
|
596
626
|
interface PieSeriesInput {
|
|
@@ -743,42 +773,42 @@ interface TimeSeriesChartProps {
|
|
|
743
773
|
}
|
|
744
774
|
declare const TimeSeriesChart: react.ForwardRefExoticComponent<TimeSeriesChartProps & react.RefAttributes<EChartsHandle>>;
|
|
745
775
|
|
|
746
|
-
interface Props$
|
|
776
|
+
interface Props$m {
|
|
747
777
|
config?: LineConfigLike;
|
|
748
778
|
defaultOpen?: boolean;
|
|
749
779
|
onChange: (config: LineConfigLike) => void;
|
|
750
780
|
}
|
|
751
|
-
declare const LineControls: ({ config, defaultOpen, onChange }: Props$
|
|
781
|
+
declare const LineControls: ({ config, defaultOpen, onChange }: Props$m) => react_jsx_runtime.JSX.Element;
|
|
752
782
|
|
|
753
|
-
interface Props$
|
|
783
|
+
interface Props$l {
|
|
754
784
|
config?: LabelConfigLike;
|
|
755
785
|
setConfig: (value: LabelConfigLike) => void;
|
|
756
786
|
defaultOpen?: boolean;
|
|
757
787
|
}
|
|
758
|
-
declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$
|
|
788
|
+
declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$l) => react_jsx_runtime.JSX.Element;
|
|
759
789
|
|
|
760
|
-
interface Props$
|
|
790
|
+
interface Props$k {
|
|
761
791
|
config?: PieConfigLike;
|
|
762
792
|
defaultOpen?: boolean;
|
|
763
793
|
onChange: (config: PieConfigLike) => void;
|
|
764
794
|
}
|
|
765
|
-
declare const defaultConfig$
|
|
766
|
-
declare function PieChartControls({ config, defaultOpen, onChange }: Props$
|
|
795
|
+
declare const defaultConfig$6: PieConfigLike;
|
|
796
|
+
declare function PieChartControls({ config, defaultOpen, onChange }: Props$k): react_jsx_runtime.JSX.Element;
|
|
767
797
|
|
|
768
|
-
interface Props$
|
|
798
|
+
interface Props$j {
|
|
769
799
|
config?: BarGaugeConfigLike;
|
|
770
800
|
defaultOpen?: boolean;
|
|
771
801
|
onChange: (config: BarGaugeConfigLike) => void;
|
|
772
802
|
}
|
|
773
|
-
declare const defaultConfig$
|
|
774
|
-
declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$
|
|
803
|
+
declare const defaultConfig$5: BarGaugeConfigLike;
|
|
804
|
+
declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$j): react_jsx_runtime.JSX.Element;
|
|
775
805
|
|
|
776
806
|
interface ValueFormatter {
|
|
777
807
|
label: string;
|
|
778
808
|
value: ValueFormatterLike;
|
|
779
809
|
}
|
|
780
810
|
declare const ValueFormatters: ValueFormatter[];
|
|
781
|
-
interface Props$
|
|
811
|
+
interface Props$i {
|
|
782
812
|
config: ValueConfigLike;
|
|
783
813
|
defaultOpen?: boolean;
|
|
784
814
|
onChange: (config: ValueConfigLike) => void;
|
|
@@ -786,10 +816,10 @@ interface Props$f {
|
|
|
786
816
|
showPrefix?: boolean;
|
|
787
817
|
showSuffix?: boolean;
|
|
788
818
|
}
|
|
789
|
-
declare const defaultConfig$
|
|
790
|
-
declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$
|
|
819
|
+
declare const defaultConfig$4: ValueConfigLike;
|
|
820
|
+
declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
791
821
|
|
|
792
|
-
interface Props$
|
|
822
|
+
interface Props$h {
|
|
793
823
|
config?: ValueConfigLike;
|
|
794
824
|
defaultOpen?: boolean;
|
|
795
825
|
onChange: (config: ValueConfigLike) => void;
|
|
@@ -797,16 +827,16 @@ interface Props$e {
|
|
|
797
827
|
showPrefix?: boolean;
|
|
798
828
|
showSuffix?: boolean;
|
|
799
829
|
}
|
|
800
|
-
declare const defaultConfig$
|
|
801
|
-
declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$
|
|
830
|
+
declare const defaultConfig$3: ValueConfigLike;
|
|
831
|
+
declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
802
832
|
|
|
803
|
-
interface Props$
|
|
833
|
+
interface Props$g {
|
|
804
834
|
rules: MappingRuleLike[];
|
|
805
835
|
onChange: (rules: MappingRuleLike[]) => void;
|
|
806
836
|
}
|
|
807
|
-
declare function ValueStringMapping({ rules, onChange }: Props$
|
|
837
|
+
declare function ValueStringMapping({ rules, onChange }: Props$g): react_jsx_runtime.JSX.Element;
|
|
808
838
|
|
|
809
|
-
interface Props$
|
|
839
|
+
interface Props$f {
|
|
810
840
|
yAxis?: YAxisConfigLike;
|
|
811
841
|
setYAxis: (yAxis: YAxisConfigLike) => void;
|
|
812
842
|
defaultOpen?: boolean;
|
|
@@ -819,9 +849,9 @@ interface Props$c {
|
|
|
819
849
|
supportReset?: boolean;
|
|
820
850
|
panelTitle?: string;
|
|
821
851
|
}
|
|
822
|
-
declare function YaxisControls({ yAxis, setYAxis, defaultOpen, columnSelect, supportSetName, supportSetMinMax, supportStackSeries, supportAlwaysShowZero, supportReset, panelTitle }: Props$
|
|
852
|
+
declare function YaxisControls({ yAxis, setYAxis, defaultOpen, columnSelect, supportSetName, supportSetMinMax, supportStackSeries, supportAlwaysShowZero, supportReset, panelTitle }: Props$f): react_jsx_runtime.JSX.Element;
|
|
823
853
|
|
|
824
|
-
interface Props$
|
|
854
|
+
interface Props$e {
|
|
825
855
|
xAxis?: XAxisConfigLike;
|
|
826
856
|
setXAxis: (val?: XAxisConfigLike) => void;
|
|
827
857
|
defaultOpen?: boolean;
|
|
@@ -834,25 +864,25 @@ interface Props$b {
|
|
|
834
864
|
supportSort?: boolean;
|
|
835
865
|
supportSetType?: boolean;
|
|
836
866
|
}
|
|
837
|
-
declare const XAxisControls: ({ xAxis, setXAxis, defaultOpen, columnSelect, columnIsNonTime, panelTitle, supportName, supportSort, supportSetType }: Props$
|
|
867
|
+
declare const XAxisControls: ({ xAxis, setXAxis, defaultOpen, columnSelect, columnIsNonTime, panelTitle, supportName, supportSort, supportSetType }: Props$e) => react_jsx_runtime.JSX.Element;
|
|
838
868
|
|
|
839
|
-
interface Props$
|
|
869
|
+
interface Props$d {
|
|
840
870
|
markers?: MarkerLike[];
|
|
841
871
|
onChange: (v: MarkerLike[]) => void;
|
|
842
872
|
}
|
|
843
|
-
declare function MarkerControls({ markers, onChange }: Props$
|
|
873
|
+
declare function MarkerControls({ markers, onChange }: Props$d): react_jsx_runtime.JSX.Element;
|
|
844
874
|
|
|
845
|
-
interface Props$
|
|
875
|
+
interface Props$c {
|
|
846
876
|
defaultOpen?: boolean;
|
|
847
877
|
onChange: (config: DataConfigLike) => void;
|
|
848
878
|
chartConfig?: ChartConfigLike;
|
|
849
879
|
/** Per-chart-type fallback when no explicit limit is set (app resolves from ChartTypeLimits). */
|
|
850
880
|
defaultSeriesLimit?: number;
|
|
851
881
|
}
|
|
852
|
-
declare const defaultConfig$
|
|
853
|
-
declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$
|
|
882
|
+
declare const defaultConfig$2: DataConfigLike;
|
|
883
|
+
declare function DataControls({ defaultOpen, onChange, chartConfig, defaultSeriesLimit }: Props$c): react_jsx_runtime.JSX.Element;
|
|
854
884
|
|
|
855
|
-
interface Props$
|
|
885
|
+
interface Props$b {
|
|
856
886
|
config?: ScatterConfigLike;
|
|
857
887
|
defaultOpen?: boolean;
|
|
858
888
|
onChange: (config: ScatterConfigLike) => void;
|
|
@@ -867,8 +897,18 @@ interface Props$8 {
|
|
|
867
897
|
onChange: (color?: string) => void;
|
|
868
898
|
}) => ReactNode;
|
|
869
899
|
}
|
|
870
|
-
declare const defaultConfig: ScatterConfigLike;
|
|
871
|
-
declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$
|
|
900
|
+
declare const defaultConfig$1: ScatterConfigLike;
|
|
901
|
+
declare function ScatterControls({ config, defaultOpen, onChange, columnSelect, colorPicker }: Props$b): react_jsx_runtime.JSX.Element;
|
|
902
|
+
|
|
903
|
+
interface Props$a {
|
|
904
|
+
config?: TableConfigLike;
|
|
905
|
+
defaultOpen?: boolean;
|
|
906
|
+
onChange: (config: TableConfigLike) => void;
|
|
907
|
+
data?: TableDataLike;
|
|
908
|
+
}
|
|
909
|
+
declare const defaultConfig: TableConfigLike;
|
|
910
|
+
declare function getDefaultValueConfig(type?: ColumnTypeLike): ValueConfigLike;
|
|
911
|
+
declare function TableControls({ config, defaultOpen, onChange, data }: Props$a): react_jsx_runtime.JSX.Element;
|
|
872
912
|
|
|
873
913
|
declare const sentioColors: {
|
|
874
914
|
light: {
|
|
@@ -1620,44 +1660,81 @@ declare const sentioThemeDark: {
|
|
|
1620
1660
|
};
|
|
1621
1661
|
};
|
|
1622
1662
|
|
|
1663
|
+
interface Props$9 {
|
|
1664
|
+
className?: string;
|
|
1665
|
+
}
|
|
1666
|
+
declare const SvgIcon$7: ({ className }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
1667
|
+
|
|
1668
|
+
interface Props$8 {
|
|
1669
|
+
className?: string;
|
|
1670
|
+
}
|
|
1671
|
+
declare const SvgIcon$6: ({ className }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
1672
|
+
|
|
1623
1673
|
interface Props$7 {
|
|
1624
1674
|
className?: string;
|
|
1625
1675
|
}
|
|
1626
|
-
declare const SvgIcon$
|
|
1676
|
+
declare const SvgIcon$5: ({ className }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
1627
1677
|
|
|
1628
1678
|
interface Props$6 {
|
|
1629
1679
|
className?: string;
|
|
1630
1680
|
}
|
|
1631
|
-
declare const SvgIcon$
|
|
1681
|
+
declare const SvgIcon$4: ({ className }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
1632
1682
|
|
|
1633
1683
|
interface Props$5 {
|
|
1634
1684
|
className?: string;
|
|
1635
1685
|
}
|
|
1636
|
-
declare const SvgIcon$
|
|
1686
|
+
declare const SvgIcon$3: ({ className }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
1637
1687
|
|
|
1638
1688
|
interface Props$4 {
|
|
1639
1689
|
className?: string;
|
|
1640
1690
|
}
|
|
1641
|
-
declare const SvgIcon$
|
|
1691
|
+
declare const SvgIcon$2: ({ className }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
1642
1692
|
|
|
1643
1693
|
interface Props$3 {
|
|
1644
1694
|
className?: string;
|
|
1645
1695
|
}
|
|
1646
|
-
declare const SvgIcon$
|
|
1696
|
+
declare const SvgIcon$1: ({ className }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
1647
1697
|
|
|
1648
1698
|
interface Props$2 {
|
|
1649
1699
|
className?: string;
|
|
1650
1700
|
}
|
|
1651
|
-
declare const SvgIcon
|
|
1701
|
+
declare const SvgIcon: ({ className }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
1652
1702
|
|
|
1653
1703
|
interface Props$1 {
|
|
1654
|
-
|
|
1704
|
+
dashboard?: DashboardLike;
|
|
1705
|
+
open: boolean;
|
|
1706
|
+
onClose: () => void;
|
|
1707
|
+
onUpdate: (data: DashboardLike) => Promise<void>;
|
|
1655
1708
|
}
|
|
1656
|
-
declare const
|
|
1709
|
+
declare const EditDashboardDialog: ({ dashboard, open, onClose, onUpdate }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
1657
1710
|
|
|
1658
1711
|
interface Props {
|
|
1659
|
-
|
|
1712
|
+
open: boolean;
|
|
1713
|
+
onClose: () => void;
|
|
1714
|
+
title: string;
|
|
1715
|
+
style: GroupStyleLike;
|
|
1716
|
+
highlightColor: string;
|
|
1717
|
+
onSave: (next: {
|
|
1718
|
+
title: string;
|
|
1719
|
+
style: GroupStyleLike;
|
|
1720
|
+
highlightColor: string;
|
|
1721
|
+
}) => void;
|
|
1722
|
+
}
|
|
1723
|
+
declare function EditGroupDialog({ open, onClose, title, style, highlightColor, onSave }: Props): react_jsx_runtime.JSX.Element;
|
|
1724
|
+
|
|
1725
|
+
type HighlightColorKey = '' | 'blue' | 'cyan' | 'pink' | 'yellow' | 'green' | 'lightblue' | 'purple' | 'red' | 'orange';
|
|
1726
|
+
interface HighlightColorMeta {
|
|
1727
|
+
key: Exclude<HighlightColorKey, ''>;
|
|
1728
|
+
name: string;
|
|
1729
|
+
}
|
|
1730
|
+
declare const HIGHLIGHT_COLORS: HighlightColorMeta[];
|
|
1731
|
+
declare const DEFAULT_HIGHLIGHT_KEY: Exclude<HighlightColorKey, ''>;
|
|
1732
|
+
declare function getHighlightHex(key: string | undefined, isDark: boolean): string | undefined;
|
|
1733
|
+
interface ResolvedHighlight {
|
|
1734
|
+
solid: string;
|
|
1735
|
+
foreground: string;
|
|
1660
1736
|
}
|
|
1661
|
-
declare
|
|
1737
|
+
declare function resolveHighlight(colorKey: string | undefined, isDark: boolean): ResolvedHighlight;
|
|
1738
|
+
declare function resolveHeaderStyle(style: GroupStyleLike | undefined, colorKey: string | undefined, isDark: boolean): React.CSSProperties;
|
|
1662
1739
|
|
|
1663
|
-
export { AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeChart, type BarGaugeChartProps, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, ChartTooltip, ChartTypeButtonGroup, type ChartTypeLike, type DashboardExtraLike, type DashboardLike, type DashboardVisibilityLike, DataControls, type DataSourceTypeLike, type EChartsHandle, type EChartsOption, EventsFunctionCategories, EventsFunctionMap, type FunctionDef, FunctionInput, FunctionMap, FunctionsCategories, FunctionsPanel, type GroupLike, type GroupStyleLike, LabelControls, LabelSearchProvider, LabelsInput, type LayoutItemLike, type LayoutsLike, LineControls, SvgIcon$7 as LineIcon, type MarkArea, type MarkLine, MarkerControls, type NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PieChart, PieChartControls, type PieChartProps, SvgIcon$3 as PieIcon, type PieSeriesInput, QueryValueChart, type QueryValueChartProps, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, RefreshButton, RefreshContext, type ResponsiveLayoutsLike, ScatterChartTooltip, ScatterControls, SvgIcon$1 as ScatterIcon, SystemLabels, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, TimeSeriesChart, type TimeSeriesChartProps, ValueControls, type ValueFormatter, ValueFormatters, ValueOptions, ValueStringMapping, type ViewActionContext, XAxisControls, type YAxisConfigLike, YaxisControls, defaultConfig$
|
|
1740
|
+
export { AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeChart, type BarGaugeChartProps, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, ChartTooltip, ChartTypeButtonGroup, type ChartTypeLike, DEFAULT_HIGHLIGHT_KEY, type DashboardExtraLike, type DashboardLike, type DashboardVisibilityLike, DataControls, type DataSourceTypeLike, type EChartsHandle, type EChartsOption, EditDashboardDialog, EditGroupDialog, EventsFunctionCategories, EventsFunctionMap, type FunctionDef, FunctionInput, FunctionMap, FunctionsCategories, FunctionsPanel, type GroupLike, type GroupStyleLike, HIGHLIGHT_COLORS, type HighlightColorKey, type HighlightColorMeta, LabelControls, LabelSearchProvider, LabelsInput, type LayoutItemLike, type LayoutsLike, LineControls, SvgIcon$7 as LineIcon, type MarkArea, type MarkLine, MarkerControls, type NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PieChart, PieChartControls, type PieChartProps, SvgIcon$3 as PieIcon, type PieSeriesInput, QueryValueChart, type QueryValueChartProps, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, RefreshButton, RefreshContext, type ResolvedHighlight, type ResponsiveLayoutsLike, ScatterChartTooltip, ScatterControls, SvgIcon$1 as ScatterIcon, SystemLabels, TableControls, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, TimeSeriesChart, type TimeSeriesChartProps, ValueControls, type ValueFormatter, ValueFormatters, ValueOptions, ValueStringMapping, type ViewActionContext, XAxisControls, type YAxisConfigLike, YaxisControls, defaultConfig$5 as defaultBarGaugeConfig, defaultConfig$2 as defaultDataConfig, defaultConfig$6 as defaultPieConfig, defaultConfig$1 as defaultScatterConfig, defaultConfig as defaultTableConfig, defaultConfig$4 as defaultValueConfig, defaultConfig$3 as defaultValueControlsConfig, getDefaultValueConfig, getHighlightHex, isAggrOrRollupFunction, resolveHeaderStyle, resolveHighlight, sentioColors, sentioTheme, sentioThemeDark, sortMetricByName, useLabelSearch, useLabelSearchContext };
|