@datarailsshared/datarailsshared 1.4.123 → 1.4.124

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.
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
2
  import { DrPopoverRef } from './dr-popover-ref';
3
3
  import { DrPopoverAlignment, IPopoverManualClosing, Point } from '../models/popover';
4
4
  export declare class DrPopoverComponent<T> implements OnInit {
@@ -7,6 +7,7 @@ export declare class DrPopoverComponent<T> implements OnInit {
7
7
  private viewContainerRef;
8
8
  private elementRef;
9
9
  private popoverRef;
10
+ popoverOpened: EventEmitter<void>;
10
11
  content: TemplateRef<any> | Type<T>;
11
12
  contentContext: any;
12
13
  class: string;
@@ -14,6 +15,7 @@ export declare class DrPopoverComponent<T> implements OnInit {
14
15
  manualClosing: IPopoverManualClosing;
15
16
  alignment: DrPopoverAlignment;
16
17
  position: string;
18
+ freezeToContainerSelector: string;
17
19
  popoverContainer: ElementRef<HTMLElement>;
18
20
  isContentTemplate: boolean;
19
21
  componentRef: ComponentRef<T>;
@@ -23,4 +25,12 @@ export declare class DrPopoverComponent<T> implements OnInit {
23
25
  clickOutside(e: any): void;
24
26
  constructor(cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, elementRef: ElementRef, popoverRef: DrPopoverRef<T>);
25
27
  ngOnInit(): void;
28
+ /**
29
+ * Removing popover element from cdk-overlay and attach to provided container after element is positioned
30
+ * is required for specific case of preserving popover at same position on document while scroll (not fixed)
31
+ *
32
+ * TODO: implement more neat, transparent and Angular way solution: i.e. create another service (or extend existiong one)
33
+ * without attaching component to cdk Overlay and instead positioning it to element passed in directive input parameter
34
+ */
35
+ private repositionToNewContainerAndFreeze;
26
36
  }
@@ -14,7 +14,9 @@ export declare class DrPopoverDirective<T> implements OnDestroy {
14
14
  manualClosing: IPopoverManualClosing;
15
15
  alignment: DrPopoverAlignment;
16
16
  disabled: boolean;
17
+ freezeToContainerSelector: string;
17
18
  popoverClose: EventEmitter<any>;
19
+ popoverOpened: EventEmitter<void>;
18
20
  showStateChange: EventEmitter<{
19
21
  isShown: boolean;
20
22
  }>;
@@ -18,6 +18,7 @@ export interface IDrPopoverComponentModel {
18
18
  manualClosing?: IPopoverManualClosing;
19
19
  targetElement?: HTMLElement;
20
20
  alignment?: DrPopoverAlignment;
21
+ freezeToContainerSelector?: string;
21
22
  }
22
23
  export interface DrPopoverConfig extends OverlayConfig {
23
24
  closeOnBackdropClick?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.4.123",
3
+ "version": "1.4.124",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",