@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.
- 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/icons/calendar-icon.vue.d.ts +2 -0
- package/esm/icons/calendar-icon.vue.js +39 -0
- package/esm/icons/calendar-icon.vue.js.map +1 -0
- package/esm/icons/location-icon.vue.d.ts +2 -0
- package/esm/icons/location-icon.vue.js +39 -0
- package/esm/icons/location-icon.vue.js.map +1 -0
- package/esm/icons/text-icon.vue.d.ts +2 -0
- package/esm/icons/text-icon.vue.js +39 -0
- package/esm/icons/text-icon.vue.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/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/icons/calendar-icon.vue.d.ts +2 -0
- package/lib/icons/calendar-icon.vue.js +41 -0
- package/lib/icons/calendar-icon.vue.js.map +1 -0
- package/lib/icons/location-icon.vue.d.ts +2 -0
- package/lib/icons/location-icon.vue.js +41 -0
- package/lib/icons/location-icon.vue.js.map +1 -0
- package/lib/icons/text-icon.vue.d.ts +2 -0
- package/lib/icons/text-icon.vue.js +41 -0
- package/lib/icons/text-icon.vue.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/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 +53 -49
- 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/lib/interface.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extendLocale.js","sourceRoot":"","sources":["../../src/utils/extendLocale.ts"],"names":[],"mappings":";;AAAA,iCAAgD;AAEhD,IAAA,iBAAY,EAAC,WAAM,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,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initBaseSheetEmits = exports.initDrillDownEmits = exports.initDrillDownProps = exports.initBaseSheetProps = void 0;
|
|
4
|
+
const s2_1 = require("@antv/s2");
|
|
5
|
+
const initBaseSheetProps = () => {
|
|
6
|
+
return {
|
|
7
|
+
sheetType: String,
|
|
8
|
+
dataCfg: Object,
|
|
9
|
+
themeCfg: Object,
|
|
10
|
+
showPagination: {
|
|
11
|
+
type: [Object, Boolean],
|
|
12
|
+
default: false,
|
|
13
|
+
},
|
|
14
|
+
loading: Boolean,
|
|
15
|
+
partDrillDown: Object,
|
|
16
|
+
header: Object,
|
|
17
|
+
options: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: {},
|
|
20
|
+
},
|
|
21
|
+
adaptive: {
|
|
22
|
+
type: [Object, Boolean],
|
|
23
|
+
default: false,
|
|
24
|
+
},
|
|
25
|
+
spreadsheet: Function,
|
|
26
|
+
onMounted: Function,
|
|
27
|
+
onUpdate: Function,
|
|
28
|
+
onUpdateAfterRender: Function,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
exports.initBaseSheetProps = initBaseSheetProps;
|
|
32
|
+
const initDrillDownProps = () => {
|
|
33
|
+
return {
|
|
34
|
+
className: String,
|
|
35
|
+
title: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: (0, s2_1.i18n)('选择下钻维度'),
|
|
38
|
+
},
|
|
39
|
+
searchText: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: (0, s2_1.i18n)('搜索字段'),
|
|
42
|
+
},
|
|
43
|
+
clearText: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: (0, s2_1.i18n)('恢复默认'),
|
|
46
|
+
},
|
|
47
|
+
extra: Node,
|
|
48
|
+
dataSet: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: [],
|
|
51
|
+
},
|
|
52
|
+
drillFields: Array,
|
|
53
|
+
disabledFields: Array,
|
|
54
|
+
getDrillFields: Function,
|
|
55
|
+
setDrillFields: Function,
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
exports.initDrillDownProps = initDrillDownProps;
|
|
59
|
+
const initDrillDownEmits = () => {
|
|
60
|
+
const keys = ['getDrillFields', 'setDrillFields'];
|
|
61
|
+
return keys;
|
|
62
|
+
};
|
|
63
|
+
exports.initDrillDownEmits = initDrillDownEmits;
|
|
64
|
+
const initBaseSheetEmits = () => {
|
|
65
|
+
/** base sheet all emits */
|
|
66
|
+
const keys = [
|
|
67
|
+
'spreadsheet',
|
|
68
|
+
// ============== Row Cell ====================
|
|
69
|
+
'rowCellHover',
|
|
70
|
+
'rowCellClick',
|
|
71
|
+
'rowCellDoubleClick',
|
|
72
|
+
'rowCellContextMenu',
|
|
73
|
+
'rowCellMouseDown',
|
|
74
|
+
'rowCellMouseUp',
|
|
75
|
+
'rowCellMouseMove',
|
|
76
|
+
'rowCellCollapsed',
|
|
77
|
+
'rowCellAllCollapsed',
|
|
78
|
+
'rowCellScroll',
|
|
79
|
+
// ============== Col Cell ====================
|
|
80
|
+
'colCellHover',
|
|
81
|
+
'colCellClick',
|
|
82
|
+
'colCellDoubleClick',
|
|
83
|
+
'colCellContextMenu',
|
|
84
|
+
'colCellMouseDown',
|
|
85
|
+
'colCellMouseUp',
|
|
86
|
+
'colCellMouseMove',
|
|
87
|
+
'colCellExpanded',
|
|
88
|
+
'colCellHidden',
|
|
89
|
+
// ============== Data Cell ====================
|
|
90
|
+
'dataCellHover',
|
|
91
|
+
'dataCellClick',
|
|
92
|
+
'dataCellDoubleClick',
|
|
93
|
+
'dataCellContextMenu',
|
|
94
|
+
'dataCellMouseDown',
|
|
95
|
+
'dataCellMouseUp',
|
|
96
|
+
'dataCellMouseMove',
|
|
97
|
+
'dataCellBrushSelection',
|
|
98
|
+
'dataCellSelectMove',
|
|
99
|
+
// ============== Corner Cell ====================
|
|
100
|
+
'cornerCellHover',
|
|
101
|
+
'cornerCellClick',
|
|
102
|
+
'cornerCellDoubleClick',
|
|
103
|
+
'cornerCellContextMenu',
|
|
104
|
+
'cornerCellMouseDown',
|
|
105
|
+
'cornerCellMouseUp',
|
|
106
|
+
'cornerCellMouseMove',
|
|
107
|
+
// ============== Merged Cells ====================
|
|
108
|
+
'mergedCellsHover',
|
|
109
|
+
'mergedCellsClick',
|
|
110
|
+
'mergedCellsDoubleClick',
|
|
111
|
+
'mergedCellsContextMenu',
|
|
112
|
+
'mergedCellsMouseDown',
|
|
113
|
+
'mergedCellsMouseUp',
|
|
114
|
+
'mergedCellsMouseMove',
|
|
115
|
+
// ============== Sort ====================
|
|
116
|
+
'rangeSort',
|
|
117
|
+
'rangeSorted',
|
|
118
|
+
// ============== Filter ====================
|
|
119
|
+
'rangeFilter',
|
|
120
|
+
'rangeFiltered',
|
|
121
|
+
// ============== Layout ====================
|
|
122
|
+
'layoutAfterHeaderLayout',
|
|
123
|
+
'layoutPagination',
|
|
124
|
+
'beforeRender',
|
|
125
|
+
'afterRender',
|
|
126
|
+
'mounted',
|
|
127
|
+
'destroy',
|
|
128
|
+
// ============== Resize ====================
|
|
129
|
+
'layoutResize',
|
|
130
|
+
'layoutResizeSeriesWidth',
|
|
131
|
+
'layoutResizeRowWidth',
|
|
132
|
+
'layoutResizeRowHeight',
|
|
133
|
+
'layoutResizeColWidth',
|
|
134
|
+
'layoutResizeColHeight',
|
|
135
|
+
'layoutResizeTreeWidth',
|
|
136
|
+
'layoutResizeMouseDown',
|
|
137
|
+
'layoutResizeMouseUp',
|
|
138
|
+
'layoutResizeMouseMove',
|
|
139
|
+
// ============== Global ====================
|
|
140
|
+
'keyBoardDown',
|
|
141
|
+
'keyBoardUp',
|
|
142
|
+
'copied',
|
|
143
|
+
'actionIconHover',
|
|
144
|
+
'actionIconClick',
|
|
145
|
+
'contextMenu',
|
|
146
|
+
'mouseHover',
|
|
147
|
+
'mouseUp',
|
|
148
|
+
'mouseMove',
|
|
149
|
+
'mouseDown',
|
|
150
|
+
'selected',
|
|
151
|
+
'reset',
|
|
152
|
+
'linkFieldJump',
|
|
153
|
+
'click',
|
|
154
|
+
'doubleClick',
|
|
155
|
+
'scroll',
|
|
156
|
+
'hover',
|
|
157
|
+
// ============== Auto 自动生成的 ================
|
|
158
|
+
'layoutAfterRealDataCellRender',
|
|
159
|
+
'rowCellBrushSelection',
|
|
160
|
+
'colCellBrushSelection',
|
|
161
|
+
];
|
|
162
|
+
return keys;
|
|
163
|
+
};
|
|
164
|
+
exports.initBaseSheetEmits = initBaseSheetEmits;
|
|
165
|
+
//# 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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSheetComponentOptions = void 0;
|
|
4
|
+
const s2_1 = require("@antv/s2");
|
|
5
|
+
const constant_1 = require("../common/constant");
|
|
6
|
+
const getSheetComponentOptions = (...options) => (0, s2_1.getBaseSheetComponentOptions)(constant_1.RENDER_TOOLTIP_OPTION, ...options);
|
|
7
|
+
exports.getSheetComponentOptions = getSheetComponentOptions;
|
|
8
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/utils/options.ts"],"names":[],"mappings":";;;AACA,iCAAwD;AACxD,iDAA2D;AAEpD,MAAM,wBAAwB,GAAG,CACtC,GAAG,OAA6B,EACrB,EAAE,CAAC,IAAA,iCAA4B,EAAC,gCAAqB,EAAE,GAAG,OAAO,CAAC,CAAC;AAFnE,QAAA,wBAAwB,4BAE2C"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"private": false,
|
|
3
2
|
"name": "@antv/s2-vue",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"
|
|
6
|
-
"unpkg": "dist/index.min.js",
|
|
7
|
-
"module": "esm/index.js",
|
|
8
|
-
"types": "esm/index.d.ts",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"private": false,
|
|
9
5
|
"description": "use S2 with vue",
|
|
10
|
-
"
|
|
6
|
+
"keywords": [
|
|
7
|
+
"antv",
|
|
8
|
+
"s2",
|
|
9
|
+
"s2-vue",
|
|
10
|
+
"spreadsheet",
|
|
11
|
+
"pivot table",
|
|
12
|
+
"table",
|
|
13
|
+
"crossTable"
|
|
14
|
+
],
|
|
11
15
|
"homepage": "https://s2.antv.antgroup.com",
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"lib": "lib",
|
|
15
|
-
"test": "tests"
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/antvis/S2/issues"
|
|
16
18
|
},
|
|
17
19
|
"repository": {
|
|
18
20
|
"type": "git",
|
|
19
21
|
"url": "https://github.com/antvis/S2.git"
|
|
20
22
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"author": "https://github.com/orgs/antvis/people",
|
|
25
|
+
"main": "lib/index.js",
|
|
26
|
+
"unpkg": "dist/s2-vue.min.js",
|
|
27
|
+
"module": "esm/index.js",
|
|
28
|
+
"types": "esm/index.d.ts",
|
|
29
|
+
"directories": {
|
|
30
|
+
"lib": "lib",
|
|
31
|
+
"test": "tests"
|
|
23
32
|
},
|
|
24
33
|
"files": [
|
|
25
34
|
"esm",
|
|
@@ -27,67 +36,62 @@
|
|
|
27
36
|
"dist",
|
|
28
37
|
"README.md"
|
|
29
38
|
],
|
|
30
|
-
"keywords": [
|
|
31
|
-
"antv",
|
|
32
|
-
"s2",
|
|
33
|
-
"s2-vue",
|
|
34
|
-
"spreadsheet",
|
|
35
|
-
"pivot table",
|
|
36
|
-
"table",
|
|
37
|
-
"crossTable"
|
|
38
|
-
],
|
|
39
39
|
"scripts": {
|
|
40
|
-
"
|
|
41
|
-
"clean": "rimraf lib esm dist temp",
|
|
42
|
-
"build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts",
|
|
43
|
-
"build:esm": "cross-env FORMAT=es vite build",
|
|
44
|
-
"build:cjs": "cross-env FORMAT=cjs vite build",
|
|
45
|
-
"build:umd": "cross-env FORMAT=umd vite build",
|
|
40
|
+
"build": "npm-run-all clean --parallel build:umd build:cjs build:esm",
|
|
46
41
|
"build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build",
|
|
47
|
-
"build:
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
42
|
+
"build:cjs": "vue-tsc --module commonjs --outDir lib -p tsconfig.build.json && pnpm build:sync-assets lib/",
|
|
43
|
+
"build:esm": "vue-tsc --module ESNext --outDir esm -p tsconfig.build.json && pnpm build:sync-assets esm/",
|
|
44
|
+
"build:size-limit": "size-limit",
|
|
45
|
+
"build:size-limit-json": "pnpm build:size-limit -- --json",
|
|
46
|
+
"build:sync-assets": "rsync -av --include='*/' --include='*.less' --include='*.svg' --exclude='*' src/",
|
|
47
|
+
"build:umd": "cross-env FORMAT=umd vite build",
|
|
48
|
+
"clean": "rimraf lib esm dist temp",
|
|
49
|
+
"start": "cross-env PLAYGROUND=true vite",
|
|
51
50
|
"test": "jest --passWithNoTests",
|
|
52
|
-
"test:coverage": "pnpm test -- --coverage",
|
|
53
51
|
"test:ci": "pnpm test -- --maxWorkers=3",
|
|
54
52
|
"test:ci-coverage": "pnpm test:coverage --maxWorkers=3",
|
|
53
|
+
"test:coverage": "pnpm test -- --coverage",
|
|
55
54
|
"test:watch": "pnpm test -- --watch",
|
|
56
55
|
"tsc": "vue-tsc --noEmit"
|
|
57
56
|
},
|
|
58
|
-
"peerDependencies": {
|
|
59
|
-
"@antv/s2": ">=1.0.0",
|
|
60
|
-
"ant-design-vue": ">=3.2.0",
|
|
61
|
-
"vue": ">=3.x"
|
|
62
|
-
},
|
|
63
57
|
"dependencies": {
|
|
64
58
|
"@vueuse/core": "^10.5.0",
|
|
65
59
|
"lodash": "^4.17.21"
|
|
66
60
|
},
|
|
67
61
|
"devDependencies": {
|
|
68
62
|
"@antv/s2": "workspace:*",
|
|
69
|
-
"@antv/s2-shared": "workspace:*",
|
|
70
63
|
"@testing-library/vue": "^7.0.0",
|
|
71
64
|
"@vue/shared": "^3.3.4",
|
|
72
65
|
"@vue/tsconfig": "^0.4.0",
|
|
73
66
|
"ant-design-vue": "^3.2.20",
|
|
74
|
-
"vite-svg-loader": "^3.6.0",
|
|
75
67
|
"vue": "^3.3.4",
|
|
76
|
-
"vue-tsc": "^1.
|
|
68
|
+
"vue-tsc": "^2.1.6"
|
|
77
69
|
},
|
|
78
|
-
"
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@antv/s2": "^2.0.0",
|
|
72
|
+
"ant-design-vue": "^3.2.0",
|
|
73
|
+
"vue": ">=3.x"
|
|
74
|
+
},
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public",
|
|
77
|
+
"registry": "https://registry.npmjs.org/"
|
|
78
|
+
},
|
|
79
|
+
"size-limit": [
|
|
79
80
|
{
|
|
80
|
-
"path": "./dist/
|
|
81
|
-
"
|
|
81
|
+
"path": "./dist/s2-vue.min.js",
|
|
82
|
+
"import": "{ createComponent }",
|
|
83
|
+
"limit": "35 kB",
|
|
84
|
+
"ignore": [
|
|
85
|
+
"S2",
|
|
86
|
+
"Vue",
|
|
87
|
+
"antd"
|
|
88
|
+
]
|
|
82
89
|
},
|
|
83
90
|
{
|
|
84
|
-
"path": "./dist/
|
|
85
|
-
"
|
|
91
|
+
"path": "./dist/s2-vue.min.css",
|
|
92
|
+
"limit": "5 kB"
|
|
86
93
|
}
|
|
87
94
|
],
|
|
88
|
-
"publishConfig": {
|
|
89
|
-
"access": "public"
|
|
90
|
-
},
|
|
91
95
|
"tnpm": {
|
|
92
96
|
"mode": "pnpm"
|
|
93
97
|
}
|