@devtable/dashboard 13.27.15 → 13.28.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.
- package/dist/components/panel/settings/common/variable-selector/index.d.ts +1 -0
- package/dist/components/panel/settings/common/variable-selector/variable-selector-item.d.ts +10 -0
- package/dist/components/panel/settings/common/variable-selector/variable-selector.d.ts +15 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/gradient-editor.d.ts +1 -0
- package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/preview-gradient-and-apply-palette.d.ts +2 -1
- package/dist/components/plugins/plugin-context.d.ts +28 -0
- package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-control.d.ts +4 -0
- package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-form.d.ts +16 -0
- package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-mark.d.ts +20 -0
- package/dist/components/widgets/rich-text-editor/color-mapping-mark/index.d.ts +3 -0
- package/dist/components/widgets/rich-text-editor/color-mapping-mark/utils.d.ts +20 -0
- package/dist/contexts/panel-context.d.ts +30 -0
- package/dist/dashboard-editor/model/filters/index.d.ts +6 -6
- package/dist/dashboard-editor/model/layouts/layouts.d.ts +1 -1
- package/dist/dashboard-editor/model/panels/panel.d.ts +14 -0
- package/dist/dashboard-editor/model/queries/queries.d.ts +1 -1
- package/dist/dashboard-editor/model/views/index.d.ts +1386 -1386
- package/dist/dashboard-editor/model/views/view.d.ts +14 -14
- package/dist/dashboard-editor/ui/settings/content/edit-view/edit-view-form/index.d.ts +188 -188
- package/dist/dashboard.es.js +12844 -12426
- package/dist/dashboard.umd.js +92 -82
- package/dist/i18n/en.d.ts +14 -0
- package/dist/i18n/zh.d.ts +14 -0
- package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +1 -1
- package/dist/model/meta-model/dashboard/content/filter/widgets/date-range.d.ts +2 -2
- package/dist/model/meta-model/dashboard/content/view/view.d.ts +12 -12
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +6 -6
- package/dist/model/render-model/dashboard/content/layouts/layouts.d.ts +1 -1
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +1 -1
- package/dist/model/render-model/dashboard/content/views/view.d.ts +12 -12
- package/dist/model/render-model/dashboard/content/views/views.d.ts +1007 -1007
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './variable-selector';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
aggValue: string;
|
|
6
|
+
formattedValue: string;
|
|
7
|
+
preview: 'aggregated' | 'formatted';
|
|
8
|
+
}
|
|
9
|
+
export declare const VariableSelectorItem: import('./react').ForwardRefExoticComponent<ItemProps & import('./react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Sx } from '@mantine/core';
|
|
2
|
+
import React from './react';
|
|
3
|
+
type Props = {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (v: string) => void;
|
|
7
|
+
description?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
clearable?: boolean;
|
|
10
|
+
sx?: Sx;
|
|
11
|
+
preview?: 'aggregated' | 'formatted';
|
|
12
|
+
zIndex?: number;
|
|
13
|
+
};
|
|
14
|
+
export declare const VariableSelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>>;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
colors: string[];
|
|
3
3
|
applyPalette: (colors: string[]) => void;
|
|
4
|
+
zIndex?: number;
|
|
4
5
|
};
|
|
5
|
-
export declare const PreviewGradientAndApplyPalette: ({ colors, applyPalette }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
6
|
+
export declare const PreviewGradientAndApplyPalette: ({ colors, applyPalette, zIndex }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -3930,6 +3930,20 @@ export declare const tokens: {
|
|
|
3930
3930
|
value: string;
|
|
3931
3931
|
disabled: boolean;
|
|
3932
3932
|
}[];
|
|
3933
|
+
readonly realVariableOptions: {
|
|
3934
|
+
label: string;
|
|
3935
|
+
value: string;
|
|
3936
|
+
formattedValue: string | number;
|
|
3937
|
+
aggValue: string | number;
|
|
3938
|
+
disabled: boolean;
|
|
3939
|
+
}[];
|
|
3940
|
+
variableOptions(selected: string, clearable: boolean): {
|
|
3941
|
+
label: string;
|
|
3942
|
+
value: string;
|
|
3943
|
+
formattedValue: string | number;
|
|
3944
|
+
aggValue: string | number;
|
|
3945
|
+
disabled: boolean;
|
|
3946
|
+
}[];
|
|
3933
3947
|
dataFieldOptions(selected: string, clearable: boolean, queryID?: string | undefined): {
|
|
3934
3948
|
label: string;
|
|
3935
3949
|
value: string;
|
|
@@ -7306,6 +7320,20 @@ export declare const tokens: {
|
|
|
7306
7320
|
value: string;
|
|
7307
7321
|
disabled: boolean;
|
|
7308
7322
|
}[];
|
|
7323
|
+
readonly realVariableOptions: {
|
|
7324
|
+
label: string;
|
|
7325
|
+
value: string;
|
|
7326
|
+
formattedValue: string | number;
|
|
7327
|
+
aggValue: string | number;
|
|
7328
|
+
disabled: boolean;
|
|
7329
|
+
}[];
|
|
7330
|
+
variableOptions(selected: string, clearable: boolean): {
|
|
7331
|
+
label: string;
|
|
7332
|
+
value: string;
|
|
7333
|
+
formattedValue: string | number;
|
|
7334
|
+
aggValue: string | number;
|
|
7335
|
+
disabled: boolean;
|
|
7336
|
+
}[];
|
|
7309
7337
|
dataFieldOptions(selected: string, clearable: boolean, queryID?: string | undefined): {
|
|
7310
7338
|
label: string;
|
|
7311
7339
|
value: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ColorMappingFormValues = {
|
|
2
|
+
colors: string[];
|
|
3
|
+
min_val: string;
|
|
4
|
+
min_var: string;
|
|
5
|
+
max_val: string;
|
|
6
|
+
max_var: string;
|
|
7
|
+
variable: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
defaultValues: ColorMappingFormValues;
|
|
11
|
+
onSubmit: (values: ColorMappingFormValues) => void;
|
|
12
|
+
cancel: () => void;
|
|
13
|
+
unset: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const ColorMappingForm: ({ defaultValues, onSubmit, unset, cancel }: Props) => import('./react/jsx-runtime').JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
import { ColorMappingFormValues } from './color-mapping-form';
|
|
3
|
+
declare module '@tiptap/core' {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
colorMapping: {
|
|
6
|
+
setColorMapping: (values: ColorMappingFormValues) => ReturnType;
|
|
7
|
+
unsetColorMapping: () => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const ColorMappingAttrKeys: {
|
|
12
|
+
color: string;
|
|
13
|
+
min_val: string;
|
|
14
|
+
min_var: string;
|
|
15
|
+
max_val: string;
|
|
16
|
+
max_var: string;
|
|
17
|
+
variable: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const ColorMappingName = "colorMapping";
|
|
20
|
+
export declare const ColorMappingMark: Mark<any, any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as d3Scale from 'd3-scale';
|
|
2
|
+
import { VariableValueMap } from '../../../../model';
|
|
3
|
+
import { ColorMappingAttrKeys } from './color-mapping-mark';
|
|
4
|
+
export declare const ColorMappingIDPrefix = "grad_color_";
|
|
5
|
+
export declare const IDPrefixReg: RegExp;
|
|
6
|
+
export declare function ensurePrefixOnID(id: string | null): string | null;
|
|
7
|
+
export declare const getColorMappingID: (size: number) => string;
|
|
8
|
+
export declare function getColorMappingFunc(colors: string[], min: number, max: number): d3Scale.ScaleLinear<string, string, never> | (() => string);
|
|
9
|
+
export declare function getColorMappingStyle(doc: Document, variables: VariableValueMap): Record<string, {
|
|
10
|
+
color: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function parseColorMappingAttrs(attrs: Record<keyof typeof ColorMappingAttrKeys, string>): {
|
|
13
|
+
colors: string[];
|
|
14
|
+
min_val: string;
|
|
15
|
+
min_var: string;
|
|
16
|
+
max_val: string;
|
|
17
|
+
max_var: string;
|
|
18
|
+
variable: string;
|
|
19
|
+
empty: boolean;
|
|
20
|
+
};
|
|
@@ -11156,6 +11156,20 @@ export declare const useEditPanelContext: () => {
|
|
|
11156
11156
|
value: string;
|
|
11157
11157
|
disabled: boolean;
|
|
11158
11158
|
}[];
|
|
11159
|
+
readonly realVariableOptions: {
|
|
11160
|
+
label: string;
|
|
11161
|
+
value: string;
|
|
11162
|
+
formattedValue: string | number;
|
|
11163
|
+
aggValue: string | number;
|
|
11164
|
+
disabled: boolean;
|
|
11165
|
+
}[];
|
|
11166
|
+
variableOptions(selected: string, clearable: boolean): {
|
|
11167
|
+
label: string;
|
|
11168
|
+
value: string;
|
|
11169
|
+
formattedValue: string | number;
|
|
11170
|
+
aggValue: string | number;
|
|
11171
|
+
disabled: boolean;
|
|
11172
|
+
}[];
|
|
11159
11173
|
dataFieldOptions(selected: string, clearable: boolean, queryID?: string | undefined): {
|
|
11160
11174
|
label: string;
|
|
11161
11175
|
value: string;
|
|
@@ -14532,6 +14546,20 @@ export declare const useEditPanelContext: () => {
|
|
|
14532
14546
|
value: string;
|
|
14533
14547
|
disabled: boolean;
|
|
14534
14548
|
}[];
|
|
14549
|
+
readonly realVariableOptions: {
|
|
14550
|
+
label: string;
|
|
14551
|
+
value: string;
|
|
14552
|
+
formattedValue: string | number;
|
|
14553
|
+
aggValue: string | number;
|
|
14554
|
+
disabled: boolean;
|
|
14555
|
+
}[];
|
|
14556
|
+
variableOptions(selected: string, clearable: boolean): {
|
|
14557
|
+
label: string;
|
|
14558
|
+
value: string;
|
|
14559
|
+
formattedValue: string | number;
|
|
14560
|
+
aggValue: string | number;
|
|
14561
|
+
disabled: boolean;
|
|
14562
|
+
}[];
|
|
14535
14563
|
dataFieldOptions(selected: string, clearable: boolean, queryID?: string | undefined): {
|
|
14536
14564
|
label: string;
|
|
14537
14565
|
value: string;
|
|
@@ -14558,3 +14586,5 @@ export declare const useEditPanelContext: () => {
|
|
|
14558
14586
|
errors: string[];
|
|
14559
14587
|
downloadPanelScreenshot: () => {};
|
|
14560
14588
|
};
|
|
14589
|
+
export declare const useIsInRenderPanelContext: () => boolean;
|
|
14590
|
+
export declare const useIsInEditPanelContext: () => boolean;
|
|
@@ -54,9 +54,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
54
54
|
default_value: (string | null)[];
|
|
55
55
|
required: boolean;
|
|
56
56
|
_name: "date-range";
|
|
57
|
-
clearable: boolean;
|
|
58
57
|
inputFormat: string;
|
|
59
58
|
default_shortcut: string;
|
|
59
|
+
clearable: boolean;
|
|
60
60
|
max_days: number;
|
|
61
61
|
allowSingleDateInRange: boolean;
|
|
62
62
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -226,9 +226,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
226
226
|
default_value: (string | null)[];
|
|
227
227
|
required: boolean;
|
|
228
228
|
_name: "date-range";
|
|
229
|
-
clearable: boolean;
|
|
230
229
|
inputFormat: string;
|
|
231
230
|
default_shortcut: string;
|
|
231
|
+
clearable: boolean;
|
|
232
232
|
max_days: number;
|
|
233
233
|
allowSingleDateInRange: boolean;
|
|
234
234
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -377,9 +377,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
377
377
|
default_value: (string | null)[];
|
|
378
378
|
required: boolean;
|
|
379
379
|
_name: "date-range";
|
|
380
|
-
clearable: boolean;
|
|
381
380
|
inputFormat: string;
|
|
382
381
|
default_shortcut: string;
|
|
382
|
+
clearable: boolean;
|
|
383
383
|
max_days: number;
|
|
384
384
|
allowSingleDateInRange: boolean;
|
|
385
385
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -528,9 +528,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
528
528
|
default_value: (string | null)[];
|
|
529
529
|
required: boolean;
|
|
530
530
|
_name: "date-range";
|
|
531
|
-
clearable: boolean;
|
|
532
531
|
inputFormat: string;
|
|
533
532
|
default_shortcut: string;
|
|
533
|
+
clearable: boolean;
|
|
534
534
|
max_days: number;
|
|
535
535
|
allowSingleDateInRange: boolean;
|
|
536
536
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -680,9 +680,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
680
680
|
default_value: (string | null)[];
|
|
681
681
|
required: boolean;
|
|
682
682
|
_name: "date-range";
|
|
683
|
-
clearable: boolean;
|
|
684
683
|
inputFormat: string;
|
|
685
684
|
default_shortcut: string;
|
|
685
|
+
clearable: boolean;
|
|
686
686
|
max_days: number;
|
|
687
687
|
allowSingleDateInRange: boolean;
|
|
688
688
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -872,9 +872,9 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
872
872
|
default_value: (string | null)[];
|
|
873
873
|
required: boolean;
|
|
874
874
|
_name: "date-range";
|
|
875
|
-
clearable: boolean;
|
|
876
875
|
inputFormat: string;
|
|
877
876
|
default_shortcut: string;
|
|
877
|
+
clearable: boolean;
|
|
878
878
|
max_days: number;
|
|
879
879
|
allowSingleDateInRange: boolean;
|
|
880
880
|
} | import("mobx-state-tree").ModelSnapshotType<{
|
|
@@ -220,7 +220,7 @@ export declare const LayoutsModel: import("mobx-state-tree").IModelType<{
|
|
|
220
220
|
panelID: string;
|
|
221
221
|
}[];
|
|
222
222
|
}[];
|
|
223
|
-
readonly root: import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").
|
|
223
|
+
readonly root: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
224
224
|
readonly contentModel: any;
|
|
225
225
|
readonly basisLayoutSet: {
|
|
226
226
|
id: string;
|
|
@@ -3356,6 +3356,20 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
3356
3356
|
value: string;
|
|
3357
3357
|
disabled: boolean;
|
|
3358
3358
|
}[];
|
|
3359
|
+
readonly realVariableOptions: {
|
|
3360
|
+
label: string;
|
|
3361
|
+
value: string;
|
|
3362
|
+
formattedValue: string | number;
|
|
3363
|
+
aggValue: string | number;
|
|
3364
|
+
disabled: boolean;
|
|
3365
|
+
}[];
|
|
3366
|
+
variableOptions(selected: string, clearable: boolean): {
|
|
3367
|
+
label: string;
|
|
3368
|
+
value: string;
|
|
3369
|
+
formattedValue: string | number;
|
|
3370
|
+
aggValue: string | number;
|
|
3371
|
+
disabled: boolean;
|
|
3372
|
+
}[];
|
|
3359
3373
|
dataFieldOptions(selected: TDataKey, clearable: boolean, queryID?: string): {
|
|
3360
3374
|
label: string;
|
|
3361
3375
|
value: string;
|
|
@@ -496,7 +496,7 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
496
496
|
post_process: string;
|
|
497
497
|
dep_query_ids: 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]>>;
|
|
498
498
|
}[];
|
|
499
|
-
readonly contentModel: import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").
|
|
499
|
+
readonly contentModel: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
|
|
500
500
|
readonly visibleQueryIDSet: Set<string>;
|
|
501
501
|
isQueryInUse(queryID: string): boolean;
|
|
502
502
|
} & {
|