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