@netless/telebox-insider 0.3.0-beta.8 → 0.3.0-beta.9
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.
|
@@ -3232,7 +3232,7 @@ class TeleBoxManager {
|
|
|
3232
3232
|
const box = this.getBox(targetBox.id);
|
|
3233
3233
|
if (box) {
|
|
3234
3234
|
let isFocusChanged = false;
|
|
3235
|
-
if (
|
|
3235
|
+
if (box.focus) {
|
|
3236
3236
|
this.blurBox(box);
|
|
3237
3237
|
isFocusChanged = true;
|
|
3238
3238
|
}
|
|
@@ -3262,7 +3262,7 @@ class TeleBoxManager {
|
|
|
3262
3262
|
const box = this.getBox(targetBox.id);
|
|
3263
3263
|
if (box) {
|
|
3264
3264
|
let isFocusChanged = false;
|
|
3265
|
-
if (
|
|
3265
|
+
if (box.focus) {
|
|
3266
3266
|
this.blurBox(box);
|
|
3267
3267
|
isFocusChanged = true;
|
|
3268
3268
|
}
|
|
@@ -3408,13 +3408,12 @@ class TeleBoxManager {
|
|
|
3408
3408
|
}
|
|
3409
3409
|
});
|
|
3410
3410
|
this.effectBoxStatusChange();
|
|
3411
|
+
console.log("effectBoxesStatusTimerFunc===>newTopBox", newTopBox, curTopBox);
|
|
3411
3412
|
if (newTopBox && curTopBox !== newTopBox) {
|
|
3412
3413
|
this.topBox$.setValue(newTopBox);
|
|
3413
|
-
this.focusBox(newTopBox, skipUpdate);
|
|
3414
3414
|
}
|
|
3415
3415
|
if (!newTopBox && curTopBox) {
|
|
3416
3416
|
this.topBox$.setValue(void 0);
|
|
3417
|
-
this.blurBox(curTopBox, skipUpdate);
|
|
3418
3417
|
}
|
|
3419
3418
|
}
|
|
3420
3419
|
async effectBoxesStatusChange(skipUpdate = false) {
|
|
@@ -3670,12 +3669,9 @@ class TeleBoxManager {
|
|
|
3670
3669
|
}
|
|
3671
3670
|
});
|
|
3672
3671
|
box._delegateEvents.on(TELE_BOX_DELEGATE_EVENT.Minimize, () => {
|
|
3673
|
-
var _a2;
|
|
3674
3672
|
if (box.boxStatus && this.useBoxesStatus) {
|
|
3675
|
-
if (
|
|
3676
|
-
|
|
3677
|
-
this.blurBox(this.topBox);
|
|
3678
|
-
}
|
|
3673
|
+
if (box.focus) {
|
|
3674
|
+
this.blurBox(box);
|
|
3679
3675
|
}
|
|
3680
3676
|
this.setBox(box, {
|
|
3681
3677
|
status: TELE_BOX_STATE.Minimized,
|
|
@@ -3688,6 +3684,9 @@ class TeleBoxManager {
|
|
|
3688
3684
|
}
|
|
3689
3685
|
});
|
|
3690
3686
|
box._delegateEvents.on(TELE_BOX_DELEGATE_EVENT.Close, () => {
|
|
3687
|
+
if (this.useBoxesStatus && box.focus) {
|
|
3688
|
+
this.blurBox(box);
|
|
3689
|
+
}
|
|
3691
3690
|
this.remove(box);
|
|
3692
3691
|
this.focusTopBox();
|
|
3693
3692
|
});
|