@db-ux/ngx-core-components 2.0.9 → 2.0.10-popover-d7e8b9a

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/ngx-core-components",
3
- "version": "2.0.9",
3
+ "version": "2.0.10-popover-d7e8b9a",
4
4
  "description": "Angular components @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@db-ux/core-components": "2.0.9",
30
- "@db-ux/core-foundations": "2.0.9",
29
+ "@db-ux/core-components": "2.0.10-popover-d7e8b9a",
30
+ "@db-ux/core-foundations": "2.0.10-popover-d7e8b9a",
31
31
  "tslib": "^2.3.0"
32
32
  }
33
33
  }
package/shared/model.d.ts CHANGED
@@ -149,9 +149,6 @@ export type PopoverProps = {
149
149
  */
150
150
  width?: PopoverWidthType;
151
151
  };
152
- export type PopoverState = {
153
- handleAutoPlacement: () => void;
154
- };
155
152
  export type NameProps = {
156
153
  /**
157
154
  * The name attribute gives the name of the element to group it.
@@ -492,3 +489,14 @@ export type ValueLabelType = {
492
489
  value: string;
493
490
  label?: string;
494
491
  };
492
+ export type DocumentScrollState = {
493
+ _documentScrollListenerCallbackId?: string;
494
+ handleDocumentScroll: (event: any, parent?: HTMLElement) => void;
495
+ _observer?: IntersectionObserver;
496
+ };
497
+ export type PopoverState = {
498
+ handleEscape: (event: any) => void;
499
+ handleAutoPlacement: (parent?: HTMLElement) => void;
500
+ handleEnter: (parent?: HTMLElement) => void;
501
+ handleLeave: (event?: any) => void;
502
+ } & DocumentScrollState;
@@ -0,0 +1,9 @@
1
+ export declare class DocumentScrollListener {
2
+ private static callbacks;
3
+ private static _instance;
4
+ private static runCallbacks;
5
+ private ticking;
6
+ constructor();
7
+ addCallback(callback: (event: any) => void): string;
8
+ removeCallback(id: string): void;
9
+ }
@@ -0,0 +1,7 @@
1
+ export interface DBDataOutsidePair {
2
+ vx?: 'left' | 'right';
3
+ vy?: 'top' | 'bottom';
4
+ }
5
+ export declare const handleDataOutside: (el: HTMLElement) => DBDataOutsidePair;
6
+ export declare const handleFixedDropdown: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
7
+ export declare const handleFixedPopover: (element: HTMLElement, parent: HTMLElement, placement: string) => void;
package/utils/index.d.ts CHANGED
@@ -7,19 +7,6 @@ export type ClassNameArg = string | {
7
7
  [key: string]: boolean | undefined;
8
8
  } | undefined;
9
9
  export declare const cls: (...args: ClassNameArg[]) => string;
10
- export declare const visibleInVX: (el: Element) => boolean;
11
- export declare const visibleInVY: (el: Element) => boolean;
12
- export declare const isInView: (el: Element) => {
13
- outTop: boolean;
14
- outBottom: boolean;
15
- outLeft: boolean;
16
- outRight: boolean;
17
- };
18
- export interface DBDataOutsidePair {
19
- vx?: 'left' | 'right';
20
- vy?: 'top' | 'bottom';
21
- }
22
- export declare const handleDataOutside: (el: Element) => DBDataOutsidePair;
23
10
  export declare const isArrayOfStrings: (value: unknown) => value is string[];
24
11
  export declare const hasVoiceOver: () => boolean;
25
12
  export declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
@@ -15,7 +15,7 @@ export declare class NavigationItemSafeTriangle {
15
15
  private initialized;
16
16
  private mouseX;
17
17
  private mouseY;
18
- constructor(element: HTMLElement | null, subNavigation: Element | null);
18
+ constructor(element: HTMLElement | null, subNavigation: HTMLElement | null);
19
19
  private init;
20
20
  enableFollow(): void;
21
21
  disableFollow(): void;