@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.
@@ -2452,6 +2452,7 @@ const DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH = 320;
2452
2452
  const INITIAL_STATE = {
2453
2453
  reverseSizing: false,
2454
2454
  showRight: false,
2455
+ hasRight: false,
2455
2456
  fullLeft: false,
2456
2457
  minRightWidth: DEFAULT_TWO_COLUMNS_MIN_RIGHT_WIDTH
2457
2458
  };
@@ -2475,11 +2476,19 @@ class TwoColumnsContextStore extends ComponentStore {
2475
2476
  /**
2476
2477
  * Pipes the current state of showRight.
2477
2478
  */
2478
- this.showRight$ = this.state$.pipe(map((x) => x.showRight));
2479
+ this.hasRight$ = this.state$.pipe(map((x) => x.showRight));
2480
+ /**
2481
+ * Pipes the current state of showRight.
2482
+ */
2483
+ this.currentShowRight$ = this.state$.pipe(map((x) => x.showRight));
2484
+ /**
2485
+ * Pipes the current state of showRight and hasRight
2486
+ */
2487
+ this.showRight$ = this.state$.pipe(map((x) => x.hasRight && x.showRight));
2479
2488
  /**
2480
2489
  * Convenience function for the showRight compliment.
2481
2490
  */
2482
- this.hideRight$ = this.state$.pipe(map((x) => !x.showRight));
2491
+ this.hideRight$ = this.showRight$.pipe(map((x) => !x));
2483
2492
  /**
2484
2493
  * Pipes the current state of fullLeft.
2485
2494
  */
@@ -2487,7 +2496,7 @@ class TwoColumnsContextStore extends ComponentStore {
2487
2496
  /**
2488
2497
  * Whether or not to show the full left.
2489
2498
  */
2490
- this.showFullLeft$ = this.state$.pipe(map((x) => !x.showRight && x.fullLeft));
2499
+ this.showFullLeft$ = this.state$.pipe(map((x) => !(x.hasRight && x.showRight) && x.fullLeft));
2491
2500
  /**
2492
2501
  * Pipes the current backRef value.
2493
2502
  */
@@ -2505,6 +2514,10 @@ class TwoColumnsContextStore extends ComponentStore {
2505
2514
  * Changes the state to show right or not.
2506
2515
  */
2507
2516
  this.setReverseSizing = this.updater((state, reverseSizing) => (isMaybeNot(reverseSizing) ? state : { ...state, reverseSizing }));
2517
+ /**
2518
+ * Changes the state to have right content or not.
2519
+ */
2520
+ this.setHasRight = this.updater((state, hasRight) => (isMaybeNot(hasRight) ? state : { ...state, hasRight }));
2508
2521
  /**
2509
2522
  * Changes the state to show right or not.
2510
2523
  */
@@ -2783,12 +2796,12 @@ class DbxTwoColumnRightComponent {
2783
2796
  }
2784
2797
  ngAfterViewInit() {
2785
2798
  setTimeout(() => {
2786
- this.twoColumnsContextStore.setShowRight(true);
2799
+ this.twoColumnsContextStore.setHasRight(true);
2787
2800
  });
2788
2801
  }
2789
2802
  ngOnDestroy() {
2790
2803
  this._showBack.complete();
2791
- this.twoColumnsContextStore.setShowRight(false);
2804
+ this.twoColumnsContextStore.setHasRight(false);
2792
2805
  }
2793
2806
  get showBack() {
2794
2807
  return this._showBack.value;
@@ -6820,8 +6833,8 @@ class DbxPopupService {
6820
6833
  position
6821
6834
  },
6822
6835
  configuration: {
6823
- width: APP_POPUP_NORMAL_WIDTH,
6824
- height: APP_POPUP_NORMAL_HEIGHT,
6836
+ width: config.width ?? APP_POPUP_NORMAL_WIDTH,
6837
+ height: config.height ?? APP_POPUP_NORMAL_HEIGHT,
6825
6838
  useGlobalPositionStrategy: true,
6826
6839
  hasBackdrop: false,
6827
6840
  isResizable: false,