@db-ux/v-core-components 2.1.2 → 2.2.0

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.
@@ -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;
@@ -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>;
@@ -45,3 +32,7 @@ export declare const getInputValue: (value?: number | string, inputType?: string
45
32
  export declare const getHideProp: (show?: boolean | string) => any;
46
33
  export declare const stringPropVisible: (givenString?: string, showString?: boolean | string) => boolean;
47
34
  export declare const getSearchInput: (element: HTMLElement) => HTMLInputElement | null;
35
+ export declare const getOptionKey: (option: {
36
+ id?: string;
37
+ value?: string | number | string[] | undefined;
38
+ }, prefix: string) => string;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@db-ux/v-core-components",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "description": "Vue components for @db-ux/core-components",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "tsx": "^4.19.4",
44
44
  "typescript": "^5.4.5",
45
45
  "vite": "^6.3.5",
46
- "vue": "^3.5.15",
46
+ "vue": "^3.5.16",
47
47
  "vue-tsc": "^2.2.10"
48
48
  },
49
49
  "publishConfig": {
@@ -53,7 +53,7 @@
53
53
  "sideEffects": false,
54
54
  "source": "src/index.ts",
55
55
  "dependencies": {
56
- "@db-ux/core-components": "2.1.2",
57
- "@db-ux/core-foundations": "2.1.2"
56
+ "@db-ux/core-components": "2.2.0",
57
+ "@db-ux/core-foundations": "2.2.0"
58
58
  }
59
59
  }