@yugabytedb/perf-advisor-ui 1.0.66 → 1.0.67
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/types.d.ts +50 -90
- package/package.json +4 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { ReactNode, FC, ReactElement, HTMLAttributes, VFC } from 'react';
|
|
2
2
|
import * as axios from 'axios';
|
|
3
|
-
import
|
|
4
|
-
import { ButtonProps, StandardTextFieldProps, MenuProps, SelectProps, BoxProps, CheckboxProps, InputProps, DialogProps, DialogContentProps, PopperProps, TooltipProps, SwitchProps, FormControlLabelProps } from '@material-ui/core';
|
|
3
|
+
import { ButtonProps, MenuProps, SelectProps, StandardTextFieldProps, CheckboxProps, InputProps, PopperProps, TooltipProps } from '@material-ui/core';
|
|
5
4
|
import { LinkProps } from 'react-router-dom';
|
|
6
5
|
import * as _material_ui_core_styles_withStyles from '@material-ui/core/styles/withStyles';
|
|
7
6
|
import { FieldValues, UseControllerProps } from 'react-hook-form';
|
|
7
|
+
import { YBInputProps, YBToggleProps, YBCheckboxProps as YBCheckboxProps$1 } from '@yugabyte-ui-library/core';
|
|
8
8
|
import { FetchNextPageOptions, InfiniteQueryObserverResult } from 'react-query';
|
|
9
|
+
import { MUIDataTableColumn, MUIDataTableOptions } from 'mui-datatables';
|
|
9
10
|
|
|
10
11
|
interface Universe {
|
|
11
12
|
creationDate: string;
|
|
@@ -483,13 +484,16 @@ interface AnomalyResponse {
|
|
|
483
484
|
declare enum InsightsTabs {
|
|
484
485
|
CLUSTER_LOAD = "Cluster Load",
|
|
485
486
|
INSIGHTS = "Insights",
|
|
486
|
-
METRICS = "Metrics"
|
|
487
|
-
CLUSTER_LOAD_DB = "Load by Database"
|
|
487
|
+
METRICS = "Metrics"
|
|
488
488
|
}
|
|
489
|
-
declare enum
|
|
489
|
+
declare enum ClusterLoadOverallTabs {
|
|
490
490
|
ANOMALIES = "Anomalies",
|
|
491
491
|
QUERIES = "Queries"
|
|
492
492
|
}
|
|
493
|
+
declare enum ClusterLoadSubTabs {
|
|
494
|
+
OVERALL_LOAD = "Overall Load",
|
|
495
|
+
LOAD_BY_DATABASE = "Load by Database"
|
|
496
|
+
}
|
|
493
497
|
declare const URL_TAB_PATH: {
|
|
494
498
|
ANOMALIES: string;
|
|
495
499
|
QUERIES: string;
|
|
@@ -497,25 +501,39 @@ declare const URL_TAB_PATH: {
|
|
|
497
501
|
INSIGHTS: string;
|
|
498
502
|
CLUSTER_LOAD: string;
|
|
499
503
|
CLUSTER_LOAD_DB: string;
|
|
504
|
+
OVERALL_LOAD: string;
|
|
500
505
|
};
|
|
501
506
|
declare enum AnomalyTypeFilter {
|
|
502
507
|
PERF_ANOMALY = "PERF_ANOMALY",
|
|
503
508
|
INSIGHT = "INSIGHT"
|
|
504
509
|
}
|
|
510
|
+
interface MUIDataTableMeta {
|
|
511
|
+
rowIndex: number;
|
|
512
|
+
columnIndex: number;
|
|
513
|
+
columnData: unknown[];
|
|
514
|
+
rowData: unknown[];
|
|
515
|
+
tableData: unknown[][];
|
|
516
|
+
tableState: unknown;
|
|
517
|
+
}
|
|
518
|
+
interface MUIDataTableColumnMeta {
|
|
519
|
+
index: number;
|
|
520
|
+
name: string;
|
|
521
|
+
label?: string;
|
|
522
|
+
}
|
|
523
|
+
type SortOrder = "asc" | "desc" | "none";
|
|
505
524
|
interface ColumnOptions {
|
|
506
|
-
|
|
507
|
-
display?: boolean;
|
|
525
|
+
display?: boolean | "true" | "false" | "excluded";
|
|
508
526
|
filter?: boolean;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
527
|
+
sort?: boolean;
|
|
528
|
+
customBodyRender?: (value: unknown, tableMeta: MUIDataTableMeta, updateValue: (value: unknown) => void) => ReactNode;
|
|
529
|
+
customHeadRender?: (columnMeta: MUIDataTableColumnMeta, updateDirection?: (direction: SortOrder) => void, sortOrder?: SortOrder) => ReactNode;
|
|
530
|
+
setCellProps?: () => Record<string, unknown>;
|
|
531
|
+
setCellHeaderProps?: () => Record<string, unknown>;
|
|
532
|
+
hideHeader?: boolean;
|
|
515
533
|
}
|
|
516
534
|
interface Column {
|
|
517
|
-
label: string;
|
|
518
535
|
name: string;
|
|
536
|
+
label?: string;
|
|
519
537
|
options?: ColumnOptions;
|
|
520
538
|
}
|
|
521
539
|
interface GraphAxisData {
|
|
@@ -677,7 +695,7 @@ interface CodeBlockProps {
|
|
|
677
695
|
preClassName?: string;
|
|
678
696
|
lang?: string;
|
|
679
697
|
containerClassName?: string;
|
|
680
|
-
text: string | string[] | React
|
|
698
|
+
text: string | string[] | React.ReactElement | React.ReactElement[];
|
|
681
699
|
dataTestId?: string;
|
|
682
700
|
enabledExpandCollapse?: boolean;
|
|
683
701
|
collapseHeight?: number;
|
|
@@ -688,7 +706,7 @@ interface CodeBlockProps {
|
|
|
688
706
|
}
|
|
689
707
|
declare const YBCodeBlock: FC<CodeBlockProps>;
|
|
690
708
|
|
|
691
|
-
declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"codeClassName" | "preClassName" | "containerClassName" | "searchBox" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryPreBlockWeb" | "queryPreBlockFull" | "queryCodeElement" | "queryCodeElementWeb" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn" | "preQueryBlock">;
|
|
709
|
+
declare const useCodeBlockStyles: (props?: any) => _material_ui_core_styles_withStyles.ClassNameMap<"codeClassName" | "preClassName" | "containerClassName" | "searchBox" | "refreshBtn" | "codeBlock" | "codeBlockSqlView" | "tableHeaderCell" | "rowTableCell" | "tableContainer" | "tableRow" | "queryTableRow" | "queryTableCell" | "queryPreBlock" | "queryPreBlockYBM" | "queryPreBlockWeb" | "queryPreBlockFull" | "queryCodeElement" | "queryCodeElementWeb" | "queryContainerCode" | "defaultActions" | "overrideExpandBtn" | "preQueryBlock" | "queryCellBox">;
|
|
692
710
|
|
|
693
711
|
interface YBErrorIndicatorProps {
|
|
694
712
|
type?: string;
|
|
@@ -697,18 +715,6 @@ interface YBErrorIndicatorProps {
|
|
|
697
715
|
}
|
|
698
716
|
declare const YBErrorIndicator: ({ type, uuid, customErrorMessage }: YBErrorIndicatorProps) => JSX.Element;
|
|
699
717
|
|
|
700
|
-
interface YBLabelProps {
|
|
701
|
-
className?: string;
|
|
702
|
-
dataTestId?: string;
|
|
703
|
-
width?: string;
|
|
704
|
-
}
|
|
705
|
-
declare const YBLabel: FC<YBLabelProps>;
|
|
706
|
-
|
|
707
|
-
type YBInputProps = {
|
|
708
|
-
tooltip?: ReactNode;
|
|
709
|
-
} & Omit<StandardTextFieldProps, 'variant' | 'color' | 'classes' | 'size' | 'select' | 'FormHelperTextProps' | 'SelectProps'>;
|
|
710
|
-
declare const YBInput: FC<YBInputProps>;
|
|
711
|
-
|
|
712
718
|
type YBInputFieldProps$1<T extends FieldValues> = UseControllerProps<T> & YBInputProps;
|
|
713
719
|
declare const YBInputField: <T extends FieldValues>(props: YBInputFieldProps$1<T>) => ReactElement;
|
|
714
720
|
|
|
@@ -720,11 +726,6 @@ type YBSelectProps = {
|
|
|
720
726
|
} & Omit<StandardTextFieldProps, 'variant' | 'color' | 'classes' | 'select' | 'size' | 'placeholder' | 'FormHelperTextProps' | 'SelectProps'>;
|
|
721
727
|
declare const YBSelect: FC<YBSelectProps>;
|
|
722
728
|
|
|
723
|
-
interface GenericFailureProps extends BoxProps {
|
|
724
|
-
text?: string;
|
|
725
|
-
}
|
|
726
|
-
declare const GenericFailure: FC<GenericFailureProps>;
|
|
727
|
-
|
|
728
729
|
declare enum AlertVariant {
|
|
729
730
|
Info = "info",
|
|
730
731
|
Warning = "warning",
|
|
@@ -755,57 +756,13 @@ interface AlertProps {
|
|
|
755
756
|
declare const YBAlert: FC<AlertProps>;
|
|
756
757
|
|
|
757
758
|
interface YBCheckboxProps extends CheckboxProps {
|
|
758
|
-
label: React
|
|
759
|
+
label: React.ReactNode;
|
|
759
760
|
labelClassName?: string;
|
|
760
761
|
showCheckedIcon?: boolean;
|
|
761
762
|
inputProps?: InputProps['inputProps'];
|
|
762
763
|
}
|
|
763
764
|
declare const YBCheckbox: FC<YBCheckboxProps>;
|
|
764
765
|
|
|
765
|
-
interface YBDateTimePickerProps {
|
|
766
|
-
defaultDateTimeValue?: string;
|
|
767
|
-
dateTimeLabel: string;
|
|
768
|
-
value: string;
|
|
769
|
-
className?: any;
|
|
770
|
-
errorMsg?: string;
|
|
771
|
-
onChange: (selectedValue: ChangeEvent<HTMLInputElement>) => void;
|
|
772
|
-
disabled?: boolean;
|
|
773
|
-
isReadOnly?: boolean;
|
|
774
|
-
}
|
|
775
|
-
declare const YBDateTimePicker: ({ defaultDateTimeValue, dateTimeLabel, value, errorMsg, onChange, className, disabled, isReadOnly }: YBDateTimePickerProps) => JSX.Element;
|
|
776
|
-
|
|
777
|
-
interface OverrideButtonProps {
|
|
778
|
-
primary?: YBButtonProps;
|
|
779
|
-
secondary?: YBButtonProps;
|
|
780
|
-
}
|
|
781
|
-
interface YBModalProps extends DialogProps {
|
|
782
|
-
title?: string;
|
|
783
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
784
|
-
overrideHeight?: string | number;
|
|
785
|
-
overrideWidth?: string | number;
|
|
786
|
-
isSidePanel?: boolean;
|
|
787
|
-
titleSeparator?: boolean;
|
|
788
|
-
titleIcon?: React$1.ReactNode;
|
|
789
|
-
actionsInfo?: React$1.ReactNode;
|
|
790
|
-
onClose?: () => void;
|
|
791
|
-
onSubmit?: () => void;
|
|
792
|
-
enableBackdropDismiss?: boolean;
|
|
793
|
-
submitLabel?: string;
|
|
794
|
-
submitButtonTooltip?: string | ReactElement;
|
|
795
|
-
submitTestId?: string;
|
|
796
|
-
customSubmitButton?: React$1.ReactNode;
|
|
797
|
-
cancelLabel?: React$1.ReactNode;
|
|
798
|
-
cancelButtonTooltip?: string;
|
|
799
|
-
cancelTestId?: string;
|
|
800
|
-
buttonProps?: OverrideButtonProps;
|
|
801
|
-
customTitle?: React$1.ReactNode;
|
|
802
|
-
hideCloseBtn?: boolean;
|
|
803
|
-
dialogContentProps?: DialogContentProps;
|
|
804
|
-
formProps?: React$1.HTMLProps<HTMLFormElement>;
|
|
805
|
-
gradientTag?: string;
|
|
806
|
-
}
|
|
807
|
-
declare const YBModal: FC<YBModalProps>;
|
|
808
|
-
|
|
809
766
|
interface YBInfinitePaginationProps<T> {
|
|
810
767
|
dataPrefetchFn: (options?: FetchNextPageOptions | undefined) => Promise<InfiniteQueryObserverResult<T, unknown>>;
|
|
811
768
|
page: number;
|
|
@@ -813,12 +770,12 @@ interface YBInfinitePaginationProps<T> {
|
|
|
813
770
|
rowsPerPageOptions?: number[];
|
|
814
771
|
total: number;
|
|
815
772
|
showRecordsPerPage?: boolean;
|
|
816
|
-
recordsPerPageCaption?: string | React
|
|
773
|
+
recordsPerPageCaption?: string | React.ReactNode;
|
|
817
774
|
onPageChange: (newPage: number) => void;
|
|
818
775
|
onPageSizeChange: (newSize: string | number) => void;
|
|
819
776
|
hasMoreData?: boolean;
|
|
820
777
|
}
|
|
821
|
-
declare const YBInfinitePagination: <T>({ dataPrefetchFn, page, onPageChange, onPageSizeChange, hasMoreData, total, rowsPerPageOptions, rowsPerPage, showRecordsPerPage, recordsPerPageCaption }: YBInfinitePaginationProps<T>) => React
|
|
778
|
+
declare const YBInfinitePagination: <T>({ dataPrefetchFn, page, onPageChange, onPageSizeChange, hasMoreData, total, rowsPerPageOptions, rowsPerPage, showRecordsPerPage, recordsPerPageCaption }: YBInfinitePaginationProps<T>) => React.ReactElement;
|
|
822
779
|
|
|
823
780
|
interface PaginationProps {
|
|
824
781
|
onPageSelect: (pageNo: number) => void;
|
|
@@ -878,13 +835,6 @@ type YBTooltipProps = {
|
|
|
878
835
|
} & Omit<TooltipProps, 'children'>;
|
|
879
836
|
declare const YBTooltip: VFC<YBTooltipProps>;
|
|
880
837
|
|
|
881
|
-
interface YBToggleProps extends SwitchProps {
|
|
882
|
-
label?: string;
|
|
883
|
-
formControlLabelProps?: Partial<FormControlLabelProps>;
|
|
884
|
-
inputProps?: InputProps['inputProps'];
|
|
885
|
-
}
|
|
886
|
-
declare const YBToggle: FC<YBToggleProps>;
|
|
887
|
-
|
|
888
838
|
type YBInputFieldProps<T extends FieldValues> = UseControllerProps<T> & YBToggleProps;
|
|
889
839
|
declare const YBToggleField: <T extends FieldValues>(props: YBInputFieldProps<T>) => ReactElement;
|
|
890
840
|
|
|
@@ -920,7 +870,7 @@ interface ClusterRegionSelectorProps {
|
|
|
920
870
|
}
|
|
921
871
|
declare const ClusterRegionSelector: ({ selectedItem, primaryClusterToRegionMap, asyncClusterToRegionMap, onClusterRegionSelected }: ClusterRegionSelectorProps) => JSX.Element;
|
|
922
872
|
|
|
923
|
-
type YBCheckboxFieldProps<T extends FieldValues> = UseControllerProps<T> & YBCheckboxProps;
|
|
873
|
+
type YBCheckboxFieldProps<T extends FieldValues> = UseControllerProps<T> & YBCheckboxProps$1;
|
|
924
874
|
declare const YBCheckboxField: <T extends FieldValues>(props: YBCheckboxFieldProps<T>) => ReactElement;
|
|
925
875
|
|
|
926
876
|
declare const IN_DEVELOPMENT_MODE: boolean;
|
|
@@ -1310,4 +1260,14 @@ declare const isValidObject: typeof isDefinedNotNull;
|
|
|
1310
1260
|
declare function removeNullProperties(obj: any): void;
|
|
1311
1261
|
declare function isYAxisGreaterThanThousand(dataArray: any): boolean;
|
|
1312
1262
|
|
|
1313
|
-
|
|
1263
|
+
interface YBThemeWrapperProps {
|
|
1264
|
+
children: React.ReactNode;
|
|
1265
|
+
appName: AppName;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Wraps components with the YBThemeProvider to ensure proper styling
|
|
1269
|
+
* for @yugabyte-ui-library/core components
|
|
1270
|
+
*/
|
|
1271
|
+
declare const YBThemeWrapper: React.FC<YBThemeWrapperProps>;
|
|
1272
|
+
|
|
1273
|
+
export { ACTIVE_SESSION_HISOTRY_EPS_CLIENT_NODE, ACTIVE_SESSION_HISTORY_EPS_GLOBAL, ACTIVE_SESSION_HISTORY_QUERY_EVENTS, ALL, ALL_REGIONS, ALL_ZONES, ANOMALY_CATEGORY_LIST, ANOMALY_FILTER_DURATION_OPTIONS, ANOMALY_TAG, ANOMALY_TYPE_TO_NAME_MAP, ASH, ASH_GROUPBY_VALUES, AggregatedLineSettings, Aggregation, AlertVariant, Anomaly, AnomalyCategory, AnomalyDetails, AnomalyDetectionStatus, AnomalyDetectionStatusText, AnomalyGroup, AnomalyInstance, AnomalyResponse, AnomalyType, AnomalyTypeFilter, AppName, AttachUniversePayload, AuthDetails, BACKGROUND_QUERY_REQUEST_GRAPHS, CATALOG_READ_REQUEST_GRAPH, CATEGORY_HEADER_DATA_MAP, COLORS, CORES, CPU_CORES, CPU_COUNT, CQL_QUERY_REQUEST_GRAPHS, ChartType, ClusterLoadOverallTabs, ClusterLoadResponseData, ClusterLoadSubTabs, ClusterNodeInfo, ClusterNodeListMetadata, ClusterRegionSelector, Column, ColumnOptions, ConfigureUniverseMetadata, DB_CAPS_TAG_, DB_TAG, DEFAULT_ERROR_MESSAGES, DEFAULT_RECORDS_PER_PAGE, ELLIPSIS, FormattedAnomalyRca, GLOBAL_RUNTIME_CONFIG, GROUP_BY_OPERATIONS, GraphAxisData, GraphFilters, GraphMetadata, GraphRequestParams, GraphResponse, GraphSettings, GraphType, GroupEventsParam, IN_DEVELOPMENT_MODE, InsightsTabs, MAX_OUTLIER_NUM_NODES, METRICS_OUTLIER_DATABASES_STORAGE_KEY, METRICS_OUTLIER_TABLES_STORAGE_KEY, METRICS_SESSION_STORAGE_KEY, METRIC_DB_RESOURCES_WITH_GRAPHS, METRIC_FONT, METRIC_NAMES, METRIC_RESOURCES_WITH_GRAPHS, METRIC_TABLES_RESOURCES_WITH_GRAPHS, METRIC_TABS, METRIC_TABS_DATABASES, METRIC_TABS_TABLES, MIN_OUTLIER_NUM_NODES, MORE, MetadataFields, MetricConsts, MetricMeasure, MetricOrigin, MetricSplitSelector, MetricsAnalysisEntry, MetricsAnalysisEntryProps, NAME_COLOR_MAPPING, NodeData, NodeDataCloudInfo, NodeDataMetrics, NodeDetails, NodeInfo, NodeState, OutlierSelector, PAUrlParams, PerfAdvisorAPI, PerfAdvisorEntry, PrimaryDashboardViewTabs, QUERIES, QUERY_DETAILS, QUERY_KEY, QUERY_TAG, QUERY_TYPE_TAG, QueryPageParams, QueryType, QueryTypeMode, QueryWaitEvents, RCAGuideline, RCA_GANT_CHART, REACT_APP_API_URL, REGION_TAG, REGION_ZONE_TAG, RUNTIME_CONFIG_KEYS, Resources, RowItemClasses$1 as RowItemClasses, RuntimeConfigData, RuntimeConfigType, RuntimeConfigs, SQL_QUERY_REQUEST_GRAPHS, SortDirection, SplitMode, SplitType, TABLET_ID_TAG, TABLET_TAG, TABLE_REQUEST_GRAPHS, TABLE_TAG, TIME_FILTER_LABEL, TIME_FILTER_VALUES, TPFeatureFlags, TYPE, TableInfo, TablePageParams, TroubleshootingRecommendations, URL_TAB_PATH, USER_TAG, Universe, UniverseConfig, UniverseMetadataFields, UniverseQueryData, UniverseQueryStatsData, UpdateMetadataFormFields, UpdateRuntimeConfigFormFields, UrlParams, VIEW_MORE, WAIT_EVENT_MAPPING, WaitEventClassification, YBAlert, YBButton, YBCheckbox, YBCheckboxField, YBCodeBlock, YBErrorIndicator, YBInfinitePagination, YBInputField, YBPagination, YBPanelItem, YBSelect, YBTable, YBThemeWrapper, YBToggleField, YBTooltip, ZONE_TAG, ZoneNodeSelector, filterDurations, getCustomFooterComponent, getRowCellComponent, isDefinedNotNull, isEmptyArray, isEmptyObject, isEmptyString, isNonEmptyArray, isNonEmptyObject, isNonEmptyString, isNullOrEmpty, isValidObject, isYAxisGreaterThanThousand, metricOutlierSelectors, metricSplitSelectors, otherSplitSelectors, queryTypeSelectors, removeNullProperties, useCodeBlockStyles };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugabytedb/perf-advisor-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"types": "dist/types.d.ts",
|
|
6
6
|
"author": "Rajagopalan Madhavan",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"eslint-plugin-import": "2.23.4",
|
|
29
29
|
"nodemon": "3.1.10",
|
|
30
30
|
"rollup": "2.79.1",
|
|
31
|
+
"@yugabyte-ui-library/core": "2.0.9",
|
|
31
32
|
"rollup-plugin-dts": "4.2.3",
|
|
32
33
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
33
34
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -79,7 +80,8 @@
|
|
|
79
80
|
"react": "17.0.2",
|
|
80
81
|
"react-dom": "17.0.2",
|
|
81
82
|
"react-query": "3.32.1",
|
|
82
|
-
"vis-timeline": "7.7.3"
|
|
83
|
+
"vis-timeline": "7.7.3",
|
|
84
|
+
"@yugabyte-ui-library/core": "2.0.9"
|
|
83
85
|
},
|
|
84
86
|
"scripts": {
|
|
85
87
|
"start": "rollup start",
|