@ecan-bi/datav 1.0.27 → 1.0.28

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.
@@ -1,3 +1,4 @@
1
+ import { Events } from '../../_utils/props';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  data: {
3
4
  type?: undefined;
@@ -8,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
8
9
  [key: string]: any;
9
10
  }[] | {
10
11
  [key: string]: any;
11
- }[] | import("../../_utils/props").Events | {
12
+ }[] | Events | {
12
13
  [key: string]: any;
13
14
  } | import("../../_utils/props").RequestParams;
14
15
  };
@@ -21,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
21
22
  [key: string]: any;
22
23
  }[] | {
23
24
  [key: string]: any;
24
- }[] | import("../../_utils/props").Events | {
25
+ }[] | Events | {
25
26
  [key: string]: any;
26
27
  } | import("../../_utils/props").RequestParams;
27
28
  };
@@ -34,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
34
35
  [key: string]: any;
35
36
  }[] | {
36
37
  [key: string]: any;
37
- }[] | import("../../_utils/props").Events | {
38
+ }[] | Events | {
38
39
  [key: string]: any;
39
40
  } | import("../../_utils/props").RequestParams;
40
41
  };
@@ -47,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
47
48
  [key: string]: any;
48
49
  }[] | {
49
50
  [key: string]: any;
50
- }[] | import("../../_utils/props").Events | {
51
+ }[] | Events | {
51
52
  [key: string]: any;
52
53
  } | import("../../_utils/props").RequestParams;
53
54
  };
@@ -60,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
60
61
  [key: string]: any;
61
62
  }[] | {
62
63
  [key: string]: any;
63
- }[] | import("../../_utils/props").Events | {
64
+ }[] | Events | {
64
65
  [key: string]: any;
65
66
  } | import("../../_utils/props").RequestParams;
66
67
  };
@@ -73,7 +74,59 @@ declare const _default: import("vue").DefineComponent<{
73
74
  [key: string]: any;
74
75
  }[] | {
75
76
  [key: string]: any;
76
- }[] | import("../../_utils/props").Events | {
77
+ }[] | Events | {
78
+ [key: string]: any;
79
+ } | import("../../_utils/props").RequestParams;
80
+ };
81
+ columnCount: {
82
+ type?: undefined;
83
+ default?: undefined;
84
+ } | {
85
+ type: any;
86
+ default: string | number | boolean | {
87
+ [key: string]: any;
88
+ }[] | {
89
+ [key: string]: any;
90
+ }[] | Events | {
91
+ [key: string]: any;
92
+ } | import("../../_utils/props").RequestParams;
93
+ };
94
+ itemHeight: {
95
+ type?: undefined;
96
+ default?: undefined;
97
+ } | {
98
+ type: any;
99
+ default: string | number | boolean | {
100
+ [key: string]: any;
101
+ }[] | {
102
+ [key: string]: any;
103
+ }[] | Events | {
104
+ [key: string]: any;
105
+ } | import("../../_utils/props").RequestParams;
106
+ };
107
+ itemColSpan: {
108
+ type?: undefined;
109
+ default?: undefined;
110
+ } | {
111
+ type: any;
112
+ default: string | number | boolean | {
113
+ [key: string]: any;
114
+ }[] | {
115
+ [key: string]: any;
116
+ }[] | Events | {
117
+ [key: string]: any;
118
+ } | import("../../_utils/props").RequestParams;
119
+ };
120
+ itemRowSpan: {
121
+ type?: undefined;
122
+ default?: undefined;
123
+ } | {
124
+ type: any;
125
+ default: string | number | boolean | {
126
+ [key: string]: any;
127
+ }[] | {
128
+ [key: string]: any;
129
+ }[] | Events | {
77
130
  [key: string]: any;
78
131
  } | import("../../_utils/props").RequestParams;
79
132
  };
@@ -86,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{
86
139
  [key: string]: any;
87
140
  }[] | {
88
141
  [key: string]: any;
89
- }[] | import("../../_utils/props").Events | {
142
+ }[] | Events | {
90
143
  [key: string]: any;
91
144
  } | import("../../_utils/props").RequestParams;
