@ecan-bi/datav 1.0.38 → 1.0.41

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 (126) hide show
  1. package/dist/index.es.js +32 -45
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +31 -44
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +2 -2
  7. package/types/common/echarts/Echarts.d.ts +418 -0
  8. package/types/common/echarts/index.d.ts +2 -2
  9. package/types/common/index.d.ts +1 -1
  10. package/types/common/skeleton/Skeleton.vue.d.ts +14 -0
  11. package/types/common/skeleton/index.d.ts +2 -0
  12. package/types/container/modal/Modal.vue.d.ts +2 -2
  13. package/types/container/modal/index.d.ts +2 -2
  14. package/types/control/range-picker/RangePicker.vue.d.ts +2 -2
  15. package/types/control/range-picker/index.d.ts +2 -2
  16. package/dist/src/_utils/constant.d.ts +0 -7
  17. package/dist/src/_utils/hooks/index.d.ts +0 -13
  18. package/dist/src/_utils/hooks/useDownloadFile.d.ts +0 -2
  19. package/dist/src/_utils/hooks/useEmitEvent.d.ts +0 -7
  20. package/dist/src/_utils/hooks/useImagePath.d.ts +0 -2
  21. package/dist/src/_utils/hooks/useOnEvent.d.ts +0 -6
  22. package/dist/src/_utils/hooks/usePageUrl.d.ts +0 -2
  23. package/dist/src/_utils/hooks/usePickComponentStyle.d.ts +0 -9
  24. package/dist/src/_utils/hooks/usePickEchartsData.d.ts +0 -2
  25. package/dist/src/_utils/hooks/useRequestData.d.ts +0 -6
  26. package/dist/src/_utils/hooks/useRequestDiagramData.d.ts +0 -6
  27. package/dist/src/_utils/hooks/useTooltipFormatter.d.ts +0 -4
  28. package/dist/src/_utils/hooks/useTransformChartDataByAttrKey.d.ts +0 -13
  29. package/dist/src/_utils/hooks/useTransformChartDataByAttrValue.d.ts +0 -13
  30. package/dist/src/_utils/hooks/useValueFormatter.d.ts +0 -2
  31. package/dist/src/_utils/hooks/useVariablesInText.d.ts +0 -4
  32. package/dist/src/_utils/props.d.ts +0 -71
  33. package/dist/src/_utils/request.d.ts +0 -2
  34. package/dist/src/_utils/util.d.ts +0 -20
  35. package/dist/src/_utils/withInstall.d.ts +0 -5
  36. package/dist/src/common/echarts/composables/api.d.ts +0 -7
  37. package/dist/src/common/echarts/composables/autoresize.d.ts +0 -6
  38. package/dist/src/common/echarts/composables/index.d.ts +0 -3
  39. package/dist/src/common/echarts/composables/loading.d.ts +0 -10
  40. package/dist/src/common/echarts/index.d.ts +0 -2
  41. package/dist/src/common/echarts/types.d.ts +0 -20
  42. package/dist/src/common/echarts/utils.d.ts +0 -6
  43. package/dist/src/common/index.d.ts +0 -3
  44. package/dist/src/common/spin/Spin.vue.d.ts +0 -18
  45. package/dist/src/common/spin/index.d.ts +0 -2
  46. package/dist/src/components.d.ts +0 -9
  47. package/dist/src/container/border/Border.vue.d.ts +0 -494
  48. package/dist/src/container/border/index.d.ts +0 -494
  49. package/dist/src/container/border/props.d.ts +0 -255
  50. package/dist/src/container/index.d.ts +0 -2
  51. package/dist/src/container/modal/Modal.vue.d.ts +0 -505
  52. package/dist/src/container/modal/index.d.ts +0 -506
  53. package/dist/src/container/modal/props.d.ts +0 -179
  54. package/dist/src/control/button/Button.vue.d.ts +0 -404
  55. package/dist/src/control/button/index.d.ts +0 -404
  56. package/dist/src/control/button/props.d.ts +0 -205
  57. package/dist/src/control/date-picker/DatePicker.vue.d.ts +0 -480
  58. package/dist/src/control/date-picker/index.d.ts +0 -479
  59. package/dist/src/control/date-picker/props.d.ts +0 -245
  60. package/dist/src/control/index.d.ts +0 -6
  61. package/dist/src/control/input/Input.vue.d.ts +0 -438
  62. package/dist/src/control/input/index.d.ts +0 -439
  63. package/dist/src/control/input/props.d.ts +0 -224
  64. package/dist/src/control/range-picker/RangePicker.vue.d.ts +0 -596
  65. package/dist/src/control/range-picker/index.d.ts +0 -595
  66. package/dist/src/control/range-picker/props.d.ts +0 -245
  67. package/dist/src/control/select/Select.vue.d.ts +0 -613
  68. package/dist/src/control/select/index.d.ts +0 -613
  69. package/dist/src/control/select/props.d.ts +0 -321
  70. package/dist/src/control/tabs/Tabs.vue.d.ts +0 -447
  71. package/dist/src/control/tabs/index.d.ts +0 -448
  72. package/dist/src/control/tabs/props.d.ts +0 -235
  73. package/dist/src/graph/bar/Bar.vue.d.ts +0 -1963
  74. package/dist/src/graph/bar/index.d.ts +0 -1963
  75. package/dist/src/graph/bar/props.d.ts +0 -954
  76. package/dist/src/graph/combo-graph/ComboGraph.vue.d.ts +0 -853
  77. package/dist/src/graph/combo-graph/index.d.ts +0 -854
  78. package/dist/src/graph/combo-graph/props.d.ts +0 -429
  79. package/dist/src/graph/custom-graph/CustomGraph.vue.d.ts +0 -537
  80. package/dist/src/graph/custom-graph/index.d.ts +0 -537
  81. package/dist/src/graph/custom-graph/props.d.ts +0 -274
  82. package/dist/src/graph/index.d.ts +0 -6
  83. package/dist/src/graph/line/Line.vue.d.ts +0 -818
  84. package/dist/src/graph/line/index.d.ts +0 -819
  85. package/dist/src/graph/line/props.d.ts +0 -409
  86. package/dist/src/graph/pie/Pie.vue.d.ts +0 -894
  87. package/dist/src/graph/pie/index.d.ts +0 -895
  88. package/dist/src/graph/pie/props.d.ts +0 -461
  89. package/dist/src/graph/scatter/Scatter.vue.d.ts +0 -794
  90. package/dist/src/graph/scatter/index.d.ts +0 -795
  91. package/dist/src/graph/scatter/props.d.ts +0 -396
  92. package/dist/src/index.d.ts +0 -6
  93. package/dist/src/map/index.d.ts +0 -1
  94. package/dist/src/map/map/Map.vue.d.ts +0 -1699
  95. package/dist/src/map/map/index.d.ts +0 -1700
  96. package/dist/src/map/map/props.d.ts +0 -829
  97. package/dist/src/media/image/Image.vue.d.ts +0 -476
  98. package/dist/src/media/image/index.d.ts +0 -477
  99. package/dist/src/media/image/props.d.ts +0 -244
  100. package/dist/src/media/index.d.ts +0 -1
  101. package/dist/src/setting/index.d.ts +0 -2
  102. package/dist/src/setting/page-config/PageConfig.vue.d.ts +0 -112
  103. package/dist/src/setting/page-config/index.d.ts +0 -113
  104. package/dist/src/setting/page-config/props.d.ts +0 -61
  105. package/dist/src/setting/provider-config/ProviderConfig.vue.d.ts +0 -48
  106. package/dist/src/setting/provider-config/index.d.ts +0 -49
  107. package/dist/src/setting/provider-config/props.d.ts +0 -29
  108. package/dist/src/table/index.d.ts +0 -1
  109. package/dist/src/table/table/Table.vue.d.ts +0 -552
  110. package/dist/src/table/table/index.d.ts +0 -553
  111. package/dist/src/table/table/props.d.ts +0 -285
  112. package/dist/src/text/index.d.ts +0 -5
  113. package/dist/src/text/list/List.vue.d.ts +0 -849
  114. package/dist/src/text/list/index.d.ts +0 -849
  115. package/dist/src/text/list/props.d.ts +0 -441
  116. package/dist/src/text/proportion/Proportion.vue.d.ts +0 -760
  117. package/dist/src/text/proportion/index.d.ts +0 -760
  118. package/dist/src/text/proportion/props.d.ts +0 -395
  119. package/dist/src/text/scroll-text/ScrollText.vue.d.ts +0 -4
  120. package/dist/src/text/scroll-text/index.d.ts +0 -4
  121. package/dist/src/text/text/Text.vue.d.ts +0 -736
  122. package/dist/src/text/text/index.d.ts +0 -736
  123. package/dist/src/text/text/props.d.ts +0 -383
  124. package/dist/src/text/time-display/TimeDisplay.vue.d.ts +0 -547
  125. package/dist/src/text/time-display/index.d.ts +0 -548
  126. package/dist/src/text/time-display/props.d.ts +0 -284
