@fundamental-ngx/cdk 0.43.9 → 0.43.11

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/cdk",
3
- "version": "0.43.9",
3
+ "version": "0.43.11",
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.9",
26
+ "@fundamental-ngx/i18n": "0.43.11",
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,3 +1,4 @@
1
+ export * from './color-accent.datatype';
1
2
  export * from './hash.datatype';
3
+ export * from './object-nesting.types';
2
4
  export * from './size.datatype';
3
- export * from './color-accent.datatype';
@@ -0,0 +1,4 @@
1
+ export type NestedKeyOf<ObjectType extends object> = {
2
+ [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}` | `${Key}.${NestedKeyOf<ObjectType[Key]>}` : `${Key}`;
3
+ }[keyof ObjectType & (string | number)];
4
+ export type ObjectPathType<T, K extends keyof T | string> = K extends keyof T ? T[K] : K extends `${infer First}.${infer Rest}` ? First extends keyof T ? ObjectPathType<T[First], Rest> : never : never;
@@ -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 {};
@@ -1,2 +1,3 @@
1
1
  export * from './range-selector';
2
2
  export * from './get-native-element';
3
+ export * from './dfs';
Binary file