@dereekb/dbx-web 9.9.5 → 9.10.1

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.
@@ -2458,6 +2458,7 @@ const DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH = 320;
2458
2458
  const INITIAL_STATE = {
2459
2459
  reverseSizing: false,
2460
2460
  showRight: false,
2461
+ hasRight: false,
2461
2462
  fullLeft: false,
2462
2463
  minRightWidth: DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH
2463
2464
  };
@@ -2482,11 +2483,19 @@ class TwoColumnsContextStore extends ComponentStore {
2482
2483
  /**
2483
2484
  * Pipes the current state of showRight.
2484
2485
  */
2485
- this.showRight$ = this.state$.pipe(map((x) => x.showRight));
2486
+ this.hasRight$ = this.state$.pipe(map((x) => x.showRight));
2487
+ /**
2488
+ * Pipes the current state of showRight.
2489
+ */
2490
+ this.currentShowRight$ = this.state$.pipe(map((x) => x.showRight));
2491
+ /**
2492
+ * Pipes the current state of showRight and hasRight
2493
+ */
2494
+ this.showRight$ = this.state$.pipe(map((x) => x.hasRight && x.showRight));
2486
2495
  /**
2487
2496
  * Convenience function for the showRight compliment.
2488
2497
  */
2489
- this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
2498
+ this.hideRight$ = this.showRight$.pipe(map((x) => !x));
2490
2499
  /**
2491
2500
  * Pipes the current state of fullLeft.
2492
2501
  */
@@ -2494,7 +2503,7 @@ class TwoColumnsContextStore extends ComponentStore {
2494
2503
  /**
2495
2504
  * Whether or not to show the full left.
2496
2505
  */
2497
- this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
2506
+ this.showFullLeft$ = this.state$.pipe(map((x) => !(x.hasRight && x.showRight) && x.fullLeft));
2498
2507
  /**
2499
2508
  * Pipes the current backRef value.
2500
2509
  */
@@ -2512,6 +2521,10 @@ class TwoColumnsContextStore extends ComponentStore {
2512
2521
  * Changes the state to show right or not.
2513
2522
  */
2514
2523
  this.setReverseSizing = this.updater((state, reverseSizing) => (isMaybeNot(reverseSizing) ? state : Object.assign(Object.assign({}, state), { reverseSizing })));
2524
+ /**
2525
+ * Changes the state to have right content or not.
2526
+ */
2527
+ this.setHasRight = this.updater((state, hasRight) => (isMaybeNot(hasRight) ? state : Object.assign(Object.assign({}, state), { hasRight })));
2515
2528
  /**
2516
2529
  * Changes the state to show right or not.
2517
2530
  */
@@ -2792,12 +2805,12 @@ class DbxTwoColumnRightComponent {
2792
2805
  }
2793
2806
  ngAfterViewInit() {
2794
2807
  setTimeout(() => {
2795
- this.twoColumnsContextStore.setShowRight(true);
2808
+ this.twoColumnsContextStore.setHasRight(true);
2796
2809
  });
2797
2810
  }
2798
2811
  ngOnDestroy() {
2799
2812
  this._showBack.complete();
2800
- this.twoColumnsContextStore.setShowRight(false);
2813
+ this.twoColumnsContextStore.setHasRight(false);
2801
2814
  }
2802
2815
  get showBack() {
2803
2816
  return this._showBack.value;
@@ -6847,7 +6860,7 @@ class DbxPopupService {
6847
6860
  this._overlayContainerService = new NgOverlayContainerService(this._overlay, this._injector);
6848
6861
  }
6849
6862
  open(config) {
6850
- var _a, _b;
6863
+ var _a, _b, _c, _d;
6851
6864
  const service = config.injector ? new NgOverlayContainerService(this._overlay, config.injector) : this._overlayContainerService;
6852
6865
  const isDraggable = (_a = config.isDraggable) !== null && _a !== void 0 ? _a : false;
6853
6866
  const position = (_b = config.position) !== null && _b !== void 0 ? _b : 'bottom_right';
@@ -6856,8 +6869,8 @@ class DbxPopupService {
6856
6869
  data: Object.assign(Object.assign({}, config), { isDraggable,
6857
6870
  position }),
6858
6871
  configuration: {
6859
- width: APP_POPUP_NORMAL_WIDTH,
6860
- height: APP_POPUP_NORMAL_HEIGHT,
6872
+ width: (_c = config.width) !== null && _c !== void 0 ? _c : APP_POPUP_NORMAL_WIDTH,
6873
+ height: (_d = config.height) !== null && _d !== void 0 ? _d : APP_POPUP_NORMAL_HEIGHT,
6861
6874
  useGlobalPositionStrategy: true,
6862
6875
  hasBackdrop: false,
6863
6876
  isResizable: false,