@antv/s2-vue 2.0.0-next.9 → 2.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/LICENSE +21 -0
- package/README.md +7 -8
- package/dist/s2-vue.min.css +1 -0
- package/dist/s2-vue.min.js +28 -0
- package/dist/s2-vue.min.js.map +1 -0
- package/esm/common/constant/index.d.ts +1 -0
- package/esm/common/constant/index.js +2 -0
- package/esm/common/constant/index.js.map +1 -0
- package/esm/common/constant/options.d.ts +2 -0
- package/esm/common/constant/options.js +7 -0
- package/esm/common/constant/options.js.map +1 -0
- package/esm/components/drill-down/index.vue.d.ts +126 -0
- package/esm/components/drill-down/index.vue.js +206 -0
- package/esm/components/drill-down/index.vue.js.map +1 -0
- package/esm/components/index.d.ts +6 -0
- package/esm/components/index.js +8 -0
- package/esm/components/index.js.map +1 -0
- package/esm/components/pagination/index.vue.d.ts +44 -0
- package/esm/components/pagination/index.vue.js +91 -0
- package/esm/components/pagination/index.vue.js.map +1 -0
- package/esm/components/sheets/base-sheet.vue.d.ts +391 -0
- package/esm/components/sheets/base-sheet.vue.js +119 -0
- package/esm/components/sheets/base-sheet.vue.js.map +1 -0
- package/esm/components/sheets/editable-sheet.vue.d.ts +2 -0
- package/esm/components/sheets/editable-sheet.vue.js +181 -0
- package/esm/components/sheets/editable-sheet.vue.js.map +1 -0
- package/esm/components/sheets/index.vue.d.ts +251 -0
- package/esm/components/sheets/index.vue.js +77 -0
- package/esm/components/sheets/index.vue.js.map +1 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts +322 -0
- package/esm/components/sheets/pivot-sheet.vue.js +117 -0
- package/esm/components/sheets/pivot-sheet.vue.js.map +1 -0
- package/esm/components/sheets/table-sheet.vue.d.ts +250 -0
- package/esm/components/sheets/table-sheet.vue.js +61 -0
- package/esm/components/sheets/table-sheet.vue.js.map +1 -0
- package/esm/components/tooltip/components/detail.vue.d.ts +6 -0
- package/esm/components/tooltip/components/detail.vue.js +53 -0
- package/esm/components/tooltip/components/detail.vue.js.map +1 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts +6 -0
- package/esm/components/tooltip/components/head-info.vue.js +61 -0
- package/esm/components/tooltip/components/head-info.vue.js.map +1 -0
- package/esm/components/tooltip/components/infos.vue.d.ts +6 -0
- package/esm/components/tooltip/components/infos.vue.js +49 -0
- package/esm/components/tooltip/components/infos.vue.js.map +1 -0
- package/esm/components/tooltip/components/operator/index.d.ts +3 -0
- package/esm/components/tooltip/components/operator/index.js +4 -0
- package/esm/components/tooltip/components/operator/index.js.map +1 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts +14 -0
- package/esm/components/tooltip/components/operator/index.vue.js +149 -0
- package/esm/components/tooltip/components/operator/index.vue.js.map +1 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts +21 -0
- package/esm/components/tooltip/components/operator/menu.vue.js +146 -0
- package/esm/components/tooltip/components/operator/menu.vue.js.map +1 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts +10 -0
- package/esm/components/tooltip/components/operator/title.vue.js +54 -0
- package/esm/components/tooltip/components/operator/title.vue.js.map +1 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts +6 -0
- package/esm/components/tooltip/components/simple-tips.vue.js +55 -0
- package/esm/components/tooltip/components/simple-tips.vue.js.map +1 -0
- package/esm/components/tooltip/components/summary.vue.d.ts +11 -0
- package/esm/components/tooltip/components/summary.vue.js +71 -0
- package/esm/components/tooltip/components/summary.vue.js.map +1 -0
- package/esm/components/tooltip/custom-tooltip.d.ts +6 -0
- package/esm/components/tooltip/custom-tooltip.js +36 -0
- package/esm/components/tooltip/custom-tooltip.js.map +1 -0
- package/esm/components/tooltip/index.vue.d.ts +13 -0
- package/esm/components/tooltip/index.vue.js +124 -0
- package/esm/components/tooltip/index.vue.js.map +1 -0
- package/esm/components/tooltip/interface.d.ts +8 -0
- package/esm/components/tooltip/interface.js +2 -0
- package/esm/components/tooltip/interface.js.map +1 -0
- package/esm/hooks/useEvents.d.ts +4 -0
- package/esm/hooks/useEvents.js +125 -0
- package/esm/hooks/useEvents.js.map +1 -0
- package/esm/hooks/useExpose.d.ts +5 -0
- package/esm/hooks/useExpose.js +11 -0
- package/esm/hooks/useExpose.js.map +1 -0
- package/esm/hooks/useLoading.d.ts +6 -0
- package/esm/hooks/useLoading.js +18 -0
- package/esm/hooks/useLoading.js.map +1 -0
- package/esm/hooks/usePagination.d.ts +70 -0
- package/esm/hooks/usePagination.js +68 -0
- package/esm/hooks/usePagination.js.map +1 -0
- package/esm/hooks/useResize.d.ts +7 -0
- package/esm/hooks/useResize.js +20 -0
- package/esm/hooks/useResize.js.map +1 -0
- package/esm/hooks/useSheetUpdate.d.ts +13 -0
- package/esm/hooks/useSheetUpdate.js +56 -0
- package/esm/hooks/useSheetUpdate.js.map +1 -0
- package/esm/hooks/useSpreadSheet.d.ts +75 -0
- package/esm/hooks/useSpreadSheet.js +60 -0
- package/esm/hooks/useSpreadSheet.js.map +1 -0
- package/esm/index.d.ts +4 -6184
- package/esm/index.js +5 -3363
- package/esm/index.js.map +1 -1
- package/esm/interface.d.ts +47 -0
- package/esm/interface.js +2 -0
- package/esm/interface.js.map +1 -0
- package/esm/svg/calendar-icon.svg +13 -0
- package/esm/svg/location-icon.svg +13 -0
- package/esm/svg/text-icon.svg +13 -0
- package/esm/utils/extendLocale.d.ts +1 -0
- package/esm/utils/extendLocale.js +3 -0
- package/esm/utils/extendLocale.js.map +1 -0
- package/esm/utils/initPropAndEmits.d.ts +204 -0
- package/esm/utils/initPropAndEmits.js +158 -0
- package/esm/utils/initPropAndEmits.js.map +1 -0
- package/esm/utils/options.d.ts +2 -0
- package/esm/utils/options.js +4 -0
- package/esm/utils/options.js.map +1 -0
- package/lib/common/constant/index.d.ts +1 -0
- package/lib/common/constant/index.js +5 -0
- package/lib/common/constant/index.js.map +1 -0
- package/lib/common/constant/options.d.ts +2 -0
- package/lib/common/constant/options.js +10 -0
- package/lib/common/constant/options.js.map +1 -0
- package/lib/components/drill-down/index.vue.d.ts +126 -0
- package/lib/components/drill-down/index.vue.js +209 -0
- package/lib/components/drill-down/index.vue.js.map +1 -0
- package/lib/components/index.d.ts +6 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/pagination/index.vue.d.ts +44 -0
- package/lib/components/pagination/index.vue.js +93 -0
- package/lib/components/pagination/index.vue.js.map +1 -0
- package/lib/components/sheets/base-sheet.vue.d.ts +391 -0
- package/lib/components/sheets/base-sheet.vue.js +122 -0
- package/lib/components/sheets/base-sheet.vue.js.map +1 -0
- package/lib/components/sheets/editable-sheet.vue.d.ts +2 -0
- package/lib/components/sheets/editable-sheet.vue.js +184 -0
- package/lib/components/sheets/editable-sheet.vue.js.map +1 -0
- package/lib/components/sheets/index.vue.d.ts +251 -0
- package/lib/components/sheets/index.vue.js +80 -0
- package/lib/components/sheets/index.vue.js.map +1 -0
- package/lib/components/sheets/pivot-sheet.vue.d.ts +322 -0
- package/lib/components/sheets/pivot-sheet.vue.js +120 -0
- package/lib/components/sheets/pivot-sheet.vue.js.map +1 -0
- package/lib/components/sheets/table-sheet.vue.d.ts +250 -0
- package/lib/components/sheets/table-sheet.vue.js +64 -0
- package/lib/components/sheets/table-sheet.vue.js.map +1 -0
- package/lib/components/tooltip/components/detail.vue.d.ts +6 -0
- package/lib/components/tooltip/components/detail.vue.js +55 -0
- package/lib/components/tooltip/components/detail.vue.js.map +1 -0
- package/lib/components/tooltip/components/head-info.vue.d.ts +6 -0
- package/lib/components/tooltip/components/head-info.vue.js +63 -0
- package/lib/components/tooltip/components/head-info.vue.js.map +1 -0
- package/lib/components/tooltip/components/infos.vue.d.ts +6 -0
- package/lib/components/tooltip/components/infos.vue.js +51 -0
- package/lib/components/tooltip/components/infos.vue.js.map +1 -0
- package/lib/components/tooltip/components/operator/index.d.ts +3 -0
- package/lib/components/tooltip/components/operator/index.js +13 -0
- package/lib/components/tooltip/components/operator/index.js.map +1 -0
- package/lib/components/tooltip/components/operator/index.vue.d.ts +14 -0
- package/lib/components/tooltip/components/operator/index.vue.js +152 -0
- package/lib/components/tooltip/components/operator/index.vue.js.map +1 -0
- package/lib/components/tooltip/components/operator/menu.vue.d.ts +21 -0
- package/lib/components/tooltip/components/operator/menu.vue.js +149 -0
- package/lib/components/tooltip/components/operator/menu.vue.js.map +1 -0
- package/lib/components/tooltip/components/operator/title.vue.d.ts +10 -0
- package/lib/components/tooltip/components/operator/title.vue.js +56 -0
- package/lib/components/tooltip/components/operator/title.vue.js.map +1 -0
- package/lib/components/tooltip/components/simple-tips.vue.d.ts +6 -0
- package/lib/components/tooltip/components/simple-tips.vue.js +57 -0
- package/lib/components/tooltip/components/simple-tips.vue.js.map +1 -0
- package/lib/components/tooltip/components/summary.vue.d.ts +11 -0
- package/lib/components/tooltip/components/summary.vue.js +73 -0
- package/lib/components/tooltip/components/summary.vue.js.map +1 -0
- package/lib/components/tooltip/custom-tooltip.d.ts +6 -0
- package/lib/components/tooltip/custom-tooltip.js +41 -0
- package/lib/components/tooltip/custom-tooltip.js.map +1 -0
- package/lib/components/tooltip/index.vue.d.ts +13 -0
- package/lib/components/tooltip/index.vue.js +127 -0
- package/lib/components/tooltip/index.vue.js.map +1 -0
- package/lib/components/tooltip/interface.d.ts +8 -0
- package/lib/components/tooltip/interface.js +3 -0
- package/lib/components/tooltip/interface.js.map +1 -0
- package/lib/hooks/useEvents.d.ts +4 -0
- package/lib/hooks/useEvents.js +129 -0
- package/lib/hooks/useEvents.js.map +1 -0
- package/lib/hooks/useExpose.d.ts +5 -0
- package/lib/hooks/useExpose.js +15 -0
- package/lib/hooks/useExpose.js.map +1 -0
- package/lib/hooks/useLoading.d.ts +6 -0
- package/lib/hooks/useLoading.js +22 -0
- package/lib/hooks/useLoading.js.map +1 -0
- package/lib/hooks/usePagination.d.ts +70 -0
- package/lib/hooks/usePagination.js +72 -0
- package/lib/hooks/usePagination.js.map +1 -0
- package/lib/hooks/useResize.d.ts +7 -0
- package/lib/hooks/useResize.js +24 -0
- package/lib/hooks/useResize.js.map +1 -0
- package/lib/hooks/useSheetUpdate.d.ts +13 -0
- package/lib/hooks/useSheetUpdate.js +60 -0
- package/lib/hooks/useSheetUpdate.js.map +1 -0
- package/lib/hooks/useSpreadSheet.d.ts +75 -0
- package/lib/hooks/useSpreadSheet.js +64 -0
- package/lib/hooks/useSpreadSheet.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +8 -3362
- package/lib/index.js.map +1 -1
- package/lib/interface.d.ts +47 -0
- package/lib/interface.js +3 -0
- package/lib/interface.js.map +1 -0
- package/lib/svg/calendar-icon.svg +13 -0
- package/lib/svg/location-icon.svg +13 -0
- package/lib/svg/text-icon.svg +13 -0
- package/lib/utils/extendLocale.d.ts +1 -0
- package/lib/utils/extendLocale.js +5 -0
- package/lib/utils/extendLocale.js.map +1 -0
- package/lib/utils/initPropAndEmits.d.ts +204 -0
- package/lib/utils/initPropAndEmits.js +165 -0
- package/lib/utils/initPropAndEmits.js.map +1 -0
- package/lib/utils/options.d.ts +2 -0
- package/lib/utils/options.js +8 -0
- package/lib/utils/options.js.map +1 -0
- package/package.json +63 -58
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/dist/style.min.css +0 -1
- package/esm/style.css +0 -393
- package/lib/style.css +0 -393
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BaseDrillDownComponentProps, BaseSheetComponentProps, Pagination, PartDrillDown, S2Options, TooltipContentType } from '@antv/s2';
|
|
2
|
+
import type { UnionToIntersection } from '@vue/shared';
|
|
3
|
+
import type { PaginationProps } from 'ant-design-vue';
|
|
4
|
+
import type { PropType } from 'vue';
|
|
5
|
+
interface PropOption<T = any> {
|
|
6
|
+
type: PropType<T>;
|
|
7
|
+
default?: T;
|
|
8
|
+
}
|
|
9
|
+
interface RequiredPropOption<T = any> {
|
|
10
|
+
type?: PropType<T>;
|
|
11
|
+
required: true;
|
|
12
|
+
}
|
|
13
|
+
export 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<{
|
|
14
|
+
[key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
|
|
15
|
+
}[Event]>;
|
|
16
|
+
type GetOptionalKeys<T> = keyof {
|
|
17
|
+
[K in keyof T as Pick<T, K> extends Required<Pick<T, K>> ? never : K]: K;
|
|
18
|
+
};
|
|
19
|
+
type IsEmitKey<Type> = Exclude<Type, undefined> extends (...args: any) => any ? true : false;
|
|
20
|
+
type TransformEmitKey<T> = T extends `on${infer R}` ? Uncapitalize<R> : T;
|
|
21
|
+
type GetPropKeys<T> = keyof {
|
|
22
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]: K;
|
|
23
|
+
};
|
|
24
|
+
type GetEmitKeys<T> = keyof {
|
|
25
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? TransformEmitKey<K> : never]: K;
|
|
26
|
+
};
|
|
27
|
+
export type GetInitProps<T, OptionalKeys = GetOptionalKeys<T>> = {
|
|
28
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? never : K]-?: K extends OptionalKeys ? PropOption<NonNullable<T[K]>> : RequiredPropOption<NonNullable<T[K]>>;
|
|
29
|
+
};
|
|
30
|
+
type GetInitEmits<T> = {
|
|
31
|
+
[K in keyof T as IsEmitKey<T[K]> extends true ? TransformEmitKey<K> : never]-?: T[K];
|
|
32
|
+
};
|
|
33
|
+
export type SheetComponentOptions = S2Options<TooltipContentType, Pagination & PaginationProps>;
|
|
34
|
+
export type SheetComponentProps = BaseSheetComponentProps<PartDrillDown, SheetComponentOptions> & {
|
|
35
|
+
showPagination?: boolean | {
|
|
36
|
+
onShowSizeChange?: (pageSize: number) => void;
|
|
37
|
+
onChange?: (current: number) => void;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type BaseSheetInitPropKeys = GetPropKeys<BaseSheetComponentProps>;
|
|
41
|
+
export type BaseSheetInitEmitKeys = GetEmitKeys<BaseSheetComponentProps>;
|
|
42
|
+
export type BaseSheetInitProps = GetInitProps<SheetComponentProps>;
|
|
43
|
+
export type BaseSheetInitEmits = GetInitEmits<BaseSheetComponentProps>;
|
|
44
|
+
export type BaseDrillDownProps = GetInitProps<BaseDrillDownComponentProps>;
|
|
45
|
+
export type BaseDrillDownEmitKeys = GetEmitKeys<BaseDrillDownComponentProps>;
|
|
46
|
+
export type BaseDrillDownEmits = GetInitEmits<BaseDrillDownComponentProps>;
|
|
47
|
+
export {};
|
package/esm/interface.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
class="antv-s2-icon"
|
|
3
|
+
viewBox="0 0 1024 1024"
|
|
4
|
+
version="1.1"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="12.6"
|
|
7
|
+
height="12.6"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
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"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
></path>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
class="antv-s2-icon"
|
|
3
|
+
viewBox="0 0 1024 1024"
|
|
4
|
+
version="1.1"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="12.6"
|
|
7
|
+
height="12.6"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
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"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
></path>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
class="antv-s2-icon"
|
|
3
|
+
viewBox="0 0 1024 1024"
|
|
4
|
+
version="1.1"
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="12.6"
|
|
7
|
+
height="12.6"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
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"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
></path>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extendLocale.js","sourceRoot":"","sources":["../../src/utils/extendLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEhD,YAAY,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type { Adaptive, BaseDrillDownDataSet, S2DataConfig, SheetType, ThemeCfg } from '@antv/s2';
|
|
2
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { BaseDrillDownEmits } from '../interface';
|
|
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;
|
|
11
|
+
onChange?: (current: number) => void;
|
|
12
|
+
}>;
|
|
13
|
+
default: boolean | {
|
|
14
|
+
onShowSizeChange?: (pageSize: number) => void;
|
|
15
|
+
onChange?: (current: number) => void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
loading: BooleanConstructor;
|
|
19
|
+
partDrillDown: ObjectConstructor;
|
|
20
|
+
header: ObjectConstructor;
|
|
21
|
+
options: {
|
|
22
|
+
type: PropType<import("../interface").SheetComponentOptions>;
|
|
23
|
+
default: import("../interface").SheetComponentOptions;
|
|
24
|
+
};
|
|
25
|
+
adaptive: {
|
|
26
|
+
type: PropType<Adaptive>;
|
|
27
|
+
default: Adaptive;
|
|
28
|
+
};
|
|
29
|
+
spreadsheet: PropType<(container: import("@antv/s2").S2MountContainer, dataCfg: S2DataConfig, options: import("../interface").SheetComponentOptions) => import("@antv/s2").SpreadSheet>;
|
|
30
|
+
onMounted: PropType<(spreadsheet: import("@antv/s2").SpreadSheet) => void>;
|
|
31
|
+
onUpdate: PropType<(renderOptions: import("@antv/s2").S2RenderOptions) => void | import("@antv/s2").S2RenderOptions>;
|
|
32
|
+
onUpdateAfterRender: PropType<(renderOptions: import("@antv/s2").S2RenderOptions) => void>;
|
|
33
|
+
};
|
|
34
|
+
export declare const initDrillDownProps: () => {
|
|
35
|
+
className: StringConstructor;
|
|
36
|
+
title: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
searchText: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
clearText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
extra: {
|
|
49
|
+
new (): Node;
|
|
50
|
+
prototype: Node;
|
|
51
|
+
readonly ELEMENT_NODE: 1;
|
|
52
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
53
|
+
readonly TEXT_NODE: 3;
|
|
54
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
55
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
56
|
+
readonly ENTITY_NODE: 6;
|
|
57
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
58
|
+
readonly COMMENT_NODE: 8;
|
|
59
|
+
readonly DOCUMENT_NODE: 9;
|
|
60
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
61
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
62
|
+
readonly NOTATION_NODE: 12;
|
|
63
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
64
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
65
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
66
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
67
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
68
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
69
|
+
};
|
|
70
|
+
dataSet: {
|
|
71
|
+
type: PropType<BaseDrillDownDataSet[]>;
|
|
72
|
+
default: any[];
|
|
73
|
+
};
|
|
74
|
+
drillFields: PropType<string[]>;
|
|
75
|
+
disabledFields: PropType<string[]>;
|
|
76
|
+
getDrillFields: PropType<(drillFields: string[]) => void>;
|
|
77
|
+
setDrillFields: PropType<(drillFields: string[]) => void>;
|
|
78
|
+
};
|
|
79
|
+
export declare const initDrillDownEmits: () => BaseDrillDownEmits;
|
|
80
|
+
export type BaseSheetProps = ExtractPropTypes<ReturnType<typeof initBaseSheetProps>>;
|
|
81
|
+
export declare const initBaseSheetEmits: () => {
|
|
82
|
+
spreadsheet: (container: import("@antv/s2").S2MountContainer, dataCfg: S2DataConfig, options: import("@antv/s2").S2Options<import("@antv/s2").TooltipContentType, import("@antv/s2").Pagination, import("@antv/s2").BaseTooltipOperatorMenuOptions>) => import("@antv/s2").SpreadSheet;
|
|
83
|
+
rowCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
84
|
+
rowCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
85
|
+
rowCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
86
|
+
rowCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
87
|
+
rowCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
88
|
+
rowCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
89
|
+
rowCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
90
|
+
rowCellCollapsed: (params: import("@antv/s2").RowCellCollapsedParams) => void;
|
|
91
|
+
rowCellAllCollapsed: (isCollapsed: boolean) => void;
|
|
92
|
+
rowCellScroll: (position: Required<import("@antv/s2").ScrollOffset>) => void;
|
|
93
|
+
rowCellRender: (cell: import("@antv/s2").RowCell) => void;
|
|
94
|
+
rowCellSelected: import("@antv/s2").CellSelectedHandler;
|
|
95
|
+
colCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
96
|
+
colCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
97
|
+
colCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
98
|
+
colCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
99
|
+
colCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
100
|
+
colCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
101
|
+
colCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
102
|
+
colCellExpanded: (node: import("@antv/s2").Node) => void;
|
|
103
|
+
colCellHidden: (data: {
|
|
104
|
+
currentHiddenColumnsInfo: import("@antv/s2").HiddenColumnsInfo;
|
|
105
|
+
hiddenColumnsDetail: import("@antv/s2").HiddenColumnsInfo[];
|
|
106
|
+
}) => void;
|
|
107
|
+
colCellRender: (cell: import("@antv/s2").ColCell) => void;
|
|
108
|
+
colCellSelected: import("@antv/s2").CellSelectedHandler;
|
|
109
|
+
dataCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
110
|
+
dataCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
111
|
+
dataCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
112
|
+
dataCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
113
|
+
dataCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
114
|
+
dataCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
115
|
+
dataCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
116
|
+
dataCellBrushSelection: (brushRangeDataCells: import("@antv/s2").DataCell[]) => void;
|
|
117
|
+
dataCellSelectMove: (metaList: import("@antv/s2").ViewMetaData[]) => void;
|
|
118
|
+
dataCellRender: (cell: import("@antv/s2").DataCell) => void;
|
|
119
|
+
dataCellEditStart: (meta: import("@antv/s2").ViewMeta, cell: import("@antv/s2").TableDataCell) => void;
|
|
120
|
+
dataCellEditEnd: (meta: import("@antv/s2").ViewMeta, cell: import("@antv/s2").TableDataCell) => void;
|
|
121
|
+
dataCellSelected: import("@antv/s2").CellSelectedHandler;
|
|
122
|
+
cornerCellHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
123
|
+
cornerCellClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
124
|
+
cornerCellDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
125
|
+
cornerCellContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
126
|
+
cornerCellMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
127
|
+
cornerCellMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
128
|
+
cornerCellMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
129
|
+
cornerCellRender: (cell: import("@antv/s2").CornerCell) => void;
|
|
130
|
+
cornerCellSelected: import("@antv/s2").CellSelectedHandler;
|
|
131
|
+
mergedCellsHover: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
132
|
+
mergedCellsClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
133
|
+
mergedCellsDoubleClick: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
134
|
+
mergedCellsContextMenu: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
135
|
+
mergedCellsMouseDown: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
136
|
+
mergedCellsMouseUp: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
137
|
+
mergedCellsMouseMove: (data: import("@antv/s2").TargetCellInfo) => void;
|
|
138
|
+
mergedCellsRender: (cell: import("@antv/s2").MergedCell) => void;
|
|
139
|
+
seriesNumberCellRender: (cell: import("@antv/s2").SeriesNumberCell) => void;
|
|
140
|
+
rangeSort: (params: import("@antv/s2").SortParams) => void;
|
|
141
|
+
rangeSorted: (event: import("@antv/s2").GEvent) => void;
|
|
142
|
+
rangeFilter: (data: {
|
|
143
|
+
filterKey: string;
|
|
144
|
+
filteredValues: string[];
|
|
145
|
+
}) => void;
|
|
146
|
+
rangeFiltered: (data: import("@antv/s2").ViewMetaData[]) => void;
|
|
147
|
+
layoutAfterHeaderLayout: (layoutResult: import("@antv/s2").LayoutResult) => void;
|
|
148
|
+
layoutPagination: (data: import("@antv/s2").LayoutPaginationParams) => void;
|
|
149
|
+
layoutCellRender: <T extends import("@antv/s2").S2CellType = import("@antv/s2").S2CellType>(cell: T) => void;
|
|
150
|
+
beforeRender: () => void;
|
|
151
|
+
afterRender: () => void;
|
|
152
|
+
mounted: (spreadsheet: import("@antv/s2").SpreadSheet) => void;
|
|
153
|
+
update: (renderOptions: import("@antv/s2").S2RenderOptions) => void | import("@antv/s2").S2RenderOptions;
|
|
154
|
+
updateAfterRender: (renderOptions: import("@antv/s2").S2RenderOptions) => void;
|
|
155
|
+
loading: (loading: boolean) => void;
|
|
156
|
+
destroy: () => void;
|
|
157
|
+
layoutResize: (params: import("@antv/s2").ResizeParams) => void;
|
|
158
|
+
layoutResizeSeriesWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
159
|
+
layoutResizeRowWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
160
|
+
layoutResizeRowHeight: (params: import("@antv/s2").ResizeParams) => void;
|
|
161
|
+
layoutResizeColWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
162
|
+
layoutResizeColHeight: (params: import("@antv/s2").ResizeParams) => void;
|
|
163
|
+
layoutResizeTreeWidth: (params: import("@antv/s2").ResizeParams) => void;
|
|
164
|
+
layoutResizeMouseDown: (data: {
|
|
165
|
+
event: Partial<MouseEvent>;
|
|
166
|
+
resizeInfo?: import("@antv/s2").ResizeInfo;
|
|
167
|
+
}) => void;
|
|
168
|
+
layoutResizeMouseUp: (data: {
|
|
169
|
+
event: Partial<MouseEvent>;
|
|
170
|
+
resizeInfo?: import("@antv/s2").ResizeInfo;
|
|
171
|
+
}) => void;
|
|
172
|
+
layoutResizeMouseMove: (data: {
|
|
173
|
+
event: Partial<MouseEvent>;
|
|
174
|
+
resizeInfo?: import("@antv/s2").ResizeInfo;
|
|
175
|
+
}) => void;
|
|
176
|
+
keyBoardDown: (event: KeyboardEvent) => void;
|
|
177
|
+
keyBoardUp: (event: KeyboardEvent) => void;
|
|
178
|
+
copied: (data: import("@antv/s2").CopyableList) => void;
|
|
179
|
+
actionIconHover: (event: import("@antv/s2").GEvent) => void;
|
|
180
|
+
actionIconHoverOff: (event: import("@antv/s2").GEvent) => void;
|
|
181
|
+
actionIconClick: (event: import("@antv/s2").GEvent) => void;
|
|
182
|
+
contextMenu: (event: import("@antv/s2").GEvent) => void;
|
|
183
|
+
click: (event: import("@antv/s2").GEvent) => void;
|
|
184
|
+
hover: (event: import("@antv/s2").GEvent) => void;
|
|
185
|
+
doubleClick: (event: import("@antv/s2").GEvent) => void;
|
|
186
|
+
mouseHover: (event: import("@antv/s2").GEvent) => void;
|
|
187
|
+
mouseUp: (event: MouseEvent) => void;
|
|
188
|
+
mouseDown: (event: MouseEvent) => void;
|
|
189
|
+
mouseMove: (event: MouseEvent) => void;
|
|
190
|
+
selected: import("@antv/s2").CellSelectedHandler;
|
|
191
|
+
reset: (event: KeyboardEvent) => void;
|
|
192
|
+
linkFieldJump: (data: {
|
|
193
|
+
field: string;
|
|
194
|
+
record: import("@antv/s2").RawData;
|
|
195
|
+
}) => void;
|
|
196
|
+
scroll: (position: Required<import("@antv/s2").ScrollOffset>) => void;
|
|
197
|
+
layoutAfterRealDataCellRender: (options: {
|
|
198
|
+
add: [number, number][];
|
|
199
|
+
remove: [number, number][];
|
|
200
|
+
spreadsheet: import("@antv/s2").SpreadSheet;
|
|
201
|
+
}) => void;
|
|
202
|
+
rowCellBrushSelection: (event: import("@antv/s2").GEvent) => void;
|
|
203
|
+
colCellBrushSelection: (event: import("@antv/s2").GEvent) => void;
|
|
204
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { i18n } from '@antv/s2';
|
|
2
|
+
export const initBaseSheetProps = () => {
|
|
3
|
+
return {
|
|
4
|
+
sheetType: String,
|
|
5
|
+
dataCfg: Object,
|
|
6
|
+
themeCfg: Object,
|
|
7
|
+
showPagination: {
|
|
8
|
+
type: [Object, Boolean],
|
|
9
|
+
default: false,
|
|
10
|
+
},
|
|
11
|
+
loading: Boolean,
|
|
12
|
+
partDrillDown: Object,
|
|
13
|
+
header: Object,
|
|
14
|
+
options: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: {},
|
|
17
|
+
},
|
|
18
|
+
adaptive: {
|
|
19
|
+
type: [Object, Boolean],
|
|
20
|
+
default: false,
|
|
21
|
+
},
|
|
22
|
+
spreadsheet: Function,
|
|
23
|
+
onMounted: Function,
|
|
24
|
+
onUpdate: Function,
|
|
25
|
+
onUpdateAfterRender: Function,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export const initDrillDownProps = () => {
|
|
29
|
+
return {
|
|
30
|
+
className: String,
|
|
31
|
+
title: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: i18n('选择下钻维度'),
|
|
34
|
+
},
|
|
35
|
+
searchText: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: i18n('搜索字段'),
|
|
38
|
+
},
|
|
39
|
+
clearText: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: i18n('恢复默认'),
|
|
42
|
+
},
|
|
43
|
+
extra: Node,
|
|
44
|
+
dataSet: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default: [],
|
|
47
|
+
},
|
|
48
|
+
drillFields: Array,
|
|
49
|
+
disabledFields: Array,
|
|
50
|
+
getDrillFields: Function,
|
|
51
|
+
setDrillFields: Function,
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export const initDrillDownEmits = () => {
|
|
55
|
+
const keys = ['getDrillFields', 'setDrillFields'];
|
|
56
|
+
return keys;
|
|
57
|
+
};
|
|
58
|
+
export const initBaseSheetEmits = () => {
|
|
59
|
+
/** base sheet all emits */
|
|
60
|
+
const keys = [
|
|
61
|
+
'spreadsheet',
|
|
62
|
+
// ============== Row Cell ====================
|
|
63
|
+
'rowCellHover',
|
|
64
|
+
'rowCellClick',
|
|
65
|
+
'rowCellDoubleClick',
|
|
66
|
+
'rowCellContextMenu',
|
|
67
|
+
'rowCellMouseDown',
|
|
68
|
+
'rowCellMouseUp',
|
|
69
|
+
'rowCellMouseMove',
|
|
70
|
+
'rowCellCollapsed',
|
|
71
|
+
'rowCellAllCollapsed',
|
|
72
|
+
'rowCellScroll',
|
|
73
|
+
// ============== Col Cell ====================
|
|
74
|
+
'colCellHover',
|
|
75
|
+
'colCellClick',
|
|
76
|
+
'colCellDoubleClick',
|
|
77
|
+
'colCellContextMenu',
|
|
78
|
+
'colCellMouseDown',
|
|
79
|
+
'colCellMouseUp',
|
|
80
|
+
'colCellMouseMove',
|
|
81
|
+
'colCellExpanded',
|
|
82
|
+
'colCellHidden',
|
|
83
|
+
// ============== Data Cell ====================
|
|
84
|
+
'dataCellHover',
|
|
85
|
+
'dataCellClick',
|
|
86
|
+
'dataCellDoubleClick',
|
|
87
|
+
'dataCellContextMenu',
|
|
88
|
+
'dataCellMouseDown',
|
|
89
|
+
'dataCellMouseUp',
|
|
90
|
+
'dataCellMouseMove',
|
|
91
|
+
'dataCellBrushSelection',
|
|
92
|
+
'dataCellSelectMove',
|
|
93
|
+
// ============== Corner Cell ====================
|
|
94
|
+
'cornerCellHover',
|
|
95
|
+
'cornerCellClick',
|
|
96
|
+
'cornerCellDoubleClick',
|
|
97
|
+
'cornerCellContextMenu',
|
|
98
|
+
'cornerCellMouseDown',
|
|
99
|
+
'cornerCellMouseUp',
|
|
100
|
+
'cornerCellMouseMove',
|
|
101
|
+
// ============== Merged Cells ====================
|
|
102
|
+
'mergedCellsHover',
|
|
103
|
+
'mergedCellsClick',
|
|
104
|
+
'mergedCellsDoubleClick',
|
|
105
|
+
'mergedCellsContextMenu',
|
|
106
|
+
'mergedCellsMouseDown',
|
|
107
|
+
'mergedCellsMouseUp',
|
|
108
|
+
'mergedCellsMouseMove',
|
|
109
|
+
// ============== Sort ====================
|
|
110
|
+
'rangeSort',
|
|
111
|
+
'rangeSorted',
|
|
112
|
+
// ============== Filter ====================
|
|
113
|
+
'rangeFilter',
|
|
114
|
+
'rangeFiltered',
|
|
115
|
+
// ============== Layout ====================
|
|
116
|
+
'layoutAfterHeaderLayout',
|
|
117
|
+
'layoutPagination',
|
|
118
|
+
'beforeRender',
|
|
119
|
+
'afterRender',
|
|
120
|
+
'mounted',
|
|
121
|
+
'destroy',
|
|
122
|
+
// ============== Resize ====================
|
|
123
|
+
'layoutResize',
|
|
124
|
+
'layoutResizeSeriesWidth',
|
|
125
|
+
'layoutResizeRowWidth',
|
|
126
|
+
'layoutResizeRowHeight',
|
|
127
|
+
'layoutResizeColWidth',
|
|
128
|
+
'layoutResizeColHeight',
|
|
129
|
+
'layoutResizeTreeWidth',
|
|
130
|
+
'layoutResizeMouseDown',
|
|
131
|
+
'layoutResizeMouseUp',
|
|
132
|
+
'layoutResizeMouseMove',
|
|
133
|
+
// ============== Global ====================
|
|
134
|
+
'keyBoardDown',
|
|
135
|
+
'keyBoardUp',
|
|
136
|
+
'copied',
|
|
137
|
+
'actionIconHover',
|
|
138
|
+
'actionIconClick',
|
|
139
|
+
'contextMenu',
|
|
140
|
+
'mouseHover',
|
|
141
|
+
'mouseUp',
|
|
142
|
+
'mouseMove',
|
|
143
|
+
'mouseDown',
|
|
144
|
+
'selected',
|
|
145
|
+
'reset',
|
|
146
|
+
'linkFieldJump',
|
|
147
|
+
'click',
|
|
148
|
+
'doubleClick',
|
|
149
|
+
'scroll',
|
|
150
|
+
'hover',
|
|
151
|
+
// ============== Auto 自动生成的 ================
|
|
152
|
+
'layoutAfterRealDataCellRender',
|
|
153
|
+
'rowCellBrushSelection',
|
|
154
|
+
'colCellBrushSelection',
|
|
155
|
+
];
|
|
156
|
+
return keys;
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=initPropAndEmits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initPropAndEmits.js","sourceRoot":"","sources":["../../src/utils/initPropAndEmits.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { getBaseSheetComponentOptions } from '@antv/s2';
|
|
2
|
+
import { RENDER_TOOLTIP_OPTION } from '../common/constant';
|
|
3
|
+
export const getSheetComponentOptions = (...options) => getBaseSheetComponentOptions(RENDER_TOOLTIP_OPTION, ...options);
|
|
4
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/utils/options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,GAAG,OAA6B,EACrB,EAAE,CAAC,4BAA4B,CAAC,qBAAqB,EAAE,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './options';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/constant/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RENDER_TOOLTIP_OPTION = void 0;
|
|
4
|
+
const custom_tooltip_1 = require("../../components/tooltip/custom-tooltip");
|
|
5
|
+
exports.RENDER_TOOLTIP_OPTION = {
|
|
6
|
+
tooltip: {
|
|
7
|
+
render: (spreadsheet) => new custom_tooltip_1.CustomTooltip(spreadsheet),
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/common/constant/options.ts"],"names":[],"mappings":";;;AACA,4EAAwE;AAE3D,QAAA,qBAAqB,GAAuB;IACvD,OAAO,EAAE;QACP,MAAM,EAAE,CAAC,WAAwB,EAAE,EAAE,CAAC,IAAI,8BAAa,CAAC,WAAW,CAAC;KACrE;CACF,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import { type BaseDrillDownDataSet } from '@antv/s2';
|
|
3
|
+
import type { SelectInfo } from 'ant-design-vue/lib/menu/src/interface';
|
|
4
|
+
import type { Key } from 'ant-design-vue/lib/_util/type';
|
|
5
|
+
import type { ChangeEvent } from 'ant-design-vue/lib/_util/EventInterface';
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
className: StringConstructor;
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
searchText: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
clearText: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
extra: {
|
|
21
|
+
new (): Node;
|
|
22
|
+
prototype: Node;
|
|
23
|
+
readonly ELEMENT_NODE: 1;
|
|
24
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
25
|
+
readonly TEXT_NODE: 3;
|
|
26
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
27
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
28
|
+
readonly ENTITY_NODE: 6;
|
|
29
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
30
|
+
readonly COMMENT_NODE: 8;
|
|
31
|
+
readonly DOCUMENT_NODE: 9;
|
|
32
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
33
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
34
|
+
readonly NOTATION_NODE: 12;
|
|
35
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
36
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
37
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
38
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
39
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
40
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
41
|
+
};
|
|
42
|
+
dataSet: {
|
|
43
|
+
type: import("vue").PropType<BaseDrillDownDataSet[]>;
|
|
44
|
+
default: any[];
|
|
45
|
+
};
|
|
46
|
+
drillFields: import("vue").PropType<string[]>;
|
|
47
|
+
disabledFields: import("vue").PropType<string[]>;
|
|
48
|
+
getDrillFields: import("vue").PropType<(drillFields: string[]) => void>;
|
|
49
|
+
setDrillFields: import("vue").PropType<(drillFields: string[]) => void>;
|
|
50
|
+
}, {
|
|
51
|
+
options: Ref<BaseDrillDownDataSet[]>;
|
|
52
|
+
handleSearch: (e: ChangeEvent) => void;
|
|
53
|
+
handleSelect: (value: SelectInfo) => void;
|
|
54
|
+
handleClear: (e: {
|
|
55
|
+
stopPropagation: () => void;
|
|
56
|
+
}) => void;
|
|
57
|
+
className: string;
|
|
58
|
+
selected: Ref<Key[]>;
|
|
59
|
+
isEmpty: {
|
|
60
|
+
<T extends {
|
|
61
|
+
__trapAny: any;
|
|
62
|
+
}>(value?: T): boolean;
|
|
63
|
+
(value: string): value is "";
|
|
64
|
+
(value: Map<any, any> | Set<any> | import("lodash").List<any>): boolean;
|
|
65
|
+
(value: object): boolean;
|
|
66
|
+
<T_1 extends object>(value: T_1): value is import("lodash").EmptyObjectOf<T_1>;
|
|
67
|
+
(value?: any): boolean;
|
|
68
|
+
};
|
|
69
|
+
DRILL_DOWN_PRE_CLASS: string;
|
|
70
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
+
getDrillFields: (drillFields: string[]) => void;
|
|
72
|
+
setDrillFields: (drillFields: string[]) => void;
|
|
73
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
74
|
+
className: StringConstructor;
|
|
75
|
+
title: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
searchText: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
clearText: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
extra: {
|
|
88
|
+
new (): Node;
|
|
89
|
+
prototype: Node;
|
|
90
|
+
readonly ELEMENT_NODE: 1;
|
|
91
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
92
|
+
readonly TEXT_NODE: 3;
|
|
93
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
94
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
95
|
+
readonly ENTITY_NODE: 6;
|
|
96
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
97
|
+
readonly COMMENT_NODE: 8;
|
|
98
|
+
readonly DOCUMENT_NODE: 9;
|
|
99
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
100
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
101
|
+
readonly NOTATION_NODE: 12;
|
|
102
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
103
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
104
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
105
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
106
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
107
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
108
|
+
};
|
|
109
|
+
dataSet: {
|
|
110
|
+
type: import("vue").PropType<BaseDrillDownDataSet[]>;
|
|
111
|
+
default: any[];
|
|
112
|
+
};
|
|
113
|
+
drillFields: import("vue").PropType<string[]>;
|
|
114
|
+
disabledFields: import("vue").PropType<string[]>;
|
|
115
|
+
getDrillFields: import("vue").PropType<(drillFields: string[]) => void>;
|
|
116
|
+
setDrillFields: import("vue").PropType<(drillFields: string[]) => void>;
|
|
117
|
+
}>> & {
|
|
118
|
+
onGetDrillFields?: (drillFields: string[]) => any;
|
|
119
|
+
onSetDrillFields?: (drillFields: string[]) => any;
|
|
120
|
+
}, {
|
|
121
|
+
title: string;
|
|
122
|
+
searchText: string;
|
|
123
|
+
clearText: string;
|
|
124
|
+
dataSet: BaseDrillDownDataSet[];
|
|
125
|
+
}, {}>;
|
|
126
|
+
export default _default;
|