@tapsellorg/angular-material-library
Version:
Angular library for Tapsell
56 lines (55 loc) • 1.55 kB
TypeScript
export interface PghTreeNode {
children?: PghTreeNode[];
item: string;
parents?: PghTreeNode[];
label?: string;
}
export interface PghTreeFlatNode {
item: string;
level: number;
expandable: boolean;
}
export interface PghTreeData {
[key: string]: PghTreeData | null | string[];
}
export type PghTreeLabel = Record<string, string>;
export declare const getLevel: (node: PghTreeFlatNode) => number;
export declare const isExpandable: (node: PghTreeFlatNode) => boolean;
export declare const getChildren: (node: PghTreeNode) => PghTreeNode[] | undefined;
export declare const hasChild: (_: number, _nodeData: PghTreeFlatNode) => boolean;
export declare const hasNoContent: (_: number, _nodeData: PghTreeFlatNode) => boolean;
export declare const SAMPLE_TREE_DATA: {
'\u062F\u0633\u062A\u0647 \u0627\u0648\u0644, 1000': {
'A_1, 1000': {
'A_1_1, 1000': null;
'A_1_2, 1000': string[];
};
A_2: string[];
A_3: {
A_3_1: null;
A_3_2: string[];
};
};
'\u062F\u0633\u062A\u0647 \u062F\u0648\u0645': {
B_1: {
B_1_1: null;
B_1_2: string[];
};
B_2: string[];
B_3: {
B_3_1: null;
B_3_2: string[];
};
};
پوشاک: {
اکسسوری: {
بانوان: null;
B_1_2: string[];
};
B_2: string[];
لباس: {
بانوان: null;
B_3_2: string[];
};
};
};