@yesilyazilim/web.spa 1.0.46 → 1.0.48

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.
Files changed (3) hide show
  1. package/index.js +15 -5
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1643,6 +1643,7 @@ let $ff230024ca06577c$var$DialogContent = $ff230024ca06577c$var$DialogContent_1
1643
1643
  this.setPos((pw - w) / 2, (ph - h) / 2);
1644
1644
  this.setSize(w, h);
1645
1645
  this._lastParent = parent;
1646
+ if (this.content instanceof (0, $05c91032b5651e7d$export$79d5dfb74263bfe1)) this.content.onPanelShow();
1646
1647
  }
1647
1648
  get x() {
1648
1649
  return this._x;
@@ -1709,15 +1710,17 @@ let $ff230024ca06577c$var$DialogContent = $ff230024ca06577c$var$DialogContent_1
1709
1710
  const sW = this.w;
1710
1711
  const sH = this.h;
1711
1712
  tb.setPointerCapture(pointerDownEvt.pointerId);
1713
+ this._warnPanelResize(true);
1712
1714
  const handleMove = (pointerMoveEvt)=>{
1713
1715
  const nx = pointerMoveEvt.clientX - startX;
1714
1716
  const ny = pointerMoveEvt.clientY - startY;
1715
1717
  this.setSize(sW + nx, sH + ny);
1716
1718
  };
1717
1719
  tb.addEventListener('pointermove', handleMove);
1718
- tb.addEventListener('pointerup', function(pointerUpEvt) {
1720
+ tb.addEventListener('pointerup', (pointerUpEvt)=>{
1719
1721
  tb.removeEventListener('pointermove', handleMove);
1720
1722
  tb.releasePointerCapture(pointerUpEvt.pointerId);
1723
+ this._warnPanelResize(false);
1721
1724
  }, {
1722
1725
  once: true
1723
1726
  });
@@ -1737,6 +1740,9 @@ let $ff230024ca06577c$var$DialogContent = $ff230024ca06577c$var$DialogContent_1
1737
1740
  }
1738
1741
  if (otherLastInx > myIndex) this.parentElement.insertBefore(this, null);
1739
1742
  }
1743
+ _warnPanelResize(start) {
1744
+ if (this.content instanceof (0, $05c91032b5651e7d$export$79d5dfb74263bfe1)) this.content.onPanelResize(start);
1745
+ }
1740
1746
  };
1741
1747
  $ff230024ca06577c$var$DialogContent = $ff230024ca06577c$var$DialogContent_1 = $ff230024ca06577c$var$__decorate([
1742
1748
  (0, $450614f9d282ad7a$export$16fa2f45be04daa8)({
@@ -3381,6 +3387,7 @@ $44a665f4c52d71e1$export$bfba7a1dc73b3b24 = $44a665f4c52d71e1$var$__decorate([
3381
3387
  ], $44a665f4c52d71e1$export$bfba7a1dc73b3b24);
3382
3388
 
3383
3389
 
3390
+
3384
3391
  var $5171e0e35cb50421$var$__decorate = undefined && undefined.__decorate || function(decorators, target, key, desc) {
3385
3392
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3386
3393
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -3452,10 +3459,13 @@ let $5171e0e35cb50421$export$1374f173322d64ce = class MainPanel extends (0, $05c
3452
3459
  }
3453
3460
  openItem(pos, item, activate = true) {
3454
3461
  if (item) {
3455
- const panel = this._panels.get(pos);
3456
- if (panel) {
3457
- panel.tabContainer.addTab(item);
3458
- if (activate) panel.tabContainer.activateTab(item.name);
3462
+ if (pos == (0, $a3c2e7787b76c59b$export$304fddd53466c558).Window) (0, $ff230024ca06577c$export$bf84dc02eb5f2bb2).ShowPanel(item, this);
3463
+ else {
3464
+ const panel = this._panels.get(pos);
3465
+ if (panel) {
3466
+ panel.tabContainer.addTab(item);
3467
+ if (activate) panel.tabContainer.activateTab(item.name);
3468
+ }
3459
3469
  }
3460
3470
  }
3461
3471
  }