x-next 0.0.0-alpha.70 → 0.0.0-alpha.72

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 (55) hide show
  1. package/README.md +74 -70
  2. package/dist/_hooks/_types.d.ts +3 -0
  3. package/dist/_hooks/use-scrollbar.d.ts +1 -1
  4. package/dist/_utils/array.d.ts +2 -0
  5. package/dist/components/_components/auto-tooltip/auto-tooltip.d.ts +10 -0
  6. package/dist/components/_components/auto-tooltip/style/index.d.ts +0 -0
  7. package/dist/components/form-select/index.d.ts +40 -39
  8. package/dist/components/index.d.ts +2 -0
  9. package/dist/components/menu/Menu.d.ts +2 -2
  10. package/dist/components/pagination/Pagination.d.ts +351 -0
  11. package/dist/components/pagination/index.d.ts +297 -0
  12. package/dist/components/pagination/interface.d.ts +26 -0
  13. package/dist/components/pagination/page-item-ellipsis.vue.d.ts +91 -0
  14. package/dist/components/pagination/page-item-step.vue.d.ts +160 -0
  15. package/dist/components/pagination/page-item.vue.d.ts +53 -0
  16. package/dist/components/pagination/page-jumper.vue.d.ts +346 -0
  17. package/dist/components/pagination/page-options.vue.d.ts +2032 -0
  18. package/dist/components/pagination/utils.d.ts +4 -0
  19. package/dist/components/scrollbar-v2/index.d.ts +15 -14
  20. package/dist/components/table/Table.d.ts +931 -0
  21. package/dist/components/table/TableColumn.d.ts +292 -0
  22. package/dist/components/table/context.d.ts +29 -0
  23. package/dist/components/table/hooks/use-column-filter.d.ts +18 -0
  24. package/dist/components/table/hooks/use-column-resize.d.ts +10 -0
  25. package/dist/components/table/hooks/use-column-sorter.d.ts +14 -0
  26. package/dist/components/table/hooks/use-drag.d.ts +18 -0
  27. package/dist/components/table/hooks/use-expand.d.ts +20 -0
  28. package/dist/components/table/hooks/use-filter.d.ts +11 -0
  29. package/dist/components/table/hooks/use-pagination.d.ts +7 -0
  30. package/dist/components/table/hooks/use-row-selection.d.ts +26 -0
  31. package/dist/components/table/hooks/use-sorter.d.ts +17 -0
  32. package/dist/components/table/hooks/use-span.d.ts +18 -0
  33. package/dist/components/table/index.d.ts +952 -0
  34. package/dist/components/table/interface.d.ts +467 -0
  35. package/dist/components/table/table-col-group.vue.d.ts +38 -0
  36. package/dist/components/table/table-operation-td.d.ts +573 -0
  37. package/dist/components/table/table-operation-th.d.ts +41 -0
  38. package/dist/components/table/table-tbody.d.ts +4 -0
  39. package/dist/components/table/table-td.d.ts +124 -0
  40. package/dist/components/table/table-th.d.ts +39 -0
  41. package/dist/components/table/table-thead.d.ts +4 -0
  42. package/dist/components/table/table-tr.d.ts +41 -0
  43. package/dist/components/table/utils.d.ts +38 -0
  44. package/dist/components/trigger/index.d.ts +1 -0
  45. package/dist/components/trigger-v2/index.d.ts +1 -0
  46. package/dist/components/virtual-list-v2/interface.d.ts +1 -1
  47. package/dist/icons/index.d.ts +2 -2
  48. package/dist/index.es.js +11590 -7940
  49. package/dist/index.umd.js +2 -2
  50. package/dist/style.css +1 -1
  51. package/dist/types.d.ts +3 -0
  52. package/package.json +1 -1
  53. package/volar.d.ts +75 -72
  54. package/dist/icons/default/left.d.ts +0 -50
  55. package/dist/icons/default/right.d.ts +0 -50
