@antv/s2-vue 1.0.0 → 1.1.0-alpha.1

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.
Files changed (79) hide show
  1. package/README.md +26 -55
  2. package/dist/index.min.js +1 -1
  3. package/dist/index.min.js.map +1 -1
  4. package/dist/style.min.css +1 -1
  5. package/esm/index.d.ts +4366 -4
  6. package/esm/index.js +824 -150
  7. package/esm/index.js.map +1 -1
  8. package/esm/style.css +123 -21
  9. package/lib/index.js +821 -147
  10. package/lib/index.js.map +1 -1
  11. package/lib/style.css +123 -21
  12. package/package.json +11 -8
  13. package/esm/common/constant/index.d.ts +0 -3
  14. package/esm/common/constant/index.d.ts.map +0 -1
  15. package/esm/common/constant/options.d.ts +0 -3
  16. package/esm/common/constant/options.d.ts.map +0 -1
  17. package/esm/common/constant/sort.d.ts +0 -15
  18. package/esm/common/constant/sort.d.ts.map +0 -1
  19. package/esm/components/index.d.ts +0 -5
  20. package/esm/components/index.d.ts.map +0 -1
  21. package/esm/components/pagination/index.vue.d.ts +0 -43
  22. package/esm/components/pagination/index.vue.d.ts.map +0 -1
  23. package/esm/components/sheets/base-sheet.vue.d.ts +0 -287
  24. package/esm/components/sheets/base-sheet.vue.d.ts.map +0 -1
  25. package/esm/components/sheets/index.vue.d.ts +0 -432
  26. package/esm/components/sheets/index.vue.d.ts.map +0 -1
  27. package/esm/components/sheets/pivot-sheet.vue.d.ts +0 -217
  28. package/esm/components/sheets/pivot-sheet.vue.d.ts.map +0 -1
  29. package/esm/components/sheets/table-sheet.vue.d.ts +0 -217
  30. package/esm/components/sheets/table-sheet.vue.d.ts.map +0 -1
  31. package/esm/components/tooltip/components/detail.vue.d.ts +0 -7
  32. package/esm/components/tooltip/components/detail.vue.d.ts.map +0 -1
  33. package/esm/components/tooltip/components/head-info.vue.d.ts +0 -7
  34. package/esm/components/tooltip/components/head-info.vue.d.ts.map +0 -1
  35. package/esm/components/tooltip/components/infos.vue.d.ts +0 -7
  36. package/esm/components/tooltip/components/infos.vue.d.ts.map +0 -1
  37. package/esm/components/tooltip/components/operator/index.d.ts +0 -4
  38. package/esm/components/tooltip/components/operator/index.d.ts.map +0 -1
  39. package/esm/components/tooltip/components/operator/index.vue.d.ts +0 -11
  40. package/esm/components/tooltip/components/operator/index.vue.d.ts.map +0 -1
  41. package/esm/components/tooltip/components/operator/menu.vue.d.ts +0 -12
  42. package/esm/components/tooltip/components/operator/menu.vue.d.ts.map +0 -1
  43. package/esm/components/tooltip/components/operator/title.vue.d.ts +0 -11
  44. package/esm/components/tooltip/components/operator/title.vue.d.ts.map +0 -1
  45. package/esm/components/tooltip/components/simple-tips.vue.d.ts +0 -7
  46. package/esm/components/tooltip/components/simple-tips.vue.d.ts.map +0 -1
  47. package/esm/components/tooltip/components/summary.vue.d.ts +0 -9
  48. package/esm/components/tooltip/components/summary.vue.d.ts.map +0 -1
  49. package/esm/components/tooltip/custom-tooltip.d.ts +0 -7
  50. package/esm/components/tooltip/custom-tooltip.d.ts.map +0 -1
  51. package/esm/components/tooltip/index.vue.d.ts +0 -8
  52. package/esm/components/tooltip/index.vue.d.ts.map +0 -1
  53. package/esm/components/tooltip/interface.d.ts +0 -9
  54. package/esm/components/tooltip/interface.d.ts.map +0 -1
  55. package/esm/hooks/useEvents.d.ts +0 -5
  56. package/esm/hooks/useEvents.d.ts.map +0 -1
  57. package/esm/hooks/useExpose.d.ts +0 -6
  58. package/esm/hooks/useExpose.d.ts.map +0 -1
  59. package/esm/hooks/useLoading.d.ts +0 -7
  60. package/esm/hooks/useLoading.d.ts.map +0 -1
  61. package/esm/hooks/usePagination.d.ts +0 -14
  62. package/esm/hooks/usePagination.d.ts.map +0 -1
  63. package/esm/hooks/useResize.d.ts +0 -8
  64. package/esm/hooks/useResize.d.ts.map +0 -1
  65. package/esm/hooks/useSheetUpdate.d.ts +0 -5
  66. package/esm/hooks/useSheetUpdate.d.ts.map +0 -1
  67. package/esm/hooks/useSpreadSheet.d.ts +0 -19
  68. package/esm/hooks/useSpreadSheet.d.ts.map +0 -1
  69. package/esm/index.d.ts.map +0 -1
  70. package/esm/interface.d.ts +0 -36
  71. package/esm/interface.d.ts.map +0 -1
  72. package/esm/utils/extendLocale.d.ts +0 -2
  73. package/esm/utils/extendLocale.d.ts.map +0 -1
  74. package/esm/utils/initPropAndEmits.d.ts +0 -137
  75. package/esm/utils/initPropAndEmits.d.ts.map +0 -1
  76. package/esm/utils/options.d.ts +0 -3
  77. package/esm/utils/options.d.ts.map +0 -1
  78. package/esm/utils/traverse.d.ts +0 -2
  79. package/esm/utils/traverse.d.ts.map +0 -1
