@devtable/dashboard 14.50.6 → 14.52.0

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 (30) hide show
  1. package/dist/components/plugins/hooks/index.d.ts +1 -0
  2. package/dist/components/plugins/hooks/use-handle-chart-render-finished.d.ts +5 -0
  3. package/dist/components/plugins/plugin-context.d.ts +194 -0
  4. package/dist/components/plugins/viz-components/cartesian/editors/stats/index.d.ts +2 -3
  5. package/dist/components/plugins/viz-components/horizontal-bar-chart/editors/stats/index.d.ts +9 -0
  6. package/dist/components/plugins/viz-components/horizontal-bar-chart/type.d.ts +4 -0
  7. package/dist/components/plugins/viz-components/horizontal-bar-chart/viz-horizontal-bar-chart.d.ts +1 -1
  8. package/dist/contexts/panel-context.d.ts +388 -0
  9. package/dist/dashboard-editor/model/datasources/datasource.d.ts +0 -1
  10. package/dist/dashboard-editor/model/datasources/index.d.ts +0 -5
  11. package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.d.ts +0 -1
  12. package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.types.d.ts +11 -1
  13. package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.utils.d.ts +9 -3
  14. package/dist/dashboard-editor/model/datasources/mm-info/mm-info.d.ts +0 -1
  15. package/dist/dashboard-editor/model/panels/panel.d.ts +97 -0
  16. package/dist/dashboard-editor/model/queries/queries.d.ts +183 -0
  17. package/dist/dashboard-editor/model/queries/query.d.ts +7 -0
  18. package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/derived-calculations.d.ts +8 -0
  19. package/dist/dashboard.es.js +5284 -5057
  20. package/dist/dashboard.umd.js +64 -65
  21. package/dist/model/meta-model/dashboard/content/query/merico-metric-query.d.ts +12 -0
  22. package/dist/model/meta-model/dashboard/content/query/query.d.ts +6 -0
  23. package/dist/model/render-model/dashboard/content/filters/filters.d.ts +1 -1
  24. package/dist/model/render-model/dashboard/content/panels/panel.d.ts +65 -0
  25. package/dist/model/render-model/dashboard/content/queries/mute-query.d.ts +8 -1
  26. package/dist/model/render-model/dashboard/content/queries/queries.d.ts +137 -0
  27. package/dist/model/render-model/dashboard/content/queries/query.d.ts +9 -2
  28. package/dist/stats.html +1 -1
  29. package/dist/version.json +2 -2
  30. package/package.json +1 -1
@@ -39,6 +39,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
39
39
  stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
40
40
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
41
41
  useDefaultValues: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
42
+ extraCalculations: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
42
43
  }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
43
44
  _type: import("mobx-state-tree").ISimpleType<import('../../../model').DataSourceType.Postgresql | import('../../../model').DataSourceType.MySQL>;
44
45
  sql: import("mobx-state-tree").ISimpleType<string>;
@@ -76,6 +77,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
76
77
  stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
77
78
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
78
79
  useDefaultValues: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
80
+ extraCalculations: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
79
81
  }> | import("mobx-state-tree").ModelSnapshotType<{
80
82
  _type: import("mobx-state-tree").ISimpleType<import('../../../model').DataSourceType.Postgresql | import('../../../model').DataSourceType.MySQL>;
81
83
  sql: import("mobx-state-tree").ISimpleType<string>;
@@ -131,6 +133,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
131
133
  stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
132
134
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
133
135
  useDefaultValues: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
136
+ extraCalculations: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
134
137
  }, {
135
138
  readonly query: any;
136
139
  readonly valid: boolean;
@@ -156,6 +159,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
156
159
  stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
157
160
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
158
161
  useDefaultValues: boolean;
162
+ extraCalculations: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
159
163
  _type: import('../../../model').DataSourceType.MericoMetricSystem;
160
164
  };
161
165
  readonly usedFilterDimensionKeys: Set<string>;
@@ -199,6 +203,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
199
203
  setUnitVariable(v: string | null): void;
200
204
  setTimeQueryEnabled(v: boolean): void;
201
205
  setUseDefaultValues(v: boolean): void;
206
+ setExtraCalculations(v: string[]): void;
202
207
  }> | import("mobx-state-tree").ModelInstanceType<{
203
208
  _type: import("mobx-state-tree").ISimpleType<import('../../../model').DataSourceType.Postgresql | import('../../../model').DataSourceType.MySQL>;
204
209
  sql: import("mobx-state-tree").ISimpleType<string>;
@@ -255,6 +260,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
255
260
  stepKeyFormat: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
256
261
  }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
257
262
  useDefaultValues: boolean;
263
+ extraCalculations: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
258
264
  _type: import('../../../model').DataSourceType.MericoMetricSystem;
259
265
  } | {
260
266
  sql: string;
@@ -319,6 +325,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
319
325
  stepKeyFormat: "YYYY-MM-DD";
320
326
  } | undefined;
321
327
  useDefaultValues?: boolean | undefined;
328
+ extraCalculations?: string[] | undefined;
322
329
  } | null;
323
330
  readonly metricQueryPayloadString: string;
324
331
  readonly metricQueryPayloadError: string[];
@@ -0,0 +1,8 @@
1
+ import { QueryModelInstance } from '../../../../../../../../dashboard-editor/model';
2
+ type Props = {
3
+ queryModel: QueryModelInstance;
4
+ };
5
+ export declare const DerivedCalculations: (({ queryModel }: Props) => import('./react/jsx-runtime').JSX.Element | null) & {
6
+ displayName: string;
7
+ };
8
+ export {};