@douyinfe/semi-foundation 2.84.0 → 2.84.1-alpha.2

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.
@@ -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;
@@ -437,7 +437,7 @@ function filter(sugInput, option, filterTreeNode, filterProps) {
437
437
  if (typeof filterTreeNode === 'boolean') {
438
438
  filterFn = (targetVal, val) => {
439
439
  const input = targetVal.toLowerCase();
440
- return val.toString().toLowerCase().includes(input);
440
+ return val === null || val === void 0 ? void 0 : val.toString().toLowerCase().includes(input);
441
441
  };
442
442
  }
443
443
  if (filterProps) {
@@ -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
  };
@@ -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;
@@ -402,7 +402,7 @@ export function filter(sugInput, option, filterTreeNode, filterProps) {
402
402
  if (typeof filterTreeNode === 'boolean') {
403
403
  filterFn = (targetVal, val) => {
404
404
  const input = targetVal.toLowerCase();
405
- return val.toString().toLowerCase().includes(input);
405
+ return val === null || val === void 0 ? void 0 : val.toString().toLowerCase().includes(input);
406
406
  };
407
407
  }
408
408
  if (filterProps) {
@@ -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,14 +1,14 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.84.0",
3
+ "version": "2.84.1-alpha.2",
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.84.0",
11
- "@douyinfe/semi-json-viewer-core": "2.84.0",
10
+ "@douyinfe/semi-animation": "2.84.1-alpha.2",
11
+ "@douyinfe/semi-json-viewer-core": "2.84.1-alpha.2",
12
12
  "@mdx-js/mdx": "^3.0.1",
13
13
  "async-validator": "^3.5.0",
14
14
  "classnames": "^2.2.6",
@@ -29,7 +29,7 @@
29
29
  "*.scss",
30
30
  "*.css"
31
31
  ],
32
- "gitHead": "4d780233a4efb8368b496e058381f8749b93218c",
32
+ "gitHead": "691d0ea9d33a00b5eb8abbcf9027ab96aa959c2a",
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-runtime": "^7.15.8",
35
35
  "@babel/preset-env": "^7.15.8",
package/tree/treeUtil.ts CHANGED
@@ -437,7 +437,7 @@ export function filter(sugInput: string, option: any, filterTreeNode: any, filte
437
437
  filterFn = (targetVal: string, val: any) => {
438
438
  const input = targetVal.toLowerCase();
439
439
  return val
440
- .toString()
440
+ ?.toString()
441
441
  .toLowerCase()
442
442
  .includes(input);
443
443
  };