package/lib/style.css CHANGED
@@ -96,16 +96,46 @@
96
96
  width: 12px;
97
97
  height: 12px;
98
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,
99
+ .antv-s2-tooltip-container {
100
+ position: fixed;
101
+ user-select: text;
102
+ min-width: 200px;
103
+ max-width: 640px;
104
+ max-height: 100vh;
105
+ overflow: auto;
106
+ z-index: 1024;
107
+ display: inline-block;
108
+ background: rgba(255, 255, 255, 0.96);
109
+ border-radius: 2px;
110
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
111
+ font-size: 12px;
112
+ font-family: 'Roboto', 'PingFang SC', 'Chinese Quote', 'BlinkMacSystemFont', 'Segoe UI', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
113
+ }
114
+ .antv-s2-tooltip-container-hide {
115
+ opacity: 0;
116
+ visibility: hidden;
117
+ pointer-events: none;
118
+ }
119
+ .antv-s2-tooltip-container-hide * {
120
+ transition: none;
121
+ }
122
+ .antv-s2-tooltip-container-show {
123
+ opacity: 1;
124
+ visibility: visible;
125
+ pointer-events: all;
126
+ }
127
+ .antv-s2-tooltip-tips,
100
128
  .antv-s2-tooltip-name {
101
129
  padding: 12px;
102
130
  line-height: 16px;
103
131
  overflow-wrap: break-word;
104
132
  color: rgba(0, 0, 0, 0.85);
105
- }.antv-s2-tooltip-tips {
133
+ }
134
+ .antv-s2-tooltip-tips {
106
135
  padding: 4px 12px;
107
136
  color: rgba(0, 0, 0, 0.45);
108
- }.antv-s2-tooltip-infos {
137
+ }
138
+ .antv-s2-tooltip-infos {
109
139
  padding: 4px 12px;
110
140
  line-height: 20px;
111
141
  color: rgba(0, 0, 0, 0.45);
@@ -118,63 +148,81 @@
118
148
  background: rgba(249, 249, 249, 0.96);
119
149
  border-radius: 0 0 2px 2px;
120
150
  background-color: #f9f9f9;
121
- }.antv-s2-tooltip-summary {
151
+ }
152
+ .antv-s2-tooltip-summary {
122
153
  line-height: 20px;
123
154
  color: rgba(0, 0, 0, 0.65);
124
155
  overflow: hidden;
125
156
  padding: 12px;
126
- }.antv-s2-tooltip-summary-item {
157
+ }
158
+ .antv-s2-tooltip-summary-item {
127
159
  display: flex;
128
- }.antv-s2-tooltip-summary-key {
160
+ }
161
+ .antv-s2-tooltip-summary-key {
129
162
  margin-right: 20px;
130
- }.antv-s2-tooltip-summary-val {
163
+ }
164
+ .antv-s2-tooltip-summary-val {
131
165
  flex: 1;
132
166
  text-align: right;
133
167
  text-overflow: ellipsis;
134
168
  white-space: nowrap;
135
169
  overflow: hidden;
136
- }.antv-s2-tooltip-interpretation {
170
+ }
171
+ .antv-s2-tooltip-interpretation {
137
172
  color: rgba(0, 0, 0, 0.65);
138
173
  overflow: hidden;
139
174
  padding: 12px;
140
- }.antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
175
+ }
176
+ .antv-s2-tooltip-interpretation + .antv-s2-tooltip-head-info-list {
141
177
  border-top: 1px solid #e9e9e9;
142
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
178
+ }
179
+ .antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head {
143
180
  margin-bottom: 12px;
144
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon {
181
+ }
182
+ .antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-icon {
145
183
  width: 14px;
146
184
  height: 14px;
147
- }.antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
185
+ }
186
+ .antv-s2-tooltip-interpretation .antv-s2-tooltip-interpretation-head .antv-s2-tooltip-interpretation-name {
148
187
  color: #000;
149
- }.antv-s2-tooltip-head-info-list {
188
+ }
189
+ .antv-s2-tooltip-head-info-list {
150
190
  color: #a2a2a2;
151
191
  padding: 12px 12px 4px;
152
192
  line-height: 20px;
153
- }.antv-s2-tooltip-bold,
193
+ }
194
+ .antv-s2-tooltip-bold,
154
195
  .antv-s2-tooltip-selected {
155
196
  font-weight: bold;
156
- }.antv-s2-tooltip-selected {
197
+ }
198
+ .antv-s2-tooltip-selected {
157
199
  margin-right: 5px;
158
- }.antv-s2-tooltip-highlight {
200
+ }
201
+ .antv-s2-tooltip-highlight {
159
202
  color: rgba(0, 0, 0, 0.85);
160
- }.antv-s2-tooltip-detail-list {
203
+ }
204
+ .antv-s2-tooltip-detail-list {
161
205
  padding: 2px 12px 8px;
162
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
206
+ }
207
+ .antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item {
163
208
  color: rgba(0, 0, 0, 0.65);
164
209
  overflow: hidden;
165
210
  margin: 4px 0;
166
211
  display: flex;
167
212
  justify-content: space-around;
168
213
  align-items: center;
169
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
214
+ }
215
+ .antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-key {
170
216
  margin-right: 20px;
171
- }.antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val {
217
+ }
218
+ .antv-s2-tooltip-detail-list .antv-s2-tooltip-detail-item-val {
172
219
  flex: 1;
173
220
  text-align: right;
174
221
  text-overflow: ellipsis;
175
222
  white-space: nowrap;
176
223
  overflow: hidden;
177
- }.ant-dropdown-menu-item.operation-item {
224
+ }
225
+ .ant-dropdown-menu-item.operation-item {
178
226
  font-size: 12px;
179
227
  }
