UNPKG

@finos/legend-data-cube

Version:
54 lines 2.99 kB
/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { CellDoubleClickedEvent } from 'ag-grid-community'; import type { DataCubeConfiguration } from '../../core/model/DataCubeConfiguration.js'; import { SerializationFactory, type Hashable } from '@finos/legend-shared'; export declare const DIMENSIONAL_L0_COLUMN = "ALL"; export declare class DataCubeDimensionalGroupByNode implements Hashable { column: string; filter: string; dimension: string; constructor(column: string, filter: string, dimension: string); get hashCode(): string; static readonly serialization: SerializationFactory<DataCubeDimensionalGroupByNode>; } export declare class DataCubeDimensionalNode implements Hashable { column: string; dimension: string; childNodes: DataCubeDimensionalNode[]; groupByNodes: DataCubeDimensionalGroupByNode[]; constructor(column: string, dimension: string, childNodes?: DataCubeDimensionalNode[], groupByNodes?: DataCubeDimensionalGroupByNode[]); get hashCode(): string; static readonly serialization: SerializationFactory<DataCubeDimensionalNode>; } export declare class DataCubeDimensionalTree implements Hashable { rootNodes: DataCubeDimensionalNode[]; constructor(rootNodes: DataCubeDimensionalNode[]); get hashCode(): string; static readonly serialization: SerializationFactory<DataCubeDimensionalTree>; } export declare function cloneDimensionalTree(tree: DataCubeDimensionalTree): DataCubeDimensionalTree; export declare class DataCubeDimensionalMetadata { column: string; level: number; groupByNodes: DataCubeDimensionalGroupByNode[]; constructor(column: string, level: number, groupByNodes?: DataCubeDimensionalGroupByNode[]); } export declare function generateDimensionalPaths(tree: DataCubeDimensionalTree): DataCubeDimensionalNode[][]; export declare function hydrateDataCubeDimensionalTree(configuration: DataCubeConfiguration, event?: CellDoubleClickedEvent, tree?: DataCubeDimensionalTree): DataCubeDimensionalTree | undefined; export declare function removeSubtreeNode(tree: DataCubeDimensionalTree, targetDimension: string, targetColumn: string, targetGroupByNodes: DataCubeDimensionalGroupByNode[]): boolean; export declare function findExtraPaths(oldPaths: DataCubeDimensionalNode[][], newPaths: DataCubeDimensionalNode[][]): DataCubeDimensionalNode[][]; //# sourceMappingURL=DataCubeGridDimensionalTree.d.ts.map