@ecan-bi/pivot-table 1.0.2 → 1.0.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.
package/dist/style.css CHANGED
@@ -1,2 +1,2 @@
1
- /*! @ecan-bi/pivot-table@1.0.2 */
2
- .design-template[data-v-483e41fa]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#f1f1f1;font-size:30px;display:flex;align-items:center;justify-content:center;letter-spacing:10px;color:#6f6f6f}.table-instance[data-v-483e41fa]{width:100%;height:100%}
1
+ /*! @ecan-bi/pivot-table@1.0.3 */
2
+ .design-template[data-v-d23b8c93]{width:100%;height:100%;position:absolute;top:0;left:0;background-color:#f1f1f1;font-size:30px;display:flex;align-items:center;justify-content:center;letter-spacing:10px;color:#6f6f6f}.table-instance[data-v-d23b8c93]{width:100%;height:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecan-bi/pivot-table",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "types/index.d.ts",
@@ -1,183 +1,73 @@
1
+ import { PropType } from 'vue';
1
2
  declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- id: {
3
- type?: import("vue").PropType<string>;
4
- default?: string;
5
- };
6
- name: {
7
- type?: import("vue").PropType<string>;
8
- default?: string;
9
- };
10
- keyName: {
11
- type?: import("vue").PropType<string>;
12
- default?: string;
13
- };
14
- type: {
15
- type?: import("vue").PropType<string>;
16
- default?: string;
17
- };
18
- width: {
19
- type?: import("vue").PropType<string>;
20
- default?: string;
21
- };
22
- height: {
23
- type?: import("vue").PropType<string>;
24
- default?: string;
25
- };
26
- position: {
27
- type?: import("vue").PropType<string>;
28
- default?: string;
29
- };
30
- top: {
31
- type?: import("vue").PropType<string>;
32
- default?: string;
33
- };
34
- left: {
35
- type?: import("vue").PropType<string>;
36
- default?: string;
37
- };
38
- zIndex: {
39
- type?: import("vue").PropType<number>;
40
- default?: number;
41
- };
3
+ id: StringConstructor;
4
+ name: StringConstructor;
5
+ keyName: StringConstructor;
6
+ type: StringConstructor;
7
+ width: StringConstructor;
8
+ height: StringConstructor;
9
+ position: StringConstructor;
10
+ top: StringConstructor;
11
+ left: StringConstructor;
12
+ zIndex: NumberConstructor;
42
13
  events: {
43
- type?: import("vue").PropType<any>;
44
- default?: any;
45
- };
46
- dataType: {
47
- type?: import("vue").PropType<"request" | "static" | "indicator">;
48
- default?: "request" | "static" | "indicator";
49
- };
50
- graphicConfig: {
51
- type?: import("vue").PropType<{
52
- [key: string]: any;
53
- }>;
54
- default?: {
55
- [key: string]: any;
56
- };
14
+ type: ArrayConstructor;
15
+ default: () => any[];
57
16
  };
17
+ dataType: StringConstructor;
18
+ graphicConfig: ObjectConstructor;
58
19
  data: {
59
- type?: import("vue").PropType<{
60
- [key: string]: any;
61
- }[]>;
62
- default?: {
63
- [key: string]: any;
64
- }[];
65
- };
66
- scale?: {
67
- type?: import("vue").PropType<number>;
68
- default?: number;
20
+ type: ArrayConstructor;
21
+ default: () => any[];
69
22
  };
23
+ scale: NumberConstructor;
70
24
  dimensionList: {
71
- type?: import("vue").PropType<{
72
- [key: string]: any;
73
- }[]>;
74
- default?: {
75
- [key: string]: any;
76
- }[];
25
+ type: PropType<any>;
26
+ default: () => any[];
77
27
  };
78
28
  indicatorList: {
79
- type?: import("vue").PropType<{
80
- [key: string]: any;
81
- }[]>;
82
- default?: {
83
- [key: string]: any;
84
- }[];
85
- };
86
- pageMode: {
87
- type?: import("vue").PropType<string>;
88
- default?: string;
29
+ type: PropType<any>;
30
+ default: () => any[];
89
31
  };
32
+ pageMode: StringConstructor;
90
33
  }>, {
91
34
  pivotTableRef: import("vue").Ref<any, any>;
92
35
  click: () => void;
93
36
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
94
- id: {
95
- type?: import("vue").PropType<string>;
96
- default?: string;
97
- };
98
- name: {
99
- type?: import("vue").PropType<string>;
100
- default?: string;
101
- };
102
- keyName: {
103
- type?: import("vue").PropType<string>;
104
- default?: string;
105
- };
106
- type: {
107
- type?: import("vue").PropType<string>;
108
- default?: string;
109
- };
110
- width: {
111
- type?: import("vue").PropType<string>;
112
- default?: string;
113
- };
114
- height: {
115
- type?: import("vue").PropType<string>;
116
- default?: string;
117
- };
118
- position: {
119
- type?: import("vue").PropType<string>;
120
- default?: string;
121
- };
122
- top: {
123
- type?: import("vue").PropType<string>;
124
- default?: string;
125
- };
126
- left: {
127
- type?: import("vue").PropType<string>;
128
- default?: string;
129
- };
130
- zIndex: {
131
- type?: import("vue").PropType<number>;
132
- default?: number;
133
- };
37
+ id: StringConstructor;
38
+ name: StringConstructor;
39
+ keyName: StringConstructor;
40
+ type: StringConstructor;
41
+ width: StringConstructor;
42
+ height: StringConstructor;
43
+ position: StringConstructor;
44
+ top: StringConstructor;
45
+ left: StringConstructor;
46
+ zIndex: NumberConstructor;
134
47
  events: {
135
- type?: import("vue").PropType<any>;
136
- default?: any;
137
- };
138
- dataType: {
139
- type?: import("vue").PropType<"request" | "static" | "indicator">;
140
- default?: "request" | "static" | "indicator";
141
- };
142
- graphicConfig: {
143
- type?: import("vue").PropType<{
144
- [key: string]: any;
145
- }>;
146
- default?: {
147
- [key: string]: any;
148
- };
48
+ type: ArrayConstructor;
49
+ default: () => any[];
149
50
  };
51
+ dataType: StringConstructor;
52
+ graphicConfig: ObjectConstructor;
150
53
  data: {
151
- type?: import("vue").PropType<{
152
- [key: string]: any;
153
- }[]>;
154
- default?: {
155
- [key: string]: any;
156
- }[];
157
- };
158
- scale?: {
159
- type?: import("vue").PropType<number>;
160
- default?: number;
54
+ type: ArrayConstructor;
55
+ default: () => any[];
161
56
  };
57
+ scale: NumberConstructor;
162
58
  dimensionList: {
163
- type?: import("vue").PropType<{
164
- [key: string]: any;
165
- }[]>;
166
- default?: {
167
- [key: string]: any;
168
- }[];
59
+ type: PropType<any>;
60
+ default: () => any[];
169
61
  };
170
62
  indicatorList: {
171
- type?: import("vue").PropType<{
172
- [key: string]: any;
173
- }[]>;
174
- default?: {
175
- [key: string]: any;
176
- }[];
177
- };
178
- pageMode: {
179
- type?: import("vue").PropType<string>;
180
- default?: string;
181
- };
182
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
63
+ type: PropType<any>;
64
+ default: () => any[];
65
+ };
66
+ pageMode: StringConstructor;
67
+ }>> & Readonly<{}>, {
68
+ events: unknown[];
69
+ data: unknown[];
70
+ dimensionList: any;
71
+ indicatorList: any;
72
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
183
73
  export default _sfc_main;
@@ -1,183 +1,72 @@
1
1
  export declare const EcanPivotTable: import('../utils/withInstall').SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- id: {
3
- type?: import("vue").PropType<string>;
4
- default?: string;
5
- };
6
- name: {
7
- type?: import("vue").PropType<string>;
8
- default?: string;
9
- };
10
- keyName: {
11
- type?: import("vue").PropType<string>;
12
- default?: string;
13
- };
14
- type: {
15
- type?: import("vue").PropType<string>;
16
- default?: string;
17
- };
18
- width: {
19
- type?: import("vue").PropType<string>;
20
- default?: string;
21
- };
22
- height: {
23
- type?: import("vue").PropType<string>;
24
- default?: string;
25
- };
26
- position: {
27
- type?: import("vue").PropType<string>;
28
- default?: string;
29
- };
30
- top: {
31
- type?: import("vue").PropType<string>;
32
- default?: string;
33
- };
34
- left: {
35
- type?: import("vue").PropType<string>;
36
- default?: string;
37
- };
38
- zIndex: {
39
- type?: import("vue").PropType<number>;
40
- default?: number;
41
- };
2
+ id: StringConstructor;
3
+ name: StringConstructor;
4
+ keyName: StringConstructor;
5
+ type: StringConstructor;
6
+ width: StringConstructor;
7
+ height: StringConstructor;
8
+ position: StringConstructor;
9
+ top: StringConstructor;
10
+ left: StringConstructor;
11
+ zIndex: NumberConstructor;
42
12
  events: {
43
- type?: import("vue").PropType<any>;
44
- default?: any;
45
- };
46
- dataType: {
47
- type?: import("vue").PropType<"request" | "static" | "indicator">;
48
- default?: "request" | "static" | "indicator";
49
- };
50
- graphicConfig: {
51
- type?: import("vue").PropType<{
52
- [key: string]: any;
53
- }>;
54
- default?: {
55
- [key: string]: any;
56
- };
13
+ type: ArrayConstructor;
14
+ default: () => any[];
57
15
  };
16
+ dataType: StringConstructor;
17
+ graphicConfig: ObjectConstructor;
58
18
  data: {
59
- type?: import("vue").PropType<{
60
- [key: string]: any;
61
- }[]>;
62
- default?: {
63
- [key: string]: any;
64
- }[];
65
- };
66
- scale?: {
67
- type?: import("vue").PropType<number>;
68
- default?: number;
19
+ type: ArrayConstructor;
20
+ default: () => any[];
69
21
  };
22
+ scale: NumberConstructor;
70
23
  dimensionList: {
71
- type?: import("vue").PropType<{
72
- [key: string]: any;
73
- }[]>;
74
- default?: {
75
- [key: string]: any;
76
- }[];
24
+ type: import("vue").PropType<any>;
25
+ default: () => any[];
77
26
  };
78
27
  indicatorList: {
79
- type?: import("vue").PropType<{
80
- [key: string]: any;
81
- }[]>;
82
- default?: {
83
- [key: string]: any;
84
- }[];
85
- };
86
- pageMode: {
87
- type?: import("vue").PropType<string>;
88
- default?: string;
28
+ type: import("vue").PropType<any>;
29
+ default: () => any[];
89
30
  };
31
+ pageMode: StringConstructor;
90
32
  }>, {
91
33
  pivotTableRef: import("vue").Ref<any, any>;
92
34
  click: () => void;
93
35
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
94
- id: {
95
- type?: import("vue").PropType<string>;
96
- default?: string;
97
- };
98
- name: {
99
- type?: import("vue").PropType<string>;
100
- default?: string;
101
- };
102
- keyName: {
103
- type?: import("vue").PropType<string>;
104
- default?: string;
105
- };
106
- type: {
107
- type?: import("vue").PropType<string>;
108
- default?: string;
109
- };
110
- width: {
111
- type?: import("vue").PropType<string>;
112
- default?: string;
113
- };
114
- height: {
115
- type?: import("vue").PropType<string>;
116
- default?: string;
117
- };
118
- position: {
119
- type?: import("vue").PropType<string>;
120
- default?: string;
121
- };
122
- top: {
123
- type?: import("vue").PropType<string>;
124
- default?: string;
125
- };
126
- left: {
127
- type?: import("vue").PropType<string>;
128
- default?: string;
129
- };
130
- zIndex: {
131
- type?: import("vue").PropType<number>;
132
- default?: number;
133
- };
36
+ id: StringConstructor;
37
+ name: StringConstructor;
38
+ keyName: StringConstructor;
39
+ type: StringConstructor;
40
+ width: StringConstructor;
41
+ height: StringConstructor;
42
+ position: StringConstructor;
43
+ top: StringConstructor;
44
+ left: StringConstructor;
45
+ zIndex: NumberConstructor;
134
46
  events: {
135
- type?: import("vue").PropType<any>;
136
- default?: any;
137
- };
138
- dataType: {
139
- type?: import("vue").PropType<"request" | "static" | "indicator">;
140
- default?: "request" | "static" | "indicator";
141
- };
142
- graphicConfig: {
143
- type?: import("vue").PropType<{
144
- [key: string]: any;
145
- }>;
146
- default?: {
147
- [key: string]: any;
148
- };
47
+ type: ArrayConstructor;
48
+ default: () => any[];
149
49
  };
50
+ dataType: StringConstructor;
51
+ graphicConfig: ObjectConstructor;
150
52
  data: {
151
- type?: import("vue").PropType<{
152
- [key: string]: any;
153
- }[]>;
154
- default?: {
155
- [key: string]: any;
156
- }[];
157
- };
158
- scale?: {
159
- type?: import("vue").PropType<number>;
160
- default?: number;
53
+ type: ArrayConstructor;
54
+ default: () => any[];
161
55
  };
56
+ scale: NumberConstructor;
162
57
  dimensionList: {
163
- type?: import("vue").PropType<{
164
- [key: string]: any;
165
- }[]>;
166
- default?: {
167
- [key: string]: any;
168
- }[];
58
+ type: import("vue").PropType<any>;
59
+ default: () => any[];
169
60
  };
170
61
  indicatorList: {
171
- type?: import("vue").PropType<{
172
- [key: string]: any;
173
- }[]>;
174
- default?: {
175
- [key: string]: any;
176
- }[];
177
- };
178
- pageMode: {
179
- type?: import("vue").PropType<string>;
180
- default?: string;
181
- };
182
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
62
+ type: import("vue").PropType<any>;
63
+ default: () => any[];
64
+ };
65
+ pageMode: StringConstructor;
66
+ }>> & Readonly<{}>, {
67
+ events: unknown[];
68
+ data: unknown[];
69
+ dimensionList: any;
70
+ indicatorList: any;
71
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
183
72
  export default EcanPivotTable;
@@ -1,125 +0,0 @@
1
- import { PropType } from 'vue';
2
- export interface PivotTableProps {
3
- id: string;
4
- name: string;
5
- keyName: string;
6
- type: string;
7
- width: string;
8
- height: string;
9
- position: string;
10
- top: string;
11
- left: string;
12
- zIndex: number;
13
- events: any;
14
- dataType: 'static' | 'request' | 'indicator';
15
- graphicConfig: {
16
- [key: string]: any;
17
- };
18
- data: {
19
- [key: string]: any;
20
- }[];
21
- scale?: number;
22
- dimensionList: {
23
- [key: string]: any;
24
- }[];
25
- indicatorList: {
26
- [key: string]: any;
27
- }[];
28
- pageMode: string;
29
- }
30
- export declare const pivotTableProps: PivotTableProps;
31
- export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
32
- type?: PropType<T[P]>;
33
- default?: T[P];
34
- }; };
35
- export declare const pivotTableComponentProps: {
36
- id: {
37
- type?: PropType<string>;
38
- default?: string;
39
- };
40
- name: {
41
- type?: PropType<string>;
42
- default?: string;
43
- };
44
- keyName: {
45
- type?: PropType<string>;
46
- default?: string;
47
- };
48
- type: {
49
- type?: PropType<string>;
50
- default?: string;
51
- };
52
- width: {
53
- type?: PropType<string>;
54
- default?: string;
55
- };
56
- height: {
57
- type?: PropType<string>;
58
- default?: string;
59
- };
60
- position: {
61
- type?: PropType<string>;
62
- default?: string;
63
- };
64
- top: {
65
- type?: PropType<string>;
66
- default?: string;
67
- };
68
- left: {
69
- type?: PropType<string>;
70
- default?: string;
71
- };
72
- zIndex: {
73
- type?: PropType<number>;
74
- default?: number;
75
- };
76
- events: {
77
- type?: PropType<any>;
78
- default?: any;
79
- };
80
- dataType: {
81
- type?: PropType<"request" | "static" | "indicator">;
82
- default?: "request" | "static" | "indicator";
83
- };
84
- graphicConfig: {
85
- type?: PropType<{
86
- [key: string]: any;
87
- }>;
88
- default?: {
89
- [key: string]: any;
90
- };
91
- };
92
- data: {
93
- type?: PropType<{
94
- [key: string]: any;
95
- }[]>;
96
- default?: {
97
- [key: string]: any;
98
- }[];
99
- };
100
- scale?: {
101
- type?: PropType<number>;
102
- default?: number;
103
- };
104
- dimensionList: {
105
- type?: PropType<{
106
- [key: string]: any;
107
- }[]>;
108
- default?: {
109
- [key: string]: any;
110
- }[];
111
- };
112
- indicatorList: {
113
- type?: PropType<{
114
- [key: string]: any;
115
- }[]>;
116
- default?: {
117
- [key: string]: any;
118
- }[];
119
- };
120
- pageMode: {
121
- type?: PropType<string>;
122
- default?: string;
123
- };
124
- };
125
- export declare const pivotTableEvents: string[];