180
228
  .antv-s2-spin.ant-spin-nested-loading,
@@ -206,3 +254,57 @@
206
254
  white-space: nowrap;
207
255
  max-width: 64px;
208
256
  }
257
+ .s2-drill-down[data-v-6eb1ccd0] {
258
+ width: 260px;
259
+ min-height: 20px;
260
+ position: relative;
261
+ }
262
+ .s2-drill-down-header[data-v-6eb1ccd0] {
263
+ display: flex;
264
+ height: 32px;
265
+ font-size: 14px;
266
+ padding: 0 16px;
267
+ margin-top: 16px;
268
+ }
269
+ .s2-drill-down-header button[data-v-6eb1ccd0] {
270
+ position: absolute;
271
+ right: 0;
272
+ top: -4px;
273
+ font-size: 12px;
274
+ color: #1890ff;
275
+ letter-spacing: -0.2px;
276
+ line-height: 20px;
277
+ }
278
+ .s2-drill-down-search[data-v-6eb1ccd0] {
279
+ height: 24px;
280
+ width: 228px !important;
281
+ margin: 0 16px;
282
+ border: 1px solid rgba(0, 0, 0, 0.15);
283
+ border-radius: 2px;
284
+ background-color: #fff;
285
+ }
286
+ .s2-drill-down-search input[data-v-6eb1ccd0],
287
+ .s2-drill-down-search span[data-v-6eb1ccd0] {
288
+ font-size: 12px;
289
+ }
290
+ .s2-drill-down-menu[data-v-6eb1ccd0] {
291
+ max-height: 314px;
292
+ overflow-y: auto;
293
+ overflow-x: hidden;
294
+ }
295
+ .s2-drill-down-menu-item[data-v-6eb1ccd0] {
296
+ height: 32px !important;
297
+ line-height: 32px !important;
298
+ font-size: 12px;
299
+ opacity: 0.65;
300
+ }
301
+ .s2-drill-down-menu-item span[data-v-6eb1ccd0]:last-child {
302
+ line-height: 32px;
303
+ }
304
+ .s2-drill-down-menu-item svg[data-v-6eb1ccd0] {
305
+ margin-right: 8px;
306
+ }
307
+ .s2-drill-down-empty[data-v-6eb1ccd0] {
308
+ padding: 18px 18px 0;
309
+ font-size: 12px;
310
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@antv/s2-vue",
4
- "version": "1.0.0",
4
+ "version": "1.1.0-alpha.1",
5
5
  "main": "lib/index.js",
6
- "module": "esm/index.js",
7
6
  "unpkg": "dist/index.min.js",
7
+ "module": "esm/index.js",
8
8
  "types": "esm/index.d.ts",
9
9
  "description": "use S2 with vue",
10
10
  "license": "MIT",
@@ -33,19 +33,21 @@
33
33
  "s2-vue",
34
34
  "spreadsheet",
35
35
  "pivot table",
36
- "table"
36
+ "table",
37
+ "crossTable"
37
38
  ],