@@ -0,0 +1,124 @@
1
+ import { PropType, VNode } from 'vue';
2
+ import { TableColumnData, TableDataWithRaw, TableOperationColumn } from './interface';
3
+ declare const TD_TYPES: readonly ["normal", "operation", "checkbox", "radio", "expand"];
4
+ type TdTypes = (typeof TD_TYPES)[number];
5
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
+ rowIndex: NumberConstructor;
7
+ record: {
8
+ type: PropType<TableDataWithRaw>;
9
+ default: () => {};
10
+ };
11
+ column: {
12
+ type: PropType<TableColumnData>;
13
+ default: () => {};
14
+ };
15
+ type: {
16
+ type: PropType<TdTypes>;
17
+ default: string;
18
+ };
19
+ operations: {
20
+ type: PropType<TableOperationColumn[]>;
21
+ default: () => never[];
22
+ };
23
+ dataColumns: {
24
+ type: PropType<TableColumnData[]>;
25
+ default: () => never[];
26
+ };
27
+ colSpan: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ rowSpan: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ isFixedExpand: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ containerWidth: {
40
+ type: NumberConstructor;
41
+ };
42
+ showExpandBtn: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ indentSize: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ renderExpandBtn: {
51
+ type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
52
+ };
53
+ summary: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
58
+ [key: string]: any;
59
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
60
+ rowIndex: NumberConstructor;
61
+ record: {
62
+ type: PropType<TableDataWithRaw>;
63
+ default: () => {};
64
+ };
65
+ column: {
66
+ type: PropType<TableColumnData>;
67
+ default: () => {};
68
+ };
69
+ type: {
70
+ type: PropType<TdTypes>;
71
+ default: string;
72
+ };
73
+ operations: {
74
+ type: PropType<TableOperationColumn[]>;
75
+ default: () => never[];
76
+ };
77
+ dataColumns: {
78
+ type: PropType<TableColumnData[]>;
79
+ default: () => never[];
80
+ };
81
+ colSpan: {
82
+ type: NumberConstructor;
83
+ default: number;
84
+ };
85
+ rowSpan: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ isFixedExpand: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ containerWidth: {
94
+ type: NumberConstructor;
95
+ };
96
+ showExpandBtn: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ indentSize: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
104
+ renderExpandBtn: {
105
+ type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
106
+ };
107
+ summary: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ }>> & Readonly<{}>, {
112
+ type: "normal" | "checkbox" | "radio" | "expand" | "operation";
113
+ summary: boolean;
114
+ column: TableColumnData;
115
+ dataColumns: TableColumnData[];
116
+ operations: TableOperationColumn[];
117
+ colSpan: number;
118
+ rowSpan: number;
119
+ record: TableDataWithRaw;
120
+ isFixedExpand: boolean;
121
+ showExpandBtn: boolean;
122
+ indentSize: number;
123
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
124
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { PropType } from 'vue';
2
+ import { TableColumnData, TableOperationColumn } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ column: {
5
+ type: PropType<TableColumnData>;
6
+ default: () => {};
7
+ };
8
+ operations: {
9
+ type: PropType<TableOperationColumn[]>;
10
+ default: () => never[];
11
+ };
12
+ dataColumns: {
13
+ type: PropType<TableColumnData[]>;
14
+ default: () => never[];
15
+ };
16
+ resizable: BooleanConstructor;
17
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
+ [key: string]: any;
19
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
+ column: {
21
+ type: PropType<TableColumnData>;
22
+ default: () => {};
23
+ };
24
+ operations: {
25
+ type: PropType<TableOperationColumn[]>;
26
+ default: () => never[];
27
+ };
28
+ dataColumns: {
29
+ type: PropType<TableColumnData[]>;
30
+ default: () => never[];
31
+ };
32
+ resizable: BooleanConstructor;
33
+ }>> & Readonly<{}>, {
34
+ column: TableColumnData;
35
+ dataColumns: TableColumnData[];
36
+ operations: TableOperationColumn[];
37
+ resizable: boolean;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { PropType } from 'vue';
2
+ import { TableDataWithRaw } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ expand: {
5
+ type: BooleanConstructor;
6
+ };
7
+ empty: {
8
+ type: BooleanConstructor;
9
+ };
10
+ checked: {
11
+ type: BooleanConstructor;
12
+ };
13
+ rowIndex: NumberConstructor;
14
+ record: {
15
+ type: PropType<TableDataWithRaw>;
16
+ default: () => {};
17
+ };
18
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
19
+ [key: string]: any;
20
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ expand: {
22
+ type: BooleanConstructor;
23
+ };
24
+ empty: {
25
+ type: BooleanConstructor;
26
+ };
27
+ checked: {
28
+ type: BooleanConstructor;
29
+ };
30
+ rowIndex: NumberConstructor;
31
+ record: {
32
+ type: PropType<TableDataWithRaw>;
33
+ default: () => {};
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ empty: boolean;
37
+ checked: boolean;
38
+ expand: boolean;
39
+ record: TableDataWithRaw;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { CSSProperties, VNode } from 'vue';
2
+ import { TableColumnData, TableDataWithRaw, TableOperationColumn } from './interface';
3
+ import { BaseType } from '../../_hooks/_types';
4
+ export declare const getGroupColumns: (columns: TableColumnData[], columnMap: Map<string, TableColumnData>, columnWidth: Record<string, number>) => {
5
+ dataColumns: TableColumnData[];
6
+ groupColumns: TableColumnData[][];
7
+ };
8
+ export declare const getOperationFixedNumber: (column: TableOperationColumn, operations: TableOperationColumn[]) => number;
9
+ export declare const getFixedNumber: (column: TableColumnData, { dataColumns, operations, }: {
10
+ dataColumns: TableColumnData[];
11
+ operations: TableOperationColumn[];
12
+ }) => number;
13
+ export declare const getOperationFixedCls: (prefixCls: string, column: TableOperationColumn) => any[];
14
+ export declare const getFixedCls: (prefixCls: string, column: Pick<TableColumnData, "fixed" | "isLastLeftFixed" | "isFirstRightFixed">) => any[];
15
+ export declare const getStyle: (column: TableColumnData, { dataColumns, operations, }: {
16
+ dataColumns: TableColumnData[];
17
+ operations: TableOperationColumn[];
18
+ }) => CSSProperties;
19
+ export declare const getOperationStyle: (column: TableOperationColumn, operations: TableOperationColumn[]) => {
20
+ left: string;
21
+ } | {
22
+ left?: undefined;
23
+ };
24
+ /**
25
+ * Obtain table column data through the <TableColumnData> component
26
+ * @param {VNode[]} vns
27
+ */
28
+ export declare const getColumnsFromSlot: (vns: VNode[]) => TableColumnData[];
29
+ export declare function mapArrayWithChildren<T extends Array<{
30
+ [key: string]: any;
31
+ children?: T;
32
+ }>>(arr: T): T;
33
+ export declare function mapRawTableData<T extends TableDataWithRaw[]>(arr: T): TableDataWithRaw['raw'][];
34
+ export declare const getLeafKeys: (record: TableDataWithRaw) => BaseType[];
35
+ export declare const getSelectionStatus: (selectedRowKeys: BaseType[], leafKeys: BaseType[]) => {
36
+ checked: boolean;
37
+ indeterminate: boolean;
38
+ };
@@ -1,3 +1,4 @@
1
+ export type { TriggerProps } from './src/_trigger';
1
2
  export declare const XTrigger: {
2
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
4
  popupVisible: {
@@ -1,3 +1,4 @@
1
+ export type { TriggerProps } from './interface';
1
2
  export declare const XTrigger: {
2
3
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
4
  popupVisible: {
@@ -50,7 +50,7 @@ export interface VirtualListProps {
50
50
  */
51
51
  buffer?: number;
52
52
  data?: unknown[];
53
- itemKey?: string | ((item: unknown) => VirtualItemKey);
53
+ itemKey?: string;
54
54
  component?: keyof HTMLElementTagNameMap;
55
55
  }
56
56
  export type ScrollOptions = number | {
@@ -3,9 +3,9 @@ import { default as Close } from './default/close';
3
3
  import { default as CheckCircleFill } from './default/check-circle-fill';
4
4
  import { default as ExclamationCircleFill } from './default/exclamation-circle-fill';
5
5
  import { default as InfoCircleFill } from './default/info-circle-fill';
6
- import { default as Left } from './default/left';
6
+ import { default as Left } from './_self/left';
7
7
  import { default as MinusCircleFill } from './default/minus-circle-fill';
8
- import { default as Right } from './default/right';
8
+ import { default as Right } from './_self/right';
9
9
  import { default as LogoSimple } from './default/logo-simple.tsx';
10
10
  import { default as AnimationLoading } from './animation/animation-loading';
11
11
  export { CloseCircleFill, Close, CheckCircleFill, ExclamationCircleFill, InfoCircleFill, Left, MinusCircleFill, Right, AnimationLoading, LogoSimple, };