92
145
  };
@@ -99,7 +152,7 @@ declare const _default: import("vue").DefineComponent<{
99
152
  [key: string]: any;
100
153
  }[] | {
101
154
  [key: string]: any;
102
- }[] | import("../../_utils/props").Events | {
155
+ }[] | Events | {
103
156
  [key: string]: any;
104
157
  } | import("../../_utils/props").RequestParams;
105
158
  };
@@ -112,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
112
165
  [key: string]: any;
113
166
  }[] | {
114
167
  [key: string]: any;
115
- }[] | import("../../_utils/props").Events | {
168
+ }[] | Events | {
116
169
  [key: string]: any;
117
170
  } | import("../../_utils/props").RequestParams;
118
171
  };
@@ -125,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
125
178
  [key: string]: any;
126
179
  }[] | {
127
180
  [key: string]: any;
128
- }[] | import("../../_utils/props").Events | {
181
+ }[] | Events | {
129
182
  [key: string]: any;
130
183
  } | import("../../_utils/props").RequestParams;
131
184
  };
@@ -138,7 +191,7 @@ declare const _default: import("vue").DefineComponent<{
138
191
  [key: string]: any;
139
192
  }[] | {
140
193
  [key: string]: any;
141
- }[] | import("../../_utils/props").Events | {
194
+ }[] | Events | {
142
195
  [key: string]: any;
143
196
  } | import("../../_utils/props").RequestParams;
144
197
  };
@@ -151,7 +204,7 @@ declare const _default: import("vue").DefineComponent<{
151
204
  [key: string]: any;
152
205
  }[] | {
153
206
  [key: string]: any;
154
- }[] | import("../../_utils/props").Events | {
207
+ }[] | Events | {
155
208
  [key: string]: any;
156
209
  } | import("../../_utils/props").RequestParams;
157
210
  };
@@ -164,7 +217,7 @@ declare const _default: import("vue").DefineComponent<{
164
217
  [key: string]: any;
165
218
  }[] | {
166
219
  [key: string]: any;
167
- }[] | import("../../_utils/props").Events | {
220
+ }[] | Events | {
168
221
  [key: string]: any;
169
222
  } | import("../../_utils/props").RequestParams;
170
223
  };
@@ -177,7 +230,7 @@ declare const _default: import("vue").DefineComponent<{
177
230
  [key: string]: any;
178
231
  }[] | {
179
232
  [key: string]: any;
180
- }[] | import("../../_utils/props").Events | {
233
+ }[] | Events | {
181
234
  [key: string]: any;
182
235
  } | import("../../_utils/props").RequestParams;
183
236
  };
@@ -190,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
190
243
  [key: string]: any;
191
244
  }[] | {
192
245
  [key: string]: any;
193
- }[] | import("../../_utils/props").Events | {
246
+ }[] | Events | {
194
247
  [key: string]: any;
195
248
  } | import("../../_utils/props").RequestParams;
196
249
  };
@@ -203,7 +256,7 @@ declare const _default: import("vue").DefineComponent<{
203
256
  [key: string]: any;
204
257
  }[] | {
205
258
  [key: string]: any;
206
- }[] | import("../../_utils/props").Events | {
259
+ }[] | Events | {
207
260
  [key: string]: any;
208
261
  } | import("../../_utils/props").RequestParams;
209
262
  };
@@ -216,7 +269,7 @@ declare const _default: import("vue").DefineComponent<{
216
269
  [key: string]: any;
217
270
  }[] | {
218
271
  [key: string]: any;
219
- }[] | import("../../_utils/props").Events | {
272
+ }[] | Events | {
220
273
  [key: string]: any;
221
274
  } | import("../../_utils/props").RequestParams;
222
275
  };
@@ -229,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
229
282
  [key: string]: any;
230
283
  }[] | {
231
284
  [key: string]: any;
232
- }[] | import("../../_utils/props").Events | {
285
+ }[] | Events | {
233
286
  [key: string]: any;
234
287
  } | import("../../_utils/props").RequestParams;
