@itwin/appui-abstract 4.0.0-dev.48 → 4.0.0-dev.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.js +79 -79
- package/lib/cjs/appui-abstract/BaseUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/UiAdmin.d.ts +221 -221
- package/lib/cjs/appui-abstract/UiAdmin.js +224 -224
- package/lib/cjs/appui-abstract/UiAdmin.js.map +1 -1
- package/lib/cjs/appui-abstract/UiItemsManager.d.ts +113 -113
- package/lib/cjs/appui-abstract/UiItemsManager.js +193 -193
- package/lib/cjs/appui-abstract/UiItemsManager.js.map +1 -1
- package/lib/cjs/appui-abstract/UiItemsProvider.d.ts +29 -29
- package/lib/cjs/appui-abstract/UiItemsProvider.js +9 -9
- package/lib/cjs/appui-abstract/UiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItem.d.ts +91 -91
- package/lib/cjs/appui-abstract/backstage/BackstageItem.js +70 -70
- package/lib/cjs/appui-abstract/backstage/BackstageItem.js.map +1 -1
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js +133 -133
- package/lib/cjs/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
- package/lib/cjs/appui-abstract/common/KeyboardKey.d.ts +51 -51
- package/lib/cjs/appui-abstract/common/KeyboardKey.js +63 -63
- package/lib/cjs/appui-abstract/common/KeyboardKey.js.map +1 -1
- package/lib/cjs/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
- package/lib/cjs/appui-abstract/content/ContentLayoutProps.js +9 -9
- package/lib/cjs/appui-abstract/content/ContentLayoutProps.js.map +1 -1
- package/lib/cjs/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
- package/lib/cjs/appui-abstract/content/StandardContentLayouts.js +108 -108
- package/lib/cjs/appui-abstract/content/StandardContentLayouts.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/DialogItem.d.ts +76 -76
- package/lib/cjs/appui-abstract/dialogs/DialogItem.js +67 -67
- package/lib/cjs/appui-abstract/dialogs/DialogItem.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
- package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js +66 -66
- package/lib/cjs/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
- package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js +175 -175
- package/lib/cjs/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractItemProps.d.ts +53 -53
- package/lib/cjs/appui-abstract/items/AbstractItemProps.js +9 -9
- package/lib/cjs/appui-abstract/items/AbstractItemProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
- package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js +9 -9
- package/lib/cjs/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
- package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js +9 -9
- package/lib/cjs/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
- package/lib/cjs/appui-abstract/items/BadgeType.d.ts +14 -14
- package/lib/cjs/appui-abstract/items/BadgeType.js +22 -22
- package/lib/cjs/appui-abstract/items/BadgeType.js.map +1 -1
- package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
- package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js +60 -60
- package/lib/cjs/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
- package/lib/cjs/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
- package/lib/cjs/appui-abstract/items/ConditionalStringValue.js +62 -62
- package/lib/cjs/appui-abstract/items/ConditionalStringValue.js.map +1 -1
- package/lib/cjs/appui-abstract/items/ProvidedItem.d.ts +11 -11
- package/lib/cjs/appui-abstract/items/ProvidedItem.js +9 -9
- package/lib/cjs/appui-abstract/items/ProvidedItem.js.map +1 -1
- package/lib/cjs/appui-abstract/items/RelativePosition.d.ts +18 -18
- package/lib/cjs/appui-abstract/items/RelativePosition.js +26 -26
- package/lib/cjs/appui-abstract/items/RelativePosition.js.map +1 -1
- package/lib/cjs/appui-abstract/items/StageUsage.d.ts +16 -16
- package/lib/cjs/appui-abstract/items/StageUsage.js +24 -24
- package/lib/cjs/appui-abstract/items/StageUsage.js.map +1 -1
- package/lib/cjs/appui-abstract/notification/MessagePresenter.d.ts +42 -42
- package/lib/cjs/appui-abstract/notification/MessagePresenter.js +24 -24
- package/lib/cjs/appui-abstract/notification/MessagePresenter.js.map +1 -1
- package/lib/cjs/appui-abstract/notification/MessageSeverity.d.ts +15 -15
- package/lib/cjs/appui-abstract/notification/MessageSeverity.js +23 -23
- package/lib/cjs/appui-abstract/notification/MessageSeverity.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Description.d.ts +127 -127
- package/lib/cjs/appui-abstract/properties/Description.js +196 -196
- package/lib/cjs/appui-abstract/properties/Description.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/EditorParams.d.ts +260 -260
- package/lib/cjs/appui-abstract/properties/EditorParams.js +106 -106
- package/lib/cjs/appui-abstract/properties/EditorParams.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
- package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js +9 -9
- package/lib/cjs/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Record.d.ts +57 -57
- package/lib/cjs/appui-abstract/properties/Record.js +78 -78
- package/lib/cjs/appui-abstract/properties/Record.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
- package/lib/cjs/appui-abstract/properties/StandardEditorNames.js +30 -30
- package/lib/cjs/appui-abstract/properties/StandardEditorNames.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
- package/lib/cjs/appui-abstract/properties/StandardTypeNames.js +39 -39
- package/lib/cjs/appui-abstract/properties/StandardTypeNames.js.map +1 -1
- package/lib/cjs/appui-abstract/properties/Value.d.ts +49 -49
- package/lib/cjs/appui-abstract/properties/Value.js +20 -20
- package/lib/cjs/appui-abstract/properties/Value.js.map +1 -1
- package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
- package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js +48 -48
- package/lib/cjs/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.d.ts +128 -128
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js +87 -87
- package/lib/cjs/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js +135 -135
- package/lib/cjs/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.d.ts +121 -121
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js +64 -64
- package/lib/cjs/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js +235 -235
- package/lib/cjs/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js +51 -51
- package/lib/cjs/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/PointProps.d.ts +10 -10
- package/lib/cjs/appui-abstract/utils/PointProps.js +9 -9
- package/lib/cjs/appui-abstract/utils/PointProps.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiError.d.ts +12 -12
- package/lib/cjs/appui-abstract/utils/UiError.js +22 -22
- package/lib/cjs/appui-abstract/utils/UiError.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiEvent.d.ts +9 -9
- package/lib/cjs/appui-abstract/utils/UiEvent.js +17 -17
- package/lib/cjs/appui-abstract/utils/UiEvent.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
- package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js +131 -131
- package/lib/cjs/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/callbacks.d.ts +20 -20
- package/lib/cjs/appui-abstract/utils/callbacks.js +9 -9
- package/lib/cjs/appui-abstract/utils/callbacks.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/filter/charCode.d.ts +416 -416
- package/lib/cjs/appui-abstract/utils/filter/charCode.js +6 -6
- package/lib/cjs/appui-abstract/utils/filter/charCode.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/filter/filters.d.ts +98 -98
- package/lib/cjs/appui-abstract/utils/filter/filters.js +709 -709
- package/lib/cjs/appui-abstract/utils/filter/filters.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/filter/map.d.ts +59 -59
- package/lib/cjs/appui-abstract/utils/filter/map.js +402 -402
- package/lib/cjs/appui-abstract/utils/filter/map.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/filter/strings.d.ts +20 -20
- package/lib/cjs/appui-abstract/utils/filter/strings.js +78 -78
- package/lib/cjs/appui-abstract/utils/filter/strings.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/isLetter.d.ts +9 -9
- package/lib/cjs/appui-abstract/utils/isLetter.js +19 -19
- package/lib/cjs/appui-abstract/utils/isLetter.js.map +1 -1
- package/lib/cjs/appui-abstract/utils/misc.d.ts +11 -11
- package/lib/cjs/appui-abstract/utils/misc.js +36 -36
- package/lib/cjs/appui-abstract/utils/misc.js.map +1 -1
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -86
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js +9 -9
- package/lib/cjs/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
- package/lib/cjs/appui-abstract/widget/StagePanel.d.ts +36 -36
- package/lib/cjs/appui-abstract/widget/StagePanel.js +46 -46
- package/lib/cjs/appui-abstract/widget/StagePanel.js.map +1 -1
- package/lib/cjs/appui-abstract/widget/WidgetState.d.ts +19 -19
- package/lib/cjs/appui-abstract/widget/WidgetState.js +27 -27
- package/lib/cjs/appui-abstract/widget/WidgetState.js.map +1 -1
- package/lib/cjs/appui-abstract.d.ts +103 -103
- package/lib/cjs/appui-abstract.js +119 -119
- package/lib/cjs/appui-abstract.js.map +1 -1
- package/lib/esm/appui-abstract/BaseUiItemsProvider.d.ts +30 -30
- package/lib/esm/appui-abstract/BaseUiItemsProvider.js +75 -75
- package/lib/esm/appui-abstract/BaseUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-abstract/UiAdmin.d.ts +221 -221
- package/lib/esm/appui-abstract/UiAdmin.js +219 -219
- package/lib/esm/appui-abstract/UiAdmin.js.map +1 -1
- package/lib/esm/appui-abstract/UiItemsManager.d.ts +113 -113
- package/lib/esm/appui-abstract/UiItemsManager.js +189 -189
- package/lib/esm/appui-abstract/UiItemsManager.js.map +1 -1
- package/lib/esm/appui-abstract/UiItemsProvider.d.ts +29 -29
- package/lib/esm/appui-abstract/UiItemsProvider.js +8 -8
- package/lib/esm/appui-abstract/UiItemsProvider.js.map +1 -1
- package/lib/esm/appui-abstract/backstage/BackstageItem.d.ts +91 -91
- package/lib/esm/appui-abstract/backstage/BackstageItem.js +64 -64
- package/lib/esm/appui-abstract/backstage/BackstageItem.js.map +1 -1
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.d.ts +38 -38
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js +129 -129
- package/lib/esm/appui-abstract/backstage/BackstageItemsManager.js.map +1 -1
- package/lib/esm/appui-abstract/common/KeyboardKey.d.ts +51 -51
- package/lib/esm/appui-abstract/common/KeyboardKey.js +59 -59
- package/lib/esm/appui-abstract/common/KeyboardKey.js.map +1 -1
- package/lib/esm/appui-abstract/content/ContentLayoutProps.d.ts +62 -62
- package/lib/esm/appui-abstract/content/ContentLayoutProps.js +8 -8
- package/lib/esm/appui-abstract/content/ContentLayoutProps.js.map +1 -1
- package/lib/esm/appui-abstract/content/StandardContentLayouts.d.ts +19 -19
- package/lib/esm/appui-abstract/content/StandardContentLayouts.js +104 -104
- package/lib/esm/appui-abstract/content/StandardContentLayouts.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/DialogItem.d.ts +76 -76
- package/lib/esm/appui-abstract/dialogs/DialogItem.js +63 -63
- package/lib/esm/appui-abstract/dialogs/DialogItem.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/UiDataProvider.d.ts +55 -55
- package/lib/esm/appui-abstract/dialogs/UiDataProvider.js +61 -61
- package/lib/esm/appui-abstract/dialogs/UiDataProvider.js.map +1 -1
- package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.d.ts +97 -97
- package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js +170 -170
- package/lib/esm/appui-abstract/dialogs/UiLayoutDataProvider.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractItemProps.d.ts +53 -53
- package/lib/esm/appui-abstract/items/AbstractItemProps.js +8 -8
- package/lib/esm/appui-abstract/items/AbstractItemProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractMenuItemProps.d.ts +20 -20
- package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js +8 -8
- package/lib/esm/appui-abstract/items/AbstractMenuItemProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/AbstractToolbarProps.d.ts +13 -13
- package/lib/esm/appui-abstract/items/AbstractToolbarProps.js +8 -8
- package/lib/esm/appui-abstract/items/AbstractToolbarProps.js.map +1 -1
- package/lib/esm/appui-abstract/items/BadgeType.d.ts +14 -14
- package/lib/esm/appui-abstract/items/BadgeType.js +19 -19
- package/lib/esm/appui-abstract/items/BadgeType.js.map +1 -1
- package/lib/esm/appui-abstract/items/ConditionalBooleanValue.d.ts +27 -27
- package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js +56 -56
- package/lib/esm/appui-abstract/items/ConditionalBooleanValue.js.map +1 -1
- package/lib/esm/appui-abstract/items/ConditionalStringValue.d.ts +29 -29
- package/lib/esm/appui-abstract/items/ConditionalStringValue.js +58 -58
- package/lib/esm/appui-abstract/items/ConditionalStringValue.js.map +1 -1
- package/lib/esm/appui-abstract/items/ProvidedItem.d.ts +11 -11
- package/lib/esm/appui-abstract/items/ProvidedItem.js +8 -8
- package/lib/esm/appui-abstract/items/ProvidedItem.js.map +1 -1
- package/lib/esm/appui-abstract/items/RelativePosition.d.ts +18 -18
- package/lib/esm/appui-abstract/items/RelativePosition.js +23 -23
- package/lib/esm/appui-abstract/items/RelativePosition.js.map +1 -1
- package/lib/esm/appui-abstract/items/StageUsage.d.ts +16 -16
- package/lib/esm/appui-abstract/items/StageUsage.js +21 -21
- package/lib/esm/appui-abstract/items/StageUsage.js.map +1 -1
- package/lib/esm/appui-abstract/notification/MessagePresenter.d.ts +42 -42
- package/lib/esm/appui-abstract/notification/MessagePresenter.js +21 -21
- package/lib/esm/appui-abstract/notification/MessagePresenter.js.map +1 -1
- package/lib/esm/appui-abstract/notification/MessageSeverity.d.ts +15 -15
- package/lib/esm/appui-abstract/notification/MessageSeverity.js +20 -20
- package/lib/esm/appui-abstract/notification/MessageSeverity.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Description.d.ts +127 -127
- package/lib/esm/appui-abstract/properties/Description.js +192 -192
- package/lib/esm/appui-abstract/properties/Description.js.map +1 -1
- package/lib/esm/appui-abstract/properties/EditorParams.d.ts +260 -260
- package/lib/esm/appui-abstract/properties/EditorParams.js +97 -97
- package/lib/esm/appui-abstract/properties/EditorParams.js.map +1 -1
- package/lib/esm/appui-abstract/properties/PrimitiveTypes.d.ts +60 -60
- package/lib/esm/appui-abstract/properties/PrimitiveTypes.js +8 -8
- package/lib/esm/appui-abstract/properties/PrimitiveTypes.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Record.d.ts +57 -57
- package/lib/esm/appui-abstract/properties/Record.js +74 -74
- package/lib/esm/appui-abstract/properties/Record.js.map +1 -1
- package/lib/esm/appui-abstract/properties/StandardEditorNames.d.ts +22 -22
- package/lib/esm/appui-abstract/properties/StandardEditorNames.js +27 -27
- package/lib/esm/appui-abstract/properties/StandardEditorNames.js.map +1 -1
- package/lib/esm/appui-abstract/properties/StandardTypeNames.d.ts +30 -30
- package/lib/esm/appui-abstract/properties/StandardTypeNames.js +36 -36
- package/lib/esm/appui-abstract/properties/StandardTypeNames.js.map +1 -1
- package/lib/esm/appui-abstract/properties/Value.d.ts +49 -49
- package/lib/esm/appui-abstract/properties/Value.js +17 -17
- package/lib/esm/appui-abstract/properties/Value.js.map +1 -1
- package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.d.ts +22 -22
- package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js +44 -44
- package/lib/esm/appui-abstract/quantity/BaseQuantityDescription.js.map +1 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.d.ts +128 -128
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.js +80 -80
- package/lib/esm/appui-abstract/statusbar/StatusBarItem.js.map +1 -1
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.d.ts +39 -39
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js +131 -131
- package/lib/esm/appui-abstract/statusbar/StatusBarItemsManager.js.map +1 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.d.ts +121 -121
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.js +60 -60
- package/lib/esm/appui-abstract/toolbars/ToolbarItem.js.map +1 -1
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.d.ts +45 -45
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js +231 -231
- package/lib/esm/appui-abstract/toolbars/ToolbarItemsManager.js.map +1 -1
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.d.ts +29 -29
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.js +47 -47
- package/lib/esm/appui-abstract/utils/IconSpecUtilities.js.map +1 -1
- package/lib/esm/appui-abstract/utils/PointProps.d.ts +10 -10
- package/lib/esm/appui-abstract/utils/PointProps.js +8 -8
- package/lib/esm/appui-abstract/utils/PointProps.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiError.d.ts +12 -12
- package/lib/esm/appui-abstract/utils/UiError.js +18 -18
- package/lib/esm/appui-abstract/utils/UiError.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiEvent.d.ts +9 -9
- package/lib/esm/appui-abstract/utils/UiEvent.js +13 -13
- package/lib/esm/appui-abstract/utils/UiEvent.js.map +1 -1
- package/lib/esm/appui-abstract/utils/UiEventDispatcher.d.ts +46 -46
- package/lib/esm/appui-abstract/utils/UiEventDispatcher.js +126 -126
- package/lib/esm/appui-abstract/utils/UiEventDispatcher.js.map +1 -1
- package/lib/esm/appui-abstract/utils/callbacks.d.ts +20 -20
- package/lib/esm/appui-abstract/utils/callbacks.js +8 -8
- package/lib/esm/appui-abstract/utils/callbacks.js.map +1 -1
- package/lib/esm/appui-abstract/utils/filter/charCode.d.ts +416 -416
- package/lib/esm/appui-abstract/utils/filter/charCode.js +5 -5
- package/lib/esm/appui-abstract/utils/filter/charCode.js.map +1 -1
- package/lib/esm/appui-abstract/utils/filter/filters.d.ts +98 -98
- package/lib/esm/appui-abstract/utils/filter/filters.js +694 -694
- package/lib/esm/appui-abstract/utils/filter/filters.js.map +1 -1
- package/lib/esm/appui-abstract/utils/filter/map.d.ts +59 -59
- package/lib/esm/appui-abstract/utils/filter/map.js +397 -397
- package/lib/esm/appui-abstract/utils/filter/map.js.map +1 -1
- package/lib/esm/appui-abstract/utils/filter/strings.d.ts +20 -20
- package/lib/esm/appui-abstract/utils/filter/strings.js +70 -70
- package/lib/esm/appui-abstract/utils/filter/strings.js.map +1 -1
- package/lib/esm/appui-abstract/utils/isLetter.d.ts +9 -9
- package/lib/esm/appui-abstract/utils/isLetter.js +15 -15
- package/lib/esm/appui-abstract/utils/isLetter.js.map +1 -1
- package/lib/esm/appui-abstract/utils/misc.d.ts +11 -11
- package/lib/esm/appui-abstract/utils/misc.js +31 -31
- package/lib/esm/appui-abstract/utils/misc.js.map +1 -1
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.d.ts +86 -86
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js +8 -8
- package/lib/esm/appui-abstract/widget/AbstractWidgetProps.js.map +1 -1
- package/lib/esm/appui-abstract/widget/StagePanel.d.ts +36 -36
- package/lib/esm/appui-abstract/widget/StagePanel.js +43 -43
- package/lib/esm/appui-abstract/widget/StagePanel.js.map +1 -1
- package/lib/esm/appui-abstract/widget/WidgetState.d.ts +19 -19
- package/lib/esm/appui-abstract/widget/WidgetState.js +24 -24
- package/lib/esm/appui-abstract/widget/WidgetState.js.map +1 -1
- package/lib/esm/appui-abstract.d.ts +103 -103
- package/lib/esm/appui-abstract.js +107 -107
- package/lib/esm/appui-abstract.js.map +1 -1
- package/package.json +4 -4
@@ -1,128 +1,128 @@
|
|
1
|
-
/** @packageDocumentation
|
2
|
-
* @module Properties
|
3
|
-
*/
|
4
|
-
import { BasePropertyEditorParams, PropertyEditorParams, RangeEditorParams } from "./EditorParams";
|
5
|
-
/**
|
6
|
-
* Information about an enumeration choice
|
7
|
-
* @public
|
8
|
-
*/
|
9
|
-
export interface EnumerationChoice {
|
10
|
-
label: string;
|
11
|
-
value: string | number;
|
12
|
-
}
|
13
|
-
/**
|
14
|
-
* Information about a set of enumeration choices
|
15
|
-
* @public
|
16
|
-
*/
|
17
|
-
export interface EnumerationChoicesInfo {
|
18
|
-
choices: Promise<EnumerationChoice[]> | EnumerationChoice[];
|
19
|
-
isStrict?: boolean;
|
20
|
-
maxDisplayedRows?: number;
|
21
|
-
}
|
22
|
-
/**
|
23
|
-
* Property renderer identification and customization attributes
|
24
|
-
* @public
|
25
|
-
*/
|
26
|
-
export interface PropertyRendererInfo {
|
27
|
-
name: string;
|
28
|
-
}
|
29
|
-
/**
|
30
|
-
* Information about a Property Editor
|
31
|
-
* @public
|
32
|
-
*/
|
33
|
-
export interface PropertyEditorInfo {
|
34
|
-
/** Editor name used in addition to the typename to find the registered property editor */
|
35
|
-
name?: string;
|
36
|
-
/** Editor params provided to the property editor */
|
37
|
-
params?: PropertyEditorParams[];
|
38
|
-
}
|
39
|
-
/**
|
40
|
-
* Information about a Property Converter
|
41
|
-
* @public
|
42
|
-
*/
|
43
|
-
export interface PropertyConverterInfo {
|
44
|
-
/** Converter name used in addition to the typename to find the registered property converter */
|
45
|
-
name?: string;
|
46
|
-
/** map of options for type converter */
|
47
|
-
options?: {
|
48
|
-
[key: string]: any;
|
49
|
-
};
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* [[PropertyDescription]] contains metadata about a Property
|
53
|
-
* @public
|
54
|
-
*/
|
55
|
-
export interface PropertyDescription {
|
56
|
-
/** Name of the property description */
|
57
|
-
name: string;
|
58
|
-
/** Display label for the property description */
|
59
|
-
displayLabel: string;
|
60
|
-
/** Type name used to determine applicable Type Converter and Property Editor */
|
61
|
-
typename: string;
|
62
|
-
/** Additional information for enumerations */
|
63
|
-
enum?: EnumerationChoicesInfo;
|
64
|
-
/** Information for property renderer customization */
|
65
|
-
renderer?: PropertyRendererInfo;
|
66
|
-
/** Information for a property editor */
|
67
|
-
editor?: PropertyEditorInfo;
|
68
|
-
/** Information for a property converter */
|
69
|
-
converter?: PropertyConverterInfo;
|
70
|
-
/** Quantity type key used to look up formatting and parsing specs. This is typically either the name of a quantity type used by a tool
|
71
|
-
* or the full name of a KOQ (schema:koq).
|
72
|
-
* @alpha
|
73
|
-
*/
|
74
|
-
quantityType?: string;
|
75
|
-
/** Get the custom DataController by this name and register it with the property editor */
|
76
|
-
dataController?: string;
|
77
|
-
/**
|
78
|
-
* Should property label for composite (struct & array) properties be rendered.
|
79
|
-
* @alpha
|
80
|
-
*/
|
81
|
-
hideCompositePropertyLabel?: boolean;
|
82
|
-
}
|
83
|
-
/** Helper class that builds property descriptions for specific PropertyEditors and processes descriptions.
|
84
|
-
* @public
|
85
|
-
*/
|
86
|
-
export declare class PropertyDescriptionHelper {
|
87
|
-
/** Builds a number description with a "weight-picker" editor name
|
88
|
-
* @public
|
89
|
-
*/
|
90
|
-
static buildWeightPickerDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
91
|
-
/** Builds an editor that uses [NumberInput]($core-react) control
|
92
|
-
* @public
|
93
|
-
*/
|
94
|
-
static buildNumberEditorDescription(name: string, label: string, overrideParams?: RangeEditorParams, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
95
|
-
/** Builds a string description
|
96
|
-
* @public
|
97
|
-
*/
|
98
|
-
static buildTextEditorDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
99
|
-
/** Builds an enum description
|
100
|
-
* @public
|
101
|
-
*/
|
102
|
-
static buildEnumPicklistEditorDescription(name: string, label: string, choices: Promise<EnumerationChoice[]> | EnumerationChoice[], additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
103
|
-
/** Builds a number description for a tool settings or dialog property that will display a "color-picker" control.
|
104
|
-
* @public
|
105
|
-
*/
|
106
|
-
static buildColorPickerDescription(name: string, label: string, colorValues: number[], numColumns: number, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
107
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a "toggle" control.
|
108
|
-
* @public
|
109
|
-
*/
|
110
|
-
static buildToggleDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
111
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a "image-check-box" control.
|
112
|
-
* @public
|
113
|
-
*/
|
114
|
-
static buildImageCheckBoxDescription(name: string, label: string, imageOff: string, imageOn: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
115
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a checkbox control.
|
116
|
-
* @public
|
117
|
-
*/
|
118
|
-
static buildCheckboxDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
119
|
-
/** Builds a property description for a tool settings or dialog `lock` property. This will create a checkbox control with no label.
|
120
|
-
* @public
|
121
|
-
*/
|
122
|
-
static buildLockPropertyDescription(name: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
123
|
-
/** Bumps an enum property description value
|
124
|
-
* @public
|
125
|
-
*/
|
126
|
-
static bumpEnumProperty(description: PropertyDescription, value: string | number): Promise<string | number>;
|
127
|
-
}
|
1
|
+
/** @packageDocumentation
|
2
|
+
* @module Properties
|
3
|
+
*/
|
4
|
+
import { BasePropertyEditorParams, PropertyEditorParams, RangeEditorParams } from "./EditorParams";
|
5
|
+
/**
|
6
|
+
* Information about an enumeration choice
|
7
|
+
* @public
|
8
|
+
*/
|
9
|
+
export interface EnumerationChoice {
|
10
|
+
label: string;
|
11
|
+
value: string | number;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* Information about a set of enumeration choices
|
15
|
+
* @public
|
16
|
+
*/
|
17
|
+
export interface EnumerationChoicesInfo {
|
18
|
+
choices: Promise<EnumerationChoice[]> | EnumerationChoice[];
|
19
|
+
isStrict?: boolean;
|
20
|
+
maxDisplayedRows?: number;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Property renderer identification and customization attributes
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
export interface PropertyRendererInfo {
|
27
|
+
name: string;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Information about a Property Editor
|
31
|
+
* @public
|
32
|
+
*/
|
33
|
+
export interface PropertyEditorInfo {
|
34
|
+
/** Editor name used in addition to the typename to find the registered property editor */
|
35
|
+
name?: string;
|
36
|
+
/** Editor params provided to the property editor */
|
37
|
+
params?: PropertyEditorParams[];
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Information about a Property Converter
|
41
|
+
* @public
|
42
|
+
*/
|
43
|
+
export interface PropertyConverterInfo {
|
44
|
+
/** Converter name used in addition to the typename to find the registered property converter */
|
45
|
+
name?: string;
|
46
|
+
/** map of options for type converter */
|
47
|
+
options?: {
|
48
|
+
[key: string]: any;
|
49
|
+
};
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* [[PropertyDescription]] contains metadata about a Property
|
53
|
+
* @public
|
54
|
+
*/
|
55
|
+
export interface PropertyDescription {
|
56
|
+
/** Name of the property description */
|
57
|
+
name: string;
|
58
|
+
/** Display label for the property description */
|
59
|
+
displayLabel: string;
|
60
|
+
/** Type name used to determine applicable Type Converter and Property Editor */
|
61
|
+
typename: string;
|
62
|
+
/** Additional information for enumerations */
|
63
|
+
enum?: EnumerationChoicesInfo;
|
64
|
+
/** Information for property renderer customization */
|
65
|
+
renderer?: PropertyRendererInfo;
|
66
|
+
/** Information for a property editor */
|
67
|
+
editor?: PropertyEditorInfo;
|
68
|
+
/** Information for a property converter */
|
69
|
+
converter?: PropertyConverterInfo;
|
70
|
+
/** Quantity type key used to look up formatting and parsing specs. This is typically either the name of a quantity type used by a tool
|
71
|
+
* or the full name of a KOQ (schema:koq).
|
72
|
+
* @alpha
|
73
|
+
*/
|
74
|
+
quantityType?: string;
|
75
|
+
/** Get the custom DataController by this name and register it with the property editor */
|
76
|
+
dataController?: string;
|
77
|
+
/**
|
78
|
+
* Should property label for composite (struct & array) properties be rendered.
|
79
|
+
* @alpha
|
80
|
+
*/
|
81
|
+
hideCompositePropertyLabel?: boolean;
|
82
|
+
}
|
83
|
+
/** Helper class that builds property descriptions for specific PropertyEditors and processes descriptions.
|
84
|
+
* @public
|
85
|
+
*/
|
86
|
+
export declare class PropertyDescriptionHelper {
|
87
|
+
/** Builds a number description with a "weight-picker" editor name
|
88
|
+
* @public
|
89
|
+
*/
|
90
|
+
static buildWeightPickerDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
91
|
+
/** Builds an editor that uses [NumberInput]($core-react) control
|
92
|
+
* @public
|
93
|
+
*/
|
94
|
+
static buildNumberEditorDescription(name: string, label: string, overrideParams?: RangeEditorParams, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
95
|
+
/** Builds a string description
|
96
|
+
* @public
|
97
|
+
*/
|
98
|
+
static buildTextEditorDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
99
|
+
/** Builds an enum description
|
100
|
+
* @public
|
101
|
+
*/
|
102
|
+
static buildEnumPicklistEditorDescription(name: string, label: string, choices: Promise<EnumerationChoice[]> | EnumerationChoice[], additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
103
|
+
/** Builds a number description for a tool settings or dialog property that will display a "color-picker" control.
|
104
|
+
* @public
|
105
|
+
*/
|
106
|
+
static buildColorPickerDescription(name: string, label: string, colorValues: number[], numColumns: number, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
107
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a "toggle" control.
|
108
|
+
* @public
|
109
|
+
*/
|
110
|
+
static buildToggleDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
111
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a "image-check-box" control.
|
112
|
+
* @public
|
113
|
+
*/
|
114
|
+
static buildImageCheckBoxDescription(name: string, label: string, imageOff: string, imageOn: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
115
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a checkbox control.
|
116
|
+
* @public
|
117
|
+
*/
|
118
|
+
static buildCheckboxDescription(name: string, label: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
119
|
+
/** Builds a property description for a tool settings or dialog `lock` property. This will create a checkbox control with no label.
|
120
|
+
* @public
|
121
|
+
*/
|
122
|
+
static buildLockPropertyDescription(name: string, additionalParams?: BasePropertyEditorParams[]): PropertyDescription;
|
123
|
+
/** Bumps an enum property description value
|
124
|
+
* @public
|
125
|
+
*/
|
126
|
+
static bumpEnumProperty(description: PropertyDescription, value: string | number): Promise<string | number>;
|
127
|
+
}
|
128
128
|
//# sourceMappingURL=Description.d.ts.map
|
@@ -1,197 +1,197 @@
|
|
1
|
-
"use strict";
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
6
|
-
/** @packageDocumentation
|
7
|
-
* @module Properties
|
8
|
-
*/
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.PropertyDescriptionHelper = void 0;
|
11
|
-
const EditorParams_1 = require("./EditorParams");
|
12
|
-
const StandardEditorNames_1 = require("./StandardEditorNames");
|
13
|
-
const StandardTypeNames_1 = require("./StandardTypeNames");
|
14
|
-
/** Helper class that builds property descriptions for specific PropertyEditors and processes descriptions.
|
15
|
-
* @public
|
16
|
-
*/
|
17
|
-
class PropertyDescriptionHelper {
|
18
|
-
/** Builds a number description with a "weight-picker" editor name
|
19
|
-
* @public
|
20
|
-
*/
|
21
|
-
static buildWeightPickerDescription(name, label, additionalParams = []) {
|
22
|
-
return {
|
23
|
-
name,
|
24
|
-
displayLabel: label,
|
25
|
-
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
26
|
-
editor: {
|
27
|
-
name: StandardEditorNames_1.StandardEditorNames.WeightPicker,
|
28
|
-
params: additionalParams,
|
29
|
-
},
|
30
|
-
};
|
31
|
-
}
|
32
|
-
/** Builds an editor that uses [NumberInput]($core-react) control
|
33
|
-
* @public
|
34
|
-
*/
|
35
|
-
static buildNumberEditorDescription(name, label, overrideParams, additionalParams = []) {
|
36
|
-
const editorParams = [{
|
37
|
-
type: EditorParams_1.PropertyEditorParamTypes.Range,
|
38
|
-
step: 1,
|
39
|
-
precision: 0,
|
40
|
-
...overrideParams,
|
41
|
-
}, ...additionalParams];
|
42
|
-
const editor = {
|
43
|
-
name: StandardEditorNames_1.StandardEditorNames.NumericInput,
|
44
|
-
params: editorParams,
|
45
|
-
};
|
46
|
-
return {
|
47
|
-
name,
|
48
|
-
displayLabel: label,
|
49
|
-
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
50
|
-
editor,
|
51
|
-
};
|
52
|
-
}
|
53
|
-
/** Builds a string description
|
54
|
-
* @public
|
55
|
-
*/
|
56
|
-
static buildTextEditorDescription(name, label, additionalParams = []) {
|
57
|
-
const editor = {
|
58
|
-
params: additionalParams,
|
59
|
-
};
|
60
|
-
return {
|
61
|
-
name,
|
62
|
-
displayLabel: label,
|
63
|
-
typename: StandardTypeNames_1.StandardTypeNames.String,
|
64
|
-
editor,
|
65
|
-
};
|
66
|
-
}
|
67
|
-
/** Builds an enum description
|
68
|
-
* @public
|
69
|
-
*/
|
70
|
-
static buildEnumPicklistEditorDescription(name, label, choices, additionalParams = []) {
|
71
|
-
const editor = additionalParams.length ? {
|
72
|
-
params: additionalParams,
|
73
|
-
} : undefined;
|
74
|
-
return {
|
75
|
-
name,
|
76
|
-
displayLabel: label,
|
77
|
-
typename: StandardTypeNames_1.StandardTypeNames.Enum,
|
78
|
-
editor,
|
79
|
-
enum: {
|
80
|
-
choices,
|
81
|
-
},
|
82
|
-
};
|
83
|
-
}
|
84
|
-
/** Builds a number description for a tool settings or dialog property that will display a "color-picker" control.
|
85
|
-
* @public
|
86
|
-
*/
|
87
|
-
static buildColorPickerDescription(name, label, colorValues, numColumns, additionalParams = []) {
|
88
|
-
const editorParams = [
|
89
|
-
{
|
90
|
-
type: EditorParams_1.PropertyEditorParamTypes.ColorData,
|
91
|
-
colorValues,
|
92
|
-
numColumns,
|
93
|
-
},
|
94
|
-
...additionalParams,
|
95
|
-
];
|
96
|
-
return {
|
97
|
-
name,
|
98
|
-
displayLabel: label,
|
99
|
-
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
100
|
-
editor: {
|
101
|
-
name: StandardEditorNames_1.StandardEditorNames.ColorPicker,
|
102
|
-
params: editorParams,
|
103
|
-
},
|
104
|
-
};
|
105
|
-
}
|
106
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a "toggle" control.
|
107
|
-
* @public
|
108
|
-
*/
|
109
|
-
static buildToggleDescription(name, label, additionalParams = []) {
|
110
|
-
return {
|
111
|
-
name,
|
112
|
-
displayLabel: label,
|
113
|
-
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
114
|
-
editor: {
|
115
|
-
name: StandardEditorNames_1.StandardEditorNames.Toggle,
|
116
|
-
params: additionalParams,
|
117
|
-
},
|
118
|
-
};
|
119
|
-
}
|
120
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a "image-check-box" control.
|
121
|
-
* @public
|
122
|
-
*/
|
123
|
-
static buildImageCheckBoxDescription(name, label, imageOff, imageOn, additionalParams = []) {
|
124
|
-
const editorParams = [{
|
125
|
-
type: EditorParams_1.PropertyEditorParamTypes.CheckBoxImages,
|
126
|
-
imageOff,
|
127
|
-
imageOn,
|
128
|
-
}, ...additionalParams];
|
129
|
-
return {
|
130
|
-
name,
|
131
|
-
displayLabel: label,
|
132
|
-
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
133
|
-
editor: {
|
134
|
-
name: StandardEditorNames_1.StandardEditorNames.ImageCheckBox,
|
135
|
-
params: editorParams,
|
136
|
-
},
|
137
|
-
};
|
138
|
-
}
|
139
|
-
/** Builds a boolean description for a tool settings or dialog property that will display a checkbox control.
|
140
|
-
* @public
|
141
|
-
*/
|
142
|
-
static buildCheckboxDescription(name, label, additionalParams = []) {
|
143
|
-
const editor = {
|
144
|
-
params: additionalParams,
|
145
|
-
};
|
146
|
-
return {
|
147
|
-
name,
|
148
|
-
displayLabel: label,
|
149
|
-
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
150
|
-
editor,
|
151
|
-
};
|
152
|
-
}
|
153
|
-
/** Builds a property description for a tool settings or dialog `lock` property. This will create a checkbox control with no label.
|
154
|
-
* @public
|
155
|
-
*/
|
156
|
-
static buildLockPropertyDescription(name, additionalParams = []) {
|
157
|
-
const defaultParams = {
|
158
|
-
type: EditorParams_1.PropertyEditorParamTypes.SuppressEditorLabel,
|
159
|
-
suppressLabelPlaceholder: true,
|
160
|
-
};
|
161
|
-
const editor = {
|
162
|
-
params: [defaultParams, ...additionalParams],
|
163
|
-
};
|
164
|
-
return {
|
165
|
-
name,
|
166
|
-
displayLabel: "",
|
167
|
-
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
168
|
-
editor,
|
169
|
-
};
|
170
|
-
}
|
171
|
-
/** Bumps an enum property description value
|
172
|
-
* @public
|
173
|
-
*/
|
174
|
-
static async bumpEnumProperty(description, value) {
|
175
|
-
let choices;
|
176
|
-
if (description.enum) {
|
177
|
-
if (description.enum.choices instanceof Promise) {
|
178
|
-
choices = await description.enum.choices;
|
179
|
-
}
|
180
|
-
else {
|
181
|
-
choices = description.enum.choices;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
if (!choices || choices.length === 0)
|
185
|
-
return value;
|
186
|
-
let choiceIndex = choices.findIndex((choice) => choice.value === value);
|
187
|
-
if (choiceIndex < 0)
|
188
|
-
return value;
|
189
|
-
choiceIndex++;
|
190
|
-
if (choiceIndex >= choices.length)
|
191
|
-
choiceIndex = 0;
|
192
|
-
const newValue = choices[choiceIndex].value;
|
193
|
-
return newValue;
|
194
|
-
}
|
195
|
-
}
|
196
|
-
exports.PropertyDescriptionHelper = PropertyDescriptionHelper;
|
1
|
+
"use strict";
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
6
|
+
/** @packageDocumentation
|
7
|
+
* @module Properties
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.PropertyDescriptionHelper = void 0;
|
11
|
+
const EditorParams_1 = require("./EditorParams");
|
12
|
+
const StandardEditorNames_1 = require("./StandardEditorNames");
|
13
|
+
const StandardTypeNames_1 = require("./StandardTypeNames");
|
14
|
+
/** Helper class that builds property descriptions for specific PropertyEditors and processes descriptions.
|
15
|
+
* @public
|
16
|
+
*/
|
17
|
+
class PropertyDescriptionHelper {
|
18
|
+
/** Builds a number description with a "weight-picker" editor name
|
19
|
+
* @public
|
20
|
+
*/
|
21
|
+
static buildWeightPickerDescription(name, label, additionalParams = []) {
|
22
|
+
return {
|
23
|
+
name,
|
24
|
+
displayLabel: label,
|
25
|
+
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
26
|
+
editor: {
|
27
|
+
name: StandardEditorNames_1.StandardEditorNames.WeightPicker,
|
28
|
+
params: additionalParams,
|
29
|
+
},
|
30
|
+
};
|
31
|
+
}
|
32
|
+
/** Builds an editor that uses [NumberInput]($core-react) control
|
33
|
+
* @public
|
34
|
+
*/
|
35
|
+
static buildNumberEditorDescription(name, label, overrideParams, additionalParams = []) {
|
36
|
+
const editorParams = [{
|
37
|
+
type: EditorParams_1.PropertyEditorParamTypes.Range,
|
38
|
+
step: 1,
|
39
|
+
precision: 0,
|
40
|
+
...overrideParams,
|
41
|
+
}, ...additionalParams];
|
42
|
+
const editor = {
|
43
|
+
name: StandardEditorNames_1.StandardEditorNames.NumericInput,
|
44
|
+
params: editorParams,
|
45
|
+
};
|
46
|
+
return {
|
47
|
+
name,
|
48
|
+
displayLabel: label,
|
49
|
+
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
50
|
+
editor,
|
51
|
+
};
|
52
|
+
}
|
53
|
+
/** Builds a string description
|
54
|
+
* @public
|
55
|
+
*/
|
56
|
+
static buildTextEditorDescription(name, label, additionalParams = []) {
|
57
|
+
const editor = {
|
58
|
+
params: additionalParams,
|
59
|
+
};
|
60
|
+
return {
|
61
|
+
name,
|
62
|
+
displayLabel: label,
|
63
|
+
typename: StandardTypeNames_1.StandardTypeNames.String,
|
64
|
+
editor,
|
65
|
+
};
|
66
|
+
}
|
67
|
+
/** Builds an enum description
|
68
|
+
* @public
|
69
|
+
*/
|
70
|
+
static buildEnumPicklistEditorDescription(name, label, choices, additionalParams = []) {
|
71
|
+
const editor = additionalParams.length ? {
|
72
|
+
params: additionalParams,
|
73
|
+
} : undefined;
|
74
|
+
return {
|
75
|
+
name,
|
76
|
+
displayLabel: label,
|
77
|
+
typename: StandardTypeNames_1.StandardTypeNames.Enum,
|
78
|
+
editor,
|
79
|
+
enum: {
|
80
|
+
choices,
|
81
|
+
},
|
82
|
+
};
|
83
|
+
}
|
84
|
+
/** Builds a number description for a tool settings or dialog property that will display a "color-picker" control.
|
85
|
+
* @public
|
86
|
+
*/
|
87
|
+
static buildColorPickerDescription(name, label, colorValues, numColumns, additionalParams = []) {
|
88
|
+
const editorParams = [
|
89
|
+
{
|
90
|
+
type: EditorParams_1.PropertyEditorParamTypes.ColorData,
|
91
|
+
colorValues,
|
92
|
+
numColumns,
|
93
|
+
},
|
94
|
+
...additionalParams,
|
95
|
+
];
|
96
|
+
return {
|
97
|
+
name,
|
98
|
+
displayLabel: label,
|
99
|
+
typename: StandardTypeNames_1.StandardTypeNames.Number,
|
100
|
+
editor: {
|
101
|
+
name: StandardEditorNames_1.StandardEditorNames.ColorPicker,
|
102
|
+
params: editorParams,
|
103
|
+
},
|
104
|
+
};
|
105
|
+
}
|
106
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a "toggle" control.
|
107
|
+
* @public
|
108
|
+
*/
|
109
|
+
static buildToggleDescription(name, label, additionalParams = []) {
|
110
|
+
return {
|
111
|
+
name,
|
112
|
+
displayLabel: label,
|
113
|
+
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
114
|
+
editor: {
|
115
|
+
name: StandardEditorNames_1.StandardEditorNames.Toggle,
|
116
|
+
params: additionalParams,
|
117
|
+
},
|
118
|
+
};
|
119
|
+
}
|
120
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a "image-check-box" control.
|
121
|
+
* @public
|
122
|
+
*/
|
123
|
+
static buildImageCheckBoxDescription(name, label, imageOff, imageOn, additionalParams = []) {
|
124
|
+
const editorParams = [{
|
125
|
+
type: EditorParams_1.PropertyEditorParamTypes.CheckBoxImages,
|
126
|
+
imageOff,
|
127
|
+
imageOn,
|
128
|
+
}, ...additionalParams];
|
129
|
+
return {
|
130
|
+
name,
|
131
|
+
displayLabel: label,
|
132
|
+
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
133
|
+
editor: {
|
134
|
+
name: StandardEditorNames_1.StandardEditorNames.ImageCheckBox,
|
135
|
+
params: editorParams,
|
136
|
+
},
|
137
|
+
};
|
138
|
+
}
|
139
|
+
/** Builds a boolean description for a tool settings or dialog property that will display a checkbox control.
|
140
|
+
* @public
|
141
|
+
*/
|
142
|
+
static buildCheckboxDescription(name, label, additionalParams = []) {
|
143
|
+
const editor = {
|
144
|
+
params: additionalParams,
|
145
|
+
};
|
146
|
+
return {
|
147
|
+
name,
|
148
|
+
displayLabel: label,
|
149
|
+
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
150
|
+
editor,
|
151
|
+
};
|
152
|
+
}
|
153
|
+
/** Builds a property description for a tool settings or dialog `lock` property. This will create a checkbox control with no label.
|
154
|
+
* @public
|
155
|
+
*/
|
156
|
+
static buildLockPropertyDescription(name, additionalParams = []) {
|
157
|
+
const defaultParams = {
|
158
|
+
type: EditorParams_1.PropertyEditorParamTypes.SuppressEditorLabel,
|
159
|
+
suppressLabelPlaceholder: true,
|
160
|
+
};
|
161
|
+
const editor = {
|
162
|
+
params: [defaultParams, ...additionalParams],
|
163
|
+
};
|
164
|
+
return {
|
165
|
+
name,
|
166
|
+
displayLabel: "",
|
167
|
+
typename: StandardTypeNames_1.StandardTypeNames.Boolean,
|
168
|
+
editor,
|
169
|
+
};
|
170
|
+
}
|
171
|
+
/** Bumps an enum property description value
|
172
|
+
* @public
|
173
|
+
*/
|
174
|
+
static async bumpEnumProperty(description, value) {
|
175
|
+
let choices;
|
176
|
+
if (description.enum) {
|
177
|
+
if (description.enum.choices instanceof Promise) {
|
178
|
+
choices = await description.enum.choices;
|
179
|
+
}
|
180
|
+
else {
|
181
|
+
choices = description.enum.choices;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
if (!choices || choices.length === 0)
|
185
|
+
return value;
|
186
|
+
let choiceIndex = choices.findIndex((choice) => choice.value === value);
|
187
|
+
if (choiceIndex < 0)
|
188
|
+
return value;
|
189
|
+
choiceIndex++;
|
190
|
+
if (choiceIndex >= choices.length)
|
191
|
+
choiceIndex = 0;
|
192
|
+
const newValue = choices[choiceIndex].value;
|
193
|
+
return newValue;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
exports.PropertyDescriptionHelper = PropertyDescriptionHelper;
|
197
197
|
//# sourceMappingURL=Description.js.map
|