ndc-suez
Version:
Generate standard ndc UI
42 lines (41 loc) • 1.5 kB
TypeScript
import * as XLSX from 'xlsx';
interface FilterResult {
[key: string]: any;
}
interface GraphEntry {
Name: string;
Type: string;
Min?: number;
Max?: number;
Unit?: string;
Interval?: number;
Style?: string;
Yndex?: number;
}
interface GroupedGraphData {
[groupName: string]: {
entries: GraphEntry[];
};
}
/**
* Filters rows where the "Ecran" column contains a given value using the second row as the header.
*
* @param worksheet - The worksheet to process.
* @param filterValue - The value to filter in the "Ecran" column.
* @param takeAll
* @returns The filtered rows as an array of objects.
*/
export declare function filterByScreenWithHeader2(worksheet: XLSX.WorkSheet, filterValue: string, takeAll?: boolean): FilterResult[];
export declare function transformGraphSheetToJson(worksheet: XLSX.WorkSheet): GroupedGraphData;
export declare function deduplicateNestedKeys(obj: any, changes: any): any;
export declare function tooltipParams(tooltips: any[], rowTooltip: string): string[] | undefined;
export declare function extractUniqueTokens(input: string): string[];
export declare function getTokenFullyWrapped(value: string): string | null;
/**
*
* @param messages => merge blocking and nonblocking sheet
* @param rowMessage => concat blocking and nonBlocking with ";"
* @param exclude exclude list
*/
export declare function validationParams(messages: any[], rowMessage: string, exclude: any[]): string[] | undefined;
export {};