235
288
  };
@@ -242,7 +295,7 @@ declare const _default: import("vue").DefineComponent<{
242
295
  [key: string]: any;
243
296
  }[] | {
244
297
  [key: string]: any;
245
- }[] | import("../../_utils/props").Events | {
298
+ }[] | Events | {
246
299
  [key: string]: any;
247
300
  } | import("../../_utils/props").RequestParams;
248
301
  };
@@ -255,7 +308,7 @@ declare const _default: import("vue").DefineComponent<{
255
308
  [key: string]: any;
256
309
  }[] | {
257
310
  [key: string]: any;
258
- }[] | import("../../_utils/props").Events | {
311
+ }[] | Events | {
259
312
  [key: string]: any;
260
313
  } | import("../../_utils/props").RequestParams;
261
314
  };
@@ -268,7 +321,7 @@ declare const _default: import("vue").DefineComponent<{
268
321
  [key: string]: any;
269
322
  }[] | {
270
323
  [key: string]: any;
271
- }[] | import("../../_utils/props").Events | {
324
+ }[] | Events | {
272
325
  [key: string]: any;
273
326
  } | import("../../_utils/props").RequestParams;
274
327
  };
@@ -281,7 +334,7 @@ declare const _default: import("vue").DefineComponent<{
281
334
  [key: string]: any;
282
335
  }[] | {
283
336
  [key: string]: any;
284
- }[] | import("../../_utils/props").Events | {
337
+ }[] | Events | {
285
338
  [key: string]: any;
286
339
  } | import("../../_utils/props").RequestParams;
287
340
  };
@@ -294,7 +347,7 @@ declare const _default: import("vue").DefineComponent<{
294
347
  [key: string]: any;
295
348
  }[] | {
296
349
  [key: string]: any;
297
- }[] | import("../../_utils/props").Events | {
350
+ }[] | Events | {
298
351
  [key: string]: any;
299
352
  } | import("../../_utils/props").RequestParams;
300
353
  };
@@ -307,7 +360,7 @@ declare const _default: import("vue").DefineComponent<{
307
360
  [key: string]: any;
308
361
  }[] | {
309
362
  [key: string]: any;
310
- }[] | import("../../_utils/props").Events | {
363
+ }[] | Events | {
311
364
  [key: string]: any;
312
365
  } | import("../../_utils/props").RequestParams;
313
366
  };
@@ -320,7 +373,7 @@ declare const _default: import("vue").DefineComponent<{
320
373
  [key: string]: any;
321
374
  }[] | {
322
375
  [key: string]: any;
323
- }[] | import("../../_utils/props").Events | {
376
+ }[] | Events | {
324
377
  [key: string]: any;
325
378
  } | import("../../_utils/props").RequestParams;
326
379
  };
@@ -333,7 +386,7 @@ declare const _default: import("vue").DefineComponent<{
333
386
  [key: string]: any;
334
387
  }[] | {
335
388
  [key: string]: any;
336
- }[] | import("../../_utils/props").Events | {
389
+ }[] | Events | {
337
390
  [key: string]: any;
338
391
  } | import("../../_utils/props").RequestParams;
339
392
  };
@@ -346,7 +399,7 @@ declare const _default: import("vue").DefineComponent<{
346
399
  [key: string]: any;
347
400
  }[] | {
348
401
  [key: string]: any;
349
- }[] | import("../../_utils/props").Events | {
402
+ }[] | Events | {
350
403
  [key: string]: any;
351
404
  } | import("../../_utils/props").RequestParams;
352
405
  };
@@ -359,7 +412,7 @@ declare const _default: import("vue").DefineComponent<{
359
412
  [key: string]: any;
360
413
  }[] | {
361
414
  [key: string]: any;
362
- }[] | import("../../_utils/props").Events | {
415
+ }[] | Events | {
363
416
  [key: string]: any;
364
417
  } | import("../../_utils/props").RequestParams;
365
418
  };
