@sentio/ui-dashboard 0.2.1 → 0.2.3

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.d.ts CHANGED
@@ -383,12 +383,12 @@ interface MetricInfoLike {
383
383
  };
384
384
  }
385
385
 
386
- interface Props$h {
386
+ interface Props$k {
387
387
  metric?: MetricInfoLike;
388
388
  value: QueryLike;
389
389
  onChange: (value: QueryLike) => void;
390
390
  }
391
- declare function AggregateInput({ metric, value, onChange }: Props$h): react_jsx_runtime.JSX.Element;
391
+ declare function AggregateInput({ metric, value, onChange }: Props$k): react_jsx_runtime.JSX.Element;
392
392
 
393
393
  declare enum ArgumentType {
394
394
  String = 0,
@@ -423,28 +423,28 @@ declare const EventsFunctionMap: {
423
423
  [name: string]: FunctionDef;
424
424
  };
425
425
 
426
- interface Props$g {
426
+ interface Props$j {
427
427
  argument: ArgumentDef;
428
428
  value?: ArgumentLike;
429
429
  onChange?: (value: ArgumentLike) => void;
430
430
  className?: string;
431
431
  }
432
- declare function ArgumentInput({ className, argument, value, onChange }: Props$g): react_jsx_runtime.JSX.Element;
432
+ declare function ArgumentInput({ className, argument, value, onChange }: Props$j): react_jsx_runtime.JSX.Element;
433
433
 
434
- interface Props$f {
434
+ interface Props$i {
435
435
  value: QueryLike;
436
436
  onChange: (value: QueryLike) => void;
437
437
  }
438
- declare function FunctionInput({ value, onChange }: Props$f): react_jsx_runtime.JSX.Element;
438
+ declare function FunctionInput({ value, onChange }: Props$i): react_jsx_runtime.JSX.Element;
439
439
 
440
- interface Props$e {
440
+ interface Props$h {
441
441
  onClick: (func: FunctionDef) => void;
442
442
  functionCategories?: typeof FunctionsCategories;
443
443
  defaultFunc?: string;
444
444
  }
445
- declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$e): react_jsx_runtime.JSX.Element;
445
+ declare function FunctionsPanel({ onClick, functionCategories, defaultFunc }: Props$h): react_jsx_runtime.JSX.Element;
446
446
 
447
- interface Props$d {
447
+ interface Props$g {
448
448
  metric?: MetricInfoLike;
449
449
  value: QueryLike;
450
450
  onChange: (value: QueryLike) => void;
@@ -454,7 +454,7 @@ interface Props$d {
454
454
  small?: boolean;
455
455
  useRegex?: boolean;
456
456
  }
457
- declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$d): react_jsx_runtime.JSX.Element;
457
+ declare function LabelsInput({ value, metric, variables, onChange, small, useRegex }: Props$g): react_jsx_runtime.JSX.Element;
458
458
 
459
459
  declare const SystemLabels: {
460
460
  field: string;
@@ -517,7 +517,7 @@ type SeriesFinder = {
517
517
  };
518
518
  declare const ReactEChartsBase: React__default.ForwardRefExoticComponent<ReactEChartsProps & React__default.RefAttributes<EChartsHandle>>;
519
519
 
520
- interface Props$c {
520
+ interface Props$f {
521
521
  legend: string[];
522
522
  legendSelected: Record<string, boolean>;
523
523
  returnedSeries?: number;
@@ -525,7 +525,7 @@ interface Props$c {
525
525
  onRendered: (v: boolean) => void;
526
526
  chartHandle?: EChartsHandle;
527
527
  }
528
- declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$c) => react_jsx_runtime.JSX.Element;
528
+ declare const ChartLegend: ({ legend, legendSelected, returnedSeries, totalSeries, onRendered, chartHandle }: Props$f) => react_jsx_runtime.JSX.Element;
529
529
 
530
530
  declare const RefreshContext: React.Context<{
531
531
  refresh?: () => void;
@@ -533,35 +533,68 @@ declare const RefreshContext: React.Context<{
533
533
  }>;
534
534
  declare const RefreshButton: (props: Partial<ButtonProps>) => react_jsx_runtime.JSX.Element | null;
535
535
 
536
- interface Props$b {
536
+ interface Props$e {
537
537
  config?: LineConfigLike;
538
538
  defaultOpen?: boolean;
539
539
  onChange: (config: LineConfigLike) => void;
540
540
  }
541
- declare const LineControls: ({ config, defaultOpen, onChange }: Props$b) => react_jsx_runtime.JSX.Element;
541
+ declare const LineControls: ({ config, defaultOpen, onChange }: Props$e) => react_jsx_runtime.JSX.Element;
542
542
 
543
- interface Props$a {
543
+ interface Props$d {
544
544
  config?: LabelConfigLike;
545
545
  setConfig: (value: LabelConfigLike) => void;
546
546
  defaultOpen?: boolean;
547
547
  }
548
- declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$a) => react_jsx_runtime.JSX.Element;
548
+ declare const LabelControls: ({ config, setConfig, defaultOpen }: Props$d) => react_jsx_runtime.JSX.Element;
549
549
 
550
- interface Props$9 {
550
+ interface Props$c {
551
551
  config?: PieConfigLike;
552
552
  defaultOpen?: boolean;
553
553
  onChange: (config: PieConfigLike) => void;
554
554
  }
555
- declare const defaultConfig$1: PieConfigLike;
556
- declare function PieChartControls({ config, defaultOpen, onChange }: Props$9): react_jsx_runtime.JSX.Element;
555
+ declare const defaultConfig$3: PieConfigLike;
556
+ declare function PieChartControls({ config, defaultOpen, onChange }: Props$c): react_jsx_runtime.JSX.Element;
557
557
 
558
- interface Props$8 {
558
+ interface Props$b {
559
559
  config?: BarGaugeConfigLike;
560
560
  defaultOpen?: boolean;
561
561
  onChange: (config: BarGaugeConfigLike) => void;
562
562
  }
563
- declare const defaultConfig: BarGaugeConfigLike;
564
- declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$8): react_jsx_runtime.JSX.Element;
563
+ declare const defaultConfig$2: BarGaugeConfigLike;
564
+ declare function BarGaugeControls({ config, defaultOpen, onChange }: Props$b): react_jsx_runtime.JSX.Element;
565
+
566
+ interface ValueFormatter {
567
+ label: string;
568
+ value: ValueFormatterLike;
569
+ }
570
+ declare const ValueFormatters: ValueFormatter[];
571
+ interface Props$a {
572
+ config: ValueConfigLike;
573
+ defaultOpen?: boolean;
574
+ onChange: (config: ValueConfigLike) => void;
575
+ formatters?: ValueFormatter[];
576
+ showPrefix?: boolean;
577
+ showSuffix?: boolean;
578
+ }
579
+ declare const defaultConfig$1: ValueConfigLike;
580
+ declare const ValueOptions: ({ config, onChange, formatters, showPrefix, showSuffix }: Props$a) => react_jsx_runtime.JSX.Element;
581
+
582
+ interface Props$9 {
583
+ config?: ValueConfigLike;
584
+ defaultOpen?: boolean;
585
+ onChange: (config: ValueConfigLike) => void;
586
+ formatters?: ValueFormatter[];
587
+ showPrefix?: boolean;
588
+ showSuffix?: boolean;
589
+ }
590
+ declare const defaultConfig: ValueConfigLike;
591
+ declare const ValueControls: ({ config, defaultOpen, onChange, formatters, showPrefix, showSuffix }: Props$9) => react_jsx_runtime.JSX.Element;
592
+
593
+ interface Props$8 {
594
+ rules: MappingRuleLike[];
595
+ onChange: (rules: MappingRuleLike[]) => void;
596
+ }
597
+ declare function ValueStringMapping({ rules, onChange }: Props$8): react_jsx_runtime.JSX.Element;
565
598
 
566
599
  declare const sentioColors: {
567
600
  light: {
@@ -1353,4 +1386,4 @@ interface Props {
1353
1386
  }
1354
1387
  declare const SvgIcon: ({ className }: Props) => react_jsx_runtime.JSX.Element;
1355
1388
 
1356
- export { AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, type ChartTypeLike, type DashboardExtraLike, type DashboardLike, type DashboardVisibilityLike, 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 NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PieChartControls, SvgIcon$3 as PieIcon, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, RefreshButton, RefreshContext, type ResponsiveLayoutsLike, SvgIcon$1 as ScatterIcon, SystemLabels, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, type YAxisConfigLike, defaultConfig as defaultBarGaugeConfig, defaultConfig$1 as defaultPieConfig, isAggrOrRollupFunction, sentioColors, sentioTheme, sentioThemeDark, sortMetricByName, useLabelSearch, useLabelSearchContext };
1389
+ export { AggregateInput, SvgIcon$6 as AreaIcon, type ArgumentDef, ArgumentInput, ArgumentType, BarGaugeControls, SvgIcon$4 as BarGuageIcon, SvgIcon$5 as BarIcon, type ChartConfigLike, ChartLegend, type ChartLike, type ChartTypeLike, type DashboardExtraLike, type DashboardLike, type DashboardVisibilityLike, 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 NoteAlignmentLike, type NoteFontSizeLike, type NoteLike, type NoteVerticalAlignmentLike, type OverlayGraphLike, type PanelLike, PieChartControls, SvgIcon$3 as PieIcon, SvgIcon$2 as QueryValueIcon, ReactEChartsBase, type ReactEChartsProps, RefreshButton, RefreshContext, type ResponsiveLayoutsLike, SvgIcon$1 as ScatterIcon, SystemLabels, SvgIcon as TableIcon, type TemplateVariableLike, type TemplateViewLike, ValueControls, type ValueFormatter, ValueFormatters, ValueOptions, ValueStringMapping, type YAxisConfigLike, defaultConfig$2 as defaultBarGaugeConfig, defaultConfig$3 as defaultPieConfig, defaultConfig$1 as defaultValueConfig, defaultConfig as defaultValueControlsConfig, isAggrOrRollupFunction, sentioColors, sentioTheme, sentioThemeDark, sortMetricByName, useLabelSearch, useLabelSearchContext };