@ecan-bi/pivot-table 1.0.80

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 ADDED
@@ -0,0 +1,2 @@
1
+ /*! @ecan-bi/pivot-table@1.0.80 */
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%}
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@ecan-bi/pivot-table",
3
+ "version": "1.0.80",
4
+ "main": "dist/index.umd.js",
5
+ "module": "dist/index.es.js",
6
+ "types": "types/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "types",
10
+ "lib",
11
+ "es"
12
+ ],
13
+ "description": "",
14
+ "keywords": [],
15
+ "author": "meiz1jiu",
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "scripts": {
20
+ "serve": "vite",
21
+ "dev": "vite build -wc vite.config.js",
22
+ "build": "npm run clean && npm run dist",
23
+ "build:app": "vite build -c vite.config.build.js",
24
+ "compile": "vite build -c vite.config.compile.js",
25
+ "dist": "vite build -c vite.config.js",
26
+ "lint": "eslint ./src --ext .vue,.js,.ts,.jsx,.tsx",
27
+ "lint:fix": "eslint --fix ./src --ext .vue,.js,.ts,.jsx,.tsx",
28
+ "clean": "rimraf ./dist ./types ./es ./lib",
29
+ "module": "npm run clean && npm run compile",
30
+ "prepublishOnly": "npm run build"
31
+ },
32
+ "dependencies": {
33
+ "@visactor/vtable": "^1.11.0",
34
+ "monaco-editor": "^0.31.1",
35
+ "echarts": "5.3.2"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^20.10.4",
39
+ "ant-design-vue": "3.1.1",
40
+ "axios": "0.24.0",
41
+ "lodash-es": "4.17.21",
42
+ "monaco-editor": "^0.31.1",
43
+ "nanoid": "3.1.30",
44
+ "nrm": "^1.2.6",
45
+ "vue": "^3.3.8",
46
+ "vue-pick-colors": "^1.3.4",
47
+ "@types/lodash-es": "4.17.5",
48
+ "@typescript-eslint/eslint-plugin": "^5.48.1",
49
+ "@typescript-eslint/parser": "^5.48.1",
50
+ "@vitejs/plugin-vue": "4.1.0",
51
+ "@vitejs/plugin-vue-jsx": "3.0.0",
52
+ "@vue/compiler-sfc": "3.2.37",
53
+ "@vue/eslint-config-standard": "^6.1.0",
54
+ "eslint": "^7.32.0",
55
+ "eslint-plugin-import": "^2.25.3",
56
+ "eslint-plugin-node": "^11.1.0",
57
+ "eslint-plugin-promise": "^5.1.1",
58
+ "eslint-plugin-vue": "^7.20.0",
59
+ "less": "^4.1.2",
60
+ "rollup-plugin-peer-deps-external": "^2.2.4",
61
+ "typescript": "^5.2.2",
62
+ "vite": "4.3.1",
63
+ "vite-plugin-banner": "0.5.0",
64
+ "vite-plugin-dts": "1.7.1",
65
+ "vite-plugin-eslint": "^1.8.1",
66
+ "vue-tsc": "^1.8.22",
67
+ "vuedraggable": "^4.1.0"
68
+ },
69
+ "peerDependencies": {
70
+ "ant-design-vue": "^3.1.1",
71
+ "axios": ">=0.24.0",
72
+ "big.js": "^6.2.1",
73
+ "echarts": "^5.3.2",
74
+ "lodash-es": "^4.17.21",
75
+ "vue": "^3.2.27",
76
+ "vuedraggable": "^4.1.0"
77
+ }
78
+ }
@@ -0,0 +1 @@
1
+ export * from './pivotTable';
package/types/env.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import { defineComponent } from 'vue'
5
+ const component: ReturnType<typeof defineComponent>
6
+ export default component
7
+ }
8
+
9
+ declare module '*.png'
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ export * from './components';
3
+ declare const _default: {
4
+ install: (app: App<any>, options: any) => void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,177 @@
1
+ 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
+ };
43
+ 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
+ };
58
+ };
59
+ 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;
70
+ };
71
+ dimensionList: {
72
+ type?: import("vue").PropType<{
73
+ [key: string]: any;
74
+ }[]>;
75
+ default?: {
76
+ [key: string]: any;
77
+ }[];
78
+ };
79
+ indicatorList: {
80
+ type?: import("vue").PropType<{
81
+ [key: string]: any;
82
+ }[]>;
83
+ default?: {
84
+ [key: string]: any;
85
+ }[];
86
+ };
87
+ }>, {
88
+ pivotTableRef: import("vue").Ref<any, any>;
89
+ click: () => void;
90
+ }, {}, {}, {}, 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
+ };
132
+ 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
+ };
147
+ };
148
+ 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;
159
+ };
160
+ dimensionList: {
161
+ type?: import("vue").PropType<{
162
+ [key: string]: any;
163
+ }[]>;
164
+ default?: {
165
+ [key: string]: any;
166
+ }[];
167
+ };
168
+ indicatorList: {
169
+ type?: import("vue").PropType<{
170
+ [key: string]: any;
171
+ }[]>;
172
+ default?: {
173
+ [key: string]: any;
174
+ }[];
175
+ };
176
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
177
+ export default _sfc_main;
@@ -0,0 +1,177 @@
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
+ };
43
+ 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
+ };
58
+ };
59
+ 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;
70
+ };
71
+ dimensionList: {
72
+ type?: import("vue").PropType<{
73
+ [key: string]: any;
74
+ }[]>;
75
+ default?: {
76
+ [key: string]: any;
77
+ }[];
78
+ };
79
+ indicatorList: {
80
+ type?: import("vue").PropType<{
81
+ [key: string]: any;
82
+ }[]>;
83
+ default?: {
84
+ [key: string]: any;
85
+ }[];
86
+ };
87
+ }>, {
88
+ pivotTableRef: import("vue").Ref<any, any>;
89
+ click: () => void;
90
+ }, {}, {}, {}, 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
+ };
132
+ 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
+ };
147
+ };
148
+ 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;
159
+ };
160
+ dimensionList: {
161
+ type?: import("vue").PropType<{
162
+ [key: string]: any;
163
+ }[]>;
164
+ default?: {
165
+ [key: string]: any;
166
+ }[];
167
+ };
168
+ indicatorList: {
169
+ type?: import("vue").PropType<{
170
+ [key: string]: any;
171
+ }[]>;
172
+ default?: {
173
+ [key: string]: any;
174
+ }[];
175
+ };
176
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
177
+ export default EcanPivotTable;
@@ -0,0 +1,120 @@
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
+ }
29
+ export declare const pivotTableProps: PivotTableProps;
30
+ export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
31
+ type?: PropType<T[P]>;
32
+ default?: T[P];
33
+ }; };
34
+ export declare const pivotTableComponentProps: {
35
+ id: {
36
+ type?: PropType<string>;
37
+ default?: string;
38
+ };
39
+ name: {
40
+ type?: PropType<string>;
41
+ default?: string;
42
+ };
43
+ keyName: {
44
+ type?: PropType<string>;
45
+ default?: string;
46
+ };
47
+ type: {
48
+ type?: PropType<string>;
49
+ default?: string;
50
+ };
51
+ width: {
52
+ type?: PropType<string>;
53
+ default?: string;
54
+ };
55
+ height: {
56
+ type?: PropType<string>;
57
+ default?: string;
58
+ };
59
+ position: {
60
+ type?: PropType<string>;
61
+ default?: string;
62
+ };
63
+ top: {
64
+ type?: PropType<string>;
65
+ default?: string;
66
+ };
67
+ left: {
68
+ type?: PropType<string>;
69
+ default?: string;
70
+ };
71
+ zIndex: {
72
+ type?: PropType<number>;
73
+ default?: number;
74
+ };
75
+ events: {
76
+ type?: PropType<any>;
77
+ default?: any;
78
+ };
79
+ dataType: {
80
+ type?: PropType<"request" | "static" | "indicator">;
81
+ default?: "request" | "static" | "indicator";
82
+ };
83
+ graphicConfig: {
84
+ type?: PropType<{
85
+ [key: string]: any;
86
+ }>;
87
+ default?: {
88
+ [key: string]: any;
89
+ };
90
+ };
91
+ data: {
92
+ type?: PropType<{
93
+ [key: string]: any;
94
+ }[]>;
95
+ default?: {
96
+ [key: string]: any;
97
+ }[];
98
+ };
99
+ scale?: {
100
+ type?: PropType<number>;
101
+ default?: number;
102
+ };
103
+ dimensionList: {
104
+ type?: PropType<{
105
+ [key: string]: any;
106
+ }[]>;
107
+ default?: {
108
+ [key: string]: any;
109
+ }[];
110
+ };
111
+ indicatorList: {
112
+ type?: PropType<{
113
+ [key: string]: any;
114
+ }[]>;
115
+ default?: {
116
+ [key: string]: any;
117
+ }[];
118
+ };
119
+ };
120
+ export declare const pivotTableEvents: string[];
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 字符串1 中是否包含 字符串2 (会全部转成小写)
3
+ * @param v1 字符串1
4
+ * @param v2 字符串2 | 字符串数组
5
+ * @constructor
6
+ */
7
+ export declare const lowerCaseIncludes: (v1: any, v2: any) => boolean;
8
+ export declare const handleFormatter: (formatter: string) => string;
9
+ export declare const hasOwn: (v: object, k: string | symbol) => k is never;
10
+ export declare const getConditions: (conditions: {
11
+ [key: string]: any;
12
+ }[]) => any[];
13
+ export declare const getSqlConditions: (graphicConfig: {
14
+ [key: string]: any;
15
+ }, renderUsedComponents: {
16
+ [key: string]: any;
17
+ }[]) => any;
18
+ export declare const handleVariableList: (variableList: {
19
+ [key: string]: any;
20
+ }[], renderUsedComponents: {
21
+ [key: string]: any;
22
+ }[]) => any[];
23
+ export declare const getEventName: (type: string) => string;
@@ -0,0 +1,5 @@
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>;