@antv/s2-vue 1.0.0
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/README.md +389 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/style.min.css +1 -0
- package/esm/common/constant/index.d.ts +3 -0
- package/esm/common/constant/index.d.ts.map +1 -0
- package/esm/common/constant/options.d.ts +3 -0
- package/esm/common/constant/options.d.ts.map +1 -0
- package/esm/common/constant/sort.d.ts +15 -0
- package/esm/common/constant/sort.d.ts.map +1 -0
- package/esm/components/index.d.ts +5 -0
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/pagination/index.vue.d.ts +43 -0
- package/esm/components/pagination/index.vue.d.ts.map +1 -0
- package/esm/components/sheets/base-sheet.vue.d.ts +287 -0
- package/esm/components/sheets/base-sheet.vue.d.ts.map +1 -0
- package/esm/components/sheets/index.vue.d.ts +432 -0
- package/esm/components/sheets/index.vue.d.ts.map +1 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts +217 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts.map +1 -0
- package/esm/components/sheets/table-sheet.vue.d.ts +217 -0
- package/esm/components/sheets/table-sheet.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/detail.vue.d.ts +7 -0
- package/esm/components/tooltip/components/detail.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts +7 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/infos.vue.d.ts +7 -0
- package/esm/components/tooltip/components/infos.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/index.d.ts +4 -0
- package/esm/components/tooltip/components/operator/index.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts +11 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts +12 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts +11 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts +7 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/summary.vue.d.ts +9 -0
- package/esm/components/tooltip/components/summary.vue.d.ts.map +1 -0
- package/esm/components/tooltip/custom-tooltip.d.ts +7 -0
- package/esm/components/tooltip/custom-tooltip.d.ts.map +1 -0
- package/esm/components/tooltip/index.vue.d.ts +8 -0
- package/esm/components/tooltip/index.vue.d.ts.map +1 -0
- package/esm/components/tooltip/interface.d.ts +9 -0
- package/esm/components/tooltip/interface.d.ts.map +1 -0
- package/esm/hooks/useEvents.d.ts +5 -0
- package/esm/hooks/useEvents.d.ts.map +1 -0
- package/esm/hooks/useExpose.d.ts +6 -0
- package/esm/hooks/useExpose.d.ts.map +1 -0
- package/esm/hooks/useLoading.d.ts +7 -0
- package/esm/hooks/useLoading.d.ts.map +1 -0
- package/esm/hooks/usePagination.d.ts +14 -0
- package/esm/hooks/usePagination.d.ts.map +1 -0
- package/esm/hooks/useResize.d.ts +8 -0
- package/esm/hooks/useResize.d.ts.map +1 -0
- package/esm/hooks/useSheetUpdate.d.ts +5 -0
- package/esm/hooks/useSheetUpdate.d.ts.map +1 -0
- package/esm/hooks/useSpreadSheet.d.ts +19 -0
- package/esm/hooks/useSpreadSheet.d.ts.map +1 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +2379 -0
- package/esm/index.js.map +1 -0
- package/esm/interface.d.ts +36 -0
- package/esm/interface.d.ts.map +1 -0
- package/esm/style.css +208 -0
- package/esm/utils/extendLocale.d.ts +2 -0
- package/esm/utils/extendLocale.d.ts.map +1 -0
- package/esm/utils/initPropAndEmits.d.ts +137 -0
- package/esm/utils/initPropAndEmits.d.ts.map +1 -0
- package/esm/utils/options.d.ts +3 -0
- package/esm/utils/options.d.ts.map +1 -0
- package/esm/utils/traverse.d.ts +2 -0
- package/esm/utils/traverse.d.ts.map +1 -0
- package/lib/index.js +2385 -0
- package/lib/index.js.map +1 -0
- package/lib/style.css +208 -0
- package/package.json +88 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BaseSheetComponentProps } from '@antv/s2-shared';
|
|
2
|
+
import type { UnionToIntersection } from '@vue/shared';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
interface PropOption<T = any> {
|
|
5
|
+
type?: PropType<T>;
|
|
6
|
+
}
|
|
7
|
+
interface RequiredPropOption<T = any> {
|
|
8
|
+
type?: PropType<T>;
|
|
9
|
+
required: true;
|
|
10
|
+
}
|
|
11
|
+
export declare type EmitFn<Options = Record<string, (...args: any[]) => any>, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : Record<string, any> extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
|
|
12
|
+
[key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
|
|
13
|
+
}[Event]>;
|
|
14
|
+
declare type GetOptionalKeys<T> = keyof {
|
|
15
|
+
[K in keyof T as Pick<T, K> extends Required<Pick<T, K>> ? never : K]: K;
|
|
16
|
+
};
|
|
17
|
+
declare type IsEmitKey<Type> = Exclude<Type, undefined> extends (...args: any) => any ? true : false;
|
|
18
|
+
declare type TransformEmitKey<T> = T extends `on${infer R}` ? Uncapitalize<R> : T;
|
|
19
|
+
declare type GetPropKeys<T> = keyof {
|
|
20
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]: K;
|
|
21
|
+
};
|
|
22
|
+
declare type GetEmitKeys<T> = keyof {
|
|
23
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? TransformEmitKey<K> : never]: K;
|
|
24
|
+
};
|
|
25
|
+
export declare type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
|
|
26
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
|
|
27
|
+
};
|
|
28
|
+
declare type GetInitEmits<T> = {
|
|
29
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? TransformEmitKey<K> : never]-?: T[K];
|
|
30
|
+
};
|
|
31
|
+
export declare type BaseSheetInitPropKeys = GetPropKeys<BaseSheetComponentProps>;
|
|
32
|
+
export declare type BaseSheetInitEmitKeys = GetEmitKeys<BaseSheetComponentProps>;
|
|
33
|
+
export declare type BaseSheetInitProps = GetInitProps<BaseSheetComponentProps>;
|
|
34
|
+
export declare type BaseSheetInitEmits = GetInitEmits<BaseSheetComponentProps>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAIpC,UAAU,UAAU,CAAC,CAAC,GAAG,GAAG;IAC1B,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;CACpB;AAED,UAAU,kBAAkB,CAAC,CAAC,GAAG,GAAG;IAClC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC;CAChB;AAGD,oBAAY,MAAM,CAChB,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,EACjD,KAAK,SAAS,MAAM,OAAO,GAAG,MAAM,OAAO,IACzC,OAAO,SAAS,KAAK,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6
|
+
padding: 0 12px;
|
|
7
|
+
border: 0;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
.antv-s2-tooltip-operator .ant-dropdown-trigger,
|
|
11
|
+
.antv-s2-tooltip-operator-dropdown {
|
|
12
|
+
padding: 0 6px 0 0;
|
|
13
|
+
}
|
|
14
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu {
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
line-height: 32px;
|
|
17
|
+
color: rgba(0, 0, 0, 0.65);
|
|
18
|
+
border: 0;
|
|
19
|
+
margin: 0 -12px;
|
|
20
|
+
}
|
|
21
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item {
|
|
22
|
+
height: 30px;
|
|
23
|
+
}
|
|
24
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-item:not(:last-child) {
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu > .ant-menu-submenu-title {
|
|
28
|
+
height: 30px;
|
|
29
|
+
}
|
|
30
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical.ant-menu .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-submenu-arrow {
|
|
31
|
+
color: rgba(0, 0, 0, 0.65);
|
|
32
|
+
}
|
|
33
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-item,
|
|
34
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-item,
|
|
35
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-item,
|
|
36
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-item {
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
line-height: 32px;
|
|
39
|
+
padding: 0 12px;
|
|
40
|
+
color: rgba(0, 0, 0, 0.65);
|
|
41
|
+
border: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
}
|
|
44
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
45
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title,
|
|
46
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,
|
|
47
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title,
|
|
48
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,
|
|
49
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title,
|
|
50
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title,
|
|
51
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title {
|
|
52
|
+
padding: 0 12px;
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
line-height: 32px;
|
|
55
|
+
color: rgba(0, 0, 0, 0.65);
|
|
56
|
+
margin: 0;
|
|
57
|
+
}
|
|
58
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
59
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
60
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
61
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
62
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
63
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
64
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
65
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-dropdown-menu-title-content,
|
|
66
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,
|
|
67
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,
|
|
68
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,
|
|
69
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-dropdown-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,
|
|
70
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,
|
|
71
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu .ant-menu-submenu-title .ant-menu-title-content,
|
|
72
|
+
.antv-s2-tooltip-operator-menus.ant-dropdown-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content,
|
|
73
|
+
.antv-s2-tooltip-operator-menus.ant-menu-vertical .ant-menu-submenu-vertical .ant-menu-submenu-title .ant-menu-title-content {
|
|
74
|
+
margin-right: 12px;
|
|
75
|
+
}
|
|
76
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-dropdown-menu-item,
|
|
77
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-menu-item {
|
|
78
|
+
font-size: 12px;
|
|
79
|
+
line-height: 32px;
|
|
80
|
+
padding: 0 12px;
|
|
81
|
+
color: rgba(0, 0, 0, 0.65);
|
|
82
|
+
}
|
|
83
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item {
|
|
84
|
+
margin: 0;
|
|
85
|
+
height: 30px;
|
|
86
|
+
line-height: 32px;
|
|
87
|
+
}
|
|
88
|
+
.antv-s2-tooltip-operator-submenu-popup .ant-menu-vertical .ant-menu-item:not(:last-child) {
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
.antv-s2-tooltip-operator-icon {
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
margin-right: 4px;
|
|
94
|
+
}
|
|
95
|
+
.antv-s2-tooltip-operator-icon svg {
|
|
96
|
+
width: 12px;
|
|
97
|
+
height: 12px;
|
|
98
|
+
}
|
|
99
|
+
.antv-s2-tooltip-container{background:hsla(0,0%,100%,.96);border-radius:2px;box-shadow:0 1px 4px 0 rgba(0,0,0,.2);display:inline-block;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;max-width:640px;min-width:200px;position:fixed;z-index:1024}.antv-s2-tooltip-container-show{opacity:1;pointer-events:all;visibility:visible}.antv-s2-tooltip-container-hide{opacity:0;pointer-events:none;visibility:hidden}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-tips,
|
|
100
|
+
.antv-s2-tooltip-name {
|
|
101
|
+
padding: 12px;
|
|
102
|
+
line-height: 16px;
|
|
103
|
+
overflow-wrap: break-word;
|
|
104
|
+
color: rgba(0, 0, 0, 0.85);
|
|
105
|
+
}.antv-s2-tooltip-tips {
|
|
106
|
+
padding: 4px 12px;
|
|
107
|
+
color: rgba(0, 0, 0, 0.45);
|
|
108
|
+
}.antv-s2-tooltip-infos {
|
|
109
|
+
padding: 4px 12px;
|
|
110
|
+
line-height: 20px;
|
|
111
|
+
color: rgba(0, 0, 0, 0.45);
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
-webkit-line-clamp: 2;
|
|
115
|
+
display: -webkit-box;
|
|
116
|
+
-webkit-box-orient: vertical;
|
|
117
|
+
overflow-wrap: break-word;
|
|
118
|
+
background: rgba(249, 249, 249, 0.96);
|
|
119
|
+
border-radius: 0 0 2px 2px;
|
|
120
|
+
background-color: #f9f9f9;
|
|
121
|
+
}.antv-s2-tooltip-summary {
|
|
122
|
+
line-height: 20px;
|
|
123
|
+
color: rgba(0, 0, 0, 0.65);
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
padding: 12px;
|
|
126
|
+
}.antv-s2-tooltip-summary-item {
|
|
127
|
+
display: flex;
|
|
128
|
+
}.antv-s2-tooltip-summary-key {
|
|
129
|
+
margin-right: 20px;
|
|
130
|
+
}.antv-s2-tooltip-summary-val {
|
|
131
|
+
flex: 1;
|
|
132
|
+
text-align: right;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
}.antv-s2-tooltip-interpretation {
|
|
137
|
+
color: rgba(0, 0, 0, 0.65);
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
padding: 12px;
|
|
140
|
+
}.antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
|
|
141
|
+
border-top: 1px solid #e9e9e9;
|
|
142
|
+
}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
|
|
143
|
+
margin-bottom: 12px;
|
|
144
|
+
}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon {
|
|
145
|
+
width: 14px;
|
|
146
|
+
height: 14px;
|
|
147
|
+
}.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
|
|
148
|
+
color: #000;
|
|
149
|
+
}.antv-s2-tooltip-head-info-list {
|
|
150
|
+
color: #a2a2a2;
|
|
151
|
+
padding: 12px 12px 4px;
|
|
152
|
+
line-height: 20px;
|
|
153
|
+
}.antv-s2-tooltip-bold,
|
|
154
|
+
.antv-s2-tooltip-selected {
|
|
155
|
+
font-weight: bold;
|
|
156
|
+
}.antv-s2-tooltip-selected {
|
|
157
|
+
margin-right: 5px;
|
|
158
|
+
}.antv-s2-tooltip-highlight {
|
|
159
|
+
color: rgba(0, 0, 0, 0.85);
|
|
160
|
+
}.antv-s2-tooltip-detail-list {
|
|
161
|
+
padding: 2px 12px 8px;
|
|
162
|
+
}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
|
|
163
|
+
color: rgba(0, 0, 0, 0.65);
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
margin: 4px 0;
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: space-around;
|
|
168
|
+
align-items: center;
|
|
169
|
+
}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
|
|
170
|
+
margin-right: 20px;
|
|
171
|
+
}.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val {
|
|
172
|
+
flex: 1;
|
|
173
|
+
text-align: right;
|
|
174
|
+
text-overflow: ellipsis;
|
|
175
|
+
white-space: nowrap;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
}.ant-dropdown-menu-item.operation-item {
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
}
|
|
180
|
+
.antv-s2-spin.ant-spin-nested-loading,
|
|
181
|
+
.antv-s2-spin > .ant-spin-container {
|
|
182
|
+
height: 100%;
|
|
183
|
+
}
|
|
184
|
+
.antv-s2-wrapper {
|
|
185
|
+
padding: 0;
|
|
186
|
+
margin: 0;
|
|
187
|
+
display: flex;
|
|
188
|
+
flex-direction: column;
|
|
189
|
+
height: 100%;
|
|
190
|
+
}
|
|
191
|
+
.antv-s2-container {
|
|
192
|
+
overflow: auto;
|
|
193
|
+
flex: 1 1 auto;
|
|
194
|
+
}
|
|
195
|
+
.antv-s2-container canvas {
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
.antv-s2-pagination {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
z-index: 1024;
|
|
202
|
+
}
|
|
203
|
+
.antv-s2-pagination-count {
|
|
204
|
+
margin-left: 12px;
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
max-width: 64px;
|
|
208
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extendLocale.d.ts","sourceRoot":"","sources":["../../src/utils/extendLocale.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { S2DataConfig, S2Options, ThemeCfg } from '@antv/s2';
|
|
2
|
+
import type { Adaptive, SheetType } from '@antv/s2-shared';
|
|
3
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
export declare const initBaseSheetProps: () => {
|
|
5
|
+
sheetType: PropType<SheetType>;
|
|
6
|
+
dataCfg: PropType<S2DataConfig>;
|
|
7
|
+
themeCfg: PropType<ThemeCfg>;
|
|
8
|
+
showPagination: {
|
|
9
|
+
type: PropType<boolean | {
|
|
10
|
+
onShowSizeChange?: ((pageSize: number) => void) | undefined;
|
|
11
|
+
onChange?: ((current: number) => void) | undefined;
|
|
12
|
+
} | undefined>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
loading: BooleanConstructor;
|
|
16
|
+
partDrillDown: ObjectConstructor;
|
|
17
|
+
header: ObjectConstructor;
|
|
18
|
+
options: {
|
|
19
|
+
type: PropType<S2Options<string | Element>>;
|
|
20
|
+
default: S2Options<string | Element>;
|
|
21
|
+
};
|
|
22
|
+
adaptive: {
|
|
23
|
+
type: PropType<Adaptive>;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
onSpreadsheet: PropType<((args_0: import("@antv/s2").S2MountContainer, args_1: S2DataConfig, args_2: S2Options<string | Element>) => import("@antv/s2").SpreadSheet) | undefined>;
|
|
27
|
+
onGetSpreadSheet: PropType<((spreadsheet: import("@antv/s2").SpreadSheet) => void) | undefined>;
|
|
28
|
+
};
|
|
29
|
+
export declare type BaseSheetProps = ExtractPropTypes<ReturnType<typeof initBaseSheetProps>>;
|
|
30
|
+
export declare const initBaseSheetEmits: () => {
|
|
31
|
+
spreadsheet: (args_0: import("@antv/s2").S2MountContainer, args_1: S2DataConfig, args_2: S2Options<string | Element>) => import("@antv/s2").SpreadSheet;
|
|
32
|
+
getSpreadSheet: (spreadsheet: import("@antv/s2").SpreadSheet) => void;
|
|
33
|
+
sheetUpdate: import("@antv/s2-shared").SheetUpdateCallback;
|
|
34
|
+
rowCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
35
|
+
rowCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
36
|
+
rowCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
37
|
+
rowCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
38
|
+
rowCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
39
|
+
rowCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
40
|
+
rowCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
41
|
+
rowCellCollapseTreeRows: (params: {
|
|
42
|
+
id: number;
|
|
43
|
+
isCollapsed: boolean;
|
|
44
|
+
node: import("@antv/s2").Node;
|
|
45
|
+
}) => void;
|
|
46
|
+
colCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
47
|
+
colCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
48
|
+
colCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
49
|
+
colCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
50
|
+
colCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
51
|
+
colCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
52
|
+
colCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
53
|
+
dataCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
54
|
+
dataCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
55
|
+
dataCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
56
|
+
dataCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
57
|
+
dataCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
58
|
+
dataCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
59
|
+
dataCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
60
|
+
dataCellTrendIconClick: (meta: import("@antv/s2").ViewMeta) => void;
|
|
61
|
+
dataCellBrushSelection: (brushRangeDataCells: import("@antv/s2").DataCell[]) => void;
|
|
62
|
+
cornerCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
63
|
+
cornerCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
64
|
+
cornerCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
65
|
+
cornerCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
66
|
+
cornerCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
67
|
+
cornerCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
68
|
+
cornerCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
69
|
+
mergedCellsHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
70
|
+
mergedCellsClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
71
|
+
mergedCellsDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
72
|
+
mergedCellsContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
73
|
+
mergedCellsMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
74
|
+
mergedCellsMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
75
|
+
mergedCellsMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
76
|
+
rangeSort: (params: import("@antv/s2").SortParams) => void;
|
|
77
|
+
rangeSorted: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
78
|
+
rangeFilter: (data: {
|
|
79
|
+
filterKey: string;
|
|
80
|
+
filteredValues: string[];
|
|
81
|
+
}) => void;
|
|
82
|
+
rangeFiltered: (data: import("@antv/s2").DataType[]) => void;
|
|
83
|
+
layoutAfterHeaderLayout: (layoutResult: import("@antv/s2").LayoutResult) => void;
|
|
84
|
+
layoutPagination: (data: {
|
|
85
|
+
pageSize: number;
|
|
86
|
+
pageCount: number;
|
|
87
|
+
total: number;
|
|
88
|
+
current: number;
|
|
89
|
+
}) => void;
|
|
90
|
+
layoutCellScroll: (position: import("@antv/s2").CellScrollPosition) => void;
|
|
91
|
+
layoutAfterCollapseRows: (data: import("@antv/s2").CollapsedRowsType) => void;
|
|
92
|
+
collapseRowsAll: (hierarchyCollapse: boolean) => void;
|
|
93
|
+
layoutColsExpanded: (node: import("@antv/s2").Node) => void;
|
|
94
|
+
layoutColsHidden: (data: {
|
|
95
|
+
currentHiddenColumnsInfo: import("@antv/s2").HiddenColumnsInfo;
|
|
96
|
+
hiddenColumnsDetail: import("@antv/s2").HiddenColumnsInfo[];
|
|
97
|
+
}) => void;
|
|
98
|
+
beforeRender: () => void;
|
|
99
|
+
afterRender: () => void;
|
|
100
|
+
destroy: () => void;
|
|
101
|
+
layoutResize: (params: import("@antv/s2").ResizeParams) => void;
|
|
102
|
+
layoutResizeSeriesWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
103
|
+
layoutResizeRowWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
104
|
+
layoutResizeRowHeight: (params: import("@antv/s2").ResizeParams) => void;
|
|
105
|
+
layoutResizeColWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
106
|
+
layoutResizeColHeight: (params: import("@antv/s2").ResizeParams) => void;
|
|
107
|
+
layoutResizeTreeWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
108
|
+
layoutResizeMouseDown: (data: {
|
|
109
|
+
event: Partial<MouseEvent>;
|
|
110
|
+
resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
|
|
111
|
+
}) => void;
|
|
112
|
+
layoutResizeMouseUp: (data: {
|
|
113
|
+
event: Partial<MouseEvent>;
|
|
114
|
+
resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
|
|
115
|
+
}) => void;
|
|
116
|
+
layoutResizeMouseMove: (data: {
|
|
117
|
+
event: Partial<MouseEvent>;
|
|
118
|
+
resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
|
|
119
|
+
}) => void;
|
|
120
|
+
keyBoardDown: (event: KeyboardEvent) => void;
|
|
121
|
+
keyBoardUp: (event: KeyboardEvent) => void;
|
|
122
|
+
copied: (copyData: string) => void;
|
|
123
|
+
actionIconHover: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
124
|
+
actionIconClick: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
125
|
+
contextMenu: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
126
|
+
click: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
127
|
+
doubleClick: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
128
|
+
mouseHover: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
|
|
129
|
+
mouseUp: (event: MouseEvent) => void;
|
|
130
|
+
selected: (cells: import("@antv/s2").DataCell[]) => void;
|
|
131
|
+
reset: (event: KeyboardEvent) => void;
|
|
132
|
+
linkFieldJump: (data: {
|
|
133
|
+
key: string;
|
|
134
|
+
record: import("@antv/s2").Data;
|
|
135
|
+
}) => void;
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=initPropAndEmits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initPropAndEmits.d.ts","sourceRoot":"","sources":["../../src/utils/initPropAndEmits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,KAAK,EACV,QAAQ,EAER,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;CAyB7B,CAAC;AAEH,oBAAY,cAAc,GAAG,gBAAgB,CAC3C,UAAU,CAAC,OAAO,kBAAkB,CAAC,CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6F9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/utils/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,eAAO,MAAM,wBAAwB,eACvB,QAAQ,SAAS,CAAC,EAAE,KAC/B,SAA4E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traverse.d.ts","sourceRoot":"","sources":["../../src/utils/traverse.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,+CA+BpB,CAAC"}
|