38
39
  "scripts": {
39
40
  "start": "cross-env PLAYGROUND=true vite",
40
- "clean": "rimraf lib esm dist",
41
- "build": "run-s clean build:esm build:cjs build:umd build:declaration",
41
+ "clean": "rimraf lib esm dist temp",
42
+ "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts",
42
43
  "build:esm": "cross-env FORMAT=es vite build",
43
44
  "build:cjs": "cross-env FORMAT=cjs vite build",
44
45
  "build:umd": "cross-env FORMAT=umd vite build",
45
46
  "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build",
46
- "build:declaration": "vue-tsc -p tsconfig.declaration.json",
47
+ "build:dts": "run-s dts:*",
48
+ "dts:build": "vue-tsc -p tsconfig.declaration.json",
49
+ "dts:extract": "cross-env LIB=s2-vue node ../../scripts/dts.js",
47
50
  "bundle:size": "bundlesize",
48
- "watch": "rimraf esm && concurrently \"yarn build:esm -w\" \"yarn build:declaration -w\"",
49
51
  "test": "jest --passWithNoTests",
50
52
  "test:coverage": "yarn test --coverage",
51
53
  "test:ci": "yarn test --maxWorkers=3",
@@ -64,11 +66,12 @@
64
66
  "lodash": "^4.17.21"
65
67
  },
66
68
  "devDependencies": {
67
- "@antv/s2": "*",
69
+ "@antv/s2": "^1.22.0-alpha.1",
68
70
  "@antv/s2-shared": "*",
69
71
  "@testing-library/vue": "^6.5.1",
70
72
  "@vue/tsconfig": "^0.1.3",
71
73
  "ant-design-vue": "^3.2.0",
74
+ "vite-svg-loader": "^3.3.0",
72
75
  "vue": "^3.2.31",
73
76
  "vue-tsc": "^0.34.11"
74
77
  },
