@indice/ng-components 0.2.173-beta.35 → 0.2.173-beta.38

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.
@@ -1881,17 +1881,28 @@ class SidePaneComponent {
1881
1881
  this.router = router;
1882
1882
  this.document = document;
1883
1883
  // tslint:disable-next-line:no-input-rename
1884
- this.showPane = false;
1884
+ this._showPane = false;
1885
1885
  this.sizeContainerStyle = 'side-pane-box-size';
1886
1886
  this.overlayStyle = 'side-pane-overlay';
1887
1887
  this.onComplete = new EventEmitter();
1888
1888
  }
1889
+ get showPane() {
1890
+ return this._showPane;
1891
+ }
1892
+ set showPane(value) {
1893
+ if (value) {
1894
+ this.document.body.classList.add('modal-active');
1895
+ }
1896
+ else {
1897
+ this.document.body.classList.remove('modal-active');
1898
+ }
1899
+ this._showPane = value;
1900
+ }
1889
1901
  ngOnDestroy() {
1890
1902
  }
1891
1903
  ngOnInit() {
1892
1904
  }
1893
1905
  onSidePaneActivated(component) {
1894
- this.document.body.classList.add('modal-active');
1895
1906
  let sizeStyleSuffix = '';
1896
1907
  const state = this.router.getCurrentNavigation()?.extras.state;
1897
1908
  if (state) {
@@ -1922,20 +1933,19 @@ class SidePaneComponent {
1922
1933
  this.showPane = true;
1923
1934
  }
1924
1935
  onSidePaneDeactivated($event) {
1925
- this.document.body.classList.remove('modal-active');
1926
1936
  this.showPane = false;
1927
1937
  this.onComplete.emit(true);
1928
1938
  }
1929
1939
  }
1930
1940
  SidePaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: SidePaneComponent, deps: [{ token: i1$1.Router }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
1931
- SidePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: SidePaneComponent, selector: "lib-side-pane", inputs: { showPane: ["visible", "showPane"] }, outputs: { onComplete: "onComplete" }, ngImport: i0, template: "<div *ngIf=\"showPane\" class=\"side-pane-outer-container\" aria-labelledby=\"slide-over\" role=\"dialog\" aria-modal=\"true\">\r\n <div [class]=\"showPane ? overlayStyle : 'hidden'\" aria-hidden=\"true\"></div>\r\n <div [class]=\"showPane ? 'side-pane-container' : 'hidden'\">\r\n <div [class]=\"sizeContainerStyle\">\r\n <div class=\"side-pane\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1941
+ SidePaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: SidePaneComponent, selector: "lib-side-pane", inputs: { _showPane: ["visible", "_showPane"] }, outputs: { onComplete: "onComplete" }, ngImport: i0, template: "<div *ngIf=\"showPane\" class=\"side-pane-outer-container\" aria-labelledby=\"slide-over\" role=\"dialog\" aria-modal=\"true\">\r\n <div [class]=\"showPane ? overlayStyle : 'hidden'\" aria-hidden=\"true\"></div>\r\n <div [class]=\"showPane ? 'side-pane-container' : 'hidden'\">\r\n <div [class]=\"sizeContainerStyle\">\r\n <div class=\"side-pane\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1932
1942
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: SidePaneComponent, decorators: [{
1933
1943
  type: Component,
1934
1944
  args: [{ selector: 'lib-side-pane', template: "<div *ngIf=\"showPane\" class=\"side-pane-outer-container\" aria-labelledby=\"slide-over\" role=\"dialog\" aria-modal=\"true\">\r\n <div [class]=\"showPane ? overlayStyle : 'hidden'\" aria-hidden=\"true\"></div>\r\n <div [class]=\"showPane ? 'side-pane-container' : 'hidden'\">\r\n <div [class]=\"sizeContainerStyle\">\r\n <div class=\"side-pane\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
1935
1945
  }], ctorParameters: function () { return [{ type: i1$1.Router }, { type: undefined, decorators: [{
1936
1946
  type: Inject,
1937
1947
  args: [DOCUMENT]
1938
- }] }]; }, propDecorators: { showPane: [{
1948
+ }] }]; }, propDecorators: { _showPane: [{
1939
1949
  type: Input,
1940
1950
  args: ['visible']
1941
1951
  }], onComplete: [{