raise-common-lib 0.0.216 → 0.0.218

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.
@@ -31,6 +31,7 @@ export declare class CommonGridComponent implements OnInit, OnChanges {
31
31
  childGrid: any;
32
32
  frozenColumns: any;
33
33
  columnChooserSettings: any;
34
+ headerTemplate: TemplateRef<any>;
34
35
  /**
35
36
  * Sample: [
36
37
  {
@@ -14,6 +14,7 @@ export declare class CommonDialogComponent implements OnInit {
14
14
  showErrorIcon: boolean;
15
15
  showZoomBtn: boolean;
16
16
  customSave: boolean;
17
+ customPageTitle: boolean;
17
18
  onCloseRequest: Function;
18
19
  dialogStyle: {};
19
20
  size: string;
@@ -0,0 +1,55 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnChanges, SimpleChanges } from "@angular/core";
2
+ export declare type PlacementType = "TopLeft" | "TopCenter" | "TopRight" | "BottomLeft" | "BottomCenter" | "BottomRight" | "LeftTop" | "LeftCenter" | "LeftBottom" | "RightTop" | "RightCenter" | "RightBottom";
3
+ export declare class SmartPopupComponent implements AfterViewInit, OnDestroy, OnChanges {
4
+ private ref;
5
+ _placement: PlacementType;
6
+ _offset: number;
7
+ _autoAdjust: "yes" | "no";
8
+ triggerElementRef: HTMLElement | null;
9
+ loading: boolean;
10
+ _open: boolean;
11
+ _width: number | null;
12
+ _height: number | null;
13
+ readonly placementInfo: {
14
+ placement: "top" | "left" | "right" | "bottom";
15
+ position: "start" | "center" | "end";
16
+ };
17
+ readonly offset: number;
18
+ readonly autoAdjust: boolean;
19
+ openChange: EventEmitter<boolean>;
20
+ contentLoad: EventEmitter<void>;
21
+ internalTriggerElement: ElementRef<HTMLElement>;
22
+ popupElement: ElementRef<HTMLDivElement>;
23
+ currentTriggerElement: HTMLElement | null;
24
+ constructor(ref: ChangeDetectorRef);
25
+ ngAfterViewInit(): void;
26
+ ngOnChanges(changes: SimpleChanges): void;
27
+ ngOnDestroy(): void;
28
+ updateTriggerElement(): void;
29
+ FIXED_CONTAINER_ID: string;
30
+ fixedContainerEl: HTMLElement;
31
+ getFixedContainer(): HTMLElement;
32
+ opened: "yes" | "no";
33
+ positioning: "yes" | "no";
34
+ actualPlacement: "top" | "left" | "right" | "bottom";
35
+ actualPosition: "start" | "center" | "end";
36
+ open(triggerElement?: HTMLElement): void;
37
+ private openPopup;
38
+ close(): void;
39
+ toggle(): void;
40
+ onClickTrigger(event: MouseEvent): void;
41
+ onClickOutside: (event: MouseEvent) => void;
42
+ onWindowScroll: () => void;
43
+ private calculateAndSetPosition;
44
+ updatePopupPosition(): void;
45
+ calculateOptimalPlacement(triggerRect: DOMRect | ClientRect, popupRect: DOMRect | ClientRect, viewportWidth: number, viewportHeight: number): {
46
+ placement: "top" | "left" | "right" | "bottom";
47
+ position: "start" | "center" | "end";
48
+ };
49
+ private calculatePositionCoordinates;
50
+ setPopupPosition(triggerRect: DOMRect | ClientRect, popupRect: DOMRect | ClientRect, placement: "top" | "left" | "right" | "bottom", position: "start" | "center" | "end", popupSize?: {
51
+ width: number;
52
+ height: number;
53
+ }): void;
54
+ onWindowResize(): void;
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.216",
3
+ "version": "0.0.218",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"
package/public-api.d.ts CHANGED
@@ -27,6 +27,7 @@ export * from "./lib/form/search-input/index.component";
27
27
  export * from "./lib/form/drawer-form/drawer-form.component";
28
28
  export * from "./lib/form/drawer-form/constants";
29
29
  export * from "./lib/dialog/common-dialog/index.component";
30
+ export * from "./lib/smart-popup/index.component";
30
31
  export * from "./lib/dashboard/pane-group-new.component";
31
32
  export * from "./lib/service/common-function.service";
32
33
  export * from "./lib/service/icon-loader.service";