@fundamental-ngx/cdk 0.43.8 → 0.43.10
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/esm2020/utils/directives/focusable-item/focusable-item.directive.mjs +13 -16
- package/esm2020/utils/helpers/dfs.mjs +47 -0
- package/esm2020/utils/helpers/index.mjs +2 -1
- package/fesm2015/fundamental-ngx-cdk-utils.mjs +52 -10
- package/fesm2015/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-cdk-utils.mjs +53 -10
- package/fesm2020/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fundamental-ngx-cdk-v0.43.10.tgz +0 -0
- package/package.json +2 -2
- package/utils/directives/focusable-item/focusable-item.directive.d.ts +6 -6
- package/utils/helpers/dfs.d.ts +18 -0
- package/utils/helpers/index.d.ts +1 -0
- package/fundamental-ngx-cdk-v0.43.8.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/cdk",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.10",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - CDK",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"rxjs": "^7.8.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@fundamental-ngx/i18n": "0.43.
|
|
26
|
+
"@fundamental-ngx/i18n": "0.43.10",
|
|
27
27
|
"@fundamental-styles/cx": "0.28.3",
|
|
28
28
|
"@sap-theming/theming-base-content": "^11.6.0",
|
|
29
29
|
"compare-versions": "^5.0.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import {
|
|
4
|
-
import { HasElementRef } from '../../interfaces';
|
|
5
|
-
import { DeprecatedSelector } from '../../deprecated-selector.class';
|
|
2
|
+
import { ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
6
3
|
import { Subject } from 'rxjs';
|
|
4
|
+
import { DeprecatedSelector } from '../../deprecated-selector.class';
|
|
5
|
+
import { HasElementRef } from '../../interfaces';
|
|
7
6
|
import { Nullable } from '../../models/nullable';
|
|
7
|
+
import { DestroyedService } from '../../services';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export type CellFocusedEventAnnouncer = Nullable<(position: FocusableItemPosition) => string>;
|
|
10
10
|
export interface FocusableItemPosition {
|
|
@@ -37,8 +37,6 @@ export declare class FocusableItemDirective implements HasElementRef {
|
|
|
37
37
|
private _tabbable;
|
|
38
38
|
/** @hidden */
|
|
39
39
|
private _timerId;
|
|
40
|
-
/** @hidden */
|
|
41
|
-
get _tabindex(): number;
|
|
42
40
|
/** Element reference. */
|
|
43
41
|
readonly elementRef: ElementRef<HTMLElement>;
|
|
44
42
|
/** @hidden */
|
|
@@ -52,6 +50,8 @@ export declare class FocusableItemDirective implements HasElementRef {
|
|
|
52
50
|
/** @hidden */
|
|
53
51
|
protected readonly _zone: NgZone;
|
|
54
52
|
/** @hidden */
|
|
53
|
+
private readonly _renderer2;
|
|
54
|
+
/** @hidden */
|
|
55
55
|
private readonly _document;
|
|
56
56
|
/** @hidden */
|
|
57
57
|
constructor();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @hidden */
|
|
2
|
+
interface DfsOptions<T> {
|
|
3
|
+
children: string | ((item: T) => Array<T>);
|
|
4
|
+
shouldVisit: (item: T) => boolean;
|
|
5
|
+
postOrder: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Depth-first search algorithm, which traverses a tree/graph/tree-like structure.
|
|
9
|
+
* callback is called for each item in the collection. The order of the callback calls
|
|
10
|
+
* depends on the options. By default, the algorithm is post-order, which means that
|
|
11
|
+
* the callback is called for each item after its children have been visited.
|
|
12
|
+
*
|
|
13
|
+
* @param collection
|
|
14
|
+
* @param callback
|
|
15
|
+
* @param options
|
|
16
|
+
*/
|
|
17
|
+
export declare function dfs<T>(collection: Array<T>, callback: (item: T) => void, options?: Partial<DfsOptions<T>>): void;
|
|
18
|
+
export {};
|
package/utils/helpers/index.d.ts
CHANGED
|
Binary file
|