@devtable/dashboard 14.55.0 → 14.55.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/panel/settings/common/data-field-selector.d.ts +2 -1
- package/dist/components/plugins/plugin-context.d.ts +44 -8
- package/dist/components/plugins/viz-components/merico-linear-gauge/editor/sections-editor/row-editor.d.ts +3 -2
- package/dist/contexts/panel-context.d.ts +56 -8
- package/dist/dashboard-editor/model/panels/panel.d.ts +14 -2
- package/dist/dashboard.es.js +2385 -2321
- package/dist/dashboard.umd.js +59 -59
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +19 -6
- package/dist/model/render-model/dashboard/content/panels/types.d.ts +15 -2
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
3
|
import { ITemplateVariable } from '../../../../../utils';
|
|
4
4
|
import { QueryRenderModelInstance } from '../queries';
|
|
5
|
+
import { ComboboxItem } from '@mantine/core';
|
|
5
6
|
export type VariableValueMap = Record<string, string | number>;
|
|
6
7
|
export type VariableAggValueMap = Record<string, string | number>;
|
|
7
8
|
export type VariableStyleMap = Record<string, {
|
|
@@ -3493,7 +3494,7 @@ export declare const PanelRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
3493
3494
|
readonly conditionOptions: import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
3494
3495
|
getConditionOptionsWithInvalidValue(value: string | null): import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
3495
3496
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
3496
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<
|
|
3497
|
+
optionGroups: import("@mantine/core").ComboboxItemGroup<ComboboxItem>[];
|
|
3497
3498
|
validValues: Set<string>;
|
|
3498
3499
|
};
|
|
3499
3500
|
readonly unmetRunByConditions: string[];
|
|
@@ -3847,7 +3848,7 @@ export declare const PanelRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
3847
3848
|
readonly conditionOptions: import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
3848
3849
|
getConditionOptionsWithInvalidValue(value: string | null): import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
3849
3850
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
3850
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<
|
|
3851
|
+
optionGroups: import("@mantine/core").ComboboxItemGroup<ComboboxItem>[];
|
|
3851
3852
|
validValues: Set<string>;
|
|
3852
3853
|
};
|
|
3853
3854
|
readonly unmetRunByConditions: string[];
|
|
@@ -4988,7 +4989,7 @@ export declare const PanelRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
4988
4989
|
readonly conditionOptions: import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
4989
4990
|
getConditionOptionsWithInvalidValue(value: string | null): import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
4990
4991
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
4991
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<
|
|
4992
|
+
optionGroups: import("@mantine/core").ComboboxItemGroup<ComboboxItem>[];
|
|
4992
4993
|
validValues: Set<string>;
|
|
4993
4994
|
};
|
|
4994
4995
|
readonly unmetRunByConditions: string[];
|
|
@@ -5342,7 +5343,7 @@ export declare const PanelRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
5342
5343
|
readonly conditionOptions: import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
5343
5344
|
getConditionOptionsWithInvalidValue(value: string | null): import('../../../../../model/meta-model').DashboardStateVariableOptions;
|
|
5344
5345
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
5345
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<
|
|
5346
|
+
optionGroups: import("@mantine/core").ComboboxItemGroup<ComboboxItem>[];
|
|
5346
5347
|
validValues: Set<string>;
|
|
5347
5348
|
};
|
|
5348
5349
|
readonly unmetRunByConditions: string[];
|
|
@@ -5433,14 +5434,26 @@ export declare const PanelRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
5433
5434
|
group_id: string;
|
|
5434
5435
|
disabled: boolean;
|
|
5435
5436
|
}[];
|
|
5436
|
-
dataFieldOptions(selected
|
|
5437
|
+
dataFieldOptions({ selected, clearable, unsetKey, queryID, additional_options, }: {
|
|
5438
|
+
selected: TDataKey;
|
|
5439
|
+
clearable: boolean;
|
|
5440
|
+
unsetKey: string;
|
|
5441
|
+
queryID?: string | undefined;
|
|
5442
|
+
additional_options?: ComboboxItem[] | undefined;
|
|
5443
|
+
}): {
|
|
5437
5444
|
label: string;
|
|
5438
5445
|
value: string;
|
|
5439
5446
|
group: string;
|
|
5440
5447
|
group_id: string;
|
|
5441
5448
|
disabled: boolean;
|
|
5442
5449
|
}[];
|
|
5443
|
-
dataFieldOptionGroups(selected
|
|
5450
|
+
dataFieldOptionGroups({ selected, clearable, unsetKey, queryID, additional_options, }: {
|
|
5451
|
+
selected: TDataKey;
|
|
5452
|
+
clearable: boolean;
|
|
5453
|
+
unsetKey: string;
|
|
5454
|
+
queryID?: string | undefined;
|
|
5455
|
+
additional_options?: ComboboxItem[] | undefined;
|
|
5456
|
+
}): {
|
|
5444
5457
|
group: string;
|
|
5445
5458
|
items: {
|
|
5446
5459
|
label: string;
|
|
@@ -4,6 +4,7 @@ import { IContentRenderModel } from '../../../../../dashboard-render';
|
|
|
4
4
|
import type { IPanelMeta } from '../../../../meta-model';
|
|
5
5
|
import { type IQueryRenderModel, QueryRenderModelInstance } from '../queries';
|
|
6
6
|
import { VariableAggValueMap, VariableStyleMap, VariableValueMap } from './panel';
|
|
7
|
+
import { ComboboxItem } from '@mantine/core';
|
|
7
8
|
export interface IPanelRenderModel extends IPanelMeta {
|
|
8
9
|
readonly contentModel: IContentRenderModel;
|
|
9
10
|
readonly queries: QueryRenderModelInstance[];
|
|
@@ -35,14 +36,26 @@ export interface IPanelRenderModel extends IPanelMeta {
|
|
|
35
36
|
layouts: unknown;
|
|
36
37
|
};
|
|
37
38
|
downloadSchema(): void;
|
|
38
|
-
dataFieldOptions(
|
|
39
|
+
dataFieldOptions(props: {
|
|
40
|
+
selected: TDataKey;
|
|
41
|
+
clearable: boolean;
|
|
42
|
+
unsetKey: string;
|
|
43
|
+
queryID?: string;
|
|
44
|
+
additional_options?: ComboboxItem[];
|
|
45
|
+
}): {
|
|
39
46
|
label: string;
|
|
40
47
|
value: string;
|
|
41
48
|
group: string;
|
|
42
49
|
group_id: string;
|
|
43
50
|
disabled: boolean;
|
|
44
51
|
}[];
|
|
45
|
-
dataFieldOptionGroups(
|
|
52
|
+
dataFieldOptionGroups(props: {
|
|
53
|
+
selected: TDataKey;
|
|
54
|
+
clearable: boolean;
|
|
55
|
+
unsetKey: string;
|
|
56
|
+
queryID?: string;
|
|
57
|
+
additional_options?: ComboboxItem[];
|
|
58
|
+
}): {
|
|
46
59
|
group: string;
|
|
47
60
|
items: {
|
|
48
61
|
label: string;
|