@@ -1,13 +0,0 @@
1
- import { Data, KeyTypeDataFieldNames } from '../props';
2
- /**
3
- * 图形转化数据
4
- * @param data 数据
5
- * @param dataFieldNames 字段映射
6
- */
7
- export declare const useTransformChartDataByAttrKey: (data: Data, dataFieldNames: KeyTypeDataFieldNames) => {
8
- dimensions: unknown[];
9
- dataset: {
10
- [key: string]: any;
11
- }[];
12
- };
13
- export default useTransformChartDataByAttrKey;
@@ -1,13 +0,0 @@
1
- import { Data, ValueTypeDataFieldNames } from '../props';
2
- /**
3
- * 图形转化数据
4
- * @param data 数据
5
- * @param dataFieldNames 字段映射
6
- */
7
- export declare const useTransformChartDataByAttrValue: (data: Data, dataFieldNames?: ValueTypeDataFieldNames) => {
8
- dimensions: unknown[];
9
- dataset: {
10
- [key: string]: any;
11
- }[];
12
- };
13
- export default useTransformChartDataByAttrValue;
@@ -1,2 +0,0 @@
1
- export declare const useValueFormatter: (formatter: string, value: any) => string;
2
- export default useValueFormatter;
@@ -1,4 +0,0 @@
1
- export declare const useVariablesInText: (text: string, data?: {
2
- [key: string]: any;
3
- }) => string;
4
- export default useVariablesInText;
@@ -1,71 +0,0 @@
1
- interface Event {
2
- on: string;
3
- target: string;
4
- emit: string;
5
- }
6
- export declare type Events = Event[];
7
- export declare type RequestMethod = 'get' | 'post' | 'put' | 'delete' | 'head';
8
- export interface RequestParam {
9
- key: string;
10
- value: {
11
- id: string;
12
- prop: string;
13
- } | string;
14
- }
15
- export declare type RequestParams = RequestParam[];
16
- export interface Props {
17
- id: string;
18
- name: string;
19
- keyName: string;
20
- type: string;
21
- width: string;
22
- height: string;
23
- position: string;
24
- top: string;
25
- left: string;
26
- zIndex: number;
27
- rotate: string;
28
- isShow: boolean;
29
- isRender: boolean;
30
- events: Events;
31
- requestUrl: string;
32
- requestMethod: RequestMethod;
33
- requestHeaders: {
34
- [key: string]: any;
35
- };
36
- isOpenRequestTimer: boolean;
37
- requestInterval: number;
38
- requestParams: RequestParams;
39
- requestSort: number;
40
- dataType: 'static' | 'request' | 'indicator';
41
- }
42
- export declare const props: Props;
43
- export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
44
- type?: undefined;
45
- default?: undefined;
46
- } | {
47
- type: any;
48
- default: T[keyof T];
49
- }; };
50
- export interface EventsProp {
51
- events: Events;
52
- }
53
- interface DataItem {
54
- name: string | number;
55
- value: string | number;
56
- type?: string;
57
- }
58
- export declare type Data = DataItem[];
59
- export interface KeyTypeDataFieldNames {
60
- name: string;
61
- types: {
62
- label: string;
63
- value: string;
64
- }[];
65
- }
66
- export interface ValueTypeDataFieldNames {
67
- name: string;
68
- value: string;
69
- type: string;
70
- }
71
- export {};
@@ -1,2 +0,0 @@
1
- export declare const request: import("axios").AxiosInstance;
2
- export default request;
@@ -1,20 +0,0 @@
1
- export declare const handleAxisLabelFormatter: (formatter: string) => string;
2
- /**
3
- * 处理图表format, 目前只做 \\n => \n 转化
4
- * @param formatter 格式化字符串
5
- */
6
- export declare const handleFormatter: (formatter: string) => string;
7
- /**
8
- * 格式化金额
9
- * @param value 数值
10
- * @param decimalPlaces 格式化位数
11
- */
12
- export declare const formatMoney: (value: string | number, decimalPlaces?: number) => string | number;
13
- export declare const formatPercentage: (value: string | number, decimalPlaces?: number) => string | number;
14
- /**
15
- * 字符串1 中是否包含 字符串2 (会全部转成小写)
16
- * @param v1 字符串1
17
- * @param v2 字符串2
18
- * @constructor
19
- */
20
- export declare const lowerCaseIncludes: (v1: any, v2: any) => boolean;
@@ -1,5 +0,0 @@
1
- import { Plugin } from 'vue';
2
- export declare type SFCWithInstall<T> = T & Plugin;
3
- export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
- export declare const withInstallFunction: <T>(fn: T, name: string) => SFCWithInstall<T>;
5
- export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { EChartsType, Option } from '../types';
3
- declare const METHOD_NAMES: readonly ["getWidth", "getHeight", "getDom", "getOption", "resize", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
4
- declare type MethodName = typeof METHOD_NAMES[number];
5
- declare type PublicMethods = Pick<EChartsType, MethodName>;
6
- export declare function usePublicAPI(chart: Ref<EChartsType | undefined>, init: (option?: Option) => void): PublicMethods;
7
- export {};
@@ -1,6 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { EChartsType } from '../types';
3
- export declare function useAutoresize(chart: Ref<EChartsType | undefined>, autoresize: Ref<boolean>, root: Ref<HTMLElement | undefined>): void;
4
- export declare const autoresizeProps: {
5
- autoresize: BooleanConstructor;
6
- };
@@ -1,3 +0,0 @@
1
- export * from './api';
2
- export * from './autoresize';
3
- export * from './loading';
@@ -1,10 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { EChartsType } from '../types';
3
- export declare const LOADING_OPTIONS_KEY = "ecLoadingOptions";
4
- declare type UnknownRecord = Record<string, unknown>;
5
- export declare function useLoading(chart: Ref<EChartsType | undefined>, loading: Ref<boolean>, loadingOptions: Ref<UnknownRecord | undefined>): void;
6
- export declare const loadingProps: {
7
- loading: BooleanConstructor;
8
- loadingOptions: ObjectConstructor;
9
- };
10
- export {};
@@ -1,2 +0,0 @@
1
- import ECharts from './ECharts';
2
- export default ECharts;
@@ -1,20 +0,0 @@
1
- import { init } from 'echarts/core';
2
- import { Ref } from 'vue';
3
- declare type InitType = typeof init;
4
- export declare type InitParameters = Parameters<InitType>;
5
- export declare type Theme = NonNullable<InitParameters[1]>;
6
- export declare type ThemeInjection = Theme | null | Ref<Theme | null>;
7
- export declare type InitOptions = NonNullable<InitParameters[2]>;
8
- export declare type InitOptionsInjection = InitOptions | null | Ref<InitOptions | null>;
9
- export declare type EChartsType = ReturnType<InitType>;
10
- declare type SetOptionType = EChartsType['setOption'];
11
- export declare type Option = Parameters<SetOptionType>[0];
12
- export interface UpdateOptions {
13
- notMerge?: boolean;
14
- lazyUpdate?: boolean;
15
- silent?: boolean;
16
- replaceMerge?: any;
17
- transition?: any;
18
- }
19
- export declare type UpdateOptionsInjection = UpdateOptions | null | Ref<UpdateOptions | null>;
20
- export {};
@@ -1,6 +0,0 @@
1
- declare type Attrs = {
2
- [key: string]: any;
3
- };
4
- export declare const isOn: (key: string) => boolean;
5
- export declare function omitOn(attrs: Attrs): Attrs;
6
- export {};
@@ -1,3 +0,0 @@
1
- export * from './echarts';
2
- export * from './spin';
3
- export * from './Skeleton';
@@ -1,18 +0,0 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
2
- spinning: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- }, {
7
- indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
- [key: string]: any;
9
- }>;
10
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
- spinning: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- }>>, {
16
- spinning: boolean;
17
- }>;
18
- export default _sfc_main;
@@ -1,2 +0,0 @@
1
- import Spin from './Spin.vue';
2
- export default Spin;
@@ -1,9 +0,0 @@
1
- export * from './common';
2
- export * from './setting';
3
- export * from './text';
4
- export * from './control';
5
- export * from './graph';
6
- export * from './container';
7
- export * from './media';
8
- export * from './table';
9
- export * from './map';