@devtable/dashboard 14.41.0 → 14.42.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/api-caller/request.d.ts +4 -4
- package/dist/components/plugins/plugin-context.d.ts +24 -96
- package/dist/components/plugins/viz-components/viz-dashboard-state/editor/dashboard-state-variable-selector.d.ts +9 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/editor/fields.d.ts +5 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/editor/viz-viz-dashboard-state-editor.d.ts +2 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/index.d.ts +2 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/checkbox-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/context-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/date-range-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/item-badge.d.ts +9 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/multi-select-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/selection-table.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/single-select-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/state-item.d.ts +6 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/text-input-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/tree-select-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/tree-single-select-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/state-items.d.ts +8 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/render/viz-viz-dashboard-state.d.ts +4 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/translation.d.ts +2 -0
- package/dist/components/plugins/viz-components/viz-dashboard-state/type.d.ts +5 -0
- package/dist/components/widgets/rich-text-editor/dynamic-color-mark/utils.d.ts +2 -2
- package/dist/components/widgets/rich-text-editor/readonly-rich-text-editor.d.ts +2 -2
- package/dist/contexts/panel-context.d.ts +48 -192
- package/dist/dashboard-editor/model/filters/index.d.ts +2 -1
- package/dist/dashboard-editor/model/panels/panel.d.ts +12 -48
- package/dist/dashboard-editor/model/queries/queries.d.ts +26 -104
- package/dist/dashboard-editor/model/queries/query.d.ts +2 -8
- package/dist/dashboard-render/model/types.d.ts +3 -3
- package/dist/dashboard.es.js +6477 -6116
- package/dist/dashboard.umd.js +67 -67
- package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +8 -4
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +8 -4
- package/dist/model/meta-model/dashboard/content/types.d.ts +25 -2
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +6 -4
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +8 -32
- package/dist/model/render-model/dashboard/content/queries/mute-query.d.ts +3 -9
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +18 -72
- package/dist/model/render-model/dashboard/content/queries/query.d.ts +2 -8
- package/dist/stats.html +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/dashboard-state.d.ts +3 -3
- package/dist/utils/http-query.d.ts +2 -2
- package/dist/utils/sql.d.ts +2 -2
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse, Method } from 'axios';
|
|
2
|
-
import { DataSourceType,
|
|
2
|
+
import { DataSourceType, TDashboardStateValues } from '../model';
|
|
3
3
|
import { AnyObject, IDashboardConfig } from '..';
|
|
4
4
|
import { DefaultApiClient, IAPIClient } from '../shared';
|
|
5
5
|
export { DefaultApiClient, FacadeApiClient } from '../shared';
|
|
@@ -7,7 +7,7 @@ export type { IAPIClient, IAPIClientRequestOptions } from '../shared';
|
|
|
7
7
|
export type TAdditionalQueryInfo = {
|
|
8
8
|
content_id: string;
|
|
9
9
|
query_id: string;
|
|
10
|
-
params:
|
|
10
|
+
params: TDashboardStateValues;
|
|
11
11
|
};
|
|
12
12
|
export type TQueryPayload = {
|
|
13
13
|
type: DataSourceType;
|
|
@@ -29,7 +29,7 @@ export type QueryMMInfoRequest = {
|
|
|
29
29
|
query: string;
|
|
30
30
|
env?: AnyObject;
|
|
31
31
|
content_id: string;
|
|
32
|
-
params:
|
|
32
|
+
params: TDashboardStateValues;
|
|
33
33
|
};
|
|
34
34
|
export type MetricQuery = {
|
|
35
35
|
type: 'merico_metric_system';
|
|
@@ -37,7 +37,7 @@ export type MetricQuery = {
|
|
|
37
37
|
query: string;
|
|
38
38
|
env?: AnyObject;
|
|
39
39
|
content_id: string;
|
|
40
|
-
params:
|
|
40
|
+
params: TDashboardStateValues;
|
|
41
41
|
};
|
|
42
42
|
export interface IDashboardAPIClient extends IAPIClient {
|
|
43
43
|
query: <T = $TSFixMe>(signal?: AbortSignal) => (data: TQueryPayload, options?: AnyObject) => Promise<T>;
|
|
@@ -4014,14 +4014,8 @@ export declare const tokens: {
|
|
|
4014
4014
|
} & {
|
|
4015
4015
|
readonly rootModel: any;
|
|
4016
4016
|
readonly contentModel: any;
|
|
4017
|
-
readonly conditionOptions:
|
|
4018
|
-
|
|
4019
|
-
validValues: Set<string>;
|
|
4020
|
-
};
|
|
4021
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
4022
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
4023
|
-
validValues: Set<string>;
|
|
4024
|
-
};
|
|
4017
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
4018
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
4025
4019
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
4026
4020
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
4027
4021
|
validValues: Set<string>;
|
|
@@ -4360,14 +4354,8 @@ export declare const tokens: {
|
|
|
4360
4354
|
} & {
|
|
4361
4355
|
readonly rootModel: any;
|
|
4362
4356
|
readonly contentModel: any;
|
|
4363
|
-
readonly conditionOptions:
|
|
4364
|
-
|
|
4365
|
-
validValues: Set<string>;
|
|
4366
|
-
};
|
|
4367
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
4368
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
4369
|
-
validValues: Set<string>;
|
|
4370
|
-
};
|
|
4357
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
4358
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
4371
4359
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
4372
4360
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
4373
4361
|
validValues: Set<string>;
|
|
@@ -5457,14 +5445,8 @@ export declare const tokens: {
|
|
|
5457
5445
|
} & {
|
|
5458
5446
|
readonly rootModel: any;
|
|
5459
5447
|
readonly contentModel: any;
|
|
5460
|
-
readonly conditionOptions:
|
|
5461
|
-
|
|
5462
|
-
validValues: Set<string>;
|
|
5463
|
-
};
|
|
5464
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
5465
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
5466
|
-
validValues: Set<string>;
|
|
5467
|
-
};
|
|
5448
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
5449
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
5468
5450
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
5469
5451
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
5470
5452
|
validValues: Set<string>;
|
|
@@ -5803,14 +5785,8 @@ export declare const tokens: {
|
|
|
5803
5785
|
} & {
|
|
5804
5786
|
readonly rootModel: any;
|
|
5805
5787
|
readonly contentModel: any;
|
|
5806
|
-
readonly conditionOptions:
|
|
5807
|
-
|
|
5808
|
-
validValues: Set<string>;
|
|
5809
|
-
};
|
|
5810
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
5811
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
5812
|
-
validValues: Set<string>;
|
|
5813
|
-
};
|
|
5788
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
5789
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
5814
5790
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
5815
5791
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
5816
5792
|
validValues: Set<string>;
|
|
@@ -6901,14 +6877,8 @@ export declare const tokens: {
|
|
|
6901
6877
|
} & {
|
|
6902
6878
|
readonly rootModel: any;
|
|
6903
6879
|
readonly contentModel: any;
|
|
6904
|
-
readonly conditionOptions:
|
|
6905
|
-
|
|
6906
|
-
validValues: Set<string>;
|
|
6907
|
-
};
|
|
6908
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
6909
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
6910
|
-
validValues: Set<string>;
|
|
6911
|
-
};
|
|
6880
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
6881
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
6912
6882
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
6913
6883
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
6914
6884
|
validValues: Set<string>;
|
|
@@ -7247,14 +7217,8 @@ export declare const tokens: {
|
|
|
7247
7217
|
} & {
|
|
7248
7218
|
readonly rootModel: any;
|
|
7249
7219
|
readonly contentModel: any;
|
|
7250
|
-
readonly conditionOptions:
|
|
7251
|
-
|
|
7252
|
-
validValues: Set<string>;
|
|
7253
|
-
};
|
|
7254
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
7255
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
7256
|
-
validValues: Set<string>;
|
|
7257
|
-
};
|
|
7220
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
7221
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
7258
7222
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
7259
7223
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
7260
7224
|
validValues: Set<string>;
|
|
@@ -11298,14 +11262,8 @@ export declare const tokens: {
|
|
|
11298
11262
|
} & {
|
|
11299
11263
|
readonly rootModel: any;
|
|
11300
11264
|
readonly contentModel: any;
|
|
11301
|
-
readonly conditionOptions:
|
|
11302
|
-
|
|
11303
|
-
validValues: Set<string>;
|
|
11304
|
-
};
|
|
11305
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
11306
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
11307
|
-
validValues: Set<string>;
|
|
11308
|
-
};
|
|
11265
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
11266
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
11309
11267
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
11310
11268
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
11311
11269
|
validValues: Set<string>;
|
|
@@ -11644,14 +11602,8 @@ export declare const tokens: {
|
|
|
11644
11602
|
} & {
|
|
11645
11603
|
readonly rootModel: any;
|
|
11646
11604
|
readonly contentModel: any;
|
|
11647
|
-
readonly conditionOptions:
|
|
11648
|
-
|
|
11649
|
-
validValues: Set<string>;
|
|
11650
|
-
};
|
|
11651
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
11652
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
11653
|
-
validValues: Set<string>;
|
|
11654
|
-
};
|
|
11605
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
11606
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
11655
11607
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
11656
11608
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
11657
11609
|
validValues: Set<string>;
|
|
@@ -12741,14 +12693,8 @@ export declare const tokens: {
|
|
|
12741
12693
|
} & {
|
|
12742
12694
|
readonly rootModel: any;
|
|
12743
12695
|
readonly contentModel: any;
|
|
12744
|
-
readonly conditionOptions:
|
|
12745
|
-
|
|
12746
|
-
validValues: Set<string>;
|
|
12747
|
-
};
|
|
12748
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
12749
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
12750
|
-
validValues: Set<string>;
|
|
12751
|
-
};
|
|
12696
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
12697
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
12752
12698
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
12753
12699
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
12754
12700
|
validValues: Set<string>;
|
|
@@ -13087,14 +13033,8 @@ export declare const tokens: {
|
|
|
13087
13033
|
} & {
|
|
13088
13034
|
readonly rootModel: any;
|
|
13089
13035
|
readonly contentModel: any;
|
|
13090
|
-
readonly conditionOptions:
|
|
13091
|
-
|
|
13092
|
-
validValues: Set<string>;
|
|
13093
|
-
};
|
|
13094
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
13095
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
13096
|
-
validValues: Set<string>;
|
|
13097
|
-
};
|
|
13036
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
13037
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
13098
13038
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
13099
13039
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
13100
13040
|
validValues: Set<string>;
|
|
@@ -14185,14 +14125,8 @@ export declare const tokens: {
|
|
|
14185
14125
|
} & {
|
|
14186
14126
|
readonly rootModel: any;
|
|
14187
14127
|
readonly contentModel: any;
|
|
14188
|
-
readonly conditionOptions:
|
|
14189
|
-
|
|
14190
|
-
validValues: Set<string>;
|
|
14191
|
-
};
|
|
14192
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
14193
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
14194
|
-
validValues: Set<string>;
|
|
14195
|
-
};
|
|
14128
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
14129
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
14196
14130
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
14197
14131
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
14198
14132
|
validValues: Set<string>;
|
|
@@ -14531,14 +14465,8 @@ export declare const tokens: {
|
|
|
14531
14465
|
} & {
|
|
14532
14466
|
readonly rootModel: any;
|
|
14533
14467
|
readonly contentModel: any;
|
|
14534
|
-
readonly conditionOptions:
|
|
14535
|
-
|
|
14536
|
-
validValues: Set<string>;
|
|
14537
|
-
};
|
|
14538
|
-
getConditionOptionsWithInvalidValue(value: string | null): {
|
|
14539
|
-
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
14540
|
-
validValues: Set<string>;
|
|
14541
|
-
};
|
|
14468
|
+
readonly conditionOptions: import("../..").DashboardStateVariableOptions;
|
|
14469
|
+
getConditionOptionsWithInvalidValue(value: string | null): import("../..").DashboardStateVariableOptions;
|
|
14542
14470
|
readonly conditionOptionsWithInvalidRunbys: {
|
|
14543
14471
|
optionGroups: import("@mantine/core").ComboboxItemGroup<import("@mantine/core").ComboboxItem>[];
|
|
14544
14472
|
validValues: Set<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
value: string[];
|
|
3
|
+
onChange: (value: string[]) => void;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const DashboardStateVariableSelector: (({ value, onChange, disabled }: Props) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
package/dist/components/plugins/viz-components/viz-dashboard-state/render/item/item-badge.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from './react';
|
|
2
|
+
type Props = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
value: ReactNode;
|
|
5
|
+
label_description?: ReactNode;
|
|
6
|
+
value_description?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const ItemBadge: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TDashboardStateValues, VariableValueMap } from '../../../../model';
|
|
2
2
|
import { MonacoEditorRestriction } from '../../function-editor';
|
|
3
3
|
export declare const DefaultDynamicColorFuncLines: string[];
|
|
4
4
|
export declare const DefaultDynamicColorFunc: string;
|
|
@@ -9,6 +9,6 @@ export declare const DynamicColorIDPrefix = "dyn_color_";
|
|
|
9
9
|
export declare const IDPrefixReg: RegExp;
|
|
10
10
|
export declare function ensurePrefixOnID(id: string | null): string | null;
|
|
11
11
|
export declare const getDynamicColorID: (size: number) => string;
|
|
12
|
-
export declare function getDynamicColorStyles(doc: Document,
|
|
12
|
+
export declare function getDynamicColorStyles(doc: Document, dashboardStateValues: TDashboardStateValues, variables: VariableValueMap): Record<string, {
|
|
13
13
|
color: string;
|
|
14
14
|
}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EmotionSx } from '@mantine/emotion';
|
|
3
3
|
import { RichTextEditorProps } from '@mantine/tiptap';
|
|
4
|
-
import {
|
|
4
|
+
import { TDashboardStateValues, VariableAggValueMap } from '../../../model';
|
|
5
5
|
interface IReadonlyRichText {
|
|
6
6
|
value: string;
|
|
7
7
|
styles?: RichTextEditorProps['styles'];
|
|
8
8
|
sx?: EmotionSx;
|
|
9
|
-
|
|
9
|
+
dashboardStateValues?: TDashboardStateValues;
|
|
10
10
|
variableAggValueMap?: VariableAggValueMap;
|
|
11
11
|
}
|
|
12
12
|
export declare const ReadonlyRichText: import('./react').ForwardRefExoticComponent<IReadonlyRichText & import('./react').RefAttributes<HTMLDivElement>>;
|