/
index.ts
50 lines (44 loc) · 2.62 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*---------------------------------------------------------------------------------------------
* 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
*/
import { StandardTypeNames } from "@itwin/appui-abstract";
import { PropertyEditorManager } from "@itwin/components-react";
import {
NavigationPropertyEditor as NavigationPropertyEditorInternal,
NavigationPropertyTargetEditor as NavigationPropertyTargetEditorInternal,
} from "./NavigationPropertyEditor";
import { NumericEditorName, NumericPropertyEditorBase } from "./NumericPropertyEditor";
import { QuantityEditorName, QuantityPropertyEditorBase } from "./QuantityPropertyEditor";
export * from "./NavigationPropertyEditorContext";
/**
* 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 = NavigationPropertyEditorInternal;
/**
* 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 = NavigationPropertyTargetEditorInternal;
// eslint-disable-next-line deprecation/deprecation
export { NavigationPropertyEditor, NavigationPropertyTargetEditor };
// register editor for kind of quantity properties
PropertyEditorManager.registerEditor(StandardTypeNames.Double, QuantityPropertyEditorBase, QuantityEditorName);
// register editor for navigation properties
PropertyEditorManager.registerEditor(StandardTypeNames.Navigation, NavigationPropertyEditorInternal);
// register editor for numeric properties
PropertyEditorManager.registerEditor(StandardTypeNames.Number, NumericPropertyEditorBase, NumericEditorName);
PropertyEditorManager.registerEditor(StandardTypeNames.Int, NumericPropertyEditorBase, NumericEditorName);
PropertyEditorManager.registerEditor(StandardTypeNames.Float, NumericPropertyEditorBase, NumericEditorName);
PropertyEditorManager.registerEditor(StandardTypeNames.Double, NumericPropertyEditorBase, NumericEditorName);