@devtable/dashboard 14.58.1 → 14.58.3

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 (138) hide show
  1. package/dist/api-caller/request.d.ts +9 -9
  2. package/dist/components/filter/filter-date-range/editor.d.ts +0 -1
  3. package/dist/components/filter/filter-merico-date-range/widget/calendar/use-get-day-props.d.ts +1 -1
  4. package/dist/components/filter/filter-multi-select/editor.d.ts +0 -1
  5. package/dist/components/filter/filter-settings/filter-settings.d.ts +0 -1
  6. package/dist/components/filter/filter-settings/index.d.ts +0 -1
  7. package/dist/components/filter/filter-text-input/editor.d.ts +0 -1
  8. package/dist/components/filter/filter-tree/common/types.d.ts +0 -1
  9. package/dist/components/filter/filter-tree/filter-tree-select/editor/filter-tree-select-editor.d.ts +0 -1
  10. package/dist/components/filter/index.d.ts +0 -1
  11. package/dist/components/filter/search-button/index.d.ts +0 -1
  12. package/dist/components/panel/panel-editor/dropdown-menu-items/dropdown-menu-items.d.ts +0 -1
  13. package/dist/components/panel/panel-editor/index.d.ts +0 -1
  14. package/dist/components/panel/panel-render/dropdown-menu-items/dropdown-menu-items.d.ts +0 -1
  15. package/dist/components/panel/panel-render/full-screen-render/full-screen-panel.d.ts +0 -1
  16. package/dist/components/panel/panel-render/title-bar/index.d.ts +0 -1
  17. package/dist/components/panel/panel-render/use-download-panel-screenshot.d.ts +0 -1
  18. package/dist/components/panel/panel-render/viz/viz.d.ts +0 -1
  19. package/dist/components/panel/settings/common/mantine-size-selector.d.ts +0 -1
  20. package/dist/components/panel/settings/common/variable-selector/variable-selector-item.d.ts +1 -2
  21. package/dist/components/plugins/colors/diverging-color.d.ts +1 -1
  22. package/dist/components/plugins/colors/sequential-color.d.ts +1 -1
  23. package/dist/components/plugins/common-echarts-fields/axis-label-overflow/axis-label-overflow-field.d.ts +0 -1
  24. package/dist/components/plugins/common-echarts-fields/axis-label-overflow/overflow-field.d.ts +0 -1
  25. package/dist/components/plugins/common-echarts-fields/axis-label-rotate/axis-label-rotate-input.d.ts +0 -1
  26. package/dist/components/plugins/common-echarts-fields/label-position/label-position-selector.d.ts +0 -1
  27. package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-origin-selector.d.ts +0 -1
  28. package/dist/components/plugins/common-echarts-fields/line-area-style/line-area-style-field.d.ts +0 -1
  29. package/dist/components/plugins/common-echarts-fields/line-area-style/temp-color-input.d.ts +0 -1
  30. package/dist/components/plugins/common-echarts-fields/line-type/line-type-selector.d.ts +0 -1
  31. package/dist/components/plugins/common-echarts-fields/name-text-align/name-text-align-selector.d.ts +0 -1
  32. package/dist/components/plugins/common-echarts-fields/number-or-dynamic-value/field/index.d.ts +0 -1
  33. package/dist/components/plugins/common-echarts-fields/orientation/orientation-selector.d.ts +0 -1
  34. package/dist/components/plugins/common-echarts-fields/reference-area/field.d.ts +0 -1
  35. package/dist/components/plugins/common-echarts-fields/series-order/series-order-selector.d.ts +0 -1
  36. package/dist/components/plugins/common-echarts-fields/series-unit/series-unit-field.d.ts +0 -1
  37. package/dist/components/plugins/common-echarts-fields/symbol-size/symbol-size-selector.d.ts +0 -1
  38. package/dist/components/plugins/common-echarts-fields/visual-map/visual-map-editor/continuous/gradient-editor.d.ts +0 -1
  39. package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/x-axis-label-formatter-field.d.ts +0 -1
  40. package/dist/components/plugins/common-echarts-fields/x-axis-position/x-axis-position-selector.d.ts +0 -1
  41. package/dist/components/plugins/common-echarts-fields/y-axis-position/y-axis-position-selector.d.ts +0 -1
  42. package/dist/components/plugins/editor-components/color-mapping-editor/index.d.ts +0 -1
  43. package/dist/components/plugins/editor-components/color-type/color-type-selector.d.ts +0 -1
  44. package/dist/components/plugins/editor-components/flex/align-items-selector.d.ts +0 -1
  45. package/dist/components/plugins/editor-components/flex/justify-content-selector.d.ts +0 -1
  46. package/dist/components/plugins/editor-components/horizontal-align-selector.d.ts +0 -1
  47. package/dist/components/plugins/editor-components/vertical-align-selector.d.ts +0 -1
  48. package/dist/components/plugins/editor-components/viz-config-banner.d.ts +0 -1
  49. package/dist/components/plugins/hooks/use-tab-state.d.ts +0 -1
  50. package/dist/components/plugins/plugin-context.d.ts +648 -3557
  51. package/dist/components/plugins/viz-components/cartesian/editors/echarts-zooming-field/index.d.ts +0 -1
  52. package/dist/components/plugins/viz-components/merico-linear-gauge/editor/sections-editor/sections-editor.d.ts +0 -1
  53. package/dist/components/plugins/viz-components/merico-panel-groups/editor/groups-editor.d.ts +0 -1
  54. package/dist/components/plugins/viz-components/merico-stats/editors/metrics/postfix-field.d.ts +0 -1
  55. package/dist/components/plugins/viz-components/pareto-chart/option/index.d.ts +2 -2
  56. package/dist/components/plugins/viz-components/pareto-chart/option/series.d.ts +2 -2
  57. package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/pie-color-map-editor.d.ts +0 -1
  58. package/dist/components/plugins/viz-components/pie-chart/editors/radius-slider.d.ts +0 -1
  59. package/dist/components/plugins/viz-components/pie-chart/option/index.d.ts +1 -1
  60. package/dist/components/plugins/viz-components/regression-chart/render/toolbox/data-key-selector/data-key-selector.d.ts +3 -3
  61. package/dist/components/plugins/viz-components/regression-chart/render/use-data-key.d.ts +0 -1
  62. package/dist/components/plugins/viz-components/rich-text/triggers/click-rich-text-block.d.ts +6 -0
  63. package/dist/components/plugins/viz-components/rich-text/triggers/index.d.ts +1 -0
  64. package/dist/components/plugins/viz-components/rich-text/viz-rich-text.d.ts +1 -1
  65. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/label-overflow.d.ts +0 -1
  66. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/series-color-select/index.d.ts +0 -1
  67. package/dist/components/plugins/viz-components/sunburst/option/levels.d.ts +1 -1
  68. package/dist/components/plugins/viz-components/table/components/background-color-select.d.ts +0 -1
  69. package/dist/components/plugins/viz-components/table/editors/columns/func_content-editor.d.ts +0 -1
  70. package/dist/components/plugins/viz-components/table/render/table-body.d.ts +0 -1
  71. package/dist/components/plugins/viz-components/table/value-type-selector.d.ts +0 -1
  72. package/dist/components/plugins/viz-components/text/editors/func-content/index.d.ts +0 -1
  73. package/dist/components/view/view-component/render/division.d.ts +1 -1
  74. package/dist/components/view/view-component/utils/use-download-div-screenshot.d.ts +0 -1
  75. package/dist/components/view/view-editor.d.ts +0 -1
  76. package/dist/components/view/view-render.d.ts +0 -1
  77. package/dist/components/widgets/color-picker-popover/color-picker-popover-for-viz.d.ts +0 -1
  78. package/dist/components/widgets/inline-function-input/index.d.ts +0 -1
  79. package/dist/components/widgets/rich-text-editor/custom-rich-text-editor.d.ts +0 -1
  80. package/dist/components/widgets/rich-text-editor/interaction-block-node/index.d.ts +23 -0
  81. package/dist/components/widgets/rich-text-editor/interaction-block-node/interaction-block-control.d.ts +2 -0
  82. package/dist/components/widgets/rich-text-editor/readonly-rich-text-editor.d.ts +0 -1
  83. package/dist/contexts/dashboard-theme-context.d.ts +2 -2
  84. package/dist/contexts/panel-context.d.ts +2697 -8513
  85. package/dist/dashboard-editor/model/datasources/datasource.d.ts +4 -4
  86. package/dist/dashboard-editor/model/datasources/db-info/db-info.d.ts +2 -1
  87. package/dist/dashboard-editor/model/datasources/index.d.ts +19 -19
  88. package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.d.ts +3 -3
  89. package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.utils.d.ts +1 -1
  90. package/dist/dashboard-editor/model/datasources/mm-info/mm-info.d.ts +3 -3
  91. package/dist/dashboard-editor/model/filters/filter-model.d.ts +3 -3
  92. package/dist/dashboard-editor/model/filters/index.d.ts +36 -36
  93. package/dist/dashboard-editor/model/layouts/layouts.d.ts +2 -451
  94. package/dist/dashboard-editor/model/panels/panel.d.ts +9 -1464
  95. package/dist/dashboard-editor/model/panels/panels.d.ts +13968 -0
  96. package/dist/dashboard-editor/model/queries/queries.d.ts +105 -105
  97. package/dist/dashboard-editor/model/queries/query.d.ts +8 -8
  98. package/dist/dashboard-editor/model/views/index.d.ts +13 -1470
  99. package/dist/dashboard-editor/model/views/view.d.ts +2 -11
  100. package/dist/dashboard-editor/ui/settings/content/data-preview/data-table-with-pagination.d.ts +1 -1
  101. package/dist/dashboard-editor/ui/settings/content/data-preview/index.d.ts +1 -1
  102. package/dist/dashboard-editor/ui/settings/content/db-explorer-modal/db-explorer/structure/loading-skeleton.d.ts +4 -4
  103. package/dist/dashboard-editor/ui/settings/content/edit-panel/pick-query/index.d.ts +0 -1
  104. package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/preview-data/data-table-with-pagination.d.ts +1 -1
  105. package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/dimension-icon/dimension-icon.d.ts +1 -1
  106. package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/sql-var-selector/index.d.ts +0 -1
  107. package/dist/dashboard-editor/ui/settings/content/edit-view/edit-view-form/index.d.ts +2 -1160
  108. package/dist/dashboard-editor/ui/settings/content/utils.d.ts +9 -9
  109. package/dist/dashboard-editor/ui/settings/content/view-query-vars/query-variables-guide.d.ts +0 -1
  110. package/dist/dashboard.es.js +7978 -7739
  111. package/dist/dashboard.umd.js +67 -67
  112. package/dist/i18n/en.d.ts +9 -0
  113. package/dist/i18n/zh.d.ts +9 -0
  114. package/dist/interactions/interactions-viewer/node-with-interactions/index.d.ts +2 -3
  115. package/dist/model/meta-model/context/context.d.ts +2 -2
  116. package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +2 -2
  117. package/dist/model/meta-model/dashboard/content/filter/widgets/date-range.d.ts +5 -5
  118. package/dist/model/meta-model/dashboard/content/filter/widgets/merico-date-range.d.ts +5 -5
  119. package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +6 -6
  120. package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +6 -6
  121. package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select-base.d.ts +2 -2
  122. package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +6 -6
  123. package/dist/model/meta-model/dashboard/content/filter/widgets/tree-single-select.d.ts +6 -6
  124. package/dist/model/meta-model/dashboard/content/layout/layout-item.d.ts +1 -1
  125. package/dist/model/render-model/dashboard/content/filters/filters.d.ts +25 -25
  126. package/dist/model/render-model/dashboard/content/layouts/layouts.d.ts +3 -452
  127. package/dist/model/render-model/dashboard/content/panels/panel.d.ts +7 -1462
  128. package/dist/model/render-model/dashboard/content/panels/panels.d.ts +12432 -0
  129. package/dist/model/render-model/dashboard/content/queries/queries.d.ts +72 -72
  130. package/dist/model/render-model/dashboard/content/queries/query.d.ts +8 -8
  131. package/dist/model/render-model/dashboard/content/views/view.d.ts +1 -1
  132. package/dist/model/render-model/dashboard/content/views/views.d.ts +9 -9
  133. package/dist/shared/api-client/default-api-client.d.ts +3 -3
  134. package/dist/stats.html +1 -1
  135. package/dist/utils/http-query.d.ts +1 -1
  136. package/dist/utils/template/render/render-string.d.ts +0 -1
  137. package/dist/version.json +2 -2
  138. package/package.json +6 -6
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TEchartsDataZoomConfig } from './types';
3
2
  interface IEchartsZoomingField {
4
3
  value: TEchartsDataZoomConfig;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MericoLinearGaugeSection } from '../../type';
