@elderbyte/ngx-starter 19.20.0 → 19.21.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.
- package/fesm2022/elderbyte-ngx-starter.mjs +121 -5
- package/fesm2022/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/dom/dom-util.d.ts +12 -0
- package/lib/common/dom/public_api.d.ts +1 -0
- package/lib/common/public_api.d.ts +1 -0
- package/lib/components/data-view/common/selection/data-context-selection.directive.d.ts +16 -3
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class DomUtil {
|
|
2
|
+
/**
|
|
3
|
+
* Determines if the target element is in a text editing context.
|
|
4
|
+
*/
|
|
5
|
+
static isInTextEditingContext(target: HTMLElement): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Determines if the dom element is visible to the user.
|
|
8
|
+
*/
|
|
9
|
+
static isElementVisible(element: HTMLElement): boolean;
|
|
10
|
+
private static isElementVisibleInDOM;
|
|
11
|
+
private static isElementInViewport;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dom-util';
|
|
@@ -17,6 +17,7 @@ export * from './exceptions/public_api';
|
|
|
17
17
|
export * from './csv/public_api';
|
|
18
18
|
export * from './async/public_api';
|
|
19
19
|
export * from './url/public_api';
|
|
20
|
+
export * from './dom/public_api';
|
|
20
21
|
export * from './suggestion-provider';
|
|
21
22
|
export * from './reactive-map';
|
|
22
23
|
export * from './theme-sizes';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
1
|
+
import { Signal, ElementRef } from '@angular/core';
|
|
2
2
|
import { SelectionModel } from '../../../../common/selection/selection-model';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { IDataContext } from '../../../../common/data/data-context/data-context';
|
|
5
5
|
import { MasterSelectionState } from './master-selection-state';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DataContextSelectionDirective {
|
|
8
|
+
private elementRef;
|
|
8
9
|
/***************************************************************************
|
|
9
10
|
* *
|
|
10
11
|
* Fields *
|
|
@@ -19,7 +20,7 @@ export declare class DataContextSelectionDirective {
|
|
|
19
20
|
* Constructor *
|
|
20
21
|
* *
|
|
21
22
|
**************************************************************************/
|
|
22
|
-
constructor(selectionModel: SelectionModel<any>);
|
|
23
|
+
constructor(selectionModel: SelectionModel<any>, elementRef: ElementRef<HTMLElement>);
|
|
23
24
|
/***************************************************************************
|
|
24
25
|
* *
|
|
25
26
|
* Properties *
|
|
@@ -38,6 +39,13 @@ export declare class DataContextSelectionDirective {
|
|
|
38
39
|
**************************************************************************/
|
|
39
40
|
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
40
41
|
masterToggle(): void;
|
|
42
|
+
/***************************************************************************
|
|
43
|
+
* *
|
|
44
|
+
* Host Listeners *
|
|
45
|
+
* *
|
|
46
|
+
**************************************************************************/
|
|
47
|
+
onKeydown(event: KeyboardEvent): void;
|
|
48
|
+
onDocumentKeydown(event: KeyboardEvent): void;
|
|
41
49
|
/***************************************************************************
|
|
42
50
|
* *
|
|
43
51
|
* Private methods *
|
|
@@ -45,6 +53,11 @@ export declare class DataContextSelectionDirective {
|
|
|
45
53
|
**************************************************************************/
|
|
46
54
|
private buildSelectionState$;
|
|
47
55
|
private buildSelectionStateInner$;
|
|
48
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Determines if a keyboard event should trigger the select-all functionality.
|
|
58
|
+
* Checks for Ctrl/Cmd+A and whether the target is in a text editing context.
|
|
59
|
+
*/
|
|
60
|
+
private shouldHandleSelectAllEvent;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataContextSelectionDirective, [{ optional: true; }, null]>;
|
|
49
62
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DataContextSelectionDirective, "[elderDataContextSelection]", ["elderDataContextSelection"], { "selectionModel": { "alias": "elderDataContextSelectionModel"; "required": false; }; "dataContext": { "alias": "elderDataContextSelection"; "required": false; }; }, {}, never, never, true, never>;
|
|
50
63
|
}
|