@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.
Files changed (34) hide show
  1. package/dist/components/panel/settings/common/variable-selector/index.d.ts +1 -0
  2. package/dist/components/panel/settings/common/variable-selector/variable-selector-item.d.ts +10 -0
  3. package/dist/components/panel/settings/common/variable-selector/variable-selector.d.ts +15 -0
  4. package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/gradient-editor.d.ts +1 -0
  5. package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/preview-gradient-and-apply-palette.d.ts +2 -1
  6. package/dist/components/plugins/plugin-context.d.ts +28 -0
  7. package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-control.d.ts +4 -0
  8. package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-form.d.ts +16 -0
  9. package/dist/components/widgets/rich-text-editor/color-mapping-mark/color-mapping-mark.d.ts +20 -0
  10. package/dist/components/widgets/rich-text-editor/color-mapping-mark/index.d.ts +3 -0
  11. package/dist/components/widgets/rich-text-editor/color-mapping-mark/utils.d.ts +20 -0
  12. package/dist/contexts/panel-context.d.ts +30 -0
  13. package/dist/dashboard-editor/model/filters/index.d.ts +6 -6
  14. package/dist/dashboard-editor/model/layouts/layouts.d.ts +1 -1
  15. package/dist/dashboard-editor/model/panels/panel.d.ts +14 -0
  16. package/dist/dashboard-editor/model/queries/queries.d.ts +1 -1
  17. package/dist/dashboard-editor/model/views/index.d.ts +1386 -1386
  18. package/dist/dashboard-editor/model/views/view.d.ts +14 -14
  19. package/dist/dashboard-editor/ui/settings/content/edit-view/edit-view-form/index.d.ts +188 -188
  20. package/dist/dashboard.es.js +12844 -12426
  21. package/dist/dashboard.umd.js +92 -82
  22. package/dist/i18n/en.d.ts +14 -0
  23. package/dist/i18n/zh.d.ts +14 -0
  24. package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +1 -1
  25. package/dist/model/meta-model/dashboard/content/filter/widgets/date-range.d.ts +2 -2
  26. package/dist/model/meta-model/dashboard/content/view/view.d.ts +12 -12
  27. package/dist/model/render-model/dashboard/content/filters/filters.d.ts +6 -6
  28. package/dist/model/render-model/dashboard/content/layouts/layouts.d.ts +1 -1
  29. package/dist/model/render-model/dashboard/content/queries/queries.d.ts +1 -1
  30. package/dist/model/render-model/dashboard/content/views/view.d.ts +12 -12
  31. package/dist/model/render-model/dashboard/content/views/views.d.ts +1007 -1007
  32. package/dist/stats.html +1 -1
  33. package/dist/version.json +2 -2
  34. package/package.json +3 -1
package/dist/i18n/en.d.ts CHANGED
@@ -576,6 +576,20 @@ export declare const en: {
576
576
  edit: string;
577
577
  clear: string;
578
578
  };
579
+ color_mapping: {
580
+ label: string;
581
+ edit: string;
582
+ clear: string;
583
+ choose_value_var: string;
584
+ min: {
585
+ val: string;
586
+ var: string;
587
+ };
588
+ max: {
589
+ val: string;
590
+ var: string;
591
+ };
592
+ };
579
593
  };
580
594
  chart: {
581
595
  chart_config: string;
package/dist/i18n/zh.d.ts CHANGED
@@ -576,6 +576,20 @@ export declare const zh: {
576
576
  edit: string;
577
577
  clear: string;
578
578
  };
579
+ color_mapping: {
580
+ label: string;
581
+ edit: string;
582
+ clear: string;
583
+ choose_value_var: string;
584
+ min: {
585
+ val: string;
586
+ var: string;
587
+ };
588
+ max: {
589
+ val: string;
590
+ var: string;
591
+ };
592
+ };
579
593
  };