3
2
  type Props = {
4
3
  value: MericoLinearGaugeSection[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MericoPanelGroupItem } from '../type';
3
2
  type Props = {
4
3
  value: MericoPanelGroupItem[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TMetricPostfix } from '../../type';
3
2
  type Props = {
4
3
  value: TMetricPostfix;
@@ -78,7 +78,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, vari
78
78
  label: {
79
79
  show: boolean;
80
80
  position: string;
81
- formatter: (payload: any) => void;
81
+ formatter: (payload: $TSFixMe) => void;
82
82
  };
83
83
  yAxisIndex: number;
84
84
  data: BarData;
@@ -103,7 +103,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, vari
103
103
  label: {
104
104
  show: boolean;
105
105
  position: string;
106
- formatter: (payload: any) => void;
106
+ formatter: (payload: $TSFixMe) => void;
107
107
  };
108
108
  yAxisIndex: number;
109
109
  data: import("./types").TLineDataItem[];
@@ -11,7 +11,7 @@ export declare function getSeries(conf: IParetoChartConf, barData: BarData, form
11
11
  label: {
12
12
  show: boolean;
13
13
  position: string;
14
- formatter: (payload: any) => void;
14
+ formatter: (payload: $TSFixMe) => void;
15
15
  };
16
16
  yAxisIndex: number;
17
17
  data: BarData;
@@ -36,7 +36,7 @@ export declare function getSeries(conf: IParetoChartConf, barData: BarData, form
36
36
  label: {
37
37
  show: boolean;
38
38
  position: string;
39
- formatter: (payload: any) => void;
39
+ formatter: (payload: $TSFixMe) => void;
40
40
  };
41
41
  yAxisIndex: number;
42
42
  data: TLineDataItem[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NameColorMapRow } from '../../type';
3
2
  type Props = {
4
3
  value: NameColorMapRow[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type PropValue = [string, string];
3
2
  type Props = {
4
3
  value: PropValue;
@@ -33,7 +33,7 @@ export declare function getOption(conf: IPieChartConf, data: TPanelData, width:
33
33
  maxSurfaceAngle: number;
34
34
  showAbove: boolean;
35
35
  };
36
- labelLayout: (params: any) => {
36
+ labelLayout: (params: $TSFixMe) => {
37
37
  labelLinePoints: any;
38
38
  };
39
39
  top: number;
@@ -3,7 +3,7 @@ import React from './react';
3
3
  export declare const DataKeySelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<NativeSelectProps, "value" | "onChange"> & {
4
4
  value: string;
5
5
  onChange: (v: string) => void;
6
- clearable?: boolean | undefined;
7
- queryID?: string | undefined;
8
- unsetKey?: string | undefined;
6
+ clearable?: boolean;
7
+ queryID?: string;
8
+ unsetKey?: string;
9
9
  } & React.RefAttributes<HTMLSelectElement>, "ref"> & React.RefAttributes<HTMLSelectElement>>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const useDataKey: (initialKey: TDataKey) => {
3
2
  value: string;
4
3
  set: import('./react').Dispatch<import('./react').SetStateAction<string>>;
@@ -0,0 +1,6 @@
1
+ import { ITriggerConfigProps, ITriggerSchema } from '../../../../../types/plugin';
2
+ export declare const ClickRichTextBlock: ITriggerSchema;
3
+ export interface IClickRichTextBlockConfig {
4
+ blockId: string;
5
+ }
6
+ export declare function ClickRichTextBlockSettings(props: ITriggerConfigProps): import('./react/jsx-runtime').JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './click-rich-text-block';
@@ -1,4 +1,4 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare const VizRichText: (({ context }: VizViewProps) => import('./react/jsx-runtime').JSX.Element | null) & {
2
+ export declare const VizRichText: (({ context, instance }: VizViewProps) => import('./react/jsx-runtime').JSX.Element | null) & {
3
3
  displayName: string;
4
4
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IScatterLabelOverflow } from '../../type';
3
2
  interface IScatterLabelOverflowField {
4
3
  value: IScatterLabelOverflow;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TSeriesColor } from './types';
3
2
  interface ISeriesColorSelect {
4
3
  label?: string;
@@ -3,7 +3,7 @@ import { IEchartsSunburstLabelFormatter } from './types';
3
3
  export declare function getLevels(conf: ISunburstConf): {
4
4
  label: {
5
5
  formatter: ({ treePathInfo, name, value }: IEchartsSunburstLabelFormatter) => string | undefined;
6
- rotate: "0" | "radial" | "tangential";
6
+ rotate: "radial" | "tangential" | "0";
7
7
  align: "left" | "center" | "right";
8
8
  position: import("../../../common-echarts-fields/label-position").IEchartsLabelPosition;
9
9
  padding: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CellBackgroundColorType } from '../../../../../components/plugins/viz-components/table/type';
3
2
  export interface IBackgroundColorSelectProps {
4
3
  value?: CellBackgroundColorType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IFuncContentEditor {
3
2
  value: string;
4
3
  onChange: (v: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Row } from '@tanstack/react-table';
3
2
  import { AnyObject } from '../../../../../types';
4
3
  type Props = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EmotionSx } from '@mantine/emotion';
3
2
  import { ValueType } from './type';
4
3
  interface IValueTypeSelector {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IFuncContentField {
3
2
  value: string;
4
3
  onChange: (v: string) => void;
@@ -9,7 +9,7 @@ export declare const DivActions: (({ downloadScreenshot }: {
9
9
  export declare const RenderViewDivision: (({ children, view, sx }: {
10
10
  children: ReactNode;
11
11
  view: ViewRenderModelInstance;
12
- sx?: EmotionSx | undefined;
12
+ sx?: EmotionSx;
13
13
  }) => import('./react/jsx-runtime').JSX.Element) & {
14
14
  displayName: string;
15
15
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ViewRenderModelInstance } from '../../../../model';
3
2
  export declare function useDownloadDivScreenshot(view: ViewRenderModelInstance): {
4
3
  ref: import('./react').RefObject<HTMLDivElement>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ViewRenderModelInstance } from '../../model';
3
2
  interface IDashboardViewEditor {
4
3
  view: ViewRenderModelInstance;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ViewRenderModelInstance } from '../../model';
3
2
  interface IDashboardViewRender {
4
3
  view: ViewRenderModelInstance;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  label: string;
4
3
  value?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MonacoEditorRestriction } from '../function-editor';
3
2
  type Props = {
4
3
  value: TFunctionString;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RichTextEditorProps } from '@mantine/tiptap';
3
2
  interface ICustomRichTextEditor {
4
3
  value: string;
@@ -0,0 +1,23 @@
1
+ import { Node } from '@tiptap/core';
2
+ export interface InteractionBlockOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ declare module '@tiptap/core' {
6
+ interface Commands<ReturnType> {
7
+ interactionBlock: {
8
+ /**
9
+ * Set an interaction block with a specific ID
10
+ */
11
+ setInteractionBlock: (blockId: string) => ReturnType;
12
+ /**
13
+ * Toggle an interaction block
14
+ */
15
+ toggleInteractionBlock: (blockId: string) => ReturnType;
16
+ /**
17
+ * Unset an interaction block
18
+ */
19
+ unsetInteractionBlock: () => ReturnType;
20
+ };
21
+ }
22
+ }
23
+ export declare const InteractionBlock: Node<InteractionBlockOptions, any>;
@@ -0,0 +1,2 @@
1
+ export declare function InteractionBlockControl(): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function ClearInteractionBlockControl(): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EmotionSx } from '@mantine/emotion';
3
2
  import { RichTextEditorProps } from '@mantine/tiptap';
4
3
  import { TDashboardStateValues, VariableAggValueMap } from '../../../model';
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from './react';
2
2
  import { RenderSearchButtonProps } from '..';
3
3
  export declare const DashboardThemeContextProvider: React.Provider<{
4
- renderSearchButton?: ((props: RenderSearchButtonProps) => ReactNode) | undefined;
4
+ renderSearchButton?: (props: RenderSearchButtonProps) => ReactNode;
5
5
  }>;
6
6
  export declare function useDashboardThemeContext(): {
7
- renderSearchButton?: ((props: RenderSearchButtonProps) => React.ReactNode) | undefined;
7
+ renderSearchButton?: (props: RenderSearchButtonProps) => ReactNode;
8
8
  };