@douyinfe/semi-foundation 2.70.0-alpha.2 → 2.70.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/chat/foundation.ts +17 -2
- package/datePicker/yearAndMonthFoundation.ts +29 -9
- package/lib/cjs/chat/foundation.d.ts +4 -0
- package/lib/cjs/chat/foundation.js +12 -1
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +39 -8
- package/lib/cjs/markdownRender/foundation.d.ts +1 -0
- package/lib/cjs/markdownRender/foundation.js +9 -4
- package/lib/cjs/overflowList/constants.d.ts +1 -1
- package/lib/cjs/resizable/foundation.d.ts +2 -4
- package/lib/cjs/resizable/group/index.d.ts +6 -3
- package/lib/cjs/resizable/group/index.js +90 -23
- package/lib/cjs/resizable/resizable.css +86 -0
- package/lib/cjs/resizable/resizable.scss +100 -3
- package/lib/cjs/resizable/single/index.d.ts +1 -1
- package/lib/cjs/resizable/single/index.js +2 -2
- package/lib/cjs/resizable/types.d.ts +41 -0
- package/lib/cjs/resizable/types.js +12 -0
- package/lib/cjs/resizable/utils.js +5 -5
- package/lib/cjs/resizable/variables.scss +8 -0
- package/lib/cjs/table/table.css +2 -1
- package/lib/cjs/table/table.scss +2 -1
- package/lib/cjs/transfer/transfer.css +1 -0
- package/lib/cjs/transfer/transfer.scss +1 -0
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/treeSelect/treeSelect.css +3 -1
- package/lib/cjs/treeSelect/treeSelect.scss +4 -1
- package/lib/es/chat/foundation.d.ts +4 -0
- package/lib/es/chat/foundation.js +12 -1
- package/lib/es/datePicker/yearAndMonthFoundation.js +39 -8
- package/lib/es/markdownRender/foundation.d.ts +1 -0
- package/lib/es/markdownRender/foundation.js +9 -4
- package/lib/es/overflowList/constants.d.ts +1 -1
- package/lib/es/resizable/foundation.d.ts +2 -4
- package/lib/es/resizable/foundation.js +2 -4
- package/lib/es/resizable/group/index.d.ts +6 -3
- package/lib/es/resizable/group/index.js +90 -23
- package/lib/es/resizable/resizable.css +86 -0
- package/lib/es/resizable/resizable.scss +100 -3
- package/lib/es/resizable/single/index.d.ts +1 -1
- package/lib/es/resizable/single/index.js +1 -1
- package/lib/es/resizable/types.d.ts +41 -0
- package/lib/es/resizable/types.js +6 -0
- package/lib/es/resizable/utils.js +5 -5
- package/lib/es/resizable/variables.scss +8 -0
- package/lib/es/table/table.css +2 -1
- package/lib/es/table/table.scss +2 -1
- package/lib/es/transfer/transfer.css +1 -0
- package/lib/es/transfer/transfer.scss +1 -0
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/treeSelect/treeSelect.css +3 -1
- package/lib/es/treeSelect/treeSelect.scss +4 -1
- package/markdownRender/foundation.ts +13 -7
- package/package.json +3 -5
- package/resizable/foundation.ts +3 -19
- package/resizable/group/index.ts +92 -29
- package/resizable/resizable.scss +100 -3
- package/resizable/single/index.ts +1 -1
- package/resizable/{singleConstants.ts → types.ts} +0 -65
- package/resizable/utils.ts +7 -6
- package/resizable/variables.scss +8 -0
- package/table/table.scss +2 -1
- package/transfer/transfer.scss +1 -0
- package/treeSelect/treeSelect.scss +4 -1
- package/tsconfig.json +1 -1
- package/jsonViewer/constants.ts +0 -7
- package/jsonViewer/foundation.ts +0 -67
- package/jsonViewer/jsonViewer.scss +0 -152
- package/jsonViewer/script/build.js +0 -51
- package/jsonViewer/variables.scss +0 -27
- package/lib/cjs/jsonViewer/constants.d.ts +0 -4
- package/lib/cjs/jsonViewer/constants.js +0 -10
- package/lib/cjs/jsonViewer/foundation.d.ts +0 -21
- package/lib/cjs/jsonViewer/foundation.js +0 -78
- package/lib/cjs/jsonViewer/jsonViewer.css +0 -136
- package/lib/cjs/jsonViewer/jsonViewer.scss +0 -152
- package/lib/cjs/jsonViewer/variables.scss +0 -27
- package/lib/cjs/resizable/groupConstants.d.ts +0 -16
- package/lib/cjs/resizable/groupConstants.js +0 -25
- package/lib/cjs/resizable/singleConstants.d.ts +0 -105
- package/lib/cjs/resizable/singleConstants.js +0 -67
- package/lib/es/jsonViewer/constants.d.ts +0 -4
- package/lib/es/jsonViewer/constants.js +0 -5
- package/lib/es/jsonViewer/foundation.d.ts +0 -21
- package/lib/es/jsonViewer/foundation.js +0 -60
- package/lib/es/jsonViewer/jsonViewer.css +0 -136
- package/lib/es/jsonViewer/jsonViewer.scss +0 -152
- package/lib/es/jsonViewer/variables.scss +0 -27
- package/lib/es/resizable/groupConstants.d.ts +0 -16
- package/lib/es/resizable/groupConstants.js +0 -19
- package/lib/es/resizable/singleConstants.d.ts +0 -105
- package/lib/es/resizable/singleConstants.js +0 -61
- package/resizable/groupConstants.ts +0 -25
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
export declare const directions: readonly ["top", "right", "bottom", "left", "topRight", "bottomRight", "bottomLeft", "topLeft"];
|
|
2
|
-
export declare const directionStyles: {
|
|
3
|
-
readonly top: {
|
|
4
|
-
readonly top: "-5px";
|
|
5
|
-
readonly width: "100%";
|
|
6
|
-
readonly height: "10px";
|
|
7
|
-
readonly left: "0px";
|
|
8
|
-
readonly cursor: "row-resize";
|
|
9
|
-
};
|
|
10
|
-
readonly right: {
|
|
11
|
-
readonly left: any;
|
|
12
|
-
readonly right: "-5px";
|
|
13
|
-
readonly width: "10px";
|
|
14
|
-
readonly height: "100%";
|
|
15
|
-
readonly top: "0px";
|
|
16
|
-
readonly cursor: "col-resize";
|
|
17
|
-
};
|
|
18
|
-
readonly bottom: {
|
|
19
|
-
readonly top: any;
|
|
20
|
-
readonly bottom: "-5px";
|
|
21
|
-
readonly width: "100%";
|
|
22
|
-
readonly height: "10px";
|
|
23
|
-
readonly left: "0px";
|
|
24
|
-
readonly cursor: "row-resize";
|
|
25
|
-
};
|
|
26
|
-
readonly left: {
|
|
27
|
-
readonly left: "-5px";
|
|
28
|
-
readonly width: "10px";
|
|
29
|
-
readonly height: "100%";
|
|
30
|
-
readonly top: "0px";
|
|
31
|
-
readonly cursor: "col-resize";
|
|
32
|
-
};
|
|
33
|
-
readonly topRight: {
|
|
34
|
-
readonly right: "-10px";
|
|
35
|
-
readonly top: "-10px";
|
|
36
|
-
readonly cursor: "ne-resize";
|
|
37
|
-
readonly width: "20px";
|
|
38
|
-
readonly height: "20px";
|
|
39
|
-
readonly position: "absolute";
|
|
40
|
-
};
|
|
41
|
-
readonly bottomRight: {
|
|
42
|
-
readonly right: "-10px";
|
|
43
|
-
readonly bottom: "-10px";
|
|
44
|
-
readonly cursor: "se-resize";
|
|
45
|
-
readonly width: "20px";
|
|
46
|
-
readonly height: "20px";
|
|
47
|
-
readonly position: "absolute";
|
|
48
|
-
};
|
|
49
|
-
readonly bottomLeft: {
|
|
50
|
-
readonly left: "-10px";
|
|
51
|
-
readonly bottom: "-10px";
|
|
52
|
-
readonly cursor: "sw-resize";
|
|
53
|
-
readonly width: "20px";
|
|
54
|
-
readonly height: "20px";
|
|
55
|
-
readonly position: "absolute";
|
|
56
|
-
};
|
|
57
|
-
readonly topLeft: {
|
|
58
|
-
readonly left: "-10px";
|
|
59
|
-
readonly top: "-10px";
|
|
60
|
-
readonly cursor: "nw-resize";
|
|
61
|
-
readonly width: "20px";
|
|
62
|
-
readonly height: "20px";
|
|
63
|
-
readonly position: "absolute";
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export type Direction = 'top' | 'right' | 'bottom' | 'left' | 'topRight' | 'bottomRight' | 'bottomLeft' | 'topLeft';
|
|
67
|
-
export interface HandleClassName {
|
|
68
|
-
top?: string;
|
|
69
|
-
right?: string;
|
|
70
|
-
bottom?: string;
|
|
71
|
-
left?: string;
|
|
72
|
-
topRight?: string;
|
|
73
|
-
bottomRight?: string;
|
|
74
|
-
bottomLeft?: string;
|
|
75
|
-
topLeft?: string;
|
|
76
|
-
}
|
|
77
|
-
export type HandlerCallback = (e: MouseEvent, direction: Direction) => void;
|
|
78
|
-
export interface Enable {
|
|
79
|
-
top?: boolean;
|
|
80
|
-
right?: boolean;
|
|
81
|
-
bottom?: boolean;
|
|
82
|
-
left?: boolean;
|
|
83
|
-
topRight?: boolean;
|
|
84
|
-
bottomRight?: boolean;
|
|
85
|
-
bottomLeft?: boolean;
|
|
86
|
-
topLeft?: boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface Size {
|
|
89
|
-
width?: string | number;
|
|
90
|
-
height?: string | number;
|
|
91
|
-
}
|
|
92
|
-
export interface NumberSize {
|
|
93
|
-
width: number;
|
|
94
|
-
height: number;
|
|
95
|
-
}
|
|
96
|
-
export interface NewSize {
|
|
97
|
-
newHeight: number | string;
|
|
98
|
-
newWidth: number | string;
|
|
99
|
-
}
|
|
100
|
-
export declare const DEFAULT_SIZE: {
|
|
101
|
-
width: string;
|
|
102
|
-
height: string;
|
|
103
|
-
};
|
|
104
|
-
export type ResizeCallback = (size: Size, event: MouseEvent, direction: Direction) => void;
|
|
105
|
-
export type ResizeStartCallback = (e: MouseEvent, dir: Direction) => void | boolean;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// single
|
|
2
|
-
const rowStyleBase = {
|
|
3
|
-
width: '100%',
|
|
4
|
-
height: '10px',
|
|
5
|
-
top: '0px',
|
|
6
|
-
left: '0px',
|
|
7
|
-
cursor: 'row-resize'
|
|
8
|
-
};
|
|
9
|
-
const colStyleBase = {
|
|
10
|
-
width: '10px',
|
|
11
|
-
height: '100%',
|
|
12
|
-
top: '0px',
|
|
13
|
-
left: '0px',
|
|
14
|
-
cursor: 'col-resize'
|
|
15
|
-
};
|
|
16
|
-
const edgeStyleBase = {
|
|
17
|
-
width: '20px',
|
|
18
|
-
height: '20px',
|
|
19
|
-
position: 'absolute'
|
|
20
|
-
};
|
|
21
|
-
export const directions = ['top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft'];
|
|
22
|
-
export const directionStyles = {
|
|
23
|
-
top: Object.assign(Object.assign({}, rowStyleBase), {
|
|
24
|
-
top: '-5px'
|
|
25
|
-
}),
|
|
26
|
-
right: Object.assign(Object.assign({}, colStyleBase), {
|
|
27
|
-
left: undefined,
|
|
28
|
-
right: '-5px'
|
|
29
|
-
}),
|
|
30
|
-
bottom: Object.assign(Object.assign({}, rowStyleBase), {
|
|
31
|
-
top: undefined,
|
|
32
|
-
bottom: '-5px'
|
|
33
|
-
}),
|
|
34
|
-
left: Object.assign(Object.assign({}, colStyleBase), {
|
|
35
|
-
left: '-5px'
|
|
36
|
-
}),
|
|
37
|
-
topRight: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
38
|
-
right: '-10px',
|
|
39
|
-
top: '-10px',
|
|
40
|
-
cursor: 'ne-resize'
|
|
41
|
-
}),
|
|
42
|
-
bottomRight: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
43
|
-
right: '-10px',
|
|
44
|
-
bottom: '-10px',
|
|
45
|
-
cursor: 'se-resize'
|
|
46
|
-
}),
|
|
47
|
-
bottomLeft: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
48
|
-
left: '-10px',
|
|
49
|
-
bottom: '-10px',
|
|
50
|
-
cursor: 'sw-resize'
|
|
51
|
-
}),
|
|
52
|
-
topLeft: Object.assign(Object.assign({}, edgeStyleBase), {
|
|
53
|
-
left: '-10px',
|
|
54
|
-
top: '-10px',
|
|
55
|
-
cursor: 'nw-resize'
|
|
56
|
-
})
|
|
57
|
-
};
|
|
58
|
-
export const DEFAULT_SIZE = {
|
|
59
|
-
width: 'auto',
|
|
60
|
-
height: 'auto'
|
|
61
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// group
|
|
2
|
-
const rowStyleBase = {
|
|
3
|
-
width: '100%',
|
|
4
|
-
height: '8px',
|
|
5
|
-
flexShrink: 0,
|
|
6
|
-
margin: '0',
|
|
7
|
-
cursor: 'row-resize',
|
|
8
|
-
} as const;
|
|
9
|
-
const colStyleBase = {
|
|
10
|
-
width: '8px',
|
|
11
|
-
flexShrink: 0,
|
|
12
|
-
height: '100%',
|
|
13
|
-
margin: '0',
|
|
14
|
-
cursor: 'col-resize',
|
|
15
|
-
} as const;
|
|
16
|
-
|
|
17
|
-
export const directionStyles = {
|
|
18
|
-
horizontal: {
|
|
19
|
-
...colStyleBase,
|
|
20
|
-
},
|
|
21
|
-
vertical: {
|
|
22
|
-
...rowStyleBase,
|
|
23
|
-
}
|
|
24
|
-
} as const;
|
|
25
|
-
|