@devtable/dashboard 13.21.0 → 13.23.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/panel-render/full-screen-render/use-panel-full-screen.d.ts +2 -0
- package/dist/components/plugins/editor-components/viz-config-banner.d.ts +3 -1
- package/dist/components/plugins/plugin-context.d.ts +10 -2
- package/dist/components/plugins/viz-components/stats/type.d.ts +2 -3
- package/dist/components/plugins/viz-components/stats/update/index.d.ts +1 -1
- package/dist/components/plugins/viz-components/stats/viz-stats-editor.d.ts +1 -1
- package/dist/components/widgets/index.d.ts +7 -0
- package/dist/components/widgets/rich-text-editor/custom-rich-text-editor.d.ts +1 -0
- package/dist/components/widgets/rich-text-editor/dynamic-color-mark/utils.d.ts +2 -0
- package/dist/components/widgets/rich-text-editor/index.d.ts +4 -0
- package/dist/contexts/panel-context.d.ts +4 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +1 -0
- package/dist/dashboard.es.js +14610 -14511
- package/dist/dashboard.umd.js +85 -79
- package/dist/i18n/en.d.ts +4 -0
- package/dist/i18n/zh.d.ts +4 -0
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +8 -0
- package/dist/stats.html +1 -1
- package/dist/utils/function-utils.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/rich-text/index.d.ts +1 -0
- package/dist/{components/plugins/viz-components → utils}/rich-text/parse-rich-text-content.d.ts +2 -2
- package/dist/utils/template/render/render-jsx.d.ts +4 -1
- package/dist/utils/template/utils.d.ts +2 -0
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import dayjs from 'dayjs';
|
|
|
4
4
|
import lodash from 'lodash';
|
|
5
5
|
import * as mathjs from 'mathjs';
|
|
6
6
|
import numbro from 'numbro';
|
|
7
|
+
import * as popmotion from 'popmotion';
|
|
7
8
|
export declare const functionUtils: {
|
|
8
9
|
CryptoJS: typeof CryptoJS;
|
|
9
10
|
d3Array: typeof d3Array;
|
|
@@ -12,5 +13,6 @@ export declare const functionUtils: {
|
|
|
12
13
|
numbro: typeof numbro;
|
|
13
14
|
mathjs: mathjs.MathJsStatic;
|
|
14
15
|
faker: import("@faker-js/faker").Faker;
|
|
16
|
+
popmotion: typeof popmotion;
|
|
15
17
|
};
|
|
16
18
|
export declare const getFunctionUtilsDescription: (t: any) => string;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './parse-rich-text-content';
|
package/dist/{components/plugins/viz-components → utils}/rich-text/parse-rich-text-content.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TPayloadForViz } from '
|
|
2
|
-
import { ITemplateVariable } from '
|
|
1
|
+
import { TPayloadForViz } from '../../model';
|
|
2
|
+
import { ITemplateVariable } from '../../utils';
|
|
3
3
|
export declare function parseRichTextContent(rawContent: string, variables: ITemplateVariable[], payload: TPayloadForViz, data: TPanelData): string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from './react';
|
|
2
|
-
import { ITemplateVariable } from '../types';
|
|
2
|
+
import { ColorConfType, ITemplateVariable } from '../types';
|
|
3
|
+
declare function getColorByColorConf(conf: ColorConfType, value: number | number[] | null | string): string;
|
|
4
|
+
export declare const getColorByVariableColorConf: typeof getColorByColorConf;
|
|
3
5
|
export declare function variable2Jsx(variable: ITemplateVariable, data: TPanelData): import('./react/jsx-runtime').JSX.Element;
|
|
4
6
|
export declare function templateToJSX(template: string, variables: ITemplateVariable[], data: TPanelData): (import('./react/jsx-runtime').JSX.Element | React.ReactNode[])[];
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { PanelRenderModelInstance } from '../../model';
|
|
1
2
|
import { ITemplateVariable } from './types';
|
|
2
3
|
export declare function getNonStatsDataText(data: $TSFixMe): any;
|
|
3
4
|
export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: TPanelData): any;
|
|
4
5
|
export declare function formatAggregatedValue({ formatter, aggregation }: ITemplateVariable, value: number | string | number[] | null): any;
|
|
6
|
+
export declare function transformTemplateToRichText(template: string, panel: PanelRenderModelInstance): string;
|
package/dist/version.json
CHANGED