@itwin/presentation-components
Version:
React components based on iTwin.js Presentation library
47 lines • 3.87 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/**
* @packageDocumentation
* @module Properties
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.NavigationPropertyTargetEditor = exports.NavigationPropertyEditor = exports.useNavigationPropertyEditorContextProviderProps = exports.NavigationPropertyEditorContextProvider = void 0;
const appui_abstract_1 = require("@itwin/appui-abstract");
const components_react_1 = require("@itwin/components-react");
const NavigationPropertyEditor_js_1 = require("./NavigationPropertyEditor.js");
const NumericPropertyEditor_js_1 = require("./NumericPropertyEditor.js");
const QuantityPropertyEditor_js_1 = require("./QuantityPropertyEditor.js");
var NavigationPropertyEditorContext_js_1 = require("./NavigationPropertyEditorContext.js");
Object.defineProperty(exports, "NavigationPropertyEditorContextProvider", { enumerable: true, get: function () { return NavigationPropertyEditorContext_js_1.NavigationPropertyEditorContextProvider; } });
Object.defineProperty(exports, "useNavigationPropertyEditorContextProviderProps", { enumerable: true, get: function () { return NavigationPropertyEditorContext_js_1.useNavigationPropertyEditorContextProviderProps; } });
/**
* Editor for navigation properties.
* @beta
* @deprecated in 5.0. This component should not be used directly. Instead, it should be used though the
* [[PropertyEditorManager]] system where it's automatically registered as a default editor for all
* [[StandardTypeNames.Navigation]] properties.
*/
const NavigationPropertyEditor = NavigationPropertyEditor_js_1.NavigationPropertyEditor;
exports.NavigationPropertyEditor = NavigationPropertyEditor;
/**
* Component that renders navigation property target selector for navigation property value editing.
* @beta
* @deprecated in 5.0. This component should not be used directly. Instead, it should be used though the
* [[PropertyEditorManager]] system where it's automatically registered as a default editor for all
* [[StandardTypeNames.Navigation]] properties.
*/
const NavigationPropertyTargetEditor = NavigationPropertyEditor_js_1.NavigationPropertyTargetEditor;
exports.NavigationPropertyTargetEditor = NavigationPropertyTargetEditor;
// register editor for kind of quantity properties
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Double, QuantityPropertyEditor_js_1.QuantityPropertyEditorBase, QuantityPropertyEditor_js_1.QuantityEditorName);
// register editor for navigation properties
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Navigation, NavigationPropertyEditor_js_1.NavigationPropertyEditor);
// register editor for numeric properties
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Number, NumericPropertyEditor_js_1.NumericPropertyEditorBase, NumericPropertyEditor_js_1.NumericEditorName);
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Int, NumericPropertyEditor_js_1.NumericPropertyEditorBase, NumericPropertyEditor_js_1.NumericEditorName);
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Float, NumericPropertyEditor_js_1.NumericPropertyEditorBase, NumericPropertyEditor_js_1.NumericEditorName);
components_react_1.PropertyEditorManager.registerEditor(appui_abstract_1.StandardTypeNames.Double, NumericPropertyEditor_js_1.NumericPropertyEditorBase, NumericPropertyEditor_js_1.NumericEditorName);
//# sourceMappingURL=index.js.map