UNPKG

@finos/legend-data-cube

Version:
110 lines 6.47 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 DataCubeColumnKind, type DataCubeFont, type DataCubeOperationValue, type DataCubeNumberScale, type DataCubeFontFormatUnderlineVariant, type DataCubeFontCase, type DataCubeFontTextAlignment, type DataCubeColumnPinPlacement, type DataCubeQuerySortDirection, type DataCubeColumnDataType, type DataCubeGridMode } from '../../core/DataCubeQueryEngine.js'; import { type PlainObject } from '@finos/legend-shared'; import { DataCubeColumnConfiguration, DataCubeConfiguration, DataCubePivotLayoutConfiguration } from '../../core/model/DataCubeConfiguration.js'; import { type DataCubeSnapshot } from '../../core/DataCubeSnapshot.js'; import { type DataCubeQueryAggregateOperation } from '../../core/aggregation/DataCubeQueryAggregateOperation.js'; export declare class DataCubeEditorMutableColumnConfiguration extends DataCubeColumnConfiguration { readonly dataType: DataCubeColumnDataType; aggregateOperation: DataCubeQueryAggregateOperation; static create(json: PlainObject<DataCubeColumnConfiguration>, snapshot: DataCubeSnapshot | undefined, aggregateOperations: DataCubeQueryAggregateOperation[]): DataCubeEditorMutableColumnConfiguration; get isUsingDefaultStyling(): boolean; useDefaultStyling(): void; setKind(value: DataCubeColumnKind): void; setDisplayName(value: string | undefined): void; setDecimals(value: number | undefined): void; setDisplayCommas(value: boolean): void; setNegativeNumberInParens(value: boolean): void; setNumberScale(value: DataCubeNumberScale | undefined): void; setMissingValueDisplayText(value: string | undefined): void; setUnit(value: string | undefined): void; setFontFamily(value: DataCubeFont | undefined): void; setFontSize(value: number | undefined): void; setFontBold(value: boolean | undefined): void; setFontItalic(value: boolean | undefined): void; setFontUnderline(value: DataCubeFontFormatUnderlineVariant | undefined): void; setFontStrikethrough(value: boolean | undefined): void; setFontCase(value: DataCubeFontCase | undefined): void; setTextAlign(value: DataCubeFontTextAlignment | undefined): void; setNormalForegroundColor(value: string | undefined): void; setNegativeForegroundColor(value: string | undefined): void; setZeroForegroundColor(value: string | undefined): void; setErrorForegroundColor(value: string | undefined): void; setNormalBackgroundColor(value: string | undefined): void; setNegativeBackgroundColor(value: string | undefined): void; setZeroBackgroundColor(value: string | undefined): void; setErrorBackgroundColor(value: string | undefined): void; setIsSelected(value: boolean): void; setHideFromView(value: boolean): void; setBlur(value: boolean): void; setFixedWidth(value: number | undefined): void; setMinWidth(value: number | undefined): void; setMaxWidth(value: number | undefined): void; setPinned(value: DataCubeColumnPinPlacement | undefined): void; setDisplayAsLink(value: boolean): void; setLinkLabelParameter(value: string | undefined): void; setAggregateOperation(value: DataCubeQueryAggregateOperation): void; setAggregationParameters(value: DataCubeOperationValue[]): void; setExcludedFromPivot(value: boolean): void; setPivotSortDirection(value: DataCubeQuerySortDirection | undefined): void; setPivotStatisticColumnFunction(value: string | undefined): void; } export declare class DataCubeEditorMutablePivotLayoutConfiguration extends DataCubePivotLayoutConfiguration { static create(json: PlainObject<DataCubePivotLayoutConfiguration>): DataCubeEditorMutablePivotLayoutConfiguration; setExpandedPaths(value: string[]): void; } export declare class DataCubeEditorMutableConfiguration extends DataCubeConfiguration { static create(json: PlainObject<DataCubeConfiguration>): DataCubeEditorMutableConfiguration; get isUsingDefaultStyling(): boolean; useDefaultStyling(): void; setName(value: string): void; setDescription(value: string | undefined): void; setShowHorizontalGridLines(value: boolean): void; setShowVerticalGridLines(value: boolean): void; setGridLineColor(value: string): void; setGridMode(value: DataCubeGridMode): void; setFontFamily(value: DataCubeFont): void; setFontSize(value: number): void; setFontBold(value: boolean): void; setFontItalic(value: boolean): void; setFontUnderline(value: DataCubeFontFormatUnderlineVariant | undefined): void; setFontStrikethrough(value: boolean): void; setFontCase(value: DataCubeFontCase | undefined): void; setTextAlign(value: DataCubeFontTextAlignment): void; setNormalForegroundColor(value: string): void; setNegativeForegroundColor(value: string): void; setZeroForegroundColor(value: string): void; setErrorForegroundColor(value: string): void; setNormalBackgroundColor(value: string): void; setNegativeBackgroundColor(value: string): void; setZeroBackgroundColor(value: string): void; setErrorBackgroundColor(value: string): void; setAlternateRows(value: boolean): void; setAlternateRowsColor(value: string): void; setAlternateRowsCount(value: number): void; setAlternateRowsStandardMode(value: boolean): void; setShowSelectionStats(value: boolean): void; setShowWarningForTruncatedResult(value: boolean): void; setInitialExpandLevel(value: number | undefined): void; setShowRootAggregation(value: boolean): void; setShowLeafCount(value: boolean): void; setTreeColumnSortDirection(value: DataCubeQuerySortDirection): void; setPivotStatisticColumnPlacement(value: DataCubeColumnPinPlacement | undefined): void; setPivotStatisticColumnName(value: string): void; setExpandedPaths(value: string[]): void; } //# sourceMappingURL=DataCubeEditorMutableConfiguration.d.ts.map