@douyinfe/semi-foundation 2.53.2 → 2.53.3-alpha.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.
@@ -171,10 +171,8 @@ declare class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<Re
171
171
  stopPropagation(e: any): void;
172
172
  /**
173
173
  * Add non-repeating elements to the array itself
174
- * @param {Array} srcArr
175
- * @param {Object} objArrs
176
174
  */
177
- _addNoDuplicatedItemsToArr(srcArr?: any[], ...objArrs: any[]): any[];
175
+ _addNoDuplicatedItemsToArr(srcArr?: any[], ...objArrs: any[][]): any[];
178
176
  _notifyChange(pagination: BasePagination, filters?: BaseChangeInfoFilter<RecordType>[], sorter?: BaseChangeInfoSorter<RecordType>, extra?: RecordType): void;
179
177
  _rowExpansionIsControlled(): boolean;
180
178
  _pagerIsControlled(): boolean;
@@ -146,7 +146,7 @@ class TableFoundation extends _foundation.default {
146
146
  if (defaultExpandAllRows || expandAllRows) {
147
147
  this._addNoDuplicatedItemsToArr(expandedRowKeys, this.getAllRowKeys(dataSource), groups && (0, _isMap2.default)(groups) && groups.size ? Array.from(groups.keys()) : []);
148
148
  } else if (defaultExpandAllGroupRows || expandAllGroupRows) {
149
- this._addNoDuplicatedItemsToArr(expandedRowKeys, groups && (0, _isMap2.default)(groups) && groups.size ? Array.from(groups.keys()) : []);
149
+ this._addNoDuplicatedItemsToArr(expandedRowKeys, propExpandedRowKeys, groups && (0, _isMap2.default)(groups) && groups.size ? Array.from(groups.keys()) : []);
150
150
  } else if (Array.isArray(defaultExpandedRowKeys) && defaultExpandedRowKeys.length) {
151
151
  this._addNoDuplicatedItemsToArr(expandedRowKeys, defaultExpandedRowKeys);
152
152
  } else if (Array.isArray(propExpandedRowKeys) && propExpandedRowKeys.length) {
@@ -432,8 +432,6 @@ class TableFoundation extends _foundation.default {
432
432
  }
433
433
  /**
434
434
  * Add non-repeating elements to the array itself
435
- * @param {Array} srcArr
436
- * @param {Object} objArrs
437
435
  */
438
436
  _addNoDuplicatedItemsToArr() {
439
437
  let srcArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
83
83
  export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
84
84
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
85
85
  export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
86
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
86
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
87
87
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
88
88
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("auto" | "custom")[];
21
+ UPLOAD_TRIGGER: ("custom" | "auto")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
@@ -171,10 +171,8 @@ declare class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<Re
171
171
  stopPropagation(e: any): void;
172
172
  /**
173
173
  * Add non-repeating elements to the array itself
174
- * @param {Array} srcArr
175
- * @param {Object} objArrs
176
174
  */
177
- _addNoDuplicatedItemsToArr(srcArr?: any[], ...objArrs: any[]): any[];
175
+ _addNoDuplicatedItemsToArr(srcArr?: any[], ...objArrs: any[][]): any[];
178
176
  _notifyChange(pagination: BasePagination, filters?: BaseChangeInfoFilter<RecordType>[], sorter?: BaseChangeInfoSorter<RecordType>, extra?: RecordType): void;
179
177
  _rowExpansionIsControlled(): boolean;
180
178
  _pagerIsControlled(): boolean;
@@ -139,7 +139,7 @@ class TableFoundation extends BaseFoundation {
139
139
  if (defaultExpandAllRows || expandAllRows) {
140
140
  this._addNoDuplicatedItemsToArr(expandedRowKeys, this.getAllRowKeys(dataSource), groups && _isMap(groups) && groups.size ? Array.from(groups.keys()) : []);
141
141
  } else if (defaultExpandAllGroupRows || expandAllGroupRows) {
142
- this._addNoDuplicatedItemsToArr(expandedRowKeys, groups && _isMap(groups) && groups.size ? Array.from(groups.keys()) : []);
142
+ this._addNoDuplicatedItemsToArr(expandedRowKeys, propExpandedRowKeys, groups && _isMap(groups) && groups.size ? Array.from(groups.keys()) : []);
143
143
  } else if (Array.isArray(defaultExpandedRowKeys) && defaultExpandedRowKeys.length) {
144
144
  this._addNoDuplicatedItemsToArr(expandedRowKeys, defaultExpandedRowKeys);
145
145
  } else if (Array.isArray(propExpandedRowKeys) && propExpandedRowKeys.length) {
@@ -425,8 +425,6 @@ class TableFoundation extends BaseFoundation {
425
425
  }
426
426
  /**
427
427
  * Add non-repeating elements to the array itself
428
- * @param {Array} srcArr
429
- * @param {Object} objArrs
430
428
  */
431
429
  _addNoDuplicatedItemsToArr() {
432
430
  let srcArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
83
83
  export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
84
84
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
85
85
  export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
86
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
86
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
87
87
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
88
88
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("auto" | "custom")[];
21
+ UPLOAD_TRIGGER: ("custom" | "auto")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.53.2",
3
+ "version": "2.53.3-alpha.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.53.2",
10
+ "@douyinfe/semi-animation": "2.53.3-alpha.0",
11
11
  "async-validator": "^3.5.0",
12
12
  "classnames": "^2.2.6",
13
13
  "date-fns": "^2.29.3",
@@ -24,7 +24,7 @@
24
24
  "*.scss",
25
25
  "*.css"
26
26
  ],
27
- "gitHead": "89bf62ba8b59c0c2c43eaa46922fa9a1ff6a3e35",
27
+ "gitHead": "b9d82ea026872a23f175baa4be890f167b7e4491",
28
28
  "devDependencies": {
29
29
  "@babel/plugin-transform-runtime": "^7.15.8",
30
30
  "@babel/preset-env": "^7.15.8",
@@ -204,6 +204,7 @@ class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<RecordType
204
204
  } else if (defaultExpandAllGroupRows || expandAllGroupRows) {
205
205
  this._addNoDuplicatedItemsToArr(
206
206
  expandedRowKeys,
207
+ propExpandedRowKeys,
207
208
  groups && isMap(groups) && groups.size ? Array.from(groups.keys()) : []
208
209
  );
209
210
  } else if (Array.isArray(defaultExpandedRowKeys) && defaultExpandedRowKeys.length) {
@@ -563,10 +564,8 @@ class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<RecordType
563
564
 
564
565
  /**
565
566
  * Add non-repeating elements to the array itself
566
- * @param {Array} srcArr
567
- * @param {Object} objArrs
568
567
  */
569
- _addNoDuplicatedItemsToArr(srcArr: any[] = [], ...objArrs: any[]) {
568
+ _addNoDuplicatedItemsToArr(srcArr: any[] = [], ...objArrs: any[][]) {
570
569
  for (const objArr of objArrs) {
571
570
  if (Array.isArray(objArr)) {
572
571
  for (const item of objArr) {