@itwin/appui-react 4.16.5 → 4.17.0
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/CHANGELOG.md +21 -1
- package/lib/cjs/appui-react/UiFramework.d.ts +5 -0
- package/lib/cjs/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/cjs/appui-react/UiFramework.js +5 -0
- package/lib/cjs/appui-react/UiFramework.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts +1 -0
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
- package/lib/cjs/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts +1 -0
- package/lib/cjs/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/BackstageComposer.js +2 -0
- package/lib/cjs/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts +2 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js +2 -1
- package/lib/cjs/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -0
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js +7 -2
- package/lib/cjs/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentGroup.d.ts +8 -4
- package/lib/cjs/appui-react/content/ContentGroup.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentGroup.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts +2 -1
- package/lib/cjs/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayout.js +44 -10
- package/lib/cjs/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/ContentLayoutProps.d.ts +63 -0
- package/lib/cjs/appui-react/content/ContentLayoutProps.d.ts.map +1 -0
- package/lib/cjs/appui-react/content/ContentLayoutProps.js +10 -0
- package/lib/cjs/appui-react/content/ContentLayoutProps.js.map +1 -0
- package/lib/cjs/appui-react/content/ContentOverlay.d.ts +4 -0
- package/lib/cjs/appui-react/content/ContentOverlay.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/ContentOverlay.js +33 -1
- package/lib/cjs/appui-react/content/ContentOverlay.js.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.js +1 -1
- package/lib/cjs/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts +1 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/InternalContentViewManager.js +9 -3
- package/lib/cjs/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/cjs/appui-react/content/StageContentLayout.d.ts +1 -1
- package/lib/cjs/appui-react/content/StageContentLayout.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/StageContentLayout.js.map +1 -1
- package/lib/cjs/appui-react/content/StandardContentLayouts.d.ts +20 -0
- package/lib/cjs/appui-react/content/StandardContentLayouts.d.ts.map +1 -0
- package/lib/cjs/appui-react/content/StandardContentLayouts.js +169 -0
- package/lib/cjs/appui-react/content/StandardContentLayouts.js.map +1 -0
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts +1 -0
- package/lib/cjs/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js +1 -0
- package/lib/cjs/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.d.ts +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts +3 -0
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
- package/lib/cjs/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts +1 -0
- package/lib/cjs/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js +2 -1
- package/lib/cjs/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts +2 -0
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js +5 -0
- package/lib/cjs/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useConditionalProp.d.ts +3 -3
- package/lib/cjs/appui-react/hooks/useConditionalProp.d.ts.map +1 -1
- package/lib/cjs/appui-react/hooks/useConditionalProp.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useConditionalValue.d.ts +1 -1
- package/lib/cjs/appui-react/hooks/useConditionalValue.js +1 -1
- package/lib/cjs/appui-react/hooks/useConditionalValue.js.map +1 -1
- package/lib/cjs/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
- package/lib/cjs/appui-react/hooks/useUiVisibility.js +1 -0
- package/lib/cjs/appui-react/hooks/useUiVisibility.js.map +1 -1
- package/lib/cjs/appui-react/layout/base/LayoutStore.d.ts +3 -1
- package/lib/cjs/appui-react/layout/base/LayoutStore.d.ts.map +1 -1
- package/lib/cjs/appui-react/layout/base/LayoutStore.js +9 -1
- package/lib/cjs/appui-react/layout/base/LayoutStore.js.map +1 -1
- package/lib/cjs/appui-react/shared/ConditionalValue.d.ts +10 -7
- package/lib/cjs/appui-react/shared/ConditionalValue.d.ts.map +1 -1
- package/lib/cjs/appui-react/shared/ConditionalValue.js +3 -4
- package/lib/cjs/appui-react/shared/ConditionalValue.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts +1 -0
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js +3 -0
- package/lib/cjs/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.d.ts +1 -0
- package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js +1 -0
- package/lib/cjs/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts +1 -0
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +1 -0
- package/lib/cjs/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.js +1 -1
- package/lib/cjs/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts +2 -0
- package/lib/cjs/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/cjs/appui-react/statusfields/SnapMode.js +59 -83
- package/lib/cjs/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts +7 -8
- package/lib/cjs/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/theme/ThemeManager.js +7 -8
- package/lib/cjs/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.js +1 -0
- package/lib/cjs/appui-react/toolbar/ToolbarComposer.js.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
- package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js +11 -6
- package/lib/cjs/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +1 -0
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js +1 -0
- package/lib/cjs/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +3 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +6 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +117 -88
- package/lib/cjs/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +2 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +4 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +3 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +79 -60
- package/lib/cjs/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +1 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -0
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +4 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +6 -2
- package/lib/cjs/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts +1 -0
- package/lib/cjs/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/cjs/appui-react/uistate/useUiStateStorage.js +1 -0
- package/lib/cjs/appui-react/uistate/useUiStateStorage.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts +1 -0
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js +1 -0
- package/lib/cjs/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts +1 -0
- package/lib/cjs/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js +1 -0
- package/lib/cjs/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts +1 -0
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js +3 -1
- package/lib/cjs/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts +2 -0
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js +2 -0
- package/lib/cjs/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts +2 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js +1 -0
- package/lib/cjs/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts +1 -0
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js +1 -0
- package/lib/cjs/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/cjs/appui-react/widgets/WidgetDef.js +7 -7
- package/lib/cjs/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/cjs/appui-react.d.ts +3 -0
- package/lib/cjs/appui-react.d.ts.map +1 -1
- package/lib/cjs/appui-react.js +3 -0
- package/lib/cjs/appui-react.js.map +1 -1
- package/lib/esm/appui-react/UiFramework.d.ts +5 -0
- package/lib/esm/appui-react/UiFramework.d.ts.map +1 -1
- package/lib/esm/appui-react/UiFramework.js +6 -1
- package/lib/esm/appui-react/UiFramework.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.js +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawDialog.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawFieldContainer.js.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts +1 -0
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.d.ts.map +1 -1
- package/lib/esm/appui-react/accudraw/AccuDrawInputField.js.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts +1 -0
- package/lib/esm/appui-react/backstage/BackstageComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/BackstageComposer.js +2 -0
- package/lib/esm/appui-react/backstage/BackstageComposer.js.map +1 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts +2 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.d.ts.map +1 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js +2 -1
- package/lib/esm/appui-react/backstage/useUiItemsProviderBackstageItems.js.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts +1 -0
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.d.ts.map +1 -1
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js +7 -2
- package/lib/esm/appui-react/configurableui/ConfigurableUiContent.js.map +1 -1
- package/lib/esm/appui-react/content/ContentGroup.d.ts +8 -4
- package/lib/esm/appui-react/content/ContentGroup.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentGroup.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts +2 -1
- package/lib/esm/appui-react/content/ContentLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentLayout.js +45 -11
- package/lib/esm/appui-react/content/ContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/ContentLayoutProps.d.ts +63 -0
- package/lib/esm/appui-react/content/ContentLayoutProps.d.ts.map +1 -0
- package/lib/esm/appui-react/content/ContentLayoutProps.js +9 -0
- package/lib/esm/appui-react/content/ContentLayoutProps.js.map +1 -0
- package/lib/esm/appui-react/content/ContentOverlay.d.ts +4 -0
- package/lib/esm/appui-react/content/ContentOverlay.d.ts.map +1 -1
- package/lib/esm/appui-react/content/ContentOverlay.js +32 -0
- package/lib/esm/appui-react/content/ContentOverlay.js.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.d.ts.map +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.js +1 -1
- package/lib/esm/appui-react/content/FloatingViewportContent.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts +1 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.d.ts.map +1 -1
- package/lib/esm/appui-react/content/InternalContentLayoutManager.js.map +1 -1
- package/lib/esm/appui-react/content/InternalContentViewManager.d.ts.map +1 -1
- package/lib/esm/appui-react/content/InternalContentViewManager.js +9 -3
- package/lib/esm/appui-react/content/InternalContentViewManager.js.map +1 -1
- package/lib/esm/appui-react/content/StageContentLayout.d.ts +1 -1
- package/lib/esm/appui-react/content/StageContentLayout.d.ts.map +1 -1
- package/lib/esm/appui-react/content/StageContentLayout.js.map +1 -1
- package/lib/esm/appui-react/content/StandardContentLayouts.d.ts +20 -0
- package/lib/esm/appui-react/content/StandardContentLayouts.d.ts.map +1 -0
- package/lib/esm/appui-react/content/StandardContentLayouts.js +165 -0
- package/lib/esm/appui-react/content/StandardContentLayouts.js.map +1 -0
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts +1 -0
- package/lib/esm/appui-react/content/split-pane/SplitPane.d.ts.map +1 -1
- package/lib/esm/appui-react/content/split-pane/SplitPane.js +1 -0
- package/lib/esm/appui-react/content/split-pane/SplitPane.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.d.ts +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkContent.js.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts +3 -0
- package/lib/esm/appui-react/framework/FrameworkFrontstages.d.ts.map +1 -1
- package/lib/esm/appui-react/framework/FrameworkFrontstages.js.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts +1 -0
- package/lib/esm/appui-react/frontstage/FrontstageDef.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js +2 -1
- package/lib/esm/appui-react/frontstage/FrontstageDef.js.map +1 -1
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts +2 -0
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.d.ts.map +1 -1
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js +5 -0
- package/lib/esm/appui-react/frontstage/InternalFrontstageManager.js.map +1 -1
- package/lib/esm/appui-react/hooks/useConditionalProp.d.ts +3 -3
- package/lib/esm/appui-react/hooks/useConditionalProp.d.ts.map +1 -1
- package/lib/esm/appui-react/hooks/useConditionalProp.js.map +1 -1
- package/lib/esm/appui-react/hooks/useConditionalValue.d.ts +1 -1
- package/lib/esm/appui-react/hooks/useConditionalValue.js +1 -1
- package/lib/esm/appui-react/hooks/useConditionalValue.js.map +1 -1
- package/lib/esm/appui-react/hooks/useUiVisibility.d.ts.map +1 -1
- package/lib/esm/appui-react/hooks/useUiVisibility.js +1 -0
- package/lib/esm/appui-react/hooks/useUiVisibility.js.map +1 -1
- package/lib/esm/appui-react/layout/base/LayoutStore.d.ts +3 -1
- package/lib/esm/appui-react/layout/base/LayoutStore.d.ts.map +1 -1
- package/lib/esm/appui-react/layout/base/LayoutStore.js +7 -0
- package/lib/esm/appui-react/layout/base/LayoutStore.js.map +1 -1
- package/lib/esm/appui-react/shared/ConditionalValue.d.ts +10 -7
- package/lib/esm/appui-react/shared/ConditionalValue.d.ts.map +1 -1
- package/lib/esm/appui-react/shared/ConditionalValue.js +2 -3
- package/lib/esm/appui-react/shared/ConditionalValue.js.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts +1 -0
- package/lib/esm/appui-react/statusbar/StatusBarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js +3 -0
- package/lib/esm/appui-react/statusbar/StatusBarComposer.js.map +1 -1
- package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.d.ts +1 -0
- package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js +1 -0
- package/lib/esm/appui-react/statusbar/useDefaultStatusBarItems.js.map +1 -1
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts +1 -0
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.d.ts.map +1 -1
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js +1 -0
- package/lib/esm/appui-react/statusbar/useUiItemsProviderStatusBarItems.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.js +1 -1
- package/lib/esm/appui-react/statusfields/SelectionScope.js.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts +2 -0
- package/lib/esm/appui-react/statusfields/SnapMode.d.ts.map +1 -1
- package/lib/esm/appui-react/statusfields/SnapMode.js +59 -83
- package/lib/esm/appui-react/statusfields/SnapMode.js.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.d.ts +7 -8
- package/lib/esm/appui-react/theme/ThemeManager.d.ts.map +1 -1
- package/lib/esm/appui-react/theme/ThemeManager.js +7 -8
- package/lib/esm/appui-react/theme/ThemeManager.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarComposer.js +1 -0
- package/lib/esm/appui-react/toolbar/ToolbarComposer.js.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemsManager.d.ts.map +1 -1
- package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js +11 -6
- package/lib/esm/appui-react/toolbar/ToolbarItemsManager.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts +1 -0
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js +1 -0
- package/lib/esm/appui-react/ui-items-provider/BaseUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts +3 -2
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js +4 -2
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts +6 -2
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js +117 -88
- package/lib/esm/appui-react/ui-items-provider/StandardContentToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts +2 -2
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js +4 -2
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts +3 -2
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js +79 -60
- package/lib/esm/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts +1 -0
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js +3 -0
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts +4 -2
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js +6 -2
- package/lib/esm/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.js.map +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts +1 -0
- package/lib/esm/appui-react/uistate/useUiStateStorage.d.ts.map +1 -1
- package/lib/esm/appui-react/uistate/useUiStateStorage.js +1 -0
- package/lib/esm/appui-react/uistate/useUiStateStorage.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts +1 -0
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js +1 -0
- package/lib/esm/appui-react/widgets/BasicNavigationWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts +1 -0
- package/lib/esm/appui-react/widgets/BasicToolWidget.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/BasicToolWidget.js +1 -0
- package/lib/esm/appui-react/widgets/BasicToolWidget.js.map +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts +1 -0
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js +3 -1
- package/lib/esm/appui-react/widgets/ContentToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts +2 -0
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js +2 -0
- package/lib/esm/appui-react/widgets/NavigationWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts +2 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.js +1 -0
- package/lib/esm/appui-react/widgets/ToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts +1 -0
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js +1 -0
- package/lib/esm/appui-react/widgets/ViewToolWidgetComposer.js.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.d.ts.map +1 -1
- package/lib/esm/appui-react/widgets/WidgetDef.js +7 -7
- package/lib/esm/appui-react/widgets/WidgetDef.js.map +1 -1
- package/lib/esm/appui-react.d.ts +3 -0
- package/lib/esm/appui-react.d.ts.map +1 -1
- package/lib/esm/appui-react.js +3 -0
- package/lib/esm/appui-react.js.map +1 -1
- package/package.json +7 -7
|
@@ -10,8 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.StandardNavigationToolsUiItemsProvider = void 0;
|
|
11
11
|
const ToolbarItem_1 = require("../toolbar/ToolbarItem");
|
|
12
12
|
const ToolbarItems_1 = require("../tools/ToolbarItems");
|
|
13
|
-
/**
|
|
14
|
-
* Provide standard tools for the ViewNavigationWidgetComposer.
|
|
13
|
+
/** Provide standard view navigation items.
|
|
15
14
|
* @public
|
|
16
15
|
*/
|
|
17
16
|
class StandardNavigationToolsUiItemsProvider {
|
|
@@ -21,68 +20,88 @@ class StandardNavigationToolsUiItemsProvider {
|
|
|
21
20
|
constructor(defaultNavigationTools) {
|
|
22
21
|
this.defaultNavigationTools = defaultNavigationTools;
|
|
23
22
|
}
|
|
23
|
+
/** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideToolbarItems}. */
|
|
24
24
|
provideToolbarItems(_stageId, _stageUsage, toolbarUsage, toolbarOrientation, _stageAppData) {
|
|
25
|
+
return this.getToolbarItems().filter((item) => item.layouts?.standard?.orientation === toolbarOrientation &&
|
|
26
|
+
item.layouts?.standard?.usage === toolbarUsage);
|
|
27
|
+
}
|
|
28
|
+
getToolbarItems() {
|
|
25
29
|
const items = [];
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
itemPriority: 60,
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
30
|
+
const horizontal = {
|
|
31
|
+
standard: {
|
|
32
|
+
orientation: ToolbarItem_1.ToolbarOrientation.Horizontal,
|
|
33
|
+
usage: ToolbarItem_1.ToolbarUsage.ViewNavigation,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
if (!this.defaultNavigationTools ||
|
|
37
|
+
!this.defaultNavigationTools.horizontal ||
|
|
38
|
+
this.defaultNavigationTools.horizontal.rotateView)
|
|
39
|
+
items.push(ToolbarItems_1.ToolbarItems.createRotateView({
|
|
40
|
+
itemPriority: 10,
|
|
41
|
+
layouts: horizontal,
|
|
42
|
+
}));
|
|
43
|
+
if (!this.defaultNavigationTools ||
|
|
44
|
+
!this.defaultNavigationTools.horizontal ||
|
|
45
|
+
this.defaultNavigationTools.horizontal.panView)
|
|
46
|
+
items.push(ToolbarItems_1.ToolbarItems.createPanView({
|
|
47
|
+
itemPriority: 20,
|
|
48
|
+
layouts: horizontal,
|
|
49
|
+
}));
|
|
50
|
+
if (!this.defaultNavigationTools ||
|
|
51
|
+
!this.defaultNavigationTools.horizontal ||
|
|
52
|
+
this.defaultNavigationTools.horizontal.fitView) {
|
|
53
|
+
items.push(ToolbarItems_1.ToolbarItems.createFitView({
|
|
54
|
+
itemPriority: 30,
|
|
55
|
+
layouts: horizontal,
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
if (!this.defaultNavigationTools ||
|
|
59
|
+
!this.defaultNavigationTools.horizontal ||
|
|
60
|
+
this.defaultNavigationTools.horizontal.windowArea) {
|
|
61
|
+
items.push(ToolbarItems_1.ToolbarItems.createWindowArea({
|
|
62
|
+
itemPriority: 40,
|
|
63
|
+
layouts: horizontal,
|
|
64
|
+
}));
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
items.push(ToolbarItems_1.ToolbarItems.createWalkView({
|
|
77
|
-
itemPriority: 10,
|
|
78
|
-
}));
|
|
79
|
-
if (!this.defaultNavigationTools ||
|
|
80
|
-
!this.defaultNavigationTools.vertical ||
|
|
81
|
-
this.defaultNavigationTools.vertical.toggleCamera)
|
|
82
|
-
items.push(ToolbarItems_1.ToolbarItems.createToggleCameraView({
|
|
83
|
-
itemPriority: 20,
|
|
84
|
-
}));
|
|
66
|
+
if (!this.defaultNavigationTools ||
|
|
67
|
+
!this.defaultNavigationTools.horizontal ||
|
|
68
|
+
this.defaultNavigationTools.horizontal.viewUndoRedo) {
|
|
69
|
+
items.push(ToolbarItems_1.ToolbarItems.createViewUndo({
|
|
70
|
+
itemPriority: 50,
|
|
71
|
+
layouts: horizontal,
|
|
72
|
+
}));
|
|
73
|
+
items.push(ToolbarItems_1.ToolbarItems.createViewRedo({
|
|
74
|
+
itemPriority: 60,
|
|
75
|
+
layouts: horizontal,
|
|
76
|
+
}));
|
|
85
77
|
}
|
|
78
|
+
const vertical = {
|
|
79
|
+
standard: {
|
|
80
|
+
orientation: ToolbarItem_1.ToolbarOrientation.Vertical,
|
|
81
|
+
usage: ToolbarItem_1.ToolbarUsage.ViewNavigation,
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
if (!this.defaultNavigationTools ||
|
|
85
|
+
!this.defaultNavigationTools.vertical ||
|
|
86
|
+
this.defaultNavigationTools.vertical.setupWalkCamera)
|
|
87
|
+
items.push(ToolbarItems_1.ToolbarItems.createSetupWalkCamera({
|
|
88
|
+
itemPriority: 5,
|
|
89
|
+
layouts: vertical,
|
|
90
|
+
}));
|
|
91
|
+
if (!this.defaultNavigationTools ||
|
|
92
|
+
!this.defaultNavigationTools.vertical ||
|
|
93
|
+
this.defaultNavigationTools.vertical.walk)
|
|
94
|
+
items.push(ToolbarItems_1.ToolbarItems.createWalkView({
|
|
95
|
+
itemPriority: 10,
|
|
96
|
+
layouts: vertical,
|
|
97
|
+
}));
|
|
98
|
+
if (!this.defaultNavigationTools ||
|
|
99
|
+
!this.defaultNavigationTools.vertical ||
|
|
100
|
+
this.defaultNavigationTools.vertical.toggleCamera)
|
|
101
|
+
items.push(ToolbarItems_1.ToolbarItems.createToggleCameraView({
|
|
102
|
+
itemPriority: 20,
|
|
103
|
+
layouts: vertical,
|
|
104
|
+
}));
|
|
86
105
|
return items;
|
|
87
106
|
}
|
|
88
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardNavigationToolsUiItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,wDAA0E;AAC1E,wDAAqD;AAuBrD
|
|
1
|
+
{"version":3,"file":"StandardNavigationToolsUiItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardNavigationToolsUiItemsProvider.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,wDAA0E;AAC1E,wDAAqD;AAuBrD;;GAEG;AACH,MAAa,sCAAsC;IACjD,IAAW,EAAE;QACX,OAAO,oDAAoD,CAAC;IAC9D,CAAC;IAED,YAAoB,sBAA+C;QAA/C,2BAAsB,GAAtB,sBAAsB,CAAyB;IAAG,CAAC;IAEvE,6GAA6G;IACtG,mBAAmB,CACxB,QAAgB,EAChB,WAAmB,EACnB,YAA0B,EA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AAsB,CAAC,QAAQ,CAAC,IAAI;YAEzC,KAAK,CAAC,IAAI,CACR,2BAAY,CAAC,cAAc,CAAC;gBAC1B,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,QAAQ;aAClB,CAAC,CACH,CAAC;QAEJ,IACE,CAAC,IAAI,CAAC,sBAAsB;YAC5B,CAAC,IAAI,CAAC,sBAAsB,CAAC,QAAQ;YACrC,IAAI,CAAC,sBAAsB,CAAC,QAAQ,CAAC,YAAY;YAEjD,KAAK,CAAC,IAAI,CACR,2BAAY,CAAC,sBAAsB,CAAC;gBAClC,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,QAAQ;aAClB,CAAC,CACH,CAAC;QACJ,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA9ID,wFA8IC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module StandardUiItemsProvider\n */\n\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport { ToolbarOrientation, ToolbarUsage } from \"../toolbar/ToolbarItem\";\nimport { ToolbarItems } from \"../tools/ToolbarItems\";\nimport type { UiItemsProvider } from \"./UiItemsProvider\";\n\n/**\n * Defines what tools to include from the provider. If any tools in the horizontal or vertical group are\n * specified then only those tools will be provided to stage.\n * @public\n */\nexport interface DefaultNavigationTools {\n horizontal?: {\n rotateView?: boolean;\n panView?: boolean;\n fitView?: boolean;\n windowArea?: boolean;\n viewUndoRedo?: boolean;\n };\n vertical?: {\n walk?: boolean;\n toggleCamera?: boolean;\n setupWalkCamera?: boolean;\n };\n}\n\n/** Provide standard view navigation items.\n * @public\n */\nexport class StandardNavigationToolsUiItemsProvider implements UiItemsProvider {\n public get id(): string {\n return \"appui-react:StandardNavigationToolsUiItemsProvider\";\n }\n\n constructor(private defaultNavigationTools?: DefaultNavigationTools) {}\n\n /** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideToolbarItems}. */\n public provideToolbarItems(\n _stageId: string,\n _stageUsage: string,\n toolbarUsage: ToolbarUsage,\n toolbarOrientation: ToolbarOrientation,\n _stageAppData?: any\n ): ToolbarItem[] {\n return this.getToolbarItems().filter(\n (item) =>\n item.layouts?.standard?.orientation === toolbarOrientation &&\n item.layouts?.standard?.usage === toolbarUsage\n );\n }\n\n public getToolbarItems(): readonly ToolbarItem[] {\n const items: ToolbarItem[] = [];\n const horizontal = {\n standard: {\n orientation: ToolbarOrientation.Horizontal,\n usage: ToolbarUsage.ViewNavigation,\n },\n };\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.horizontal ||\n this.defaultNavigationTools.horizontal.rotateView\n )\n items.push(\n ToolbarItems.createRotateView({\n itemPriority: 10,\n layouts: horizontal,\n })\n );\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.horizontal ||\n this.defaultNavigationTools.horizontal.panView\n )\n items.push(\n ToolbarItems.createPanView({\n itemPriority: 20,\n layouts: horizontal,\n })\n );\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.horizontal ||\n this.defaultNavigationTools.horizontal.fitView\n ) {\n items.push(\n ToolbarItems.createFitView({\n itemPriority: 30,\n layouts: horizontal,\n })\n );\n }\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.horizontal ||\n this.defaultNavigationTools.horizontal.windowArea\n ) {\n items.push(\n ToolbarItems.createWindowArea({\n itemPriority: 40,\n layouts: horizontal,\n })\n );\n }\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.horizontal ||\n this.defaultNavigationTools.horizontal.viewUndoRedo\n ) {\n items.push(\n ToolbarItems.createViewUndo({\n itemPriority: 50,\n layouts: horizontal,\n })\n );\n items.push(\n ToolbarItems.createViewRedo({\n itemPriority: 60,\n layouts: horizontal,\n })\n );\n }\n\n const vertical = {\n standard: {\n orientation: ToolbarOrientation.Vertical,\n usage: ToolbarUsage.ViewNavigation,\n },\n };\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.vertical ||\n this.defaultNavigationTools.vertical.setupWalkCamera\n )\n items.push(\n ToolbarItems.createSetupWalkCamera({\n itemPriority: 5,\n layouts: vertical,\n })\n );\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.vertical ||\n this.defaultNavigationTools.vertical.walk\n )\n items.push(\n ToolbarItems.createWalkView({\n itemPriority: 10,\n layouts: vertical,\n })\n );\n\n if (\n !this.defaultNavigationTools ||\n !this.defaultNavigationTools.vertical ||\n this.defaultNavigationTools.vertical.toggleCamera\n )\n items.push(\n ToolbarItems.createToggleCameraView({\n itemPriority: 20,\n layouts: vertical,\n })\n );\n return items;\n }\n}\n"]}
|
|
@@ -6,6 +6,7 @@ import type { StatusBarItem } from "../statusbar/StatusBarItem";
|
|
|
6
6
|
import { BaseUiItemsProvider } from "./BaseUiItemsProvider";
|
|
7
7
|
/** Provide standard status bar fields.
|
|
8
8
|
* @public
|
|
9
|
+
* @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.
|
|
9
10
|
*/
|
|
10
11
|
export declare class StandardStatusbarItemsProvider extends BaseUiItemsProvider {
|
|
11
12
|
private uiItemsProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardStatusbarItemsProvider.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"StandardStatusbarItemsProvider.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AAEH,qBAAa,8BAA+B,SAAQ,mBAAmB;IACrE,OAAO,CAAC,eAAe,CAAmC;gBAExD,UAAU,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,qBAAqB,GAAG,SAAS,EACjD,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,GAAG,KACf,OAAO;IAMd;;;;;;;;OAQG;WACW,QAAQ,CACpB,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,qBAAqB,EACpC,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,GAAG,KACf,OAAO;IAYE,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,GAAG,GAClB,aAAa,EAAE;CAQnB"}
|
|
@@ -13,7 +13,9 @@ const UiItemsManager_1 = require("./UiItemsManager");
|
|
|
13
13
|
const BaseUiItemsProvider_1 = require("./BaseUiItemsProvider");
|
|
14
14
|
/** Provide standard status bar fields.
|
|
15
15
|
* @public
|
|
16
|
+
* @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.
|
|
16
17
|
*/
|
|
18
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
17
19
|
class StandardStatusbarItemsProvider extends BaseUiItemsProvider_1.BaseUiItemsProvider {
|
|
18
20
|
constructor(providerId, _defaultItems, isSupportedStage) {
|
|
19
21
|
super(providerId, isSupportedStage);
|
|
@@ -29,6 +31,7 @@ class StandardStatusbarItemsProvider extends BaseUiItemsProvider_1.BaseUiItemsPr
|
|
|
29
31
|
* the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.
|
|
30
32
|
*/
|
|
31
33
|
static register(providerId, defaultItems, isSupportedStage) {
|
|
34
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
32
35
|
const provider = new StandardStatusbarItemsProvider(providerId, defaultItems, isSupportedStage);
|
|
33
36
|
UiItemsManager_1.UiItemsManager.register(provider);
|
|
34
37
|
return provider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardStatusbarItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,yFAAsF;AAEtF,qDAAkD;AAClD,+DAA4D;AAE5D
|
|
1
|
+
{"version":3,"file":"StandardStatusbarItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAGH,yFAAsF;AAEtF,qDAAkD;AAClD,+DAA4D;AAE5D;;;GAGG;AACH,mDAAmD;AACnD,MAAa,8BAA+B,SAAQ,yCAAmB;IAErE,YACE,UAAkB,EAClB,aAAiD,EACjD,gBAIY;QAEZ,KAAK,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,eAAe,GAAG,IAAI,mEAAgC,CAAC,aAAa,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,QAAQ,CACpB,UAAkB,EAClB,YAAoC,EACpC,gBAIY;QAEZ,mDAAmD;QACnD,MAAM,QAAQ,GAAG,IAAI,8BAA8B,CACjD,UAAU,EACV,YAAY,EACZ,gBAAgB,CACjB,CAAC;QACF,+BAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAClC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEe,6BAA6B,CAC3C,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,mDAAmD;QACnD,OAAO,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAC/C,QAAQ,EACR,WAAW,EACX,aAAa,CACd,CAAC;IACJ,CAAC;CACF;AAvDD,wEAuDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module StandardUiItemsProvider\n */\n\nimport type { DefaultStatusbarItems } from \"./StandardStatusbarUiItemsProvider\";\nimport { StandardStatusbarUiItemsProvider } from \"./StandardStatusbarUiItemsProvider\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem\";\nimport { UiItemsManager } from \"./UiItemsManager\";\nimport { BaseUiItemsProvider } from \"./BaseUiItemsProvider\";\n\n/** Provide standard status bar fields.\n * @public\n * @deprecated in 4.17.0. Use {@link StandardStatusbarUiItemsProvider} instead. Supported frontstages can be specified when registering the provider.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport class StandardStatusbarItemsProvider extends BaseUiItemsProvider {\n private uiItemsProvider: StandardStatusbarUiItemsProvider;\n constructor(\n providerId: string,\n _defaultItems?: DefaultStatusbarItems | undefined,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n super(providerId, isSupportedStage);\n this.uiItemsProvider = new StandardStatusbarUiItemsProvider(_defaultItems);\n }\n\n /**\n * static function to register the StandardStatusbarItemsProvider\n * @param providerId - unique identifier for this instance of the provider. This is required in case separate packages want\n * to set up custom stage with their own subset of standard status bar items.\n * @param defaultItems - if undefined all available item are provided to stage except for activityCenter. If defined only those\n * specific tool buttons are shown.\n * @param isSupportedStage - optional function that will be called to determine if tools should be added to current stage. If not set and\n * the current stage's `usage` is set to `StageUsage.General` then the provider will add items to frontstage.\n */\n public static register(\n providerId: string,\n defaultItems?: DefaultStatusbarItems,\n isSupportedStage?: (\n stageId: string,\n stageUsage: string,\n stageAppData?: any\n ) => boolean\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const provider = new StandardStatusbarItemsProvider(\n providerId,\n defaultItems,\n isSupportedStage\n );\n UiItemsManager.register(provider);\n return provider;\n }\n\n public override provideStatusBarItemsInternal(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n // eslint-disable-next-line deprecation/deprecation\n return this.uiItemsProvider.provideStatusBarItems(\n _stageId,\n _stageUsage,\n _stageAppData\n );\n }\n}\n"]}
|
|
@@ -19,14 +19,16 @@ export interface DefaultStatusbarItems {
|
|
|
19
19
|
selectionScope?: boolean;
|
|
20
20
|
selectionInfo?: boolean;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* @
|
|
22
|
+
/** Provides standard status bar items.
|
|
23
|
+
* @public
|
|
24
24
|
*/
|
|
25
25
|
export declare class StandardStatusbarUiItemsProvider implements UiItemsProvider {
|
|
26
26
|
private _defaultItems?;
|
|
27
27
|
get id(): string;
|
|
28
28
|
/** Creates a provider. If the `defaultItems` argument is not set, all default fields are added. Otherwise, only the fields that are set to `true` are added. */
|
|
29
29
|
constructor(_defaultItems?: DefaultStatusbarItems | undefined);
|
|
30
|
+
/** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideStatusBarItems}. */
|
|
30
31
|
provideStatusBarItems(_stageId: string, _stageUsage: string, _stageAppData?: any): StatusBarItem[];
|
|
32
|
+
getStatusBarItems(): readonly StatusBarItem[];
|
|
31
33
|
}
|
|
32
34
|
//# sourceMappingURL=StandardStatusbarUiItemsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardStatusbarUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,gCAAiC,YAAW,eAAe;IAM1D,OAAO,CAAC,aAAa,CAAC;IALlC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,gKAAgK;gBAC5I,aAAa,CAAC,mCAAuB;
|
|
1
|
+
{"version":3,"file":"StandardStatusbarUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,gCAAiC,YAAW,eAAe;IAM1D,OAAO,CAAC,aAAa,CAAC;IALlC,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,gKAAgK;gBAC5I,aAAa,CAAC,mCAAuB;IAEzD,+GAA+G;IACxG,qBAAqB,CAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,GAAG,GAClB,aAAa,EAAE;IAIX,iBAAiB,IAAI,SAAS,aAAa,EAAE;CAmGrD"}
|
|
@@ -19,8 +19,8 @@ const TileLoadingIndicator_1 = require("../statusfields/tileloading/TileLoadingI
|
|
|
19
19
|
const SelectionScope_1 = require("../statusfields/SelectionScope");
|
|
20
20
|
const Separator_1 = require("../statusbar/Separator");
|
|
21
21
|
const StatusBarItem_1 = require("../statusbar/StatusBarItem");
|
|
22
|
-
/**
|
|
23
|
-
* @
|
|
22
|
+
/** Provides standard status bar items.
|
|
23
|
+
* @public
|
|
24
24
|
*/
|
|
25
25
|
class StandardStatusbarUiItemsProvider {
|
|
26
26
|
get id() {
|
|
@@ -30,7 +30,11 @@ class StandardStatusbarUiItemsProvider {
|
|
|
30
30
|
constructor(_defaultItems) {
|
|
31
31
|
this._defaultItems = _defaultItems;
|
|
32
32
|
}
|
|
33
|
+
/** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideStatusBarItems}. */
|
|
33
34
|
provideStatusBarItems(_stageId, _stageUsage, _stageAppData) {
|
|
35
|
+
return this.getStatusBarItems();
|
|
36
|
+
}
|
|
37
|
+
getStatusBarItems() {
|
|
34
38
|
const statusBarItems = [];
|
|
35
39
|
if (!this._defaultItems || this._defaultItems.messageCenter) {
|
|
36
40
|
statusBarItems.push(StatusBarItemUtilities_1.StatusBarItemUtilities.createCustomItem({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardStatusbarUiItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,gFAA6E;AAC7E,4FAAyF;AACzF,0FAAuF;AACvF,mEAAqE;AACrE,uDAAyD;AACzD,iEAAmE;AACnE,2FAAwF;AACxF,mEAAqE;AACrE,sDAA4D;AAG5D,8DAA8D;AAmB9D;;GAEG;AACH,MAAa,gCAAgC;IAC3C,IAAW,EAAE;QACX,OAAO,8CAA8C,CAAC;IACxD,CAAC;IAED,gKAAgK;IAChK,YAAoB,aAAqC;QAArC,kBAAa,GAAb,aAAa,CAAwB;IAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"StandardStatusbarUiItemsProvider.js","sourceRoot":"","sources":["../../../../src/appui-react/ui-items-provider/StandardStatusbarUiItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,gFAA6E;AAC7E,4FAAyF;AACzF,0FAAuF;AACvF,mEAAqE;AACrE,uDAAyD;AACzD,iEAAmE;AACnE,2FAAwF;AACxF,mEAAqE;AACrE,sDAA4D;AAG5D,8DAA8D;AAmB9D;;GAEG;AACH,MAAa,gCAAgC;IAC3C,IAAW,EAAE;QACX,OAAO,8CAA8C,CAAC;IACxD,CAAC;IAED,gKAAgK;IAChK,YAAoB,aAAqC;QAArC,kBAAa,GAAb,aAAa,CAAwB;IAAG,CAAC;IAE7D,+GAA+G;IACxG,qBAAqB,CAC1B,QAAgB,EAChB,WAAmB,EACnB,aAAmB;QAEnB,OAAO,IAAI,CAAC,iBAAiB,EAAqB,CAAC;IACrD,CAAC;IAEM,iBAAiB;QACtB,MAAM,cAAc,GAAoB,EAAE,CAAC;QAC3C,IAAI,CAAC,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,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC;YAC5D,cAAc,CAAC,IAAI,CACjB,+CAAsB,CAAC,gBAAgB,CAAC;gBACtC,EAAE,EAAE,oBAAoB;gBACxB,OAAO,EAAE,gCAAgB,CAAC,KAAK;gBAC/B,YAAY,EAAE,EAAE;gBAChB,mDAAmD;gBACnD,OAAO,EAAE,oBAAC,kCAAkB,OAAG;aAChC,CAAC,CACH,CAAC;QACJ,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AApHD,4EAoHC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module StandardUiItemsProvider\n */\n\nimport * as React from \"react\";\nimport { StatusBarItemUtilities } from \"../statusbar/StatusBarItemUtilities\";\nimport { ToolAssistanceField } from \"../statusfields/toolassistance/ToolAssistanceField\";\nimport { MessageCenterField } from \"../statusfields/message-center/MessageCenterField\";\nimport { ActivityCenterField } from \"../statusfields/ActivityCenter\";\nimport { SnapModeField } from \"../statusfields/SnapMode\";\nimport { SelectionInfoField } from \"../statusfields/SelectionInfo\";\nimport { TileLoadingIndicator } from \"../statusfields/tileloading/TileLoadingIndicator\";\nimport { SelectionScopeField } from \"../statusfields/SelectionScope\";\nimport { StatusBarSeparator } from \"../statusbar/Separator\";\nimport type { UiItemsProvider } from \"./UiItemsProvider\";\nimport type { StatusBarItem } from \"../statusbar/StatusBarItem\";\nimport { StatusBarSection } from \"../statusbar/StatusBarItem\";\n\n/** Defines what items to include from the provider.\n * @note When this object is used, only explicitly enabled items will be added to the status bar. I.e. `{ messageCenter: true }` will only add message center field to the statusbar.\n * @public\n */\nexport interface DefaultStatusbarItems {\n messageCenter?: boolean;\n preToolAssistanceSeparator?: boolean;\n toolAssistance?: boolean;\n postToolAssistanceSeparator?: boolean;\n /** Activity center field is hidden by default. */\n activityCenter?: boolean;\n accuSnapModePicker?: boolean;\n tileLoadIndicator?: boolean;\n selectionScope?: boolean;\n selectionInfo?: boolean;\n}\n\n/** Provides standard status bar items.\n * @public\n */\nexport class StandardStatusbarUiItemsProvider implements UiItemsProvider {\n public get id(): string {\n return \"appui-react:StandardStatusbarUiItemsProvider\";\n }\n\n /** Creates a provider. If the `defaultItems` argument is not set, all default fields are added. Otherwise, only the fields that are set to `true` are added. */\n constructor(private _defaultItems?: DefaultStatusbarItems) {}\n\n /** @deprecated in 4.17.0. Property of a deprecated interface {@link UiItemsProvider.provideStatusBarItems}. */\n public provideStatusBarItems(\n _stageId: string,\n _stageUsage: string,\n _stageAppData?: any\n ): StatusBarItem[] {\n return this.getStatusBarItems() as StatusBarItem[];\n }\n\n public getStatusBarItems(): readonly StatusBarItem[] {\n const statusBarItems: StatusBarItem[] = [];\n if (!this._defaultItems || this._defaultItems.messageCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.MessageCenter\",\n section: StatusBarSection.Left,\n itemPriority: 10,\n content: <MessageCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.toolAssistance) {\n if (!this._defaultItems || this._defaultItems.preToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PreToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 15,\n content: <StatusBarSeparator />,\n })\n );\n\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 20,\n content: <ToolAssistanceField />,\n })\n );\n\n if (!this._defaultItems || this._defaultItems.postToolAssistanceSeparator)\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.PostToolAssistance\",\n section: StatusBarSection.Left,\n itemPriority: 25,\n content: <StatusBarSeparator />,\n })\n );\n }\n if (this._defaultItems?.activityCenter) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.ActivityCenter\",\n section: StatusBarSection.Left,\n itemPriority: 30,\n content: <ActivityCenterField />,\n })\n );\n }\n if (!this._defaultItems || this._defaultItems.accuSnapModePicker) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SnapMode\",\n section: StatusBarSection.Center,\n itemPriority: 10,\n content: <SnapModeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.tileLoadIndicator) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.TileLoadIndicator\",\n section: StatusBarSection.Right,\n itemPriority: 10,\n content: <TileLoadingIndicator />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionScope) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionScope\",\n section: StatusBarSection.Right,\n itemPriority: 20,\n content: <SelectionScopeField />,\n })\n );\n }\n\n if (!this._defaultItems || this._defaultItems.selectionInfo) {\n statusBarItems.push(\n StatusBarItemUtilities.createCustomItem({\n id: \"uifw.SelectionInfo\",\n section: StatusBarSection.Right,\n itemPriority: 30,\n // eslint-disable-next-line deprecation/deprecation\n content: <SelectionInfoField />,\n })\n );\n }\n\n return statusBarItems;\n }\n}\n"]}
|
|
@@ -9,6 +9,7 @@ export declare function useUiStateStorageHandler(): UiStateStorage;
|
|
|
9
9
|
export declare const UiStateStorageContext: React.Context<import("@itwin/core-react").UiStateStorage>;
|
|
10
10
|
/** Properties for the [[UiStateStorageHandler]] component.
|
|
11
11
|
* @public
|
|
12
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof UiStateStorageHandler>`
|
|
12
13
|
*/
|
|
13
14
|
export interface UiSettingsProviderProps {
|
|
14
15
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUiStateStorage.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useUiStateStorage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,cAAc;AACd,wBAAgB,wBAAwB,IAAI,cAAc,CAEzD;AAED,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,2DAEjC,CAAC;AAGF
|
|
1
|
+
{"version":3,"file":"useUiStateStorage.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useUiStateStorage.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,cAAc;AACd,wBAAgB,wBAAwB,IAAI,cAAc,CAEzD;AAED,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,2DAEjC,CAAC;AAGF;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,qBAsBnE"}
|
|
@@ -32,6 +32,7 @@ exports.UiStateStorageContext.displayName = "uifw:UiStateStorageContext";
|
|
|
32
32
|
* ```
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
35
36
|
function UiStateStorageHandler(props) {
|
|
36
37
|
const [stateStorage, setStateStorage] = React.useState(UiFramework_1.UiFramework.getUiStateStorage());
|
|
37
38
|
React.useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUiStateStorage.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useUiStateStorage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,gDAA6C;AAC7C,2EAGyC;AAEzC,2DAAwD;AAExD,cAAc;AACd,SAAgB,wBAAwB;IACtC,OAAO,KAAK,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AACjD,CAAC;AAFD,4DAEC;AAED,gBAAgB;AACH,QAAA,qBAAqB,GAAG,KAAK,CAAC,aAAa,CACtD,IAAI,qCAAiB,EAAE,CACxB,CAAC;AACF,6BAAqB,CAAC,WAAW,GAAG,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"useUiStateStorage.js","sourceRoot":"","sources":["../../../../src/appui-react/uistate/useUiStateStorage.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,gDAA6C;AAC7C,2EAGyC;AAEzC,2DAAwD;AAExD,cAAc;AACd,SAAgB,wBAAwB;IACtC,OAAO,KAAK,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AACjD,CAAC;AAFD,4DAEC;AAED,gBAAgB;AACH,QAAA,qBAAqB,GAAG,KAAK,CAAC,aAAa,CACtD,IAAI,qCAAiB,EAAE,CACxB,CAAC;AACF,6BAAqB,CAAC,WAAW,GAAG,4BAA4B,CAAC;AAUjE;;;;;;;;;;;GAWG;AACH,mDAAmD;AACnD,SAAgB,qBAAqB,CAAC,KAA8B;IAClE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CACpD,yBAAW,CAAC,iBAAiB,EAAE,CAChC,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,OAAO,6CAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;YAC9D,IACE,6CAAqB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACtD,qCAAa,CAAC,qBAAqB;aACpC,CAAC;gBAEF,eAAe,CAAC,yBAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,6BAAqB,CAAC,QAAQ,IAC7B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,KAAK,EAAE,YAAY,GACnB,CACH,CAAC;AACJ,CAAC;AAtBD,sDAsBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module UiStateStorage\n */\n\nimport * as React from \"react\";\nimport { UiFramework } from \"../UiFramework\";\nimport {\n SyncUiEventDispatcher,\n SyncUiEventId,\n} from \"../syncui/SyncUiEventDispatcher\";\nimport type { UiStateStorage } from \"./UiStateStorage\";\nimport { LocalStateStorage } from \"./LocalStateStorage\";\n\n/** @public */\nexport function useUiStateStorageHandler(): UiStateStorage {\n return React.useContext(UiStateStorageContext);\n}\n\n/** @internal */\nexport const UiStateStorageContext = React.createContext<UiStateStorage>(\n new LocalStateStorage()\n);\nUiStateStorageContext.displayName = \"uifw:UiStateStorageContext\";\n\n/** Properties for the [[UiStateStorageHandler]] component.\n * @public\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof UiStateStorageHandler>`\n */\nexport interface UiSettingsProviderProps {\n children?: React.ReactNode;\n}\n\n/** Allows to provide a custom [[UiStateStorage]] implementation to persist UI settings\n * through [[UiFramework.setUiStateStorage]].\n *\n * This component should wrap the [[ConfigurableUiContent]].\n *\n * ```tsx\n * <UiStateStorageHandler>\n * <ConfigurableUiContent />\n * </UiStateStorageHandler>\n * ```\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function UiStateStorageHandler(props: UiSettingsProviderProps) {\n const [stateStorage, setStateStorage] = React.useState(\n UiFramework.getUiStateStorage()\n );\n\n React.useEffect(() => {\n return SyncUiEventDispatcher.onSyncUiEvent.addListener((args) => {\n if (\n SyncUiEventDispatcher.hasEventOfInterest(args.eventIds, [\n SyncUiEventId.UiStateStorageChanged,\n ])\n )\n setStateStorage(UiFramework.getUiStateStorage());\n });\n });\n\n return (\n <UiStateStorageContext.Provider\n children={props.children} // eslint-disable-line react/no-children-prop\n value={stateStorage}\n />\n );\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
import type { ToolbarItem } from "../toolbar/ToolbarItem";
|
|
6
6
|
/** Properties that can be used to append items to the default set of toolbar items.
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof BasicNavigationWidget>`
|
|
8
9
|
*/
|
|
9
10
|
export interface BasicNavigationWidgetProps {
|
|
10
11
|
/** optional set of additional items to include in horizontal toolbar */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicNavigationWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicNavigationWidget.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D
|
|
1
|
+
{"version":3,"file":"BasicNavigationWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicNavigationWidget.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,wEAAwE;IACxE,yBAAyB,CAAC,EAAE,WAAW,EAAE,CAAC;IAC1C,sEAAsE;IACtE,uBAAuB,CAAC,EAAE,WAAW,EAAE,CAAC;CACzC;AAED;;;GAGG;AAEH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,qBAqFtE"}
|
|
@@ -19,6 +19,7 @@ const ToolbarItems_1 = require("../tools/ToolbarItems");
|
|
|
19
19
|
* Supports the specification of additional horizontal and vertical toolbar items through props.
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
22
23
|
function BasicNavigationWidget(props) {
|
|
23
24
|
const getHorizontalToolbarItems = React.useCallback(() => {
|
|
24
25
|
const items = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicNavigationWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicNavigationWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,8DAA2D;AAC3D,yEAAsE;AAEtE,wDAA0E;AAC1E,wDAAqD;
|
|
1
|
+
{"version":3,"file":"BasicNavigationWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicNavigationWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,8DAA2D;AAC3D,yEAAsE;AAEtE,wDAA0E;AAC1E,wDAAqD;AAarD;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,qBAAqB,CAAC,KAAiC;IACrE,MAAM,yBAAyB,GAAG,KAAK,CAAC,WAAW,CAAC,GAAkB,EAAE;QACtE,MAAM,KAAK,GAAkB;YAC3B,2BAAY,CAAC,gBAAgB,CAAC;gBAC5B,YAAY,EAAE,EAAE;aACjB,CAAC;YACF,2BAAY,CAAC,aAAa,CAAC;gBACzB,YAAY,EAAE,EAAE;aACjB,CAAC;YACF,2BAAY,CAAC,aAAa,CAAC;gBACzB,YAAY,EAAE,EAAE;aACjB,CAAC;YACF,2BAAY,CAAC,gBAAgB,CAAC;gBAC5B,YAAY,EAAE,EAAE;aACjB,CAAC;YACF,2BAAY,CAAC,cAAc,CAAC;gBAC1B,YAAY,EAAE,EAAE;aACjB,CAAC;YACF,2BAAY,CAAC,cAAc,CAAC;gBAC1B,YAAY,EAAE,EAAE;aACjB,CAAC;SACH,CAAC;QACF,IAA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KAAK,CAAC,uBAAuB;QAC7B,yBAAyB;QACzB,uBAAuB;KACxB,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,IAAA,iCAAe,GAAE,CAAC;IACtC,MAAM,SAAS,GAAG,IAAA,oBAAU,EAAC,CAAC,WAAW,IAAI,WAAW,CAAC,CAAC;IAE1D,OAAO,CACL,oBAAC,mDAAwB,IACvB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EACf,oBAAC,iCAAe,IACd,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE,0BAAY,CAAC,cAAc,EAClC,WAAW,EAAE,gCAAkB,CAAC,UAAU,GAC1C,EAEJ,eAAe,EACb,oBAAC,iCAAe,IACd,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,0BAAY,CAAC,cAAc,EAClC,WAAW,EAAE,gCAAkB,CAAC,QAAQ,GACxC,GAEJ,CACH,CAAC;AACJ,CAAC;AArFD,sDAqFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { ToolbarComposer } from \"../toolbar/ToolbarComposer\";\nimport { useUiVisibility } from \"../hooks/useUiVisibility\";\nimport { NavigationWidgetComposer } from \"./NavigationWidgetComposer\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport { ToolbarOrientation, ToolbarUsage } from \"../toolbar/ToolbarItem\";\nimport { ToolbarItems } from \"../tools/ToolbarItems\";\n\n/** Properties that can be used to append items to the default set of toolbar items.\n * @public\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof BasicNavigationWidget>`\n */\nexport interface BasicNavigationWidgetProps {\n /** optional set of additional items to include in horizontal toolbar */\n additionalHorizontalItems?: ToolbarItem[];\n /** optional set of additional items to include in vertical toolbar */\n additionalVerticalItems?: ToolbarItem[];\n}\n\n/** Basic Navigation Widget that provides standard tools to manipulate views containing element data.\n * Supports the specification of additional horizontal and vertical toolbar items through props.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function BasicNavigationWidget(props: BasicNavigationWidgetProps) {\n const getHorizontalToolbarItems = React.useCallback((): ToolbarItem[] => {\n const items: ToolbarItem[] = [\n ToolbarItems.createRotateView({\n itemPriority: 10,\n }),\n ToolbarItems.createPanView({\n itemPriority: 20,\n }),\n ToolbarItems.createFitView({\n itemPriority: 30,\n }),\n ToolbarItems.createWindowArea({\n itemPriority: 40,\n }),\n ToolbarItems.createViewUndo({\n itemPriority: 50,\n }),\n ToolbarItems.createViewRedo({\n itemPriority: 60,\n }),\n ];\n if (props.additionalHorizontalItems)\n items.push(...props.additionalHorizontalItems);\n return items;\n }, [props.additionalHorizontalItems]);\n\n const getVerticalToolbarItems = React.useCallback((): ToolbarItem[] => {\n const items: ToolbarItem[] = [];\n items.push(\n ToolbarItems.createWalkView({\n itemPriority: 10,\n }),\n ToolbarItems.createToggleCameraView({\n itemPriority: 20,\n })\n );\n if (props.additionalVerticalItems)\n items.push(...props.additionalVerticalItems);\n return items;\n }, [props.additionalVerticalItems]);\n\n const [horizontalItems, setHorizontalItems] = React.useState(() =>\n getHorizontalToolbarItems()\n );\n const [verticalItems, setVerticalItems] = React.useState(() =>\n getVerticalToolbarItems()\n );\n\n const isInitialMount = React.useRef(true);\n React.useEffect(() => {\n if (isInitialMount.current) isInitialMount.current = false;\n else {\n setHorizontalItems(getHorizontalToolbarItems());\n setVerticalItems(getVerticalToolbarItems());\n }\n }, [\n props.additionalHorizontalItems,\n props.additionalVerticalItems,\n getHorizontalToolbarItems,\n getVerticalToolbarItems,\n ]);\n\n const uiIsVisible = useUiVisibility();\n const className = classnames(!uiIsVisible && \"nz-hidden\");\n\n return (\n <NavigationWidgetComposer\n className={className}\n horizontalToolbar={\n <ToolbarComposer\n items={horizontalItems}\n usage={ToolbarUsage.ViewNavigation}\n orientation={ToolbarOrientation.Horizontal}\n />\n }\n verticalToolbar={\n <ToolbarComposer\n items={verticalItems}\n usage={ToolbarUsage.ViewNavigation}\n orientation={ToolbarOrientation.Vertical}\n />\n }\n />\n );\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
import type { ToolbarItem } from "../toolbar/ToolbarItem";
|
|
6
6
|
/** Properties that can be used to append items to the default set of toolbar items.
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof BasicToolWidget>`
|
|
8
9
|
*/
|
|
9
10
|
export interface BasicToolWidgetProps {
|
|
10
11
|
/** if true include hide/isolate Models and Categories */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicToolWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicToolWidget.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D
|
|
1
|
+
{"version":3,"file":"BasicToolWidget.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicToolWidget.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,yDAAyD;IACzD,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C,qHAAqH;IACrH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,yBAAyB,CAAC,EAAE,WAAW,EAAE,CAAC;IAC1C,sEAAsE;IACtE,uBAAuB,CAAC,EAAE,WAAW,EAAE,CAAC;CACzC;AAED;;;GAGG;AAEH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAgH1D"}
|
|
@@ -20,6 +20,7 @@ const ToolbarItems_1 = require("../tools/ToolbarItems");
|
|
|
20
20
|
* This definition will also show a overflow button if there is not enough room to display all the toolbar buttons.
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
23
24
|
function BasicToolWidget(props) {
|
|
24
25
|
const getHorizontalToolbarItems = React.useCallback((useCategoryAndModelsContextTools) => {
|
|
25
26
|
const items = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicToolWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicToolWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,6DAA0D;AAC1D,6DAA0D;AAC1D,8DAA2D;AAE3D,wDAA0E;AAC1E,wDAAqD;
|
|
1
|
+
{"version":3,"file":"BasicToolWidget.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/BasicToolWidget.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,6DAA0D;AAC1D,6DAA0D;AAC1D,8DAA2D;AAE3D,wDAA0E;AAC1E,wDAAqD;AAiBrD;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,eAAe,CAAC,KAA2B;IACzD,MAAM,yBAAyB,GAAG,KAAK,CAAC,WAAW,CACjD,CAAC,gCAAyC,EAAiB,EAAE;QAC3D,MAAM,KAAK,GAAkB,EAAE,CAAC;QAChC,IAAI,gCAAgC,EAAE,CAAC;YACrC,KAAK,CAAC,IAAI,CACR,2BAAY,CAAC,oBAAoB,CAAC;gBAChC,YAAY,EAAE,EAAE;aACjB,CAAC,EACF,2BAAY,CAAC,uCAAuC,CAAC;gBACnD,YAAY,EAAE,EAAE;aACjB,CAAC,EACF,2BAAY,CAAC,sBAAsB,CAAC;gBAClC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kB,CAAC,UAAU,GAC1C,EAEJ,eAAe,EACb,oBAAC,iCAAe,IACd,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,0BAAY,CAAC,mBAAmB,EACvC,WAAW,EAAE,gCAAkB,CAAC,QAAQ,GACxC,GAEJ,CACH,CAAC;AACJ,CAAC;AAhHD,0CAgHC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { ToolbarComposer } from \"../toolbar/ToolbarComposer\";\nimport { ToolWidgetComposer } from \"./ToolWidgetComposer\";\nimport { BackstageAppButton } from \"./BackstageAppButton\";\nimport { useUiVisibility } from \"../hooks/useUiVisibility\";\nimport type { ToolbarItem } from \"../toolbar/ToolbarItem\";\nimport { ToolbarOrientation, ToolbarUsage } from \"../toolbar/ToolbarItem\";\nimport { ToolbarItems } from \"../tools/ToolbarItems\";\n\n/** Properties that can be used to append items to the default set of toolbar items.\n * @public\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof BasicToolWidget>`\n */\nexport interface BasicToolWidgetProps {\n /** if true include hide/isolate Models and Categories */\n showCategoryAndModelsContextTools?: boolean;\n /** Name of icon WebFont entry or if specifying an imported SVG symbol use \"webSvg:\" prefix to imported symbol Id. */\n icon?: string;\n /** optional set of additional items to include in horizontal toolbar */\n additionalHorizontalItems?: ToolbarItem[];\n /** optional set of additional items to include in vertical toolbar */\n additionalVerticalItems?: ToolbarItem[];\n}\n\n/** Default Tool Widget for standard \"review\" applications. Provides standard tools to review, and measure elements.\n * This definition will also show a overflow button if there is not enough room to display all the toolbar buttons.\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function BasicToolWidget(props: BasicToolWidgetProps) {\n const getHorizontalToolbarItems = React.useCallback(\n (useCategoryAndModelsContextTools: boolean): ToolbarItem[] => {\n const items: ToolbarItem[] = [];\n if (useCategoryAndModelsContextTools) {\n items.push(\n ToolbarItems.createClearSelection({\n itemPriority: 10,\n }),\n ToolbarItems.createClearHideIsolateEmphasizeElements({\n itemPriority: 20,\n }),\n ToolbarItems.createHideSectionGroup({\n itemPriority: 30,\n }),\n ToolbarItems.createIsolateSelectionGroup({\n itemPriority: 40,\n }),\n ToolbarItems.createEmphasizeElements({\n itemPriority: 50,\n })\n );\n } else {\n items.push(\n ToolbarItems.createClearSelection({\n itemPriority: 10,\n }),\n ToolbarItems.createClearHideIsolateEmphasizeElements({\n itemPriority: 20,\n }),\n ToolbarItems.createHideElements({\n itemPriority: 30,\n }),\n ToolbarItems.createIsolateElements({\n itemPriority: 40,\n }),\n ToolbarItems.createEmphasizeElements({\n itemPriority: 50,\n })\n );\n }\n if (props.additionalHorizontalItems)\n items.push(...props.additionalHorizontalItems);\n return items;\n },\n [props.additionalHorizontalItems]\n );\n\n const getVerticalToolbarItems = React.useCallback((): ToolbarItem[] => {\n const items: ToolbarItem[] = [];\n items.push(\n ToolbarItems.createSelectElement({\n itemPriority: 10,\n }),\n ToolbarItems.createMeasureGroup({\n itemPriority: 20,\n }),\n ToolbarItems.createSectionGroup({\n itemPriority: 30,\n })\n );\n if (props.additionalVerticalItems)\n items.push(...props.additionalVerticalItems);\n return items;\n }, [props.additionalVerticalItems]);\n\n const [horizontalItems, setHorizontalItems] = React.useState(() =>\n getHorizontalToolbarItems(!!props.showCategoryAndModelsContextTools)\n );\n const [verticalItems, setVerticalItems] = React.useState(() =>\n getVerticalToolbarItems()\n );\n\n const isInitialMount = React.useRef(true);\n React.useEffect(() => {\n if (isInitialMount.current) isInitialMount.current = false;\n else {\n setHorizontalItems(\n getHorizontalToolbarItems(!!props.showCategoryAndModelsContextTools)\n );\n setVerticalItems(getVerticalToolbarItems());\n }\n }, [\n props.showCategoryAndModelsContextTools,\n props.additionalHorizontalItems,\n props.additionalVerticalItems,\n getHorizontalToolbarItems,\n getVerticalToolbarItems,\n ]);\n\n const uiIsVisible = useUiVisibility();\n const className = classnames(!uiIsVisible && \"nz-hidden\");\n return (\n <ToolWidgetComposer\n className={className}\n cornerItem={<BackstageAppButton icon={props.icon} />}\n horizontalToolbar={\n <ToolbarComposer\n items={horizontalItems}\n usage={ToolbarUsage.ContentManipulation}\n orientation={ToolbarOrientation.Horizontal}\n />\n }\n verticalToolbar={\n <ToolbarComposer\n items={verticalItems}\n usage={ToolbarUsage.ContentManipulation}\n orientation={ToolbarOrientation.Vertical}\n />\n }\n />\n );\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
/**
|
|
6
6
|
* Props for [[ContentToolWidgetComposer]].
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof ContentToolWidgetComposer>`
|
|
8
9
|
*/
|
|
9
10
|
export interface ContentToolWidgetComposerProps {
|
|
10
11
|
/** If default backstage button is desired use <BackstageAppButton />. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B
|
|
1
|
+
{"version":3,"file":"ContentToolWidgetComposer.d.ts","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,yEAAyE;IACzE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CAEvC,KAAK,EAAE,8BAA8B,qBAyBtC"}
|
|
@@ -38,7 +38,9 @@ const ToolbarItem_1 = require("../toolbar/ToolbarItem");
|
|
|
38
38
|
* BackstageCornerButton,
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
function ContentToolWidgetComposer(
|
|
41
|
+
function ContentToolWidgetComposer(
|
|
42
|
+
/* eslint-disable-next-line deprecation/deprecation */
|
|
43
|
+
props) {
|
|
42
44
|
const { cornerButton } = props;
|
|
43
45
|
const uiIsVisible = (0, useUiVisibility_1.useUiVisibility)();
|
|
44
46
|
const className = (0, classnames_1.default)(!uiIsVisible && "nz-hidden");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,6DAA0D;AAC1D,8DAA2D;AAC3D,wDAA0E;
|
|
1
|
+
{"version":3,"file":"ContentToolWidgetComposer.js","sourceRoot":"","sources":["../../../../src/appui-react/widgets/ContentToolWidgetComposer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,gEAA6D;AAC7D,6DAA0D;AAC1D,8DAA2D;AAC3D,wDAA0E;AAY1E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,yBAAyB;AACvC,sDAAsD;AACtD,KAAqC;IAErC,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAA,iCAAe,GAAE,CAAC;IACtC,MAAM,SAAS,GAAG,IAAA,oBAAU,EAAC,CAAC,WAAW,IAAI,WAAW,CAAC,CAAC;IAC1D,OAAO,CACL,oBAAC,uCAAkB,IACjB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,YAAY,EACxB,iBAAiB,EACf,oBAAC,iCAAe,IACd,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,0BAAY,CAAC,mBAAmB,EACvC,WAAW,EAAE,gCAAkB,CAAC,UAAU,GAC1C,EAEJ,eAAe,EACb,oBAAC,iCAAe,IACd,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,0BAAY,CAAC,mBAAmB,EACvC,WAAW,EAAE,gCAAkB,CAAC,QAAQ,GACxC,GAEJ,CACH,CAAC;AACJ,CAAC;AA3BD,8DA2BC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Widget\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { ToolbarComposer } from \"../toolbar/ToolbarComposer\";\nimport { ToolWidgetComposer } from \"./ToolWidgetComposer\";\nimport { useUiVisibility } from \"../hooks/useUiVisibility\";\nimport { ToolbarOrientation, ToolbarUsage } from \"../toolbar/ToolbarItem\";\n\n/**\n * Props for [[ContentToolWidgetComposer]].\n * @public\n * @deprecated in 4.17.0. Use `React.ComponentProps<typeof ContentToolWidgetComposer>`\n */\nexport interface ContentToolWidgetComposerProps {\n /** If default backstage button is desired use <BackstageAppButton />. */\n cornerButton?: React.ReactNode;\n}\n\n/**\n * ContentToolWidgetComposer composes a Tool Widget with no tools defined by default. UiItemsProviders\n * are used to populate the toolbars. See [[StandardContentToolsProvider]].\n * @example\n * ToolWidget with no corner button\n * ```\n * <ContentToolWidgetComposer />\n * ```\n * ToolWidget with corner button\n * ```\n * const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />} />;\n * <ContentToolWidgetComposer cornerButton={cornerButton} />\n * ```\n * ToolWidget with custom corner button\n * ```\n * const cornerButton = <BackstageAppButton icon={<SvgBentleySystems />}\n * label=\"Toggle Backstage display\",\n * execute={() => UiFramework.backstage.getBackstageToggleCommand().execute()} />;\n * <ContentToolWidgetComposer cornerButton={cornerButton} />\n * ```\n *\n * BackstageCornerButton,\n * @public\n */\nexport function ContentToolWidgetComposer(\n /* eslint-disable-next-line deprecation/deprecation */\n props: ContentToolWidgetComposerProps\n) {\n const { cornerButton } = props;\n const uiIsVisible = useUiVisibility();\n const className = classnames(!uiIsVisible && \"nz-hidden\");\n return (\n <ToolWidgetComposer\n className={className}\n cornerItem={cornerButton}\n horizontalToolbar={\n <ToolbarComposer\n items={[]}\n usage={ToolbarUsage.ContentManipulation}\n orientation={ToolbarOrientation.Horizontal}\n />\n }\n verticalToolbar={\n <ToolbarComposer\n items={[]}\n usage={ToolbarUsage.ContentManipulation}\n orientation={ToolbarOrientation.Vertical}\n />\n }\n />\n );\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import * as React from "react";
|
|
|
5
5
|
import type { CommonProps } from "@itwin/core-react";
|
|
6
6
|
/** Properties for the [[NavigationAidHost]] React component
|
|
7
7
|
* @public
|
|
8
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof NavigationAidHost>`
|
|
8
9
|
*/
|
|
9
10
|
export interface NavigationAidHostProps {
|
|
10
11
|
/** Navigation Aid Host minimum width. Defaults to "64px". */
|
|
@@ -20,6 +21,7 @@ export interface NavigationAidHostProps {
|
|
|
20
21
|
export declare function NavigationAidHost(props: NavigationAidHostProps): React.JSX.Element;
|
|
21
22
|
/** Properties for the [[NavigationWidgetComposer]] React components
|
|
22
23
|
* @public
|
|
24
|
+
* @deprecated in 4.17.0. Use `React.ComponentProps<typeof NavigationWidgetComposer>`
|
|
23
25
|
*/
|
|
24
26
|
export interface NavigationWidgetComposerProps extends CommonProps {
|
|
25
27
|
/** Optional horizontal toolbar */
|