zek 17.3.86 → 17.3.88
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyPair, KeyPairEx, Tree } from "../models";
|
|
2
|
+
import { IFlattenTree } from "../models/flatten-tree";
|
|
2
3
|
export declare class ArrayHelper {
|
|
3
4
|
static insert(array: any[], index: number, item: any): void;
|
|
4
5
|
/**
|
|
@@ -18,10 +19,8 @@ export declare class ArrayHelper {
|
|
|
18
19
|
static isArray(value: any): boolean;
|
|
19
20
|
static distinct(array: any[]): any[];
|
|
20
21
|
static filterByKey(filterValue: any, key: string, array: any[]): any[];
|
|
21
|
-
static
|
|
22
|
-
|
|
23
|
-
static treeToKeyPairArray(array: Tree[]): KeyPair<any, any>[];
|
|
24
|
-
private static getIndentChildren;
|
|
22
|
+
static flatten(array: any, indent?: number): any[];
|
|
23
|
+
static flattenDropDownList(tree: Tree | Tree[], indent?: number): IFlattenTree<any, any>[];
|
|
25
24
|
private static enumToKeyPairBaseArray;
|
|
26
25
|
static enumToKeyPairArray(value: any): KeyPair<number, string>[];
|
|
27
26
|
static enumToKeyPairExArray(value: any): KeyPairEx<number, string>[];
|