@antv/s2-vue 2.0.0-next.9 → 2.0.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 (232) hide show
  1. package/README.md +7 -8
  2. package/dist/s2-vue.min.css +1 -0
  3. package/dist/s2-vue.min.js +28 -0
  4. package/dist/s2-vue.min.js.map +1 -0
  5. package/esm/common/constant/index.d.ts +1 -0
  6. package/esm/common/constant/index.js +2 -0
  7. package/esm/common/constant/index.js.map +1 -0
  8. package/esm/common/constant/options.d.ts +2 -0
  9. package/esm/common/constant/options.js +7 -0
  10. package/esm/common/constant/options.js.map +1 -0
  11. package/esm/components/drill-down/index.vue.d.ts +126 -0
  12. package/esm/components/drill-down/index.vue.js +206 -0
  13. package/esm/components/drill-down/index.vue.js.map +1 -0
  14. package/esm/components/index.d.ts +6 -0
  15. package/esm/components/index.js +8 -0
  16. package/esm/components/index.js.map +1 -0
  17. package/esm/components/pagination/index.vue.d.ts +44 -0
  18. package/esm/components/pagination/index.vue.js +91 -0
  19. package/esm/components/pagination/index.vue.js.map +1 -0
  20. package/esm/components/sheets/base-sheet.vue.d.ts +391 -0
  21. package/esm/components/sheets/base-sheet.vue.js +119 -0
  22. package/esm/components/sheets/base-sheet.vue.js.map +1 -0
  23. package/esm/components/sheets/editable-sheet.vue.d.ts +2 -0
  24. package/esm/components/sheets/editable-sheet.vue.js +181 -0
  25. package/esm/components/sheets/editable-sheet.vue.js.map +1 -0
  26. package/esm/components/sheets/index.vue.d.ts +251 -0
  27. package/esm/components/sheets/index.vue.js +77 -0
  28. package/esm/components/sheets/index.vue.js.map +1 -0
  29. package/esm/components/sheets/pivot-sheet.vue.d.ts +322 -0
  30. package/esm/components/sheets/pivot-sheet.vue.js +117 -0
  31. package/esm/components/sheets/pivot-sheet.vue.js.map +1 -0
  32. package/esm/components/sheets/table-sheet.vue.d.ts +250 -0
  33. package/esm/components/sheets/table-sheet.vue.js +61 -0
  34. package/esm/components/sheets/table-sheet.vue.js.map +1 -0
  35. package/esm/components/tooltip/components/detail.vue.d.ts +6 -0
  36. package/esm/components/tooltip/components/detail.vue.js +53 -0
  37. package/esm/components/tooltip/components/detail.vue.js.map +1 -0
  38. package/esm/components/tooltip/components/head-info.vue.d.ts +6 -0
  39. package/esm/components/tooltip/components/head-info.vue.js +61 -0
  40. package/esm/components/tooltip/components/head-info.vue.js.map +1 -0
  41. package/esm/components/tooltip/components/infos.vue.d.ts +6 -0
  42. package/esm/components/tooltip/components/infos.vue.js +49 -0
  43. package/esm/components/tooltip/components/infos.vue.js.map +1 -0
  44. package/esm/components/tooltip/components/operator/index.d.ts +3 -0
  45. package/esm/components/tooltip/components/operator/index.js +4 -0
  46. package/esm/components/tooltip/components/operator/index.js.map +1 -0
  47. package/esm/components/tooltip/components/operator/index.vue.d.ts +14 -0
  48. package/esm/components/tooltip/components/operator/index.vue.js +149 -0
  49. package/esm/components/tooltip/components/operator/index.vue.js.map +1 -0
  50. package/esm/components/tooltip/components/operator/menu.vue.d.ts +21 -0
  51. package/esm/components/tooltip/components/operator/menu.vue.js +146 -0
  52. package/esm/components/tooltip/components/operator/menu.vue.js.map +1 -0
  53. package/esm/components/tooltip/components/operator/title.vue.d.ts +10 -0
  54. package/esm/components/tooltip/components/operator/title.vue.js +54 -0
  55. package/esm/components/tooltip/components/operator/title.vue.js.map +1 -0
  56. package/esm/components/tooltip/components/simple-tips.vue.d.ts +6 -0
  57. package/esm/components/tooltip/components/simple-tips.vue.js +55 -0
  58. package/esm/components/tooltip/components/simple-tips.vue.js.map +1 -0
  59. package/esm/components/tooltip/components/summary.vue.d.ts +11 -0
  60. package/esm/components/tooltip/components/summary.vue.js +71 -0
  61. package/esm/components/tooltip/components/summary.vue.js.map +1 -0
  62. package/esm/components/tooltip/custom-tooltip.d.ts +6 -0
  63. package/esm/components/tooltip/custom-tooltip.js +36 -0
  64. package/esm/components/tooltip/custom-tooltip.js.map +1 -0
  65. package/esm/components/tooltip/index.vue.d.ts +13 -0
  66. package/esm/components/tooltip/index.vue.js +124 -0
  67. package/esm/components/tooltip/index.vue.js.map +1 -0
  68. package/esm/components/tooltip/interface.d.ts +8 -0
  69. package/esm/components/tooltip/interface.js +2 -0
  70. package/esm/components/tooltip/interface.js.map +1 -0
  71. package/esm/hooks/useEvents.d.ts +4 -0
  72. package/esm/hooks/useEvents.js +125 -0
  73. package/esm/hooks/useEvents.js.map +1 -0
  74. package/esm/hooks/useExpose.d.ts +5 -0
  75. package/esm/hooks/useExpose.js +11 -0
  76. package/esm/hooks/useExpose.js.map +1 -0
  77. package/esm/hooks/useLoading.d.ts +6 -0
  78. package/esm/hooks/useLoading.js +18 -0
  79. package/esm/hooks/useLoading.js.map +1 -0
  80. package/esm/hooks/usePagination.d.ts +70 -0
  81. package/esm/hooks/usePagination.js +68 -0
  82. package/esm/hooks/usePagination.js.map +1 -0
  83. package/esm/hooks/useResize.d.ts +7 -0
  84. package/esm/hooks/useResize.js +20 -0
  85. package/esm/hooks/useResize.js.map +1 -0
  86. package/esm/hooks/useSheetUpdate.d.ts +13 -0
  87. package/esm/hooks/useSheetUpdate.js +56 -0
  88. package/esm/hooks/useSheetUpdate.js.map +1 -0
  89. package/esm/hooks/useSpreadSheet.d.ts +75 -0
  90. package/esm/hooks/useSpreadSheet.js +60 -0
  91. package/esm/hooks/useSpreadSheet.js.map +1 -0
  92. package/esm/icons/calendar-icon.vue.d.ts +2 -0
  93. package/esm/icons/calendar-icon.vue.js +39 -0
  94. package/esm/icons/calendar-icon.vue.js.map +1 -0
  95. package/esm/icons/location-icon.vue.d.ts +2 -0
  96. package/esm/icons/location-icon.vue.js +39 -0
  97. package/esm/icons/location-icon.vue.js.map +1 -0
  98. package/esm/icons/text-icon.vue.d.ts +2 -0
  99. package/esm/icons/text-icon.vue.js +39 -0
  100. package/esm/icons/text-icon.vue.js.map +1 -0
  101. package/esm/index.d.ts +4 -6184
  102. package/esm/index.js +5 -3363
  103. package/esm/index.js.map +1 -1
  104. package/esm/interface.d.ts +47 -0
  105. package/esm/interface.js +2 -0
  106. package/esm/interface.js.map +1 -0
  107. package/esm/utils/extendLocale.d.ts +1 -0
  108. package/esm/utils/extendLocale.js +3 -0
  109. package/esm/utils/extendLocale.js.map +1 -0
  110. package/esm/utils/initPropAndEmits.d.ts +204 -0
  111. package/esm/utils/initPropAndEmits.js +158 -0
  112. package/esm/utils/initPropAndEmits.js.map +1 -0
  113. package/esm/utils/options.d.ts +2 -0
  114. package/esm/utils/options.js +4 -0
  115. package/esm/utils/options.js.map +1 -0
  116. package/lib/common/constant/index.d.ts +1 -0
  117. package/lib/common/constant/index.js +5 -0
  118. package/lib/common/constant/index.js.map +1 -0
  119. package/lib/common/constant/options.d.ts +2 -0
  120. package/lib/common/constant/options.js +10 -0
  121. package/lib/common/constant/options.js.map +1 -0
  122. package/lib/components/drill-down/index.vue.d.ts +126 -0
  123. package/lib/components/drill-down/index.vue.js +209 -0
  124. package/lib/components/drill-down/index.vue.js.map +1 -0
  125. package/lib/components/index.d.ts +6 -0
  126. package/lib/components/index.js +20 -0
  127. package/lib/components/index.js.map +1 -0
  128. package/lib/components/pagination/index.vue.d.ts +44 -0
  129. package/lib/components/pagination/index.vue.js +93 -0
  130. package/lib/components/pagination/index.vue.js.map +1 -0
  131. package/lib/components/sheets/base-sheet.vue.d.ts +391 -0
  132. package/lib/components/sheets/base-sheet.vue.js +122 -0
  133. package/lib/components/sheets/base-sheet.vue.js.map +1 -0
  134. package/lib/components/sheets/editable-sheet.vue.d.ts +2 -0
  135. package/lib/components/sheets/editable-sheet.vue.js +184 -0
  136. package/lib/components/sheets/editable-sheet.vue.js.map +1 -0
  137. package/lib/components/sheets/index.vue.d.ts +251 -0
  138. package/lib/components/sheets/index.vue.js +80 -0
  139. package/lib/components/sheets/index.vue.js.map +1 -0
  140. package/lib/components/sheets/pivot-sheet.vue.d.ts +322 -0
  141. package/lib/components/sheets/pivot-sheet.vue.js +120 -0
  142. package/lib/components/sheets/pivot-sheet.vue.js.map +1 -0
  143. package/lib/components/sheets/table-sheet.vue.d.ts +250 -0
  144. package/lib/components/sheets/table-sheet.vue.js +64 -0
  145. package/lib/components/sheets/table-sheet.vue.js.map +1 -0
  146. package/lib/components/tooltip/components/detail.vue.d.ts +6 -0
  147. package/lib/components/tooltip/components/detail.vue.js +55 -0
  148. package/lib/components/tooltip/components/detail.vue.js.map +1 -0
  149. package/lib/components/tooltip/components/head-info.vue.d.ts +6 -0
  150. package/lib/components/tooltip/components/head-info.vue.js +63 -0
  151. package/lib/components/tooltip/components/head-info.vue.js.map +1 -0
  152. package/lib/components/tooltip/components/infos.vue.d.ts +6 -0
  153. package/lib/components/tooltip/components/infos.vue.js +51 -0
  154. package/lib/components/tooltip/components/infos.vue.js.map +1 -0
  155. package/lib/components/tooltip/components/operator/index.d.ts +3 -0
  156. package/lib/components/tooltip/components/operator/index.js +13 -0
  157. package/lib/components/tooltip/components/operator/index.js.map +1 -0
  158. package/lib/components/tooltip/components/operator/index.vue.d.ts +14 -0
  159. package/lib/components/tooltip/components/operator/index.vue.js +152 -0
  160. package/lib/components/tooltip/components/operator/index.vue.js.map +1 -0
  161. package/lib/components/tooltip/components/operator/menu.vue.d.ts +21 -0
  162. package/lib/components/tooltip/components/operator/menu.vue.js +149 -0
  163. package/lib/components/tooltip/components/operator/menu.vue.js.map +1 -0
  164. package/lib/components/tooltip/components/operator/title.vue.d.ts +10 -0
  165. package/lib/components/tooltip/components/operator/title.vue.js +56 -0
  166. package/lib/components/tooltip/components/operator/title.vue.js.map +1 -0
  167. package/lib/components/tooltip/components/simple-tips.vue.d.ts +6 -0
  168. package/lib/components/tooltip/components/simple-tips.vue.js +57 -0
  169. package/lib/components/tooltip/components/simple-tips.vue.js.map +1 -0
  170. package/lib/components/tooltip/components/summary.vue.d.ts +11 -0
  171. package/lib/components/tooltip/components/summary.vue.js +73 -0
  172. package/lib/components/tooltip/components/summary.vue.js.map +1 -0
  173. package/lib/components/tooltip/custom-tooltip.d.ts +6 -0
  174. package/lib/components/tooltip/custom-tooltip.js +41 -0
  175. package/lib/components/tooltip/custom-tooltip.js.map +1 -0
  176. package/lib/components/tooltip/index.vue.d.ts +13 -0
  177. package/lib/components/tooltip/index.vue.js +127 -0
  178. package/lib/components/tooltip/index.vue.js.map +1 -0
  179. package/lib/components/tooltip/interface.d.ts +8 -0
  180. package/lib/components/tooltip/interface.js +3 -0
  181. package/lib/components/tooltip/interface.js.map +1 -0
  182. package/lib/hooks/useEvents.d.ts +4 -0
  183. package/lib/hooks/useEvents.js +129 -0
  184. package/lib/hooks/useEvents.js.map +1 -0
  185. package/lib/hooks/useExpose.d.ts +5 -0
  186. package/lib/hooks/useExpose.js +15 -0
  187. package/lib/hooks/useExpose.js.map +1 -0
  188. package/lib/hooks/useLoading.d.ts +6 -0
  189. package/lib/hooks/useLoading.js +22 -0
  190. package/lib/hooks/useLoading.js.map +1 -0
  191. package/lib/hooks/usePagination.d.ts +70 -0
  192. package/lib/hooks/usePagination.js +72 -0
  193. package/lib/hooks/usePagination.js.map +1 -0
  194. package/lib/hooks/useResize.d.ts +7 -0
  195. package/lib/hooks/useResize.js +24 -0
  196. package/lib/hooks/useResize.js.map +1 -0
  197. package/lib/hooks/useSheetUpdate.d.ts +13 -0
  198. package/lib/hooks/useSheetUpdate.js +60 -0
  199. package/lib/hooks/useSheetUpdate.js.map +1 -0
  200. package/lib/hooks/useSpreadSheet.d.ts +75 -0
  201. package/lib/hooks/useSpreadSheet.js +64 -0
  202. package/lib/hooks/useSpreadSheet.js.map +1 -0
  203. package/lib/icons/calendar-icon.vue.d.ts +2 -0
  204. package/lib/icons/calendar-icon.vue.js +41 -0
  205. package/lib/icons/calendar-icon.vue.js.map +1 -0
  206. package/lib/icons/location-icon.vue.d.ts +2 -0
  207. package/lib/icons/location-icon.vue.js +41 -0
  208. package/lib/icons/location-icon.vue.js.map +1 -0
  209. package/lib/icons/text-icon.vue.d.ts +2 -0
  210. package/lib/icons/text-icon.vue.js +41 -0
  211. package/lib/icons/text-icon.vue.js.map +1 -0
  212. package/lib/index.d.ts +4 -0
  213. package/lib/index.js +8 -3362
  214. package/lib/index.js.map +1 -1
  215. package/lib/interface.d.ts +47 -0
  216. package/lib/interface.js +3 -0
  217. package/lib/interface.js.map +1 -0
  218. package/lib/utils/extendLocale.d.ts +1 -0
  219. package/lib/utils/extendLocale.js +5 -0
  220. package/lib/utils/extendLocale.js.map +1 -0
  221. package/lib/utils/initPropAndEmits.d.ts +204 -0
  222. package/lib/utils/initPropAndEmits.js +165 -0
  223. package/lib/utils/initPropAndEmits.js.map +1 -0
  224. package/lib/utils/options.d.ts +2 -0
  225. package/lib/utils/options.js +8 -0
  226. package/lib/utils/options.js.map +1 -0
  227. package/package.json +53 -49
  228. package/dist/index.min.js +0 -2
  229. package/dist/index.min.js.map +0 -1
  230. package/dist/style.min.css +0 -1
  231. package/esm/style.css +0 -393
  232. package/lib/style.css +0 -393
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSheetUpdate = void 0;
4
+ const vue_1 = require("vue");
5
+ /**
6
+ * props 会将所有属性用 shallowReactive 包裹起来:
7
+ * 1. 如果是对 dataCfg 或者 options 直接替换, 那么只需要简单的通过 ()=> props.dataCfg 这种 getter 就能监听到
8
+ * 2. 如果 dataCfg 任然是 reactive 数据,那么就存在直接修改了其中某一个属性的情况,这个时候就需要对所有的属性遍历来关联 watch 属性
9
+ * ? 如果数量特别多时,遍历可能存在性能问题,先暂时观察一下
10
+ */
11
+ const useSheetUpdate = (s2Ref, props, hooks) => {
12
+ const updateFlag = (0, vue_1.reactive)({
13
+ rerender: false,
14
+ reloadData: false,
15
+ rebuildDataset: false,
16
+ });
17
+ (0, vue_1.watch)(() => props.options, (options, prevOptions) => {
18
+ updateFlag.rerender = true;
19
+ if (!Object.is(prevOptions?.hierarchyType, options?.hierarchyType)) {
20
+ updateFlag.reloadData = true;
21
+ updateFlag.rebuildDataset = true;
22
+ }
23
+ s2Ref.value?.setOptions(options);
24
+ s2Ref.value?.changeSheetSize(options?.width, options?.height);
25
+ }, { deep: (0, vue_1.isProxy)(props.options) });
26
+ (0, vue_1.watch)(() => props.dataCfg, (dataCfg, prevDataCfg) => {
27
+ if (prevDataCfg?.fields?.columns?.length !==
28
+ dataCfg?.fields?.columns?.length) {
29
+ s2Ref.value?.facet?.clearInitColLeafNodes();
30
+ }
31
+ updateFlag.rerender = true;
32
+ updateFlag.reloadData = true;
33
+ s2Ref.value?.setDataCfg(dataCfg);
34
+ }, { deep: (0, vue_1.isProxy)(props.dataCfg) });
35
+ (0, vue_1.watch)(() => props.themeCfg, (themeCfg) => {
36
+ updateFlag.rerender = true;
37
+ s2Ref.value?.setThemeCfg(themeCfg);
38
+ }, {
39
+ deep: (0, vue_1.isProxy)(props.themeCfg),
40
+ });
41
+ (0, vue_1.watch)(updateFlag, async (flag) => {
42
+ if (!flag.rerender) {
43
+ return;
44
+ }
45
+ hooks?.before?.();
46
+ const defaultRenderOptions = {
47
+ reloadData: flag.reloadData,
48
+ rebuildDataSet: flag.rebuildDataset,
49
+ };
50
+ const renderOptions = props?.onUpdate?.(defaultRenderOptions) || defaultRenderOptions;
51
+ await s2Ref.value?.render(renderOptions);
52
+ props?.onUpdateAfterRender?.(renderOptions);
53
+ hooks?.after?.();
54
+ flag.rerender = false;
55
+ flag.reloadData = false;
56
+ flag.rebuildDataset = false;
57
+ });
58
+ };
59
+ exports.useSheetUpdate = useSheetUpdate;
60
+ //# sourceMappingURL=useSheetUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSheetUpdate.js","sourceRoot":"","sources":["../../src/hooks/useSheetUpdate.ts"],"names":[],"mappings":";;;AACA,6BAAgE;AAGhE;;;;;GAKG;AACI,MAAM,cAAc,GAAG,CAC5B,KAA0C,EAC1C,KAAqB,EACrB,KAAkD,EAClD,EAAE;IACF,MAAM,UAAU,GAAG,IAAA,cAAQ,EAAC;QAC1B,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,KA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S,EACrB,CAAC,QAAQ,EAAE,EAAE;QACX,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC3B,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,EACD;QACE,IAAI,EAAE,IAAA,aAAO,EAAC,KAAK,CAAC,QAAQ,CAAC;KAC9B,CACF,CAAC;IAEF,IAAA,WAAK,EAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAC/B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;QAElB,MAAM,oBAAoB,GAAG;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;SACpC,CAAC;QACF,MAAM,aAAa,GACjB,KAAK,EAAE,QAAQ,EAAE,CAAC,oBAAoB,CAAC,IAAI,oBAAoB,CAAC;QAElE,MAAM,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;QAEzC,KAAK,EAAE,mBAAmB,EAAE,CAAC,aAAa,CAAC,CAAC;QAE5C,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA9EW,QAAA,cAAc,kBA8EzB"}
@@ -0,0 +1,75 @@
1
+ import { type SpreadSheet } from '@antv/s2';
2
+ import type { BaseSheetInitEmits, EmitFn } from '../interface';
3
+ import type { BaseSheetProps } from '../utils/initPropAndEmits';
4
+ export declare function useSpreadSheet(props: BaseSheetProps, emit: EmitFn<BaseSheetInitEmits>): {
5
+ wrapperRef: import("vue").Ref<HTMLDivElement>;
6
+ containerRef: import("vue").Ref<HTMLDivElement>;
7
+ s2Ref: import("vue").ShallowRef<SpreadSheet>;
8
+ loading: import("vue").Ref<boolean>;
9
+ setLoading: (updated: boolean) => void;
10
+ pagination: {
11
+ customOptions: import("lodash").Omit<import("@antv/s2").Pagination & Partial<import("vue").ExtractPropTypes<{
12
+ total: NumberConstructor;
13
+ defaultCurrent: NumberConstructor;
14
+ disabled: {
15
+ type: BooleanConstructor;
16
+ default: any;
17
+ };
18
+ current: NumberConstructor;
19
+ defaultPageSize: NumberConstructor;
20
+ pageSize: NumberConstructor;
21
+ hideOnSinglePage: {
22
+ type: BooleanConstructor;
23
+ default: any;
24
+ };
25
+ showSizeChanger: {
26
+ type: BooleanConstructor;
27
+ default: any;
28
+ };
29
+ pageSizeOptions: import("vue").PropType<(string | number)[]>;
30
+ buildOptionText: import("vue").PropType<(opt: {
31
+ value: any;
32
+ }) => any>;
33
+ showQuickJumper: {
34
+ type: import("vue").PropType<boolean | {
35
+ goButton?: any;
36
+ }>;
37
+ default: boolean | {
38
+ goButton?: any;
39
+ };
40
+ };
41
+ showTotal: import("vue").PropType<(total: number, range: [number, number]) => any>;
42
+ size: import("vue").PropType<"small" | "default">;
43
+ simple: {
44
+ type: BooleanConstructor;
45
+ default: any;
46
+ };
47
+ locale: ObjectConstructor;
48
+ prefixCls: StringConstructor;
49
+ selectPrefixCls: StringConstructor;
50
+ totalBoundaryShowSizeChanger: NumberConstructor;
51
+ selectComponentClass: StringConstructor;
52
+ itemRender: import("vue").PropType<(opt: {
53
+ page: number;
54
+ type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
55
+ originalElement: any;
56
+ }) => any>;
57
+ role: StringConstructor;
58
+ responsive: BooleanConstructor;
59
+ showLessItems: {
60
+ type: BooleanConstructor;
61
+ default: any;
62
+ };
63
+ onChange: import("vue").PropType<(page: number, pageSize: number) => void>;
64
+ onShowSizeChange: import("vue").PropType<(current: number, size: number) => void>;
65
+ 'onUpdate:current': import("vue").PropType<(current: number) => void>;
66
+ 'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
67
+ }>>, "total" | "current" | "pageSize">;
68
+ visible: import("vue").ComputedRef<boolean>;
69
+ current: import("vue").Ref<number>;
70
+ pageSize: import("vue").Ref<number>;
71
+ total: import("vue").Ref<number>;
72
+ change: (nextCurrent: number) => void;
73
+ showSizeChange: (nextPageSize: number) => void;
74
+ };
75
+ };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSpreadSheet = void 0;
4
+ const s2_1 = require("@antv/s2");
5
+ const vue_1 = require("vue");
6
+ const options_1 = require("../utils/options");
7
+ const useEvents_1 = require("./useEvents");
8
+ const useLoading_1 = require("./useLoading");
9
+ const usePagination_1 = require("./usePagination");
10
+ const useResize_1 = require("./useResize");
11
+ const useSheetUpdate_1 = require("./useSheetUpdate");
12
+ function useSpreadSheet(props, emit) {
13
+ const { dataCfg, options, themeCfg, loading: loadingProps, sheetType, spreadsheet: customSpreadSheet, onMounted: onS2Mounted, } = props;
14
+ const wrapperRef = (0, vue_1.ref)();
15
+ const containerRef = (0, vue_1.ref)();
16
+ const s2Ref = (0, vue_1.shallowRef)();
17
+ const { loading, setLoading } = (0, useLoading_1.useLoading)(s2Ref, loadingProps);
18
+ const pagination = (0, usePagination_1.usePagination)(s2Ref, props);
19
+ const renderSpreadSheet = (container) => {
20
+ const rawDataCfg = (0, vue_1.toRaw)(dataCfg);
21
+ const rawOptions = (0, vue_1.toRaw)(options);
22
+ const s2Options = (0, options_1.getSheetComponentOptions)(rawOptions);
23
+ if (customSpreadSheet) {
24
+ return customSpreadSheet(container, rawDataCfg, s2Options);
25
+ }
26
+ if (sheetType === 'table' || sheetType === 'editable') {
27
+ return new s2_1.TableSheet(container, rawDataCfg, s2Options);
28
+ }
29
+ return new s2_1.PivotSheet(container, rawDataCfg, s2Options);
30
+ };
31
+ const buildSpreadSheet = async () => {
32
+ setLoading(true);
33
+ s2Ref.value = renderSpreadSheet(containerRef.value);
34
+ s2Ref.value.setThemeCfg((0, vue_1.toRaw)(themeCfg));
35
+ await s2Ref.value.render();
36
+ setLoading(false);
37
+ onS2Mounted?.(s2Ref.value);
38
+ };
39
+ (0, vue_1.onMounted)(buildSpreadSheet);
40
+ (0, useEvents_1.useEvents)(s2Ref, emit);
41
+ (0, useSheetUpdate_1.useSheetUpdate)(s2Ref, props, {
42
+ before() {
43
+ setLoading(true);
44
+ },
45
+ after() {
46
+ setLoading(false);
47
+ },
48
+ });
49
+ (0, useResize_1.useResize)(s2Ref, props, { wrapperRef, containerRef });
50
+ (0, vue_1.onBeforeUnmount)(() => {
51
+ setLoading(false);
52
+ s2Ref.value?.destroy();
53
+ });
54
+ return {
55
+ wrapperRef,
56
+ containerRef,
57
+ s2Ref,
58
+ loading,
59
+ setLoading,
60
+ pagination,
61
+ };
62
+ }
63
+ exports.useSpreadSheet = useSpreadSheet;
64
+ //# sourceMappingURL=useSpreadSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSpreadSheet.js","sourceRoot":"","sources":["../../src/hooks/useSpreadSheet.ts"],"names":[],"mappings":";;;AAAA,iCAKkB;AAClB,6BAAyE;AAGzE,8CAA4D;AAC5D,2CAAwC;AACxC,6CAA0C;AAC1C,mDAAgD;AAChD,2CAAwC;AACxC,qDAAkD;AAElD,SAAgB,cAAc,CAC5B,KAAqB,EACrB,IAAgC;IAEhC,MAAM,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EAAE,YAAY,EACrB,SAAS,EACT,WAAW,EAAE,iBAAiB,EAC9B,SAAS,EAAE,WAAW,GACvB,GAAG,KAAK,CAAC;IACV,MAAM,UAAU,GAAG,IAAA,SAAG,GAAkB,CAAC;IACzC,MAAM,YAAY,GAAG,IAAA,SAAG,GAAkB,CAAC;IAE3C,MAAM,KAAK,GAAG,IAAA,gBAAU,GAAe,CAAC;IAExC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAA,uBAAU,EAAC,KA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,EAAE,KAAK,EAAE;QAC3B,MAAM;YACJ,UAAU,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;QACD,KAAK;YACH,UAAU,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;KACF,CAAC,CAAC;IACH,IAAA,qBAAS,EAAC,KAAK,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;IAEtD,IAAA,qBAAe,EAAC,GAAG,EAAE;QACnB,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,UAAU;QACV,YAAY;QACZ,KAAK;QACL,OAAO;QACP,UAAU;QACV,UAAU;KACX,CAAC;AACJ,CAAC;AAzED,wCAyEC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /// <reference types="../../node_modules/.vue-global-types/vue_3.4_false.d.ts" />
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const vue_1 = require("vue");
5
+ exports.default = (0, vue_1.defineComponent)({
6
+ name: 'CalendarIcon',
7
+ });
8
+ ; /* PartiallyEnd: #3632/script.vue */
9
+ function __VLS_template() {
10
+ const __VLS_ctx = {};
11
+ const __VLS_localComponents = {
12
+ ...{},
13
+ ...{},
14
+ ...__VLS_ctx,
15
+ };
16
+ let __VLS_components;
17
+ const __VLS_localDirectives = {
18
+ ...{},
19
+ ...__VLS_ctx,
20
+ };
21
+ let __VLS_directives;
22
+ let __VLS_styleScopedClasses;
23
+ let __VLS_resolvedLocalAndGlobalComponents;
24
+ __VLS_elementAsFunction(__VLS_intrinsicElements["svg"], __VLS_intrinsicElements["svg"])({ ...{ class: ("antv-s2-icon") }, viewBox: ("0 0 1024 1024"), version: ("1.1"), xmlns: ("http://www.w3.org/2000/svg"), width: ("12.6"), height: ("12.6"), });
25
+ __VLS_elementAsFunction(__VLS_intrinsicElements["path"], __VLS_intrinsicElements["path"])({ d: ("M950.016 898.016l-206.016-204.992Q832 586.016 832 448.032q0-159.008-112.512-271.488T448 64.032 176.512 176.544 64 448.032t112.512 271.488T448 832.032q138.016 0 244.992-88l206.016 206.016q10.016 10.016 24.992 10.016t26.016-10.016q10.016-11.008 10.016-26.016t-10.016-26.016zM568.992 736Q512 760 448 760T327.008 736q-56-24-99.488-67.488t-66.496-99.488q-24.992-56.992-24.992-120.992t24.992-120.992q23.008-56 66.496-99.488t99.488-67.488Q384 136.064 448 136.064t120.992 24q56 24 99.488 67.488t67.488 99.488q24 56.992 24 120.992t-24 120.992q-24 56-67.488 99.488T568.992 736z"), fill: ("currentColor"), });
26
+ __VLS_styleScopedClasses['antv-s2-icon'];
27
+ var __VLS_slots;
28
+ var __VLS_inheritedAttrs;
29
+ const __VLS_refs = {};
30
+ var $refs;
31
+ var $el;
32
+ return {
33
+ attrs: {},
34
+ slots: __VLS_slots,
35
+ refs: $refs,
36
+ rootEl: $el,
37
+ };
38
+ }
39
+ ;
40
+ let __VLS_self;
41
+ //# sourceMappingURL=calendar-icon.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-icon.vue.js","sourceRoot":"","sources":["../../src/icons/calendar-icon.vue"],"names":[],"mappings":";AAsBA,iFAAiF;;AAEjF,6BAAsC;AAEtC,kBAAe,IAAA,qBAAe,EAAC;IAC7B,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AACH,CAAC,CAAA,oCAAoC;AACrC,SAAS,cAAc;IACvB,MAAM,SAAS,GAAG,EAAqE,CAAC;IACxF,MAAM,qBAAqB,GAAG;QAC9B,GAAG,EAKA;QACH,GAAG,EAA6E;QAChF,GAAG,SAAS;KACX,CAAC;IACF,IAAI,gBAAwE,CAAC;IAC7E,MAAM,qBAAqB,GAAG;QAC9B,GAAG,EAA6E;QAChF,GAAG,SAAS;KACX,CAAC;IACF,IAAI,gBAAwE,CAAC;IAC7E,IAAI,wBAA6B,CAAC;IAElC,IAAI,sCAAqD,CAAC;IAC1D,uBAAuB,CAAC,uBAAuB,CAAC,KAAK,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,GAAG,EAAE,KAAK,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,4BAA4B,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpP,uBAAuB,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAC,CAAC,EAAE,CAAC,yjBAAyjB,CAAC,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;IACtrB,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAEzC,IAAI,WACH,CAAC;IACF,IAAI,oBAAyB,CAAC;IAC9B,MAAM,UAAU,GAAG,EAClB,CAAC;IACF,IAAI,KAAyB,CAAC;IAC9B,IAAI,GAAwC,CAAC;IAC7C,OAAO;QACN,KAAK,EAAE,EAA0C;QACjD,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,GAAG;KACX,CAAC;AACF,CAAC;AAAA,CAAC;AACF,IAAI,UAAyD,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /// <reference types="../../node_modules/.vue-global-types/vue_3.4_false.d.ts" />
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const vue_1 = require("vue");
5
+ exports.default = (0, vue_1.defineComponent)({
6
+ name: 'LocationIcon',
7
+ });
8
+ ; /* PartiallyEnd: #3632/script.vue */
9
+ function __VLS_template() {
10
+ const __VLS_ctx = {};
11
+ const __VLS_localComponents = {
12
+ ...{},
13
+ ...{},
14
+ ...__VLS_ctx,
15
+ };
16
+ let __VLS_components;
17
+ const __VLS_localDirectives = {
18
+ ...{},
19
+ ...__VLS_ctx,
20
+ };
21
+ let __VLS_directives;
22
+ let __VLS_styleScopedClasses;
23
+ let __VLS_resolvedLocalAndGlobalComponents;
24
+ __VLS_elementAsFunction(__VLS_intrinsicElements["svg"], __VLS_intrinsicElements["svg"])({ ...{ class: ("antv-s2-icon") }, viewBox: ("0 0 1024 1024"), version: ("1.1"), xmlns: ("http://www.w3.org/2000/svg"), width: ("12.6"), height: ("12.6"), });
25
+ __VLS_elementAsFunction(__VLS_intrinsicElements["path"], __VLS_intrinsicElements["path"])({ d: ("M511.804 222.338c-57.117 0-105.737 20.061-145.86 60.184-40.122 40.123-60.184 88.569-60.184 145.337 0 56.769 20.062 105.214 60.185 145.337 40.122 40.123 88.742 60.185 145.859 60.185 57.116 0 105.736-20.062 145.859-60.185 40.123-40.123 60.184-88.568 60.184-145.337 0-56.768-20.061-105.214-60.184-145.337-40.123-40.123-88.743-60.184-145.86-60.184z m0 338.619c-36.729 0-68.007-12.925-93.835-38.774-25.827-25.85-38.752-57.127-38.773-93.834-0.022-36.707 12.902-68.16 38.773-94.357 25.872-26.197 57.15-39.285 93.835-39.263 36.685 0.022 67.963 13.11 93.834 39.263 25.871 26.154 38.796 57.606 38.774 94.357-0.022 36.75-12.946 68.028-38.774 93.834-25.828 25.806-57.106 38.73-93.834 38.774z m366.165-295.766c-21.084-42.168-50.327-79.223-87.73-111.165-37.404-31.941-79.898-57.105-127.484-75.491C614.472 60.845 564.155 52 511.804 52c-52.352 0-103.006 8.845-151.963 26.535-46.911 18.364-89.069 43.528-126.472 75.491-37.403 31.964-66.647 69.019-87.731 111.165C123.879 308.71 113 353.923 113 400.835c0 65.95 15.982 132.924 47.945 200.92 26.524 56.441 63.58 112.198 111.165 167.27 62.556 73.435 134.632 138.71 216.227 195.827 6.81 4.765 14.459 7.148 22.945 7.148 8.485 0 16.47-2.383 23.956-7.148 81.595-57.79 153.67-123.067 216.227-195.828 47.608-55.767 84.663-111.524 111.165-167.27 31.963-67.995 47.945-134.969 47.945-200.919 0-46.912-10.88-92.126-32.638-135.644h0.032z m-40.797 136.656c0 55.07-13.6 111.513-40.798 169.326-23.129 49.631-56.452 99.948-99.97 150.95-52.351 61.208-113.885 117.65-184.6 169.326-70.716-51.676-132.25-108.118-184.6-169.326-42.844-51.002-76.167-101.319-99.971-150.95-27.198-57.791-40.797-114.57-40.797-170.338 0-36.032 8.159-70.716 24.478-104.05 16.994-32.638 40.45-61.882 70.368-87.73 30.592-26.525 65.276-47.26 104.05-62.209 40.797-14.97 82.954-22.455 126.472-22.455 43.517 0 85.675 7.485 126.472 22.455 38.752 14.97 73.436 35.706 104.05 62.208 30.593 25.85 54.048 55.093 70.367 87.731 16.32 34.009 24.479 69.03 24.479 105.062z"), fill: ("currentColor"), });
26
+ __VLS_styleScopedClasses['antv-s2-icon'];
27
+ var __VLS_slots;
28
+ var __VLS_inheritedAttrs;
29
+ const __VLS_refs = {};
30
+ var $refs;
31
+ var $el;
32
+ return {
33
+ attrs: {},
34
+ slots: __VLS_slots,
35
+ refs: $refs,
36
+ rootEl: $el,
37
+ };
38
+ }
39
+ ;
40
+ let __VLS_self;
41
+ //# sourceMappingURL=location-icon.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-icon.vue.js","sourceRoot":"","sources":["../../src/icons/location-icon.vue"],"names":[],"mappings":";AAsBA,iFAAiF;;AAEjF,6BAAsC;AAEtC,kBAAe,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AAG;KACX,CAAC;AACF,CAAC;AAAA,CAAC;AACF,IAAI,UAAyD,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /// <reference types="../../node_modules/.vue-global-types/vue_3.4_false.d.ts" />
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const vue_1 = require("vue");
5
+ exports.default = (0, vue_1.defineComponent)({
6
+ name: 'TextIcon',
7
+ });
8
+ ; /* PartiallyEnd: #3632/script.vue */
9
+ function __VLS_template() {
10
+ const __VLS_ctx = {};
11
+ const __VLS_localComponents = {
12
+ ...{},
13
+ ...{},
14
+ ...__VLS_ctx,
15
+ };
16
+ let __VLS_components;
17
+ const __VLS_localDirectives = {
18
+ ...{},
19
+ ...__VLS_ctx,
20
+ };
21
+ let __VLS_directives;
22
+ let __VLS_styleScopedClasses;
23
+ let __VLS_resolvedLocalAndGlobalComponents;
24
+ __VLS_elementAsFunction(__VLS_intrinsicElements["svg"], __VLS_intrinsicElements["svg"])({ ...{ class: ("antv-s2-icon") }, viewBox: ("0 0 1024 1024"), version: ("1.1"), xmlns: ("http://www.w3.org/2000/svg"), width: ("12.6"), height: ("12.6"), });
25
+ __VLS_elementAsFunction(__VLS_intrinsicElements["path"], __VLS_intrinsicElements["path"])({ d: ("M86.016 805.888H0L143.872 275.968h79.36l144.896 529.92H276.992l-29.696-109.056H115.2s-29.696 109.056-29.184 109.056zM225.28 613.376L181.248 455.68 138.24 613.376h87.04zM519.168 430.08c24.576-16.384 47.616-25.088 69.12-25.088 30.72 0 58.368 14.848 81.92 44.032 24.064 29.184 35.328 72.192 35.328 128.512 0 44.032-7.168 83.456-22.528 118.272-14.848 34.816-35.328 62.976-60.416 83.456-26.112 20.992-57.856 31.232-95.232 31.232-15.36-0.512-31.232-1.536-46.592-3.584-4.096-0.512-8.704-1.024-12.8-1.536h-66.56V256h81.92v206.336c11.264-12.8 23.04-23.552 35.84-32.256z m-35.328 157.184v135.168c13.824 3.072 26.112 4.608 37.376 4.608 27.648 0 50.176-11.776 69.12-36.352 19.456-25.088 28.672-59.392 28.672-104.96 0-32.256-5.12-55.296-14.848-70.144-9.216-13.824-18.432-19.968-28.672-19.968-12.288 0-27.136 7.68-44.544 24.064-16.896 16.896-32.768 39.424-47.104 67.584zM1013.76 794.624c-36.864 14.336-71.68 20.992-104.96 20.992-32.768 0.512-64.512-9.216-91.648-27.136-27.136-18.432-48.64-44.032-62.464-73.728-14.848-30.72-22.528-65.536-22.528-104.448 0-58.88 16.896-108.032 51.2-146.944 33.792-38.912 75.264-58.88 123.392-58.88 34.304 0 70.144 7.168 108.032 21.504l10.24 4.096v95.232l-20.992-10.752c-34.816-17.92-65.536-26.624-92.16-26.624-16.896 0-32.768 4.608-47.104 13.824-13.824 8.704-25.088 23.04-32.768 42.496-8.192 19.968-12.288 41.472-12.288 63.488 0 28.672 7.68 55.808 24.064 82.432 14.848 24.576 37.888 36.352 71.168 36.352 10.752 0 21.504-1.024 31.744-2.56 9.728-1.536 29.696-8.192 58.88-18.944l19.456-7.68v92.672l-11.264 4.608z"), fill: ("currentColor"), });
26
+ __VLS_styleScopedClasses['antv-s2-icon'];
27
+ var __VLS_slots;
28
+ var __VLS_inheritedAttrs;
29
+ const __VLS_refs = {};
30
+ var $refs;
31
+ var $el;
32
+ return {
33
+ attrs: {},
34
+ slots: __VLS_slots,
35
+ refs: $refs,
36
+ rootEl: $el,
37
+ };
38
+ }
39
+ ;
40
+ let __VLS_self;
41
+ //# sourceMappingURL=text-icon.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-icon.vue.js","sourceRoot":"","sources":["../../src/icons/text-icon.vue"],"names":[],"mappings":";AAsBA,iFAAiF;;AAEjF,6BAAsC;AAEtC,k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AAE,GAAG;KACX,CAAC;AACF,CAAC;AAAA,CAAC;AACF,IAAI,UAAqD,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './utils/extendLocale';
2
+ export * from './components';
3
+ export * from './hooks/useExpose';
4
+ export declare const version = "@antv/s2-vue-v2.0.1";