@itwin/presentation-components
Version:
React components based on iTwin.js Presentation library
56 lines • 3.13 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.InfoTreeNodeItemType = void 0;
exports.isPresentationTreeNodeItem = isPresentationTreeNodeItem;
exports.isPresentationInfoTreeNodeItem = isPresentationInfoTreeNodeItem;
exports.isFilterablePresentationTreeNodeItem = isFilterablePresentationTreeNodeItem;
/**
* 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).
*/
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 || (exports.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).
*/
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).
*/
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).
*/
function isFilterablePresentationTreeNodeItem(item) {
return item.filtering !== undefined;
}
//# sourceMappingURL=PresentationTreeNodeItem.js.map