580
594
  chart: {
581
595
  chart_config: string;
@@ -52,9 +52,9 @@ export declare const FilterMeta: import("mobx-state-tree").IModelType<{
52
52
  default_value: (string | null)[];
53
53
  required: boolean;
54
54
  _name: "date-range";
55
- clearable: boolean;
56
55
  inputFormat: string;
57
56
  default_shortcut: string;
57
+ clearable: boolean;
58
58
  max_days: number;
59
59
  allowSingleDateInRange: boolean;
60
60
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -36,9 +36,9 @@ export declare const FilterDateRangeConfigMeta: import("mobx-state-tree").ISnaps
36
36
  default_value: (string | null)[];
37
37
  required: boolean;
38
38
  _name: "date-range";
39
- clearable: boolean;
40
39
  inputFormat: string;
41
40
  default_shortcut: string;
41
+ clearable: boolean;
42
42
  max_days: number;
43
43
  allowSingleDateInRange: boolean;
44
44
  }>;
@@ -111,9 +111,9 @@ export declare const createFilterDateRangeConfig: () => {
111
111
  default_value: (string | null)[];
112
112
  required: boolean;
113
113
  _name: "date-range";
114
- clearable: boolean;
115
114
  inputFormat: string;
116
115
  default_shortcut: string;
116
+ clearable: boolean;
117
117
  max_days: number;
118
118
  allowSingleDateInRange: boolean;
119
119
  }>>;
@@ -5,8 +5,6 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
5
5
  name: import("mobx-state-tree").ISimpleType<string>;
6
6
  type: import("mobx-state-tree").ISimpleType<EViewComponentType>;
7
7
  config: import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
8
- _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
9
- }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
10
8
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
11
9
  width: import("mobx-state-tree").ISimpleType<string>;
12
10
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -52,9 +50,9 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
52
50
  variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
53
51
  orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
54
52
  grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
55
- }>>, import("mobx-state-tree").ModelSnapshotType<{
53
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
56
54
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
57
- }> | import("mobx-state-tree").ModelSnapshotType<{
55
+ }>>, import("mobx-state-tree").ModelSnapshotType<{
58
56
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
59
57
  width: import("mobx-state-tree").ISimpleType<string>;
60
58
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -100,13 +98,9 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
100
98
  variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
101
99
  orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
102
100
  grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
103
- }>, import("mobx-state-tree").ModelInstanceType<{
101
+ }> | import("mobx-state-tree").ModelSnapshotType<{
104
102
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
105
- }, {
106
- readonly json: {
107
- _name: EViewComponentType.Division;
108
- };
109
- }> | import("mobx-state-tree").ModelInstanceType<{
103
+ }>, import("mobx-state-tree").ModelInstanceType<{
110
104
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
111
105
  width: import("mobx-state-tree").ISimpleType<string>;
112
106
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -231,6 +225,12 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
231
225
  }>>[]): void;
232
226
  addTab(): void;
233
227
  removeTab(index: number): void;
228
+ }> | import("mobx-state-tree").ModelInstanceType<{
229
+ _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
230
+ }, {
231
+ readonly json: {
232
+ _name: EViewComponentType.Division;
233
+ };
234
234
  }>>;
235
235
  panelIDs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
236
236
  }, {
@@ -239,8 +239,6 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
239
239
  name: string;
240
240
  type: EViewComponentType;
241
241
  config: {
242
- _name: EViewComponentType.Division;
243
- } | {
244
242
  _name: EViewComponentType.Modal;
245
243
  width: string;
246
244
  height: string;
@@ -260,6 +258,8 @@ export declare const ViewMeta: import("mobx-state-tree").IModelType<{
260
258
  _name: EViewComponentType.Modal;
261
259
  variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
262
260
  orientation: import("@mantine/core").TabsOrientation;
261
+ } | {
262
+ _name: EViewComponentType.Division;
263
263
  };
264
264
  panelIDs: string[];
265
265
  };
@@ -53,9 +53,9 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
53
53
  default_value: (string | null)[];
54
54
  required: boolean;
55
55
  _name: "date-range";
56
- clearable: boolean;
57
56
  inputFormat: string;
58
57
  default_shortcut: string;
58
+ clearable: boolean;
59
59
  max_days: number;
60
60
  allowSingleDateInRange: boolean;
61
61
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -223,9 +223,9 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
223
223
  default_value: (string | null)[];
224
224
  required: boolean;
225
225
  _name: "date-range";
226
- clearable: boolean;
227
226
  inputFormat: string;
228
227
  default_shortcut: string;
228
+ clearable: boolean;
229
229
  max_days: number;
230
230
  allowSingleDateInRange: boolean;
231
231
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -374,9 +374,9 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
374
374
  default_value: (string | null)[];
375
375
  required: boolean;
376
376
  _name: "date-range";
377
- clearable: boolean;
378
377
  inputFormat: string;
379
378
  default_shortcut: string;
379
+ clearable: boolean;
380
380
  max_days: number;
381
381
  allowSingleDateInRange: boolean;
382
382
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -525,9 +525,9 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
525
525
  default_value: (string | null)[];
526
526
  required: boolean;
527
527
  _name: "date-range";
528
- clearable: boolean;
529
528
  inputFormat: string;
530
529
  default_shortcut: string;
530
+ clearable: boolean;
531
531
  max_days: number;
532
532
  allowSingleDateInRange: boolean;
533
533
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -677,9 +677,9 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
677
677
  default_value: (string | null)[];
678
678
  required: boolean;
679
679
  _name: "date-range";
680
- clearable: boolean;
681
680
  inputFormat: string;
682
681
  default_shortcut: string;
682
+ clearable: boolean;
683
683
  max_days: number;
684
684
  allowSingleDateInRange: boolean;
685
685
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -813,9 +813,9 @@ export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[]
813
813
  default_value: (string | null)[];
814
814
  required: boolean;
815
815
  _name: "date-range";
816
- clearable: boolean;
817
816
  inputFormat: string;
818
817
  default_shortcut: string;
818
+ clearable: boolean;
819
819
  max_days: number;
820
820
  allowSingleDateInRange: boolean;
821
821
  } | import("mobx-state-tree").ModelSnapshotType<{
@@ -217,7 +217,7 @@ export declare const LayoutsRenderModel: import("mobx-state-tree").IModelType<{
217
217
  panelID: string;
218
218
  }[];
219
219
  }[];