@@ -1,3 +0,0 @@
1
- export * from './options';
2
- export * from './sort';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/constant/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { S2Options } from '@antv/s2';
2
- export declare const RENDER_TOOLTIP_OPTION: Partial<S2Options>;
3
- //# sourceMappingURL=options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/common/constant/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,UAAU,CAAC;AAGvD,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,SAAS,CAIpD,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const SORT_METHOD: {
2
- name: string;
3
- value: string;
4
- }[];
5
- export declare const RULE_OPTIONS: ({
6
- label: string;
7
- value: string;
8
- children?: undefined;
9
- } | {
10
- label: string;
11
- value: string;
12
- children: never[];
13
- })[];
14
- export declare const ADVANCED_PRE_CLS = "antv-s2-advanced-sort";
15
- //# sourceMappingURL=sort.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../src/common/constant/sort.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;GASvB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;IAcxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0BAA0B,CAAC"}
@@ -1,5 +0,0 @@
1
- export { default as BaseSheet } from './sheets/base-sheet.vue';
2
- export { default as PivotSheet } from './sheets/pivot-sheet.vue';
3
- export { default as TableSheet } from './sheets/table-sheet.vue';
4
- export { default as Sheet } from './sheets/index.vue';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,43 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- current: {
3
- type: NumberConstructor;
4
- default: number;
5
- };
6
- total: {
7
- type: NumberConstructor;
8
- default: number;
9
- };
10
- pageSize: {
11
- type: NumberConstructor;
12
- default: number;
13
- };
14
- }, {
15
- showQuickJumper: import("vue").ComputedRef<boolean>;
16
- PRE_CLASS: string;
17
- i18n: (key: string, defaultValue?: string | undefined) => string;
18
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- change: (current: number) => void;
20
- showSizeChange: (size: number) => void;
21
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- current: {
23
- type: NumberConstructor;
24
- default: number;
25
- };
26
- total: {
27
- type: NumberConstructor;
28
- default: number;
29
- };
30
- pageSize: {
31
- type: NumberConstructor;
32
- default: number;
33
- };
34
- }>> & {
35
- onChange?: ((current: number) => any) | undefined;
36
- onShowSizeChange?: ((size: number) => any) | undefined;
37
- }, {
38
- current: number;
39
- total: number;
40
- pageSize: number;
41
- }>;
42
- export default _default;
43
- //# sourceMappingURL=index.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;sBA6BsB,MAAM,KAAK,IAAI;2BACV,MAAM,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;AAlB1C,wBAmCG"}
@@ -1,287 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- sheetType: import("vue").PropType<import("@antv/s2-shared").SheetType>;
3
- dataCfg: import("vue").PropType<import("@antv/s2").S2DataConfig>;
4
- themeCfg: import("vue").PropType<import("@antv/s2").ThemeCfg>;
5
- showPagination: {
6
- type: import("vue").PropType<boolean | {
7
- onShowSizeChange?: ((pageSize: number) => void) | undefined;
8
- onChange?: ((current: number) => void) | undefined;
9
- } | undefined>;
10
- default: boolean;
11
- };
12
- loading: BooleanConstructor;
13
- partDrillDown: ObjectConstructor;
14
- header: ObjectConstructor;
15
- options: {
16
- type: import("vue").PropType<import("@antv/s2").S2Options<string | Element>>;
17
- default: import("@antv/s2").S2Options<string | Element>;
18
- };
19
- adaptive: {
20
- type: import("vue").PropType<import("@antv/s2-shared").Adaptive>;
21
- default: boolean;
22
- };
23
- onSpreadsheet: import("vue").PropType<((args_0: import("@antv/s2").S2MountContainer, args_1: import("@antv/s2").S2DataConfig, args_2: import("@antv/s2").S2Options<string | Element>) => import("@antv/s2").SpreadSheet) | undefined>;
24
- onGetSpreadSheet: import("vue").PropType<((spreadsheet: import("@antv/s2").SpreadSheet) => void) | undefined>;
25
- }, {
26
- S2_PREFIX_CLS: string;
27
- wrapperRef: import("vue").Ref<HTMLDivElement | undefined>;
28
- containerRef: import("vue").Ref<HTMLDivElement | undefined>;
29
- s2Ref: import("vue").ShallowRef<import("@antv/s2").SpreadSheet | undefined>;
30
- loading: import("vue").Ref<boolean>;
31
- pagination: {
32
- visible: import("vue").ComputedRef<boolean | undefined>;
33
- current: import("vue").Ref<number>;
34
- pageSize: import("vue").Ref<number>;
35
- total: import("vue").Ref<number>;
36
- change: (nextCurrent: number) => void;
37
- showSizeChange: (nextPageSize: number) => void;
38
- };
39
- handlePageChange: (nextCurrent: number) => void;
40
- handlePageSizeChange: (nextSize: number) => void;
41
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
- spreadsheet: (args_0: import("@antv/s2").S2MountContainer, args_1: import("@antv/s2").S2DataConfig, args_2: import("@antv/s2").S2Options<string | Element>) => import("@antv/s2").SpreadSheet;
43
- getSpreadSheet: (spreadsheet: import("@antv/s2").SpreadSheet) => void;
44
- sheetUpdate: import("@antv/s2-shared").SheetUpdateCallback;
45
- rowCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
46
- rowCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
47
- rowCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
48
- rowCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
49
- rowCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
50
- rowCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
51
- rowCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
52
- rowCellCollapseTreeRows: (params: {
53
- id: number;
54
- isCollapsed: boolean;
55
- node: import("@antv/s2").Node;
56
- }) => void;
57
- colCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
58
- colCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
59
- colCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
60
- colCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
61
- colCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
62
- colCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
63
- colCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
64
- dataCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
65
- dataCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
66
- dataCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
67
- dataCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
68
- dataCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
69
- dataCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
70
- dataCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
71
- dataCellTrendIconClick: (meta: import("@antv/s2").ViewMeta) => void;
72
- dataCellBrushSelection: (brushRangeDataCells: import("@antv/s2").DataCell[]) => void;
73
- cornerCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
74
- cornerCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
75
- cornerCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
76
- cornerCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
77
- cornerCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
78
- cornerCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
79
- cornerCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
80
- mergedCellsHover: (data: import("@antv/s2").TargetCellInfo) => void;
81
- mergedCellsClick: (data: import("@antv/s2").TargetCellInfo) => void;
82
- mergedCellsDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
83
- mergedCellsContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
84
- mergedCellsMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
85
- mergedCellsMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
86
- mergedCellsMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
87
- rangeSort: (params: import("@antv/s2").SortParams) => void;
88
- rangeSorted: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
89
- rangeFilter: (data: {
90
- filterKey: string;
91
- filteredValues: string[];
92
- }) => void;
93
- rangeFiltered: (data: import("@antv/s2").DataType[]) => void;
94
- layoutAfterHeaderLayout: (layoutResult: import("@antv/s2").LayoutResult) => void;
95
- layoutPagination: (data: {
96
- pageSize: number;
97
- pageCount: number;
98
- total: number;
99
- current: number;
100
- }) => void;
101
- layoutCellScroll: (position: import("@antv/s2").CellScrollPosition) => void;
102
- layoutAfterCollapseRows: (data: import("@antv/s2").CollapsedRowsType) => void;
103
- collapseRowsAll: (hierarchyCollapse: boolean) => void;
104
- layoutColsExpanded: (node: import("@antv/s2").Node) => void;
105
- layoutColsHidden: (data: {
106
- currentHiddenColumnsInfo: import("@antv/s2").HiddenColumnsInfo;
107
- hiddenColumnsDetail: import("@antv/s2").HiddenColumnsInfo[];
108
- }) => void;
109
- beforeRender: () => void;
110
- afterRender: () => void;
111
- destroy: () => void;
112
- layoutResize: (params: import("@antv/s2").ResizeParams) => void;
113
- layoutResizeSeriesWidth: (params: import("@antv/s2").ResizeParams) => void;
114
- layoutResizeRowWidth: (params: import("@antv/s2").ResizeParams) => void;
115
- layoutResizeRowHeight: (params: import("@antv/s2").ResizeParams) => void;
116
- layoutResizeColWidth: (params: import("@antv/s2").ResizeParams) => void;
117
- layoutResizeColHeight: (params: import("@antv/s2").ResizeParams) => void;
118
- layoutResizeTreeWidth: (params: import("@antv/s2").ResizeParams) => void;
119
- layoutResizeMouseDown: (data: {
120
- event: Partial<MouseEvent>;
121
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
122
- }) => void;
123
- layoutResizeMouseUp: (data: {
124
- event: Partial<MouseEvent>;
125
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
126
- }) => void;
127
- layoutResizeMouseMove: (data: {
128
- event: Partial<MouseEvent>;
129
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
130
- }) => void;
131
- keyBoardDown: (event: KeyboardEvent) => void;
132
- keyBoardUp: (event: KeyboardEvent) => void;
133
- copied: (copyData: string) => void;
134
- actionIconHover: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
135
- actionIconClick: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
136
- contextMenu: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
137
- click: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
138
- doubleClick: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
139
- mouseHover: (event: import("@antv/g-base/lib/event/graph-event").default) => void;
140
- mouseUp: (event: MouseEvent) => void;
141
- selected: (cells: import("@antv/s2").DataCell[]) => void;
142
- reset: (event: KeyboardEvent) => void;
143
- linkFieldJump: (data: {
144
- key: string;
145
- record: import("@antv/s2").Data;
146
- }) => void;
147
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
148
- sheetType: import("vue").PropType<import("@antv/s2-shared").SheetType>;
149
- dataCfg: import("vue").PropType<import("@antv/s2").S2DataConfig>;
150
- themeCfg: import("vue").PropType<import("@antv/s2").ThemeCfg>;
151
- showPagination: {
152
- type: import("vue").PropType<boolean | {
153
- onShowSizeChange?: ((pageSize: number) => void) | undefined;
154
- onChange?: ((current: number) => void) | undefined;
155
- } | undefined>;
156
- default: boolean;
157
- };
158
- loading: BooleanConstructor;
159
- partDrillDown: ObjectConstructor;
160
- header: ObjectConstructor;
161
- options: {
162
- type: import("vue").PropType<import("@antv/s2").S2Options<string | Element>>;
163
- default: import("@antv/s2").S2Options<string | Element>;
164
- };
165
- adaptive: {
166
- type: import("vue").PropType<import("@antv/s2-shared").Adaptive>;
167
- default: boolean;
168
- };
169
- onSpreadsheet: import("vue").PropType<((args_0: import("@antv/s2").S2MountContainer, args_1: import("@antv/s2").S2DataConfig, args_2: import("@antv/s2").S2Options<string | Element>) => import("@antv/s2").SpreadSheet) | undefined>;
170
- onGetSpreadSheet: import("vue").PropType<((spreadsheet: import("@antv/s2").SpreadSheet) => void) | undefined>;
171
- }>> & {
172
- onClick?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
173
- onSheetUpdate?: ((params: import("@antv/s2").S2RenderOptions) => any) | undefined;
174
- onRowCellHover?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
175
- onRowCellClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
176
- onRowCellDoubleClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
177
- onRowCellContextMenu?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
178
- onRowCellMouseDown?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
179
- onRowCellMouseUp?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
180
- onRowCellMouseMove?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
181
- onRowCellCollapseTreeRows?: ((params: {
182
- id: number;
183
- isCollapsed: boolean;
184
- node: import("@antv/s2").Node;
185
- }) => any) | undefined;
186
- onColCellHover?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
187
- onColCellClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
188
- onColCellDoubleClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
189
- onColCellContextMenu?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
190
- onColCellMouseDown?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
191
- onColCellMouseUp?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
192
- onColCellMouseMove?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
193
- onDataCellHover?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
194
- onDataCellClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
195
- onDataCellDoubleClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
196
- onDataCellContextMenu?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
197
- onDataCellMouseDown?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
198
- onDataCellMouseUp?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
199
- onDataCellMouseMove?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
200
- onDataCellTrendIconClick?: ((meta: import("@antv/s2").ViewMeta) => any) | undefined;
201
- onDataCellBrushSelection?: ((brushRangeDataCells: import("@antv/s2").DataCell[]) => any) | undefined;
202
- onCornerCellHover?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
203
- onCornerCellClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
204
- onCornerCellDoubleClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
205
- onCornerCellContextMenu?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
206
- onCornerCellMouseDown?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
207
- onCornerCellMouseUp?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
208
- onCornerCellMouseMove?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
209
- onMergedCellsHover?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
210
- onMergedCellsClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
211
- onMergedCellsDoubleClick?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
212
- onMergedCellsContextMenu?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
213
- onMergedCellsMouseDown?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
214
- onMergedCellsMouseUp?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
215
- onMergedCellsMouseMove?: ((data: import("@antv/s2").TargetCellInfo) => any) | undefined;
216
- onRangeSort?: ((params: import("@antv/s2").SortParams) => any) | undefined;
217
- onRangeSorted?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
218
- onRangeFilter?: ((data: {
219
- filterKey: string;
220
- filteredValues: string[];
221
- }) => any) | undefined;
222
- onRangeFiltered?: ((data: import("@antv/s2").DataType[]) => any) | undefined;
223
- onLayoutAfterHeaderLayout?: ((layoutResult: import("@antv/s2").LayoutResult) => any) | undefined;
224
- onLayoutPagination?: ((data: {
225
- pageSize: number;
226
- pageCount: number;
227
- total: number;
228
- current: number;
229
- }) => any) | undefined;
230
- onLayoutCellScroll?: ((position: import("@antv/s2").CellScrollPosition) => any) | undefined;
231
- onLayoutAfterCollapseRows?: ((data: import("@antv/s2").CollapsedRowsType) => any) | undefined;
232
- onCollapseRowsAll?: ((hierarchyCollapse: boolean) => any) | undefined;
233
- onLayoutColsExpanded?: ((node: import("@antv/s2").Node) => any) | undefined;
234
- onLayoutColsHidden?: ((data: {
235
- currentHiddenColumnsInfo: import("@antv/s2").HiddenColumnsInfo;
236
- hiddenColumnsDetail: import("@antv/s2").HiddenColumnsInfo[];
237
- }) => any) | undefined;
238
- onBeforeRender?: (() => any) | undefined;
239
- onAfterRender?: (() => any) | undefined;
240
- onDestroy?: (() => any) | undefined;
241
- onLayoutResize?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
242
- onLayoutResizeSeriesWidth?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
243
- onLayoutResizeRowWidth?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
244
- onLayoutResizeRowHeight?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
245
- onLayoutResizeColWidth?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
246
- onLayoutResizeColHeight?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
247
- onLayoutResizeTreeWidth?: ((params: import("@antv/s2").ResizeParams) => any) | undefined;
248
- onLayoutResizeMouseDown?: ((data: {
249
- event: Partial<MouseEvent>;
250
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
251
- }) => any) | undefined;
252
- onLayoutResizeMouseUp?: ((data: {
253
- event: Partial<MouseEvent>;
254
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
255
- }) => any) | undefined;
256
- onLayoutResizeMouseMove?: ((data: {
257
- event: Partial<MouseEvent>;
258
- resizeInfo?: import("@antv/s2").ResizeInfo | undefined;
259
- }) => any) | undefined;
260
- onKeyBoardDown?: ((event: KeyboardEvent) => any) | undefined;
261
- onKeyBoardUp?: ((event: KeyboardEvent) => any) | undefined;
262
- onCopied?: ((copyData: string) => any) | undefined;
263
- onActionIconHover?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
264
- onActionIconClick?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
265
- onContextMenu?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
266
- onDoubleClick?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
267
- onMouseHover?: ((event: import("@antv/g-base/lib/event/graph-event").default) => any) | undefined;
268
- onMouseUp?: ((event: MouseEvent) => any) | undefined;
269
- onSelected?: ((cells: import("@antv/s2").DataCell[]) => any) | undefined;
270
- onReset?: ((event: KeyboardEvent) => any) | undefined;
271
- onLinkFieldJump?: ((data: {
272
- key: string;
273
- record: import("@antv/s2").Data;
274
- }) => any) | undefined;
275
- onSpreadsheet?: ((args_0: import("@antv/s2").S2MountContainer, args_1: import("@antv/s2").S2DataConfig, args_2: import("@antv/s2").S2Options<string | Element>) => any) | undefined;
276
- onGetSpreadSheet?: ((spreadsheet: import("@antv/s2").SpreadSheet) => any) | undefined;
277
- }, {
278
- adaptive: import("@antv/s2-shared").Adaptive;
279
- options: import("@antv/s2").S2Options<string | Element>;
280
- loading: boolean;
281
- showPagination: boolean | {
282
- onShowSizeChange?: ((pageSize: number) => void) | undefined;
283
- onChange?: ((current: number) => void) | undefined;
284
- } | undefined;
285
- }>;
286
- export default _default;
287
- //# sourceMappingURL=base-sheet.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-sheet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/sheets/base-sheet.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA0B2C,MAAM;qCAOL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArBlD,wBA2CG"}