forked from gooddata/gooddata-ui-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
817 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
// (C) 2007-2024 GoodData Corporation | ||
import { Identifier } from "@gooddata/sdk-model"; | ||
|
||
// | ||
// types used in implementation internals | ||
// | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export enum ColumnEventSourceType { | ||
AUTOSIZE_COLUMNS = "autosizeColumns", | ||
UI_DRAGGED = "uiColumnDragged", | ||
FIT_GROW = "growToFit", | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export enum UIClick { | ||
CLICK = 1, | ||
DOUBLE_CLICK = 2, | ||
} | ||
|
||
// | ||
// | ||
// | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface IRepeaterAbsoluteColumnWidth { | ||
value: number; | ||
allowGrowToFit?: boolean; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface IRepeaterAutoColumnWidth { | ||
value: "auto"; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type RepeaterColumnWidth = IRepeaterAbsoluteColumnWidth | IRepeaterAutoColumnWidth; | ||
|
||
/** | ||
* Object defining the {@link IRepeaterAttributeColumnWidthItem} object body. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterAttributeColumnWidthItemBody { | ||
width: IRepeaterAbsoluteColumnWidth; | ||
attributeIdentifier: Identifier; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface IRepeaterAttributeColumnWidthItem { | ||
attributeColumnWidthItem: IRepeaterAttributeColumnWidthItemBody; | ||
} | ||
|
||
/** | ||
* Object defining the {@link IRepeaterMeasureColumnWidthItem} object body. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterMeasureColumnWidthItemBody { | ||
width: RepeaterColumnWidth; | ||
locators: RepeaterColumnLocator[]; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export interface IRepeaterMeasureColumnWidthItem { | ||
measureColumnWidthItem: IRepeaterMeasureColumnWidthItemBody; | ||
} | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type RepeaterColumnWidthItem = IRepeaterAttributeColumnWidthItem | IRepeaterMeasureColumnWidthItem; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type RepeaterColumnLocator = IRepeaterAttributeColumnLocator | IRepeaterMeasureColumnLocator; | ||
|
||
/** | ||
* Object defining the {@link IRepeaterMeasureColumnLocator} object body. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterMeasureColumnLocatorBody { | ||
/** | ||
* Local identifier of the measure. | ||
*/ | ||
measureIdentifier: Identifier; | ||
} | ||
|
||
/** | ||
* Locates table column by column measure's localId. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterMeasureColumnLocator { | ||
measureLocatorItem: IRepeaterMeasureColumnLocatorBody; | ||
} | ||
|
||
/** | ||
* Object defining the {@link IRepeaterAttributeColumnLocator} object body. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterAttributeColumnLocatorBody { | ||
/** | ||
* Local identifier of the attribute | ||
*/ | ||
attributeIdentifier: Identifier; | ||
|
||
/** | ||
* Attribute element URI / primary key. | ||
*/ | ||
element?: string | null; | ||
} | ||
|
||
/** | ||
* Locates all columns for an attribute or columns for particular attribute element. | ||
* | ||
* @public | ||
*/ | ||
export interface IRepeaterAttributeColumnLocator { | ||
attributeLocatorItem: IRepeaterAttributeColumnLocatorBody; | ||
} |
Oops, something went wrong.