220
- readonly root: import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode> | (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>);
220
+ readonly root: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
221
221
  readonly contentModel: any;
222
222
  readonly basisLayoutSet: {
223
223
  id: string;
@@ -412,7 +412,7 @@ export declare const QueriesRenderModel: import("mobx-state-tree").IModelType<{
412
412
  post_process: string;
413
413
  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]>>;
414
414
  }[];
415
- readonly contentModel: import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode> | (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>);
415
+ readonly contentModel: (object & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyComplexType>) | import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IAnyStateTreeNode>;
416
416
  readonly visibleQueryIDSet: Set<string>;
417
417
  isQueryInUse(queryID: string): boolean;
418
418
  } & {
@@ -5,8 +5,6 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
5
5
  name: import("mobx-state-tree").ISimpleType<string>;
6
6
  type: import("mobx-state-tree").ISimpleType<EViewComponentType>;
7
7
  config: import("mobx-state-tree").ITypeUnion<import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
8
- _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
9
- }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
10
8
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
11
9
  width: import("mobx-state-tree").ISimpleType<string>;
12
10
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -52,9 +50,9 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
52
50
  variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
53
51
  orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
54
52
  grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
55
- }>>, import("mobx-state-tree").ModelSnapshotType<{
53
+ }>> | import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
56
54
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
57
- }> | import("mobx-state-tree").ModelSnapshotType<{
55
+ }>>, import("mobx-state-tree").ModelSnapshotType<{
58
56
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
59
57
  width: import("mobx-state-tree").ISimpleType<string>;
60
58
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -100,13 +98,9 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
100
98
  variant: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>;
101
99
  orientation: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsOrientation>, [undefined]>;
102
100
  grow: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
103
- }>, import("mobx-state-tree").ModelInstanceType<{
101
+ }> | import("mobx-state-tree").ModelSnapshotType<{
104
102
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
105
- }, {
106
- readonly json: {
107
- _name: EViewComponentType.Division;
108
- };
109
- }> | import("mobx-state-tree").ModelInstanceType<{
103
+ }>, import("mobx-state-tree").ModelInstanceType<{
110
104
  _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Modal>;
111
105
  width: import("mobx-state-tree").ISimpleType<string>;
112
106
  height: import("mobx-state-tree").ISimpleType<string>;
@@ -231,6 +225,12 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
231
225
  }>>[]): void;
232
226
  addTab(): void;
233
227
  removeTab(index: number): void;
228
+ }> | import("mobx-state-tree").ModelInstanceType<{
229
+ _name: import("mobx-state-tree").ISimpleType<EViewComponentType.Division>;
230
+ }, {
231
+ readonly json: {
232
+ _name: EViewComponentType.Division;
233
+ };
234
234
  }>>;
235
235
  panelIDs: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
236
236
  } & {
@@ -241,8 +241,6 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
241
241
  name: string;
242
242
  type: EViewComponentType;
243
243
  config: {
244
- _name: EViewComponentType.Division;
245
- } | {
246
244
  _name: EViewComponentType.Modal;
247
245
  width: string;
248
246
  height: string;
@@ -262,6 +260,8 @@ export declare const ViewRenderModel: import("mobx-state-tree").IModelType<{
262
260
  _name: EViewComponentType.Modal;
263
261
  variant: "default" | "outline" | "pills" | (string & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<import("@mantine/core").TabsVariant>, [undefined]>>);
264
262
  orientation: import("@mantine/core").TabsOrientation;
263
+ } | {
264
+ _name: EViewComponentType.Division;
265
265
  };
266
266
  panelIDs: string[];
267
267
  };