@douyinfe/semi-foundation 2.45.0-beta.0 → 2.45.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/lib/cjs/table/utils.d.ts +1 -52
- package/lib/cjs/table/utils.js +1 -1
- package/lib/es/table/utils.d.ts +1 -52
- package/lib/es/table/utils.js +1 -1
- package/package.json +3 -3
- package/table/utils.ts +1 -1
package/lib/cjs/table/utils.d.ts
CHANGED
|
@@ -80,58 +80,7 @@ export declare function mergeQueries(query: Record<string, any>, queries?: Recor
|
|
|
80
80
|
* @param {Object[]} columns columns retain the column width after resize
|
|
81
81
|
* @param {Object[]} newColumns
|
|
82
82
|
*/
|
|
83
|
-
export declare function withResizeWidth(columns: Record<string, any>[], newColumns: Record<string, any>[]):
|
|
84
|
-
[x: number]: Record<string, any>;
|
|
85
|
-
length: number;
|
|
86
|
-
toString(): string;
|
|
87
|
-
toLocaleString(): string;
|
|
88
|
-
pop(): Record<string, any>;
|
|
89
|
-
push(...items: Record<string, any>[]): number;
|
|
90
|
-
concat(...items: ConcatArray<Record<string, any>>[]): Record<string, any>[];
|
|
91
|
-
concat(...items: (Record<string, any> | ConcatArray<Record<string, any>>)[]): Record<string, any>[];
|
|
92
|
-
join(separator?: string): string;
|
|
93
|
-
reverse(): Record<string, any>[];
|
|
94
|
-
shift(): Record<string, any>;
|
|
95
|
-
slice(start?: number, end?: number): Record<string, any>[];
|
|
96
|
-
sort(compareFn?: (a: Record<string, any>, b: Record<string, any>) => number): Record<string, any>[];
|
|
97
|
-
splice(start: number, deleteCount?: number): Record<string, any>[];
|
|
98
|
-
splice(start: number, deleteCount: number, ...items: Record<string, any>[]): Record<string, any>[];
|
|
99
|
-
unshift(...items: Record<string, any>[]): number;
|
|
100
|
-
indexOf(searchElement: Record<string, any>, fromIndex?: number): number;
|
|
101
|
-
lastIndexOf(searchElement: Record<string, any>, fromIndex?: number): number;
|
|
102
|
-
every<S extends Record<string, any>>(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => value is S, thisArg?: any): this is S[];
|
|
103
|
-
every(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): boolean;
|
|
104
|
-
some(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): boolean;
|
|
105
|
-
forEach(callbackfn: (value: Record<string, any>, index: number, array: Record<string, any>[]) => void, thisArg?: any): void;
|
|
106
|
-
map<U>(callbackfn: (value: Record<string, any>, index: number, array: Record<string, any>[]) => U, thisArg?: any): U[];
|
|
107
|
-
filter<S_1 extends Record<string, any>>(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => value is S_1, thisArg?: any): S_1[];
|
|
108
|
-
filter(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): Record<string, any>[];
|
|
109
|
-
reduce(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>): Record<string, any>;
|
|
110
|
-
reduce(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>, initialValue: Record<string, any>): Record<string, any>;
|
|
111
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => U_1, initialValue: U_1): U_1;
|
|
112
|
-
reduceRight(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>): Record<string, any>;
|
|
113
|
-
reduceRight(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>, initialValue: Record<string, any>): Record<string, any>;
|
|
114
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => U_2, initialValue: U_2): U_2;
|
|
115
|
-
find<S_2 extends Record<string, any>>(predicate: (this: void, value: Record<string, any>, index: number, obj: Record<string, any>[]) => value is S_2, thisArg?: any): S_2;
|
|
116
|
-
find(predicate: (value: Record<string, any>, index: number, obj: Record<string, any>[]) => unknown, thisArg?: any): Record<string, any>;
|
|
117
|
-
findIndex(predicate: (value: Record<string, any>, index: number, obj: Record<string, any>[]) => unknown, thisArg?: any): number;
|
|
118
|
-
fill(value: Record<string, any>, start?: number, end?: number): Record<string, any>[];
|
|
119
|
-
copyWithin(target: number, start: number, end?: number): Record<string, any>[];
|
|
120
|
-
entries(): IterableIterator<[number, Record<string, any>]>;
|
|
121
|
-
keys(): IterableIterator<number>;
|
|
122
|
-
values(): IterableIterator<Record<string, any>>;
|
|
123
|
-
includes(searchElement: Record<string, any>, fromIndex?: number): boolean;
|
|
124
|
-
[Symbol.iterator](): IterableIterator<Record<string, any>>;
|
|
125
|
-
[Symbol.unscopables](): {
|
|
126
|
-
copyWithin: boolean;
|
|
127
|
-
entries: boolean;
|
|
128
|
-
fill: boolean;
|
|
129
|
-
find: boolean;
|
|
130
|
-
findIndex: boolean;
|
|
131
|
-
keys: boolean;
|
|
132
|
-
values: boolean;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
83
|
+
export declare function withResizeWidth(columns: Record<string, any>[], newColumns: Record<string, any>[]): Record<string, any>[];
|
|
135
84
|
/**
|
|
136
85
|
* Pure function version of the same function in table foundation
|
|
137
86
|
* This is not accessible in getDerivedStateFromProps, so fork one out
|
package/lib/cjs/table/utils.js
CHANGED
|
@@ -388,7 +388,7 @@ function mergeQueries(query) {
|
|
|
388
388
|
* @param {Object[]} newColumns
|
|
389
389
|
*/
|
|
390
390
|
function withResizeWidth(columns, newColumns) {
|
|
391
|
-
const _newColumns =
|
|
391
|
+
const _newColumns = [...newColumns];
|
|
392
392
|
for (const column of columns) {
|
|
393
393
|
if (!(0, _isNullOrUndefined.default)(column.width)) {
|
|
394
394
|
const currentColumn = column.key;
|
package/lib/es/table/utils.d.ts
CHANGED
|
@@ -80,58 +80,7 @@ export declare function mergeQueries(query: Record<string, any>, queries?: Recor
|
|
|
80
80
|
* @param {Object[]} columns columns retain the column width after resize
|
|
81
81
|
* @param {Object[]} newColumns
|
|
82
82
|
*/
|
|
83
|
-
export declare function withResizeWidth(columns: Record<string, any>[], newColumns: Record<string, any>[]):
|
|
84
|
-
[x: number]: Record<string, any>;
|
|
85
|
-
length: number;
|
|
86
|
-
toString(): string;
|
|
87
|
-
toLocaleString(): string;
|
|
88
|
-
pop(): Record<string, any>;
|
|
89
|
-
push(...items: Record<string, any>[]): number;
|
|
90
|
-
concat(...items: ConcatArray<Record<string, any>>[]): Record<string, any>[];
|
|
91
|
-
concat(...items: (Record<string, any> | ConcatArray<Record<string, any>>)[]): Record<string, any>[];
|
|
92
|
-
join(separator?: string): string;
|
|
93
|
-
reverse(): Record<string, any>[];
|
|
94
|
-
shift(): Record<string, any>;
|
|
95
|
-
slice(start?: number, end?: number): Record<string, any>[];
|
|
96
|
-
sort(compareFn?: (a: Record<string, any>, b: Record<string, any>) => number): Record<string, any>[];
|
|
97
|
-
splice(start: number, deleteCount?: number): Record<string, any>[];
|
|
98
|
-
splice(start: number, deleteCount: number, ...items: Record<string, any>[]): Record<string, any>[];
|
|
99
|
-
unshift(...items: Record<string, any>[]): number;
|
|
100
|
-
indexOf(searchElement: Record<string, any>, fromIndex?: number): number;
|
|
101
|
-
lastIndexOf(searchElement: Record<string, any>, fromIndex?: number): number;
|
|
102
|
-
every<S extends Record<string, any>>(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => value is S, thisArg?: any): this is S[];
|
|
103
|
-
every(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): boolean;
|
|
104
|
-
some(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): boolean;
|
|
105
|
-
forEach(callbackfn: (value: Record<string, any>, index: number, array: Record<string, any>[]) => void, thisArg?: any): void;
|
|
106
|
-
map<U>(callbackfn: (value: Record<string, any>, index: number, array: Record<string, any>[]) => U, thisArg?: any): U[];
|
|
107
|
-
filter<S_1 extends Record<string, any>>(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => value is S_1, thisArg?: any): S_1[];
|
|
108
|
-
filter(predicate: (value: Record<string, any>, index: number, array: Record<string, any>[]) => unknown, thisArg?: any): Record<string, any>[];
|
|
109
|
-
reduce(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>): Record<string, any>;
|
|
110
|
-
reduce(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>, initialValue: Record<string, any>): Record<string, any>;
|
|
111
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => U_1, initialValue: U_1): U_1;
|
|
112
|
-
reduceRight(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>): Record<string, any>;
|
|
113
|
-
reduceRight(callbackfn: (previousValue: Record<string, any>, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => Record<string, any>, initialValue: Record<string, any>): Record<string, any>;
|
|
114
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: Record<string, any>, currentIndex: number, array: Record<string, any>[]) => U_2, initialValue: U_2): U_2;
|
|
115
|
-
find<S_2 extends Record<string, any>>(predicate: (this: void, value: Record<string, any>, index: number, obj: Record<string, any>[]) => value is S_2, thisArg?: any): S_2;
|
|
116
|
-
find(predicate: (value: Record<string, any>, index: number, obj: Record<string, any>[]) => unknown, thisArg?: any): Record<string, any>;
|
|
117
|
-
findIndex(predicate: (value: Record<string, any>, index: number, obj: Record<string, any>[]) => unknown, thisArg?: any): number;
|
|
118
|
-
fill(value: Record<string, any>, start?: number, end?: number): Record<string, any>[];
|
|
119
|
-
copyWithin(target: number, start: number, end?: number): Record<string, any>[];
|
|
120
|
-
entries(): IterableIterator<[number, Record<string, any>]>;
|
|
121
|
-
keys(): IterableIterator<number>;
|
|
122
|
-
values(): IterableIterator<Record<string, any>>;
|
|
123
|
-
includes(searchElement: Record<string, any>, fromIndex?: number): boolean;
|
|
124
|
-
[Symbol.iterator](): IterableIterator<Record<string, any>>;
|
|
125
|
-
[Symbol.unscopables](): {
|
|
126
|
-
copyWithin: boolean;
|
|
127
|
-
entries: boolean;
|
|
128
|
-
fill: boolean;
|
|
129
|
-
find: boolean;
|
|
130
|
-
findIndex: boolean;
|
|
131
|
-
keys: boolean;
|
|
132
|
-
values: boolean;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
83
|
+
export declare function withResizeWidth(columns: Record<string, any>[], newColumns: Record<string, any>[]): Record<string, any>[];
|
|
135
84
|
/**
|
|
136
85
|
* Pure function version of the same function in table foundation
|
|
137
86
|
* This is not accessible in getDerivedStateFromProps, so fork one out
|
package/lib/es/table/utils.js
CHANGED
|
@@ -343,7 +343,7 @@ export function mergeQueries(query) {
|
|
|
343
343
|
* @param {Object[]} newColumns
|
|
344
344
|
*/
|
|
345
345
|
export function withResizeWidth(columns, newColumns) {
|
|
346
|
-
const _newColumns =
|
|
346
|
+
const _newColumns = [...newColumns];
|
|
347
347
|
for (const column of columns) {
|
|
348
348
|
if (!isNullOrUndefined(column.width)) {
|
|
349
349
|
const currentColumn = column.key;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.45.0
|
|
3
|
+
"version": "2.45.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.45.0
|
|
10
|
+
"@douyinfe/semi-animation": "2.45.0",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "9650e522f489de9e6d25e67cfc0fdb2dc6c4663e",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/table/utils.ts
CHANGED
|
@@ -393,7 +393,7 @@ export function mergeQueries(query: Record<string, any>, queries: Record<string,
|
|
|
393
393
|
* @param {Object[]} newColumns
|
|
394
394
|
*/
|
|
395
395
|
export function withResizeWidth(columns: Record<string, any>[], newColumns: Record<string, any>[]) {
|
|
396
|
-
const _newColumns =
|
|
396
|
+
const _newColumns = [ ...newColumns ];
|
|
397
397
|
for (const column of columns) {
|
|
398
398
|
if (!isNullOrUndefined(column.width)) {
|
|
399
399
|
const currentColumn = column.key;
|