@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/components/custom-select/custom-select.d.ts +5 -2
- package/components/custom-select/model.d.ts +3 -2
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/model.d.ts +1 -3
- package/components/popover/model.d.ts +0 -1
- package/components/popover/popover.d.ts +8 -3
- package/components/select/model.d.ts +2 -1
- package/components/stack/stack.d.ts +1 -1
- package/components/tooltip/model.d.ts +5 -3
- package/components/tooltip/tooltip.d.ts +10 -3
- package/fesm2022/db-ux-ngx-core-components.mjs +594 -233
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/package.json +3 -3
- package/shared/model.d.ts +11 -3
- package/utils/document-scroll-listener.d.ts +9 -0
- package/utils/floating-components.d.ts +7 -0
- package/utils/index.d.ts +0 -13
- package/utils/navigation.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/ngx-core-components",
|
|
3
|
-
"version": "2.0.
|
|
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.
|
|
30
|
-
"@db-ux/core-foundations": "2.0.
|
|
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,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>;
|
package/utils/navigation.d.ts
CHANGED
|
@@ -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:
|
|
18
|
+
constructor(element: HTMLElement | null, subNavigation: HTMLElement | null);
|
|
19
19
|
private init;
|
|
20
20
|
enableFollow(): void;
|
|
21
21
|
disableFollow(): void;
|