@@ -374,6 +427,7 @@ declare const _default: import("vue").DefineComponent<{
374
427
  [x: string]: any;
375
428
  }[]>;
376
429
  loading: import("vue").Ref<boolean>;
430
+ click: () => void;
377
431
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
378
432
  data?: unknown;
379
433
  columns?: unknown;
@@ -381,6 +435,10 @@ declare const _default: import("vue").DefineComponent<{
381
435
  backgroundColor?: unknown;
382
436
  useRanking?: unknown;
383
437
  useTitle?: unknown;
438
+ columnCount?: unknown;
439
+ itemHeight?: unknown;
440
+ itemColSpan?: unknown;
441
+ itemRowSpan?: unknown;
384
442
  id?: unknown;
385
443
  name?: unknown;
386
444
  keyName?: unknown;
@@ -425,6 +483,18 @@ declare const _default: import("vue").DefineComponent<{
425
483
  useTitle?: string | number | boolean | {
426
484
  [key: string]: any;
427
485
  };
486
+ columnCount?: string | number | boolean | {
487
+ [key: string]: any;
488
+ };
489
+ itemHeight?: string | number | boolean | {
490
+ [key: string]: any;
491
+ };
492
+ itemColSpan?: string | number | boolean | {
493
+ [key: string]: any;
494
+ };
495
+ itemRowSpan?: string | number | boolean | {
496
+ [key: string]: any;
497
+ };
428
498
  id?: string | number | boolean | {
429
499
  [key: string]: any;
430
500
  };
@@ -10,6 +10,10 @@ export interface ListProps extends Props {
10
10
  backgroundColor: string;
11
11
  useRanking: boolean;
12
12
  useTitle: boolean;
13
+ columnCount: number;
14
+ itemHeight: string;
15
+ itemColSpan: string;
16
+ itemRowSpan: string;
13
17
  }
14
18
  export declare const listProps: ListProps;
15
19
  export declare const listComponentProps: {
@@ -91,6 +95,58 @@ export declare const listComponentProps: {
91
95
  [key: string]: any;
92
96
  } | import("../../_utils/props").RequestParams;
93
97
  };
98
+ columnCount: {
99
+ type?: undefined;
100
+ default?: undefined;
101
+ } | {
102
+ type: any;
103
+ default: string | number | boolean | {
104
+ [key: string]: any;
105
+ }[] | {
106
+ [key: string]: any;
107
+ }[] | import("../../_utils/props").Events | {
108
+ [key: string]: any;
109
+ } | import("../../_utils/props").RequestParams;
110
+ };
111
+ itemHeight: {
112
+ type?: undefined;
113
+ default?: undefined;
114
+ } | {
115
+ type: any;
116
+ default: string | number | boolean | {
117
+ [key: string]: any;
118
+ }[] | {
119
+ [key: string]: any;
120
+ }[] | import("../../_utils/props").Events | {
121
+ [key: string]: any;
122
+ } | import("../../_utils/props").RequestParams;
123
+ };
124
+ itemColSpan: {
125
+ type?: undefined;
126
+ default?: undefined;
127
+ } | {
128
+ type: any;
129
+ default: string | number | boolean | {
130
+ [key: string]: any;
131
+ }[] | {
132
+ [key: string]: any;
133
+ }[] | import("../../_utils/props").Events | {
134
+ [key: string]: any;
135
+ } | import("../../_utils/props").RequestParams;
136
+ };
137
+ itemRowSpan: {
138
+ type?: undefined;
139
+ default?: undefined;
140
+ } | {
141
+ type: any;
142
+ default: string | number | boolean | {
143
+ [key: string]: any;
144
+ }[] | {
145
+ [key: string]: any;
146
+ }[] | import("../../_utils/props").Events | {
147
+ [key: string]: any;
148
+ } | import("../../_utils/props").RequestParams;
149
+ };
94
150
  id: {
95
151
  type?: undefined;
96
152
  default?: undefined;
@@ -1,3 +1,4 @@
1
+ import { ActualDataViewColum } from './IndicatorListResponse';
1
2
  export declare enum Plugin {
2
3
  Vchart = "1",
3
4
  DataV = "2",
@@ -36,14 +37,21 @@ declare type SqlCondition = {
36
37
  valueType: Extract<ValueType, 'DATE'>;
37
38
  dateFormat: string;
38
39
  });
39
- export declare type PropsDiagram = {
40
+ export declare type CardType = 'classification' | 'series' | 'indicatorLeft' | 'indicatorRight' | 'rowHeaders' | 'queryColumn' | 'tableData' | 'textData';
41
+ export declare type Card = {
42
+ type: CardType;
43
+ data: ActualDataViewColum[];
44
+ };
45
+ export declare type Diagram = {
40
46
  source?: Source;
41
47
  plugin: Plugin;
42
48
  layer: Layer;
43
49
  chartType: ChartType;
44
50
  relatedList: unknown[];
45
51
  sqlConditions?: SqlCondition[];
46
- } & (DifferSource);
52
+ } & (DifferSource) & {
53
+ cards: Card[];
54
+ };
47
55
  export declare const defaultPropsGraph: {
48
56
  plugin: Plugin;
49
57
  dataSourceId: string;
@@ -0,0 +1,36 @@
1
+ export interface DataViewColum {
2
+ scope: 'DIM' | 'IDX';
3
+ name: string;
4
+ typeGuid: string;
5
+ id: string;
6
+ label: string;
7
+ genericType: 'TEXT' | 'NUMBER' | 'DATE';
8
+ parentId: string;
9
+ hrpIndexComplexid: string;
10
+ fromTable: string;
11
+ rangeIndexTypeGuid?: string;
12
+ indexCode?: string;
13
+ }
14
+ export interface AdditionalKeys {
15
+ sort?: object;
16
+ edit?: boolean;
17
+ filterSql?: string;
18
+ }
19
+ export declare type ActualDataViewColum = DataViewColum & AdditionalKeys;
20
+ export interface Indicator {
21
+ name: string;
22
+ indexCode: string;
23
+ id: string;
24
+ type: 'INDICATOR_LIB';
25
+ dataViewColumns: ActualDataViewColum[];
26
+ }
27
+ export interface IndicatorListResponse {
28
+ code: string;
29
+ success: boolean;
30
+ traceId?: string;
31
+ timestamp?: number;
32
+ data?: {
33
+ total: number;
34
+ rows: Indicator[];
35
+ };
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecan-bi/datav",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/index.esm.js",
@@ -41,6 +41,7 @@
41
41
  "@rollup/plugin-json": "^4.1.0",
42
42
  "@rollup/plugin-node-resolve": "^13.0.6",
43
43
  "@sucrase/jest-plugin": "^2.2.0",
44
+ "@types/echarts": "^4.9.15",
44
45
  "@types/jest": "^26.0.23",
45
46
  "@types/lodash-es": "^4.17.5",
46
47
  "@types/postcss-url": "^10.0.0",
@@ -56,7 +57,7 @@
56
57
  "babel-jest": "^26.6.3",
57
58
  "babel-plugin-import": "^1.13.3",
58
59
  "cssnano": "^5.0.11",
59
- "echarts": "^5.2.2",
60
+ "echarts": "^5.3.2",
60
61
  "eslint": "^7.32.0",
61
62
  "eslint-plugin-import": "^2.25.3",
62
63
  "eslint-plugin-node": "^11.1.0",
@@ -90,7 +91,6 @@
90
91
  "ant-design-vue": "^3.0.0-beta.7",
91
92
  "axios": "^0.25.0",
92
93
  "dayjs": "^1.10.7",
93
- "echarts": "^5.2.2",
94
94
  "lodash-es": "^4.17.21",
95
95
  "mitt": "^3.0.0",
96
96
  "vue": "^3.2.26"
@@ -1,5 +0,0 @@
1
- export default function useRequestDiagram(props: {
2
- [key: string]: any;
3
- }): {
4
- requestDiagram: () => Promise<import("axios").AxiosResponse<any, any>>;
5
- };