@devtable/dashboard 10.49.0 → 10.50.1
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/filter/filter-tree-select/render/widget.d.ts +3 -2
- package/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +456 -0
- package/dist/components/panel/settings/common/aggregation-selector.d.ts +1 -0
- package/dist/components/plugins/plugin-context.d.ts +455 -0
- package/dist/contexts/panel-context.d.ts +910 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +209 -0
- package/dist/dashboard-editor/model/views/index.d.ts +857 -857
- package/dist/dashboard-editor/model/views/view.d.ts +14 -14
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/index.d.ts +2 -0
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/model.d.ts +86 -81
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/preview-variables.d.ts +3 -0
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-editor.d.ts +8 -0
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-field.d.ts +1 -1
- package/dist/{utils/template/editor → dashboard-editor/ui/settings/content/edit-panel/variable-config}/variable-style.d.ts +1 -1
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variables-editor.d.ts +11 -0
- package/dist/dashboard-editor/ui/settings/content/edit-view/edit-view-form/index.d.ts +141 -141
- package/dist/dashboard.es.js +9934 -9914
- package/dist/dashboard.umd.js +82 -82
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +6 -0
- package/dist/model/meta-model/dashboard/content/panel/panel.d.ts +69 -0
- package/dist/model/meta-model/dashboard/content/panel/variable.d.ts +39 -0
- package/dist/model/meta-model/dashboard/content/view/view.d.ts +12 -12
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +209 -0
- package/dist/model/render-model/dashboard/content/views/view.d.ts +12 -12
- package/dist/model/render-model/dashboard/content/views/views.d.ts +586 -586
- package/dist/model/utils/draft.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/dist/utils/aggregation.d.ts +11 -7
- package/dist/utils/template/editor/index.d.ts +0 -1
- package/dist/utils/template/render/render-string.d.ts +3 -0
- package/package.json +1 -1
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/styles.d.ts +0 -8
- package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-config-panel.d.ts +0 -10
- package/dist/model/render-model/dashboard/content/panels/panels.d.ts +0 -15393
- package/dist/utils/template/editor/variable-field.d.ts +0 -9
|
@@ -3,18 +3,22 @@ export type TCustomAggregation = {
|
|
|
3
3
|
config: {
|
|
4
4
|
func: string;
|
|
5
5
|
};
|
|
6
|
+
fallback: string;
|
|
6
7
|
};
|
|
7
|
-
export
|
|
8
|
-
export type AggregationType = {
|
|
8
|
+
export type TSimpleAggregation = {
|
|
9
9
|
type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min' | 'CV' | 'std';
|
|
10
|
-
config: Record
|
|
11
|
-
|
|
10
|
+
config: Record<string, never>;
|
|
11
|
+
fallback: string;
|
|
12
|
+
};
|
|
13
|
+
export type TQuantileAggregation = {
|
|
12
14
|
type: 'quantile';
|
|
13
15
|
config: {
|
|
14
16
|
p: number;
|
|
15
17
|
};
|
|
16
|
-
|
|
18
|
+
fallback: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const DefaultCustomAggregationFunc: string;
|
|
21
|
+
export type AggregationType = TSimpleAggregation | TQuantileAggregation | TCustomAggregation;
|
|
17
22
|
export declare const DefaultAggregation: AggregationType;
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function formatNumbersAndAggregateValue(possibleNumbers: Array<string | number>, aggregation: AggregationType): number | number[] | "N/A";
|
|
23
|
+
export declare function formatNumbersAndAggregateValue(possibleNumbers: Array<string | number>, aggregation: AggregationType): string | number | number[];
|
|
20
24
|
export declare function aggregateValue(data: TPanelData, data_field: string, aggregation: AggregationType): any;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ITemplateVariable } from '../types';
|
|
3
|
+
export declare function variableToString(variable: ITemplateVariable, data: TPanelData): any;
|
|
4
|
+
export declare function variablesToStrings(variables: ITemplateVariable[], data: TPanelData): Record<string, import('./react').ReactNode>;
|
|
2
5
|
export declare function templateToString(template: string, variables: ITemplateVariable[], data: TPanelData): string;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VariableConfigUIModel } from '../../../../../../dashboard-editor/ui/settings/content/edit-panel/variable-config/model';
|
|
2
|
-
export interface IVariableListProps {
|
|
3
|
-
uiModel: VariableConfigUIModel;
|
|
4
|
-
}
|
|
5
|
-
export declare const VariableList: ((props: IVariableListProps) => import('./react/jsx-runtime').JSX.Element) & {
|
|
6
|
-
displayName: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const VariableConfig: (() => import('./react/jsx-runtime').JSX.Element) & {
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|