@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/components/checkbox/checkbox.d.ts +2 -1
- package/components/custom-select/custom-select.d.ts +10 -6
- package/components/custom-select/model.d.ts +6 -5
- 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/radio/model.d.ts +1 -3
- package/components/radio/radio.d.ts +2 -1
- package/components/select/model.d.ts +2 -1
- package/components/select/select.d.ts +2 -1
- package/components/stack/stack.d.ts +1 -1
- package/components/switch/switch.d.ts +2 -1
- package/components/textarea/textarea.d.ts +2 -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 +685 -311
- package/fesm2022/db-ux-ngx-core-components.mjs.map +1 -1
- package/package.json +3 -3
- package/shared/model.d.ts +12 -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
|
@@ -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,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;
|