@mintplayer/ng-bootstrap 13.3.7 → 13.3.8

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.
@@ -3580,6 +3580,8 @@ class BsOffcanvasComponent {
3580
3580
  constructor(content) {
3581
3581
  this.size = null;
3582
3582
  this.displayBlock = true;
3583
+ this.positionAbsolute = true;
3584
+ this.width100 = true;
3583
3585
  this.instance = null;
3584
3586
  this.show$ = new BehaviorSubject(false);
3585
3587
  this.position$ = new BehaviorSubject('bottom');
@@ -3597,16 +3599,6 @@ class BsOffcanvasComponent {
3597
3599
  }
3598
3600
  }));
3599
3601
  }
3600
- get width100() {
3601
- switch (this.position) {
3602
- case 'top':
3603
- case 'bottom':
3604
- return true;
3605
- default:
3606
- return false;
3607
- }
3608
- }
3609
- ;
3610
3602
  //#region Position
3611
3603
  set position(value) {
3612
3604
  this.position$.next(value);
@@ -3616,10 +3608,10 @@ class BsOffcanvasComponent {
3616
3608
  }
3617
3609
  }
3618
3610
  BsOffcanvasComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: BsOffcanvasComponent, deps: [{ token: OFFCANVAS_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
3619
- BsOffcanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: BsOffcanvasComponent, selector: "bs-offcanvas", inputs: { size: "size" }, host: { properties: { "class.d-block": "this.displayBlock", "class.w-100": "this.width100" } }, ngImport: i0, template: "<div class=\"offcanvas\" [class]=\"offcanvasClass$ | async\"\n [class.show]=\"show$ | async\"\n [class.h-100]=\"offcanvasHeight100$ | async\"\n [style.height.px]=\"size\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [".offcanvas{position:relative;visibility:unset}.offcanvas.offcanvas-bottom,.offcanvas.offcanvas-top{height:auto}\n"], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i1.AsyncPipe } });
3611
+ BsOffcanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.0", type: BsOffcanvasComponent, selector: "bs-offcanvas", inputs: { size: "size" }, host: { properties: { "class.d-block": "this.displayBlock", "class.position-absolute": "this.positionAbsolute", "class.w-100": "this.width100" } }, ngImport: i0, template: "<div class=\"offcanvas overflow-hidden\" [class]=\"offcanvasClass$ | async\"\n [class.show]=\"show$ | async\"\n [class.h-100]=\"offcanvasHeight100$ | async\"\n [style.height.px]=\"size\"\n [class.oc-max-width]=\"['start', 'end'].includes(position)\"\n [class.oc-max-height]=\"['top', 'bottom'].includes(position)\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [".offcanvas.oc-max-width{max-width:calc(100% - 40px)}.offcanvas.oc-max-height{max-height:calc(100% - 40px)}.offcanvas{visibility:unset}.offcanvas.offcanvas-bottom,.offcanvas.offcanvas-top{height:auto}.offcanvas.offcanvas-top{position:initial}\n"], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "async": i1.AsyncPipe } });
3620
3612
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImport: i0, type: BsOffcanvasComponent, decorators: [{
3621
3613
  type: Component,
3622
- args: [{ selector: 'bs-offcanvas', template: "<div class=\"offcanvas\" [class]=\"offcanvasClass$ | async\"\n [class.show]=\"show$ | async\"\n [class.h-100]=\"offcanvasHeight100$ | async\"\n [style.height.px]=\"size\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [".offcanvas{position:relative;visibility:unset}.offcanvas.offcanvas-bottom,.offcanvas.offcanvas-top{height:auto}\n"] }]
3614
+ args: [{ selector: 'bs-offcanvas', template: "<div class=\"offcanvas overflow-hidden\" [class]=\"offcanvasClass$ | async\"\n [class.show]=\"show$ | async\"\n [class.h-100]=\"offcanvasHeight100$ | async\"\n [style.height.px]=\"size\"\n [class.oc-max-width]=\"['start', 'end'].includes(position)\"\n [class.oc-max-height]=\"['top', 'bottom'].includes(position)\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: this }\" ></ng-container>\n</div>", styles: [".offcanvas.oc-max-width{max-width:calc(100% - 40px)}.offcanvas.oc-max-height{max-height:calc(100% - 40px)}.offcanvas{visibility:unset}.offcanvas.offcanvas-bottom,.offcanvas.offcanvas-top{height:auto}.offcanvas.offcanvas-top{position:initial}\n"] }]
3623
3615
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
3624
3616
  type: Inject,
3625
3617
  args: [OFFCANVAS_CONTENT]
@@ -3628,6 +3620,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
3628
3620
  }], displayBlock: [{
3629
3621
  type: HostBinding,
3630
3622
  args: ['class.d-block']
3623
+ }], positionAbsolute: [{
3624
+ type: HostBinding,
3625
+ args: ['class.position-absolute']
3631
3626
  }], width100: [{
3632
3627
  type: HostBinding,
3633
3628
  args: ['class.w-100']