UNPKG

@itwin/presentation-components

Version:

React components based on iTwin.js Presentation library

50 lines 2.78 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /* eslint-disable @typescript-eslint/no-deprecated */ /** @packageDocumentation * @module Tree */ /** * Type that is assigned to a [[PresentationInfoTreeNodeItem]] to determine what type of message an item conveys. * @public * @deprecated in 5.7. All tree-related APIs have been deprecated in favor of the new generation hierarchy * building APIs (see https://github.com/iTwin/presentation/blob/33e79ee8d77f30580a9bab81a72884bda008db25/README.md#the-packages). */ export var InfoTreeNodeItemType; (function (InfoTreeNodeItemType) { InfoTreeNodeItemType[InfoTreeNodeItemType["ResultSetTooLarge"] = 0] = "ResultSetTooLarge"; InfoTreeNodeItemType[InfoTreeNodeItemType["BackendTimeout"] = 1] = "BackendTimeout"; InfoTreeNodeItemType[InfoTreeNodeItemType["Cancelled"] = 2] = "Cancelled"; InfoTreeNodeItemType[InfoTreeNodeItemType["NoChildren"] = 3] = "NoChildren"; InfoTreeNodeItemType[InfoTreeNodeItemType["Unset"] = 4] = "Unset"; })(InfoTreeNodeItemType || (InfoTreeNodeItemType = {})); /** * Function that checks if supplied [TreeNodeItem]($components-react) is [[PresentationTreeNodeItem]]. * @public * @deprecated in 5.7. All tree-related APIs have been deprecated in favor of the new generation hierarchy * building APIs (see https://github.com/iTwin/presentation/blob/33e79ee8d77f30580a9bab81a72884bda008db25/README.md#the-packages). */ export function isPresentationTreeNodeItem(item) { return item.key !== undefined; } /** * Function that checks if supplied [TreeNodeItem]($components-react) is [[PresentationInfoTreeNodeItem]]. * @public * @deprecated in 5.7. All tree-related APIs have been deprecated in favor of the new generation hierarchy * building APIs (see https://github.com/iTwin/presentation/blob/33e79ee8d77f30580a9bab81a72884bda008db25/README.md#the-packages). */ export function isPresentationInfoTreeNodeItem(item) { return item.message !== undefined; } /** * Function that check if supplied [[PresentationTreeNodeItem]] is [[FilterablePresentationTreeNodeItem]]. * @public * @deprecated in 5.7. All tree-related APIs have been deprecated in favor of the new generation hierarchy * building APIs (see https://github.com/iTwin/presentation/blob/33e79ee8d77f30580a9bab81a72884bda008db25/README.md#the-packages). */ export function isFilterablePresentationTreeNodeItem(item) { return item.filtering !== undefined; } //# sourceMappingURL=PresentationTreeNodeItem.js.map