@douyinfe/semi-foundation 2.38.3-alpha.2-patch-table-datepicker-aria → 2.38.3-alpha.2-path-settimeout

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.
@@ -33,7 +33,9 @@ class SubNavFoundation extends _foundation.default {
33
33
  // this.log('invoke SubNavFoundation init()');
34
34
  this._timer = null;
35
35
  }
36
- destroy() {} // eslint-disable-line
36
+ destroy() {
37
+ this.clearDelayTimer();
38
+ }
37
39
  clearDelayTimer() {
38
40
  if (this._timer) {
39
41
  clearTimeout(this._timer);
@@ -2,7 +2,7 @@ declare const cssClasses: {
2
2
  PREFIX: string;
3
3
  };
4
4
  declare const strings: {
5
- BOUNDARY_SET: ("end" | "start")[];
5
+ BOUNDARY_SET: ("start" | "end")[];
6
6
  POSITION_SET: string[];
7
7
  MODE_SET: string[];
8
8
  MODE_MAP: {
@@ -235,6 +235,7 @@ class Tooltip extends _foundation.default {
235
235
  this._adapter.unregisterClickOutsideHandler();
236
236
  this.unBindResizeEvent();
237
237
  this.unBindScrollEvent();
238
+ clearTimeout(this._timer);
238
239
  }
239
240
  _bindTriggerEvent(triggerEventSet) {
240
241
  this._adapter.registerTriggerEvent(triggerEventSet);
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  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
  };
@@ -26,7 +26,9 @@ export default class SubNavFoundation extends BaseFoundation {
26
26
  // this.log('invoke SubNavFoundation init()');
27
27
  this._timer = null;
28
28
  }
29
- destroy() {} // eslint-disable-line
29
+ destroy() {
30
+ this.clearDelayTimer();
31
+ }
30
32
  clearDelayTimer() {
31
33
  if (this._timer) {
32
34
  clearTimeout(this._timer);
@@ -2,7 +2,7 @@ declare const cssClasses: {
2
2
  PREFIX: string;
3
3
  };
4
4
  declare const strings: {
5
- BOUNDARY_SET: ("end" | "start")[];
5
+ BOUNDARY_SET: ("start" | "end")[];
6
6
  POSITION_SET: string[];
7
7
  MODE_SET: string[];
8
8
  MODE_MAP: {
@@ -227,6 +227,7 @@ export default class Tooltip extends BaseFoundation {
227
227
  this._adapter.unregisterClickOutsideHandler();
228
228
  this.unBindResizeEvent();
229
229
  this.unBindScrollEvent();
230
+ clearTimeout(this._timer);
230
231
  }
231
232
  _bindTriggerEvent(triggerEventSet) {
232
233
  this._adapter.registerTriggerEvent(triggerEventSet);
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  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
  };
@@ -52,7 +52,9 @@ export default class SubNavFoundation<P = Record<string, any>, S = Record<string
52
52
  this._timer = null;
53
53
  }
54
54
 
55
- destroy() {} // eslint-disable-line
55
+ destroy() {
56
+ this.clearDelayTimer();
57
+ }
56
58
 
57
59
  clearDelayTimer() {
58
60
  if (this._timer) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.38.3-alpha.2-patch-table-datepicker-aria",
3
+ "version": "2.38.3-alpha.2-path-settimeout",
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.38.3-alpha.2-patch-table-datepicker-aria",
10
+ "@douyinfe/semi-animation": "2.38.3-alpha.2-path-settimeout",
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": "b6b81ecee00277b1eea96fbc564a06541712e576",
26
+ "gitHead": "6ee0dec58c24d51eec631bc922854834afc548cf",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",
@@ -115,6 +115,7 @@ export default class Tooltip<P = Record<string, any>, S = Record<string, any>> e
115
115
  this._adapter.unregisterClickOutsideHandler();
116
116
  this.unBindResizeEvent();
117
117
  this.unBindScrollEvent();
118
+ clearTimeout(this._timer);
118
119
  }
119
120
 
120
121
  _bindTriggerEvent(triggerEventSet: Record<string, any>) {