@db-ux/ngx-core-components 2.0.8 → 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.8",
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.8",
30
- "@db-ux/core-foundations": "2.0.8",
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
@@ -13,6 +13,7 @@ export type GlobalProps = {
13
13
  */
14
14
  class?: string | any;
15
15
  /**
16
+ * @deprecated
16
17
  * [`aria-describedby`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby) is used to link to the elements that describe the element with the set attribute.
17
18
  */
18
19
  describedbyid?: string;
@@ -148,9 +149,6 @@ export type PopoverProps = {
148
149
  */
149
150
  width?: PopoverWidthType;
150
151
  };
151
- export type PopoverState = {
152
- handleAutoPlacement: () => void;
153
- };
154
152
  export type NameProps = {
155
153
  /**
156
154
  * The name attribute gives the name of the element to group it.
@@ -491,3 +489,14 @@ export type ValueLabelType = {
491
489
  value: string;
492
490
  label?: string;
493
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;