@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.
Files changed (35) hide show
  1. package/dist/components/filter/filter-tree-select/render/widget.d.ts +3 -2
  2. package/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +456 -0
  3. package/dist/components/panel/settings/common/aggregation-selector.d.ts +1 -0
  4. package/dist/components/plugins/plugin-context.d.ts +455 -0
  5. package/dist/contexts/panel-context.d.ts +910 -0
  6. package/dist/dashboard-editor/model/panels/panel.d.ts +209 -0
  7. package/dist/dashboard-editor/model/views/index.d.ts +857 -857
  8. package/dist/dashboard-editor/model/views/view.d.ts +14 -14
  9. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/index.d.ts +2 -0
  10. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/model.d.ts +86 -81
  11. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/preview-variables.d.ts +3 -0
  12. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-editor.d.ts +8 -0
  13. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-field.d.ts +1 -1
  14. package/dist/{utils/template/editor → dashboard-editor/ui/settings/content/edit-panel/variable-config}/variable-style.d.ts +1 -1
  15. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variables-editor.d.ts +11 -0
  16. package/dist/dashboard-editor/ui/settings/content/edit-view/edit-view-form/index.d.ts +141 -141
  17. package/dist/dashboard.es.js +9934 -9914
  18. package/dist/dashboard.umd.js +82 -82
  19. package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +6 -0
  20. package/dist/model/meta-model/dashboard/content/panel/panel.d.ts +69 -0
  21. package/dist/model/meta-model/dashboard/content/panel/variable.d.ts +39 -0
  22. package/dist/model/meta-model/dashboard/content/view/view.d.ts +12 -12
  23. package/dist/model/render-model/dashboard/content/panels/panel.d.ts +209 -0
  24. package/dist/model/render-model/dashboard/content/views/view.d.ts +12 -12
  25. package/dist/model/render-model/dashboard/content/views/views.d.ts +586 -586
  26. package/dist/model/utils/draft.d.ts +1 -0
  27. package/dist/stats.html +1 -1
  28. package/dist/utils/aggregation.d.ts +11 -7
  29. package/dist/utils/template/editor/index.d.ts +0 -1
  30. package/dist/utils/template/render/render-string.d.ts +3 -0
  31. package/package.json +1 -1
  32. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/styles.d.ts +0 -8
  33. package/dist/dashboard-editor/ui/settings/content/edit-panel/variable-config/variable-config-panel.d.ts +0 -10
  34. package/dist/model/render-model/dashboard/content/panels/panels.d.ts +0 -15393
  35. 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 declare const DefaultCustomAggregationFunc: string;
8
- export type AggregationType = {
8
+ export type TSimpleAggregation = {
9
9
  type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min' | 'CV' | 'std';
10
- config: Record<$TSFixMe, never>;
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
- } | TCustomAggregation;
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 aggregateValueFromNumbers(numbers: number[], aggregation: AggregationType): number | number[] | "N/A";
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,3 +1,2 @@
1
1
  export * from './template-input';
2
2
  export * from './utils';
3
- export * from './variable-field';
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "10.49.0",
3
+ "version": "10.50.1",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,8 +0,0 @@
1
- export declare const useStyles: (params: void, options?: import("@mantine/core").UseStylesOptions<string> | undefined) => {
2
- classes: {
3
- root: string;
4
- config: string;
5
- };
6
- cx: (...args: any) => string;
7
- theme: import("@mantine/core").MantineTheme;
8
- };
@@ -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
- };