@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.
@@ -18303,6 +18303,7 @@ var SlidePanelComponent = /** @class */ (function () {
18303
18303
  this.closeIcon = "fas fa-chevron-left";
18304
18304
  this.cache = false;
18305
18305
  this.createOpen = false;
18306
+ this.noOverlap = false;
18306
18307
  this.panelOpened = new EventEmitter();
18307
18308
  this.panelClosed = new EventEmitter();
18308
18309
  this.isOpen = false;
@@ -18310,7 +18311,6 @@ var SlidePanelComponent = /** @class */ (function () {
18310
18311
  this.isAnimating = false;
18311
18312
  this.isContentAnimationDisabled = true;
18312
18313
  this.slideHeight = 0;
18313
- this.sideContentWidth = 0;
18314
18314
  this._unsubscribe$ = new Subject();
18315
18315
  }
18316
18316
  SlidePanelComponent_1 = SlidePanelComponent;
@@ -18339,7 +18339,6 @@ var SlidePanelComponent = /** @class */ (function () {
18339
18339
  // to executed at a safe time prior to control returning to the browser's event loop
18340
18340
  queueMicrotask(function () {
18341
18341
  _this._calculateSlideHeight();
18342
- _this._calculateSideContentWidth();
18343
18342
  _this.isContentAnimationDisabled = false;
18344
18343
  });
18345
18344
  };
@@ -18364,7 +18363,6 @@ var SlidePanelComponent = /** @class */ (function () {
18364
18363
  };
18365
18364
  SlidePanelComponent.prototype.onContentAnimationDone = function () {
18366
18365
  this.isAnimating = false;
18367
- this._calculateSideContentWidth();
18368
18366
  };
18369
18367
  SlidePanelComponent.prototype._checkOverBehavior = function () {
18370
18368
  this.isSlideOver = window.innerWidth <= SMALL_DEVICE_BREAKPOINT;
@@ -18372,11 +18370,6 @@ var SlidePanelComponent = /** @class */ (function () {
18372
18370
  SlidePanelComponent.prototype._calculateSlideHeight = function () {
18373
18371
  this.slideHeight = this._sideContentRef.nativeElement.clientHeight;
18374
18372
  };
18375
- SlidePanelComponent.prototype._calculateSideContentWidth = function () {
18376
- var slidePanelWidth = this._slidePanelRef.nativeElement.getBoundingClientRect().width;
18377
- var slideContentWidth = this._slideContentRef.nativeElement.getBoundingClientRect().width;
18378
- this.sideContentWidth = slidePanelWidth - slideContentWidth;
18379
- };
18380
18373
  var SlidePanelComponent_1;
18381
18374
  SlidePanelComponent.nextId = 0;
18382
18375
  SlidePanelComponent.ctorParameters = function () { return [
@@ -18397,18 +18390,15 @@ var SlidePanelComponent = /** @class */ (function () {
18397
18390
  __decorate([
18398
18391
  Input()
18399
18392
  ], SlidePanelComponent.prototype, "createOpen", void 0);
18393
+ __decorate([
18394
+ Input()
18395
+ ], SlidePanelComponent.prototype, "noOverlap", void 0);
18400
18396
  __decorate([
18401
18397
  Output()
18402
18398
  ], SlidePanelComponent.prototype, "panelOpened", void 0);
18403
18399
  __decorate([
18404
18400
  Output()
18405
18401
  ], SlidePanelComponent.prototype, "panelClosed", void 0);
18406
- __decorate([
18407
- ViewChild("slidePanel")
18408
- ], SlidePanelComponent.prototype, "_slidePanelRef", void 0);
18409
- __decorate([
18410
- ViewChild("slideContent")
18411
- ], SlidePanelComponent.prototype, "_slideContentRef", void 0);
18412
18402
  __decorate([
18413
18403
  ViewChild("sideContent")
18414
18404
  ], SlidePanelComponent.prototype, "_sideContentRef", void 0);
@@ -18418,7 +18408,7 @@ var SlidePanelComponent = /** @class */ (function () {
18418
18408
  SlidePanelComponent = SlidePanelComponent_1 = __decorate([
18419
18409
  Component({
18420
18410
  selector: "s-slide-panel",
18421
- 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>",
18411
+ 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>",
18422
18412
  animations: [
18423
18413
  trigger("cachelessAnimation", [
18424
18414
  transition(":enter", [
@@ -18436,7 +18426,7 @@ var SlidePanelComponent = /** @class */ (function () {
18436
18426
  transition("* => *", animate("200ms")),
18437
18427
  ]),
18438
18428
  ],
18439
- 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}"]
18429
+ 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}"]
18440
18430
  })
18441
18431
  ], SlidePanelComponent);
18442
18432
  return SlidePanelComponent;