@seniorsistemas/angular-components 17.14.1 → 17.14.3

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.
@@ -18448,6 +18448,7 @@
18448
18448
  this.closeIcon = "fas fa-chevron-left";
18449
18449
  this.cache = false;
18450
18450
  this.createOpen = false;
18451
+ this.noOverlap = false;
18451
18452
  this.panelOpened = new core.EventEmitter();
18452
18453
  this.panelClosed = new core.EventEmitter();
18453
18454
  this.isOpen = false;
@@ -18455,7 +18456,6 @@
18455
18456
  this.isAnimating = false;
18456
18457
  this.isContentAnimationDisabled = true;
18457
18458
  this.slideHeight = 0;
18458
- this.sideContentWidth = 0;
18459
18459
  this._unsubscribe$ = new rxjs.Subject();
18460
18460
  }
18461
18461
  SlidePanelComponent_1 = SlidePanelComponent;
@@ -18484,7 +18484,6 @@
18484
18484
  // to executed at a safe time prior to control returning to the browser's event loop
18485
18485
  queueMicrotask(function () {
18486
18486
  _this._calculateSlideHeight();
18487
- _this._calculateSideContentWidth();
18488
18487
  _this.isContentAnimationDisabled = false;
18489
18488
  });
18490
18489
  };
@@ -18509,7 +18508,6 @@
18509
18508
  };
18510
18509
  SlidePanelComponent.prototype.onContentAnimationDone = function () {
18511
18510
  this.isAnimating = false;
18512
- this._calculateSideContentWidth();
18513
18511
  };
