@databrainhq/plugin 0.14.41 → 0.14.43
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/components/ColorField/ColorField.d.ts +2 -1
- package/dist/components/GlobalFilters/Filters.d.ts +1 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +1 -0
- package/dist/components/GlobalFilters/index.d.ts +2 -0
- package/dist/components/Icons/icons.d.ts +1 -1
- package/dist/components/List/index.d.ts +6 -1
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +16 -1
- package/dist/consts/app.d.ts +6 -1
- package/dist/containers/Metric/EmbeddedMetric.d.ts +16 -1
- package/dist/containers/Metric/index.d.ts +16 -1
- package/dist/helpers/getModifiedQuery.d.ts +7 -0
- package/dist/webcomponents.es.js +60818 -60568
- package/dist/webcomponents.umd.js +209 -206
- package/package.json +1 -1
|
@@ -16,5 +16,10 @@ export type ListProps = {
|
|
|
16
16
|
initialLimit?: number;
|
|
17
17
|
isDataLoading?: boolean;
|
|
18
18
|
showLogo?: boolean;
|
|
19
|
+
isShowOptions?: boolean;
|
|
20
|
+
setValue?: React.Dispatch<React.SetStateAction<{
|
|
21
|
+
action: string;
|
|
22
|
+
id: string;
|
|
23
|
+
}>>;
|
|
19
24
|
};
|
|
20
|
-
export declare const List: ({ headers, data, variant, noDataText, loadMoreText, className, initialLimit, isDataLoading, showLogo, }: ListProps) => React.JSX.Element;
|
|
25
|
+
export declare const List: ({ headers, data, variant, noDataText, loadMoreText, className, initialLimit, isDataLoading, showLogo, isShowOptions, setValue, }: ListProps) => React.JSX.Element;
|
|
@@ -44,5 +44,20 @@ export type MetricCardProps = {
|
|
|
44
44
|
isInProgress: boolean;
|
|
45
45
|
}[];
|
|
46
46
|
onDownload: (id: string, isEnable: boolean) => void;
|
|
47
|
+
appearanceOptions?: {
|
|
48
|
+
appearanceOptionsPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
49
|
+
dynamicBehaviour?: {
|
|
50
|
+
isEnabled?: boolean;
|
|
51
|
+
label?: string;
|
|
52
|
+
};
|
|
53
|
+
cumulativeBar?: {
|
|
54
|
+
isEnabled?: boolean;
|
|
55
|
+
label?: string;
|
|
56
|
+
};
|
|
57
|
+
stackedBars?: {
|
|
58
|
+
isEnabled?: boolean;
|
|
59
|
+
label?: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
47
62
|
};
|
|
48
|
-
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, isAllClient, dropdownTheme, optionsIcon, downloadMetrics, onDownload, }: MetricCardProps) => React.JSX.Element;
|
|
63
|
+
export declare const MetricCard: ({ globalFilters, metricItem, onMaximize, client, colors, param, companyTenancyType, renderHeaderName, isDisableCardClick, onArchive, chartRendererType, isDisableMorePopup, appFilters, isInternalApp, setCrossDashboardFilters, crossDashboardFilters, metricFilterOptions, onDownloadRawCsv, enableDownloadCsv, enableMultiMetricFilters, disableActions, metricFilterPosition, isAllClient, dropdownTheme, optionsIcon, downloadMetrics, onDownload, appearanceOptions, }: MetricCardProps) => React.JSX.Element;
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const CHART_TYPES: {
|
|
|
26
26
|
horizontalStack: string;
|
|
27
27
|
treeMap: string;
|
|
28
28
|
horizontalStackTable: string;
|
|
29
|
+
geoMap: string;
|
|
29
30
|
};
|
|
30
31
|
export declare const chartOptions: {
|
|
31
32
|
name: string;
|
|
@@ -55,6 +56,10 @@ export declare const BOXPLOT = "boxplot";
|
|
|
55
56
|
export declare const TABLE = "table";
|
|
56
57
|
export declare const GENERAL = "general";
|
|
57
58
|
export declare const CONFIG = "configuration";
|
|
59
|
+
export declare const TOP_LEFT = "top-left";
|
|
60
|
+
export declare const TOP_RIGHT = "top-right";
|
|
61
|
+
export declare const BOTTOM_LEFT = "bottom-left";
|
|
62
|
+
export declare const BOTTOM_RIGHT = "bottom-right";
|
|
58
63
|
export declare const DESTINATIONS: Record<string, string>;
|
|
59
64
|
export declare const DATABASE_NAME = "{{DATABASE_NAME}}";
|
|
60
65
|
export declare const CLIENT_NAME_VAR_NUM = "'client_id_variable'";
|
|
@@ -87,4 +92,4 @@ export declare const NUMBER_FORMAT: {
|
|
|
87
92
|
label: string;
|
|
88
93
|
value: string;
|
|
89
94
|
}[];
|
|
90
|
-
export declare const ICONS_LIST: readonly ["circle", "group-by", "undo", "redo", "maximize", "minimize", "fullscreen", "download", "archive", "format", "company", "profile", "users", "bar-chart", "bar-chart-2", "kebab-menu-horizontal", "kebab-menu-vertical", "paint-brush", "funnel", "funnel-simple", "cross", "columns", "gear", "presentation-chart", "chevron-down", "plus", "info", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "double-arrow-left", "double-arrow-right", "expand-arrows", "eye", "eye-slash", "database", "magnifying-glass", "pencil-simple-line", "pencil-simple", "file-sql", "code", "sign-out", "save", "delete", "align-space-even", "align-bottom", "align-left", "align-right", "align-top", "trend-up", "trend-up-chart", "caret-down-fill", "caret-up-fill", "caret-up-down", "pie-chart", "table-view", "task-done-file", "right-angle", "text-rotation-angle-up", "text-rotation-none", "text-rotation-up", "preview-file", "share", "image", "text", "color-palette", "shuffle", "table", "chart", "calendar", "horizontal-rule", "short-text", "subheader", "copy", "timer", "link", "not-found", "bar-chart-horizontal", "line-chart", "line-chart-trend-up", "globe", "map", "leaderboard", "radar", "scale", "scatter-plot", "tree", "donut-chart", "scatter-chart", "waterfall-chart", "area-chart", "bubble-chart", "candlestick-chart", "string", "boolean", "date", "number", "unknown", "array", "right-join", "left-join", "outer-join", "right-full-join", "left-full-join", "inner-join", "full-join", "version-history"];
|
|
95
|
+
export declare const ICONS_LIST: readonly ["circle", "group-by", "undo", "redo", "maximize", "minimize", "fullscreen", "download", "archive", "format", "company", "profile", "users", "bar-chart", "bar-chart-2", "kebab-menu-horizontal", "kebab-menu-vertical", "paint-brush", "funnel", "funnel-simple", "cross", "columns", "gear", "presentation-chart", "chevron-down", "plus", "info", "arrow-down", "arrow-up", "arrow-left", "arrow-right", "double-arrow-left", "double-arrow-right", "expand-arrows", "eye", "eye-slash", "database", "magnifying-glass", "pencil-simple-line", "pencil-simple", "file-sql", "code", "sign-out", "save", "delete", "align-space-even", "align-bottom", "align-left", "align-right", "align-top", "trend-up", "trend-up-chart", "caret-down-fill", "caret-up-fill", "caret-up-down", "pie-chart", "table-view", "task-done-file", "right-angle", "text-rotation-angle-up", "text-rotation-none", "text-rotation-up", "preview-file", "share", "image", "text", "color-palette", "shuffle", "table", "chart", "calendar", "horizontal-rule", "short-text", "subheader", "copy", "timer", "link", "not-found", "bar-chart-horizontal", "line-chart", "line-chart-trend-up", "globe", "map", "leaderboard", "radar", "scale", "scatter-plot", "tree", "donut-chart", "scatter-chart", "waterfall-chart", "area-chart", "bubble-chart", "candlestick-chart", "string", "boolean", "date", "number", "unknown", "array", "right-join", "left-join", "outer-join", "right-full-join", "left-full-join", "inner-join", "full-join", "version-history", "roles"];
|
|
@@ -21,5 +21,20 @@ export interface EmbeddedMetricProps {
|
|
|
21
21
|
};
|
|
22
22
|
themeName?: string;
|
|
23
23
|
setAdminTheme: (theme?: AdminThemeOptionsType) => void;
|
|
24
|
+
appearanceOptions?: {
|
|
25
|
+
appearanceOptionsPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
26
|
+
dynamicBehaviour?: {
|
|
27
|
+
isEnabled?: boolean;
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
cumulativeBar?: {
|
|
31
|
+
isEnabled?: boolean;
|
|
32
|
+
label?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
stackedBars?: {
|
|
35
|
+
isEnabled?: boolean;
|
|
36
|
+
label?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
24
39
|
}
|
|
25
|
-
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, disableFullscreen, optionsIcon, customMessages, themeName, setAdminTheme, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
40
|
+
export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, disableFullscreen, optionsIcon, customMessages, themeName, setAdminTheme, appearanceOptions, }: EmbeddedMetricProps) => React.JSX.Element>;
|
|
@@ -38,6 +38,21 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
38
38
|
tokenExpiry?: string;
|
|
39
39
|
};
|
|
40
40
|
themeName?: string;
|
|
41
|
+
appearanceOptions?: {
|
|
42
|
+
appearanceOptionsPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
43
|
+
dynamicBehaviour?: {
|
|
44
|
+
isEnabled?: boolean;
|
|
45
|
+
label?: string;
|
|
46
|
+
};
|
|
47
|
+
cumulativeBar?: {
|
|
48
|
+
isEnabled?: boolean;
|
|
49
|
+
label?: string;
|
|
50
|
+
};
|
|
51
|
+
stackedBars?: {
|
|
52
|
+
isEnabled?: boolean;
|
|
53
|
+
label?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
41
56
|
}
|
|
42
57
|
/**
|
|
43
58
|
* @name Metric - A react component to display a single metric card.
|
|
@@ -59,4 +74,4 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
|
|
|
59
74
|
* @prop {object} style (optional) - The usual css style prop to provide inline styles.
|
|
60
75
|
* @prop {object} theme (optional) - Theme config object to apply to the UI.
|
|
61
76
|
*/
|
|
62
|
-
export declare const Metric: React.MemoExoticComponent<({ theme, width, height, style, className, metricFilterOptions, ...metricProps }: MetricProps) => React.JSX.Element>;
|
|
77
|
+
export declare const Metric: React.MemoExoticComponent<({ theme, width, height, style, className, metricFilterOptions, appearanceOptions, ...metricProps }: MetricProps) => React.JSX.Element>;
|
|
@@ -19,6 +19,13 @@ export type ReplaceVariable = {
|
|
|
19
19
|
isAllClient?: boolean;
|
|
20
20
|
globalFilters?: MetricCardProps['globalFilters'];
|
|
21
21
|
};
|
|
22
|
+
type ReplaceClientVariableParams = {
|
|
23
|
+
query: string;
|
|
24
|
+
clientId?: string | number | null;
|
|
25
|
+
tenancyLevel: string;
|
|
26
|
+
isAllClient?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare const replaceClientVariable: ({ clientId, query, tenancyLevel, isAllClient, }: ReplaceClientVariableParams) => string;
|
|
22
29
|
export declare const replaceVariable: ({ query, rlsConditions, tenancyLevel, clientId, values, isAllClient, globalFilters, }: ReplaceVariable) => string;
|
|
23
30
|
export declare const nameSpace: (name: string, dbName: string) => string;
|
|
24
31
|
export declare const nameSpaceSpecification: (parentAlias: string, columnName: string, dbName: string) => string;
|