18514
18512
  SlidePanelComponent.prototype._checkOverBehavior = function () {
18515
18513
  this.isSlideOver = window.innerWidth <= SMALL_DEVICE_BREAKPOINT;
@@ -18517,11 +18515,6 @@
18517
18515
  SlidePanelComponent.prototype._calculateSlideHeight = function () {
18518
18516
  this.slideHeight = this._sideContentRef.nativeElement.clientHeight;
18519
18517
  };
18520
- SlidePanelComponent.prototype._calculateSideContentWidth = function () {
18521
- var slidePanelWidth = this._slidePanelRef.nativeElement.getBoundingClientRect().width;
18522
- var slideContentWidth = this._slideContentRef.nativeElement.getBoundingClientRect().width;
18523
- this.sideContentWidth = slidePanelWidth - slideContentWidth;
18524
- };
18525
18518
  var SlidePanelComponent_1;
18526
18519
  SlidePanelComponent.nextId = 0;
18527
18520
  SlidePanelComponent.ctorParameters = function () { return [
@@ -18542,18 +18535,15 @@
18542
18535
  __decorate([
18543
18536
  core.Input()
18544
18537
  ], SlidePanelComponent.prototype, "createOpen", void 0);
18538
+ __decorate([
18539
+ core.Input()
18540
+ ], SlidePanelComponent.prototype, "noOverlap", void 0);
18545
18541
  __decorate([
18546
18542
  core.Output()
18547
18543
  ], SlidePanelComponent.prototype, "panelOpened", void 0);
18548
18544
  __decorate([
18549
18545
  core.Output()
18550
18546
  ], SlidePanelComponent.prototype, "panelClosed", void 0);
18551
- __decorate([
18552
- core.ViewChild("slidePanel")
18553
- ], SlidePanelComponent.prototype, "_slidePanelRef", void 0);
18554
- __decorate([
18555
- core.ViewChild("slideContent")
18556
- ], SlidePanelComponent.prototype, "_slideContentRef", void 0);
18557
18547
  __decorate([
18558
18548
  core.ViewChild("sideContent")
18559
18549
  ], SlidePanelComponent.prototype, "_sideContentRef", void 0);
@@ -18563,7 +18553,7 @@
18563
18553
  SlidePanelComponent = SlidePanelComponent_1 = __decorate([
18564
18554
  core.Component({
18565
18555
  selector: "s-slide-panel",
18566
- template: "<div #slidePanel class=\"slide-panel\">\n <div\n #slideContent\n class=\"slide-content\"\n [ngClass]=\"{\n 'slide-content--closed': !isOpen,\n 'slide-content--over': isSlideOver\n }\">\n <div\n #mainContainer\n class=\"main-container\"\n [style.maxHeight]=\"slideHeight + 'px'\">\n <ng-container *ngIf=\"cache; then cacheTemplate else cachelessTemplate\"></ng-container>\n </div>\n <button\n class=\"button\"\n [ngClass]=\"isOpen ? closeIcon : openIcon\"\n (click)=\"onClickButton()\">\n </button>\n </div>\n <div \n #sideContent\n class=\"side-content\"\n [ngStyle]=\"{ 'width.px': sideContentWidth }\">\n <ng-content select=\"[side-content]\"></ng-content>\n </div>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class=\"content-container\"\n [@cacheAnimation]=\"isOpen\"\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cacheAnimation.start)=\"onContentAnimationStart()\"\n (@cacheAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContentTemplate\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf=\"isOpen\"\n class=\"content-container\"\n @cachelessAnimation\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cachelessAnimation.start)=\"onContentAnimationStart()\"\n (@cachelessAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContentTemplate\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContentTemplate>\n <ng-content select=\"[slide-content]\"></ng-content>\n</ng-template>",
18556
+ template: "<div class=\"slide-panel\">\n <div\n class=\"slide-content\"\n [ngClass]=\"{\n 'slide-content--closed': !isOpen,\n 'slide-content--over': isSlideOver,\n 'slide-content--no-overlap': noOverlap\n }\">\n <div\n #mainContainer\n class=\"main-container\"\n [style.maxHeight]=\"slideHeight + 'px'\">\n <ng-container *ngIf=\"cache; then cacheTemplate else cachelessTemplate\"></ng-container>\n </div>\n <button\n class=\"button\"\n [ngClass]=\"isOpen ? closeIcon : openIcon\"\n (click)=\"onClickButton()\">\n </button>\n </div>\n <div \n #sideContent\n class=\"side-content\">\n <ng-content select=\"[side-content]\"></ng-content>\n </div>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class=\"content-container\"\n [@cacheAnimation]=\"isOpen\"\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cacheAnimation.start)=\"onContentAnimationStart()\"\n (@cacheAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContentTemplate\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf=\"isOpen\"\n class=\"content-container\"\n @cachelessAnimation\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cachelessAnimation.start)=\"onContentAnimationStart()\"\n (@cachelessAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContentTemplate\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContentTemplate>\n <ng-content select=\"[slide-content]\"></ng-content>\n</ng-template>",
18567
18557
  animations: [
18568
18558
  animations.trigger("cachelessAnimation", [
18569
18559
  animations.transition(":enter", [
@@ -18581,7 +18571,7 @@
18581
18571
  animations.transition("* => *", animations.animate("200ms")),
18582
18572
  ]),
18583
18573
  ],
18584
- styles: [".slide-panel{display:-ms-flexbox;display:flex;width:100%}.slide-panel .slide-content{display:-ms-flexbox;display:flex;position:relative}.slide-panel .slide-content .main-container{background-color:#eeebf2;display:-ms-flexbox;display:flex;border:1px solid #ccc;overflow:hidden;position:relative}.slide-panel .slide-content .main-container .content-container{overflow-y:auto;overflow-x:hidden;padding:16px}.slide-panel .slide-content .button{-ms-flex-align:center;align-items:center;background-color:#eeebf2;border:1px solid #ccc;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;display:-ms-flexbox;display:flex;font-family:\"Font Awesome 5 Pro\";font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px;z-index:99}.slide-panel .slide-content--closed .main-container{border:none}.slide-panel .slide-content--over{position:absolute}.slide-panel .side-content{display:-ms-flexbox;display:flex;height:-webkit-max-content;height:max-content;overflow:auto;transition:width .1s linear}"]
18574
+ styles: [".slide-panel{display:-ms-flexbox;display:flex;width:100%}.slide-panel .slide-content{display:-ms-flexbox;display:flex;position:relative}.slide-panel .slide-content .main-container{background-color:#eeebf2;display:-ms-flexbox;display:flex;border:1px solid #ccc;overflow:hidden;position:relative}.slide-panel .slide-content .main-container .content-container{overflow-y:auto;overflow-x:hidden;padding:16px}.slide-panel .slide-content .button{-ms-flex-align:center;align-items:center;background-color:#eeebf2;border:1px solid #ccc;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;display:-ms-flexbox;display:flex;font-family:\"Font Awesome 5 Pro\";font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px;z-index:99}.slide-panel .slide-content--closed .main-container{border:none}.slide-panel .slide-content--over{position:absolute}.slide-panel .slide-content--no-overlap{margin-right:32px}.slide-panel .side-content{display:-ms-flexbox;display:flex;height:-webkit-max-content;height:max-content;overflow:auto;transition:width .1s linear}"]
18585
18575
  })
18586
18576
  ], SlidePanelComponent);
18587
18577
  return SlidePanelComponent;